Skip to Content
You are currently on the new version of our website. Access the old version .
SustainabilitySustainability
  • Article
  • Open Access

9 January 2026

17 Pages

Quantitative Analysis of Input Schemes and Key Variable Contributions in River Runoff Forecasting Models

,
,
,
,
,
,
and
1
School of Water Conservancy and Transportation, Zhengzhou University, Zhengzhou 450001, China
2
China Water Resources Pearl River Planning Surveying and Designing Co., Ltd., Guangzhou 510635, China
*
Author to whom correspondence should be addressed.

Abstract

In Long Short-Term Memory (LSTM)-based runoff forecasting models, the selection of input schemes is critically important. This study, using daily rainfall and runoff data from the Jingle Basin (2006–2014), investigated three input schemes to evaluate their forecasting efficacy and employed the Shapley Additive Explanation (SHAP) method to quantitatively analyze variable contributions. The results demonstrate that LSTM model performance deteriorates with increasing lead time, achieving optimal accuracy at a 1-day lead (MAE: 0.90 m3/s, RMSE: 3.09 m3/s, NSE: 0.84). The results, validated by significance testing, are reasonable; incorporating precipitation characteristics significantly enhances model performance compared to baseline schemes, reducing RMSE by 6–34% and improving NSE by 9–14%. SHAP analysis reveals antecedent runoff as the dominant influencing factor, accounting for 65.9–84.7% of total importance. Furthermore, the contributions of trend, seasonal, and residual components progressively increase with extended lead times, demonstrating non-negligible roles in forecast outcomes. These findings, confirmed by significance testing, provide quantitative insights into input variable contributions to target uncertainty and enhance the mechanistic understanding of precipitation-runoff relationships, offering valuable references for optimizing hydrological forecasting systems.

1. Introduction

Global climate change has intensified the frequency and magnitude of extreme hydro-meteorological events, while rapid urbanization and intensive human activities have substantially altered underlying surface conditions. As a result, water-related challenges such as floods, droughts, and water scarcity are becoming increasingly severe and complex, posing significant threats to sustainable water resources management and socio-economic development [1,2]. In this context, accurate runoff simulation and forecasting play a critical role in supporting rational water allocation, flood risk mitigation, and the long-term sustainability of river basins [3]. Improving hydrological forecasting accuracy under non-stationary environmental conditions and reliably predicting future hydrological variations therefore represent key challenges in contemporary hydrological science and sustainable development research [4,5]. Hydrological forecasting models serve as essential tools for runoff simulation and water resources assessment. Their development has generally progressed through three stages, conceptual models, physically based models, and data-driven models [6,7,8], each providing distinct perspectives for representing rainfall–runoff processes. Conceptual and physically based models simulate runoff by explicitly describing hydrological mechanisms using empirical relationships or physically derived equations [9,10]. However, in practical applications—particularly in small- and medium-sized catchments—these models often suffer from limitations such as complex model structures, high data demands, and difficulties in parameter calibration, which restrict their operational applicability for sustainable water management [11]. With the rapid advancement of artificial intelligence and big data technologies, data-driven hydrological models have emerged as promising alternatives [6,12,13]. Unlike traditional models, data-driven approaches do not require strong prior assumptions about physical processes; instead, they learn complex nonlinear relationships directly from historical data, enabling flexible and efficient runoff prediction under changing environmental conditions [14,15]. In recent years, a wide range of data-driven models—including artificial neural networks, support vector machines (SVM), and deep learning models—have been successfully applied to runoff forecasting [16,17]. Researchers tend to adopt data-driven models with simpler structures that can directly map feature variables and predict runoff relationships [6,18] Among them, the Long Short-Term Memory (LSTM) neural network has gained increasing attention due to its strong ability to capture long-term temporal dependencies in hydrological time series and its suitability for large datasets [1,19]. These characteristics make LSTM-based models particularly attractive for enhancing the reliability and sustainability relevance of runoff forecasting in data-limited and dynamically changing basin environments.
In recent years, the application of Long Short-Term Memory (LSTM) networks in runoff forecasting has received extensive attention, with studies systematically evaluating its predictive performance. For instance, Kratzert et al. [10] applied LSTM to forecast runoff across 241 catchments, demonstrating that its predictive capability surpassed traditional methods in most basins. Rahimzad et al. [17] compared the performance of linear regression, support vector machines, and LSTM for daily streamflow prediction, confirming LSTM’s superiority in capturing daily flow variations. However, research has also identified biases in LSTM flood peak predictions, and in complex hydrological systems, model responses to input data may be insufficient due to parameter uncertainty and nonlinear inputs, thereby affecting forecasting accuracy [7,20].
To enhance LSTM forecasting performance, researchers have undertaken improvements in multiple aspects, including model coupling, hyperparameter optimization, and input variable selection. Autoregression (AR) and its extensions can capture the influence of historical flows on future runoff, and integrating AR concepts with LSTM strengthens the utilization of historical states, improving short-term prediction performance while accommodating nonlinear long-term dependencies [21,22]. Zou et al. [23] proposed ResLSTM for flood forecasting and introduced the probabilistic DeepAR model, enhancing the model’s adaptability to flood uncertainty and predictive accuracy. Zhang et al. [24] optimized LSTM from both input feature extraction and loss function design using dual time sliding windows (DTSW) and a weighted mean squared error (WMSE) loss function, reducing excessive fluctuations in hydrological curves and improving flood peak predictions. Additionally, some studies have combined LSTM with other types of flood forecasting models to build hybrid models capable of adapting to complex underlying surface conditions, with results generally showing that hybrid models outperform single models [25,26].
Regarding hyperparameter optimization, factors such as batch size, time step length, and the number of hidden layer neurons significantly influence model performance [27]. To address the complexity of hyperparameter selection and computational resource constraints, researchers have employed optimization algorithms. For example, Xu et al. [28] used particle swarm optimization (PSO) to tune LSTM hyperparameters and enhance sequence feature learning, while Yao et al. [29] applied the sparrow search algorithm (SSA) for global search and faster convergence. Moreover, the type of input variables also has a significant impact on predictive performance. Nourani and Behfar [30] proposed a seasonal LSTM model for daily- and monthly-scale runoff-sediment simulation, achieving performance improvements of approximately 25% and 28% compared with traditional LSTM and feedforward neural network models, respectively. However, existing studies have not fully analyzed the role of different input variables in revealing rainfall–runoff process patterns, and the interpretability of the models remains insufficient [31].
In this context, the SHapley Additive exPlanations (SHAP) method provides a transparent and quantitative tool for analyzing feature contributions in deep learning models, with proven effectiveness across multiple fields. Hosseini et al. [32] developed a regionally optimized LSTM model at the watershed scale, integrating an interpretable AI framework that combines SHAP, random forest (RF), and principal component analysis (PCA), quantitatively revealing the physical features implicitly learned by LSTM in different basins. Qiu et al. [33] applied LSTM combined with SHAP and Universal Multifractal (UM) analysis in the lower Mekong River, showing that deep soil moisture contributed most to flood prediction and revealing the interaction mechanisms between these variables and runoff. In watershed runoff forecasting, SHAP can quantify the contributions of input variables such as precipitation, soil moisture, and historical flows to LSTM outputs and, when combined with multiscale analysis and PCA, can evaluate interactions among variables quantitatively [34,35,36].
Although numerous studies have improved LSTM-based hydrological models and achieved satisfactory predictive performance, several limitations remain. Existing research mainly emphasizes overall model accuracy, while the roles of different input variables in revealing rainfall–runoff processes and hydrological response patterns are still insufficiently explored. This lack of interpretability restricts the practical application of data-driven models in sustainable water resources management, where transparent and process-informed predictions are essential. Moreover, systematic assessments of how different input schemes—such as precipitation feature quantification and runoff sequence decomposition—affect runoff simulation across multiple lead times remain limited. To address these gaps, this study develops an LSTM-based runoff forecasting framework for the Jingle watershed and systematically compares multiple input schemes, including multivariable inputs and time-series decomposition, to evaluate their impacts on forecasting accuracy and robustness. In addition, SHAP-based interpretability analysis is employed to quantify the contributions of individual input variables and clarify performance differences among input schemes. By improving both predictive skill and model transparency, this research provides scientific support for flood risk mitigation, water allocation planning, and the sustainable management of watershed-scale water resources under changing environmental conditions.

