Eggshell Crack Classification Using a Hybrid Texture-Color Descriptor with Machine Learning Methods
Received: 11 October 2025 | Revised: 20 November 2025 and 2 December 2025 | Accepted: 3 December 2025 | Online: 9 February 2026
Corresponding author: Aji Setiawan
Abstract
This study presents a lightweight and efficient method for classifying eggshell fractures as an alternative to deep learning-based approaches. The dataset was compiled from public and field sources, resulting in a balanced collection of 3,700 RGB images (1,850 fractured and 1,850 normal). The images were preprocessed by cropping, resizing to 256×256, and enhancement using CLAHE and GrabCut segmentation. Color (HSV), edge (Canny), and texture (GLCM and Gabor) features were combined into a hybrid descriptor and classified using Support Vector Machine (SVM), Random Forest (RF), XGBoost, and a stacking ensemble under 5-fold cross-validation. RF demonstrated the strongest robustness to nonlinear and texture-rich attributes, achieving the highest accuracy of 81.2%. The results confirm that the proposed hybrid descriptor offers a computationally lightweight, interpretable, and CPU-friendly alternative to CNN-based systems. Feature importance and PCA analysis further reveal how color and texture descriptors jointly contribute to decision-making, supporting its practicality for real-time industrial deployment.
Keywords:
eggshell crack classification, GrabCut segmentation, GLCM–Gabor texture features, random forest classifierDownloads
References
K. El-Sabrout, S. Aggag, and B. Mishra, "Advanced Practical Strategies to Enhance Table Egg Production," Scientifica, vol. 2022, pp. 1–17, Oct. 2022. DOI: https://doi.org/10.1155/2022/1393392
S. Molnár and L. Szőllősi, "Sustainability and Quality Aspects of Different Table Egg Production Systems: A Literature Review," Sustainability, vol. 12, no. 19, Sept. 2020, Art. no. 7884. DOI: https://doi.org/10.3390/su12197884
J. Miranda et al., "Egg and Egg-Derived Foods: Effects on Human Health and Use as Functional Foods," Nutrients, vol. 7, no. 1, pp. 706–729, Jan. 2015. DOI: https://doi.org/10.3390/nu7010706
Z. Kralik, G. Kralik, M. Košević, O. Galović, and M. Samardžić, "Natural Multi-Enriched Eggs with n-3 Polyunsaturated Fatty Acids, Selenium, Vitamin E, and Lutein," Animals, vol. 13, no. 2, Jan. 2023, Art. no. 321. DOI: https://doi.org/10.3390/ani13020321
M. Pal and J. Molnár, "The Role of Eggs as an Important Source of Nutrition in Human Health," International Journal of Food Science and Agriculture, vol. 5, no. 1, pp. 180–182, Mar. 2021. DOI: https://doi.org/10.26855/ijfsa.2021.03.023
D. Tabernik, S. Šela, J. Skvarč, and D. Skočaj, "Segmentation-based deep-learning approach for surface-defect detection," Journal of Intelligent Manufacturing, vol. 31, no. 3, pp. 759–776, Mar. 2020. DOI: https://doi.org/10.1007/s10845-019-01476-x
C. Wang, J. Zhou, H. Wu, J. Li, Z. Chunjiang, and R. Liu, "Research on the Evaluation Method of Eggshell Dark Spots Based on Machine Vision," IEEE Access, vol. 8, pp. 160116–160125, 2020. DOI: https://doi.org/10.1109/ACCESS.2020.3020260
G. Kulshreshtha, L. D’Alba, I. C. Dunn, S. Rehault-Godbert, A. B. Rodriguez-Navarro, and M. T. Hincke, "Properties, Genetics and Innate Immune Function of the Cuticle in Egg-Laying Species," Frontiers in Immunology, vol. 13, Feb. 2022, Art. no. 838525. DOI: https://doi.org/10.3389/fimmu.2022.838525
M. Cisneros-Tamayo et al., "Investigation on eggshell apex abnormality (EAA) syndrome in France: isolation of Mycoplasma synoviae is frequently associated with Mycoplasma pullorum," BMC Veterinary Research, vol. 16, no. 1, Dec. 2020, Art. no. 271. DOI: https://doi.org/10.1186/s12917-020-02487-0
B. Ahmed, C. De Boeck, A. Dumont, E. Cox, K. De Reu, and D. Vanrompay, "First Experimental Evidence for the Transmission of Chlamydia psittaci in Poultry through Eggshell Penetration," Transboundary and Emerging Diseases, vol. 64, no. 1, pp. 167–170, Feb. 2017. DOI: https://doi.org/10.1111/tbed.12358
S. Li and X. Zhao, "Automatic Crack Detection and Measurement of Concrete Structure Using Convolutional Encoder-Decoder Network," IEEE Access, vol. 8, pp. 134602–134618, 2020. DOI: https://doi.org/10.1109/ACCESS.2020.3011106
W. Tang, J. Hu, and Q. Wang, "High-Throughput Online Visual Detection Method of Cracked Preserved Eggs Based on Deep Learning," Applied Sciences, vol. 12, no. 3, Jan. 2022, Art. no. 952. DOI: https://doi.org/10.3390/app12030952
B. Purahong, V. Chaowalittawin, W. Krungseanmuang, P. Sathaporn, T. Anuwongpinit, and A. Lasakul, "Crack Detection of Eggshell using Image Processing and Computer Vision," Journal of Physics: Conference Series, vol. 2261, no. 1, June 2022, Art. no. 012021. DOI: https://doi.org/10.1088/1742-6596/2261/1/012021
Y. M. Valencia et al., "A Novel Method for Inspection Defects In Commercial Eggs Using Computer Vision," The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, vol. XLIII-B2-2021, pp. 809–816, June 2021. DOI: https://doi.org/10.5194/isprs-archives-XLIII-B2-2021-809-2021
X. Yang, R. B. Bist, S. Subedi, and L. Chai, "A Computer Vision-Based Automatic System for Egg Grading and Defect Detection," Animals, vol. 13, no. 14, July 2023, Art. no. 2354. DOI: https://doi.org/10.3390/ani13142354
Y. Huang et al., "Damage Detection of Unwashed Eggs through Video and Deep Learning," Foods, vol. 12, no. 11, May 2023, Art. no. 2179. DOI: https://doi.org/10.3390/foods12112179
"Broken Eggs." Kaggle, [Online]. Available: https://www.kaggle.com/datasets/frankpereny/broken-eggs.
C. E. Ko, P. H. Chen, W. M. Liao, C. K. Lu, C. H. Lin, and J. W. Liang, "Using A Cropping Technique or Not: Impacts on SVM-based AMD Detection on OCT Images," in 2019 IEEE International Conference on Artificial Intelligence Circuits and Systems (AICAS), Hsinchu, Taiwan, Mar. 2019, pp. 199–200. DOI: https://doi.org/10.1109/AICAS.2019.8771609
D. Occorsio, G. Ramella, and W. Themistoclakis, "An Open Image Resizing Framework for Remote Sensing Applications and Beyond," Remote Sensing, vol. 15, no. 16, Aug. 2023, Art. no. 4039. DOI: https://doi.org/10.3390/rs15164039
S. Rani, Y. Chabrra, and K. Malik, "An Improved Denoising Algorithm for Removing Noise in Color Images," Engineering, Technology & Applied Science Research, vol. 12, no. 3, pp. 8738–8744, June 2022. DOI: https://doi.org/10.48084/etasr.4952
A. Setiawan, K. Adi, and C. E. Widodo, "Comparative Analysis of Deep Convolutional Neural Network for Accurate Identification of Foreign Objects in Rice Grains.," Engineering Letters, vol. 32, no. 2, 2024.
A. Setiawan, K. Adi, and C. E. Widodo, "Rice Foreign Object Classification Based on Integrated Color and Textural Feature Using Machine Learning," Mathematical Modelling of Engineering Problems, vol. 10, no. 2, pp. 572–580, Apr. 2023. DOI: https://doi.org/10.18280/mmep.100226
G. Ulutas and B. Ustubioglu, "Underwater image enhancement using contrast limited adaptive histogram equalization and layered difference representation," Multimedia Tools and Applications, vol. 80, no. 10, pp. 15067–15091, Apr. 2021. DOI: https://doi.org/10.1007/s11042-020-10426-2
D. Chyzhyk, G. Varoquaux, M. Milham, and B. Thirion, "How to remove or control confounds in predictive models, with applications to brain biomarkers," GigaScience, vol. 11, Mar. 2022, Art. no. giac014. DOI: https://doi.org/10.1093/gigascience/giac014
T. T. Wong and P. Y. Yeh, "Reliable Accuracy Estimates from k -Fold Cross Validation," IEEE Transactions on Knowledge and Data Engineering, vol. 32, no. 8, pp. 1586–1594, Aug. 2020. DOI: https://doi.org/10.1109/TKDE.2019.2912815
Downloads
How to Cite
License
Copyright (c) 2025 Aji Setiawan, Suzuki Syofian, Adam Arif Budiman

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.
