IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v17y2025i20p9155-d1772354.html

Water Quality Prediction Model Based on Temporal Attentive Bidirectional Gated Recurrent Unit Model

Author

Listed:
  • Hongyu Yang

    (School of Water Conservancy, North China University of Water Resources and Electric Power, Zhengzhou 450046, China)

  • Lei Guo

    (School of Water Conservancy, North China University of Water Resources and Electric Power, Zhengzhou 450046, China
    Henan Water Conservancy Investment Group Co., Ltd., Zhengzhou 450002, China
    Henan Water Valley Innovation Technology Research Institute Co., Ltd., Zhengzhou 450000, China)

  • Qingqing Tian

    (School of Water Conservancy, North China University of Water Resources and Electric Power, Zhengzhou 450046, China)

Abstract

Water pollution has caused serious consequences for human health and aquatic systems. Therefore, analyzing and predicting water quality is of great significance for the early prevention and control of water pollution. Aiming at the shortcomings of the Gated Recurrent Unit (GRU) water quality prediction model, such as the low utilization rate of early information and poor deep feature extraction ability of the hidden state mechanism, this study combines the temporal attention (TA) mechanism with the bidirectional superimposed neural network. A time-focused bidirectional gated recurrent unit (TA-Bi-GRU) model is proposed. Taking the actual water quality data of the water source reservoir in Xiduan Village as the research object, this model was used to predict four core water quality indicators, namely pH, ammonia nitrogen (NH 3 N), total nitrogen (TN), and dissolved oxygen (DOX). Predictions are made within multiple time ranges, with prediction periods of 7 days, 10 days, 15 days, and 30 days. In the long-term prediction of the TA-Bi-GRU model, its average R 2 was 0.858 (7 days), 0.772 (10 days), 0.684 (15 days), and 0.553 (30 days), and the corresponding average MAE and MSE were both lower than those of the comparison models. The experimental results show that the TA-Bi-GRU model has higher prediction accuracy and stronger generalization ability compared with the existing GRU, bidirectional GRU (Bi-GRU), Time-focused Gated Recurrent Unit (TA-GRU), Convolutional Neural Network-Long Short-Term Memory (CNN-LSTM) and Deep Temporal Convolutional Networks-Long Short-Term Memory (DeepTCN-LSTM) models.