2. Methodology

2.1. LSTM Model

A Long Short-Term Memory (LSTM) Neural Network is a type of Recurrent Neural Network (RNN) designed for modeling time series. To address the issue of gradient vanishing, which often leads to decay or exponential explosion of input information in conventional recurrent neural networks, and the difficulty of learning temporal dependencies between sequences, the network structure can selectively retain input information [37,38]. Compared to the hidden layers of conventional RNNs, the basic structure of LSTM models is memory cell units, which can extract data feature information with long-term sequence dependencies. The basic unit structure of the hidden layer memory cells in the LSTM model is shown in Figure 1.
Figure 1. Basic unit structure of hidden layer of LSTM model.
A memory cell unit is a kind of selective memory and forgetting unit, which is composed of a forgetting gate, input gate and output gate. When the input is processed by the memory cell unit, the state variable will be updated. The specific process is that when the input is calculated by the memory cell unit, the new input is first processed by the activation function. The forgetting gate selectively forgets some information according to the information that needs to be forgotten, and the input gate selectively adds some information in the new input according to the information that needs to be remembered. Finally, the output gate produces an output value that has been processed by the activation function as the input for the next step.

2.2. LSTM Model Input Variable Sequence Decomposition Method

Seasonal Trend Decomposition Procedure Based on Loess (STL), based on Local Weighted Regression, is an efficient and stable time series decomposition algorithm [39,40], Compared with traditional time series decomposition algorithms, it has stronger robustness in handling outliers and can handle sample data of any scale. The specific process is based on LOESS to decompose the runoff data Yt (t = 1, 2, …, n) at a certain moment into a trend term St, a seasonal term Tt, and a residual term Rt. The trend term represents the long-term variation trend of runoff data, while the seasonal term represents the periodic component of runoff data, that is, the seasonal factors of runoff data that can occur periodically [41]. The residual term represents the residual of the original runoff data after decomposing the trend term and seasonal term, that is, the random fluctuation term of runoff. The calculation formula is as follows:
Y t = S t + T t + R t
Seasonal Trend Decomposition Procedure Based on Loess (STL) is a recursive iterative algorithm, which consists of an inner loop and an outer loop, and the inner loop is nested inside the outer loop. In the inner cycle, trends and seasonal components are updated; the outer loop contains the inner loop, and the robustness weight is calculated after each iteration of the inner loop. These weights are used in the next iteration of the inner loop to reduce the impact of transient outliers in the trend and seasonal components.
The method of “decomposition—prediction—combination” is used to forecast the runoff series. Firstly, STL was used to decompose the runoff series, and the trend term, seasonal term and residual term were obtained. Then, the LSTM model is used to forecast the runoff series, and the forecast results of each runoff series component are superimposed to obtain the runoff series forecast results. The decomposition was performed with a seasonal window of 12 observations, a trend window of 25 observations, and 15 robustness iterations to reduce the influence of outliers. To handle boundary effects, the series was extended using reflection at both ends, following the standard procedure in the STL algorithm. This setup allows for reliable separation of trend, seasonal, and remainder components, ensuring reproducibility of the decomposition results.

2.3. Interpretability Method of LSTM Model Runoff Forecast

