Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Vet. Sci.

Sec. Animal Behavior and Welfare

Supervised Machine Learning Approaches for Early Detection of Metabolic and Udder Health Disorders in Dairy Cows Using Sensor-Derived Data

Provisionally accepted
Akvilė  GirdauskaitėAkvilė Girdauskaitė1,2*Samanta  GrigėSamanta Grigė2Karina  DžermeikaitėKarina Džermeikaitė2Justina  KrištolaitytėJustina Krištolaitytė2Dovilė  MalašauskienėDovilė Malašauskienė2Mindaugas  TelevičiusMindaugas Televičius2Greta  ŠertvytytėGreta Šertvytytė2Gabija  LembovičiūtėGabija Lembovičiūtė2Ramūnas  AntanaitisRamūnas Antanaitis2
  • 1Coordinating Center for Rare and Undiagnosed Diseases, Hospital of Lithuanian University of Health Sciences Kaunas Clinics, Kaunas, Lithuania
  • 2Lietuvos sveikatos mokslu universitetas Veterinarijos akademija, Kaunas, Lithuania

The final, formatted version of the article will be published soon.

This study assessed five supervised machine learning (ML) models. Automated devices that continuously captured milk composition and behavioral data were used to monitor 206 Holstein cows from two commercial dairy farms. Milk yield, fat, protein, lactose, fat-to-protein ratio (FPR), somatic cell count (SCC), rumination time (RT), and body temperature were among the parameters that were noted. Cows were categorized as clinically healthy (n = 45), subclinical ketosis (n = 91), subclinical mastitis (n = 28), or clinical mastitis (n = 42) based on clinical examination, blood β-hydroxybutyrate (BHB) concentration, and milk indicators. Random Forest achieved the highest classification accuracy (0.857), followed by Gradient Boosting and Logistic Regression (0.833), while Decision Tree and Multilayer Perceptron reached 0.810. Compared to clinically healthy cows (4.45 ± 0.54%; 477.0 ± 36.0 min/day), subclinical ketosis cows had a greater milk fat content (5.21 ± 0.72%) and a shorter RT (336.9 ± 94.2 min/day). In comparison to clinically healthy cows (64.0 × 10³ cells/mL; 4.63 ± 0.16%), cows with clinical mastitis showed significantly greater SCC (416.8 × 10³ cells/mL) and lower lactose levels (4.56 ± 0.24%). These results demonstrate that integrating sensor-derived milk and behavioral data with ML algorithms enables early, non-invasive detection of health disorders, supporting proactive herd management.

Keywords: dairy cows, machine learning, Early lactation, Innovative technologies, precision livestockfarming

Received: 16 Oct 2025; Accepted: 06 Nov 2025.

Copyright: © 2025 Girdauskaitė, Grigė, Džermeikaitė, Krištolaitytė, Malašauskienė, Televičius, Šertvytytė, Lembovičiūtė and Antanaitis. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Akvilė Girdauskaitė, akvile.girdauskaite@lsmu.lt

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.