Research Article

Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province

Volume: 9 Number: 5 September 15, 2026
EN TR

Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province

Abstract

The access to reliable drinking water is of critical importance for human health and the United Nations Sustainable Development Goals (Goal 3: Good Health and Well-being, Goal 6: Clean Water and Sanitation). In this study, the microbiological water quality (Escherichia coli and total coliform) of five public fountains (Gordon, Kışla, Tarım, Aşağı Narkazan, and Yukarı Narkazan), which are intensively utilized by the public for drinking water in the province of Bayburt, was evaluated using time-series analysis and machine learning methods. The scope of the study utilized a comprehensive dataset of 476 monthly water analysis reports (285 safe, 191 contaminated) spanning the years 2014–2024. As a result of the trend and seasonality analyses applied to understand the temporal variations of contamination, no distinct seasonal patterns were detected in the examined fountains. While no significant trend was identified in E. coli concentrations, total coliform bacteria exhibited an increasing trend in the Kışla and Tarım fountains, and a decreasing trend in the Gordon fountain. To forecast water quality, six different supervised machine learning algorithms—namely Logistic Regression, K-Nearest Neighbors (KNN), Support Vector Machines (SVM), Naive Bayes, Decision Tree, and Random Forest—were implemented on the dataset. From a public health perspective, since the erroneous prediction of contaminated (unpotable) water as 'safe' by a machine (False Positive error) entails irreversible risks, the 'specificity' metric was prioritized as the core baseline for model performance evaluations. According to the analysis results; the Decision Tree, Naive Bayes, and Random Forest algorithms demonstrated flawless performance, achieving a score of 1.0 (100%) for both accuracy and specificity, thereby reducing the risk of faulty 'safe' predictions to zero. The empirical findings indicate that microbiological degradation is governed by irregular anthropogenic or environmental factors rather than predictable seasonal fluctuations. Deploying these flawless machine learning paradigms as an integrated early warning framework provides a robust scientific infrastructure for mitigating waterborne epidemics and guaranteeing sustainable access to safe drinking water.

Keywords

Ethical Statement

Ethics committee approval was not required for this study because of there was no study on animals or humans.

Thanks

This work is produced from a master's thesis carried out at Bayburt University, Department of Civil Engineering. The authors would like to thank the Bayburt Provincial Directorate of Health and the Bayburt Public Health Laboratory for their precious cooperation and support in supplying the water quality analysis data.

References

  1. Abuzir, S. Y., & Abuzir, Y. S. (2022). Machine learning for water quality classification. Water Quality Research Journal, 57(3). https://doi.org/10.2166/wqrj.2022.004
  2. Ahmed, U., Mumtaz, R., Anwar, H., Shah, A. A., Irfan, R., & García-Nieto, J. (2019). Efficient water quality prediction using supervised machine learning. Water, 11(11), Article 2210. https://doi.org/10.3390/w11112210
  3. Azrour, M., Mabrouki, J., Fattah, G., Guezzaz, A., & Aziz, F. (2022). Machine learning algorithms for efficient water quality prediction. Modeling Earth Systems and Environment, 8(2), 2793–2801. https://doi.org/10.1007/s40808-021-01266-6
  4. Deng, Y., Zhang, T., Wang, Y., & Liang, L. (2021). Long-term trends and variations in water quality of the Pearl River Delta, China. Environmental Science and Pollution Research, 28(15), 18950–18962. https://doi.org/10.1007/s11356-020-11929-6
  5. Géron, A. (2022). Hands-on machine learning with Scikit-Learn, Keras, and TensorFlow (3rd ed.). O'Reilly Media.
  6. Hastie, T., Tibshirani, R., & Friedman, J. (2009). The elements of statistical learning: Data mining, inference, and prediction (2nd ed.). Springer. https://doi.org/10.1007/978-0-387-84858-7
  7. Hyndman, R. J., & Athanasopoulos, G. (2018). Forecasting: Principles and practice (2nd ed.). OTexts. https://otexts.com/fpp2/
  8. Kuşçu, A., & Kılıç, İ. (2023). Su kalite indeksinin makine öğrenme yöntemleri ile tahmini [Estimation of water quality index by machine learning methods]. Bilimsel ve Akademik Araştırmalar Dergisi, 7(13), 1–18. https://bibad.gen.tr/index.php/bibad/article/view/444

Details

Primary Language

English

Subjects

Water Resources Engineering

Journal Section

Research Article

Publication Date

September 15, 2026

Submission Date

July 8, 2026

Acceptance Date

August 10, 2026

Published in Issue

Year 2026 Volume: 9 Number: 5

APA
Koçyiğit, G., & Sınır, R. (2026). Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province. Black Sea Journal of Engineering and Science, 9(5), 2365-2372. https://doi.org/10.34248/bsengineering.1990047
AMA
1.Koçyiğit G, Sınır R. Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province. BSJ Eng. Sci. 2026;9(5):2365-2372. doi:10.34248/bsengineering.1990047
Chicago
Koçyiğit, Gülhat, and Ruşen Sınır. 2026. “Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province”. Black Sea Journal of Engineering and Science 9 (5): 2365-72. https://doi.org/10.34248/bsengineering.1990047.
EndNote
Koçyiğit G, Sınır R (September 1, 2026) Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province. Black Sea Journal of Engineering and Science 9 5 2365–2372.
IEEE
[1]G. Koçyiğit and R. Sınır, “Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province”, BSJ Eng. Sci., vol. 9, no. 5, pp. 2365–2372, Sept. 2026, doi: 10.34248/bsengineering.1990047.
ISNAD
Koçyiğit, Gülhat - Sınır, Ruşen. “Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province”. Black Sea Journal of Engineering and Science 9/5 (September 1, 2026): 2365-2372. https://doi.org/10.34248/bsengineering.1990047.
JAMA
1.Koçyiğit G, Sınır R. Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province. BSJ Eng. Sci. 2026;9:2365–2372.
MLA
Koçyiğit, Gülhat, and Ruşen Sınır. “Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province”. Black Sea Journal of Engineering and Science, vol. 9, no. 5, Sept. 2026, pp. 2365-72, doi:10.34248/bsengineering.1990047.
Vancouver
1.Gülhat Koçyiğit, Ruşen Sınır. Machine Learning Applications in Predicting the Microbiological Quality of Public Fountain Waters: A Case Study of Bayburt Province. BSJ Eng. Sci. 2026 Sep. 1;9(5):2365-72. doi:10.34248/bsengineering.1990047