Deep learning has achieved stronger forecasting performance in complex hydrological forecasting tasks compared to traditional hydrological models. However, the mapping relationship between input variables and runoff target values is not clear, and the interpretability of the model requires further research. Shapley Additive Explanation (SHAP) is an additive explanation model proposed based on cooperative game theory [42]. The Shapley value considers the impact of each feature on different permutations and combinations and calculates the importance of each feature by weighting the various combinations of features to quantify their contribution to the prediction results. In the runoff simulation process of this study, all input variables are considered contributors, and for each actual runoff sample, the model will generate a forecast value which indicates the importance of each input variable to the simulated results [43]. The basic process involves calculating the marginal contribution of a variable when input into the model, considering the different marginal contributions of this variable in all variable sequences, and averaging them to obtain the SHAP baseline value of the feature. The calculation formula is shown in the following equation:
Q ˜ i = Q ˜ b a s e + f ( x i 1 ) + f ( x i 2 ) + ⋯ + f ( x i k )
wherein the ith runoff sample is xi, the kth feature of the ith sample is xik, the fitting value of the model for the actual runoff Q i is Q ˜ i , the baseline of the model (the mean of all sample target variables, i.e., the measured runoff mean) is Q ˜ b a s e , and f(xik) is the importance of variable x i k , i.e., the contribution of x i k to the final runoff fitting value Q ˜ i .
This study uses the SHAP method to analyze the input variables of the LSTM model, explores the impacts of different input components on runoff prediction, and reveals the importance of input characteristic variables to the runoff prediction values during the LSTM runoff simulation process.

2.4. Model Evaluation Index

In this study, three indicators, Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Nash–Sutcliffe Efficiency Coefficient (NSE), were selected to evaluate the predictive performance of the model in simulating runoff. A smaller MAE value indicates a higher predictive ability of the model. The NSE value typically ranges from (−∞) to 1, with a value closer to 1 indicating a better predictive ability of the model. A smaller RMSE value also suggests a better predictive ability of the model. The specific calculation formulas for these indicators are as follows:
M A E = 1 n ∑ i = 1 n Q o i − Q s i
R M S E = 1 n ∑ i = 1 n Q o i − Q s i 2
N S E = 1 − ∑ i = 1 n Q o i − Q s i 2 ∑ i = 1 n ( Q o i − Q o ¯ ) 2
where n is the total period of runoff series; Q s i and Q o i is the simulated flow and measured flow of the first period; and Q o ¯ is the average value of the measured value of runoff series.

3. Case Study

3.1. Study Area

The Fen River is the second largest tributary of the Yellow River. The Fen River basin is located at 110.5–113.5° E, 35.3–39° N, with a total length of 713 km and a controlled basin area of 39,721 km2 [28,44]. The Jingle River Basin in the research area is located in the upper reaches of the Fen River, originating from Guancenshan and Tianchi in Shanxi Province, flowing through Ningwu County and Jingle County. The total length of the river is 83.9 km, the average slope of the basin is 6.7 ‰, and the controlled basin area is 2799 km2 [44]. The average annual precipitation in the Jingle River Basin is 498 mm (1971–2014), with a maximum annual precipitation of 749 mm and a minimum annual precipitation of 216 mm. The historical measured maximum peak flow is 2267 m3/s, and the average maximum peak flow over the years is 596 m3/s. The precipitation is mostly concentrated in summer, with more than 70% of the total annual precipitation from June to September. The Jingle River Basin is one of the areas with prominent water supply and demand contradictions in the middle reaches of the Yellow River. The Jingle watershed and station locations are shown in Figure 2. The spatial distribution of 17 water level stations is relatively scattered and not concentrated in a certain area, which has good spatial coverage and representativeness.
Figure 2. Jingle Basin and site location map.

3.2. Data Source and Processing

In this study, daily precipitation data from 17 rainfall stations within the watershed and daily runoff data from the Jingle hydrological station for the period 2006–2014 were selected as model input data. Due to substantial missing precipitation observations in 2011, this year’s data were excluded to avoid potential systematic errors introduced by interpolation, and 2011 was designated as the boundary between the model calibration and validation periods. All daily precipitation and runoff data were obtained from the Hydrological Yearbook of the Yellow River.
Before constructing the LSTM model for rainfall–runoff simulation, both precipitation and runoff data were preprocessed to ensure consistency. Given the significant differences in value ranges and units between these two types of variables, the min–max normalization method was applied to map all variables in the dataset uniformly to the interval (0, 1), thereby improving model convergence speed and reducing training errors.
The LSTM inputs were constructed using a sliding window approach. The window length was set to n, such that each input sample comprised runoff values from t − 5 to t (a total of 6 days) along with precipitation amounts P1–Pₘ from the 17 rainfall stations. These sequential features were used collectively as model inputs to predict runoff at subsequent time steps. The model input features are summarized in Table 1.
Table 1. Model input features.

3.3. Construction of LSTM Runoff Forecasting Model

To evaluate the impact of different input feature construction methods on LSTM runoff forecasting performance, this study designed three input schemes: (1) using only the original antecedent runoff sequence as model input; (2) decomposing the runoff sequence into components such as trend, seasonal, and random terms, which are individually input into the LSTM model for prediction and subsequently reconstructed to obtain the runoff; and (3) incorporating precipitation features as additional input variables based on the original runoff sequence. By comparing the forecasting performance of these three schemes, the study aims to reveal the mechanisms by which mining multiscale information within the runoff sequence and supplementing external hydrological driving factors can enhance runoff prediction accuracy. Figure 3 below illustrates the LSTM model structure used in this study.
Figure 3. LSTM runoff forecast model.

3.4. Model Network Hyperparameter Determination

