Time Series Prediction of Water Quality Based on NGO-CNN-GRU Model—A Case Study of Xijiang River, China
Open Access
Abstract
Water quality deterioration poses a critical threat to ecological security and sustainable development, particularly in rapidly urbanizing regions. To enable proactive environmental management, this study develops a novel hybrid deep learning model, the NGO-CNN-GRU, for high-precision time-series water quality prediction in the Xijiang River Basin, China. The model integrates a Convolutional Neural Network (CNN) for spatial feature extraction and a Gated Recurrent Unit (GRU) for temporal dependency modeling, with hyperparameters optimized via the Northern Goshawk Optimization (NGO) algorithm. Using historical water quality (pH, DO, CODMn, NH3-N, TP, TN) and meteorological data (precipitation, temperature, humidity) from 11 monitoring stations, the model achieved exceptional performance: test set R2 > 0.986, MAE < 0.015, and RMSE < 0.018 for total nitrogen prediction (Xiaodong Station case study). Across all stations and indicators, it consistently outperformed baseline models (GRU, CNN-GRU), with average R2 improvements of 12.3% and RMSE reductions up to 90% for NH3-N predictions. Spatiotemporal analysis further revealed significant pollution gradients correlated with anthropogenic activities in the Pearl River Delta. This work provides a robust tool for real-time water quality early warning systems and supports evidence-based river basin management.Keywords
Funding Information
- General Program of the Natural Science Foundation of Guangdong Province (2024A1515011891, 52388101, 52309083)
- Basic Science Center Project of the Natural Science Foundation of China (2024A1515011891, 52388101, 52309083)
- National Natural Science Foundation of China for Young Scientists Fund (2024A1515011891, 52388101, 52309083)
This publication has 9 references indexed in Scilit:
- Northern Goshawk Optimization: A New Swarm-Based Algorithm for Solving Optimization ProblemsIEEE Access, 2021
- Stop explaining black box machine learning models for high stakes decisions and use interpretable models insteadNature Machine Intelligence, 2019
- Machine learning: Trends, perspectives, and prospectsScience, 2015
- Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine TranslationarXiv, 2014
- Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation2014
- Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performanceClimate Research, 2005
- Long Short-Term MemoryNeural Computation, 1997
- Backpropagation Applied to Handwritten Zip Code RecognitionNeural Computation, 1989
- NOTES ON THE HISTORY OF CORRELATIONBiometrika, 1920