Machine learning-driven surface water quality prediction: an intuitive GUI solution for forecasting TDS and DO levels

ABSTRACT Industrialization and human activities significantly affect water quality, introducing pollutants into aquatic ecosystems. This study employs machine learning models, specifically two hybrid models (the random forest model and the gene expression model) and standalone models, to predict total dissolved solids (TDS) and dissolved oxygen (DO) levels from 11 inputs. Particle swarm optimization (PSO) was used to enhance model performance, with 423 samples analyzed (80% training, 20% testing). k-fold cross-validation assessed model reliability using metrics, such as R2, RMSE, and MAE. The PSO-RF model outperformed others in TDS prediction (R2 = 0.99, RMSE = 0.0001) and showed positive results for DO (R2 = 0.96, RMSE = 0.32). The PSO-GEP model also performed well (R2 = 0.99 for TDS and 0.95 for DO). Shapley analysis indicated high correlations between total solids and turbidity with TDS, and water temperature with DO. New predictive equations and a graphical user interface (GUI) were developed for practical applications.

Institutions

Publication Details

Journal
Water Quality Research Journal
Published
2025-09-19
DOI
https://doi.org/10.2166/wqrj.2025.005
Citations
2
Primary Topic
Geochemistry and Geologic Mapping
Type
article
Field-Weighted Citation Impact
4.96
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Machine learning-driven surface water quality prediction: an intuitive GUI solution for forecasting TDS and DO levels

2 citations
Water Quality Research Journal
Geochemistry and Geologic Mapping
4.96
article

Machine learning-driven surface water quality prediction: an intuitive GUI solution for forecasting TDS and DO levels

article en
2 citations

Abstract

ABSTRACT Industrialization and human activities significantly affect water quality, introducing pollutants into aquatic ecosystems. This study employs machine learning models, specifically two hybrid models (the random forest model and the gene expression model) and standalone models, to predict total dissolved solids (TDS) and dissolved oxygen (DO) levels from 11 inputs. Particle swarm optimization (PSO) was used to enhance model performance, with 423 samples analyzed (80% training, 20% testing). k-fold cross-validation assessed model reliability using metrics, such as R2, RMSE, and MAE. The PSO-RF model outperformed others in TDS prediction (R2 = 0.99, RMSE = 0.0001) and showed positive results for DO (R2 = 0.96, RMSE = 0.32). The PSO-GEP model also performed well (R2 = 0.99 for TDS and 0.95 for DO). Shapley analysis indicated high correlations between total solids and turbidity with TDS, and water temperature with DO. New predictive equations and a graphical user interface (GUI) were developed for practical applications.

Water Quality Research JournalVol. 60(4)
Prince Sattam Bin Abdulaziz University (SA), Abbottabad University of Science and Technology (PK), Ghulam Ishaq Khan Institute of Engineering Sciences and Technology (PK)
Clean water and sanitation
Openalex Percentile: Top 4%
Geochemistry and Geologic Mapping
4.96
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.