Hyperparameters include learning rate, batch size, number of iterations, etc. These parameters will directly affect the performance and training efficiency of the model. Before applying the LSTM model to simulate the rainfall runoff process, it is necessary to select network hyperparameter combination to achieve fast convergence and better fitting effect. First, construct the LSTM baseline model with the following hyperparameters: number of hidden layers: 1, learning rate: 0.0001, batch size: 24, and loss function: MAE. In general, the number of hidden layer neurons and the number of iterations in a deep learning model are more sensitive to the simulation results. Therefore, the prediction effect of different LSTM hyperparameters on runoff process was studied by changing these two hyperparameters. The number of hidden layer neurons was set to 10, 20, 30, 40, 50, 100, 150, and 200, and the number of iterations was set to 10, 20, 30, 40, 50, 100, 150, 200, and 300, respectively. The grid search method was used to search the hyperparameter space to find the best combination of hyperparameters. The best runoff prediction results are achieved when the hidden layer is set to 1, the number of neurons is 50, and the training times is 200.
The prediction performance of the LSTM model under different time steps is shown in Table 2. It can be seen that the input of different time steps has little influence on the prediction accuracy. In order to reduce the calculation complexity and calculation time, all time steps are set to 6.
Table 2. Variation of LSTM prediction accuracy with sequence length.

4. Results and Discussion

4.1. The Forecasting Performance of the Model with Single Runoff Sequence Input

Daily runoff sequences from 2006 to 2010 were selected as the training set, while daily runoff sequences from 2012 to 2014 were used as the validation set. Using the previously determined model hyperparameters, simulated runoff values for different lead times are shown in Figure 4. Comparison of results across different lead times indicates that forecasting accuracy decreases as the lead time increases. The highest accuracy occurs at a 1-day lead time, with MAE, RMSE, and NSE values of 0.90 m3/s, 3.09 m3/s, and 0.84, respectively. As the lead time extends, forecasting accuracy declines, but the rate of decrease gradually diminishes. This is because runoff in small- and medium-sized rivers generally rises and falls sharply, and the rainfall–runoff response typically occurs within 1–3 days. Daily runoff sequences at the watershed scale exhibit significant fluctuations, so as the lead time increases, the influence of historical data on the current day’s runoff diminishes. The extended input–output time interval in model training reduces the correlation between data points, making it more difficult for the model to learn the relationships within the sequence, whereas adjacent data points exhibit the strongest correlations and have the greatest impact on forecasting performance.
Figure 4. Scatter plots of LSTM forecasts versus observed streamflow for different lead times (subplots (a–f) Scatter plots showing the relationship between observed data and simulated data under different forecast periods from 1 to 6 days; the 45° line represents the ideal state where the simulated value is completely equal to the measured value).
Figure 5 presents the daily runoff forecasts of the LSTM model for lead times of 1, 3, and 6 days. Overall, the predicted daily runoff closely follows the observed sequences. Forecasts during the non-flood season exhibit good correlation with observations, whereas the LSTM model shows limitations in predicting the flood season, with substantial deviations in estimating major flood peaks. As the lead time increases, the model’s fitting accuracy tends to decline. The primary differences in forecasting performance across different lead times are observed in the model’s ability to capture flood peaks. In small- and medium-sized basins, the runoff concentration time is short, and when recent runoff information is unavailable, the LSTM network’s capacity to capture extreme runoff values diminishes.
Figure 5. Runoff simulation performance of the LSTM model at different lead times (panels (a–c) show comparisons between observed and simulated values for 1-, 3-, and 6-day lead times, respectively; the gray solid line represents observed values, and the red dashed line represents simulated values).

4.2. Comparison of Forecasting Accuracy Under the Runoff Sequence Decomposition Scheme

The original runoff sequence was decomposed using the STL method, with the original sequence and decomposition results shown in Figure 6. As illustrated, the original sequence exhibits clear seasonality and volatility. The trend component indicates that runoff at the Jingle hydrological station shows an overall increasing trend, remaining relatively stable during low-flow periods but rising sharply during high-flow periods. The residual component displays random fluctuations, with amplitudes increasing noticeably during the flood season, and shows a certain correlation with the precipitation at the corresponding time. The residual autocorrelation plot in Figure 7 shows that most of the lagged autocorrelation coefficients fall within the confidence interval, indicating that there is no significant autocorrelation structure in the residuals. The decomposition of the residuals is close to white noise, and the model has captured the main signal, not overfitting noise.
Figure 6. Original runoff process and its decomposition results. (a) represents the original runoff series; (b) represents the decomposed trend component series; (c) represents the decomposed seasonal component series; (d) represents the decomposed residual series.
Figure 7. Residual autocorrelation plot.
The forecasting performance of the LSTM model based on sequence decomposition is presented in Table 3. As shown, the LSTM model using the sequence decomposition scheme outperforms the baseline model across all lead times. In terms of NSE, the sequence decomposition model achieves values ranging from 0.55 to 0.88, which are consistently higher than the baseline model’s 0.50 to 0.84 across different lead times. Regarding the MAE metric, the performance differences between the sequence decomposition model and the baseline model are minor, with neither showing consistent superiority. For RMSE, the sequence decomposition model reduces errors by 2–12% compared with the baseline model. This improvement can be attributed to the strong non-stationarity of the original, undecomposed runoff sequence, which is unfavorable for feature extraction and forecasting in deep learning models. Our research results are consistent with the work of Li et al. [45]: whether using flow pattern recognition or time series decomposition, effectively capturing and utilizing the inherent structural characteristics of hydrological data is an effective way to improve the accuracy of flow modeling. By performing prior decomposition, the sequence decomposition scheme mitigates the nonlinearity and non-stationarity of the runoff time series, enabling the LSTM model to better identify the periodicity and random fluctuations in non-stationary runoff sequences. This, in turn, reduces forecasting uncertainty to a certain extent and improves runoff prediction accuracy across multiple lead times.
Table 3. Comparison of accuracy of sequence decomposition schemes under different forecast horizons.

4.3. Comparison of Forecasting Accuracy Under the Precipitation-Enhanced Input Scheme

