Daniel Alexander Méndez , Blanca Fajardo , Sergi Sanjuan , Jose Manuel Calabuig , Roger Arnau , Arantxa Villagrá , Salvador Calvet-Sanz , Fernando Estelles
{"title":"利用加速度计数据预测山羊行为的发展:一种机器学习和预处理方法","authors":"Daniel Alexander Méndez , Blanca Fajardo , Sergi Sanjuan , Jose Manuel Calabuig , Roger Arnau , Arantxa Villagrá , Salvador Calvet-Sanz , Fernando Estelles","doi":"10.1016/j.compag.2025.110701","DOIUrl":null,"url":null,"abstract":"<div><div>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 pre-processing factors on predicting goat behaviours using accelerometer data collected in an intensive production environment. A triaxial 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 <em>eating</em>, <em>walking</em>, and <em>inactive</em> 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 demonstrate robust performance, achieving average accuracies above 0.9. Battery performance demonstrate that MLP extends the battery life of the accelerometer device by ∼25 %. These findings highlight the potential of machine learning models in real-time behavioural monitoring to enhance livestock management with goats.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"237 ","pages":"Article 110701"},"PeriodicalIF":7.7000,"publicationDate":"2025-06-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Development of goat behaviour prediction with accelerometer data: a machine learning and pre-processing approach\",\"authors\":\"Daniel Alexander Méndez , Blanca Fajardo , Sergi Sanjuan , Jose Manuel Calabuig , Roger Arnau , Arantxa Villagrá , Salvador Calvet-Sanz , Fernando Estelles\",\"doi\":\"10.1016/j.compag.2025.110701\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>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 pre-processing factors on predicting goat behaviours using accelerometer data collected in an intensive production environment. A triaxial 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 <em>eating</em>, <em>walking</em>, and <em>inactive</em> 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 demonstrate robust performance, achieving average accuracies above 0.9. Battery performance demonstrate that MLP extends the battery life of the accelerometer device by ∼25 %. These findings highlight the potential of machine learning models in real-time behavioural monitoring to enhance livestock management with goats.</div></div>\",\"PeriodicalId\":50627,\"journal\":{\"name\":\"Computers and Electronics in Agriculture\",\"volume\":\"237 \",\"pages\":\"Article 110701\"},\"PeriodicalIF\":7.7000,\"publicationDate\":\"2025-06-26\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computers and Electronics in Agriculture\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0168169925008075\",\"RegionNum\":1,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURE, MULTIDISCIPLINARY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169925008075","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
Development of goat behaviour prediction with accelerometer data: a machine learning and pre-processing approach
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 pre-processing factors on predicting goat behaviours using accelerometer data collected in an intensive production environment. A triaxial 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 demonstrate robust performance, achieving average accuracies above 0.9. Battery performance demonstrate that MLP extends the battery life of the accelerometer device by ∼25 %. These findings highlight the potential of machine learning models in real-time behavioural monitoring to enhance livestock management with goats.
期刊介绍:
Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.