Skip to content

Read-only version: For security reasons, the Research Information System (FIS) has been temporarily replaced by this read-only version. All public content and full texts remain available; login, editing, submission and statistics are not available. Questions: fis@uni-bamberg.de

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

Publication

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; u. a. (2021): Training and Validating a Machine Learning Model for the Sensor-Based Monitoring of Lying Behavior in Dairy Cows on Pasture and in the Barn, in: Animals, Basel: MDPI, Jg. 11, Nr. 9, 2660, S. 1–25, doi: 10.3390/ani11092660.

Details

Faculty/Chair
Faculty/Professorship
Author
Schmeling, Lara
Hoang, Phan Thai
Kozar, Anastasiia
Sünkel, Michael
Thurner, Stefan
Rauch, Elke
Title of the Journal
Animals
ISSN
2076-2615
Publisher Information
MDPI : Basel
Year of publication
2021
Volume
11
Issue
9, 2660
Language
English
DOI
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.

Keywords
behavior recognition
classification
precision livestock farming
accelerometer
gyroscope
grazing
Type
Article
URI
Activation date
2021-09-28

Permalink: https://fis.uni-bamberg.de/handle/uniba/51688 · Data as JSON · Cite: BibTeX · RIS

Data as of: 2026-11-15

Restricted read-only access: login, editing and submission are temporarily disabled.