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.

Classification of lameness in dairy cows using automatic milking system data and body condition score with machine learning / S. Mondini, G. Gislon, M. Zucali, M. Pavolini, L. Bava, A. Tamburini, A. Sandrucci. - In: JOURNAL OF DAIRY SCIENCE. - ISSN 1525-3198. - (2026 Jan 02). [Epub ahead of print] [10.3168/jds.2025-27107]

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

S. Mondini
Primo
;
G. Gislon
Secondo
;
M. Zucali
;
M. Pavolini;L. Bava;A. Tamburini
Penultimo
;
A. Sandrucci
Ultimo
2026

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.
body condition score; quarter milk flow; welfare; milking data
Settore AGRI-09/C - Zootecnia speciale
   Centro Nazionale per le Tecnologie dell'Agricoltura - AGRITECH
   AGRITECH
   MINISTERO DELL'UNIVERSITA' E DELLA RICERCA
2-gen-2026
2-gen-2026
Article (author)
File in questo prodotto:
File Dimensione Formato  
1-s2.0-S002203022501063X-main.pdf

accesso aperto

Tipologia: Publisher's version/PDF
Licenza: Creative commons
Dimensione 1.75 MB
Formato Adobe PDF
1.75 MB Adobe PDF Visualizza/Apri
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2434/1211038
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
  • OpenAlex ND
social impact