1. Introduction
Surface daily runoff is influenced by multiple factors, including precipitation, evapotranspiration, soil moisture, and topography, and exhibits highly complex and non-stationary characteristics. Accurate daily runoff prediction is of great significance for flood control and dispatching, water resources management, ecological conservation, and agricultural production. In recent years, traditional statistical and physically based hydrological models have been increasingly combined with data-driven approaches, and the rapid advancement of artificial intelligence (AI) techniques has further enhanced the accuracy and efficiency of hydrological forecasting [
1,
2]. However, operational daily forecasting still requires methods that are not only accurate but also robust and interpretable, so that model outputs can be trusted and acted upon in practice.
To address the limitations of single models in capturing the nonlinear and non-stationary characteristics of runoff series, signal decomposition techniques have been widely introduced as an effective preprocessing approach. Recent studies [
3,
4] have demonstrated that combining Complete Ensemble Empirical Mode Decomposition with Adaptive Noise (CEEMDAN) and improved optimization algorithms with deep learning architectures such as Temporal Convolutional Networks (TCN) and Transformer models can substantially enhance the accuracy of medium and long-term monthly runoff prediction, confirming the effectiveness of decomposition–optimization hybrid modeling strategies. Similarly, Wang et al. [
5] employed Symplectic Geometric Mode Decomposition (SGMD) and Sample Entropy (SE) to filter subseries, and incorporated the African Vulture Optimization Algorithm (AVOA) to optimize an LSTM network, further improving prediction performance and highlighting the advantages of multi-technology integration for modeling complex hydrological sequences. In another study, Xiong et al. [
6] proposed a secondary decomposition strategy (ELM + CEEMD + BiLSTM), which also verified that multi-level decomposition can effectively improve model performance. Moreover, Hu et al. [
7] developed a two-layer optimization framework that integrates data decomposition techniques with multi-model combination strategies, establishing a closed-loop feedback mechanism between the decomposition and prediction processes to achieve dynamic performance optimization and continuous improvement. These hybrid pipelines have been widely evaluated across different forecasting horizons, and next-day daily runoff forecasting places particular emphasis on decomposition stability and boundary artifacts because unstable partitioning can degrade component quality and propagate errors to downstream prediction. In particular, the quality of decomposition may deteriorate for weakly periodic daily runoff, and unstable band partitioning can propagate errors to downstream predictors. These issues highlight the need for a more stable, multi-scale decomposition method that is tailored to daily runoff. This study addresses this need by proposing an improved EWT (IEWT) with cumulative-energy-based band partitioning and smoother transition filters.
Research based on machine learning and deep learning [
8] has become increasingly abundant in recent years. Guo et al. [
9] developed a hybrid HBV-XGBoost model that integrates hydrological simulation and machine learning to analyze runoff variations in the Xiangxi River Basin under changing climatic conditions. Yao et al. [
10] incorporated the physical processes of the Xinnanjiang model hydrological model into deep learning models, including Gated Recurrent Unit (GRU) and its variants, and applied the integrated gradients method for interpretability analysis, achieving a significant improvement in daily runoff prediction accuracy. Li [
11] proposed the SL-CNN-LSTM model, which integrates self-attention and local attention mechanisms into a CNN-LSTM framework for water temperature prediction Similarly, Tian et al. [
12] and Wei et al. [
13] developed decomposition–optimization hybrid frameworks by coupling mode decomposition methods (e.g., OVMD/VMD) with metaheuristic optimization algorithms and deep learning predictors (e.g., TCN-GRU or LSTM), achieving improved runoff forecasting accuracy across case studies. Liu et al. [
14] introduced a GCNN-LSTM model combined with an IoT-based data acquisition system, which significantly enhanced river water level and runoff prediction performance. You et al. [
15] developed a hybrid model integrating CNN, BiGRU, attention mechanisms, and optimization algorithms, designed for data-sparse regions, thereby improving model generalization and predictive stability. Qiao et al. [
16] proposed a metaheuristic evolutionary deep learning framework, constructing a TCN-Improved Aquila Optimizer (IAO)-Random Forest (RF) hybrid model for rainfall-run off simulation and multi-step runoff prediction. Sun et al. [
17] developed a short-term hybrid runoff prediction model combining the Long Short-Term Memory (LSTM) network, Improved Harris Hawks Optimization (IHHO) algorithm, and Optimal Variational Mode Decomposition (OVMD), which demonstrated high accuracy and stability in multi-step forecasting. Ma et al. [
18] proposed an innovative runoff prediction framework integrating segmented decomposition sampling and multi-input neural networks. This framework, centered on Seasonal-Trend Decomposition using Loess (STL) and Convolutional Long Short-Term Memory (CNN-LSTM), performs temporal segmented decomposition to effectively avoid future information leakage while improving computational efficiency and predictive accuracy.
Recent advances in time-series forecasting have been driven by modern Transformer-based architectures, and these models are being increasingly explored for hydrological runoff/streamflow prediction. For instance, Transformer variants have been evaluated or adapted for streamflow/runoff forecasting using architectures such as Informer and Temporal Fusion Transformers (TFT). Hybrid and ensemble strategies have also been developed for hydrological time series, demonstrating the potential of these models to improve the accuracy and interpretability of water resources forecasting tasks [
19,
20,
21,
22]. Meanwhile, convolutional architectures remain competitive in hydrological forecasting, with TCN-based hybrids being used to balance short-term responsiveness with longer-term dependence in the context of complex hydrological dynamics [
23]. Building on these developments, this study adopts ModernTCN: a recently proposed, modernized, pure-convolution backbone that enhances the effective receptive field and achieves strong performance across mainstream time-series tasks. This provides an efficient, robust alternative to Transformer-based forecasters for daily runoff prediction [
24].
In addition, feature selection and model parameter optimization are equally critical for improving predictive performance. Tian et al. [
25] integrated the Fisher Score and the Entropy Weight-TOPSIS method to identify key influencing factors, and further applied hyperparameter tuning, which significantly improved the short-term reservoir runoff forecasting accuracy. Similarly, Chen et al. [
26] and Li et al. [
27] employed Principal Component Analysis (PCA) for dimensionality reduction, in combination with Genetic Algorithm (GA) optimization of Backpropagation Neural Network (BP) models—both with and without wavelet analysis—to enhance annual runoff prediction precision. These studies collectively demonstrate that data preprocessing and algorithmic optimization play vital roles in boosting model performance and ensuring robust predictive capability. However, many conventional selection strategies (e.g., Fisher score, PCA) provide limited model-specific interpretability for multi-station inputs and do not explicitly quantify each upstream station’s contribution to the forecast. Moreover, hyperparameter tuning is often performed in a static or one-off manner, which may lead to unstable performance across changing hydrological regimes. These limitations motivate the use of SHAP-based attribution for transparent input screening and a dynamic population-based optimization strategy (IPBT) for robust ModernTCN configuration in this study.
Despite these advances, there are still several gaps in the forecasting of daily runoff in the context of operational water resources. Firstly, many decomposition–optimization hybrid studies focus on medium- and long-term (e.g., monthly) runoff prediction, whereas daily forecasting is required for flood dispatching, water regulation, and navigation management. In these areas, errors relating to rapid rises and peak flows can lead to significant risks in decision-making. Secondly, multi-station information is often incorporated in an ad hoc manner, with the dependency between upstream and downstream stations rarely being used transparently to eliminate redundant stations and features, which can introduce noise and reduce robustness. Thirdly, deep models used for daily runoff forecasting usually rely on manual or single-shot hyperparameter tuning, making it difficult to achieve consistent performance across different hydrological regimes. Finally, conventional spectrum-partitioning strategies in EWT can be unstable for daily runoff series with weak periodicity, reducing the quality of decomposition and subsequent predictions.
Inspired by advances in hybrid hydrological modeling and interpretable feature optimization, this study proposes an intelligent daily runoff prediction framework that integrates the Improved Empirical Wavelet Transform (IEWT), hydrological correlation analysis, SHAP-based feature selection, the Improved Population-Based Training (IPBT) algorithm, and the Modern Temporal Convolutional Network (ModernTCN) model. The main contributions of this work are summarized as follows:
- (1)
Problem-oriented, multi-scale stabilization of daily runoff: We propose an improved EWT (IEWT) with a band partition based on cumulative energy and smoother filters. This improves the reliability of short-term forecasts used in operational water resources decision-making by obtaining stable components from highly non-stationary daily runoff series.
- (2)
Interpretable upstream–downstream input selection: We integrate upstream–downstream hydrological dependence with SHAP-based interpretability to identify and retain the most influential upstream stations. This reduces redundant inputs and enhances the robustness and transparency of practical hydrological forecasting.
- (3)
Robust automation of model configuration: We have developed an improved population-based training (IPBT) strategy with a decaying exploration factor, which dynamically optimizes the hyperparameters of the ModernTCN model. This yields stable performance under complex hydrological regimes without the need for heavy manual tuning.
- (4)
Operationally relevant case study: Using the Hankou key control station in the Yangtze River Basin, we demonstrate that the proposed framework can support flood forecasting and water regulation tasks by providing an accurate prediction of the next day’s runoff.
The aim of this study is to improve the robustness and interpretability of next-day daily runoff forecasting for operational decision support. To this end, we have developed an integrated IPBT-IEWT-SHAP-ModernTCN framework that stabilizes daily runoff via IEWT decomposition, identifies influential upstream inputs using SHAP-based attribution, and enhances model configuration through IPBT-driven hyperparameter optimization. The Hankou case study shows that the proposed approach achieves substantial accuracy improvements over strong baselines and provides transparent input importance to support practical water resources applications.
2. Methods
2.1. Empirical Wavelet Transform Decomposition
Empirical Wavelet Transform (EWT) is an adaptive decomposition method for non-stationary signals. It partitions the signal’s Fourier spectrum and constructs an empirical wavelet filter bank for multi-scale decomposition [
28]. EWT adaptively partitions the Fourier spectrum of the analyzed signal and constructs corresponding empirical wavelet functions to perform multi-scale decomposition. The general procedure of EWT consists of the following steps:
Step 1: Fourier Transform of the Daily Runoff Series :
EWT starts by analyzing the runoff signal in the frequency domain. For completeness, the continuous-time Fourier transform of
is written as Equation (1):
where
denotes the Fourier spectrum at angular frequency
.
Since daily runoff observations are finite-length, real-valued discrete-time sequences, the spectrum is computed in practice using the discrete Fourier transform (DFT), as given in Equation (2):
where
denotes the daily runoff observation at the
-th time sample,
is the complex DFT coefficient at the
-th frequency bin,
is the total number of samples in the runoff series,
is the imaginary unit, and
.
Step 2: Construction of Frequency Segmentation: The amplitude spectrum is plotted as the frequency spectrum. Using a smoothing or envelope method, frequency partition points are adaptively identified. The entire spectrum domain is divided into N sub-bands, where each frequency band is defined as: .
Step 3: Construction of the Empirical Wavelet Filter Bank, a smooth transition function
introduced to design both low-pass and band-pass filters in the frequency domain. It is defined as Equation (3):
where
is a normalized argument used to control the smooth connection between adjacent passbands;
and
enforce flat responses outside the transition interval, and the sinusoidal segment provides a continuous transition for
.
Then, using the band boundaries
obtained in Step 2, the
-th empirical wavelet filter
is constructed as Equation (4):
where
denotes the angular frequency,
are the frequency-band boundaries, and
controls the bandwidth of the transition region around each boundary (i.e., it determines how gradually the filter response changes near
and
). The “otherwise” case ensures that
has compact support outside the designated band and its transition neighborhoods.
Step 4: Frequency-Domain Filtering. The filtered representation of each sub-band signal is obtained by applying the empirical wavelet filters to the Fourier-transformed signal, is written as Equation (5):
where
is the Fourier spectrum of the original runoff series
, and
denotes the spectrum of the
-th filtered sub-band.
Step 5: Inverse Fourier Transform for IMF Reconstruction: Each Intrinsic Mode Function (IMF) is recovered through the inverse Fourier transform as follows:
where
, and
is the reconstructed
-th IMF corresponding to the
-th frequency band.
Final Signal Reconstruction: The original runoff signal can be reconstructed by summing all decomposed IMFs:
Through the above steps, the daily runoff series of the Hankou Hydrological Station is successfully decomposed into N IMFs, with each IMF representing the flow variation characteristics at a distinct frequency scale.
2.2. Improved Empirical Wavelet Transform
The standard Empirical Wavelet Transform (EWT) may encounter several issues when processing hydrological signals characterized by weak periodicity or ambiguous seasonal patterns: (1) Unstable spectral extrema, which lead to inaccurate band segmentation; (2) Overly sharp filter transitions, which may cause frequency leakage between adjacent sub-bands. To address these problems, two improvements are proposed in this study for the decomposition of daily runoff data.
Improvement 1: Frequency Band Division Based on Cumulative Energy:
Given the Fourier spectrum
, the power spectral density is defined as shown in Equation (8):
where
denotes the spectral energy distribution at angular frequency
.
The cumulative energy function is then computed according to Equation (9):
where
represents the accumulated spectral energy from 0 to
, and
is the integration variable.
To obtain stable frequency boundaries, the total energy
is evenly divided into
segments as specified in Equation (10):
where
are the resulting boundary frequencies, and
is the number of sub-bands. This cumulative-energy-based segmentation reduces sensitivity to spurious local extrema in the spectrum, making it more suitable for daily runoff sequences with weak periodicity and strong non-stationarity.
This approach enables stable determination of frequency boundaries , making it more suitable for runoff sequences with weak periodicity and poor stationarity.
Improvement 2: High-Order Smooth Filter Design:
To smooth the filter response across the overlap region at band boundaries and reduce boundary artifacts in the decomposed components, a hyperbolic tangent function is introduced to replace the original smooth transition function, as defined in Equation (11):
where
is the normalized transition argument and
controls the smoothness (i.e., the steepness) of the transition.
With the above modification, the improved empirical wavelet filters operate similarly to those in standard EWT. The frequency-domain filtering process is performed as shown in Equation (12):
where
is the Fourier spectrum of the original signal,
denotes the improved empirical wavelet filter for the
-th band, and
is the filtered spectrum associated with the
-th component.
Each component is recovered through the inverse Fourier transform given in Equation (13):
where
denotes the reconstructed
-th component in the time domain.
Finally, the original signal is reconstructed by summing all components as expressed in Equation (14):
where
is the original daily runoff signal and
is the number of decomposed components.
Through these improvements, the proposed Improved EWT (IEWT) achieves smoother filter transitions and more stable frequency segmentation, making it more effective for analyzing the non-stationary and weakly periodic characteristics of daily runoff series.
2.3. Population-Based Training (PBT) Algorithm
The Population-Based Training (PBT) algorithm is an evolutionary optimization strategy that integrates hyperparameter optimization with model weight training. It was first proposed by DeepMind and later implemented on the Neural Network Intelligence (NNI) platform [
29]. In this framework, each individual model in the population evolves dynamically through evaluation, replication, and perturbation to maximize final model performance. Let the population size be
, For the
individual, the hyperparameter vector is defined as shown in Equation (15):
Each dimension corresponds to a specific hyperparameter as follows: -batch_size, -train_epochs, -dropout, -d_ff, -d_model, -learning_rate. These hyperparameters are dynamically evaluated, replicated, and perturbed throughout the PBT process to achieve continuous optimization.
Step 1: Population Initialization
At the beginning of PBT, a population of
individuals is initialized. The initial population is constructed as specified in Equation (16):
where
represents the initial model weights, and is randomly sampled from a predefined hyperparameter space
.
Step 2: Model Training Process
Each individual model is trained independently for a fixed training interval (or a fixed number of epochs), denoted by
. The weight update over one training cycle follows Equation (17):
where
represents the training function controlled by hyperparameters
, and
denotes the duration of each training cycle or epoch count.
Step 3: Performance Evaluation: After each training cycle, the performance of each individual is evaluated on a validation set using a fitness function, as given in Equation (18):
where
represents the fitness value of the
individual, with smaller values indicating better performance.
Step 4: Selection and Evolution Mechanism (Core Process)
If the performance of an individual is relatively poor (e.g., ranked in the bottom 20% of the population), an exploit-explore strategy is triggered to enhance evolutionary optimization:
(a) Exploit—Replication of Elite Individuals: An elite individual
is randomly selected from the top 20% of the population, and its parameters and hyperparameters are copied to the underperforming individual
, as shown in Equation (19):
where
and
denote the model weights of individuals
and
at cycle
, respectively, and
and
are their corresponding hyperparameter vectors. This replication step allows poorly performing individuals to inherit strong configurations without restarting training.
(b) Explore—Perturbation of Hyperparameters: To further explore the search space and avoid premature convergence, small random perturbations are introduced to the copied hyperparameters. The perturbation rule is defined in Equation (20):
where
denotes the perturbation coefficient for the
hyperparameter, and
controls the magnitude of the perturbation.
The core mechanism of the PBT algorithm combines local exploitation with global exploration, enabling continuous co-evolution of model weights and hyperparameters throughout dynamic training. This strategy allows the model to maintain both optimization efficiency and search diversity, resulting in superior convergence stability and performance robustness.
2.4. Improved Algorithm Based on Population-Based Training (PBT)
In the original PBT framework, uniform perturbations are applied to all hyperparameters during the exploration phase. However, this may lead to unstable convergence or cause the algorithm to jump out of the optimal region due to excessive randomness in later training stages. To address this issue, a dynamic exploration factor is introduced. This factor gradually reduces the perturbation amplitude as the training progresses, preventing excessive perturbation in the later stages of model optimization.
Dynamic Exploration Factor: Let the total number of training steps be
, the current training step be
, the initial perturbation amplitude be
, and the decay-rate coefficient be
. Then, the dynamic exploration factor
is defined as follows:
where
denotes the exploration intensity at step
,
is the initial exploration magnitude,
is the maximum number of training steps (or total training cycles), and
controls the decay speed of exploration. This schedule enables broader exploration in early training stages and increasingly refined search near convergence.
This adaptive design allows the algorithm to gradually decrease the exploration intensity as training approaches convergence, thereby achieving a balance between exploration and exploitation.
Perturbation Strategy: During the Explore phase, for the
-th hyperparameter copied from the elite individual j, the perturbation is applied as follows:
where
denotes the random perturbation coefficient and
represents the
-th hyperparameter of the
i-th individual.
Through this dynamic perturbation mechanism, the improved PBT algorithm (IPBT) enables adaptive exploration control—promoting broader search in early stages and refined optimization later. Consequently, IPBT effectively enhances training stability, convergence efficiency, and the generalization ability of the optimized model.
2.5. SHAP-Based Feature Selection
In the context of daily runoff prediction, the model typically involves multiple hydrological stations and a variety of input features such as water level and runoff observations. However, the excessive number of features often leads to increased model complexity, amplified noise interference, and reduced interpretability. To address these issues, the SHAP (SHapley Additive exPlanations) method is introduced to quantify the contribution of each input feature to the model’s predictive output, thereby identifying the most influential features that govern runoff dynamics.
Definition and Calculation of SHAP Values: The SHAP value originates from the Shapley value concept in cooperative game theory. It measures the marginal contribution of each feature to the overall model output, satisfying key mathematical properties such as fairness, rationality, and additivity [
30].
Let the input feature vector be defined as: where M denotes the total number of input features, and the prediction model is represented as , The model output is denoted by . Let .
The mathematical definition of the SHAP value is given as follows. Let
represent a subset of features, and for the
feature
, its SHAP value is mathematically defined as:
where
is the total number of input features,
denotes the SHAP value of the
-th.
and
represent the model outputs based on subsets
and
, respectively.
Step 1: Construction of the Daily Runoff Prediction Model Using the TCN: To establish a complete mapping relationship between hydrological features and runoff sequences (e.g., at the Hankou Station), the Temporal Convolutional Network (TCN) is first employed for daily runoff prediction. This model provides a foundational framework for subsequent SHAP-based interpretability analysis.
Input Definition: Let the model input be a multivariate time-series feature matrix with a time window length of
and feature dimension
. The input matrix
is defined as:
where
is the value of the
feature at time
.
Model Definition: The Temporal Convolutional Network (TCN) [
31] maps the multivariate input sequence to a single-step prediction target, the runoff on day
:
where
is the predicted daily runoff,
denotes the set of model parameters (including convolutional weights, biases, and dropout rates), and
represents the TCN model, which consists of stacked dilated causal 1D convolutional layers.
The model is trained by minimizing the mean squared error (MSE) loss function:
where
represents the true runoff value on day
,
is the total number of samples generated by the sliding window.
Model Optimization: The optimal model parameters are obtained through gradient-based optimization:
After training convergence, the final model , is retained for SHAP-based feature attribution analysis, which evaluates the contribution of each input feature to the predicted runoff (i.e., the daily discharge at Hankou Station).
Step 2: Calculation of SHAP values for each sample, For each sample , the SHAP value of its feature is computed as: .
After computing SHAP values for all samples and all features, they are organized into a SHAP value matrix as shown in Equation (28):
where
denotes the total number of samples, and
represents the number of input features, and
is the SHAP attribution assigned to feature
for sample
.
Step 3: Aggregation of SHAP Importance Scores
To evaluate the overall importance of each feature across all samples, the SHAP values are aggregated as follows:
where
denotes the global importance score of feature
, and the absolute value
prevents positive and negative contributions from canceling out.
Based on these aggregated scores, the feature-importance vector is constructed as shown in Equation (30):
where
summarizes the global SHAP importance of all input features.
Step 4: Feature Selection and Reconstruction: Based on the aggregated importance scores, the top
most influential features are selected according to either a predefined threshold or by ranking the highest SHAP values. The selected feature index set is denoted as in Equation (31):
where
contains the indices of the
features with the largest values of
, and
eturns the corresponding feature indices.
Accordingly, the final feature set used for model construction is represented as in Equation (32):
where
denotes the reduced input feature set consisting only of the selected predictors.
This feature selection strategy ensures that only the most informative and relevant predictors are retained, effectively reducing data redundancy while maintaining strong explanatory power and model interpretability.
2.6. ModernTCN Time-Series Model
The ModernTCN model is a modernized fully convolutional architecture specifically designed for time-series analysis. It enhances the receptive field and computational efficiency of convolutional operations by introducing large convolution kernels and a decoupled design of depthwise-separable convolutions.
Figure 1 and
Figure 2 illustrate the overall framework of the ModernTCN model and the corresponding runoff-forecasting process [
24]. In this study, the model input consists of hydrological and runoff data from upstream stations over the past 48 days, with 9 variables in total. The model output is the predicted daily runoff for the next day.
To preserve the dimensional independence of variables and prevent information leakage, each hydrological variable is first independently divided into local patches and embedded separately. Input Definition:
Step 1: Input Definition and Embedding. The multivariate input sequence is defined as shown in Equation (33):
where
denotes the number of input variables (features) and
denotes the input sequence length (days).
Padding: To ensure a consistent effective input length for convolutional patch extraction, replication padding is applied at the sequence ends. The padded length is determined according to Equation (34):
where
is the convolution kernel size and
is the stride used in the embedding stage.
Accordingly, the padded input is defined as shown in Equation (35):
where
denotes replication padding applied along the temporal dimension.
1-D Convolutional Embedding: A 1-D convolutional embedding layer is then applied to extract temporal features for each hydrological variable independently, as defined in Equation (36):
where D is the output channel dimension. Each variable is processed separately to maintain the independence of feature representations across variables.
Step 2: ModernTCN Backbone: The ModernTCN backbone serves as the core modeling module, which separately constructs three functional components to capture distinct dependencies: (1) temporal dependence modeling via Depthwise Convolution (DWConv), (2) intra-variable feature interaction via ConvFFN1, and (3) inter-variable feature interaction via ConvFFN2.
(1) Temporal Dependence Modeling (DWConv)
Temporal dependencies are captured for each variable through depthwise convolution, as shown in Equation (37):
where
represents variable-wise and feature-wise independent convolution operations. The kernel size is expanded to enlarge the Effective Receptive Field (ERF), thereby enhancing the model’s ability to learn long-term temporal relationships.
(2) Intra-Variable Feature Interaction (ConvFFN1): Within each variable, feature interactions (e.g., between different hydrological indicators) are captured by the first convolutional feed-forward network:
where
performs grouped convolution with
, ensuring that each variable is processed independently while enhancing intra-variable representation.
(3) Inter-Variable Interaction (ConvFFN2): Within each variable, feature interactions are captured by the first convolutional feed-forward module, as defined in Equation (38):
where
rearranges tensor dimensions to enable cross-variable interaction, and
typically uses grouped convolution with
, which supports interaction across variables while preventing cross-dimensional interference.
(4) Residual Connection and Block Output
To improve training stability and gradient propagation, a residual connection is introduced between the input embedding and the block output, as defined in Equation (40):
where
denotes the output of the backbone block.
Multiple backbone blocks (K = 2 ∼ 4) can be stacked to further strengthen hierarchical feature representation and temporal learning capacity.
Step 3: Flatten + Linear Head (Prediction Output)
The temporal-feature representations extracted by the backbone are flattened into a one-dimensional representation for each variable, as shown in Equation (41):
where
represents the output of the final backbone block, and
denotes the hidden representation or feature vector of each hydrological variable.
Finally, a linear projection is applied to map the hidden representation to the target prediction horizon, as defined in Equation (42):
where
is the predicted runoff or model output, and
denotes a fully connected layer (or linear transformation function) that projects the input features to the output space.
Figure 1 illustrates the architecture of the ModernTCN backbone module. The block consists of: (i) depthwise convolution for modeling temporal dependence and enlarging the receptive field effectively; and (ii) convolutional feed-forward modules for intra-variable and inter-variable interactions. This figure illustrates how ModernTCN captures multi-scale temporal patterns and cross-station dependencies in a purely convolutional and computationally efficient manner, thereby justifying its use as the forecasting backbone.
M, N, and D denote the variable dimension, temporal dimension, and feature dimension, respectively. DWConv and PWConv represent Depth-wise and Point-wise convolution operations, respectively. Groups indicate the number of grouped convolutions applied within each convolutional layer. BN and GeLU correspond to Batch Normalization and the Gaussian Error Linear Unit activation function, respectively.
Figure 2 illustrates the end-to-end workflow of the ModernTCN-based forecasting pipeline. This figure illustrates the entire processing chain, from normalization and patch embedding to the ModernTCN backbone and prediction head (with RevIN for denormalisation). It clarifies how the multivariate, multi-station look-back sequence is mapped onto next-day runoff prediction, thereby improving the reproducibility and interpretability of the modeling procedure.
The forecasting process of the ModernTCN model consists of several key stages. The input hydrological features are first normalized and divided into patches through the Patchify Embedding module, which preserves spatial-temporal resolution and variable independence. Subsequently, the Backbone network (ModernTCN core) captures multi-scale temporal dependencies and inter-variable relationships. The extracted features are then flattened and passed through the prediction head, producing the final runoff forecasts. A Reversible Instance Normalization (RevIN) layer is applied after the output to reverse normalization and restore the predicted values to their original scale.
2.7. Explicit Input-Output Mapping to Daily Runoff Variables
To explicitly link the daily runoff variables to the resulting single-step prediction, we define the station-level input construction and the forecasting objective adopted in this study. Let
denote the observed daily runoff at the target station (Hankou Hydrological Station) on day
. Candidate predictors are collected from nine upstream stations. Based on the global importance scores computed by Shapley Additive Explanations (
Section 2.5), the five most influential upstream stations are selected and used as model inputs.
Let
denote the index set of the selected five stations (ranked by Shapley Additive Explanations importance among the nine candidate stations). The daily predictor vector at day
is constructed as shown in Equation (43):
where
denotes the observed daily runoff at the
-th selected upstream station
on day
, and the dimension 5 indicates that only the five stations with the highest Shapley Additive Explanations importance are retained as predictors.
Using a sliding window of length 48 days, the input to the Modern Temporal Convolutional Network at time
is constructed as shown in Equation (44):
where each row of
corresponds to one selected upstream station and each column corresponds to a day within the 48-day look-back window. In this study, the model input
defined in Equation (33) corresponds to the windowed representation
defined here, i.e.,
.
The forecasting objective is single-step prediction of the next-day runoff at the Hankou Hydrological Station. The overall mapping implemented by the Modern Temporal Convolutional Network is summarized in Equation (45):
where
denotes the nonlinear mapping learned by the network,
denotes all trainable parameters, and
is the predicted daily runoff at the Hankou Hydrological Station for day
. This formulation makes the relationship between multi-station daily runoff predictors (five selected upstream stations over the past 48 days) and the resulting single-step runoff prediction explicit and reproducible.
4. Case Study
4.1. Construction of the Runoff Prediction Model
The kernel size, channel dimension, activation function, and other parameters of the Improved Temporal Convolutional Network (ModernTCN) directly determine the model’s topological structure and learning capacity. Different combinations of these parameters exert a significant influence on model performance. However, when dealing with highly volatile and strongly nonlinear runoff series, parameter settings based solely on empirical experience often fail to achieve a global optimum, resulting in unstable prediction performance. To address this issue, this study introduces an Improved Population-Based Training (IPBT) algorithm to jointly optimize key hyperparameters—including the learning rate, feature dimension, feed-forward dimension, dropout rate, and batch size—thereby enhancing the model’s adaptability and generalization capability under complex data conditions. The overall construction process of the improved runoff prediction model is illustrated as follows:
- (1)
Dataset Partitioning and Input Construction
The target daily runoff series is decomposed into multiple multi-scale subcomponents using the Improved Empirical Wavelet Transform (IEWT), and all five subcomponents are retained as part of the model input. In addition, the SHAP (SHapley Additive exPlanations) method is employed to identify high-contribution features from the multi-source watershed characteristics, forming the final input feature set for model training.
The first 70% of the total samples are used as the training set, 10% as the validation set, and the remaining 20% as the test set. The model input consists of the multidimensional feature data from the preceding 48 consecutive days, while the output corresponds to the runoff value of the target station on the 49th day. Accordingly, the supervised learning samples are constructed as follows: .
Here, denotes the feature vector on day , including the five decomposed subcomponents and the SHAP-selected features, while represents the target runoff value on day .
- (2)
IPBT Parameter Initialization and Optimization Space Definition
The population size of the Improved Population-Based Training (IPBT) algorithm is set to 30, and the number of iterations is set to 20. The hyperparameter search space is defined as follows: learning rate ; feature dimension ; feed-forward dimension ; dropout rate ; batch size ; and the number of training .
- (3)
Model Training and Iterative Optimization
During the training process, the Improved Population-Based Training (IPBT) algorithm performs periodic evaluations and parameter retraining to dynamically explore more optimal hyperparameter combinations. Through the population-based evolutionary mechanism, high-performing model individuals are preserved, enabling the model configuration to evolve progressively toward the global optimum. The fitness function comprehensively considers multiple evaluation metrics on the validation set, including the Nash–Sutcliffe Efficiency (NSE), Root Mean Square Error (RMSE), and Mean Absolute Error (MAE).
- (4)
Optimal Model Selection and Prediction Phase
After the IPBT algorithm completes all iterations, the model individual with the highest fitness score is selected to construct the final ModernTCN model. The complete training set is then used to retrain the model, and daily runoff prediction is performed on the test set to generate the sequence of predicted daily runoff values.
- (5)
Model Performance Evaluation and Comparison
To verify the effectiveness of the proposed IPBT-IEWT-SHAP-ModernTCN model, several comparative models are established, including: LSTM [
32], iTransformer [
33], TCN [
34], ModernTCN, SHAP-ModernTCN, IEWT-SHAP-ModernTCN. Model performance is comprehensively evaluated in terms of prediction accuracy and stability using multiple statistical indicators, including the Nash–Sutcliffe Efficiency (NSE), Root Mean Square Error (RMSE), Mean Absolute Error (MAE), Symmetric Mean Absolute Percentage Error (sMAPE), Pearson Correlation Coefficient (R), and Coefficient of Determination (R
2) [
35].
4.2. Data Processing
Daily runoff data from 2010 to 2022 were collected from multiple hydrological stations, including Ankang, Huangjiagang, and Huangzhuang along the Hanjiang; Shimen along the Lishui; Hengyang and Xiangtan along the Xiangjiang; Pushi and Taoyuan along the Yuanjiang; as well as the Yichang and Hankou Hydrological Stations. The daily runoff series of the Hankou Station was decomposed using the IEWT method to stabilize the non-stationary signal. The runoff sequence was thus decomposed into five relatively stationary intrinsic mode components, arranged from low to high frequency, as illustrated in
Figure 5, this choice is case-dependent and can be adjusted for other datasets depending on the spectral characteristics and the decomposition configuration. The original runoff is decomposed into five intrinsic mode components ordered from low to high frequency. This figure demonstrates how IEWT stabilizes the highly non-stationary daily series into multi-scale components that are later used to enhance prediction under rapid rises and peak-flow fluctuations.
Figure 6 presents the feature importance scatter plot generated using the SHAP (SHapley Additive exPlanations) method, illustrating the contribution of each hydrological station to the model’s prediction. In the figure, the horizontal axis represents the SHAP value, which indicates the magnitude and direction of each station’s influence on the model output—larger absolute SHAP values correspond to stronger contributions, with red points indicating positive influence and blue points representing negative influence. The vertical axis lists the eight key hydrological stations. As shown in the figure, Yichang, Taoyuan, Shimen, Ankang, and Huangzhuang exhibit relatively high SHAP values across the overall distribution, suggesting that these stations play a critical role in the runoff prediction process and serve as important features influencing the model output. Therefore, these stations were selected as the final input features. In contrast, other stations such as Xiangtan and Huangjiagang show more concentrated SHAP value distributions with weaker impacts, and thus were excluded from the model input.
6. Conclusions and Future Work
To improve the accuracy and reliability of daily runoff prediction, this study developed an integrated forecasting framework that combines the Improved Empirical Wavelet Transform (IEWT), SHAP-based interpretable feature selection, the Improved Population-Based Training (IPBT) algorithm, and the Modern Temporal Convolutional Network (ModernTCN), namely the IPBT-IEWT-SHAP-ModernTCN model. An empirical case study was conducted using data from the Hankou Hydrological Station, and comparative experiments were performed against benchmark models including LSTM, iTransformer, TCN, and ModernTCN. The main conclusions are summarized as follows:
- (1)
Multi-scale decomposition improves the predictability of non-stationary daily runoff. IEWT decomposes the raw runoff series into multi-scale components, which helps mitigate non-stationarity and supports more stable downstream learning, thereby improving overall forecasting reliability.
- (2)
Interpretable input selection improves robustness. SHAP-based attribution provides transparent station/feature importance, enabling the removal of redundant inputs and improving robustness, while offering interpretable insights into upstream–downstream influences in the forecasting process.
- (3)
Automated hyperparameter optimization improves model stability and accuracy. IPBT reduces reliance on manual tuning by enabling a dynamic global search within the ModernTCN configuration space. Under the Hankou case study and the experimental settings of this paper, the final model achieved RMSE = 342.14, MAE = 251.01, and NSE = 0.9992, demonstrating strong performance for next-day daily runoff prediction.
- (4)
The proposed framework is applicable to next-day runoff forecasting for operational water-resources management at key control stations (e.g., Hankou). By incorporating stable multi-scale decomposition and interpretable input selection, the framework improves forecasting reliability. In the Hankou case study, it reduces RMSE and MAE by approximately 80.47% and 81.79%, respectively, compared with the baseline ModernTCN, indicating more reliable forecasts for this application.
Future work: Future studies will extend the proposed framework to additional basins and hydrological regimes to examine transferability and generalization.
Additionally, we intend to incorporate extra hydro-meteorological and operational drivers (e.g., precipitation, soil moisture and reservoir operation information) when available and further evaluate performance during extreme events and peak-flow conditions.
Finally, we will explore uncertainty quantification and broader benchmarking against alternative decomposition strategies under a unified experimental protocol to strengthen operational applicability.