Using the runoff-only input scheme as the baseline model, both runoff and station precipitation were incorporated as input variables, with observed runoff serving as the training target (2006–2010 as the training period and 2012–2014 as the validation period). The model’s hyperparameters and normalization procedures were kept consistent with the previous settings. The forecasting results obtained after adding precipitation data as an additional input feature are shown in Figure 8. As illustrated in Figure 8, compared with the LSTM model without precipitation input, the MAE decreases by 10–21%, the RMSE decreases by 6–34%, and the NSE increases by 9–14%. These improvements indicate that the inclusion of precipitation effectively enhances the forecasting performance of the LSTM model. This finding confirms that deep learning models leveraging relevant hydro-meteorological information can better extract the rainfall–runoff response patterns. To verify this phenomenon, we also performed a cross-correlation function (CCF) to validate the capture of this mechanism, as shown in Figure 9. The CCF results demonstrate the multi-component characteristics of watershed runoff response: in addition to the dominant correlation reflecting immediate response (fast flow) at lag 0, there is also a statistically significant positive correlation peak at lag 15 to 18. This latter represents the memory effect of rainfall, which is the sustained and delayed response caused by slow groundwater flow and base flow contributions. From a data-driven perspective, it further demonstrates that the internal structure of deep learning-based hydrological models is capable of capturing the underlying mechanisms embedded in rainfall–runoff processes, thereby achieving more accurate runoff forecasting.
Figure 8. Scatter diagram of forecast flow and measured flow in precipitation data input scheme (subplots (a–f) Scatter plots showing the relationship between observed data and simulated data under different forecast periods from 1 to 6 days; the 45° line represents the ideal state where the simulated value is completely equal to the measured value).
Figure 9. Cross-correlation analysis (indicate the correlation between current runoff and rainfall under different lag times).

4.4. Discussion

4.4.1. Driving Effects of Input Factors on Simulated Runoff

Table 4 compares the variation in input variable importance under two input schemes using the SHAP method. In the precipitation-enhanced input scheme, the importance of antecedent runoff gradually decreases as the lead time increases, yet it remains the most influential predictor of runoff. Meanwhile, the importance of precipitation increases from 12.0% to 23.8%, indicating that precipitation is a key input variable whose influence becomes more prominent for longer lead-time runoff forecasting [46].
Table 4. Contribution of model input factors under the two input schemes (the table shows the contributions of each input variable to the simulation results under the precipitation input scheme and the sequence decomposition scheme, respectively).
Under the decomposition-based input scheme, the residual component is identified as the most important predictor, with an importance of 48.3–67.3% for lead times of 1–6 days. The residual component generally contains random fluctuations or variations unexplained by other factors. As the lead time increases, the influence of other components becomes clearer and stronger, reducing the relative impact of the uncertainty captured by the residuals. However, at shorter lead times—particularly at a 1-day lead—the high contribution of the residual term suggests that random or unaccounted-for factors exert significant influence on the model output [47]. In contrast, trend and seasonal components exhibit limited influence at a 1-day lead time but collectively reach an importance of 51.7% at a 6-day lead time, indicating that runoff trend and seasonal variations play a dominant role in longer-term runoff prediction.
This study developed an LSTM-based runoff forecasting model for the Jingle Basin, conducted 1–6 day lead-time simulations using five categories of input variables, and applied the SHAP method to analyze the importance of each variable. The specific results are shown in Figure 10. The results indicate that antecedent runoff dominates across all lead times (65.9–84.7%). Its contribution decreases slightly as the lead time increases but remains the key initial condition for short-term forecasting, reflecting the temporal continuity of hydrological systems. The contribution of precipitation shows a gradual declining trend: it strongly drives short-term runoff dynamics, while its influence at longer lead times is increasingly replaced by the basin’s internal dynamics, demonstrating effects of storage and system memory [48]. The importance of the trend and seasonal components increases with lead time, revealing the dominant role of long-term stable factors and seasonal regulation in medium- to long-term forecasting, thereby highlighting the coupled mechanisms of multi-scale hydrological processes. The residual component becomes increasingly influential for longer lead times, suggesting that unobserved boundary condition changes or nonlinear processes may constrain model accuracy [49]. Overall, from an interpretability perspective, this study uncovers a multi-factor cooperative mechanism governing runoff prediction: short-term forecasts are primarily driven by initial system states and precipitation inputs, whereas medium- and long-term forecasts rely more on intrinsic system properties and periodic patterns.
Figure 10. Contributions of each input variable to the forecast value under different forecasting horizons.

4.4.2. Limitations

The runoff and precipitation observations used in this study cover the period from 2006 to 2014; however, due to severe data insufficiency in 2011, data from that year were excluded from model development and analysis. Accordingly, 2011 was used as the dividing point, with data from 2006 to 2010 serving as the calibration period and data from 2012 to 2014 as the validation period. Missing data—particularly the absence of an entire year—not only reduce the number of training samples but may also impair the model’s ability to capture long-term runoff variability, thereby introducing uncertainty into forecast accuracy during certain periods. In addition, the simulations consistently exhibit an underestimation of peak flows, especially at longer forecast horizons. This limitation reflects both hydrological and methodological constraints. From a hydrological perspective, peak flow events in the Jingle Basin are typically driven by short-duration, high-intensity storms, which generate rapid and highly nonlinear runoff responses that are difficult for data-driven models to fully capture.
To address these limitations, future work may incorporate high-quality and continuous observational data or apply data imputation methods to mitigate missing-data issues. Integrating real-time precipitation forecasts or radar-based gridded rainfall datasets could also improve the model’s timeliness and short-term predictive capability. Furthermore, multi-source data fusion may enhance the model’s adaptability and robustness under extreme events, thereby further improving forecast accuracy and practical applicability.

5. Conclusions

