- Open Access
- Article
Water Potability Prediction Using Neural Networks
by Ranyah Taha1,*
, Fuad Musleh 2
and Abdel Rahman Musleh 3
1 Computer Science Dept., Al-Iman School, Bahrain
2 Civil engineering Department, College of Engineering, University of Bahrain, Sakhir, 1054, Bahrain
3 Electrical and Electronics Engineering Department, College of Engineering, University of Bahrain, Sakhir, 1054, Bahrainn
* Author to whom correspondence should be addressed.
Journal of Engineering Research and Sciences, Volume 4, Issue 5, Page # 1-10, 2025 DOI: 10.55708/js0405001
Keywords: Artificial Intelligence, Data Analysis, Water Quality Classification, Neural Networks, Civil Engineering
Received: 13 January 2025 Revised: 02 March 2025 Accepted: 03 March 2025 Online: 20 May, 2025
(This article belongs to the Special Issue Special Issue on Multidisciplinary Sciences and Advanced Technology 2024 & Section Computer Science and Information Technology: Artificial Intelligence – Computer Science (AIC))
APA Style
Taha, R., Musleh, F., & Musleh, A. R. (2025). Water potability prediction using neural networks. Journal of Engineering Research and Sciences, 4(5), 1–10. https://doi.org/10.55708/js0405001
Chicago/Turabian Style
Taha, R., F. Musleh, and A. R. Musleh. 2025. “Water Potability Prediction Using Neural Networks.” Journal of Engineering Research and Sciences 4 (5): 1–10. https://doi.org/10.55708/js0405001.
IEEE Style
R. Taha, F. Musleh, and A. R. Musleh, “Water potability prediction using neural networks,” J. Eng. Res. Sci., vol. 4, no. 5, pp. 1–10, 2025, doi: 10.55708/js0405001.
The crucial need for maintaining specific water potability levels depending on the sector of utilization, this is becoming increasingly challenging due to the increased pollution. It is therefore important to have fast and reliable water potability assessment techniques. A subset of Machine Learning (ML); being Deep Learning (DL), can be utilized to develop models capable of measuring water quality while assessing its potability with high levels of accuracy; thus, ensuring that water meets the set standards based on the required sector of utilization. In this research, the effectiveness of Multilayer Perceptron (MLP) and Long Short-Term Memory (LSTM) Neural Networks (NN) were contrasted for Water Quality Classification (WQC). The MLP model demonstrated superior performance, achieving higher precision, accuracy, F-measure, recall and the area under the receiver operating characteristic curve (ROC-AUC) scores, indicating its effectiveness in this application compared to the LSTM approach. The experimental findings revealed that MLP NN model outperformed the LSTM NN model in WQC tasks. The MLP model achieved very high performance with an accuracy of 99.9%, an F-measure of 99.9%, a precision of 99.9%, a recall of 99.9%, and a ROC-AUC of 100%, significantly outperforming the LSTM model, which attained an accuracy of 97.6%, an F-measure of 97.1%, a precision of 97.1%, a recall of 97.5%, and a ROC-AUC of 97.9%. The study’s novelty lies in employing DL for binary classification, yielding outstanding outcomes in the crucial domain of WQC.
- J. J. Bogardi, J. Leentvaar, and Z. Sebesvári, “Biologia Futura: integrating freshwater ecosystem health in water resources management,” Biologia futura, vol. 71, no. 4, pp. 337-358, 2020, DOI: doi.org/10.1007/s42977-020-00031-7.
- N. I. Obialor, “The Analysis of Water Pollution Control Legislation and Regulations in Nigeria: Why Strict Implementation and Enforcement Have Remained a Mirage,” Available at SSRN 4600394, 2023.
- R. Huang, C. Ma, J. Ma, X. Huangfu, and Q. He, “Machine learning in natural and engineered water systems,” Water Research, vol. 205, p. 117666, 2021, DOI: 10.1016/j.watres.2021.117666.
- D. V. V. Prasad et al., “Analysis and prediction of water quality using deep learning and auto deep learning techniques,” Science of the Total Environment, vol. 821, p. 153311, 2022, DOI: 10.1016/j.scitotenv.2022.153311.
- R. Barzegar, M. T. Aalami, and J. Adamowski, “Short-term water quality variable prediction using a hybrid CNN–LSTM deep learning model,” Stochastic Environmental Research Risk Assessment. vol. 34, no. 2, pp. 415-433, 2020, doi.org/10.1007/s00477-020-01776-2.
- W. Liu, T. Liu, Z. Liu, H. Luo, and H. Pei, “A novel deep learning ensemble model based on two-stage feature selection and intelligent optimization for water quality prediction,” Environmental Research, vol. 224, p. 115560, 2023, DOI: 10.1016/j.envres.2023.115560.
- E. Dritsas and M. Trigka, “Efficient data-driven machine learning models for water quality prediction,” Computation, vol. 11, no. 2, p. 16, 2023, DOI: 10.3390/computation11020016.
- A. Najah, A. El-Shafie, O. A. Karim, and A. H. El-Shafie, “Application of artificial neural networks for water quality prediction,” Neural Computing Applications,vol. 22, pp. 187-201, 2013, DOI: 10.1007/s00521-012-0940-3.
- J. Wu and Z. Wang, “A hybrid model for water quality prediction based on an artificial neural network, wavelet transform, and long short-term memory,” Water, vol. 14, no. 4, p. 610, 2022, DOI: 10.3390/w14040610.
- Y. Jiang, C. Li, L. Sun, D. Guo, Y. Zhang, and W. Wang, “A deep learning algorithm for multi-source data fusion to predict water quality of urban sewer networks,” Journal of Cleaner Production, vol. 318, p. 128533, 2021, DOI: 10.1016/j.jclepro.2021.128533.
- M. Hmoud Al-Adhaileh and F. Waselallah Alsaade, “Modelling and prediction of water quality by using artificial intelligence,” Sustainability, vol. 13, no. 8, p. 4259, 2021, DOI: 10.3390/su13084259.
- T. H. H. Aldhyani, M. Al-Yaari, H. Alkahtani, and M. Maashi, ” Water Quality Prediction Using Artificial Intelligence Algorithms,” Applied Bionics Biomechanics, vol. 2020, no. 1, p. 6659314, 2020, DOI: 10.1155/2020/6659314.
- J. Kirui, “Machine Learning Models for Drinking Water Quality Classification,” in 2024 International Conference on Control, Automation and Diagnosis (ICCAD), 2024, pp. 1-5: IEEE, DOI: 10.1109/ICCAD60883.2024.10553712.
- A. M. Zeki, R. Taha, and S. Alshakrani, “Developing a predictive model for diabetes using data mining techniques,” in 2021 International Conference on Innovation and Intelligence for Informatics, Computing, and Technologies (3ICT), 2021, pp. 24-28: IEEE, DOI: 10.1109/3ICT53449.2021.9582114.
- F. Ahmad Musleh, “A Comprehensive Comparative Study of Machine Learning Algorithms for Water Potability Classification,” International Journal of Computing Digital Systems,,vol. 15, no. 1, pp. 1189-1200, 2024, DOI:10.12785/ijcds/150184.
- R. Taha, S. Alshakrani, and N. Hewahi, “Exploring Machine Learning Classifiers for Medical Datasets,” in 2021 International Conference on Data Analytics for Business and Industry (ICDABI), 2021, pp. 255-259: IEEE, DOI: 10.1109/ICDABI53623.2021.9655862.
- S. M. Malakouti, M. B. Menhaj, and A. A. Suratgar, “The usage of 10-fold cross-validation and grid search to enhance ML methods performance in solar farm power generation prediction,” Cleaner Engineering Technology,vol. 15, p. 100664, 2023, DOI: 10.1016/j.clet.2023.100664.
- S. Afzal, B. M. Ziapour, A. Shokri, H. Shakibi, and B. Sobhani, “Building energy consumption prediction using multilayer perceptron neural network-assisted models; comparison of different optimization algorithms,” Energy, vol. 282, p. 128446, 2023, DOI: 10.1016/j.energy.2023.128446.
- K. Li, W. Huang, G. Hu, and J. Li, “Ultra-short term power load forecasting based on CEEMDAN-SE and LSTM neural network,” Energy Buildings,vol. 279, p. 112666, 2023, DOI: 10.1016/j.enbuild.2022.112666.
- F. Musleh, R. Taha, and A. R. Musleh, “Comparative Analysis of Machine Learning Techniques for Concrete Compressive Strength Prediction,” in 2023 4th International Conference on Data Analytics for Business and Industry (ICDABI), 2023, pp. 146-151: IEEE, DOI: 10.1109/ICDABI60145.2023.10629479.
- F. A. Musleh and R. G. Taha, “Forecasting of forest fires using machine learning techniques: a comparative study,” 2022, DOI: 10.1049/icp.2023.0571.