Non-Destructive Detection Model and Device Development for Duck Egg Freshness
Abstract
1. Introduction
2. Materials and Methods
2.1. Experimental Materials
2.2. Experimental Setup
2.3. Experimental Methods
Haugh Unit (HU) Measurement Protocol
2.4. Image Processing and Feature Extraction
2.4.1. Whole-Egg Segmentation via Weighted Improved Otsu Algorithm
2.4.2. Yolk Segmentation via LAB Space K-Means Clustering
2.4.3. Characteristic Parameter Extraction
2.4.4. IoU Evaluation Protocol
3. Results and Analysis
3.1. Selection of the Nominal Power of the LED Light in the Detection System
3.2. Data Analysis of the Control Group
3.3. Establishment and Validation of the Discriminant Model
3.3.1. Threshold Determination via Constrained Optimization and Youden Index
- •
- Grade AA: Sn ≤ 38.2%
- •
- Grade A: 38.2% < Sn < 54.3%
- •
- Grade B and below: Sn ≥ 54.3%
3.3.2. Model Validation and Classification Performance
3.3.3. HU Linear Regression Model
3.4. Performance of the Testing Device and Software
3.5. Limitations of the Proposed Method
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Ahmed, 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. 2023, 22, 4378–4403. [Google Scholar] [CrossRef] [Scilit]
- Ma, M.H.; Qiu, N.; Huang, Q.; Jin, Y.; Jin, G. Development status and characteristics of China’s egg processing industry. Agric. Eng. Technol. 2015, 5, 26–31. [Google Scholar] [CrossRef]
- Cui, H.J. Egg consumption continues to improve, egg prices stop falling and rise slightly. Grain and Oil Market News, 16 August 2025.
- Tian, Y.N.; Chen, Y.Z.; Wang, Q.H. Effect of the freshness of raw eggs on the quality of preserved eggs during the curing period. Food Sci. 2022, 43, 1–7. [Google Scholar]
- Xu, M.; Liu, Z.G.; Huang, Z.; Jiang, D.; Xie, G.; Wang, L.; Tang, R.; Ding, Y.; Liu, B.; Cao, Y. Research Progress on Determination Indicators and Methods of Egg Quality. Poult. Sci. 2021, 9, 43–49. [Google Scholar]
- Zhang, J.W.; Dong, F.L.; Wang, C.; Zhou, X. Research progress on egg freshness non-destructive testing. China Food Saf. Mag. 2025, 17, 169–174. [Google Scholar] [CrossRef]
- Wang, Q.H.; Zhou, K.; Wu, L.L.; Wang, C.Y. Egg freshness detection based on hyper-spectra. Spectrosc. Spectr. Anal. 2016, 36, 2596–2600. [Google Scholar]
- Liu, Y.; Jin, S.; Alimu, A.; Jiang, L.; Jin, H. Nondestructive detection of egg freshness based on a decision-level fusion method using hyperspectral imaging technology. J. Food Meas. Charact. 2024, 18, 4334–4345. [Google Scholar] [CrossRef] [Scilit]
- Fu, D.D. Research on Spectral Non-Destructive Detection Method and Device Development for Protein Content and Quality of Eggs During Storage. Ph.D. Thesis, Huazhong Agricultural University, Wuhan, China, 2020. [Google Scholar] [CrossRef]
- Yao, K.; Sun, J.; Zhang, B.; Du, X.; Chen, C. On-line monitoring of egg freshness using a portable NIR spectrometer combined with deep learning algorithm. Infrared Phys. Technol. 2024, 138, 105207. [Google Scholar] [CrossRef] [Scilit]
- Kim, S. Measurement of brown eggs freshness using non-destructive UV/VIS spectroscopy and viscosity of egg white. J. Korean Soc. Food Storage Distrib. 2022, 29, 353–366. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.C.; Wei, X.B. Correlation between egg impact response characteristics and its freshness. J. Huazhong Agric. Univ. 2009, 28, 373–376. [Google Scholar] [CrossRef]
- Li, J.T.; Wang, J.; Li, Y.; Wei, Y. Detection of egg freshness using electronic nose. Mod. Food Sci. Technol. 2017, 33, 300–305+188. [Google Scholar] [CrossRef]
- Wang, Q.H.; Wang, C.Y.; Ma, M.H. Non-Destructive Detection of Duck Egg Freshness Based on Machine Vision. J. Chin. Inst. Food Sci. Technol. 2017, 17, 268–274. [Google Scholar]
- Sun, L.; Yuan, L.-M.; Cai, J.-R.; Lin, H.; Zhao, J.-W. Egg Freshness on-Line Estimation Using Machine Vision and Dynamic Weighing. Food Anal. Methods 2014, 8, 922–928. [Google Scholar] [CrossRef] [Scilit]
- Yao, K.S. Research on Non-Destructive Detection of Egg Quality Based on Hyperspectral Imaging Technology. Ph.D. Thesis, Jiangsu University, Zhenjiang, China, 2023. [Google Scholar] [CrossRef]
- Li, S.B.; Zhang, B.Y.; Lu, J.S.; Kong, B.; Liu, H.; Chen, Q. Research on the application of hyperspectral imaging technology in food quality control and safety detection. Sci. Technol. Food Ind. 2025, 1, 1–16. Available online: https://link.cnki.net/urlid/11.1759.TS.20251016.1049.004 (accessed on 12 February 2026).
- Shi, W.; Qi, H.; Liu, Z. HALCON Machine Vision Technology in Automated Inspection Study. Int. Core J. Eng. 2025, 11, 47–57. [Google Scholar] [CrossRef]
- Roth, H.P.; Olmos, G.M.A.; Olteanu, A.; Böschen, S. Making Media Futures: Machine Visions and Technological Imaginations; Taylor & Francis: Abingdon, UK, 2024. [Google Scholar] [CrossRef] [Scilit]
- Zeuch, N. Understanding and Applying Machine Vision, 2nd ed.; Revised and Expanded; Taylor and Francis: Abingdon, UK; CRC Press: Boca Raton, FL, USA, 2014. [Google Scholar]
- Liu, J.Y.; Wang, Q.H.; Xiong, L.R.; Chen, H.; Yu, Y.; Wen, Y. Experimental study on freshness model of duck egg. J. Huazhong Agric. Univ. 2002, 6, 567–569. [Google Scholar] [CrossRef]
- Ma, L. Research on Non-Destructive Detection of Double-Yolk, Crack and Freshness of Duck Eggs Based on Computer Vision. Ph.D. Thesis, Nanjing Agricultural University, Nanjing, China, 2018. [Google Scholar] [CrossRef]
- Wang, C.Y. Non-Destructive Detection of Surface Dirt and Freshness of Duck Eggs. Master’s Thesis, Huazhong Agricultural University, Wuhan, China, 2016. [Google Scholar]
- Tian, H.Y.; Sun, X.W.; Lu, Y.H.; Bi, T.; Wei, K.; Hu, M.; Wang, J. Establishment and optimization of rapid detection method for crude fat content in fresh eggs and egg yolks. Food Sci. Technol. 2025, 50, 300–306. [Google Scholar] [CrossRef]
- Huang, M.; Mao, Y.; Li, H.; Yang, H. Kappa-carrageenan enhances the gelation and structural changes of egg yolk via electrostatic interactions with yolk protein. Food Chem. 2021, 360, 129972. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, Y.J. Comparison and optimization analysis of rapid detection methods for egg freshness. China Food Ind. 2025, 12, 98–100+106. [Google Scholar]
- Baez-Lopez, D. MATLAB with Applications to Engineering, Physics and Finance; Taylor and Francis: Abingdon, UK; CRC Press: Boca Raton, FL, USA, 2011. [Google Scholar]
- Davis, A.T. MATLAB Primer, 8th ed.; Taylor and Francis: Abingdon, UK; CRC Press: Boca Raton, FL, USA, 2011. [Google Scholar]
- Rajput, S.S.; Khan, N.U.; Singh, A.K.; Arya, K.V. (Eds.) Digital Image Enhancement and Reconstruction; Elsevier Inc.: Amsterdam, The Netherlands, 2023. [Google Scholar]
- Xia, M.; He, L.; Gu, Y.; Liu, X.; Murengami, B.G.; Janneh, L.L.; Li, R.; Long, Y.; Grecheneva, A.; Fu, L. Tassel counting of individual ridge from UAV RGB imagery based on YOLOv8m with deep SORT and double-step Otsu thresholding algorithm by filtering abnormal IDs for maize breeding. Comput. Electron. Agric. 2025, 239, 111041. [Google Scholar] [CrossRef] [Scilit]
- Zhou, Z.M.; Li, K. Research on image enhancement algorithm based on histogram equalization. Pract. Electron. 2025, 33, 75–78. [Google Scholar] [CrossRef]
- Wang, H.F. Deep Neural Networks and Clustering Algorithms and Their Applications in Image Classification. Master’s Thesis, Nanjing University of Aeronautics and Astronautics, Nanjing, China, 2023. [Google Scholar] [CrossRef]
- Song, K.C.; Kim, R.J. Engineering Mathematics with MATLAB; CRC Press: Boca Raton, FL, USA, 2025. [Google Scholar]












