Water quality prediction based on LSTM with attention mechanism

This paper proposes a novel water quality detection method based on Long Short-Term Memory (LSTM) with attention mechanism. The key innovation lies in the integration of an attention mechanism with convolutional and recurrent architectures, which enables adaptive weight allocation across temporal features extracted by LSTM and enhances the model's ability to capture long-range dependencies in water quality sequences. This structural improvement allows the model to dynamically focus on critical time steps and pollutant-related features, thereby significantly boosting prediction accuracy and interpretability. The CNN-LSTM-Attention model is employed to predict the content of three pesticides in lakes. Experimental results demonstrate that the correlation coefficients (R²) for all three pesticides exceed 0.95, with near-zero mean absolute error (MAE), mean absolute percentage error (MAPE), and root mean square error (RMSE) values, which indicates a minimal discrepancy between predicted and actual values. This confirms the high accuracy of the CNN-LSTM-Attention model in predicting lake pollutant concentrations. The proposed method offers a new approach to lake pollutant prediction and provides a valuable reference for water quality detection methodologies.

Authors

Institutions

Publication Details

Journal
Alexandria Engineering Journal
Published
2026-03-11
DOI
https://doi.org/10.1016/j.aej.2026.03.011
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

Water quality prediction based on LSTM with attention mechanism

Jinsong Wei, Hui Zhang, Yinshan Yu
Alexandria Engineering Journal
Hydrological Forecasting Using AI
article

Water quality prediction based on LSTM with attention mechanism

Jinsong Wei, Hui Zhang, Yinshan Yu
article en

Abstract

This paper proposes a novel water quality detection method based on Long Short-Term Memory (LSTM) with attention mechanism. The key innovation lies in the integration of an attention mechanism with convolutional and recurrent architectures, which enables adaptive weight allocation across temporal features extracted by LSTM and enhances the model's ability to capture long-range dependencies in water quality sequences. This structural improvement allows the model to dynamically focus on critical time steps and pollutant-related features, thereby significantly boosting prediction accuracy and interpretability. The CNN-LSTM-Attention model is employed to predict the content of three pesticides in lakes. Experimental results demonstrate that the correlation coefficients (R²) for all three pesticides exceed 0.95, with near-zero mean absolute error (MAE), mean absolute percentage error (MAPE), and root mean square error (RMSE) values, which indicates a minimal discrepancy between predicted and actual values. This confirms the high accuracy of the CNN-LSTM-Attention model in predicting lake pollutant concentrations. The proposed method offers a new approach to lake pollutant prediction and provides a valuable reference for water quality detection methodologies.

Alexandria Engineering JournalVol. 141
Huaiyin Institute of Technology (CN)
Clean water and sanitation
Openalex Percentile: Top 34%
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.