Cargando…

Training and Validating a Machine Learning Model for the Sensor-Based Monitoring of Lying Behavior in Dairy Cows on Pasture and in the Barn

SIMPLE SUMMARY: There are various systems available for health monitoring and heat detection in dairy cows. By continuously monitoring different behavioral patterns (e.g., lying, ruminating, and feeding), these systems detect behavioral changes linked to health disorders and estrous. Most of the sys...

Descripción completa

Detalles Bibliográficos
Autores principales: Schmeling, Lara, Elmamooz, Golnaz, Hoang, Phan Thai, Kozar, Anastasiia, Nicklas, Daniela, Sünkel, Michael, Thurner, Stefan, Rauch, Elke
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8468529/
https://www.ncbi.nlm.nih.gov/pubmed/34573627
http://dx.doi.org/10.3390/ani11092660
_version_ 1784573693575299072
author Schmeling, Lara
Elmamooz, Golnaz
Hoang, Phan Thai
Kozar, Anastasiia
Nicklas, Daniela
Sünkel, Michael
Thurner, Stefan
Rauch, Elke
author_facet Schmeling, Lara
Elmamooz, Golnaz
Hoang, Phan Thai
Kozar, Anastasiia
Nicklas, Daniela
Sünkel, Michael
Thurner, Stefan
Rauch, Elke
author_sort Schmeling, Lara
collection PubMed
description SIMPLE SUMMARY: There are various systems available for health monitoring and heat detection in dairy cows. By continuously monitoring different behavioral patterns (e.g., lying, ruminating, and feeding), these systems detect behavioral changes linked to health disorders and estrous. Most of the systems were developed for cows kept indoors, and only a few systems are available for pasture-based farms. The systems developed for the barn failed to detect the targeted behavior and thereby its changes on the pasture and vice versa. Therefore, our goal was to train and validate a machine learning model for the automated prediction of lying behavior in dairy cows kept on pastures, as well as indoors. Data collection was conducted on three dairy farms where cows were equipped with the collar-based prototype of the monitoring system and recorded with cameras in parallel. The derived dataset was used to develop the machine learning model. The model performed well in predicting lying behavior in dairy cows both on the pasture and in the barn. Therefore, the building of the model presents a successful first step towards the development of a monitoring system for dairy cows kept on pasture and in the barn. ABSTRACT: Monitoring systems assist farmers in monitoring the health of dairy cows by predicting behavioral patterns (e.g., lying) and their changes with machine learning models. However, the available systems were developed either for indoors or for pasture and fail to predict the behavior in other locations. Therefore, the goal of our study was to train and evaluate a model for the prediction of lying on a pasture and in the barn. On three farms, 7–11 dairy cows each were equipped with the prototype of the monitoring system containing an accelerometer, a magnetometer and a gyroscope. Video observations on the pasture and in the barn provided ground truth data. We used 34.5 h of datasets from pasture for training and 480.5 h from both locations for evaluating. In comparison, random forest, an orientation-independent feature set with 5 s windows without overlap, achieved the highest accuracy. Sensitivity, specificity and accuracy were 95.6%, 80.5% and 87.4%, respectively. Accuracy on the pasture (93.2%) exceeded accuracy in the barn (81.4%). Ruminating while standing was the most confused with lying. Out of individual lying bouts, 95.6 and 93.4% were identified on the pasture and in the barn, respectively. Adding a model for standing up events and lying down events could improve the prediction of lying in the barn.
format Online
Article
Text
id pubmed-8468529
institution National Center for Biotechnology Information
language English
publishDate 2021
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-84685292021-09-27 Training and Validating a Machine Learning Model for the Sensor-Based Monitoring of Lying Behavior in Dairy Cows on Pasture and in the Barn Schmeling, Lara Elmamooz, Golnaz Hoang, Phan Thai Kozar, Anastasiia Nicklas, Daniela Sünkel, Michael Thurner, Stefan Rauch, Elke Animals (Basel) Article SIMPLE SUMMARY: There are various systems available for health monitoring and heat detection in dairy cows. By continuously monitoring different behavioral patterns (e.g., lying, ruminating, and feeding), these systems detect behavioral changes linked to health disorders and estrous. Most of the systems were developed for cows kept indoors, and only a few systems are available for pasture-based farms. The systems developed for the barn failed to detect the targeted behavior and thereby its changes on the pasture and vice versa. Therefore, our goal was to train and validate a machine learning model for the automated prediction of lying behavior in dairy cows kept on pastures, as well as indoors. Data collection was conducted on three dairy farms where cows were equipped with the collar-based prototype of the monitoring system and recorded with cameras in parallel. The derived dataset was used to develop the machine learning model. The model performed well in predicting lying behavior in dairy cows both on the pasture and in the barn. Therefore, the building of the model presents a successful first step towards the development of a monitoring system for dairy cows kept on pasture and in the barn. ABSTRACT: Monitoring systems assist farmers in monitoring the health of dairy cows by predicting behavioral patterns (e.g., lying) and their changes with machine learning models. However, the available systems were developed either for indoors or for pasture and fail to predict the behavior in other locations. Therefore, the goal of our study was to train and evaluate a model for the prediction of lying on a pasture and in the barn. On three farms, 7–11 dairy cows each were equipped with the prototype of the monitoring system containing an accelerometer, a magnetometer and a gyroscope. Video observations on the pasture and in the barn provided ground truth data. We used 34.5 h of datasets from pasture for training and 480.5 h from both locations for evaluating. In comparison, random forest, an orientation-independent feature set with 5 s windows without overlap, achieved the highest accuracy. Sensitivity, specificity and accuracy were 95.6%, 80.5% and 87.4%, respectively. Accuracy on the pasture (93.2%) exceeded accuracy in the barn (81.4%). Ruminating while standing was the most confused with lying. Out of individual lying bouts, 95.6 and 93.4% were identified on the pasture and in the barn, respectively. Adding a model for standing up events and lying down events could improve the prediction of lying in the barn. MDPI 2021-09-10 /pmc/articles/PMC8468529/ /pubmed/34573627 http://dx.doi.org/10.3390/ani11092660 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
Schmeling, Lara
Elmamooz, Golnaz
Hoang, Phan Thai
Kozar, Anastasiia
Nicklas, Daniela
Sünkel, Michael
Thurner, Stefan
Rauch, Elke
Training and Validating a Machine Learning Model for the Sensor-Based Monitoring of Lying Behavior in Dairy Cows on Pasture and in the Barn
title Training and Validating a Machine Learning Model for the Sensor-Based Monitoring of Lying Behavior in Dairy Cows on Pasture and in the Barn
title_full Training and Validating a Machine Learning Model for the Sensor-Based Monitoring of Lying Behavior in Dairy Cows on Pasture and in the Barn
title_fullStr Training and Validating a Machine Learning Model for the Sensor-Based Monitoring of Lying Behavior in Dairy Cows on Pasture and in the Barn
title_full_unstemmed Training and Validating a Machine Learning Model for the Sensor-Based Monitoring of Lying Behavior in Dairy Cows on Pasture and in the Barn
title_short Training and Validating a Machine Learning Model for the Sensor-Based Monitoring of Lying Behavior in Dairy Cows on Pasture and in the Barn
title_sort training and validating a machine learning model for the sensor-based monitoring of lying behavior in dairy cows on pasture and in the barn
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8468529/
https://www.ncbi.nlm.nih.gov/pubmed/34573627
http://dx.doi.org/10.3390/ani11092660
work_keys_str_mv AT schmelinglara trainingandvalidatingamachinelearningmodelforthesensorbasedmonitoringoflyingbehaviorindairycowsonpastureandinthebarn
AT elmamoozgolnaz trainingandvalidatingamachinelearningmodelforthesensorbasedmonitoringoflyingbehaviorindairycowsonpastureandinthebarn
AT hoangphanthai trainingandvalidatingamachinelearningmodelforthesensorbasedmonitoringoflyingbehaviorindairycowsonpastureandinthebarn
AT kozaranastasiia trainingandvalidatingamachinelearningmodelforthesensorbasedmonitoringoflyingbehaviorindairycowsonpastureandinthebarn
AT nicklasdaniela trainingandvalidatingamachinelearningmodelforthesensorbasedmonitoringoflyingbehaviorindairycowsonpastureandinthebarn
AT sunkelmichael trainingandvalidatingamachinelearningmodelforthesensorbasedmonitoringoflyingbehaviorindairycowsonpastureandinthebarn
AT thurnerstefan trainingandvalidatingamachinelearningmodelforthesensorbasedmonitoringoflyingbehaviorindairycowsonpastureandinthebarn
AT rauchelke trainingandvalidatingamachinelearningmodelforthesensorbasedmonitoringoflyingbehaviorindairycowsonpastureandinthebarn