This article centers on the impact of input schemes on the effectiveness of LSTM for runoff forecasting, delving into the runoff forecasting performance of LSTM models under different input variable schemes and meticulously analyzing the role of these input variables in unveiling the intricate mechanisms of rainfall–runoff processes. The research findings are summarized as follows:
(1)
Across three distinct input schemes, the forecasting performance of the models consistently exhibits a gradual decline as the lead time increases, with optimal performance attained at a lead time of 1 day. This observation aligns with the research outcomes of other scholars.
(2)
Compared to the baseline scheme, the sequence decomposition scheme notably enhances the LSTM model’s performance in runoff simulation. Specifically, at a lead time of 1 day, this scheme achieves RMSE and NSE values of 2.70 m3/s and 0.88 m3/s, respectively (albeit with some degree of distortion in simulating low-flow events). Among all schemes, the one incorporating precipitation feature inputs stands out. Compared to the baseline model, this scheme reduces MAE by 10% to 21%, RMSE by 6% to 34%, and increases NSE by 9% to 14%. Furthermore, it demonstrates a more exceptional ability in capturing peak flows.
(3)
The SHAP method was used to deeply analyze the degree of influence of input variables on the forecast values. The results show that antecedent runoff plays a crucial role in runoff forecasting, and its importance proportion ranges from 65.9% to 84.7% within different lead times. While the values of the trend term, seasonal term, and residual term are relatively small, as the lead time continues to extend, they each exhibit unique influence patterns and have a dynamic and non-negligible effect on the forecasting results.

Author Contributions

Methodology, C.L.; Software, H.Z.; Validation, Y.J.; Formal analysis, H.Z., C.L. and Q.Y.; Investigation, W.L., Y.J. and C.H.; Resources, F.Z., T.X., Q.Y., Y.J. and C.H.; Data curation, F.Z. and W.L.; Writing—original draft, H.Z.; Writing—review & editing, T.X.; Funding acquisition, C.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Ministry of Science and Technology of the People’s Republic of China: National key research and development program (2023YFC3209303) and the Projects of National Natural Science Foundation of China: Evolution characteristics and control strategies of channel and floodplain in the Lower Yellow River (U2243219).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The datasets analyzed during the current study are not publicly available but are available from the corresponding author on reasonable request.

Conflicts of Interest

Author F.Z. was employed by the company China Water Resources Pearl River Planning Surveying and Designing Co. Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Luo, Y.; Zhou, Y.; Chen, H.; Xiong, L.; Guo, S.; Chang, F.-J. Exploring a Spatiotemporal Hetero Graph-Based Long Short-Term Memory Model for Multi-Step-Ahead Flood Forecasting. J. Hydrol. 2024, 636, 130937. [Google Scholar] [CrossRef] [Scilit]
  2. Wang, C.; Wang, K.; Liu, D.; Zhang, L.; Li, M.; Khan, M.I.; Li, T.; Cui, S. Development and Application of a Comprehensive Assessment Method of Regional Flood Disaster Risk Based on a Refined Random Forest Model Using Beluga Whale Optimization. J. Hydrol. 2024, 637, 130963. [Google Scholar] [CrossRef] [Scilit]
  3. Sun, D.; Yang, T.; Li, S.; Goldberg, M.; Kalluri, S.; Helfrich, S.; Sjonberg, B.; Zhou, L.; Zhang, Q.; Straka, W.; et al. Hazard or Non-Hazard Flood: Post Analysis for Paddy Rice, Wetland, and Other Potential Non-Hazard Flood Extraction from the VIIRS Flood Products. ISPRS J. Photogramm. Remote Sens. 2024, 209, 415–431. [Google Scholar] [CrossRef] [Scilit]
  4. Muste, M.; Kim, D.; Kim, K. A Flood-Crest Forecast Prototype for River Floods Using Only In-Stream Measurements. Commun. Earth Environ. 2022, 3, 94. [Google Scholar] [CrossRef] [Scilit]
  5. Sabzipour, B.; Arsenault, R.; Troin, M.; Martel, J.L.; Brissette, F.; Brunet, F.; Mai, J. Comparing a Long Short-Term Memory (LSTM) Neural Network with a Physically-Based Hydrological Model for Streamflow Forecasting over a Canadian Catchment. J. Hydrol. 2023, 627, 130380. [Google Scholar] [CrossRef] [Scilit]
  6. Hu, C.; Wu, Q.; Li, H.; Jian, S.; Li, N.; Lou, Z. Deep Learning with a Long Short-Term Memory Networks Approach for Rainfall-Runoff Simulation. Water 2018, 10, 1543. [Google Scholar] [CrossRef] [Scilit]
  7. Man, Y.; Yang, Q.; Shao, J.; Wang, G.; Bai, L.; Xue, Y. Enhanced LSTM Model for Daily Runoff Prediction in the Upper Huai River Basin, China. Engineering 2023, 24, 229–238. [Google Scholar] [CrossRef] [Scilit]
  8. Peng, A.; Zhang, X.; Xu, W.; Tian, Y. Effects of Training Data on the Learning Performance of LSTM Network for Runoff Simulation. Water Resour. Manag. 2022, 36, 2381–2394. [Google Scholar] [CrossRef] [Scilit]
  9. Adnan, R.M.; Petroselli, A.; Heddam, S.; Santos, C.A.G.; Kisi, O. Comparison of Different Methodologies for Rainfall–Runoff Modeling: Machine Learning vs Conceptual Approach. Nat. Hazards 2021, 105, 2987–3011. [Google Scholar] [CrossRef] [Scilit]
  10. Kratzert, F.; Klotz, D.; Brenner, C.; Schulz, K.; Herrnegger, M. Rainfall–Runoff Modelling Using Long Short-Term Memory (LSTM) Networks. Hydrol. Earth Syst. Sci. 2018, 22, 6005–6022. [Google Scholar] [CrossRef] [Scilit]
  11. Fan, H.; Jiang, M.; Xu, L.; Zhu, H.; Cheng, J.; Jiang, J. Comparison of Long Short Term Memory Networks and the Hydrological Model in Runoff Simulation. Water 2020, 12, 175. [Google Scholar] [CrossRef] [Scilit]
  12. Deng, H.; Chen, W.; Huang, G. Deep Insight into Daily Runoff Forecasting Based on a CNN-LSTM Model. Nat. Hazards 2022, 113, 1675–1696. [Google Scholar] [CrossRef] [Scilit]
  13. Srivastava, S.; Lessmann, S. A Comparative Study of LSTM Neural Networks in Forecasting Day-Ahead Global Horizontal Irradiance with Satellite Data. Sol. Energy 2018, 162, 232–247. [Google Scholar] [CrossRef] [Scilit]
  14. Liu, N.; Qian, L.; Yan, D.; Hu, W.; Hong, M. A Nonlinear Dynamical Model for Monthly Runoff Forecasting in Situations of Small Samples. Math. Geosci. 2023, 56, 639–659. [Google Scholar] [CrossRef] [Scilit]
  15. Weng, P.; Tian, Y.; Liu, Y.; Zheng, Y. Time-Series Generative Adversarial Networks for Flood Forecasting. J. Hydrol. 2023, 622, 129702. [Google Scholar] [CrossRef] [Scilit]
  16. Bai, Y.; Bezak, N.; Zeng, B.; Li, C.; Sapač, K.; Zhang, J. Daily Runoff Forecasting Using a Cascade Long Short-Term Memory Model that Considers Different Variables. Water Resour. Manag. 2021, 35, 1167–1181. [Google Scholar] [CrossRef] [Scilit]
  17. Rahimzad, M.; Nia, A.M.; Zolfonoon, H.; Soltani, J.; Mehr, A.D.; Kwon, H.-H. Performance Comparison of an LSTM-Based Deep Learning Model versus Conventional Machine Learning Algorithms for Streamflow Forecasting. Water Resour. Manag. 2021, 35, 4167–4187. [Google Scholar] [CrossRef] [Scilit]
  18. Jeong, M.; Kim, C.; Kim, D.-H. Flood Prediction Using Nonlinear Instantaneous Unit Hydrograph and Deep Learning: A MATLAB Program. Environ. Model. Softw. 2024, 175, 105974. [Google Scholar] [CrossRef] [Scilit]
  19. Roushangar, K.; Abdelzad, S. River Flow Modeling in Semi-Arid and Humid Regions Using an Integrated Method Based on LARS-WG and LSTM Models. Water Resour. Manag. 2023, 37, 3813–3831. [Google Scholar] [CrossRef] [Scilit]
  20. Li, W.; Liu, C.; Hu, C.; Niu, C.; Li, R.; Li, M.; Xu, Y.; Tian, L. Application of a Hybrid Algorithm of LSTM and Transformer Based on Random Search Optimization for Improving Rainfall-Runoff Simulation. Sci. Rep. 2024, 14, 15384. [Google Scholar] [CrossRef] [Scilit]
  21. Nearing, G.S.; Klotz, D.; Frame, J.M.; Gauch, M.; Gilon, O.; Kratzert, F.; Sampson, A.K.; Shalev, G.; Nevo, S. Technical Note: Data Assimilation and Autoregression for Using Near-Real-Time Streamflow Observations in Long Short-Term Memory Networks. Hydrol. Earth Syst. Sci. 2022, 26, 5493–5513. [Google Scholar] [CrossRef] [Scilit]
  22. Perazzolo, D.; Lazzaro, G.; Flume, A.; Fanton, P.; Grisan, E. Streamflow Forecasting: A Comparative Analysis of ARIMAX, Rolling Forecasting LSTM Neural Network and Physically Based Models in a Pristine Catchment. Water 2025, 17, 2341. [Google Scholar] [CrossRef] [Scilit]
  23. Zou, Y.; Wang, J.; Lei, P.; Li, Y. A Novel Multi-Step Ahead Forecasting Model for Flood Based on Time Residual LSTM. J. Hydrol. 2023, 620, 129521. [Google Scholar] [CrossRef] [Scilit]
  24. Zhang, L.; Qin, H.; Mao, J.; Cao, X.; Fu, G. High Temporal Resolution Urban Flood Prediction Using Attention-Based LSTM Models. J. Hydrol. 2023, 620, 129499. [Google Scholar] [CrossRef] [Scilit]
  25. Bian, L.; Qin, X.; Zhang, C.; Guo, P.; Wu, H. Application, Interpretability and Prediction of Machine Learning Method Combined with LSTM and LightGBM—A Case Study for Runoff Simulation in an Arid Area. J. Hydrol. 2023, 625, 130091. [Google Scholar] [CrossRef] [Scilit]
  26. Cui, Z.; Zhou, Y.; Guo, S.; Wang, J.; Xu, C.-Y. Effective Improvement of Multi-Step-Ahead Flood Forecasting Accuracy through Encoder-Decoder with an Exogenous Input Structure. J. Hydrol. 2022, 609, 127764. [Google Scholar] [CrossRef] [Scilit]
  27. Anh, D.T.; Thanh, D.V.; Le, H.M.; Sy, B.T.; Tanim, A.H.; Pham, Q.B.; Dang, T.D.; Mai, S.T.; Dang, N.M. Effect of Gradient Descent Optimizers and Dropout Technique on Deep Learning LSTM Performance in Rainfall-Runoff Modeling. Water Resour. Manag. 2022, 37, 639–657. [Google Scholar] [CrossRef] [Scilit]
  28. Xu, Y.; Hu, C.; Wu, Q.; Jian, S.; Li, Z.; Chen, Y.; Zhang, G.; Zhang, Z.; Wang, S. Research on Particle Swarm Optimization in LSTM Neural Networks for Rainfall-Runoff Simulation. J. Hydrol. 2022, 608, 127553. [Google Scholar] [CrossRef] [Scilit]
  29. Yao, Z.; Wang, Z.; Wang, D.; Wu, J.; Chen, L. An Ensemble CNN-LSTM and GRU Adaptive Weighting Model Based Improved Sparrow Search Algorithm for Predicting Runoff Using Historical Meteorological and Runoff Data as Input. J. Hydrol. 2023, 625, 129977. [Google Scholar] [CrossRef] [Scilit]
  30. Nourani, V.; Behfar, N. Multi-Station Runoff-Sediment Modeling Using Seasonal LSTM Models. J. Hydrol. 2021, 601, 126672. [Google Scholar] [CrossRef] [Scilit]
  31. Montavon, G.; Samek, W.; Müller, K.-R. Methods for Interpreting and Understanding Deep Neural Networks. Digit. Signal Process. 2018, 73, 1–15. [Google Scholar] [CrossRef] [Scilit]
  32. Hosseini, F.; Prieto, C.; Álvarez, C. An Explainable AI Approach for Interpreting Regionally Optimized Deep Neural Networks in Hydrological Prediction. J. Hydrol. 2025, 661, 133689. [Google Scholar] [CrossRef] [Scilit]
  33. Qiu, Y.; Shi, X.; He, X. Enhancing Flood Prediction in the Lower Mekong River Basin by a Scale-Independent Interpretable Deep Learning Model. Environ. Impact Assess. Rev. 2026, 116, 108130. [Google Scholar] [CrossRef] [Scilit]
  34. Chu, W.; Zhang, C.; Li, H.; Zhang, L.; Shen, D.; Li, R. SHAP-Powered Insights into Spatiotemporal Effects: Unlocking Explainable Bayesian-Neural-Network Urban Flood Forecasting. Int. J. Appl. Earth Obs. Geoinf. 2024, 131, 103972. [Google Scholar] [CrossRef] [Scilit]
  35. Mangalathu, S.; Hwang, S.-H.; Jeon, J.-S. Failure Mode and Effects Analysis of RC Members Based on Machine-Learning-Based SHapley Additive exPlanations (SHAP) Approach. Eng. Struct. 2020, 219, 110927. [Google Scholar] [CrossRef] [Scilit]
  36. Yu, Q.; Shi, C.; Bai, Y.; Zhang, J.; Lu, Z.; Xu, Y.; Li, W.; Liu, C.; Soomro, S.-E.-H.; Tian, L.; et al. Interpretable Baseflow Segmentation and Prediction Based on Numerical Experiments and Deep Learning. J. Environ. Manag. 2024, 360, 121089. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  37. Zakaria, M.N.A.; Ahmed, A.N.; Malek, M.A.; Birima, A.H.; Khan, M.M.H.; Sherif, M.; Elshafie, A. Exploring Machine Learning Algorithms for Accurate Water Level Forecasting in Muda River, Malaysia. Heliyon 2023, 9, e17689. [Google Scholar] [CrossRef] [Scilit]
  38. Xu, W.; Jiang, Y.; Zhang, X.; Li, Y.; Zhang, R.; Fu, G. Using Long Short-Term Memory Networks for River Flow Prediction. Hydrol. Res. 2020, 51, 1358–1376. [Google Scholar] [CrossRef] [Scilit]
  39. Tebong, N.K.; Simo, T.; Takougang, A.N.; Ntanguen, P.H. STL-Decomposition Ensemble Deep Learning Models for Daily Reservoir Inflow Forecast for Hydroelectricity Production. Heliyon 2023, 9, e16456. [Google Scholar] [CrossRef] [Scilit]
  40. Yang, H.; Li, W. Data Decomposition, Seasonal Adjustment Method and Machine Learning Combined for Runoff Prediction: A Case Study. Water Resour. Manag. 2022, 37, 557–581. [Google Scholar] [CrossRef] [Scilit]
  41. Tebong, N.K.; Simo, T.; Takougang, A.N.; Sandjon, A.T.; Herve, N.P. Application of Deep Learning Algorithms to Confluent Flow-Rate Forecast with Multivariate Decomposed Variables. J. Hydrol. Reg. Stud. 2023, 46, 101357. [Google Scholar] [CrossRef] [Scilit]
  42. Effrosynidis, D.; Arampatzis, A. An Evaluation of Feature Selection Methods for Environmental Data. Ecol. Inform. 2021, 61, 101224. [Google Scholar] [CrossRef] [Scilit]
  43. Wen, X.; Xie, Y.; Wu, L.; Jiang, L. Quantifying and Comparing the Effects of Key Risk Factors on Various Types of Roadway Segment Crashes with LightGBM and SHAP. Accid. Anal. Prev. 2021, 159, 106261. [Google Scholar] [CrossRef] [Scilit]
  44. Hu, C.; Ran, G.; Li, G.; Yu, Y.; Wu, Q.; Yan, D.; Jian, S. The Effects of Rainfall Characteristics and Land Use and Cover Change on Runoff in the Yellow River Basin, China. J. Hydrol. Hydromech. 2021, 69, 29–40. [Google Scholar] [CrossRef] [Scilit]
  45. Li, F.-F.; Cao, H.; Hao, C.-F.; Qiu, J. Daily Streamflow Forecasting Based on Flow Pattern Recognition. Water Resour. Manage. 2021, 35, 4601–4620. [Google Scholar] [CrossRef] [Scilit]
  46. Zhu, F.; Hou, T.; Zhu, O.; Sun, Y.; Liu, W.; Zhao, L.; Guo, X.; Li, M.; Zhong, P.-A. Multi-Step Ahead Probabilistic Runoff Forecasting with SHAP Interpretability: A GPR-Enhanced Deep Learning Ensemble Approach Integrating Teleconnection Factors. Environ. Model. Softw. 2025, 193, 106647. [Google Scholar] [CrossRef] [Scilit]
  47. Hong, Y.-H.; Xu, D.-M.; Wang, W.-C.; Zang, H.-F.; Hu, X.-X.; Zhao, Y.-W. An Efficient Parallel Runoff Forecasting Model for Capturing Global and Local Feature Information. Sci. Rep. 2025, 15, 12423. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  48. Bramm, A.M.; Matrenin, P.V.; Khalyasmaa, A.I. A Review of XAI Methods Applications in Forecasting Runoff and Water Level Hydrological Tasks. Mathematics 2025, 13, 2830. [Google Scholar] [CrossRef] [Scilit]
  49. Demiray, B.; Demir, I. Advancing Long-Horizon Hydrological Forecasting: A Lambda-Based Approach with Explainable AI for Generalized Streamflow Prediction. SSRN 2025. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.