| Literature DB >> 35885319 |
Enguang Zuo1, Xusheng Du1, Alimjan Aysa1,2, Xiaoyi Lv3, Mahpirat Muhammat1, Yuxia Zhao1,4, Kurban Ubul1,2.
Abstract
Food safety is a high-priority issue for all countries. Early warning analysis and risk control are essential for food safety management practices. This paper innovatively proposes an anomaly score-based risk early warning system (ASRWS) via an unsupervised auto-encoder (AE) for the effective early warning of detection products, which classifies qualified and unqualified products by reconstructing errors. The early warning analysis of qualified samples is carried out by early warning thresholds. The proposed method is applied to a batch of dairy product testing data from a Chinese province. Extensive experimental results show that the unsupervised anomaly detection model AE can effectively analyze the dairy product testing data, with a prediction accuracy and fault detection rate of 0.9954 and 0.9024, respectively, within only 0.54 s. We provided an early warning threshold-based method to conduct the risk analysis, and then a panel of food safety experts performed a risk revision on the prediction results produced by the proposed method. In this way, AI improves the panel's efficiency, whereas the panel enhances the model's reliability. This study provides a fast and cost-effective, food safety early warning method for detection data and assists market supervision departments in controlling food safety risk.Entities:
Keywords: anomaly detection; auto-encoder; detection data; food safety risk early warning; machine learning
Year: 2022 PMID: 35885319 PMCID: PMC9316538 DOI: 10.3390/foods11142076
Source DB: PubMed Journal: Foods ISSN: 2304-8158
Figure 1Machine learning algorithm division.
The sample feature set.
| Categories | Requirements | Inspection Standard | |
|---|---|---|---|
|
| Protein (g/100 g) | ≥3.1 | GB 5009.5-2010 |
| Fat (g/100 g) | ≥3.7 | GB 5413.3-2010 | |
| NMS (g/100 g) | ≥8.5 | GB 5413.39-2010 | |
|
| Lactose (g/100 g) | ≤2.0 | GB 5009.8-2016 |
| AM1 ( | ≤0.5 | GB 2761-2017 | |
|
| Acidity (°T) | 11∼16 | GB 5413.34-2010 |
Figure 2Overall architecture of ASRWS.
Part raw data of food inspection between 2013 and 2021. Chinese standard GB 25190-2010 (National Standard for Food Safety Sterilized Milk).
| Sample ID | Date of Inspection | Inspection Item Name | |||||
|---|---|---|---|---|---|---|---|
| Lactose | Acidity | NMS | Fat | Protein | AM1 | ||
| 20210913-761 | 13 September 2021 | 1.74 | 12 | 8.79 | 4.16 | 3.42 | 0.2 |
| 20180528-1284 | 28 May 2018 | 1.79 | 12.01 | 8.96 | 4.17 | 3.36 | 0.5 |
| 20210812-719 | 12 April 2021 | 1.73 | 12.2 | 8.8 | 4.1 | 3.42 | 0.2 |
| 20200409-469 | 9 April 2020 | 1.73 | 12.13 | 8.61 | 4.37 | 3.34 | 0.5 |
Figure 3The t-SNE visualization before and after data preprocessing. (a) Not preprocessing. (b) Preprocessing.
Figure 4Vanilla auto-encoder.
Figure 5Denoising Auto-Encoder.
All models run over five times with random initializations and report the mean results. Where Acc is an abbreviation for accuracy. The method with the best performance on each dataset is bolded.
| Models | FDR | FAR | AUC | Acc | Time/(s) |
|---|---|---|---|---|---|
| KNN | 0.8048 | 0.3779 | 0.9951 | 0.9925 |
|
| LOF | 0.7073 | 0.5668 | 0.9959 | 0.9889 | 9.33 |
| COF | 0.7317 | 0.5196 | 0.9956 | 0.9898 | 48.78 |
| iForest | 0.6829 | 0.6141 | 0.9931 | 0.9879 | 17.22 |
| SO-GAAL | 0.6097 | 0.7557 | 0.9879 | 0.9851 | 1.43 |
| K-means | 0.7073 | 0.4723 | 0.9947 | 0.9887 | 0.62 |
| AE |
|
|
|
| 0.58 |
Figure 6Performance of FDR and FAR for each model with different noise ratios. (a) FDR. (b) FAR.
Figure 7Performance of FDR and FAR for each model with preprocessing or not. (a) FDR. (b) FAR.
Figure 8Top-n risk score visualization. n indicates the ranking order of risk scores. Index number means the sample order.
Figure 9Visualization to represent four risk levels by 2D (left) and 3D (right). The ( X,Y) and Z denote each sample’s 2D coordinates and risk score.
Risk level analysis. denotes calculating the p-value between risk level i and level j, .
| T-Test Sets | {0,3} | {1,3} | {2,3} | {0,1} | {1,2} |
|---|---|---|---|---|---|
| 0.0381 | 0.0397 | 0.0401 | 1.3497 | 1.0639 |