Study on Infrared Spectral Recognition of Microplastics in Fishmeal Based on XGBoost Algorithm
Xu Xiao-dong,Zhang Hui-min,Liu Jia-le,Han Lu-jia,Yang Zeng-ling,Liu Xian
DOI: https://doi.org/10.3964/j.issn.1000-0593(2024)07-1835-08
2024-01-01
Spectroscopy and spectral analysis
Abstract:As one of the four emerging pollutants,the harm caused by"microplastics"has become increasingly prominent.The detection and identification of microplastics are the keys to pollution assessment and risk management prevention and control.This paper uses microplastics(including PA,PE,PET,PP,PS,and PVC)in fishmeal as the research objects.The XGBoost algorithm studies and constructs the qualitative recognition models of near-infrared and infrared spectroscopy.The XGBoost algorithm studies and constructs the qualitative recognition models of near-infrared and infrared spectroscopy.Optimising the main hyperparameters of the XGBoost model using the GridSearchCV toolkit.The hyperparameter optimization results of the near-infrared spectroscopy model were n_estimators:300,learning_rate:0.08,gamma:0,max_depth:4,min_child_weight:1.The hyperparameter optimization results of infrared spectroscopy are n_estimators:100,learning_rate:0.02,gamma:0.20,max_depth:4,and min_child_weight:1.The average Precision of the NIR qualitative recognition model constructed based on the optimized hyperparameters was 0.985,the average Recall was 0.977,and the average F1 score was 0.978,which improved by 40.17%,51.00%,and 50.00%compared with the model before optimization.The average precision,average recall,and average F1 scores of the infrared qualitative recognition model were all 1.000,and the optimized model effect improved by 20.67%,27.50%,and 26.33%,respectively.Further comparative analysis with the PLS-DA model shows that the XGBoost model of the infrared spectrum is the same as that of the PLS-DA model,and the effect of each parameter(Accuracy,Precision,Recall,F1 score)of the XGBoost model of the near-infrared spectrum is better than that of PLS-DA model to varying degrees.In summary,the XGBoost algorithm can effectively identify different types of microplastics in fishmeal.This study provides theoretical and technical support for rapidly detecting and identifying microplastics in fishmeal.