Classification of lameness in dairy cows using automatic milking system data and body condition score with machine learning

Lameness is a major welfare and productivity concern in dairy herds. This study investigated the influence of animal traits (parity, BCS) and environmental factors (farm, season) on locomotion score (LS) in lactating cows and assessed the impact of lameness on milking parameters using data from 3 Italian farms equipped with automatic milking systems (AMS). A total of 323 cows were evaluated biweekly for LS and BCS over 7 mo. The AMS data (n = 42,569 observations) were collected and analyzed with linear mixed models to assess relationships between LS and milking parameters. Multiple correspondence analysis was performed to explore variable associations, and a machine learning model (extreme gradient boosting) was trained to classify cows into 3 lameness classes. Cows in parity 3 or greater and thin cows showed significantly higher LS. Severely lame cows had reduced daily milk yield, fewer milkings per day, longer milking duration, and delayed milk flow, particularly in rear quarters. The machine learning algorithm, based on milking and cow-level features, achieved a balanced accuracy of 92% in classifying cows as nonlame, mildly lame, or severely lame. Shapley values revealed that BCS, parity, milk flow, and milking frequency were key predictive features. These findings confirm the potential of AMS and BCS data to support early detection of lameness. Integrating these data and machine learning offered an efficient approach to lameness monitoring without additional equipment.

Authors

Institutions

Publication Details

Journal
Journal of Dairy Science
Published
2026-01-02
DOI
https://doi.org/10.3168/jds.2025-27107
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

Classification of lameness in dairy cows using automatic milking system data and body condition score with machine learning

Marta Pavolini, Sara Mondini, A. Sandrucci, Luciana Bava et al.
Journal of Dairy Science
Animal Behavior and Welfare Studies
article

Classification of lameness in dairy cows using automatic milking system data and body condition score with machine learning

Marta Pavolini, Sara Mondini, A. Sandrucci, Luciana Bava, Giulia Gislon, Alberto Tamburini, Maddalena Zucali
article en

Abstract

Lameness is a major welfare and productivity concern in dairy herds. This study investigated the influence of animal traits (parity, BCS) and environmental factors (farm, season) on locomotion score (LS) in lactating cows and assessed the impact of lameness on milking parameters using data from 3 Italian farms equipped with automatic milking systems (AMS). A total of 323 cows were evaluated biweekly for LS and BCS over 7 mo. The AMS data (n = 42,569 observations) were collected and analyzed with linear mixed models to assess relationships between LS and milking parameters. Multiple correspondence analysis was performed to explore variable associations, and a machine learning model (extreme gradient boosting) was trained to classify cows into 3 lameness classes. Cows in parity 3 or greater and thin cows showed significantly higher LS. Severely lame cows had reduced daily milk yield, fewer milkings per day, longer milking duration, and delayed milk flow, particularly in rear quarters. The machine learning algorithm, based on milking and cow-level features, achieved a balanced accuracy of 92% in classifying cows as nonlame, mildly lame, or severely lame. Shapley values revealed that BCS, parity, milk flow, and milking frequency were key predictive features. These findings confirm the potential of AMS and BCS data to support early detection of lameness. Integrating these data and machine learning offered an efficient approach to lameness monitoring without additional equipment.

Journal of Dairy ScienceVol. 109(3)
University of Milan (IT)
Openalex Percentile: Top 98%
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.

Classification of lameness in dairy cows using automatic milking system data and body condition score with machine learning — Marta Pavolini, Sara Mondini, et al. · Journal of Dairy Science (2026) | TGRS Research Map | TGRS