Improving Lameness Detection in Cows: A Machine Learning Algorithm Application

The deployment of diverse data-generating technologies in livestock farming holds the promise of early disease detection and improved animal well-being.In this paper, we combine routinely collected dairy farm and herd data with weather and high frequency sensor data from six farms to predict new lameness events in various future periods, spanning from the following day to three weeks. A Random Forest classifier, using input features selected by the Boruta Algorithm, was used for the prediction task; effects of individual features were further assessed using partial dependence plots.We achieve precision scores of up to 93\% when predicting lameness for the next three weeks and when using information from the last three weeks, combined with a balanced accuracy of 79\%. Removing sensor data results have tendency to reduce the precision for predictions, especially when using information from the last one,two or three weeks.Moving to a larger dataset (without sensor data) of 44 farms keeps the similar balanced accuracy but reduces precision by more than 30\%, revealing a substantial a trade-off in model quality between false positives (false lameness alerts) and false negatives (missed lameness events).Sensor data holds promise to further improve the precision of these models, but can be partially compensated by high resolution data from other systems, such as automated milking systems.

Publication Details

Journal
Figshare
Published
2024-08-10
DOI
https://doi.org/10.6084/m9.figshare.26531878
Primary Topic
Animal Behavior and Welfare Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Improving Lameness Detection in Cows: A Machine Learning Algorithm Application

Figshare
Animal Behavior and Welfare Studies
article

Improving Lameness Detection in Cows: A Machine Learning Algorithm Application

article en

Abstract

The deployment of diverse data-generating technologies in livestock farming holds the promise of early disease detection and improved animal well-being.In this paper, we combine routinely collected dairy farm and herd data with weather and high frequency sensor data from six farms to predict new lameness events in various future periods, spanning from the following day to three weeks. A Random Forest classifier, using input features selected by the Boruta Algorithm, was used for the prediction task; effects of individual features were further assessed using partial dependence plots.We achieve precision scores of up to 93\% when predicting lameness for the next three weeks and when using information from the last three weeks, combined with a balanced accuracy of 79\%. Removing sensor data results have tendency to reduce the precision for predictions, especially when using information from the last one,two or three weeks.Moving to a larger dataset (without sensor data) of 44 farms keeps the similar balanced accuracy but reduces precision by more than 30\%, revealing a substantial a trade-off in model quality between false positives (false lameness alerts) and false negatives (missed lameness events).Sensor data holds promise to further improve the precision of these models, but can be partially compensated by high resolution data from other systems, such as automated milking systems.

Figshare
Zero hunger
Openalex Percentile: Top 50%
Animal Behavior and Welfare Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.