Automated Water Quality Index Classification via Gradient Boosting: Identifying BOD, Fecal Coliform and DO as Key Predictors

Water quality monitoring is critical for public health and environmental sustainability, particularly in developing nations where freshwater pollution escalates rapidly. The Water Quality Index (WQI) consolidates multiple physico-chemical and microbiological parameters into a single interpretable value, but computing it across national networks by laboratory methods alone is slow. This paper proposes an automated WQI classification framework based on Extreme Gradient Boosting (XGBoost), which learns to assign WQI classes calculated from measured parameters; it is not a forecasting model. From the CPCB Indian water quality dataset (1,991 records, 2003–2014), 1,578 records with complete measurements of seven parameters were retained: temperature, pH, Dissolved Oxygen (DO), Biological Oxygen Demand (BOD), Electrical Conductivity (EC), Nitrate-Nitrite and Fecal Coliform (FC). A weighted arithmetic WQI computed from six of them (temperature excluded) was classified as Good, Poor or Very Poor. On a stratified held-out test set of 316 records, XGBoost 1.7.5 achieved 93.0% accuracy, 92.7% macro precision, 93.1% macro recall, 92.9% macro F1-score and a macro-average AUC of 0.993, the highest accuracy, recall, F1-score and AUC of seven classifiers, but only marginally ahead of Random Forest. BOD was the most influential predictor (0.426 of total gain), followed by FC and DO. Because the labels are derived from the inputs, the results reflect reproduction of the WQI rule, not independent prediction.

Authors

Institutions

Publication Details

Journal
Indian Journal of Computer Science and Technology
Published
2026-11-23
DOI
https://doi.org/10.59256/indjcst.20260503102
Primary Topic
Water Quality and Pollution Assessment
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Automated Water Quality Index Classification via Gradient Boosting: Identifying BOD, Fecal Coliform and DO as Key Predictors

Biren M. Patel, Dadavala Ahesanali S, Nagalpara Sirajbhai A
Indian Journal of Computer Science and Technology
Water Quality and Pollution Assessment
article

Automated Water Quality Index Classification via Gradient Boosting: Identifying BOD, Fecal Coliform and DO as Key Predictors

Biren M. Patel, Dadavala Ahesanali S, Nagalpara Sirajbhai A
article en

Abstract

Water quality monitoring is critical for public health and environmental sustainability, particularly in developing nations where freshwater pollution escalates rapidly. The Water Quality Index (WQI) consolidates multiple physico-chemical and microbiological parameters into a single interpretable value, but computing it across national networks by laboratory methods alone is slow. This paper proposes an automated WQI classification framework based on Extreme Gradient Boosting (XGBoost), which learns to assign WQI classes calculated from measured parameters; it is not a forecasting model. From the CPCB Indian water quality dataset (1,991 records, 2003–2014), 1,578 records with complete measurements of seven parameters were retained: temperature, pH, Dissolved Oxygen (DO), Biological Oxygen Demand (BOD), Electrical Conductivity (EC), Nitrate-Nitrite and Fecal Coliform (FC). A weighted arithmetic WQI computed from six of them (temperature excluded) was classified as Good, Poor or Very Poor. On a stratified held-out test set of 316 records, XGBoost 1.7.5 achieved 93.0% accuracy, 92.7% macro precision, 93.1% macro recall, 92.9% macro F1-score and a macro-average AUC of 0.993, the highest accuracy, recall, F1-score and AUC of seven classifiers, but only marginally ahead of Random Forest. BOD was the most influential predictor (0.426 of total gain), followed by FC and DO. Because the labels are derived from the inputs, the results reflect reproduction of the WQI rule, not independent prediction.

Indian Journal of Computer Science and Technology
Hemchandracharya North Gujarat University (IN)
Water Quality and Pollution Assessment
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.

Laika access coming soon