Abstract
Hydraulic engineering involves the utilization of water for various purposes, such as water supply, irrigation and power generation. The efficient utilization and scientific management of water resources constitute an essential research subject. Within the realm of water resources management, accurate water demand prediction is of paramount significance for guaranteeing the sustainable utilization of water resources and fulfilling the water requirements of human society. In order to accurately predict the short-term water demand of the Yangtze valley and support for water resource management and allocation, this paper combines the Long Short Term Memory (LSTM) model and Time Series Decomposition (STL) to construct the STL-LSTM water demand prediction model. The study takes the large-scale water users in the main stream of the Yangtze River as an example to predict water demand. LSTM and ARIMA are used as comparative models, and Root Mean Square Error (RMSE) and Mean Absolute Percentage Error (MAPE) are used to evaluate the accuracy of the model prediction. The results show that compared with LSTM and ARIMA models, STL-LSTM model can better predict water demand trends, and the MAPE of prediction is reduced by 0.94% and 0.85% respectively, with higher prediction accuracy. STL-LSTM model can be applied to water demand prediction in the Yangtze valley.
Introduction
The Yangtze River serves as a critical lifeline for China, supporting vast agricultural, industrial, and residential sectors. As management of the basin's hydroelectric projects evolves from individual reservoir control to complex multi-dam cascade scheduling, the need for precise, short-term water demand forecasting has become paramount. Accurate predictions are especially vital during drought periods to ensure equitable and sustainable resource allocation.
Traditional forecasting methods often struggle with the dynamic nature of short-term demand. Quota analysis is frequently subjective, regression models require complex external variables that are difficult to quantify, and system dynamics models are typically better suited for long-term annual projections. While deep learning models like Long Short-Term Memory (LSTM) networks have shown promise in urban settings, they often fail to capture the massive, multi-sector seasonal variations inherent in a basin as large as the Yangtze.
Methodology
To address these challenges, this research proposes a hybrid STL-LSTM model. This approach combines the strengths of classical statistical decomposition with modern deep learning.
The process begins with data preprocessing to handle missing or extreme values. The core of the methodology involves STL (Seasonal and Trend decomposition using Loess), which decomposes the raw daily water usage data into three components: the long-term trend, the repeating seasonality (essential for capturing agricultural cycles), and the stochastic residuals (noise).
Following decomposition, these components are normalized and fed into an LSTM network. LSTMs are uniquely capable of learning long-term dependencies in time-series data while filtering out irrelevant noise. The model predicts future values for each component, which are then denormalized and recombined to produce the final water demand forecast. The optimized architecture for this study utilized 5 recurrent layers and a 7-day historical lookback window.
Results and Discussion
The model was evaluated using a proprietary dataset of over 570,000 daily water abstraction points from the Yangtze River Basin monitoring platform, spanning January 2021 to March 2024. The dataset covers 789 monitoring points across agricultural, domestic, and industrial sectors.
A key finding was that standard models like ARIMA and standalone LSTMs often suffer from a "prediction lag," where they tend to rely too heavily on the previous day's value when faced with sudden fluctuations. By isolating the trend and seasonal components through STL, the LSTM is able to focus on the residual variations, leading to much more responsive and accurate forecasts.
Quantitative benchmarking demonstrates the superiority of the hybrid approach. The STL-LSTM model achieved a Root Mean Square Error (RMSE) of 115.78, significantly lower than the standalone LSTM (153.02) and ARIMA (156.85). Furthermore, the Mean Absolute Percentage Error (MAPE) was reduced to 2.55%, representing a substantial improvement over the baseline models. Notably, over 90% of the STL-LSTM predictions maintained a relative absolute error of less than 5%.
Conclusion
The STL-LSTM model provides a robust framework for short-term water demand forecasting in complex river basins. By effectively decomposing time-series data, it overcomes the limitations of traditional models in handling seasonal volatility and prediction lag. While currently a univariate model, future enhancements could integrate meteorological factors such as temperature and rainfall to further refine its predictive power during extreme weather events. This research offers a valuable tool for the scientific management and sustainable allocation of water resources in the Yangtze Valley.
Summary updated