Operational Anomaly Detection in Drinking Water Treatment Plants Using Machine Learning Predictive Models: A Comparative Analysis

Authors

  • Marco Antonio Jaramillo Romero Universidad Técnica de Machala, Facultad de Ingeniería Civil, Carrera de Tecnologías de la Información, Machala, El Oro, Ecuador. ORCID iD https://orcid.org/0009-0007-7652-1469
  • Josue Alberto Barba Zambrano Universidad Técnica de Machala, Facultad de Ingeniería Civil, Carrera de Tecnologías de la Información, Machala, El Oro, Ecuador. ORCID iD https://orcid.org/0009-0006-4088-7517
  • Milton Rafael Valarezo Pardo Universidad Técnica de Machala, Facultad de Ingeniería Civil, Carrera de Tecnologías de la Información, Machala, El Oro, Ecuador. ORCID iD https://orcid.org/0000-0003-1819-2074
  • Joffre Jeorwin Cartuche Calva Universidad Técnica de Machala, Facultad de Ingeniería Civil, Carrera de Tecnologías de la Información, Machala, El Oro, Ecuador. ORCID iD https://orcid.org/0000-0002-1633-2291

DOI:

https://doi.org/10.33936/isrtic.v10i2.8660

Keywords:

Machine learning, anomaly detection, unsupervised learning, drinking water treatment plants, comparative algorithm analysis

Abstract

Drinking water treatment plants (DWTPs) face the challenge of promptly detecting operational anomalies that occur infrequently and without previously labeled patterns, limiting the applicability of supervised learning approaches. This study comparatively evaluates three unsupervised Machine Learning algorithms for operational anomaly detection in DWTPs: Isolation Forest, Local Outlier Factor, and One-Class SVM. The research follows a quantitative approach, with an explanatory-applied scope and a non-experimental design, methodologically validated using the open GECCO Industrial Challenge 2018 dataset, comprising 138,521 minute-sampled records with 1,726 documented events (1.25%). Model construction and evaluation followed the CRISP-DM framework, with data split into training (60%), validation (20%, used to select the decision threshold) and test (20%, never used during fitting) sets. On the test set, One-Class SVM achieved the best F1-Score (sensitivity=63.77%, precision=38.80%, F1=0.4825, AUC-ROC=0.9201), followed by Isolation Forest (F1=0.3717) and Local Outlier Factor (F1=0.1180). The results indicate One-Class SVM as the model with the best balance between sensitivity and precision under this dataset, although they do not yet warrant recommending a specific model for any treatment plant nor claiming that all three algorithms are operationally viable without further validation.

Downloads

Download data is not yet available.

References

Ajayi, O. O., Ajayi, O. G., Madziwa, L., & Falayi, T. (2026). Integrated analysis and prediction of water membrane fouling risk using machine learning and time series modelling. Physics and Chemistry of the Earth. https://doi.org/10.1016/j.pce.2026.104498

Al-Khafaji, M. S., Abdulameer, L., Al-Shammari, M. M. A., Al Maimuri, N. M. L., Dulaimi, A., & Al-Jumeily, D. (2025). Revolutionizing water quality monitoring with artificial intelligence: A systematic review. Journal of Studies in Science and Engineering, 5(1), 358–385. https://doi.org/10.53898/josse2025528

Babela, J., Munk, M., & Munkova, D. (2026). A multisource dataset for anomaly detection and fault prediction in urban water distribution networks. Scientific Data. https://doi.org/10.1038/s41597-026-07203-5

Breunig, M. M., Kriegel, H.-P., Ng, R. T., & Sander, J. (2000). LOF: Identifying density-based local outliers. ACM SIGMOD Record, 29(2), 93–104. https://doi.org/10.1145/335191.335388

Davis, J., & Goadrich, M. (2006). The relationship between Precision-Recall and ROC curves. In Proceedings of the 23rd International Conference on Machine Learning (ICML) (pp. 233–240). ACM. https://doi.org/10.1145/1143844.1143874

Dogo, E. M., Nwulu, N. I., Twala, B., & Aigbavboa, C. (2019). A survey of machine learning methods applied to anomaly detection on drinking-water quality data. Urban Water Journal, 16(3), 235–248. https://doi.org/10.1080/1573062x.2019.1637002

Erreyes Cuenca, L. A., Olmedo Chica, N. J., Zea Ordóñez, M. P., & Loja Mora, N. M. (2025). Prototipo de sistema de monitoreo inteligente para la detección en tiempo real de objetos y actividades sospechosas utilizando deep learning. Informática y Sistemas, 9(2), 197–213. https://doi.org/10.33936/isrtic.v9i2.7908

Ghinea, L. M., Miron, M., & Barbu, M. (2023). Semi-supervised anomaly detection of dissolved oxygen sensor in wastewater treatment plants. Sensors, 23(19), 8022. https://doi.org/10.3390/s23198022

