Res. Agr. Eng., 2025, 71(2):95-104 | DOI: 10.17221/86/2024-RAE
Enhancing the destructive egg quality assessment using the machine vision and feature extraction techniqueOriginal Paper
- 1 Biosystems Engineering Department, Tarbiat Modares University, Tehran, Iran
- 2 Department of Mechanical Engineering and Production Management, Hamburg University of Applied Science, Hamburg, Germany
The rapid growth of the food industry necessitates rigorous quality control, particularly in egg production. This study explores advanced methodologies for egg quality assessment by integrating the Principal Component Analysis (PCA), Linear Discriminant Analysis (LDA), and k-Nearest Neighbour (KNN) with machine vision techniques. While traditional destructive methods like measuring the Haugh unit (HU) offer direct insights, but render eggs unusable, non-destructive techniques, such as imaging and spectroscopy, allow continuous quality monitoring. Over a 20-day period, egg samples were evaluated using a digital camera to capture key parameters like the albumen and yolk heights. The study’s image processing involved noise reduction, feature extraction, and calibration. The PCA captured 90.18% of the data variability, while LDA achieved 100% classification accuracy, and KNN demonstrated 80% accuracy. These findings underscore the effectiveness of combining machine vision with statistical methods to enhance the egg grading accuracy, contributing to consumer safety and industry standards.
Keywords: haugh unit; image processing; classification; quality control; albumin height
Received: November 10, 2024; Accepted: April 14, 2025; Prepublished online: May 12, 2025; Published: June 18, 2025 Show citation
References
- Adegbenjo A.O., Liu L., Ngadi M.O. (2020): Non-destructive assessment of chicken egg fertility. Sensors, 20: 5546.
Go to original source...
Go to PubMed...
- Ahammed M., Chae B., Lohakare J., Keohavong B., Lee M., Lee S., Kim D., Lee J., et al. (2014): Comparison of aviary, barn and conventional cage raising of chickens on laying performance and egg quality. Asian-Australasian Journal of Animal Sciences, 27: 1196.
Go to original source...
Go to PubMed...
- Akbarzadeh N., Mireei S.A., Askari G., Mahdavi A.H. (2019): Microwave spectroscopy based on the waveguide technique for the nondestructive freshness evaluation of egg. Food Chemistry, 277: 558-565.
Go to original source...
Go to PubMed...
- Ammar M., Haleem A., Javaid M., Walia R., Bahl S. (2021): Improving material quality management and manufacturing organizations system through industry 4.0 technologies. Materials Today: Proceedings, 45: 5089-5096.
Go to original source...
- Anderson K.E. (2011): Comparison of fatty acid, cholesterol, and vitamin a and e composition in eggs from hens housed in conventional cage and range production facilities. Poultry Science, 90: 1600-1608.
Go to original source...
Go to PubMed...
- Aschard H., Vilhjálmsson B.J., Greliche N., Morange P.-E., Trégouët D.-A., Kraft P. (2014): Maximizing the power of principal-component analysis of correlated phenotypes in genome-wide association studies. The American Journal of Human Genetics, 94: 662-676.
Go to original source...
Go to PubMed...
- Asche F., Cojocaru A.L., Roth B. (2018): The development of large scale aquaculture production: A comparison of the supply chains for chicken and salmon. Aquaculture, 493: 446-455.
Go to original source...
- Augustin M.A., Riley M., Stockmann R., Bennett L., Kahl A., Lockett T., Osmond M., Sanguansri P., et al. (2016): Role of food processing in food and nutrition security. Trends in Food Science & Technology, 56: 115-125.
Go to original source...
- Brant A. (1951): Recommended standerds for scoring and measuring opened egg quality. Food Technology, 5: 356-361.
- Castro F., Chai L., Arango J., Owens C., Smith P., Reichelt S., DuBois C., Menconi A. (2023): Poultry industry paradigms: Connecting the dots. Journal of Applied Poultry Research, 32: 100310.
Go to original source...
- Chen Q., Lin H., Zhao J., Chen Q., Lin H., Zhao J. (2021): Nondestructive detection technologies for real-time monitoring food quality during processing. Advanced Nondestructive Detection Technologies in Food: 301-333.
Go to original source...
- Chen Y., Wang Q., Fan W., Xu B. (2023): Non-destructive determination and visualization of gel springiness of preserved eggs during pickling through hyperspectral imaging. Food Bioscience, 53: 102605.
Go to original source...
- Davies E.R. (2012): Computer and machine vision: Theory, algorithms, practicalities. Academic Press.
- De Ketelaere B., Bamelis F., Kemps B., Decuypere E., De Baerdemaeker J. (2004): Non-destructive measurements of the egg quality. World's Poultry Science Journal, 60: 289-302.
Go to original source...
- Dem¹ar U., Harris P., Brunsdon C., Fotheringham A.S., McLoone S. (2013): Principal component analysis on spatial data: An overview. Annals of the Association of American Geographers, 103: 106-128.
Go to original source...
- Dutta R., Hines E.L., Gardner J.W., Udrea D.D., Boilot P. (2003): Non-destructive egg freshness determination: An electronic nose based approach. Measurement Science and Technology, 14: 190.
Go to original source...
- Earle M.D., Earle R.L. (1997): Food industry research and development. In: Government and the food industry: Economic and political effects of conflict and co-operation. Springer: 125-140.
Go to original source...
- Eddin A.S., Ibrahim S.A., Tahergorabi R. (2019): Egg quality and safety with an overview of edible coating application for egg preservation. Food chemistry, 296: 29-39.
Go to original source...
Go to PubMed...
- Farhangi O., Sheidaee E. (2024): Machine vision for detecting defects in liquid bottles: An industrial application for food and packaging sector. Cloud Computing and Data Science: 242-254.
Go to original source...
- Fodor M., Woller A., Turza S., Szigedi T. (2011): Development of a rapid, non-destructive method for egg content determination in dry pasta using ft-nir technique. Journal of Food Engineering, 107: 195-199.
Go to original source...
- Fu D.D., Wang Q.H., Ma M.H., Ma Y.X., Wang B. (2019): Nondestructive prediction modeling of s-ovalbumin content in stored eggs based on hyperspectral fusion information. Journal of Food Process Engineering, 42: e13015.
Go to original source...
- Hamilton R. (1982): Methods and factors that affect the measurement of egg shell quality. Poultry Science, 61: 2022-2039.
Go to original source...
- Hasan B.M.S., Abdulazeez A.M. (2021): A review of principal component analysis algorithm for dimensionality reduction. Journal of Soft Computing and Data Mining, 2: 20-30.
- Haugh R. (1937): The Haugh Unit for Measuring Egg Quality.
- Karoui R., Kemps B., Bamelis F., De Ketelaere B., Decuypere E., De Baerdemaeker J. (2006): Methods to evaluate egg freshness in research and industry: A review. European Food Research and Technology, 222: 727-732.
Go to original source...
- Karoui R., De Ketelaere B., Kemps B., Bamelis F., Mertens K., De Baerdemaeker J. (2009): Eggs and egg products. Infrared Spectroscopy for Food Quality Analysis and Control, 16: 399-414.
Go to original source...
- Karsten H., Patterson P., Stout R., Crews G. (2010): Vitamins a, e and fatty acid composition of the eggs of caged hens and pastured hens. Renewable Agriculture and Food Systems, 25: 45-54.
Go to original source...
- Kim J., Semyalo D., Rho T.G., Bae H., Cho B.K. (2022): Non-destructive detection of abnormal chicken eggs by using an optimized spectral analysis system. Sensors, 22: 9826.
Go to original source...
Go to PubMed...
- Kotsanopoulos K.V., Arvanitoyannis I.S. (2017): The role of auditing, food safety, and food quality standards in the food industry: A review. Comprehensive Reviews in Food Science and Food Safety, 16: 760-775.
Go to original source...
Go to PubMed...
- Lambin E.F., Meyfroidt P. (2011): Global land use change, economic globalization, and the looming land scarcity. Proceedings of the National Academy of Sciences, 108: 3465-3472.
Go to original source...
Go to PubMed...
- Li C.H., Hsieh C.H., Hung C.C., Cheng C.W. (2021): Nondestructive detection of the gel state of preserved eggs based on dielectric impedance. Foods, 10: 394.
Go to original source...
Go to PubMed...
- Li P., Wang Q., Zhang Q., Cao S., Liu Y., Zhu T. (2012): Non-destructive detection on the egg crack based on wavelet transform. Ieri Procedia, 2: 372-382.
Go to original source...
- Liu Y., Ren X., Yu H., Cheng Y., Guo Y., Yao W., Xie Y. (2020): Non-destructive and online egg freshness assessment from the egg shell based on raman spectroscopy. Food Control, 118: 107426.
Go to original source...
- Loffredi E., Grassi S., Alamprese C. (2021): Spectroscopic approaches for non-destructive shell egg quality and freshness evaluation: Opportunities and challenges. Food Control, 129: 108255.
Go to original source...
- Mehdizadeh S.A., Minaei S., Hancock N.H., Torshizi M.A.K. (2014): An intelligent system for egg quality classification based on visible-infrared transmittance spectroscopy. Information Processing in Agriculture, 1: 105-114.
Go to original source...
- Mertens K., Kemps B., Perianu C., De Baerdemaeker J., Decuypere E., De Ketelaere B., Bain M. (2011): Advances in egg defect detection, quality assessment and automated sorting and grading. Improving the Safety and Quality of Eggs and Egg Products: 209-241.
Go to original source...
- Mooee D., Sandgeound J. (1956): The relative egg producing capacity of Schistosoma mansoni and s Chistosoma japonicum.
Go to original source...
- Narushin V.G., Lu G., Cugley J., Romanov M.N., Griffin D.K. (2020): A 2-d imaging-assisted geometrical transformation method for non-destructive evaluation of the volume and surface area of avian eggs. Food Control, 112: 107112.
Go to original source...
- Narushin V.G., Romanov M.N., Griffin D.K. (2021): Non-destructive measurement of chicken egg characteristics: Improved formulae for calculating egg volume and surface area. Biosystems Engineering, 201: 42-49.
Go to original source...
- Narushin V.G., Romanov M.N., Salamon A., Kent J.P. (2023): An innovative non-destructive technology for controlling the storage period of chicken eggs using egg parameters. Food and Bioprocess Technology: 1-12.
Go to original source...
- Okinda C., Sun Y., Nyalala I., Korohou T., Opiyo S., Wang J., Shen M. (2020): Egg volume estimation based on image processing and computer vision. Journal of Food Engineering, 283: 110041.
Go to original source...
- Omid M., Soltani M., Dehrouyeh M.H., Mohtasebi S.S., Ahmadi H. (2013): An expert egg grading system based on machine vision and artificial intelligence techniques. Journal of Food Engineering, 118: 70-77.
Go to original source...
- Qi L., Zhao M.C., Li Z., Shen D.H., Lu J. (2020): Non-destructive testing technology for raw eggs freshness: A review. SN Applied Sciences, 2: 1-9.
Go to original source...
- Rachmawanto E.H., Sari C.A., Villadelfiya R., Rijati N., Kartikadarma E., Doheir M., Astuti S. (2020): Eggs classification based on egg shell image using k-nearest neighbors classifier. In: Proceedings of the 2020 International Seminar on Application for Technology of Information and Communication (iSemantic): 50-54.
Go to original source...
- Ramírez-Gutiérrez K.A., Medina-Santiago A., Martínez-Cruz A., Algredo-Badillo I., Peregrina-Barreto H. (2019): Retracted: Eggshell deformation detection applying computer vision.
Go to original source...
- Ray P., Reddy S.S., Banerjee T. (2021): Various dimension reduction techniques for high dimensional data analysis: A review. Artificial Intelligence Review, 54: 3473-3515.
Go to original source...
- Saifullah S., Dre¿ewski R. (2022): Non-destructive egg fertility detection in incubation using svm classifier based on glcm parameters. Procedia Computer Science, 207: 3254-3263.
Go to original source...
- Schreuder J., Niknafs S., Williams P., Roura E., Hoffman L., Cozzolino D. (2024): Non-destructive prediction of fertility and sex in chicken eggs using the short wave near-infrared region. Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy: 124716.
Go to original source...
- ªekeroglu A., Altuntaº E. (2009): Effects of egg weight on egg quality characteristics. Journal of the Science of Food and Agriculture, 89: 379-383.
Go to original source...
- Sheidaee E., Bazyar P., Hosseinpour-Zarnaq M. (2022): Special system for classifying and sorting walnut base on image processing. International Journal of Research in Science and Technology, 9.
Go to original source...
- Sheydaee E., Bazyar P. (2021): Design and fabrication of egg quality assessment system based on image processing. Turkish Journal of Agricultural Engineering Research, 2: 124-132.
Go to original source...
- Shi C., Wang Y., Zhang C., Yuan J., Cheng Y., Jia B., Zhu C. (2022): Nondestructive detection of microcracks in poultry eggs based on the electrical characteristics model. Agriculture, 12: 1137.
Go to original source...
- Stinco C.M., Rodríguez-Pulido F.J., Escudero-Gilete M.L., Gordillo B., Vicario I.M., Meléndez-Martínez A.J. (2013): Lycopene isomers in fresh and processed tomato products: Correlations with instrumental color measurements by digital image analysis and spectroradiometry. Food Research International, 50: 111-120.
Go to original source...
- Sun J., Liu B., Mao H., Wu X., Gao H., Yang N. (2016): Non-destructive examination for freshness of eggs based on dielectric properties and yolk index regression model. Transactions of the Chinese Society of Agricultural Engineering, 32: 290-295.
- Teece D.J. (2000): Strategies for managing knowledge assets: The role of firm structure and industrial context. Long Range Planning, 33: 35-54.
Go to original source...
- Uysal R.S., Boyaci I.H. (2020): Authentication of liquid egg composition using atr-ftir and nir spectroscopy in combination with pca. Journal of the Science of Food and Agriculture, 100: 855-862.
Go to original source...
Go to PubMed...
- Wik M., Pingali P., Brocai S. (2008): Global agricultural performance: Past trends and future prospects.
Go to original source...
- Wold S., Esbensen K., Geladi P. (1987): Principal component analysis. Chemometrics and Intelligent Laboratory Systems, 2: 37-52.
Go to original source...
- Xanthopoulos P., Pardalos P.M., Trafalis T.B., Xanthopoulos P., Pardalos P.M., Trafalis T.B. (2013): Linear discriminant analysis. Robust Data Mining: 27-33.
Go to original source...
- Xie J., Xiang X., Xia S., Jiang L., Wang G., Gao X. (2024): Mgnr: A multi-granularity neighbor relationship and its application in knn classification and clustering methods. IEEE Transactions on Pattern Analysis and Machine Intelligence.
Go to original source...
- Yao K., Sun J., Cheng J., Xu M., Chen C., Zhou X., Dai C. (2022): Development of simplified models for non-destructive hyperspectral imaging monitoring of s-ovalbumin content in eggs during storage. Foods, 11: 2024.
Go to original source...
Go to PubMed...
- Yao K., Sun J., Cheng J., Xu M., Chen C., Zhou X. (2023): Nondestructive detection of s-ovalbumin content in eggs using portable nir spectrometer and mpa-cars. Journal of Food Process Engineering, 46: e14186.
Go to original source...
- Ye X., Cheriet M., Suen C.Y. (2001): Stroke-model-based character extraction from gray-level document images. IEEE Transactions on Image Processing, 10: 1152-1161.
Go to original source...
Go to PubMed...
- Yu K., Fan T., Lou S., Zhang D. (2013): Biomimetic optical materials: Integration of nature's design for manipulation of light. Progress in Materials Science, 58: 825-873.
Go to original source...
- Zhang W., Pan L., Tu S., Zhan G., Tu K. (2015): Non-destructive internal quality assessment of eggs using a synthesis of hyperspectral imaging and multivariate analysis. Journal of Food Engineering, 157: 41-48.
Go to original source...
- Zhao Y., Wang J., Lu Q., Jiang R. (2010): Pattern recognition of eggshell crack using pca and lda. Innovative Food Science & Emerging Technologies, 11: 520-525.
Go to original source...
- Zhihui Z., Ting L., Dejun X., Qiaohua W., Meihu M. (2015): Nondestructive detection of infertile hatching eggs based on spectral and imaging information. International Journal of Agricultural and Biological Engineering, 8: 69-76.
- Zhu Z., Ye Z., Tang Y. (2021): Nondestructive identification for gender of chicken eggs based on ga-bpnn with double hidden layers. Journal of Applied Poultry Research, 30: 100203
Go to original source...
This is an open access article distributed under the terms of the Creative Commons Attribution-NonCommercial 4.0 International (CC BY NC 4.0), which permits non-comercial use, distribution, and reproduction in any medium, provided the original publication is properly cited. No use, distribution or reproduction is permitted which does not comply with these terms.