|
|
|
|
|
|
High-Efficient and Accurate Testing of Egg Freshness Based on
IPLS-XGBoost Algorithm and VIS-NIR Spectrum |
ZHANG Mei-zhi1, ZHANG Ning1, 2, QIAO Cong1, XU Huang-rong2, GAO Bo2, MENG Qing-yang2, YU Wei-xing2* |
1. School of Electronic Engineering,Xi’an University of Posts and Telecommunications,Xi’an 710121,China
2. Key Laboratory of Spectral Imaging Technology of Chinese Academy of Sciences, Xi’an Institute of Optics and Precision Mechanics,Chinese Academy of Sciences,Xi’an 710119,China
|
|
|
Abstract In view of the low efficiency and accuracy of the traditional spectral method for egg freshness testing, we propose and demonstrate the study of egg freshness by using the VIS-NIR spectroscopy testing method combined with XGBoost and other algorithms. In our experiments, eggs were under different storage conditions as samples were divided into the training set and testing set for model building and evaluation. The harmonic weighted average (F-measure) and Accuracy were used as the performance evaluation indexes of the classification model. A VIS-NIR spectroscopy system collected the reflection spectra of eggs. The obtained spectral data werethen preprocessed and used to build different models for egg freshness evaluation. Various classification algorithms,including random forest (RF), least square regression (PLS), support vector machine (SVM), Multi-layer Perceptual Model (MLP) and XGBoost algorithm, were used. The performance of each modelwas evaluated in detail. The analysis shows that better training results are obtained in the RF, SVM and XGBoost models with data preprocessed by Savitzky Golay first-derivative (SG-1st-Der) and the PLS and MLP models with data preprocessed by standard normal variables (SNV).The interval partial least squares (IPLS) method was used to select a working waveband for data dimension reduction for models with the raw spectral data preprocessed by SG-1st-Der combing with the RF, SVM and XGBoost algorithms and models with the raw spectral data preprocessed by SNV combining with PLS and MLP algorithms, respectively. Based on the verification using the test set, it can be seen that the IPLS-XGBoost classification model after SG-1st-Der pretreatment performs best.For the conditions of room temperature storage and cold storage, the F-measure reached 92.33% and 90% respectively, and the Accuracy reached 94.44% and 91.67% respectively. Moreover, the computing time of the model for the prediction of test set samples takes only 0.6 s. The results show that the visible-near infrared spectroscopy method combined with the IPLS-XGBoost classification algorithm can be applied in egg freshness evaluation. Compared with traditional methods, this method has advantages in model classification performance, evaluation accuracy and running speed.
|
Received: 2022-01-27
Accepted: 2022-06-16
|
|
Corresponding Authors:
YU Wei-xing
E-mail: yuwx@opt.ac.cn
|
|
[1] WANG Qiao-hua, MA Yi-xiao, FU Dan-dan(王巧华, 马逸霄, 付丹丹). Transactions of the Chinese Society of Agricultural Engineering(农业工程学报), 2021, 40(6): 220.
[2] Qi L, Zhao M C, Li Z, et al. SN Applied Sciences, 2020, 2(6): 1113.
[3] CHU Xiao-li, SHI Yun-ying, CHEN Pu, et al(褚小立, 史云颖, 陈 瀑, 等). Progress in Chemical(化学进展), 2019, 38(5): 603.
[4] ZHANG Hui-e, YE Ping, LI Guang, et al(张慧娥, 叶 萍, 李 光, 等). Chinese Journal of Pharmaceutical Analysis(药物分析杂志), 2021, 41(8): 1360.
[5] ZHANG Lin-ying, LI Jing, RAO Hong-hui, et al(章琳颖, 黎 静, 饶洪辉, 等). Laser & Optoelectronics Progress(激光与光电子学进展), 2020, 57(23): 371.
[6] Cheng C W, Jung S Y, Lai C, et al. Journal of Supercomputing, 2020, 76(3): 1680.
[7] DUAN Yu-fei, WANG Qiao-hua, MA Mei-hu, et al(段宇飞, 王巧华, 马美湖, 等). Spectroscopy and Spectral Analysis(光谱学与光谱分析), 2016, 36(4): 981.
[8] YANG Xiao-yu, DING Jia-xing, FANG Meng-meng, et al(杨晓玉, 丁佳兴, 房盟盟, 等). Chinese Journal of Luminescence(发光学报), 2018, 39(3): 394.
[9] Dong X G, Dong J, Li Y L, et al. Computers and Electronics in Agriculture, 2019, 156: 669.
[10] Cruz-Tirado J P, Medeiros M L D, Barbin D F. Journal of Food Engineering, 2021, 306: 110643.
[11] Yao K S, Sun J, Zhou X, et al. Journal of Food Process Engineering, 2020, 43(7): e13422.
[12] Dong X, Zhang B, Dong J, et al. Spectroscopy Letters, 2020, 53(7): 512.
[13] Li X L, Ma L F, Cheng P, et al. Energy Reports, 2022, 8(55): 1087.
[14] Zhang Y, Chen P, Gao Y, et al. Combinatorial Chemistry & High Throughput Screening, 2022, 25(1): 3.
[15] HU Jian, FENG Yao-ze, WANG Yi-jian, et al(胡 建, 冯耀泽, 王益健, 等). Acta Optica Sinica(光学学报), 2022, 42(1): 265.
[16] Ding Y, Xia G Y, Ji H W, et al. Analytical Methods, 2019, 11(29): 3657.
|
[1] |
LI Qing-bo1, BI Zhi-qi1, CUI Hou-xin2, LANG Jia-ye2, SHEN Zhong-kai2. Detection of Total Organic Carbon in Surface Water Based on UV-Vis Spectroscopy[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2022, 42(11): 3423-3427. |
[2] |
ZOU Xiao-bo, FENG Tao, ZHENG Kai-yi, SHI Ji-yong, HUANG Xiao-wei, SUN Yue. Simultaneous Identification of Wheat Origin and Drying Degree Using Near-Infrared and Mid-Infrared Fusion Techniques[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2019, 39(05): 1445-1450. |
[3] |
LIU Jin-ming1, 2, CHU Xiao-dong1, WANG Zhi1, XU Yong-hua3, LI Wen-zhe1, SUN Yong1*. Optimization of Characteristic Wavelength Variables of Near Infrared Spectroscopy for Detecting Contents of Cellulose and Hemicellulose in Corn Stover[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2019, 39(03): 743-750. |
[4] |
LIU Guo-hai, HAN Wei-qiang, JIANG Hui . Study on Quality Identification of Olive Oil Based on Near Infrared Spectra[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2016, 36(09): 2798-2801. |
[5] |
XIAN Rui-yi1, HUANG Fu-rong1*, LI Yuan-peng1, PAN Sha-sha1, CHEN Zhe1, CHEN Zhen-qiang1, WANG Yong2 . Quantitative Analysis of Deep-Frying Oil Adulterated Virgin Olive Oil Using Vis-NIR Spectroscopy with iPLS[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2016, 36(08): 2462-2467. |
[6] |
LUO Xia1, 2, 3, HONG Tian-sheng2, 3, 4*, LUO Kuo2, 3, 4, DAI Fen1, 2, 3, WU Wei- bin2, 3, 4, MEI Hui-lan2, 3, 4, LIN Lin4. Application of Wavelet Transform and Successive Projections Algorithm in the Non-Destructive Measurement of Total Acid Content of Pitaya[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2016, 36(05): 1345-1351. |
[7] |
YANG Ai-xia1,2, DING Jian-li1,2*, LI Yan-hong3,4, DENG Kai1,2 . Study on Estimation of Deserts Soil Total Phosphorus Content by Vis-NIR Spectra with Variable Selection [J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2016, 36(03): 691-696. |
[8] |
WU Qian1, YANG Yu-hong2, XU Zhao-li2, JIN Yan2, GUO Yan1, LAO Cai-lian3* . Applying Local Neural Network and Visible/Near-Infrared Spectroscopy to Estimating Available Nitrogen, Phosphorus and Potassium in Soil [J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2014, 34(08): 2102-2105. |
[9] |
OUYANG Ai-guo, XIE Xiao-qiang, ZHOU Yan-rui, LIU Yan-de*. Partial Least Squares Regression Variable Screening Studies on Apple Soluble Solids NIR Spectral Detection[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2012, 32(10): 2680-2684. |
[10] |
WU Rui-mei1, 2, ZHAO Jie-wen1*, CHEN Quan-sheng1, HUANG Xing-yi1 . Determination of Taste Quality of Green Tea Using FT-NIR Spectroscopy and Variable Selection Methods [J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2011, 31(07): 1782-1785. |
[11] |
LIU Jun-liang, SUN Bai-ling, YANG Zhong . Estimation of the Physical and Mechanical Properties of Neosinocalamus Affinins Using Near Infrared Spectroscopy [J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2011, 31(03): 647-651. |
[12] |
SUN Bai-ling, LIU Jun-liang*, CAI Yu-bo . Determination of Crystallinity in Neosinocalamus affinins Based on Near Infrared Spectroscopy and PLS Methods [J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2011, 31(02): 366-370. |
[13] |
LI Peng-fei, WANG Jia-hua, CAO Nan-ning, HAN Dong-hai* . Selection of Variables for MLR in Vis/NIR Spectroscopy Based on BiPLS Combined with GA [J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2009, 29(10): 2637-2641. |
|
|
|
|