A rapid detection method for egg quality using CARS and SSA-XGBoost improved by combining hyperspectral analysis
[Objective]To realize non-destructive,accurate,and rapid detection of egg quality.[Methods]On the basis of hyperspectral detection technology,a rapid egg quality detection method combining the bottle sea squirt group algorithm and XGBoost algorithm has been proposed.Optimizing multiple hyperparameters of the XGBoost model through the Tartary Sea Salp Swarm Algorithm to improve the predictive performance of the XGBoost model.The quality of hyperspectral images was detected by inputting optimized XGBoost models after data preprocessing and feature wavelength selection.The performance of the proposed non-destructive testing method was verified through experiments.[Results]The experimental method could achieve rapid non-destructive testing of egg quality,with high recognition accuracy and efficiency,a coefficient of determination of 0.942,and an average detection time was 0.032 seconds.[Conclusion]The combination of hyperspectral detection technology and experimental methods can achieve rapid,accurate,and non-destructive testing of egg quality.