Development of Goat Behaviour Prediction with Accelerometer Data: A Machine Learning and Pre-Processing Approach

42 Pages Posted: 20 Mar 2025

See all articles by Daniel Alexander Méndez

Daniel Alexander Méndez

Polytechnic University of Valencia

Blanca Fajardo Viloria

Polytechnic University of Valencia

Sergi Sanjuan

Polytechnic University of Valencia

Jose Manuel Calabuig

Polytechnic University of Valencia

Roger Arnau

Polytechnic University of Valencia

Arantxa Villagrá

Centro de Tecnología Animal CITA-IVIA

Salvador Calvet

Polytechnic University of Valencia

Fernando Estellés

Polytechnic University of Valencia

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

Méndez, Daniel Alexander and Fajardo Viloria, Blanca and Sanjuan, Sergi and Calabuig, Jose Manuel and Arnau, Roger and Villagrá, Arantxa and Calvet, Salvador and Estellés, Fernando, Development of Goat Behaviour Prediction with Accelerometer Data: A Machine Learning and Pre-Processing Approach. Available at SSRN: https://ssrn.com/abstract=5183988 or http://dx.doi.org/10.2139/ssrn.5183988

Daniel Alexander Méndez (Contact Author)

Polytechnic University of Valencia ( email )

Spain

Blanca Fajardo Viloria

Polytechnic University of Valencia ( email )

Spain

Sergi Sanjuan

Polytechnic University of Valencia ( email )

Jose Manuel Calabuig

Polytechnic University of Valencia ( email )

Spain

Roger Arnau

Polytechnic University of Valencia ( email )

Spain

Arantxa Villagrá

Centro de Tecnología Animal CITA-IVIA ( email )

Salvador Calvet

Polytechnic University of Valencia ( email )

Spain

Fernando Estellés

Polytechnic University of Valencia ( email )

Spain

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
42
Abstract Views
172
PlumX Metrics