A hybrid AI model integrating LSTM, XGBoost, and K-means for interpretable prediction and clustering of water quality in data-scarce regions
Prince Chukwuemeka, Okes Imoni, Felicia Chinwe Mogo, Desmond Rowland Eteh, Tarinabo William, Becky P. Bamiekumo, Francis Omonefe, Nelvin E. Agbozu,
Bournemouth University · Colchester Institute
Key points
From the paper's conclusion- Key findings from this study include: • XGBoost was the most accurate model for both regression (R² = 0.95) and classification (AUC = 0.96). • Over 70% of the water samples were classified as Poor or Very Poor, with significant town-level variation. • K-Means clustering uncovered latent chemical profiles, offering a second layer of contamination pattern discovery. • Feature importance rankings hig
Abstract
Water quality degradation in data-scarce and pollution-prone regions such as the Niger Delta poses serious health and ecological risks. Traditional monitoring methods are limited by cost, temporal gaps, and lack of interpretability. This study develops a hybrid artificial intelligence (AI) framework integrating Long Short-Term Memory (LSTM), Extreme Gradient Boosting (XGBoost), and K-Means clustering for interpretable water-quality prediction and pattern discovery in under-monitored environments. The framework addresses the scarcity of temporal datasets by adapting LSTM to static physicochemical data through pseudo-sequential encoding, while XGBoost enhances regression and classification accuracy in small, heterogeneous samples. K-Means provides unsupervised insight into latent contamination clusters, complemented by Principal Component Analysis (PCA) for gradient-based visualization. Using 50 georeferenced samples from Yenagoa, Nigeria, ten key parameters were analyzed to compute the Water Quality Index (WQI). Results show that XGBoost achieved the highest predictive performance (R² = 0.95, AUC = 0.96), identifying iron, nitrate, and electrical conductivity as dominant drivers of poor water quality. Three chemically distinct clusters revealed spatial coherence with industrial and residential pollution zones, underscoring the region’s environmental vulnerability. The study demonstrates that hybridizing ensemble learning, deep networks, and clustering enhances both accuracy and interpretability in low-data contexts. By coupling supervised and unsupervised AI components, the proposed framework supports scalable, data-driven decision-making for water-resource management. Its transferability offers practical value for other developing regions facing similar data and infrastructure limitations, contributing to global Sustainable Development Goal 6 on clean water and sanitation. Key findings from this study include: • XGBoost was the most accurate model for both regression (R² = 0.95) and classification (AUC = 0.96). • Over 70% of the water samples were classified as Poor or Very Poor, with significant town-level variation. • K-Means clustering uncovered latent chemical profiles, offering a second layer of contamination pattern discovery. • Feature importance rankings highlighted Iron, Nitrate, and EC as dominant water quality drivers.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A process-based SWAT-LSTM hybrid framework for efficient water quality index modeling in urban river catchment.Water research · 2026
- Comparative Performance Analysis of Machine Learning Models for Predicting the Weighted Arithmetic Water Quality IndexWater · 2026
- Machine Learning‐Based Assessment of Groundwater Quality in Urban Odisha: A Case Study of Cuttack and BhubaneswarEnvironmental Quality Management · 2026
- Geospatial assessment of surface water quality on integrating entropy - machine learning techniques to predict water contamination in the Paradip area of Mahanadi River Basin, OdishaGreen Technology Resilience and Sustainability · 2026
- Machine learning-based prediction of seasonal groundwater quality for urbanized parts of Melur (Tamil Nadu), IndiaResults in Engineering · 2025
- Robust water quality prediction across multiple indicator formulations using an explainable ensemble learning modelWater Resources and Industry · 2025