Related Experiment Video
Updated: Jan 14, 2026

Combination of Adhesive-tape-based Sampling and Fluorescence in situ Hybridization for Rapid Detection of Salmonella on Fresh Produce
Published on: October 18, 2010
Hybrid Sampling and Ensemble Learning for Food Safety Sampling Inspection Classification
Ke Qin1, Xiaoting Dai2, Linhai Wu2
1School of Business, Jiangnan University, No. 1800, Lihu Avenue, Wuxi 214122, PR China.
None:
Food safety sampling inspection is critical for risk prevention in complex supply chains. However, extreme class imbalance, where unqualified samples are significantly outnumbered by qualified ones, biases machine learning (ML) models to prioritize majority classes, compromising unqualified sample detection. Conventional oversampling methods fail to handle food inspection data's nonlinear features, complex distributions, and multiclass scenarios, often generating low-quality synthetic samples and noisy decision boundaries. To address these challenges, we proposed LOF-KNN-CSENN (Local Outlier Factor-K-Nearest Neighbors-Combined Synthetic Minority Over-sampling Technique and Edited Nearest Neighbors), a hybrid sampling algorithm of Synthetic Minority Over-sampling Technique (SMOTE) and Edited Nearest Neighbors (ENN) integrating Local Outlier Factor (LOF) for noise filtering and K-Nearest Neighbors (KNN) for boundary sample preservation. LOF-KNN-CSENN synergizes minority oversampling and majority undersampling to optimize data distribution. A stacking ensemble learning framework is further introduced, combining six tree-based models with Logistic Regression (LR) as a meta model to enhance classification robustness. Experiments on a real-world food safety sampling inspection dataset demonstrated that LOF-KNN-CSENN suppresses noisy sample synthesis and balances data distribution. When integrated with stacking, the model achieves 0.4-5.6% higher precision and 0.8-30.7% higher F1-score compared to single models. Shapley Additive Explanations (SHAP) analysis identified production address, sampling stage, and location as key risk factors, supporting targeted supervision. This study provides a novel framework for intelligent food safety regulation, leveraging hybrid sampling and ensemble learning to mitigate class imbalance and enhance unqualified sample detection in multicategory food inspection.
More Related Videos
Related Concept Videos
Sampling Plans
Random sampling is a method where each member of the population has an equal chance of being selected for the sample. It involves selecting individuals randomly, often using random number generators or lottery-type methods. For example, when analyzing the properties of a...
Sampling Methods: Overview
In analytical chemistry, the choice of...
Sampling Methods: Sample Types
Solid samples include a variety of substances, such as sediments from water bodies, soil, metals, and biological tissues. Two standard methods for extracting sediments from water bodies are grab sampling and piston coring. Grab sampling involves using a device to collect a discrete sediment sample from the bottom of a water body with minimal disturbance. Grab samples do not always represent the entire area due to...
Stratified Sampling Method
To choose a stratified sample, divide the population into groups called strata and then take a...
Convenience Sampling Method
Convenience sampling is a non-random method of sample selection; this method selects individuals that are easily accessible and may result in biased data. For example, a marketing...
Cluster Sampling Method
To choose a cluster sample, divide the population into clusters (groups) and then randomly select some of the clusters. All the members from these clusters are in the cluster sample. For example, if you randomly sample four departments from your...

