Hybrid ensemble learning for precision reproductive and decision support in dairy cattle

Accurate estimation of the non-return rate—the proportion of dairy cows not returning to estrus within a defined period following artificial insemination—is fundamental for optimizing precision reproductive efficiency and economic sustainability in dairy production systems. Leveraging large-scale, heterogeneous datasets to predict Non-Return Rate, however, poses substantial analytical challenges due to data imbalance, categorical complexity, and nonlinear interactions among biological and management factors. In this study, 118,996 insemination records from Iranian Holstein herds were subjected to an extensive multi-stage pre-processing pipeline to ensure data integrity and optimal feature representation for predictive modeling. Categorical dependencies were quantified via Cramér’s V; agglomerative hierarchical clustering was employed for biologically informed categorical encoding; mutual information guided feature selection; and the interquartile range criterion was used to remove outliers. Continuous variables were transformed using the Yeo–Johnson function for normalization and subsequently standardized by min–max scaling. Class imbalance was adjusted through the Synthetic Minority Over-sampling Technique for Nominal and Continuous features, preserving the structural consistency between minority and majority classes. Then, fifteen machine learning classifiers—spanning statistical, kernel-based, and tree-ensemble paradigms—were implemented and optimized within the PyCaret (Python) framework. Classifiers included Ridge Classifier, Linear Discriminant Analysis, Logistic Regression, Naïve Bayes, Quadratic Discriminant Analysis, Support Vector Machine, Dummy Classifier, Light Gradient Boosting Machine, Random Forest, Extreme Gradient Boosting, Extra Trees, Gradient Boosting, Decision Tree, K-Nearest Neighbors, and AdaBoost. Building upon these, a two-tier hybrid ensemble termed Stacking_Voting Hybrid was constructed. The first tier aggregated predictions of Light Gradient Boosting Machine, Random Forest, Extreme Gradient Booosting, and Extra Trees through majority voting, while the second tier combined this output with Gradient Boosting Classifier, Decision Tree, K-Nearest Neighbors, and AdaBoost predictions using a stacking meta-classifier. The Stacking-Voting Hybird ensemble achieved superior performance across all major metrics—accuracy (0.784), area under the Receiver Operating Characteristic curve (0.846), precision (0.889), F1 score (0.751), Cohen’s kappa (0.568), and Matthews correlation coefficient (0.591)—while RandomForest attained slightly higher recall (0.728). These results confirm the superiority of hybrid ensemble architectures in capturing complex reproductive dynamics. The proposed Stacking-Voting Hybrid framework, together with the integrated pre-processing strategy, provides robust methodological guidance for advanced predictive modeling within precision dairy cattle systems and data-driven reproductive management.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-11-24
DOI
https://doi.org/10.1038/s41598-026-79443-9
Primary Topic
Reproductive Physiology in Livestock
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Hybrid ensemble learning for precision reproductive and decision support in dairy cattle

Saeid Ansari Mahyari, Mostafa Ghaderi‐Zefrehei, Farjad Rafeie, Mustafa Muhaghegh-Dolatabady et al.
Scientific Reports
Reproductive Physiology in Livestock
article

Hybrid ensemble learning for precision reproductive and decision support in dairy cattle

Saeid Ansari Mahyari, Mostafa Ghaderi‐Zefrehei, Farjad Rafeie, Mustafa Muhaghegh-Dolatabady, Somayeh Sharifi, Mohammadreza Hashemi, Mahsa Rahmani, Parham Khalifehzadeh
article en

Abstract

Accurate estimation of the non-return rate—the proportion of dairy cows not returning to estrus within a defined period following artificial insemination—is fundamental for optimizing precision reproductive efficiency and economic sustainability in dairy production systems. Leveraging large-scale, heterogeneous datasets to predict Non-Return Rate, however, poses substantial analytical challenges due to data imbalance, categorical complexity, and nonlinear interactions among biological and management factors. In this study, 118,996 insemination records from Iranian Holstein herds were subjected to an extensive multi-stage pre-processing pipeline to ensure data integrity and optimal feature representation for predictive modeling. Categorical dependencies were quantified via Cramér’s V; agglomerative hierarchical clustering was employed for biologically informed categorical encoding; mutual information guided feature selection; and the interquartile range criterion was used to remove outliers. Continuous variables were transformed using the Yeo–Johnson function for normalization and subsequently standardized by min–max scaling. Class imbalance was adjusted through the Synthetic Minority Over-sampling Technique for Nominal and Continuous features, preserving the structural consistency between minority and majority classes. Then, fifteen machine learning classifiers—spanning statistical, kernel-based, and tree-ensemble paradigms—were implemented and optimized within the PyCaret (Python) framework. Classifiers included Ridge Classifier, Linear Discriminant Analysis, Logistic Regression, Naïve Bayes, Quadratic Discriminant Analysis, Support Vector Machine, Dummy Classifier, Light Gradient Boosting Machine, Random Forest, Extreme Gradient Boosting, Extra Trees, Gradient Boosting, Decision Tree, K-Nearest Neighbors, and AdaBoost. Building upon these, a two-tier hybrid ensemble termed Stacking_Voting Hybrid was constructed. The first tier aggregated predictions of Light Gradient Boosting Machine, Random Forest, Extreme Gradient Booosting, and Extra Trees through majority voting, while the second tier combined this output with Gradient Boosting Classifier, Decision Tree, K-Nearest Neighbors, and AdaBoost predictions using a stacking meta-classifier. The Stacking-Voting Hybird ensemble achieved superior performance across all major metrics—accuracy (0.784), area under the Receiver Operating Characteristic curve (0.846), precision (0.889), F1 score (0.751), Cohen’s kappa (0.568), and Matthews correlation coefficient (0.591)—while RandomForest attained slightly higher recall (0.728). These results confirm the superiority of hybrid ensemble architectures in capturing complex reproductive dynamics. The proposed Stacking-Voting Hybrid framework, together with the integrated pre-processing strategy, provides robust methodological guidance for advanced predictive modeling within precision dairy cattle systems and data-driven reproductive management.

Scientific Reports
Isfahan University of Technology (IR), University of Tehran (IR), Yasouj University (IR), University College of Nabi Akram (IR), University of Guilan (IR)
Zero hunger
Reproductive Physiology in Livestock
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon