HydroDCM: Hydrological Domain-Conditioned Modulation for Cross-Reservoir Inflow Prediction

Pengfei Hu, Fan Ming, Xiaoxue Han, Chang Lu, Yue Ning, Dan Lu · DOI

Introduction

Predicting water inflow into reservoirs is a cornerstone of effective flood management and hydropower optimization. While deep learning models, particularly LSTMs, have demonstrated high accuracy for individual sites, they frequently struggle with domain shift—the performance drop encountered when a model trained on one set of reservoirs is applied to a new, unseen location. Each reservoir possesses unique characteristics dictated by its geography, elevation, and local climate, making universal prediction a significant challenge.

Traditional Domain Generalization (DG) methods attempt to extract "invariant" features that remain consistent across domains. However, in the context of hydrology, these methods face two primary obstacles: the "many-domain" problem, where hundreds of reservoirs make meta-learning computationally prohibitive, and the systematic neglect of site-specific metadata (e.g., GPS coordinates) that could otherwise help distinguish local behaviors.

The HydroDCM Framework

To address these challenges, the authors propose HydroDCM (Hydrological Domain-Conditioned Modulation). This framework balances the search for universal hydrological patterns with the need for site-specific adaptation through a two-stage process.

The two-stage HydroDCM architecture: Stage 1 focuses on invariant representation learning via adversarial training, while Stage 2 uses a FiLM adapter for site-specific modulation.

Stage 1: Invariant Representation Learning

The first stage employs a temporal encoder to process weather and historical inflow data. To ensure the extracted features are truly universal, the model utilizes adversarial training. A domain discriminator attempts to identify the source reservoir of the data, while the encoder is optimized to produce features that "fool" this discriminator. Uniquely, HydroDCM uses pseudo-domain labels derived from spatial metadata via contrastive loss, allowing the model to cluster geographically similar reservoirs in the latent space rather than treating every site as an isolated ID.

Stage 2: Feature-Wise Modulation

Recognizing that total invariance can lead to underfitting by ignoring useful local nuances, the second stage introduces a FiLM (Feature-wise Linear Modulation) adapter. This layer ingests the target reservoir's metadata to generate scaling and shifting parameters. These parameters "tweak" the universal features before they reach the final prediction head, allowing the model to adapt its global knowledge to the "local dialect" of a specific site.

Experimental Setup

The framework was evaluated using data from the Upper Colorado River Basin, a region vital to nearly 40 million people. The dataset included 30 reservoirs with records spanning 1999–2011. To simulate real-world data scarcity, three reservoirs (MCR, JVR, and MCP) were treated as "unseen" targets with limited historical data. Input features included daily precipitation and temperature from the PRISM climate model alongside historical inflow records.

Key Results

Performance was measured using the Nash–Sutcliffe Efficiency (NSE), where a value of 1.0 represents perfect prediction. HydroDCM achieved a superior overall NSE of 82.90%, outperforming established DG baselines such as DANN (78.89%) and IRM (78.50%).

Performance comparison of HydroDCM against baseline models (DANN, MLDG, CondAdv, IRM) across three reservoirs over a 7-day forecast horizon.

Crucially, the model's performance remained remarkably close to the "Oracle" upper bound—a theoretical model trained directly on the target data—trailing by only approximately 1%. Furthermore, as the forecast horizon extended from Day 1 to Day 7, HydroDCM exhibited a slower performance decay compared to its competitors. This suggests that the model successfully captures stable physical patterns rather than merely overfitting to short-term trends.

Discussion and Future Work

The success of HydroDCM highlights the value of using spatial metadata as both a clustering tool (pseudo-labels) and an adaptation mechanism (modulation). By avoiding heavy meta-learning loops, the architecture remains scalable for large-scale hydrological networks.

Future research may explore the use of expanded descriptors, such as land use and soil permeability, to better differentiate reservoirs at similar coordinates. Additionally, the authors suggest that integrating "Physics-Informed" machine learning—incorporating actual water balance equations—could further improve reliability in extreme weather scenarios.

Summary updated

BibTeX
@misc{hu2025hydrodcm,
  author = {Pengfei Hu and Fan Ming and Xiaoxue Han and Chang Lu and Yue Ning and Dan Lu},
  title = {{HydroDCM: Hydrological Domain-Conditioned Modulation for Cross-Reservoir Inflow Prediction}},
  year = {2025},
  eprint = {2512.03300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.03300},
}
Figure