Efficient Prediction of Milk Yield with Machine Learning Models Using Cow Identification or Milk Quality Traits


Por: Guevara-Escobar A., Lemus-Ramírez V., García-Muñiz J.G., Yabuta-Osorio A.K., Vidales-Basurto C.A., Valdés-Aguirre B.

Publicada: 1 ene 2026 Ahead of Print: 1 abr 2026
Resumen:
© 2026 by the authors.Modeling milk yield in dairy cows is essential for improving management decisions, but traditional lactation curve models often fail to capture individual variability. Machine learning approaches offer greater flexibility; however, their performance in small, within-herd datasets and their reliance on explicit cow identification remain unclear, particularly in grazing systems. This study aimed to evaluate whether routinely measured biological traits can substitute for cow identification in machine learning models for predicting daily milk yield within a herd under limited data conditions. The dataset comprised 62 lactations from 48 Holstein–Friesian cows in a grazing system. Two machine learning models were developed: one including cow identification (With ID) and another excluding cow identification but incorporating milk quality traits, body weight, and body condition score (Without ID). Both models were compared with the Wood lactation model fitted to individual cows. The With ID and Without ID models achieved (Formula presented.) values of 0.97 and 0.93 and RMSE values of 1.2 and 1.6 (Formula presented.), respectively. Both machine learning models outperformed the Wood model fitted individually to each cow ((Formula presented.) < 0.90; RMSE > 2.03 (Formula presented.)), which represents an implicitly cow-specific approach. The model including cow identification therefore served as a machine learning analogue to this benchmark. Importantly, the trait-based model closely matched the performance of the cow-specific model. These results demonstrate that machine learning models based on routinely measured traits provide a practical approach for predicting within-herd milk yield from small datasets, while retaining much of the accuracy of cow-specific models.

Filiaciones:
Facultad de Ciencias Naturales, Universidad Autónoma de Querétaro, Querétaro 76230, Mexico
Centro de Enseñanza, Investigación y Extensión en Producción Animal en Altiplano, Facultad de Medicina Veterinaria y Zootecnia, Universidad Nacional Autónoma de México, Tequisquiapan, 76790, Mexico
Posgrado en Producción Animal, Departamento de Zootecnia, Universidad Autónoma Chapingo, Texcoco 56230, Mexico
Centro de Investigación en Matemáticas, A.C., Jalisco S/N, Guanajuato 36023, Mexico
Escuela de Ingeniería y Ciencias, Tecnologico de Monterrey, Ave. Epigmenio González 500, Fraccionamiento San Pablo, Querétaro 76130, Mexico
ISSN: 2624862X
Editorial
MDPI, ST ALBAN-ANLAGE 66, CH-4052 BASEL, SWITZERLAND, Suiza
Tipo de documento: Article
Volumen: 7 Número: 3
Páginas:
WOS Id: 001805133600001
imagen gold

MÉTRICAS