Uncategorized

Oversampling methods for machine learning model data training to improve model capabilities to predict the presence of Escherichia coli MG1655 in spinach wash water




doi: 10.1111/1750-3841.16850.


Online ahead of print.

Affiliations

Item in Clipboard

Jacob A Stanosheck et al.


J Food Sci.


.

Abstract

We assessed the efficacy of oversampling techniques to enhance machine learning model performance in predicting Escherichia coli MG1655 presence in spinach wash water. Three oversampling methods were applied to balance two datasets, forming the basis for training random forest (RF), support vector machines (SVMs), and binomial logistic regression (BLR) models. Data underwent method-specific centering and standardization, with outliers replaced by feature-specific means in training datasets. Testing occurred without these preprocessing steps. Model hyperparameters were optimized using a subset of testing data via 10-fold cross-validation. Models were trained on full datasets and tested on newly acquired spinach wash water samples. Synthetic Minority Oversampling Technique (SMOTE) and Adaptive Synthetic Sampling approach (ADASYN) achieved strong results, with SMOTE RF reaching an accuracy of 90.0%, sensitivity of 93.8%, specificity of 87.5%, and an area under the curve (AUC) of 98.2% (without data preprocessing) and ADASYN achieving 86.55% accuracy, 87.5% sensitivity, 83.3% specificity, and a 92.4% AUC. SMOTE and ADASYN significantly improved (p < 0.05) SVM and RF models, compared to their non-oversampled counterparts without preprocessing. Data preprocessing had a mixed impact, improving (p < 0.05) the accuracy and specificity of the BLR model but decreasing the accuracy and specificity (p < 0.05) of the SVM and RF models. The most influential physiochemical feature for E. coli detection in wash water was water conductivity, ranging from 7.9 to 196.2 µS. Following closely was water turbidity, ranging from 2.97 to 72.35 NTU within this study.


Keywords:

accuracy; food safety; fresh produce; leafy greens; predictive tools.

PubMed Disclaimer

References

REFERENCES

    1. Alegbeleye, O. O., Singleton, I., & Sant’Ana, A S. (2018). Sources and contamination routes of microbial pathogens to fresh produce during field cultivation: A review. Food Microbiology, 73, 177-208.

    1. Aliashrafi Zagi, A. (2022). Assessment of source water microbial quality using Bayesian belief networks and data balancing algorithms [Master’s thesis, University of British Columbia]. UBC Theses and Dissertations. https://doi.org/10.14288/1.0413713

    1. Allende, A., Selma, M. V., López-Gálvez, F., Villaescusa, R., & Gil, M. I. (2008). Impact of wash water quality on sensory and microbial quality, including Escherichia coli cross-contamination of fresh-cut escarole. Journal of Food Protection, 71(12), 2514-2518. https://doi.org/10.4315/0362-028X-71.12.2514

    1. Alradaan, A. (2018). Dynamics of wash water parameters in the sanitization of freshly cut produce. Desalination, 287, 35-40. https://doi.org/10.1016/j.desal.2011.12.003

    1. Balderas, E. C. S., Berti-Equille, L., Hernandez, M. A. A., & Grac, C. (2017). Principled data preprocessing: Application to biological aquatic indicators of water pollution. 28th International Workshop on Database and Expert Systems Applications, Lyon, France (pp. 52-56). https://doi.org/10.1109/DEXA.2017.27



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *