Water quality prediction is crucial for water resource management, as accurate forecasting can help identify potential issues in advance and provide a scientific basis for sustainable management. To predict key water quality indicators, including chemical oxygen demand (COD), suspended solids (SS), total phosphorus (TP), pH, total nitrogen (TN), and ammonia nitrogen (NH₃-N), we propose a novel model, CA-TCN-BiGRU, which combines channel attention mechanisms with temporal convolutional networks (TCN) and bidirectional gated recurrent units (BiGRU). The model, which uses a multi-input multi-output (MIMO) architecture, is capable of simultaneously predicting multiple water quality indicators. It is trained and tested using data from a wastewater treatment plant in Huizhou, China. This study investigates the impact of data preprocessing and the channel attention mechanism on model performance and compares the predictive capabilities of various deep learning models. The results demonstrate that data preprocessing significantly improves prediction accuracy, while the channel attention mechanism enhances the model's focus on key features. The CA-TCN-BiGRU model outperforms others in predicting multiple water quality indicators, particularly for COD, TP, and SS, where MAE and RMSE decrease by approximately 23% and 26%, respectively, and R2 improves by 5.85%. Moreover, the model shows strong robustness and real-time performance across different wastewater treatment plants, making it suitable for short-term (1-3days) water quality prediction. The study concludes that the CA-TCN-BiGRU model not only achieves high accuracy but also offers low computational overhead and fast inference speed, making it an ideal solution for real-time water quality monitoring.
Read full abstract