• Home
  • Search
  • Real-time milk analysis integrated with stacking ensemble learning as a tool for the daily prediction of cheese-making traits in Holstein cattle
  • Cite Icon37
  • https://doi.org/10.3168/jds.2021-21426Copy DOI Icon

Real-time milk analysis integrated with stacking ensemble learning as a tool for the daily prediction of cheese-making traits in Holstein cattle

Show More
  • Abstract
  • Highlights & Summary
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Cheese-making traits in dairy cattle are important to the dairy industry but are difficult to measure at the individual level because there are limitations on collecting phenotypic information. Mid-infrared spectroscopy has its advantages, but it can only be used during monthly milk recordings. Recently, in-line devices for real-time analysis of milk quality have been developed. The AfiLab recording system (Afimilk) offers significant benefits as phenotypes can be collected from each cow at each milking session. The objective of this study was to assess the potential of integrating AfiLab real-time milk analyzer measures with the stacking ensemble learning technique using heterogeneous base learners for the in-line daily monitoring of cheese-making traits in Holstein cattle with a view to developing a precision livestock farming system for monitoring the technological quality of milk. Data and samples for wet-laboratory analyses were collected from 499 Holstein cows belonging to 2 farms where the AfiLab system was installed. The traits of concern were 9 milk coagulation traits [3 milk coagulation properties (MCP), and 6 curd firming traits (CFt)], and 7 cheese-making traits [3 cheese yield (CY) traits, and 4 milk nutrient recovery in the curd (REC) traits]. The near-infrared AfiLab spectral data and on-farm information (days in milk and parity) were used to assess the predictive ability of different statistical methods [elastic net (EN), gradient boosting machine (GBM), extreme gradient boosting (XGBoost), and artificial neural network (ANN)] across different cross-validation scenarios. These statistical methods were considered the base learners, which were then combined in a stacking ensemble learning. Results indicate that including information on the cows (days in milk and parity) in the AfiLab infrared prediction increased its accuracy by 10.3% for traditional MCP, 13.8% for curd firming, 9.8% for CY, and 11.2% for REC traits compared with those obtained from near-infrared AfiLab alone. The statistical approaches exhibited high prediction accuracies (R2) averaged across the cross-validation scenarios for traditional MCP (0.58 for ANN, 0.55 for EN and GBM, 0.52 for XGBoost, and 0.62 for stacking ensemble), CFt (0.55 for ANN, 0.54 for EN and GBM, 0.53 for XGBoost, and 0.61 for stacking ensemble), and similar R2 averages for CY and REC (0.55 for ANN, 0.54 for EN and GBM, 0.53 for XGBoost, and 0.61 for stacking ensemble). The ANN approach was more accurate than the other base learners (EN, GBM, and XGBoost) and improved accuracy across cross-validation scenarios on average by 7% for traditional MCP, 5% for CFt, 8% for CY, and 7% for REC. The stacking ensemble method improved prediction accuracy by 3% to 31% for traditional MCP, 2% to 26% for CFt, 1% to 38% for CY traits, and 2% to 27% for REC traits compared with the base learners. The prediction accuracies of the different approaches evaluated tended to decrease from the 10-fold cross-validation to the independent validation scenario, although there was a smaller reduction in prediction accuracy with the stacking ensemble learning technique across all the cross-validation scenarios. Our results show that combining in-line on-farm information with stacking ensemble machine learning represents an effective alternative for obtaining robust daily predictions of milk cheese-making traits.

Loading PDF

Similar Papers
  • PDF
  • Research Article
  • Citations3

Highly efficient stacking ensemble learning model for automated keratoconus screening

  • Jun 24, 2025
  • Eye and Vision
  • Zahra J Muhsin +6
  • Research Article
  • Citations1

Stacking ensemble machine learning for predicting photodetector performance under varying illumination intensities

  • Jan 13, 2026
  • Scientific Reports
  • Ali Öter +4
  • Research Article
  • Citations38

Outage duration prediction under typhoon disaster with stacking ensemble learning

  • Sep 01, 2023
  • Reliability Engineering & System Safety
  • Hui Hou +5
  • Conference Article
  • Citations1

Implementation of Stacking Ensemble Learning for Bank Term Deposit Acceptance Classification

  • Jun 06, 2024
  • Bangun Watono +2
  • Research Article

Identification of Candidate Variants Associated with Milk Production, Health and Reproductive Traits for Holstein Cows in Southern China

  • Sep 26, 2025
  • Agriculture
  • Tingxian Deng +6
  • Conference Article

Construction of a Stacking Ensemble Learning Model for Academic Performance in Digital Media Majors

  • Jun 20, 2025
  • Wu Wang +2
  • Research Article
  • Citations20

Determination of malathion content in sorghum grains using hyperspectral imaging technology combined with stacked machine learning models

  • Aug 08, 2024
  • Journal of Food Composition and Analysis
  • Jianheng Peng +9
  • Research Article
  • Citations3

A multiple-phenotype imputation procedure as a method for prediction of cheese-making efficiency in Spanish Assaf sheep.

  • Nov 17, 2020
  • Journal of animal science
  • Héctor Marina +7
  • Research Article
  • Citations5

Application of stacking ensemble technique in agriculture for prediction of crop yield

  • Jun 13, 2022
  • International journal of health sciences
  • Shivani S Kale +2
  • Research Article

Consensus-based feature selection and Bayesian-optimized stacking ensembles for comprehensive fault diagnosis in series-compensated ultra-high-voltage power systems.

  • Apr 26, 2026
  • Scientific reports
  • Rab Nawaz +3
  • PDF
  • Research Article
  • Citations7

Research on Sand-Dust Storm Forecasting Based on Deep Neural Network With Stacking Ensemble Learning

  • Jan 01, 2022
  • IEEE Access
  • Qing-Dao-Er-Ji Ren +2
  • Research Article
  • Citations1

Exploration of Neuropeptide Y Gene Variants and its Association with Growth, First Lactation Reproduction and Production Traits in Sahiwal Cattle

  • Oct 23, 2020
  • Indian Journal of Animal Research
  • P K Pathak +5
  • Research Article
  • Citations34

Estimation of additive and non-additive genetic effects for fertility and reproduction traits in North American Holstein cattle using genomic information.

  • Jan 07, 2020
  • Journal of Animal Breeding and Genetics
  • Kristen Alves +5
  • Research Article
  • Citations16

Genome-enable prediction for health traits using high-density SNP panel in US Holstein cattle.

  • Jan 07, 2020
  • Animal Genetics
  • F Lopes +11
  • Dissertation

Genome-wide interaction analyses of milk production traits in dairy cattle

  • Oct 07, 2020
  • Haibo Lu
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.