Surface water quality prediction via an MLA-Mamba hybrid neural network with GRPO optimization

Surface water quality forecasting is crucial for pollution early warning and sustainable water resource management. However, accurate prediction of key water quality indicators remains challenging due to the highly nonlinear spatio-temporal dynamics and complex inter-variable relationships. Traditional statistical models and conventional machine learning approaches often struggle to effectively capture these couplings, leading to limited predictive performance. In this study, we propose a novel hybrid deep learning framework, termed MLA-Mamba, which integrates an improved Mamba-based sequence modeling network with a Multi-Head Local Attention (MLA) mechanism, optimized through a Gradient Reparameterization Optimization (GRPO) strategy. The Mamba module is designed to extract long-range temporal dependencies from water quality time series via a state-space modeling paradigm, while the MLA mechanism captures localized spatial correlations among multiple monitoring stations. To the best of our knowledge, this study represents one of the first explorations of applying Gradient Reparameterization Optimization (GRPO) to water quality prediction tasks. Furthermore, a multi-task learning scheme is incorporated to jointly predict multiple key indicators, including permanganate index (CODMn), ammonia nitrogen (NH3-N), total phosphorus (TP), and total nitrogen (TN), thereby exploiting inter-variable dependencies to enhance overall forecasting accuracy. The proposed GRPO strategy dynamically adjusts learning rates during training to accelerate convergence and improve model stability. Experimental evaluations on two real-world surface water datasets demonstrate that the proposed MLA-Mamba model achieves consistent performance improvements over the evaluated baseline methods across multiple error metrics. In addition, predictive uncertainty is quantified via Monte Carlo dropout, enabling the estimation of confidence intervals to support risk-aware water quality assessment. These results highlight the effectiveness of integrating advanced sequence modeling, attention-driven spatial feature extraction, and adaptive optimization for robust environmental time series forecasting.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-01-20
DOI
https://doi.org/10.1038/s41598-026-36229-3
Primary Topic
Hydrological Forecasting Using AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Surface water quality prediction via an MLA-Mamba hybrid neural network with GRPO optimization

Ronghao Wei, Haihe Wang, Hang Chen
Scientific Reports
Hydrological Forecasting Using AI
article

Surface water quality prediction via an MLA-Mamba hybrid neural network with GRPO optimization

Ronghao Wei, Haihe Wang, Hang Chen
article en

Abstract

Surface water quality forecasting is crucial for pollution early warning and sustainable water resource management. However, accurate prediction of key water quality indicators remains challenging due to the highly nonlinear spatio-temporal dynamics and complex inter-variable relationships. Traditional statistical models and conventional machine learning approaches often struggle to effectively capture these couplings, leading to limited predictive performance. In this study, we propose a novel hybrid deep learning framework, termed MLA-Mamba, which integrates an improved Mamba-based sequence modeling network with a Multi-Head Local Attention (MLA) mechanism, optimized through a Gradient Reparameterization Optimization (GRPO) strategy. The Mamba module is designed to extract long-range temporal dependencies from water quality time series via a state-space modeling paradigm, while the MLA mechanism captures localized spatial correlations among multiple monitoring stations. To the best of our knowledge, this study represents one of the first explorations of applying Gradient Reparameterization Optimization (GRPO) to water quality prediction tasks. Furthermore, a multi-task learning scheme is incorporated to jointly predict multiple key indicators, including permanganate index (CODMn), ammonia nitrogen (NH3-N), total phosphorus (TP), and total nitrogen (TN), thereby exploiting inter-variable dependencies to enhance overall forecasting accuracy. The proposed GRPO strategy dynamically adjusts learning rates during training to accelerate convergence and improve model stability. Experimental evaluations on two real-world surface water datasets demonstrate that the proposed MLA-Mamba model achieves consistent performance improvements over the evaluated baseline methods across multiple error metrics. In addition, predictive uncertainty is quantified via Monte Carlo dropout, enabling the estimation of confidence intervals to support risk-aware water quality assessment. These results highlight the effectiveness of integrating advanced sequence modeling, attention-driven spatial feature extraction, and adaptive optimization for robust environmental time series forecasting.

Scientific ReportsVol. 16(1)
Guizhou Normal University (CN), Guizhou University (CN), Beijing Municipal Ecological and Environmental Monitoring Center (CN)
Openalex Percentile: Top 85%
Hydrological Forecasting Using AI
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.