# Design of Safety Evaluation and Risk Traceability System for Agricultural Product Quality
## 4 Realization of Results
### System Test  
Based on the experimental pilot of relevant planting bases, the sample soil was tested and analyzed. Based on the system implementation, the detection data of the sample soil were further applied to the system, and the risk assessment results obtained after the system operation were used to verify its practical significance. The pH value of the obtained sample soil is 7.65, the organic matter content in the soil is 26.18 g/kg, and the soil oxidation-reduction potential is 158 mv. The specific heavy metal contents of soil, fertilizer, atmosphere, and irrigation water are shown in Table 4.  
The bioaccumulation coefficient (\(BCF\)) and transfer coefficient (\(BTF\)) were used to evaluate the heavy metal enrichment ability of agricultural products, and the evaluation results were used to refer to the accuracy of the design system for heavy metal traceability. The specific calculation formula is as follows:  
\[BCF=w_{crop}/w_{soil} \tag{6}\] \begin{table}
\begin{tabular}{c c c c c c c c c} \hline \hline \multirow{2}{*}{**Category**} & \multicolumn{8}{c}{**Heavy Metal Content (mg/kg)**} \\ \cline{2-10}  & **Cu** & **Pb** & **Cr** & **Cd** & **As** & **Hg** & **Ni** & **Zn** \\ \hline Soil & 395.1 & 97.2 & 53.5 & 2.76 & 13.5 & 0.143 & 8.18 & 49.3 \\ Fertilizer & 75.46 & 29.6 & 42.4 & 1.5 & \(\backslash\) & 0.551 & \(\backslash\) & \(\backslash\) \\ Atmosphere & 48.2 & 84.4 & 82.7 & 2.25 & \(\backslash\) & 0.213 & 20.06 & 176.7 \\ Irrigation & \(\backslash\) & 0 & 0.57 & 0 & 1.46 & 0 & 0 & 0 \\ \hline \hline \end{tabular}
\end{table} 
Table 4: Sample soil information table. Figure 9: Heavy metal information input interface. In Equation (6): \(w_{crop}\) represents the mass fraction of heavy metals in agricultural objects (mg/kg); \(w_{soil}\) represents the mass fraction of heavy metals in the rhizosphere soil of crops (mg/kg). \[BTF=w_{above}/w_{root} \tag{7}\]  
In Equation (7): \(w_{above}\) represents the mass fraction of heavy metals in the aboveground parts of crops (mg/kg); \(w_{root}\) represents the mass fraction of heavy metals in the roots of crops (mg/kg);  
The soil heavy metal threshold based on crop food safety is \(HMT\), and the calculation formula is:  
\[HMT=E/BCF \tag{8}\]  
In Equation (8), \(E\) represents the limit value standard in the corresponding health standard. Taking copper as an example, the copper content in the sample exceeds its safety threshold, which poses a significant enrichment risk in agricultural products. The system adopts a designed agricultural product quality and safety risk assessment model to conduct a risk assessment on the detection data related to Cu in the obtained sample soil. As shown in Figure 10, according to the evaluation results displayed by the system, it can be seen that the warning score of Cu in the sample soil is 63.83 points. If it exceeds the set warning score by 60 points, the system will mark it with a red warning prompt. The first-level indicator scores are 58.30 points, 65.00 points, and 80.00 points, respectively. According to the system evaluation prompt, the Cu content in the sample soil will have a significant impact on the accumulation of heavy metals in planted crops. Therefore, the soil environment should be improved to reduce the accumulation effect of Cu in crops. By clicking on the secondary indicator option under heavy metal risk sources in the navigation bar on the left side of the main interface, the available content of soil heavy metals and the absorption coefficient of crop heavy metals are shown in Figures 11 and 12, respectively. The interface can display monitoring data for each indicator, with the evaluation indicator with the highest risk highlighted in red and the evaluation indicator with the highest risk highlighted in blue. Figure 10: Heavy metal information display interface. In Figure 13, when observing the heavy metal content of other sources, various indicators are highlighted, and the results show that Cu was detected in soil, fertilizer, and an atmospheric environment.