PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
April 26, 2026Dairy0 citationsOpen Access

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

View Full Paper
AGAurelio Guevara-EscobarVLVicente Lemus-RamírezJGJosé Guadalupe García-Muñiz

Key Points

  • This study evaluates the effectiveness of machine learning models in predicting milk yield using biological traits instead of cow identification.
  • Developed two machine learning models: one using cow identification and another using milk quality traits and body metrics.
  • Compared performance of both models against the traditional Wood lactation model in a dataset of 62 lactations from 48 Holstein–Friesian cows.
  • Analyzed model accuracy using R2 and RMSE metrics.
  • The model using cow identification achieved an R2 value of 0.97 and an RMSE of 1.2 kg d−1.
  • The trait-based model yielded an R2 of 0.93 and an RMSE of 1.6 kg d−1, demonstrating close performance to the cow-specific model.
  • Both machine learning models outperformed the Wood model, which had R2 values below 0.90 and RMSE values exceeding 2.03 kg d−1.

Abstract

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 R2 values of 0.97 and 0.93 and RMSE values of 1.2 and 1.6 kg d−1, respectively. Both machine learning models outperformed the Wood model fitted individually to each cow (R2 2.03 kg d−1), 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.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Guevara-Escobar et al. (2026) studied this question.

synapsesocial.com/papers/69edac9b4a46254e215b45f4https://doi.org/10.3390/dairy7030031
Ask AI
Helpful
Bookmark
Share
View Full Paper