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.
A new hybrid sampling method, LOF-KNN-CSENN, effectively balances food safety data by reducing noise and preserving boundaries. Integrated with ensemble learning, it significantly improves detection of unqualified food samples.
Area of Science:
- Food safety
- Machine Learning
- Data Science
Background:
- Extreme class imbalance in food safety sampling biases ML models against detecting unqualified samples.
- Conventional oversampling methods struggle with complex food inspection data, leading to poor detection.
- Addressing nonlinear features, complex distributions, and multiclass scenarios is crucial for accurate food safety analysis.
Purpose of the Study:
- To develop a novel hybrid sampling algorithm to overcome limitations of conventional methods in food safety inspection.
- To enhance the detection of unqualified food samples by mitigating class imbalance and improving model robustness.
- To introduce an intelligent framework for food safety regulation using advanced ML techniques.
Main Methods:
- Proposed LOF-KNN-CSENN: a hybrid algorithm combining SMOTE and ENN with LOF for noise filtering and KNN for boundary preservation.
- Implemented a stacking ensemble learning framework with six tree-based models and Logistic Regression (LR) as a meta-model.
- Utilized Shapley Additive Explanations (SHAP) for identifying key risk factors in food safety.
Main Results:
- LOF-KNN-CSENN effectively suppressed noisy sample synthesis and balanced data distribution in food inspection datasets.
- The integrated stacking ensemble model achieved higher precision (0.4-5.6%) and F1-score (0.8-30.7%) compared to single models.
- SHAP analysis identified production address, sampling stage, and location as critical risk factors for targeted food safety supervision.
Conclusions:
- The proposed LOF-KNN-CSENN algorithm and stacking ensemble framework offer a robust solution for intelligent food safety regulation.
- This approach significantly enhances the detection of unqualified samples in multicategory food inspection by addressing class imbalance.
- The findings support targeted supervision strategies by highlighting key risk factors, contributing to improved food safety outcomes.
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...