| Average Yolk Area Projection Ratio Sn/% | Grade AA (HU ≥ 72) | Grade A (60 ≤ HU < 72) | Grade B and Below (HU < 60) | |||
|---|---|---|---|---|---|---|
| Proportion | Percentage | Proportion | Percentage | Proportion | Percentage | |
| 31.1 ≤ S ≤ 38.2 | 36/41 | 87.8% | 3/92 | 3.3% | 0/107 | 0 |
| 38.2 < S ≤ 43.6 | 5/41 | 12.2% | 13/92 | 14.1% | 0/107 | 0 |
| 43.6 < S < 49.7 | 0/41 | 0 | 38/92 | 41.3% | 0/107 | 0 |
| 49.7 ≤ S < 54.3 | 0/41 | 0 | 28/92 | 30.4% | 2/107 | 1.9% |
| 54.3 ≤ S ≤ 78.2 | 0/41 | 0 | 10/92 | 10.9% | 105/107 | 98.1% |
| Freshness Level Determined by Breaking Test | Actual Quantity | Detection Device Measured Result | Accuracy | Overall Accuracy | ||
|---|---|---|---|---|---|---|
| Grade AA | Grade A | Grade B and Below | ||||
| Grade AA | 31 | 25 | 6 | 0 | 80.6% | 88.5% |
| Grade A | 83 | 4 | 69 | 10 | 83.1% | |
| Grade B and below | 86 | 0 | 3 | 83 | 96.5% | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Yan, Q.; Wang, Q.; Ma, M.; Zhu, Z.; Lin, W.; Liu, S.; Fan, W. Non-Destructive Detection Model and Device Development for Duck Egg Freshness. Foods 2026, 15, 1211. https://doi.org/10.3390/foods15071211
Yan Q, Wang Q, Ma M, Zhu Z, Lin W, Liu S, Fan W. Non-Destructive Detection Model and Device Development for Duck Egg Freshness. Foods. 2026; 15(7):1211. https://doi.org/10.3390/foods15071211
Chicago/Turabian StyleYan, Qian, Qiaohua Wang, Meihu Ma, Zhihui Zhu, Weiguo Lin, Shiwei Liu, and Wei Fan. 2026. "Non-Destructive Detection Model and Device Development for Duck Egg Freshness" Foods 15, no. 7: 1211. https://doi.org/10.3390/foods15071211
APA StyleYan, Q., Wang, Q., Ma, M., Zhu, Z., Lin, W., Liu, S., & Fan, W. (2026). Non-Destructive Detection Model and Device Development for Duck Egg Freshness. Foods, 15(7), 1211. https://doi.org/10.3390/foods15071211

