Scientists Classify Three Urban Lakes Using Machine Learning Accuracy of 93 Percent
An explainable machine learning framework successfully categorizes urban lakes in Dhaka using water chemistry and geospatial analysis.
A recent study analyzed 646 monthly water-quality observations collected across 13 monitoring stations in three major urban lakes in Dhaka, Bangladesh, using 22 independent environmental variables. The work demonstrates that machine learning classification can reliably distinguish urban water bodies based on their integrated physicochemical and climatic signatures rather than relying solely on traditional index calculations.
Evaluating Supervised Machine Learning Models for Lake Classification
Researchers applied four supervised algorithms, namely Random Forest, Decision Tree, XGBoost, and LightGBM, to classify Dhanmondi Lake, Gulshan Lake, and Hatir Jheel Lake. The models were developed using an 80 percent training split and evaluated on an independent 20 percent testing dataset to ensure robust performance assessment. Among the tested algorithms, XGBoost demonstrated the highest overall performance with an accuracy of 0.93 and an F1-score of 0.93. Both Random Forest and LightGBM achieved consistent accuracy values of 0.91, whereas the single Decision Tree model yielded the lowest performance with an accuracy of 0.80. The full study is published in PLOS Water, detailing the comparative evaluation and methodological framework.
Traditional water quality assessments typically rely on deterministic classification methods based on individual parameters and regulatory thresholds. These conventional approaches often struggle to capture the complex, nonlinear interactions that exist among multiple environmental variables in dynamic aquatic systems. By utilizing advanced tree-based ensemble methods, the team successfully processed multidimensional monitoring datasets to achieve more accurate and robust class discrimination.
Identifying Influential Physicochemical Parameters
To interpret how the models arrived at their classifications, the authors employed SHapley Additive exPlanations, known as SHAP, to quantify the contribution of each individual variable. Across the best-performing models, physicochemical parameters such as electrical conductivity, biochemical oxygen demand, chemical oxygen demand, and suspended solids consistently dominated feature importance. These water chemistry indicators provided stronger predictive signals for separating the lake categories than meteorological variables like temperature and humidity.

Sensitivity analysis further revealed how model predictions respond to perturbations in input data. The Decision Tree model showed the highest sensitivity to variables such as potential evapotranspiration and pH, reflecting its threshold-based splitting structure. In contrast, the ensemble models exhibited more balanced sensitivity distributions across multiple predictors, indicating greater stability when handling variable fluctuations.
Mapping Spatial Variability Using Geographic Information Systems
Spatial analysis using Inverse Distance Weighting interpolation highlighted distinct environmental gradients across the monitored water bodies. Gulshan Lake displayed pronounced longitudinal variation in parameters such as electrical conductivity and chemical oxygen demand. Hatir Jheel exhibited localized pollutant accumulation in specific zones, while Dhanmondi Lake generally presented more homogeneous and stable physicochemical conditions.

These spatial insights illustrate varying degrees of anthropogenic pressure and runoff impact among the three lakes. The integration of geospatial mapping with machine learning outputs helps pinpoint localized environmental hotspots that require targeted intervention. Such spatial detail remains difficult to capture using conventional single-parameter water quality indices alone.
Integrating Nature-Based Solutions for Sustainable Management
Building upon the classification and spatial results, the research proposes a conceptual framework for implementing nature-based solutions to improve urban water quality. The framework combines machine learning predictions, spatial prioritization, and adaptive monitoring to guide environmental management decisions. Proposed interventions include constructed wetlands, bioretention systems, and riparian buffer zones tailored to address specific pollution drivers.
The authors note that the dataset was restricted to three urban lakes in Dhaka and lacked heavy metal or microbiological indicators due to data limitations. Future research will focus on expanding monitoring efforts to a larger number of urban water bodies and validating the proposed management framework using field-based evidence.
The research was published in PLOS Water on December 4, 2026.
This article has been fact checked for accuracy, with information verified against reputable sources. Learn more about us and our editorial process.
Last reviewed on .
Article history
- Latest version
Reference(s)
- Shawon, Hasibul Hasan., et al. “A machine learning framework for urban lake classification: A case study of Dhaka City.” PLOS Water, vol. 5, no. 12, December 4, 2026, pp. e0000639 Public Library of Science (PLoS), doi: 10.1371/journal.pwat.0000639. <https://doi.org/10.1371/journal.pwat.0000639>.
Cite this page:
- Posted by Kamran Akhtar