Daniel Edison Essien , Saviour Inyang , Imeh Umoren
{"title":"Evaluating machine learning classifiers and explainability for monitoring cow behaviour with wearable nose rings","authors":"Daniel Edison Essien , Saviour Inyang , Imeh Umoren","doi":"10.1016/j.prevetmed.2025.106630","DOIUrl":null,"url":null,"abstract":"<div><div>Wearable technologies are revolutionizing precision livestock monitoring by allowing continuous real-time monitoring of animal behaviour. This study investigates and evaluates the use of machine learning techniques to classify dairy cow behaviours using tri-axial accelerometer data collected from novel wearable nose ring sensor. The raw dataset initially included five distinct behaviours: Feeding, Ruminating, Standing, Lying and Walking. However due to data imbalance and data limitations we refined the classification to three core categories: Feeding, Rumination and Walking. While previous studies on this dataset focused solely on Long Short-Term Memory(LSTM) network, the comparative potential of other models remained unexplored. To address this gap, we performed a comparative study on multiple classifiers, including Random Forest (RF), Artificial Neural Network (ANN), Gated Recurrent Unit (GRU) and a hybrid Convolutional Neural Network with LSTM (CNN-LSTM). The obtained results showed that GRU model performed well with an accuracy of 97.78 %, followed by CNN-LSTM, ANN and RF which scored 97.78 %, 68.27 % and 67.6 % respectively. To enhance model transparency, Explainable AI techniques were utilized. SHAP and LIME were utilized to showcase feature importance and interpretability of these models. These findings showcase the effectiveness of deep learning models (GRU, CNN-LSTM) and emphasizes the importance of model explainability in precision livestock management.</div></div>","PeriodicalId":20413,"journal":{"name":"Preventive veterinary medicine","volume":"244 ","pages":"Article 106630"},"PeriodicalIF":2.4000,"publicationDate":"2025-07-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Preventive veterinary medicine","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0167587725002156","RegionNum":2,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"VETERINARY SCIENCES","Score":null,"Total":0}
引用次数: 0
Abstract
Wearable technologies are revolutionizing precision livestock monitoring by allowing continuous real-time monitoring of animal behaviour. This study investigates and evaluates the use of machine learning techniques to classify dairy cow behaviours using tri-axial accelerometer data collected from novel wearable nose ring sensor. The raw dataset initially included five distinct behaviours: Feeding, Ruminating, Standing, Lying and Walking. However due to data imbalance and data limitations we refined the classification to three core categories: Feeding, Rumination and Walking. While previous studies on this dataset focused solely on Long Short-Term Memory(LSTM) network, the comparative potential of other models remained unexplored. To address this gap, we performed a comparative study on multiple classifiers, including Random Forest (RF), Artificial Neural Network (ANN), Gated Recurrent Unit (GRU) and a hybrid Convolutional Neural Network with LSTM (CNN-LSTM). The obtained results showed that GRU model performed well with an accuracy of 97.78 %, followed by CNN-LSTM, ANN and RF which scored 97.78 %, 68.27 % and 67.6 % respectively. To enhance model transparency, Explainable AI techniques were utilized. SHAP and LIME were utilized to showcase feature importance and interpretability of these models. These findings showcase the effectiveness of deep learning models (GRU, CNN-LSTM) and emphasizes the importance of model explainability in precision livestock management.
期刊介绍:
Preventive Veterinary Medicine is one of the leading international resources for scientific reports on animal health programs and preventive veterinary medicine. The journal follows the guidelines for standardizing and strengthening the reporting of biomedical research which are available from the CONSORT, MOOSE, PRISMA, REFLECT, STARD, and STROBE statements. The journal focuses on:
Epidemiology of health events relevant to domestic and wild animals;
Economic impacts of epidemic and endemic animal and zoonotic diseases;
Latest methods and approaches in veterinary epidemiology;
Disease and infection control or eradication measures;
The "One Health" concept and the relationships between veterinary medicine, human health, animal-production systems, and the environment;
Development of new techniques in surveillance systems and diagnosis;
Evaluation and control of diseases in animal populations.