Eggshell crack detection using deep convolutional neural networks

Abstract The accurate detection of cracks on eggshells is quintessential to provide consumers with safe and quality eggs. This study proposes a novel approach to automatically detect these eggshell cracks using a convolutional neural network (CNN). The CNN model was trained on image patches extracted from the egg images with different batch sizes. Inferences upon testing showed that the model trained on a batch size of 64 gave the best results. The model also outperformed the support vector machine (SVM) classifiers trained on the histogram of oriented gradients (HOG) and local binary pattern (LBP) features with precision, recall, accuracy, false positive rate (FPR) and area under the curve (AUC) of 98.28%, 92.41%, 96.92%, 0.81% and 99.53%, respectively in classifying image patches. In addition, the proposed CNN model surpassed the SVM models in classifying images of eggs with an accuracy of 95.38%.

[1]  Yoshua Bengio,et al.  Gradient-based learning applied to document recognition , 1998, Proc. IEEE.

[2]  Chih-Jen Lin,et al.  Working Set Selection Using Second Order Information for Training Support Vector Machines , 2005, J. Mach. Learn. Res..

[3]  Raphael Linker,et al.  Expansion of cracks in chicken eggs exposed to sub-atmospheric pressure , 2012 .

[4]  Mahmoud Omid,et al.  An automatic sorting system for unwashed eggs using deep learning , 2020 .

[5]  Taghi M. Khoshgoftaar,et al.  A survey on Image Data Augmentation for Deep Learning , 2019, Journal of Big Data.

[6]  Michael S. Bernstein,et al.  ImageNet Large Scale Visual Recognition Challenge , 2014, International Journal of Computer Vision.

[7]  Nitish Srivastava,et al.  Dropout: a simple way to prevent neural networks from overfitting , 2014, J. Mach. Learn. Res..

[8]  Neville G. Gregory,et al.  Hazards with cracked eggs and their relationship to egg shell strength , 2009 .

[9]  Matti Pietikäinen,et al.  Multiresolution Gray-Scale and Rotation Invariant Texture Classification with Local Binary Patterns , 2002, IEEE Trans. Pattern Anal. Mach. Intell..

[10]  Corinna Cortes,et al.  Support-Vector Networks , 1995, Machine Learning.

[11]  K. Tu,et al.  Recognition of a Cracked Hen Egg Image Using a Sequenced Wave Signal Extraction and Identification Algorithm , 2018, Food Analytical Methods.

[12]  S. Nashat,et al.  A framework for crack detection of fresh poultry eggs at visible radiation , 2017, Comput. Electron. Agric..

[13]  J. De Baerdemaeker,et al.  Eggshell Crack Detection based on Acoustic Resonance Frequency Analysis , 2000 .

[14]  Muammer Turkoglu,et al.  Defective egg detection based on deep features and Bidirectional Long-Short-Term-Memory , 2021, Comput. Electron. Agric..

[15]  Asif Khan,et al.  Improved Crack Detection and Recognition Based on Convolutional Neural Network , 2019, Modelling and Simulation in Engineering.

[16]  Kang Tu,et al.  Eggshell crack detection based on computer vision and acoustic response by means of back-propagation artificial neural network , 2011 .

[17]  J W Hancock,et al.  Microcracks in eggs. , 2006, Poultry science.

[18]  N. Mizuno,et al.  Development of Visual Egg Inspection System for Poultry Farmer Using CNN with Deep Learning , 2020, 2020 IEEE/SICE International Symposium on System Integration (SII).

[19]  Wei Zhou,et al.  Study on Detection Method for Crack in Eggs Based on Computer Vision and Support Vector Machine Neural Network , 2014 .

[20]  Bao Guanjun,et al.  Cracked egg recognition based on machine vision , 2019 .

[21]  Somying Thainimit,et al.  Crack detection on unwashed eggs using image processing , 2017 .