The supervision of security risk level of carbofuran pesticide residues can guarantee the food quality and security of residents effectively. In order to predict the potential key risk vegetables and regions, this paper constructs a security risk assessment model, combined with the k-means++ algorithm, to establish the risk security level. Then the evaluation index value of the security risk model is predicted to determine the security risk level based on the deep learning model. The model consists of a convolutional neural network (CNN) and a long short-term memory network (LSTM) optimized by an arithmetic optimization algorithm (AOA), namely, CNN-AOA-LSTM. In this paper, a comparative experiment is conducted on a small sample data set of independently constructed security risk assessment indicators. Experimental results show that the accuracy of the CNN-AOA-LSTM prediction model based on attention mechanism is 6.12% to 18.99% higher than several commonly used deep neural network models (gated recurrent unit, LSTM, and recurrent neural networks). The prediction model proposed in this paper provides scientific reference to establish the priority order of supervision, and provides forward-looking supervision for the government.
Focused supervision and early warning of heavy metal (HM)-contaminated rice areas can effectively protect people’s livelihood security and maintain social stability. To improve the accuracy of risk prediction, an Informer-based safety risk prediction model for HMs in rice is constructed in this paper. First, based on the national sampling data and residential consumption statistics of rice, we construct a dataset of evaluation indicators that can characterize the level of rice safety risk so as to form a safety risk space. Second, based on the K-medoids clustering algorithm, we classify the rice safety risk space into levels. Finally, we use the Informer neural network model to predict the safety risk indicators of rice in each province so as to predict the safety risk level. This study compares the prediction accuracy of a self-constructed dataset of rice safety risk assessment indicators. The experimental results show that the prediction precision of the method proposed in this paper reaches 99.17%, 91.77%, and 91.33% for low, medium, and high risk levels, respectively. The model provides technical support and a scientific basis for screening the time and area of HM contamination of rice, which needs focus.
Early warning and focused regulation of veterinary drug residues in freshwater products can protect human health and stabilize social development. To improve the prediction accuracy, this paper constructs a Transformer-based model for predicting the safety risk level of veterinary drug residues in freshwater products in China to conduct a comprehensive assessment and prediction of the three veterinary drug residues with the maximum detection rate in freshwater products, including florfenicol, enrofloxacin and sulfonamides. Using the national sampling data and consumption data of freshwater products from 2019 to 2021, this paper constructs a self-built dataset, combined with the k-means algorithm, to establish the risk-level space. Finally, based on a Transformer neural network model, the safety risk assessment index is predicted on a self-built dataset, with the corresponding risk level for prediction. In this paper, comparison experiments are conducted on the self-built dataset. The experimental results show that the prediction model proposed in this paper achieves a recall rate of 94.14%, which is significantly better than other neural network models. The model proposed in this paper provides a scientific basis for the government to implement focused regulation, and it also provides technical support for the government’s intervention regulation.