The comparative study of machine learning agent models in flood forecasting for tidal river reaches

Ju Zhou, Liming Chen, Tengfei Hu, Hao Lü, Yong Shi, Liangang ChenScientific 2025

Abstract

The tidal reach of the Tanjiang River Basin, influenced by both runoff and tidal forces, exhibits complex and variable water levels and river flow conditions. Traditional hydrodynamic models struggle to meet the timeliness requirements for flood forecasting and early warning. Moreover, existing machine learning studies have limitations in integrating hydrological principles and explaining model applicability. This study focuses on this region, constructing a one-dimensional hydrodynamic model based on Saint-Venant's equations to simulate flood-tide evolution. Using the model's results, three typical machine learning surrogate models—Long Short-Term Memory (LSTM), Random Forest (RF), and Support Vector Machine (SVM)—are developed to predict the water level at the key control section of Changsha Station. The results show that the surrogate models offer advantages in both timeliness and convenience. Among them, the RF model has the highest prediction accuracy and can accurately identify key hydrological influencing factors. The LSTM model effectively captures the temporal dependencies of hydrological factors, considering the influence of historical moments on current water levels. However, the SVM model performs poorly under extreme flood-tide conditions. SHAP analysis reveals that the feature contribution values in both LSTM and RF models better align with the actual hydrology of the basin. Incorporating hydrological principles into the selection of input features helps improve model accuracy, while employing a Stacking model to combine the strengths of different models further enhances prediction precision. This research provides a scientific basis and effective reference for the application of machine learning models in flood forecasting for tidal reaches, with important implications for advancing smart water conservancy construction.

Introduction: The Challenge of Tidal Flood Forecasting

Forecasting floods in tidal river reaches—where upstream runoff meets downstream ocean tides—is a significant challenge for hydrologists. Unlike inland rivers, the water level in these regions is governed by a complex interaction between two forces, leading to backwater effects and non-linear flow patterns.

Traditionally, engineers rely on 1D hydrodynamic models based on Saint-Venant’s equations. While physically accurate, these models are computationally expensive and slow. In emergency scenarios, a model requiring several minutes to run may be inadequate for real-time early warning systems. Conversely, while standard Machine Learning (ML) models are fast, they often operate as "black boxes" that ignore hydrological principles, potentially leading to poor performance during extreme events like typhoons. This study bridges this gap by creating fast, interpretable, and physics-aligned ML surrogate models.

Study Area and Datasets

The research focused on the Tanjiang River Basin in China, a region characterized by its intricate network of rivers, reservoirs, and administrative boundaries.

Map of the Tanjiang River Basin study area.

To train the surrogate models, the researchers first built a high-fidelity 1D hydrodynamic model to simulate 125 different flood scenarios, generating 6,000 data points. This provided a robust "ground truth" dataset. The models were then validated against real-world extreme events, including the "Dragon Boat Water" floods of June 2018 and Typhoon Mangkhut in September 2018.

Methodology

The study employed a hybrid approach to integrate physical modeling with machine learning efficiency. The workflow involved data generation via hydrodynamic simulation, followed by the development and comparison of three ML architectures: LSTM, Random Forest, and SVM.

Flowchart of the research methodology.

Key methodological steps included:

  1. Surrogate Modeling: Developing LSTM for time-series dependencies, RF for robustness and feature identification, and SVM for baseline comparison.
  2. Interpretability: Utilizing SHAP (SHapley Additive exPlanations) and correlation analysis to ensure the models prioritized physically relevant factors, such as tide levels and upstream discharge.
  3. Ensemble Learning: Implementing a Stacking model with an XGBoost meta-learner to combine the predictive strengths of LSTM and RF.

Key Insights and Results

  • Timeliness: Once trained, the ML models generated a 72-hour forecast in less than 1 second, a massive improvement over the ~5 minutes required by traditional hydrodynamic models.
  • Physics-Informed Accuracy: The models performed best when downstream tide levels were introduced with a 3-hour lag, matching the physical time required for tidal waves to propagate upstream to the control station.
  • Model Performance: The Stacking ensemble model achieved the highest precision, with a Nash-Sutcliffe Efficiency (NSE) of 0.9672 and a Root Mean Square Error (RMSE) of 0.1787m. It specifically improved the accuracy of peak water level timing, which is critical for flood defense.
  • RF vs. LSTM vs. SVM: While LSTM captured temporal dependencies well, Random Forest proved more stable during extreme flood-tide superpositions. SVM performed adequately under normal conditions but failed significantly during extreme events.

Conclusion

This study demonstrates that machine learning surrogate models can effectively replace slow hydrodynamic simulations for near-instant flood forecasting in complex tidal reaches. By incorporating hydrological principles into feature selection and using ensemble methods, researchers can achieve high-precision results that are both fast and physically interpretable. Future work will focus on cross-basin generalization and the integration of these models into real-time "Digital Twin" platforms for smart water management.

Summary updated

BibTeX
@inproceedings{zhou2025comparative,
  author = {Ju Zhou and Liming Chen and Tengfei Hu and Hao Lü and Yong Shi and Liangang Chen},
  title = {{The comparative study of machine learning agent models in flood forecasting for tidal river reaches}},
  booktitle = {Scientific},
  year = {2025},
  doi = {10.1038/s41598-025-04633-w},
}
Figure