In this paper, we proposed a nondestructive detection method for egg freshness based on infrared thermal imaging technology. We studied the relationship between egg thermal infrared images (different shell colors and cleanliness levels) and egg freshness under heating conditions. Firstly, we established a finite element model of egg heat conduction to study the optimal heat excitation temperature and time. The relationship between the thermal infrared images of eggs after thermal excitation and egg freshness was further studied. Eight values of the center coordinates and radius of the egg circular edge as well as the long axis, short axis, and eccentric angle of the egg air cell were used as the characteristic parameters for egg freshness detection. After that, four egg freshness detection models, including decision tree, naive Bayes, k-nearest neighbors, and random forest, were constructed, with detection accuracies of 81.82%, 86.03%, 87.16%, and 92.32%, respectively. Finally, we introduced SegNet neural network image segmentation technology to segment the egg thermal infrared images. The SVM egg freshness detection model was established based on the eigenvalues extracted after segmentation. The test results showed that the accuracy of SegNet image segmentation was 98.87%, and the accuracy of egg freshness detection was 94.52%. The results also showed that infrared thermography combined with deep learning algorithms could detect egg freshness with an accuracy of over 94%, providing a new method and technical basis for online detection of egg freshness on industrial assembly lines.
This study proposes a nondestructive method for evaluating egg freshness using laser Doppler vibrometry. A vibration measurement platform was constructed to collect vibration signals from intact eggs representing four freshness grades. The vibration signals were processed using multiplicative scatter correction, standard normal variate transformation, moving average filtering, Savitzky–Golay smoothing, and first-order Savitzky–Golay differentiation. Principal component analysis, successive projections algorithm, and competitive adaptive reweighted sampling were then used for feature extraction and dimensionality reduction. Six classification models were developed and compared, including support vector machine, k-nearest neighbor, random forest, naive Bayes, discriminant analysis, and linear discriminant analysis. The model based on moving average filtering, successive projections algorithm, and discriminant analysis using measurements from three egg locations achieved a classification accuracy of 96.7%. The model based on moving average filtering, competitive adaptive reweighted sampling, and random forest using blunt-end measurements also achieved an accuracy of 96.7%. These results demonstrate that laser Doppler vibrometry combined with machine learning can distinguish eggs with different freshness levels, providing a promising nondestructive approach for egg-quality evaluation.