Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jan;104(1):104458.
doi: 10.1016/j.psj.2024.104458. Epub 2024 Oct 29.

Predicting egg production rate and egg weight of broiler breeders based on machine learning and Shapley additive explanations

Affiliations

Predicting egg production rate and egg weight of broiler breeders based on machine learning and Shapley additive explanations

Hengyi Ji et al. Poult Sci. 2025 Jan.

Abstract

Egg production rate and egg weight are core indicators for evaluating the production performance of broiler breeders. The accurate prediction of these indicators can significantly enhance farm economic efficiency and can provide a basis for future production strategies. Currently, there is a lack of research on the application of machine learning (ML) models to predict egg production rate and egg weight in broiler breeders. In this study, we collected data on age, feed intake, water consumption, and environmental factors (temperature, humidity and wind speed) from three poultry houses to train the predictive models. Based on this data, we developed three different datasets. In each dataset, data from a single poultry house were divided into a training set and a validation set in an 8:2 ratio, and data from the remaining two poultry houses were combined to form the test set. We systematically compared the performances of the following seven ML models in predicting egg production rate and egg weight: random forest (RF), multilayer perceptron (MLP), support vector regression (SVR), least squares support vector machine (LSSVM), k-nearest neighbors (kNN), XGBoost, and LightGBM. The results indicated that the XGBoost model demonstrated the best performance across all three datasets. In predicting egg production rate, the XGBoost model achieved a mean absolute error (MAE), root mean square error (RMSE) and mean absolute percentage error (MAPE) of less than 2.86%, 4.17% and 7.03%, respectively. For egg weight predictions, the XGBoost model's MAE, RMSE and MAPE were less than 0.63g, 0.86g and 1.1%, respectively. Given the inherent black-box nature of ML models, we used the Shapley additive explanations (SHAP) method to interpret the key features influencing the XGBoost model's predictions and the interactions between these features. The key features for predicting egg production rate are age, feed intake and effective temperature (ET). For egg weight prediction, the most important features are age, wind speed, temperature-humidity index (THI) and ET. This approach enhanced the model's transparency and credibility. This study provides scientific evidence for predicting the production performance of broiler breeders. Accurately predicting egg production rate and egg weight provides a scientific basis for farm operations, aiding in optimizing resource allocation, improving production efficiency, enhancing animal welfare, and ultimately boosting the farm's profitability.

Keywords: Broiler breeder; Egg production rate; Egg weight; Machine learning.

PubMed Disclaimer

Conflict of interest statement

Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Figures

Fig 1
Fig. 1
Schematic of the sensor layout in the chicken house.
Fig 2
Fig. 2
Pearson correlation heatmap of features in dataset of house 1.
Fig 3
Fig. 3
Pearson correlation heatmap of features in dataset of house 2.
Fig 4
Fig. 4
Pearson correlation heatmap of features in dataset of house 3
Fig 5
Fig. 5
Workflow of the research. Note: MAE, RMSE and MAPE represent mean absolute error, root mean squared error and mean absolute percentage error. SHAP represents Shapley additive explanations.
Fig 6
Fig. 6
Summary plot of the mean absolute SHAP values of the XGBoost model for egg weight prediction.
Fig 7
Fig. 7
SHAP global explanation on XGBoost model for egg weight prediction.
Fig 8
Fig. 8
SHAP main and interaction effect plots of age in predicting egg weight: (a) age, (b) age and Vmean, (c) age and THImean, and (d) age and ETmean.
Fig 9
Fig. 9
Summary plot of mean absolute SHAP values of XGBoost model for egg production rate prediction.
Fig 10
Fig. 10
SHAP global explanation on the XGBoost model for egg production rate prediction.
Fig 11
Fig. 11
SHAP main and interaction effect plots of age in predicting egg production rate: (a) age, (b) age and feed intake, (c) age and ETmean, and (d) age and Vmax.

Similar articles

Cited by

References

    1. Adebayo M.O., Abiona J.A., Uyanga V.A., Onagbesan O.M., Oke O.E. Growth and reproductive performance of broiler breeders reared to puberty under the open-sided housing in a tropical environment. Anim. Prod. Sci. 2024;64(AN231831)
    1. Akilli A., Gorgulu O. Comparative assessments of multivariate nonlinear fuzzy regression techniques for egg production curve. Trop. Anim. Health Prod. 2020;52:2119–2127. - PubMed
    1. Bjerg B., Zhang G., Pedersen P., Morsing S., 2018. Effective temperature for poultry and pigs in hot climate. Pages 23-41 in Animal husbandry and nutrition. ed. Y. Banu, T. Turgay. London, United Kingdom.
    1. Chen T., Guestrin C. Proceedings of the 22ND ACM Sigkdd International Conference on Knowledge Discovery and Data Mining; San Francisco, CA; 2016. pp. 785–794. XGBoost: A Scalable Tree Boosting System. KDD'16:
    1. Costantino A., Fabrizio E., Ghiggini A., Bariani M. Climate control in broiler houses: A thermal model for the calculation of the energy use and indoor environmental conditions. Energy Build. 2018;169:110–126.