Topology enables learning-based hydrodynamic prediction of the global river system
Authors: Hancheng Ren, Gang Zhao, Shuo Wang, Louise Slater, Dai Yamazaki, Shu Liu, Jingfang Fan, Xueying Li, Shibo Cui, Ziming Yu, Shengyu Kang, Depeng Zuo, Dingzhi Peng, Zongxue Xu, Bo Pang
Organizations: College of Water Sciences, Beijing Normal University, Beijing, China. · School of Geography and the Environment, University of Oxford, Oxford, UK. · Department of Transdisciplinary Science and Engineering, Institute of Science Tokyo, Tokyo, Japan. · School of Systems Science, Beijing Normal University, Beijing, China. · Institute of Industrial Science, University of Tokyo, Tokyo, Japan. · China Institute of Water Resources and Hydropower Research, Beijing, China. · State Key Laboratory of Hydro-Science and Engineering, Department of Hydraulic Engineering, Tsinghua University, Beijing, China. · School of Artificial Intelligence, Beijing Normal University, Beijing, China. · School of Water Resources and Hydropower Engineering, Wuhan University, Wuhan, China.
Accurate river prediction is essential for water, food and energy security, yet remains challenging across entire river networks. Machine learning has transformed Earth-system modeling, but a system-level advance for river prediction lags for lack of reliable data. Exploiting the connectivity and dissipative dynamics of rivers, we introduce GraphRiverCast, a neural model for global river systems that predicts daily multivariate hydrodynamics at every reach of a 0.25°network with only sparse gauges and no initial state. It shows no intrinsic skill decay with lead time, outperforms leading global river models by 25% in accuracy, and robustly generalizes to ungauged reaches and finer resolutions. GraphRiverCast lifts learning-based river prediction from isolated basins to a unified global system and offers insights for machine learning in data-scarce Earth systems.
Figures & tables
Figure 1: Design principle, architecture and training strategy of GraphRiverCast. ( A ) The global river network as a unified system. Each reach carries geomorphic features, runoff forcing, topology and dynamic states, namely discharge ( Q ), water depth ( H ) and storage ( S ). At ungauged reaches (green), no historical states exist, so the standard autoregressive paradigm cannot be initialized. ( B ) Dynamical rationale and architecture. Left, the influence of the initial condition x0 decays as trajectories converge toward a common forcing-driven trajectory after spin-up. Reach-scale prediction can thus be treated as a boundary-value problem, which makes the initial-state-free ColdStart regime physically possible. Center, GraphRiverCast couples a feature encoder, a graph encoder (spatial recursion) and a temporal encoder (temporal recursion) into a topology-informed river model. Right, the fused representation predicts Q , H and S at every reach. ( C ) Training strategy. GraphRiverCast is trained in two stages. It is pre-trained on physical-model simulations over the full network topology, then fine-tuned on sparse in situ stations (red). The fine-tuned model is applied by zero-shot inference across the global river network, shown as a single-time-step discharge snapshot.
Figure 2: Feasibility of initial-state-free prediction and attribution analysis. ( A ) Median combined NSE (mean Nash-Sutcliffe efficiency across discharge, water depth and storage), scored against the CaMa-Flood reference simulation, versus lead time for GRC-ColdStart (blue), GRC-HotStart (red) and a topology-free LSTM run initial-state-free (gray). Bands, 25th–75th percentiles across reaches. Main panel, to a 30-day lead, where the medians cross at day 13 and HotStart falls to 0.40 by day 30 while ColdStart holds at 0.93. Inset, medians over the full test period to a 700-day lead, with the main-panel range shaded and the axis clipped at zero. ( B ) Encoder dependence as barycentric coordinates, the sensitivity of each regime to suppressing each encoder at inference normalized to the share of skill it carries. ( C ) Information flow from inputs to encoders attributed by integrated gradients [ 40 ] , with width proportional to contribution. Only HotStart receives a river-state input. ( D ) Long-lead (21–30 d) NSE stratified by upstream catchment area ( log10 km 2 ) and Shreve magnitude, medians with interquartile bands. At the largest rivers HotStart falls to ≈ 0.30, ColdStart holds ≈ 0.88.
Figure 3: GraphRiverCast benchmarked against leading physics-based and learning-based global river models. ( A ) Global distribution of per-gauge Nash-Sutcliffe efficiency (NSE) for GraphRiverCast over the held-out evaluation period (2018–2019), at the n=1,996 evaluated in situ gauges. Marker color denotes NSE (teal for higher skill, brown for negative), over the global river network (light blue). ( B to E ) Per-gauge comparison of four metrics across the same gauges for GraphRiverCast, an LSTM benchmark, and the physics-based GloFAS and CaMa-Flood, shown as raincloud plots, each combining jittered points (one per gauge), a box for the interquartile range (IQR) with a median line, whiskers at 1.5× IQR and a half-violin kernel density. The value above each distribution is its median, and in E both the median and IQR of PBIAS are given. Higher values indicate better performance for NSE and KGE, lower values for NRMSE, and values near zero for PBIAS. An arrow in each panel marks this direction, upward in B for NSE and C for the Kling-Gupta efficiency (KGE), downward in D for the min-max normalized RMSE, and toward zero in E for the percent bias (PBIAS).
Figure 4: Spatial and scale generalization of GraphRiverCast. ( A ) Per-gauge skill on ungauged reaches, from five-fold cross-validation over the 1,996 evaluable GRDC gauges. The four boxes compare the LSTM and GRC, each trained from scratch or pre-trained then fine-tuned, across four metrics (NSE, KGE, NRMSE, PBIAS). Brackets give differences in medians against the pre-trained LSTM ( Δ Topology), GRC from scratch ( Δ Pre-training) and the LSTM from scratch ( Δ Combined). Asterisks give the significance of the paired differences (Wilcoxon signed-rank test, n.s. not significant). ( B ) The LamaH river network over the Danube at 15 arc-min (214 reaches, top) and 6 arc-min ( 1,409 reaches, bottom). Reaches are blue where resolved at 15 arc-min and orange where resolved only at 6 arc-min. Gauges are red where they map onto a coarse-network reach and gray where recovered only at 6 arc-min. ( C ) Median NSE over the n=325 gauged reaches of the finer network versus the percentage of gauges used for fine-tuning, for GRC fine-tuned from the global pre-trained weights (green), GRC from scratch (gray, dashed) and the pre-trained LSTM (orange). Bands give the min–max across three subsampling seeds, and the filled regions mark where each factor dominates.
Accurate forecasting of river discharge and floods is very challenging. River dynamics are affected by storage, meteorological forcing, and flow propagation at different spatial and temporal scales. Forecasting thus requires a framework that considers the upstream-to-downstream flow through river networks across grid cells and catchments. This modeling is known in hydrology as distributed modeling and routing. Existing deep learning approaches either ignore this topology, operate on lumped catchments, or route predicted physical quantities through a separate graph or physical routing model. We instead introduce feature-space routing: a topology-aware state-space operator embedded directly in the forecasting dynamics. At every forecast step, the operator gathers latent states from upstream grid cells and causally updates the downstream state according to the known river network. This preserves the physical connectivity of the river system while allowing the propagated state itself to be learned end-to-end and allows the model to predict river discharge considering both local dynamics and neighboring upstream contributions. To address uncertainty and provide probabilistic forecasts, we minimize the fair continuous ranked probability score (fCRPS) as a training objective. Our experiments on the European Flood Awareness System (EFAS) and observational data for river discharge forecasting demonstrate that encoding the physical structure of river networks explicitly in the feature space substantially improves the forecasting skill, particularly in an ungauged setting. Our approach achieves state-of-the-art results on both reanalysis and observational data and is able to forecast maps of river discharge at 1 arcminute and 6-hourly resolution up to 10 days lead time.
Mohamad Hakam Shams Eddin, Maria Luisa Taccari, Yikui Zhang +3
Max Planck Institute for Biogeochemistry, Germany · European Centre for Medium-Range Weather Forecasts (ECMWF), United Kingdom · Institute of Bio- and Geosciences Agrosphere (IBG-3), Research Centre Jülich, Germany +2
Spatiotemporal forecasting on hydrologic graphs is especially prone to instability in open-boundary systems, where the forecast domain exchanges fluxes with an unobserved exterior. In such systems, boundary nodes receive external forcing, e.g., upstream inflows in rivers or tidal signals in coastal regions, that is typically unavailable at prediction time. The absence of this information can compound errors as forecasts unfold in an autoregressive fashion, leading to inferior long-horizon performance. This paper dissects this instability issue by exploring two questions. 1) What boundary forcing enters the forecast domain when information beyond the boundary is missing? 2) How should this forcing propagate through the domain without incurring error amplification under autoregressive rollout? To address both, we propose a new computing framework comprising two key components. First, to compensate for the boundary forcing, our framework learns ghost node proxies from the boundary and interior nodes, striving to approximate unobserved external inputs. Second, to control error accumulation from these learned proxies, we leverage two physics refiners. In particular, one refiner enforces local consistency by aligning ghost proxies with their two-hop neighbors (i.e., boundary nodes and their immediate interiors). The other refiner enhances global stability by correcting the model forecasts through a physics-guided graph neural operator, reducing long-horizon numerical drift. Two real-world hydrologic graphs are employed for empirical evaluation. Comparative results show that our proposal enjoys higher prediction accuracy and long-horizon stability over both learning-based and physics-informed model competitors.
Haoyang Jiang, Zhengui Wang, Shenghan Gao +3
William & Mary, Williamsburg, VA, USA · Virginia Institute of Marine Science, William & Mary, Gloucester Point, VA, USA · Florida Atlantic University, Boca Raton, FL, USA
Accurate flood forecasts several days in advance are essential for flood control, water-resource management, and emergency response. A central challenge is to produce high-resolution forecasts across continental domains where hydrological behavior varies widely from place to place. We developed Hapi, a U-Net Swin Transformer that uses fine three-dimensional patches and hierarchical shifted-window attention to forecast river discharge, surface runoff, snow water equivalent, and soil wetness index across the contiguous United States. The model produces medium-range forecasts (24--72~h) at 0.05∘ resolution with adaptive task weighting and required only 0.11 seconds for a four-variable 72-h CONUS forecast on one A100 GPU. In a held-out 2024 potential-skill evaluation with ERA5-Land inputs prescribed over the forecast horizon, Hapi achieved the highest F1-score for floods in 20 of 21 comparisons across seven GloFAS return periods and three forecast leads. Independent validation against observed daily discharge at 3{,}881 U.S. Geological Survey gauges showed that Hapi achieved the highest median Nash--Sutcliffe efficiency at every lead, supported by regional-cluster bootstrap intervals. In a matched 24-h comparison of loss formulations, adaptive task balancing produced the lowest discharge errors and the highest F1-score for floods.
Hong Zhang, John K. Hutchison, Rao Kotamarthi +7
Argonne National Laboratory, Lemont, IL 60439, USA