Abstract

To assess and predict the food safety risk of benzopyrene (BaP) in edible oils in China, this study collected national sampling data of edible oils from 20 Chinese provinces and their prefectures in 2019, and constructed a risk assessment model of BaP in edible oils with consumption data. Initially, the k-means algorithm was used for risk classification; then the data were pre-processed and trained to predict the data using the Long Short-Term Memory (LSTM) and the eXtreme Gradient Boosting (XGBoost) models, respectively, and finally, the two models were combined using the inverse error method. To test the effectiveness of the prediction model, this study experimentally validated the model according to five evaluation metrics: root mean square error (RMSE), mean absolute error (MAE), precision, recall, and F1 score. The variable-weight combined LSTM-XGBoost prediction model proposed in this paper achieved a precision of 94.62%, and the F1 score value reached 95.16%, which is significantly better than other neural network models; the results demonstrate that the prediction model has certain stability and feasibility. Overall, the combined model used in this study not only improves the accuracy but also enhances the practicality, real-time capabilities, and expandability of the model.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call