Use of machine learning to detect Escherichia coli in drinking water in Bangladesh
PLOS One · 20.08.2026 · 21 (8) · e0343606
DOI: 10.1371/journal.pone.0343606 ↗Kurz gefasst
Fachartikel in der Zeitschrift PLOS One, online erschienen am 20.08.2026. Verfasst von Iqramul Haq und 2 weiteren Autor:innen. Beteiligte Einrichtung: Faculty of Veterinary Medicine, University of Calgary, Calgary, AB, Canada. Hauptthemen laut MEDLINE: Escherichia coli, Drinking Water, Machine Learning. Die Arbeit nennt 74 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Escherichia coli (E. coli) is a key indicator of fecal contamination in freshwater and can signal the presence of other harmful bacteria and viruses. The aim of the study is to evaluate the performance of machine learning (ML) tools to detect E. coli in drinking water in Bangladesh using surveillance data under two scenarios: an imbalanced dataset and a balanced dataset. We utilized data from the 2019 Bangladesh Multiple Indicator Cluster Survey, which included a total of 6,069 household drinking water samples. We used agglomerative hierarchical clustering with Ward’s linkage to identify district-level hotspots. Extreme Gradient Boosting with SHapley Additive exPlanations values were used for feature selection, and the Synthetic Minority Over-sampling Technique (SMOTE) was used to address class imbalance in the classification task. We applied nine classical ML models in this study: Adaptive Boosting (AdaBoost), Decision Trees (DT), Gradient Boosting Algorithm (GBA), k-Nearest Neighbors (KNN), Light Gradient-Boosting Machine (LightGBM), Logistic Regression (LR), Naïve Bayes (NB), Random Forest (RF), and Support Vector Machine (SVM), along with a Deep Learning Multi-Layer Perceptron (DL-MLP) model to predict the risk of E. coli contamination (REcC) in water. Model performance was evaluated using accuracy, precision, recall, F1 score, Cohen Kappa, area under the curve (AUC), and a violin plot. E. coli contamination in drinking water was detected in 39.2% (95% CI: 37.4–41.2) of households. Bandarban district had the highest REcC. After applying SMOTE and 10-fold cross-validation with hyperparameter tuning, model performance was more consistent across algorithms. In terms of model evaluation, AdaBoost slightly outperformed the others with an accuracy of 81.6%, Cohen kappa statistic of 19.4%, precision of 82.2%, recall of 99%, F1-score of 89.8%, and an AUC of 68.6%. Ensemble model for example AdaBoost and GBA models had ability to accurately classify drinking water samples with respect to the presence of E. coli using surveillance data than others selected model in this study.
Schlagwörter
MeSH-Schlagwörter (MEDLINE)
Substanzen
Autor:innen und Institutionen
- Faculty of Veterinary Medicine, University of Calgary, Calgary, AB, Canada.
- Department of Agricultural Statistics, Sher-e-Bangla Agricultural University, Dhaka, Bangladesh.
- Department of Statistics, Jagannath University, Dhaka, Bangladesh.
ORCID-Profile: Iqramul Haq, Diego Nobrega
Zitieren
APA
Haq, I., Ador, M. Y. H., & Nobrega, D. (2026). Use of machine learning to detect Escherichia coli in drinking water in Bangladesh. PLOS One, 21(8), e0343606. https://doi.org/10.1371/journal.pone.0343606
Vancouver
Haq I, Ador MYH, Nobrega D. Use of machine learning to detect Escherichia coli in drinking water in Bangladesh. PLOS One. 2026;21(8):e0343606. doi:10.1371/journal.pone.0343606
BibTeX
@article{Haq2026,
author = {Haq, Iqramul and Ador, Md Yusuf Hossain and Nobrega, Diego},
title = {Use of machine learning to detect Escherichia coli in drinking water in Bangladesh},
journal = {PLOS One},
year = {2026},
volume = {21},
number = {8},
pages = {e0343606},
doi = {10.1371/journal.pone.0343606}
}
EUVIMED