Development of Goat Behaviour Prediction with Accelerometer Data: A Machine Learning and Pre-Processing Approach
42 Pages Posted: 20 Mar 2025
Abstract
The increasing use of accelerometer data for monitoring livestock behaviour in Precision Livestock Farming (PLF) has prompted interest in optimizing machine learning models for real-time applications. This study evaluates the effects of preprocessing factors on predicting goat behaviours using accelerometer data collected in an intensive production environment. A tri-axial accelerometer placed on goats' necks recorded movement data, which was synchronized with video-based ethograms for behavioural annotation. Multiple pre-processing techniques, including filtering, windowing, overlapping and sampling frequency with several feature extraction parameters, were assessed to identify optimal combinations for behaviour classification. Various machine learning algorithms, including classification trees, logistic regression, and multilayer perceptron (MLP) models, were applied to predict eating, walking, and inactive behaviours. Results indicate that some of the pre-processing methods applied could induce inflated evaluation metrics and the importance of the selection of train and test sets. Tree-based classifiers and MLPs exhibit robust performance with average accuracies higher than 0.9. These findings highlight the potential of machine learning models in real-time behavioural monitoring to enhance livestock management with goats.
Keywords: animal monitoring, multilayer perceptron, tree classifiers, behaviour classification, Livestock farming
Suggested Citation: Suggested Citation