Duck Egg Crack Detection Using an Adaptive CNN Ensemble with Multi-Light Channels and Image Processing
Open Access
- 17 July 2025
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 15 (14) , 7960
Abstract
Duck egg quality classification is critical in farms, hatcheries, and salted egg processing plants, where cracked eggs must be identified before further processing or distribution. However, duck eggs present a unique challenge due to their white eggshells, which make cracks difficult to detect visually. In current practice, human inspectors use standard white light for crack detection, and many researchers have focused primarily on improving detection algorithms without addressing lighting limitations. Therefore, this paper presents duck egg crack detection using an adaptive convolutional neural network (CNN) model ensemble with multi-light channels. We began by developing a portable crack detection system capable of controlling various light sources to determine the optimal lighting conditions for crack visibility. A total of 23,904 images were collected and evenly distributed across four lighting channels (red, green, blue, and white), with 1494 images per channel. The dataset was then split into 836 images for training, 209 images for validation, and 449 images for testing per lighting condition. To enhance image quality prior to model training, several image pre-processing techniques were applied, including normalization, histogram equalization (HE), and contrast-limited adaptive histogram equalization (CLAHE). The Adaptive MobileNetV2 was employed to evaluate the performance of crack detection under different lighting and pre-processing conditions. The results indicated that, under red lighting, the model achieved 100.00% accuracy, precision, recall, and F1-score across almost all pre-processing methods. Under green lighting, the highest accuracy of 99.80% was achieved using the image normalization method. For blue lighting, the model reached 100.00% accuracy with the HE method. Under white lighting, the highest accuracy of 99.83% was achieved using both the original and HE methods.Keywords
This publication has 27 references indexed in Scilit:
- A review of deep learning methods for pixel-level crack detectionJournal of Traffic and Transportation Engineering (English Edition), 2022
- Classification of Overlapping Eggs Based on Image ProcessingJournal of Physics: Conference Series, 2022
- Crack Detection of Eggshell using Image Processing and Computer VisionJournal of Physics: Conference Series, 2022
- Eggshell crack detection using deep convolutional neural networksJournal of Food Engineering, 2022
- Structural crack detection using deep convolutional neural networksAutomation in Construction, 2022
- Defective egg detection based on deep features and Bidirectional Long-Short-Term-MemoryComputers and Electronics in Agriculture, 2021
- Defect detection in pipe structures using stochastic resonance of Duffing oscillator and ultrasonic guided wavesInternational Journal of Pressure Vessels and Piping, 2020
- Cracked egg recognition based on machine visionComputers and Electronics in Agriculture, 2019
- Sequenced wave signal extraction and classification algorithm for duck egg crack on-line detectionComputers and Electronics in Agriculture, 2017
- Changes in chemical composition, physical properties and microstructure of duck egg as influenced by saltingFood Chemistry, 2009