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.
Changes in storage environments have a significant impact on grain quality. Accurate prediction of any quality changes during grain storage in different environments is very important for human health. In this paper, we selected wheat and corn, which are among the three major staple grains, as the target grains whose storage monitoring data cover more than 20 regions, and constructed a grain storage process quality change prediction model, which includes a FEDformer-based grain storage process quality change prediction model and a K-means++-based grain storage process quality change grading evaluation model. We select six factors affecting grain quality as input to achieve effective prediction of grain quality. Then, evaluation indexes were defined in this study, and a grading evaluation model of grain storage process quality was constructed using clustering model with the index prediction results and current values. The experimental results showed that the grain storage process quality change prediction model had the highest prediction accuracy and the lowest prediction error compared with other models.
Proper grain storage plays a critical role in maintaining food quality. Among a variety of grains, wheat has emerged as one of the most important grain reserves globally due to its short growing period, high yield, and storage resistance. To improve the quality assessment of wheat during storage, this study collected and analyzed monitoring data from more than 20 regions in China, including information on storage environmental parameters and changes in wheat pesticide residue concentrations. Based on these factors, an Autoformer-based model was developed to predict the changes in wheat pesticide residue concentrations during storage. A comprehensive wheat quality assessment index Q was set for the predicted and true values of pesticide residue concentrations, then combined with the K-means++ algorithm to assess the quality of wheat during storage. The results of the study demonstrate that the Autoformer model achieved the optimal prediction results and the smallest error values. The mean absolute error (MAE) and the other four error values are 0.11017, 0.01358, 0.04681, 0.11654, and 0.13005. The findings offer technical assistance and a scientific foundation for enhancing the quality of stored wheat.
The storage environment can significantly impact paddy quality, which is vital to human health. Changes in storage can cause growth of fungi that affects grain quality. This study analyzed grain storage monitoring data from over 20 regions and found that five factors are essential in predicting quality changes during storage. The study combined these factors with the FEDformer (Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting) model and k-medoids algorithm to construct a paddy quality change prediction model and a grading evaluation model, which showed the highest accuracy and lowest error in predicting quality changes during paddy storage. The results emphasize the need for monitoring and controlling the storage environment to preserve grain quality and ensure food safety.
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.