Suggested Citation

  • Hongyu Yang & Lei Guo & Qingqing Tian, 2025. "Water Quality Prediction Model Based on Temporal Attentive Bidirectional Gated Recurrent Unit Model," Sustainability, MDPI, vol. 17(20), pages 1-28, October.
  • Handle: RePEc:gam:jsusta:v:17:y:2025:i:20:p:9155-:d:1772354
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/17/20/9155/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/17/20/9155/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Xin Gao & Xiaobing Li & Bing Zhao & Weijia Ji & Xiao Jing & Yang He, 2019. "Short-Term Electricity Load Forecasting Model Based on EMD-GRU with Feature Selection," Energies, MDPI, vol. 12(6), pages 1-18, March.
    2. Lizhen Wu & Chun Kong & Xiaohong Hao & Wei Chen, 2020. "A Short-Term Load Forecasting Method Based on GRU-CNN Hybrid Neural Network Model," Mathematical Problems in Engineering, Hindawi, vol. 2020, pages 1-10, March.
    3. Niu, Zhewen & Yu, Zeyuan & Tang, Wenhu & Wu, Qinghua & Reformat, Marek, 2020. "Wind power forecasting using attention-based gated recurrent unit network," Energy, Elsevier, vol. 196(C).
    4. Ayodele Ariyo Adebiyi & Aderemi Oluyinka Adewumi & Charles Korede Ayo, 2014. "Comparison of ARIMA and Artificial Neural Networks Models for Stock Price Prediction," Journal of Applied Mathematics, Hindawi, vol. 2014, pages 1-7, March.
    5. Ayodele Ariyo Adebiyi & Aderemi Oluyinka Adewumi & Charles Korede Ayo, 2014. "Comparison of ARIMA and Artificial Neural Networks Models for Stock Price Prediction," Journal of Applied Mathematics, John Wiley & Sons, vol. 2014(1).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Gergana Taneva-Angelova & Stefan Raychev & Galina Ilieva, 2025. "A Framework for Gold Price Prediction Combining Classical and Intelligent Methods with Financial, Economic, and Sentiment Data Fusion," IJFS, MDPI, vol. 13(2), pages 1-25, June.
    2. Ying Liu & Zengyu Wei & Long Chen & Cai Xu & Ziyu Guan, 2025. "Multi-Modal Temporal Dynamic Graph Construction for Stock Rank Prediction," Mathematics, MDPI, vol. 13(5), pages 1-20, March.
    3. Hassan Oukhouya & Aziz Lmakri & Mohamed El Yahyaoui & Raby Guerbaz & Said El Melhaoui & Moustapha Faizi & Khalid El Himdi, 2025. "Predictive modeling for the Moroccan financial market: a nonlinear time series and deep learning approach," Future Business Journal, Springer, vol. 11(1), pages 1-19, December.
    4. V. Kuppulakshmi & C. Sugapriya & D. Nagarajan & A. Kanchana, 2025. "Modelling with Neural Networks and Time-Series Forecasting Inventory Control and Cost Reduction in Supply Chain Process," SN Operations Research Forum, Springer, vol. 6(2), pages 1-23, June.
    5. Keshab Raj Dahal & Nawa Raj Pokhrel & Santosh Gaire & Sharad Mahatara & Rajendra P Joshi & Ankrit Gupta & Huta R Banjade & Jeorge Joshi, 2023. "A comparative study on effect of news sentiment on stock price prediction with deep learning architecture," PLOS ONE, Public Library of Science, vol. 18(4), pages 1-19, April.
    6. Jun Shu & Xinyu Xia & Suyue Han & Zuli He & Ke Pan & Bin Liu, 2024. "Long-term water demand forecasting using artificial intelligence models in the Tuojiang River basin, China," PLOS ONE, Public Library of Science, vol. 19(5), pages 1-23, May.
    7. Nicole Königstein, 2023. "Dynamic and context-dependent stock price prediction using attention modules and news sentiment," Digital Finance, Springer, vol. 5(3), pages 449-481, December.
    8. Xiaoyu Gao & Chengying Qi & Guixiang Xue & Jiancai Song & Yahui Zhang & Shi-ang Yu, 2020. "Forecasting the Heat Load of Residential Buildings with Heat Metering Based on CEEMDAN-SVR," Energies, MDPI, vol. 13(22), pages 1-19, November.
    9. Xinjie Shi & Jianzhou Wang & Jialu Gao, 2025. "Multimodal Optimization Forecasting Model Based on Intelligent Fuzzy Interval Reconstruction," SN Operations Research Forum, Springer, vol. 6(3), pages 1-37, September.
    10. Tang, Yugui & Yang, Kuo & Zhang, Shujing & Zhang, Zhen, 2024. "Wind power forecasting: A temporal domain generalization approach incorporating hybrid model and adversarial relationship-based training," Applied Energy, Elsevier, vol. 355(C).
    11. Wang, Jianguo & Yuan, Weiru & Zhang, Shude & Cheng, Shun & Han, Lincheng, 2024. "Implementing ultra-short-term wind power forecasting without information leakage through cascade decomposition and attention mechanism," Energy, Elsevier, vol. 312(C).
    12. Zhang, Ziyuan & Wang, Jianzhou & Wei, Danxiang & Luo, Tianrui & Xia, Yurui, 2023. "A novel ensemble system for short-term wind speed forecasting based on Two-stage Attention-Based Recurrent Neural Network," Renewable Energy, Elsevier, vol. 204(C), pages 11-23.
    13. Jaydip Sen & Sidra Mehtab, 2021. "Design and Analysis of Robust Deep Learning Models for Stock Price Prediction," Papers 2106.09664, arXiv.org.
    14. Shengxiang Lv & Lin Wang & Sirui Wang, 2023. "A Hybrid Neural Network Model for Short-Term Wind Speed Forecasting," Energies, MDPI, vol. 16(4), pages 1-18, February.
    15. Dong, Ming & Shi, Jian & Shi, Qingxin, 2020. "Multi-year long-term load forecast for area distribution feeders based on selective sequence learning," Energy, Elsevier, vol. 206(C).
    16. Kailai Ni & Jianzhou Wang & Guangyu Tang & Danxiang Wei, 2019. "Research and Application of a Novel Hybrid Model Based on a Deep Neural Network for Electricity Load Forecasting: A Case Study in Australia," Energies, MDPI, vol. 12(13), pages 1-30, June.
    17. Wang, Yun & Zou, Runmin & Liu, Fang & Zhang, Lingjun & Liu, Qianyi, 2021. "A review of wind speed and wind power forecasting with deep neural networks," Applied Energy, Elsevier, vol. 304(C).
    18. Yu, Solui & Hur, Jin, 2025. "An enhanced critical operating constraint forecasting (COCF) for power grids with large scale wind generating resources," Energy, Elsevier, vol. 331(C).
    19. Dinggao Liu & Zhenpeng Tang & Yi Cai, 2022. "A Hybrid Model for China’s Soybean Spot Price Prediction by Integrating CEEMDAN with Fuzzy Entropy Clustering and CNN-GRU-Attention," Sustainability, MDPI, vol. 14(23), pages 1-22, November.
    20. Tang, Yugui & Yang, Kuo & Zheng, Yichu & Ma, Li & Zhang, Shujing & Zhang, Zhen, 2024. "Wind power forecasting: A transfer learning approach incorporating temporal convolution and adversarial training," Renewable Energy, Elsevier, vol. 224(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jsusta:v:17:y:2025:i:20:p:9155-:d:1772354. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.