Inoue, J., Yamagata, Y., Chen, Y., Poskitt, C. M., & Sun, J. (2017). Anomaly detection for a water treatment system using unsupervised machine learning. In 2017 IEEE International Conference on Data Mining Workshops (ICDMW) (pp. 1058–1065). IEEE. https://doi.org/10.1109/ICDMW.2017.149

Kaur, H., Bansod, B. S., Khungar, P., & Dhawan, C. (2025). Combining clustering and ensemble learning for groundwater quality monitoring: A data-driven framework for sustainable water management. Environmental Science and Pollution Research. https://doi.org/10.1007/s11356-025-36477-2

Liu, F. T., Ting, K. M., & Zhou, Z.-H. (2008). Isolation forest. In 2008 Eighth IEEE International Conference on Data Mining (pp. 413–422). IEEE. https://doi.org/10.1109/ICDM.2008.17

Liu, X., Gong, Z., & Zhang, X. (2025). Research on anomaly detection in wastewater treatment systems based on a VAE-LSTM fusion model. Water, 17(19), 2842. https://doi.org/10.3390/w17192842

Ma, R., Li, J., Zhang, Z., Liu, Y., Xu, H., & Yan, W. (2026). Machine learning paradigms in natural and engineered water systems: From proof-of-concept to trustworthy deployment. Water Research. https://doi.org/10.1016/j.watres.2026.125932

Macas, M., & Wu, C. (2019). An unsupervised framework for anomaly detection in a water treatment system. In 2019 18th IEEE International Conference on Machine Learning and Applications (ICMLA) (pp. 1298–1305). IEEE. https://doi.org/10.1109/ICMLA.2019.00212

Mahmoud, I. A., Alsubih, M., Alkahtani, M., Sa’id, S., & Aliyu, U. U. (2026). Hybrid neural network ensembles for predicting water quality in municipal treatment systems. International Journal of Environmental Science and Technology, 23(4), Article 267. https://doi.org/10.1007/s13762-026-07052-0

More, K. S., & Wolkersdorfer, C. (2022). Predicting and forecasting mine water parameters using a hybrid intelligent system. Water Resources Management. https://doi.org/10.1007/s11269-022-03177-2

Moritz, S., Rehbach, F., Chandrasekaran, S., Rebolledo, M., & Bartz-Beielstein, T. (2018). GECCO Industrial Challenge 2018 dataset: A water quality dataset for the ‘Internet of Things: Online Anomaly Detection for Drinking Water Quality’ competition [Data set]. Zenodo. https://doi.org/10.5281/zenodo.3884398

Petkovski, A., & Shehu, V. (2023). Anomaly detection on univariate sensing time series data for smart aquaculture using deep learning. SEEU Review, 18(1), 1–16. https://doi.org/10.2478/seeur-2023-0030

Rehbach, F., Moritz, S., Chandrasekaran, S., Rebolledo, M., Friese, M., & Bartz-Beielstein, T. (2018). GECCO 2018 Industrial Challenge: Monitoring of drinking-water quality [Technical report]. TH Köln. https://www.spotseven.de/wp-content/uploads/2018/03/rulesGeccoIc2018.pdf

Rosero-Montalvo, P. D., López-Batista, V. F., Riascos, J. A., & Peluffo-Ordóñez, D. H. (2020). Intelligent WSN system for water quality analysis using machine learning algorithms: A case study (Tahuando River from Ecuador). Remote Sensing, 12(12), 1988. https://doi.org/10.3390/rs12121988

Schölkopf, B., Platt, J. C., Shawe-Taylor, J., Smola, A. J., & Williamson, R. C. (2001). Estimating the support of a high-dimensional distribution. Neural Computation, 13(7), 1443–1471. https://doi.org/10.1162/089976601750264965

Schröer, C., Kruse, F., & Gómez, J. M. (2021). A systematic literature review on applying CRISP DM process model. Procedia Computer Science, 181, 526–534. https://doi.org/10.1016/j.procs.2021.01.199

Wang, R., Zhao, X., Liu, X., Cheng, X., & Qiu, H. (2026). Physics-informed dynamic ensemble learning for real-time urban water quality monitoring. Engineering Applications of Artificial Intelligence, 175, 114628. https://doi.org/10.1016/j.engappai.2026.114628

Wang, Y., Wilchek, M., & Batarseh, F. A. (2026). From data to policy: A systematic review of AI in water regulations and compliance. npj Clean Water. https://doi.org/10.1038/s41545-026-00555-w

Weber, N., & Bieroza, M. (2026). The impact of data quality and outlier detection in high-frequency water quality data on water management and process understanding. Journal of Hydrology, 670, Article 135171. https://doi.org/10.1016/j.jhydrol.2026.135171

Wu, J., Wu, Y., Liu, Y., & Zhang, X. (2026). A multi-scale temporal representation-enhanced informer for wastewater effluent quality prediction. Applied Sciences, 16(9), 4078. https://doi.org/10.3390/app16094078

Published

2026-11-18

Issue

Section

Research Articles

Most read articles by the same author(s)