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
- Saeid Ansari Mahyari (ORCID: https://orcid.org/0000-0003-1115-5043)
- Mostafa Ghaderi‐Zefrehei (ORCID: https://orcid.org/0000-0002-9710-883X)
- Farjad Rafeie (ORCID: https://orcid.org/0000-0001-8083-0773)
- Mustafa Muhaghegh-Dolatabady (ORCID: https://orcid.org/0000-0003-4876-1514)
- Somayeh Sharifi (ORCID: https://orcid.org/0000-0001-6003-8754)
- Mohammadreza Hashemi
- Mahsa Rahmani
- Parham Khalifehzadeh
Institutions
- Isfahan University of Technology (IR)
- University of Tehran (IR)
- Yasouj University (IR)
- University College of Nabi Akram (IR)
- University of Guilan (IR)
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