Predicting Water Potability Using Machine Learning: A Comparative Analysis of Classification Algorithms

Water scarcity is a growing concern in Malaysia and worldwide, necessitating innovative solutions for sustainable water management. This research investigates the application of various machine learning algorithms to predict the potability of water based on 20 chemical parameters. The study employs Logistic Regression, Naive Bayes, Decision Tree, Random Forest, K-Nearest Neighbors, Support Vector Machines, Extreme Gradient Boosting, and Multi-layer Perceptron to classify water samples as potable or non-potable. A comprehensive methodology is followed, including data preprocessing steps such as handling missing values, addressing data imbalance with SMOTE, and normalizing the dataset. The models are evaluated using metrics like F1-score and log loss to determine their accuracy and reliability. Results indicate that the XGBoost algorithm outperforms others with the highest F1-score of 0.9798 and the lowest log loss of 0.7150, demonstrating its efficacy in water quality prediction. This study highlights the potential of machine learning techniques in enhancing water quality monitoring systems, contributing to better water resource management and public health protection.

Authors

Publication Details

Published
2024-11-01
DOI
https://doi.org/10.1109/icei63732.2024.10917239
Citations
5
Primary Topic
Hydrological Forecasting Using AI
Type
article
Field-Weighted Citation Impact
1.03
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting Water Potability Using Machine Learning: A Comparative Analysis of Classification Algorithms

Mehul Patel
5 citations
Hydrological Forecasting Using AI
1.03
article

Predicting Water Potability Using Machine Learning: A Comparative Analysis of Classification Algorithms

Mehul Patel
article en
5 citations

Abstract

Water scarcity is a growing concern in Malaysia and worldwide, necessitating innovative solutions for sustainable water management. This research investigates the application of various machine learning algorithms to predict the potability of water based on 20 chemical parameters. The study employs Logistic Regression, Naive Bayes, Decision Tree, Random Forest, K-Nearest Neighbors, Support Vector Machines, Extreme Gradient Boosting, and Multi-layer Perceptron to classify water samples as potable or non-potable. A comprehensive methodology is followed, including data preprocessing steps such as handling missing values, addressing data imbalance with SMOTE, and normalizing the dataset. The models are evaluated using metrics like F1-score and log loss to determine their accuracy and reliability. Results indicate that the XGBoost algorithm outperforms others with the highest F1-score of 0.9798 and the lowest log loss of 0.7150, demonstrating its efficacy in water quality prediction. This study highlights the potential of machine learning techniques in enhancing water quality monitoring systems, contributing to better water resource management and public health protection.

Clean water and sanitation
Openalex Percentile: Top 25%
Hydrological Forecasting Using AI
1.03
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.