Vision-based Egg Grading System using Support Vector Machine
Main Article Content
Abstract
Being known as a nutrient-dense food, eggs are high in demand in the marketplace and high-quality eggs are much sought-after. Hence, egg grading is in place to sort eggs into different grades. Experienced graders are required for their knowledge to classify egg grades and as humans are involved, errors when performing manual grading are unavoidable. This study aims to develop a vision-based egg classification system that requires minimal human intervention. The proposed system houses a camera to acquire real-time images of the eggs and these images are served as the input to the algorithm. Based on the 6 geometrical features derived from the geometric parameters of the egg image, the eggs are classified using Support Vector Machine (SVM). The experiment results show the proposed egg grading system with a linear kernel SVM model can yield as high as 92.59% training accuracy.
Manuscript received: 16 Dec 2023 | Revised: 25 Jan 2024 | Accepted: 15 Feb 2024 | Published: 30 Apr 2024
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
References
G.S. Khoo, "Egg Suppliers Sell Assets to Stay Float," The Malaysian Insights, 8 Sept 2022.
URL: https://thesun.my/malaysia-news/egg-suppliers-sell-assets-to-stay-afloat-report-IN9791183 (accessed:15 Feb, 2024)
A.F.A. Nasir, S.S. Sabarudin, A.P.A. Majeed, and A.S.A. Ghani, "Automated Egg Grading System Using Computer Vision: Investigation on Weight Measure Versus Shape Parameters," in IOP Conference Series: Materials Science and Engineering, vol. 342, pp. 1–9, 2018.
DOI: https://doi.org/10.1088/1757-899X/342/1/012003
P. Chockalingam, "Smart Manufacturing with Smart Technologies – A Review," International Journal on Robotics, Automation and Science, vol. 5, no. 2, pp. 85–88, 2023.
DOI: https://doi.org/10.33093/ijoras.2023.5.2.10
J. Alikhanov, A. Moldazhanov, A. Kulmakhambetova, Z. Shynybay, S.M. Penchev, T.D. Georgieva, and P.I. Daskalov, "Express Methods and Procedures for Determination of the Main Egg Quality Indicators," TEM Journal: Technology, Education, Management, Informatics, vol. 10, pp. 171–176, 2021.
DOI: https://doi.org/10.18421/TEM101-21
R. Vargas, C. Ruiz, and C. Navas, "Merging Manual and Automated Egg Candling: A Safety and Social Solution," Enfoque UTE, vol. 9, no. 2, pp. 70–76, 2018.
DOI: https://doi.org/10.29019/enfoqueute.v9n2.292
S. Harnsoongnoen and N. Jaroensuk, "The Grades and Freshness Assessment of Eggs Based on Density Detection Using Machine Vision and Weighing Sensor," Scientific Reports, vol. 11, no. 16640, 2021.
DOI: https://doi.org/10.1038/s41598-021-96140-x
A. Sharma, M.D. Ansari, and R. Kumar, "A Comparative Study of Edge Detectors in Digital Image Processing," in 2017 4th International Conference on Signal Processing, Computing and Control (ISPCC), Solan, India, pp. 246–250, 2017.
DOI: https://doi.org/10.1109/ISPCC.2017.8269683
D. Indra, T. Hasanuddin, R. Satra, and N.R. Wibowo, "Eggs Detection Using Otsu Thresholding Method," in 2018 2nd East Indonesia Conference on Computer and Information Technology (EIConCIT), pp. 10–13, 2018.
DOI: https://doi.org/10.1109/EIConCIT.2018.8878517
J. Thipakorn, R. Waranusast, and P. Riyamongkol, "Egg Weight Prediction and Egg Size Classification Using Image Processing and Machine Learning," in 2017 14th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON), pp. 477–480, 2017.
DOI: https://doi.org/10.1109/ECTICON.2017.8096278
R. Waranusast, P. Intayod, and D. Makhod, "Egg Size Classification on Android Mobile Devices Using Image Processing and Machine Learning," in 2016 Fifth ICT International Student Project Conference (ICT-ISPC), pp. 170–173, 2016.
DOI: https://doi.org/10.1109/ICT-ISPC.2016.7519263
D. Bzdok, M. Krzywinski, and N. Altman, "Machine Learning: Supervised Methods," Nature Methods, vol. 15, no. 1, pp. 5–6, 2018.
DOI: https://doi.org/10.1038/nmeth.4551
A. Althnian, D. AlSaeed, H. Al-Baity, A. Samha, A.B. Dris, N. Alzakari, A.A. Elwafa, and H. Kurdi, "Impact of Dataset Size on Classification Performance: An Empirical Evaluation in the Medical Domain," Applied Sciences, vol. 496, no. 11, pp. 1–18, 2021.
DOI: https://doi.org/10.3390/APP11020796
G. Bradski and A. Kaehler, Learning OpenCV: Computer Vision with the OpenCV Library, O'Reilly Media, Inc., 2008.
J. So, S.Y. Joe, S.H. Hwang, S.J. Hong, and S.H. Lee, "Current Advances in Detection of Abnormal Egg: A Review," Journal of Animal Science and Technology, vol. 64, no. 5, pp. 813–829, 2022.
DOI: https://doi.org/10.5187/jast.2022.e56
L. Guan and M. Kamei, "A Vector Distribution Model and an Effective Nearest Neighbor Search Method for Image Vector Quantization," in IEEE Transactions on Image Processing, vol. 6, no. 12, pp. 1688–1691, 1997.
DOI: https://doi.org/10.1109/83.650121
A.M. Loorutu, H. Yazid, and K.S.A. Rahman, "Prostate Cancer Classification Based on Histopathological Images," International Journal on Robotics, Automation and Science, vol. 5, no. 2, pp. 43–53, 2023.