Cargando…

Machine Learning to Detect Posture and Behavior in Dairy Cows: Information from an Accelerometer on the Animal’s Left Flank

SIMPLE SUMMARY: This study analyzed the possibility of automatically detecting dairy cow behavior by combining the use of a single triaxial accelerometer applied to the animal’s left flank with a machine learning technique. This combination enabled the detection of posture and the main types of beha...

Descripción completa

Detalles Bibliográficos
Autores principales: Balasso, Paolo, Marchesini, Giorgio, Ughelini, Nicola, Serva, Lorenzo, Andrighetto, Igino
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8532600/
https://www.ncbi.nlm.nih.gov/pubmed/34679991
http://dx.doi.org/10.3390/ani11102972
_version_ 1784587105155940352
author Balasso, Paolo
Marchesini, Giorgio
Ughelini, Nicola
Serva, Lorenzo
Andrighetto, Igino
author_facet Balasso, Paolo
Marchesini, Giorgio
Ughelini, Nicola
Serva, Lorenzo
Andrighetto, Igino
author_sort Balasso, Paolo
collection PubMed
description SIMPLE SUMMARY: This study analyzed the possibility of automatically detecting dairy cow behavior by combining the use of a single triaxial accelerometer applied to the animal’s left flank with a machine learning technique. This combination enabled the detection of posture and the main types of behavior that are extremely useful in evaluating the animal’s welfare and health such as resting, feeding, and rumination with a high degree of accuracy. The novelty of the study was the success in reaching a high accuracy in detecting five different behaviors and the animal posture by using a single sensor and allowing farmers to save money. To the best of our knowledge, this is the first study that has successfully explored the feasibility of locating a sensor on the animal’s left flank, showing the opportunity of automatically measuring some physiological parameters, such as those ones related to respiration and rumen health, in a non-invasive way. ABSTRACT: The aim of the present study was to develop a model to identify posture and behavior from data collected by a triaxial accelerometer located on the left flank of dairy cows and evaluate its accuracy and precision. Twelve Italian Red-and-White lactating cows were equipped with an accelerometer and observed on average for 136 ± 29 min per cow by two trained operators as a reference. The acceleration data were grouped in time windows of 8 s overlapping by 33.0%, for a total of 35,133 rows. For each row, 32 different features were extracted and used by machine learning algorithms for the classification of posture and behavior. To build up a predictive model, the dataset was split in training and testing datasets, characterized by 75.0 and 25.0% of the observations, respectively. Four algorithms were tested: Random Forest, K Nearest Neighbors, Extreme Boosting Algorithm (XGB), and Support Vector Machine. The XGB model showed the best accuracy (0.99) and Cohen’s kappa (0.99) in predicting posture, whereas the Random Forest model had the highest overall accuracy in predicting behaviors (0.76), showing a balanced accuracy from 0.96 for resting to 0.77 for moving. Overall, very accurate detection of the posture and resting behavior were achieved.
format Online
Article
Text
id pubmed-8532600
institution National Center for Biotechnology Information
language English
publishDate 2021
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-85326002021-10-23 Machine Learning to Detect Posture and Behavior in Dairy Cows: Information from an Accelerometer on the Animal’s Left Flank Balasso, Paolo Marchesini, Giorgio Ughelini, Nicola Serva, Lorenzo Andrighetto, Igino Animals (Basel) Article SIMPLE SUMMARY: This study analyzed the possibility of automatically detecting dairy cow behavior by combining the use of a single triaxial accelerometer applied to the animal’s left flank with a machine learning technique. This combination enabled the detection of posture and the main types of behavior that are extremely useful in evaluating the animal’s welfare and health such as resting, feeding, and rumination with a high degree of accuracy. The novelty of the study was the success in reaching a high accuracy in detecting five different behaviors and the animal posture by using a single sensor and allowing farmers to save money. To the best of our knowledge, this is the first study that has successfully explored the feasibility of locating a sensor on the animal’s left flank, showing the opportunity of automatically measuring some physiological parameters, such as those ones related to respiration and rumen health, in a non-invasive way. ABSTRACT: The aim of the present study was to develop a model to identify posture and behavior from data collected by a triaxial accelerometer located on the left flank of dairy cows and evaluate its accuracy and precision. Twelve Italian Red-and-White lactating cows were equipped with an accelerometer and observed on average for 136 ± 29 min per cow by two trained operators as a reference. The acceleration data were grouped in time windows of 8 s overlapping by 33.0%, for a total of 35,133 rows. For each row, 32 different features were extracted and used by machine learning algorithms for the classification of posture and behavior. To build up a predictive model, the dataset was split in training and testing datasets, characterized by 75.0 and 25.0% of the observations, respectively. Four algorithms were tested: Random Forest, K Nearest Neighbors, Extreme Boosting Algorithm (XGB), and Support Vector Machine. The XGB model showed the best accuracy (0.99) and Cohen’s kappa (0.99) in predicting posture, whereas the Random Forest model had the highest overall accuracy in predicting behaviors (0.76), showing a balanced accuracy from 0.96 for resting to 0.77 for moving. Overall, very accurate detection of the posture and resting behavior were achieved. MDPI 2021-10-15 /pmc/articles/PMC8532600/ /pubmed/34679991 http://dx.doi.org/10.3390/ani11102972 Text en © 2021 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Balasso, Paolo
Marchesini, Giorgio
Ughelini, Nicola
Serva, Lorenzo
Andrighetto, Igino
Machine Learning to Detect Posture and Behavior in Dairy Cows: Information from an Accelerometer on the Animal’s Left Flank
title Machine Learning to Detect Posture and Behavior in Dairy Cows: Information from an Accelerometer on the Animal’s Left Flank
title_full Machine Learning to Detect Posture and Behavior in Dairy Cows: Information from an Accelerometer on the Animal’s Left Flank
title_fullStr Machine Learning to Detect Posture and Behavior in Dairy Cows: Information from an Accelerometer on the Animal’s Left Flank
title_full_unstemmed Machine Learning to Detect Posture and Behavior in Dairy Cows: Information from an Accelerometer on the Animal’s Left Flank
title_short Machine Learning to Detect Posture and Behavior in Dairy Cows: Information from an Accelerometer on the Animal’s Left Flank
title_sort machine learning to detect posture and behavior in dairy cows: information from an accelerometer on the animal’s left flank
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8532600/
https://www.ncbi.nlm.nih.gov/pubmed/34679991
http://dx.doi.org/10.3390/ani11102972
work_keys_str_mv AT balassopaolo machinelearningtodetectpostureandbehaviorindairycowsinformationfromanaccelerometerontheanimalsleftflank
AT marchesinigiorgio machinelearningtodetectpostureandbehaviorindairycowsinformationfromanaccelerometerontheanimalsleftflank
AT ughelininicola machinelearningtodetectpostureandbehaviorindairycowsinformationfromanaccelerometerontheanimalsleftflank
AT servalorenzo machinelearningtodetectpostureandbehaviorindairycowsinformationfromanaccelerometerontheanimalsleftflank
AT andrighettoigino machinelearningtodetectpostureandbehaviorindairycowsinformationfromanaccelerometerontheanimalsleftflank