A pipeline with pre-processing options to detect behaviour from accelerometer data using Machine Learning tested on dairy goats
- 17 April 2025
- journal article
- Published by Peer Community In in Peer Community Journal
- Vol. 5
Abstract
Animal behaviour is a significant component in the evaluation of animal welfare. Conducting continuous observations of animal behaviour is a time-consuming task and may not be feasible over extended periods for all animals. Thus, new technologies like sensors and cameras can be used to assess individual behaviour continuously. Combined with Artificial Intelligence (AI), accelerometers are promising to continuously and individually detect animal behaviour from the acceleration signals and characteristics of the behaviour. Such devices are commercialised for cattle but they have not been widely developed for small ruminants. Being able to automatically monitor behaviour at an individual scale represents a crucial step towards an objective assessment of animal welfare. This paper aims to present the use of a pipeline called ACT4Behav (Accelerometer-based Classification Tool for identifying Behaviours) involving a supervised classification algorithm for automatically characterising specific animal behaviours using accelerometer data, and to explore the best pre-processing steps for each behaviour. This algorithm is designed to be general-purpose and applicable with different species, behaviours and accelerometers. This paper presents the use of this pipeline with eight indoor-housed goats equipped with ear-mounted accelerometers. Rumination, head in the feeder, standing and lying behaviours were continuously sampled from camera recordings for 11 consecutive hours for each goat using The Observer software. The developed pipeline was used to identify optimal descriptive features and data preparation steps for each prediction model, one for each behaviour. A sensitivity analysis was conducted to assess the impact of the processing techniques and parameter value on the resulting AUC (Area Under the Curve) score, used as the performance score of the models. This analysis allowed the identification of the adequate filtering techniques, time-window segmentations, application of various transformations to raw data, and feature selections for each behaviour. Tuning the data pre-processing for each behaviour enhanced the ability to predict rumination (AUC score=0.800), head in the feeder (AUC score=0.819), lying (AUC score=0.829) and standing (AUC score=0.823) behaviours. When the application of the models on goats that did not participate in the training was tested by training the models on six goats and testing it on the two other goats, the AUC score for the four behaviours decreased (0.644, 0.733, 0.741 and 0.749 respectively for rumination, head in the feeder, lying and standing).Keywords
This publication has 46 references indexed in Scilit:
- Data paper: A goat behaviour dataset combining labelled behaviours and accelerometer data for training Machine Learning detection modelsAnimal - Open Space, 2025
- Accelerometer systems as tools for health and welfare assessment in cattle and pigs – A reviewBehavioural Processes, 2020
- Behavior classification of goats using 9-axis multi sensors: The effect of imbalanced datasets on classification performanceComputers and Electronics in Agriculture, 2019
- Evaluation of pre-processing methods for the prediction of cattle behaviour from accelerometer dataComputers and Electronics in Agriculture, 2019
- Classification of sheep urination events using accelerometers to aid improved measurements of livestock contributions to nitrous oxide emissionsComputers and Electronics in Agriculture, 2018
- Behavior classification of cows fitted with motion collars: Decomposing multi-class classification into a set of binary problemsComputers and Electronics in Agriculture, 2016
- Sow-activity classification from acceleration patterns: A machine learning approachComputers and Electronics in Agriculture, 2013
- A Dynamic Sliding Window Approach for Activity Recognition2011
- Evaluation of three-dimensional accelerometers to monitor and classify behavior patterns in cattleComputers and Electronics in Agriculture, 2009
- A model for monitoring the condition of young pigs by their drinking behaviourComputers and Electronics in Agriculture, 2005