An Automatic Method for Eggshell Defect Detection
ISSN 2158-9429
Volume 19, Issue 2 - December 2026
Editor: Bindu Poudel-Ward
Abstract
Defective eggs reduce the value of laying hen production, particularly in cage-free systems where floor eggs (mislaid egg by hens on the litter floor of a cage-free laying hen houses or broiler breeder house) are more prevalent. Although machine vision and image processing have enabled automated egg grading and defect detection, few studies have integrated deep learning for simultaneous egg classification and weight prediction. This study developed a two-stage model combining real-time multitask detection (RTMDet) and Random Forest algorithms for egg classification and weight prediction. The RTMDet model was used to classify eggs and extract morphological features, including major and minor axes, while Random Forest predicted egg weight from these features. The model achieved a maximum classification accuracy of 94.8% and an R² of 96.0% for weight prediction. It classified eggs into five categories (i.e., intact, cracked, bloody, floor, and non-standard) and accommodated sizes up to Jumbo. The results indicated that the proposed detector exhibited superior performance in distinguishing between standard- and non-standard-sized eggs, with more accurate and reliable weight predictions for eggs in the large (55–60 g) and extra-large (60–65 g) weight categories. The new method provides an automated approach for simultaneous egg sorting, defect detection, and weight prediction, with potential to improve efficiency, reduce labor costs, and enhance product quality.
View/Download Full Article