Abstract
Hyperspectral imaging (HSI) is a smart, non-destructive sensing that integrates spectral and spatial information, advancing fertility prediction and structural evaluation of eggs. Despite increasing interest in poultry research, there remains no publicly accessible HSI dataset, limiting the development and validation of robust, generalizable machine learning models. To address this gap, the present study provides a comprehensive HSI dataset encompassing key egg parameters, pre-incubation fertility status, eggshell thickness, yolk mass, eggshell strength, and associated morphological parameters (intact egg mass, major and minor diameters). The dataset consists of hyperspectral images of 1228 white Leghorn chicken eggs acquired using a line-scan transmission HSI system (374–1015 nm). Each egg is accompanied by validated reference measurements, enabling supervised learning tasks such as regression and classification. Raw hyperspectral cubes (.mat format) and annotated spectral metadata (.csv format) are structured for easy access and reuse. Rigorous technical validation confirmed the dataset’s reliability. This open-access resource is designed to accelerate precision poultry research and promote the development of non-invasive, data-driven egg evaluation and quality assurance techniques.
Similar content being viewed by others
Data availability
The hyperspectral egg dataset reported in this study is publicly available in the Illinois Data Bank at https://doi.org/10.13012/B2IDB-8141497_V1. The repository includes three files: egg_hyperspectral_image_readme, all_data.rar, and spectra and reference parameters.csv. The readme file provides detailed instructions and descriptions of the data structure. The all_data.rar file contains raw hyperspectral images in.mat format, while the spectra and reference parameters.csv file includes corresponding spectral data and reference parameters.
Code availability
This study utilized Python code on Google Colab for all data processing and visualization, allowing users to run the code without installing Python software. All Python codes used in this study are publicly available on GitHub at the following link: https://github.com/dexter1d/Egg_data_process. The repository includes scripts for spectral visualization, correlation analysis, data partitioning, spectral pre-processing, and model development. Each section of the code is accompanied by detailed instructions and comments to guide users and ensure the reproducibility of the results reported in this study. In addition to the instructions in the code files, users can refer to the ‘user guides.pdf’ for detailed guidance on using the dataset and replicating the model performances reported in this study.
References
Chay Pak Ting, B. P., Pouliot, Y., Gauthier, S. F. & Mine, Y. Fractionation of egg proteins and peptides for nutraceutical applications. in Separation, Extraction and Concentration Processes in the Food, Beverage and Nutraceutical Industries 595–618, https://doi.org/10.1533/9780857090751.2.595 (Elsevier, 2013).
Everson, G. J. & Souders, H. J. Composition and Nutritive Importance of Eggs. J Am Diet Assoc 33, 1244–1254 (1957).
Ahmed, M. W., Hossainy, S. J., Khaliduzzaman, A., Emmert, J. L. & Kamruzzaman, M. Non-destructive optical sensing technologies for advancing the egg industry toward Industry 4.0: A review. Compr Rev Food Sci Food Saf https://doi.org/10.1111/1541-4337.13227 (2023).
Bergoug, H. et al. Effect of pre-incubation and incubation conditions on hatchability, hatch time and hatch window, and effect of post-hatch handling on chick quality at placement. Worlds Poult Sci J 69, 313–334 (2013).
Adegbenjo, A. O., Liu, L. & Ngadi, M. O. Non-destructive assessment of chicken egg fertility. Sensors (Switzerland) 20, 1–23 (2020).
Rozenboim, I., Batya, M., Ben Dor, E. & Lezion, R. Hyperspectral identification of egg fertility and gender. 1–20 (2016).
Ghaderi, M., Mireei, S. A., Masoumi, A., Sedghi, M. & Nazeri, M. Fertility detection of unincubated chicken eggs by hyperspectral transmission imaging in the Vis-SWNIR region. Sci Rep 14, 1289 (2024).
Ahmed, M. W., Alam, S., Khaliduzzaman, A., Emmert, J. L. & Kamruzzaman, M. Nondestructive Prediction of Eggshell Thickness Using NIR Spectroscopy and Machine Learning with Explainable AI. ACS Food Science & Technology https://doi.org/10.1021/acsfoodscitech.4c01001 (2025).
Ahmed, M. W., Khaliduzzaman, A., Emmert, J. L. & Kamruzzaman, M. Non-destructive prediction of eggshell strength using FT-NIR spectroscopy combined with PLS Regression. in 2024 Anaheim, California July 28-31, 2024, https://doi.org/10.13031/aim.202400254 (American Society of Agricultural and Biological Engineers, St. Joseph, MI, 2024).
Hincke, M., Gautron, J., Rodriguez-Navarro, A. B. & McKee, M. D. The eggshell: structure and protective function. in Improving the Safety and Quality of Eggs and Egg Products 151–182, https://doi.org/10.1533/9780857093912.2.151 (Elsevier, 2011).
Solomon, S. E. The eggshell: strength, structure and function. Br Poult Sci 51, 52–59 (2010).
Mine, Y., Guyonnet, V., Hatta, H., Nau, F. & Qiu, N. Handbook of Egg Science and Technology https://doi.org/10.1201/9781003254430 (CRC Press, Boca Raton, 2023).
Froning, G. Egg Science and Technology. Poult Sci 74, 2061 (1995).
Ahmed, M. W. et al. Non-destructive detection of pre-incubated chicken egg fertility using hyperspectral imaging and machine learning. Smart Agricultural Technology 10, 100857 (2025).
Ramiro S., V. C., Lourdes C., R. S. & María C., N. L. Egg Candling Analysis Equipment Design: A Safety Solution. Procedia Soc Behav Sci 238, 501–506 (2018).
Çevik, K. K., Koçer, H. E. & Boğa, M. Deep Learning Based Egg Fertility Detection. Vet Sci 9, 574 (2022).
Lin, H. et al. Stiffness measurement of eggshell by acoustic resonance and PLS models. J Food Eng 103, 351–356 (2011).
Huang, S., Luo, P. & Wang, Z. Analysis and Study of Egg Quality Based on Hyperspectral Image Data of Different Forms of Egg Yolks. in Proceedings - 2020 International Conference on Computer Vision, Image and Deep Learning, CVIDL 2020, https://doi.org/10.1109/CVIDL51233.2020.00042 (2020).
Yao, K. et al. Monitoring S-ovalbumin content in eggs during storage using portable NIR spectrometer and multivariate analysis. Infrared Phys Technol 131, 104685 (2023).
Cozzolino, D. Advances in Spectrometric Techniques in Food Analysis and Authentication. Foods 12, 438 (2023).
Chen, Y., Chen, Z., Yan, Q., Liu, Y. & Wang, Q. Non-destructive detection of egg white and yolk morphology transformation and salt content of salted duck eggs in salting by hyperspectral imaging. Int J Biol Macromol 262, 130002 (2024).
Ahmed, M. T., Monjur, O. & Kamruzzaman, M. Deep learning-based hyperspectral image reconstruction for quality assessment of agro-product. J Food Eng 382, 112223 (2024).
Ahmed, M. W., Khaliduzzaman, A., Emmert, J. L. & Kamruzzaman, M. An overview of recent advancements in hyperspectral imaging in the egg and hatchery industry. Comput Electron Agric 230, 109847 (2025).
Ahmed, M. W., Sprigler, A., Emmert, J. L. & Kamruzzaman, M. Non-destructive pre-incubation sex determination in chicken eggs using hyperspectral imaging and machine learning. Food Control 173, 111233 (2025).
Olyaei, M., Ebtehaj, A. & Ellis, C. R. A Hyperspectral Reflectance Database of Plastic Debris with Different Fractional Abundance in River Systems. Sci Data 11, 1253 (2024).
Studier-Fischer, A. et al. HeiPorSPECTRAL - the Heidelberg Porcine HyperSPECTRAL Imaging Dataset of 20 Physiological Organs. Sci Data 10, 414 (2023).
Ahmed, M. T., Ahmed, M. W. & Kamruzzaman, M. A systematic review of explainable artificial intelligence for spectroscopic agricultural quality assessment. Comput Electron Agric 235, 110354 (2025).
Ahmed, M. T., Villordon, A. & Kamruzzaman, M. Comparative analysis of hyperspectral Image reconstruction using deep learning for agricultural and biological applications. Results in Engineering 23, 102623 (2024).
Md. Ahmed T., Md. Ahmed, W. & Kamruzzaman, M. SpectroChat: A windows executable graphical user interface for chemometrics analysis of spectroscopic data. Software Impacts 100698, https://doi.org/10.1016/J.SIMPA.2024.100698 (2024).
Monjur, O., Ahmed, M. T., Ahmed, M. W. & Kamruzzaman, M. Agro-Net: a Convolution-Attention Fusion Based Hyperspectral Model for Agro-Food Quality Assessment. in 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) 474–481, https://doi.org/10.1109/CVPRW67362.2025.00052 (IEEE, 2025).
Ahmed, M. T., Ahmed, M. W., Monjur, O., Emmert, J. L. & Kamruzzaman, M. Hyperspectral image reconstruction for predicting chick embryo mortality towards advancing egg and hatchery industry. Smart Agricultural Technology, https://doi.org/10.1016/j.atech.2024.100533 (2024).
VOISEY, P. W. & HUNT, J. R. MEASUREMENT OF EGGSHELL STRENGTH*. J Texture Stud 5, 135–182 (1974).
Hahn, E. N. et al. Nature’s technical ceramic: the avian eggshell. J R Soc Interface 14, 20160804 (2017).
Ahmed, M. W., Song, D., Ahmed, M. T. & Kamruzzaman, M. Hyperspectral imaging dataset for non-destructive fertility and structural evaluation of chicken eggs, https://doi.org/10.13012/B2IDB-8141497_V1 (2025).
Gao, S. & Xie, W. SSC and pH prediction and maturity classification of grapes based on hyperspectral imaging. Smart Agricultural Technology 8, 100457 (2024).
Coombs, C. E. O. et al. A preliminary investigation into the automatic detection of diseased sheep organs using hyperspectral imaging sensors. Smart Agricultural Technology 3, 100122 (2023).
Malounas, I. et al. Early detection of broccoli drought acclimation/stress in agricultural environments utilizing proximal hyperspectral imaging and AutoML. Smart Agricultural Technology 8, 100463 (2024).
Cayuela, J. A., Yousfi, K., Carmen Martínez, M. & García, J. M. Rapid Determination of Olive Oil Chlorophylls and Carotenoids by Using Visible Spectroscopy. J Am Oil Chem Soc 91, 1677–1684 (2014).
Nimalaratne, C., Lopes-Lutz, D., Schieber, A. & Wu, J. Free aromatic amino acids in egg yolk show antioxidant properties. Food Chem 129, 155–161 (2011).
Isaksson, C., Johansson, A. & Andersson, S. Egg Yolk Carotenoids in Relation to Habitat and Reproductive Investment in the Great Tit Parus major. Physiological and Biochemical Zoology 81, 112–118 (2008).
Zhang, S. et al. Nondestructive Measurement of Hemoglobin in Blood Bags Based on Multi-Pathlength VIS-NIR Spectroscopy. Sci Rep 8, 2204 (2018).
Lazareva, E. N. & Tuchin, V. V. Measurement of refractive index of hemoglobin in the visible/NIR spectral range. J Biomed Opt 23, 1 (2018).
Kraitl, J., Timm, U. & Ewald, H. Non-invasive measurement of blood and tissue parameters based on VIS-NIR spectroscopy. in (ed. Coté, G. L.) 859105, https://doi.org/10.1117/12.2001274 (2013).
Abdel-Nour, N., Ngadi, M., Prasher, S. & Karimi, Y. Prediction of Egg Freshness and Albumen Quality Using Visible/Near Infrared Spectroscopy. Food Bioproc Tech 4, 731–736 (2011).
Zhang, Q., Li, Q. & Zhang, G. Rapid Determination of Leaf Water Content Using VIS/NIR Spectroscopy Analysis with Wavelength Selection. Spectroscopy: An International Journal 27, 93–105 (2012).
Acknowledgements
This work was supported by the USDA National Institute of Food and Agriculture, Award # 2023-67015-39154.
Author information
Authors and Affiliations
Contributions
M.W.A. wrote the manuscript, collected reference data, and analyzed the data reported in this study. D.S. acquired hyperspectral images and performed data curation. M.T.A. collected reference data and performed data curation. M.K. designed the study and developed the overall experimental plan. All authors reviewed and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Ahmed, M.W., Song, D., Ahmed, M.T. et al. Hyperspectral imaging dataset for non-destructive fertility and structural evaluation of chicken eggs. Sci Data (2026). https://doi.org/10.1038/s41597-026-06556-1
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41597-026-06556-1


