Next Article in Journal
An Adaptive Super-Resolution Network for Drone Ship Images
Next Article in Special Issue
EDAER: Entropy-Driven Approach for Entity and Relation Extraction in Chinese Cyber Threat Intelligence
Previous Article in Journal
Privacy-Preserving ECC-Based AKA for Resource-Constrained IoT Sensor Networks with Forgotten Password Reset
Previous Article in Special Issue
Prediction, Uncertainty Quantification, and ANN-Assisted Operation of Anaerobic Digestion Guided by Entropy Using Machine Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Application of the Two-Layer Regularized Gated Recurrent Unit (TLR-GRU) Model Enhanced by Sliding Window Features in Water Quality Parameter Prediction

1
School of Computer Science, Zhuhai College of Science and Technology, Zhuhai 519041, China
2
Department of Industrial Electronics, School of Engineering, University of Minho, 4704-553 Braga, Portugal
3
Traffic Information Modeling Center, Zhejiang Institute of Communications, Hangzhou 310000, China
*
Author to whom correspondence should be addressed.
Entropy 2026, 28(2), 186; https://doi.org/10.3390/e28020186
Submission received: 9 November 2025 / Revised: 27 January 2026 / Accepted: 1 February 2026 / Published: 6 February 2026
(This article belongs to the Special Issue Entropy in Machine Learning Applications, 2nd Edition)

Abstract

Water quality monitoring is critical for public health, ecology, and economic sustainability, but traditional methods are limited by temporal-spatial coverage and cost, failing to meet real-time assessment needs. Deep learning for water quality prediction is often hindered by high complexity and noise in raw time series. This study aims to address the high complexity and noise of hydrological time series by proposing a prediction framework integrating sliding window feature enhancement, principal component analysis (PCA), and a two-layer regularized gated recurrent unit (TLR-GRU). The core goal is to achieve high-precision real-time prediction of four key water quality parameters (dissolved oxygen (DO), ammonia nitrogen (NH3-N), total phosphorus (TP), and total nitrogen (TN)) for aquaculture and irrigation. Sample entropy (SampEn, m=2, r=0.2 × std(X)), a univariate complexity metric capturing intra-series pattern repetition, quantifies time series regularity, showing sliding windows reduce SampEn by filtering transient noise while retaining ecological patterns. This optimization synergizes with TLR-GRU’s regularization (L2, Dropout) to avoid overfitting. A total of 4970 water quality records (2020–2023, 4 h sampling interval) were collected from a monitoring station in a typical aquaculture-irrigated water body. After dimensionality reduction via PCA, experimental results demonstrate that the TLR-GRU model outperforms six state-of-the-art deep learning models (e.g., TLD-LSTM, WaveNet) on both the base dataset and the sliding window-enhanced dataset. On the latter, DO and TP test set R2 rise from 0.82 to 0.93 and 0.81 to 0.92, with RMSE decreasing by 49.4% and 55.6%, respectively. This framework supports water resource management, applicable to rivers and lakes beyond aquaculture. Future work will optimize the model and integrate multi-source data.
Keywords: water quality prediction; two-layer regularized gated recurrent unit (TLR-GRU); sliding window; sample entropy (SampEn); deep learning water quality prediction; two-layer regularized gated recurrent unit (TLR-GRU); sliding window; sample entropy (SampEn); deep learning

Share and Cite

MDPI and ACS Style

Wang, X.; Liu, M.; Li, Y.; Tavares, A.; Huang, W.; Liang, Y. Application of the Two-Layer Regularized Gated Recurrent Unit (TLR-GRU) Model Enhanced by Sliding Window Features in Water Quality Parameter Prediction. Entropy 2026, 28, 186. https://doi.org/10.3390/e28020186

AMA Style

Wang X, Liu M, Li Y, Tavares A, Huang W, Liang Y. Application of the Two-Layer Regularized Gated Recurrent Unit (TLR-GRU) Model Enhanced by Sliding Window Features in Water Quality Parameter Prediction. Entropy. 2026; 28(2):186. https://doi.org/10.3390/e28020186

Chicago/Turabian Style

Wang, Xianhe, Meiqi Liu, Ying Li, Adriano Tavares, Weidong Huang, and Yanchun Liang. 2026. "Application of the Two-Layer Regularized Gated Recurrent Unit (TLR-GRU) Model Enhanced by Sliding Window Features in Water Quality Parameter Prediction" Entropy 28, no. 2: 186. https://doi.org/10.3390/e28020186

APA Style

Wang, X., Liu, M., Li, Y., Tavares, A., Huang, W., & Liang, Y. (2026). Application of the Two-Layer Regularized Gated Recurrent Unit (TLR-GRU) Model Enhanced by Sliding Window Features in Water Quality Parameter Prediction. Entropy, 28(2), 186. https://doi.org/10.3390/e28020186

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop