To establish a machine learning predictive model based on multidimensional spatiotemporal risk feature engineering for forecasting the results of supervisory sampling inspections of edible agricultural products.
Using supervisory sampling data for edible agricultural products from Fujian’s prefecture-level cities between 2022 and 2024, information on product type, sampling location, sampling site and production date were systematically integrated. Multidimensional spatiotemporal risk feature engineering was applied to process the dataset, constructing 6 kinds of new features to form a novel dataset based on the original data. The 3 kinds of mainstream binary classification prediction models were applied to forecast inspection outcomes using the processed data.
Across all 3 kinds of mainstream models, the multidimensional spatiotemporal risk feature engineering method demonstrated superior predictive performance compared to traditional sampling methods.Specifically, the combination of multidimensional spatiotemporal risk feature engineering with light gradient boosting machine (LightGBM) achieved the best overall performance on the test set samples, with an AUC of 0.845,Recall of 0.881, G-mean of 0.741 and misclassification costs of 8561.
Compared to traditional sampling methods, multidimensional spatiotemporal risk feature engineering enhances the model’s ability to capture complex risk patterns, leading to a comprehensive improvement in predictive performance. The LightGBM model based on multidimensional spatiotemporal risk feature engineering can accurately predict the inspection results of edible agricultural products, providing technical support for formulating differentiated, dynamic supervision and inspection plans and risk early warning systems for edible agricultural products.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |