Improving hydrologic models for predictions and process understanding using neural ODEs

Marvin Höge, Andreas Scheidegger, Marco Baity‐Jesi, Carlo Albert, Fabrizio Fenicia

Introduction

In the field of hydrology, the ability to accurately predict streamflow from rainfall and temperature data is critical for water resource management, flood forecasting, and climate impact assessments. Traditionally, this task has been dominated by conceptual hydrologic models—"white-box" systems built on physical principles like mass balance and empirical flux equations. While these models are highly interpretable, they often struggle to capture the complex, non-linear dynamics of diverse watersheds.

In recent years, deep learning methods, particularly Long Short-Term Memory (LSTM) networks, have set new benchmarks for predictive accuracy, significantly outperforming conceptual models. However, these "black-box" models lack physical transparency; their internal states are difficult to relate to actual hydrologic processes like soil moisture or snowpack. This paper introduces a "grey-box" alternative: Hydrologic Neural Ordinary Differential Equations (Neural ODEs). This approach seeks to combine the predictive power of deep learning with the structural integrity and interpretability of mechanistic modeling.

The Modeling Dilemma: Accuracy vs. Interpretability

Hydrologists currently face a trade-off between two paradigms:

  1. Conceptual Models: These models (e.g., EXP-Hydro) use simplified representations of physical processes (buckets and pipes). They respect mass balance and allow researchers to inspect internal states, but their fixed empirical formulas often fail to generalize across hundreds of different catchments.
  2. Deep Learning Models: LSTMs excel at learning complex patterns from large datasets like CAMELS-US. However, they do not inherently respect physical laws, are typically restricted to discrete daily time steps, and offer little insight into why a certain prediction was made.

Neural ODEs bridge this gap by defining the derivatives of a system's state using a neural network. This allows the model to learn the underlying physics from data while remaining embedded within a continuous-time differential equation framework that enforces mass balance.

Methodology: The Neural ODE Framework

The researchers developed a hierarchy of models based on the EXP-Hydro conceptual framework, which utilizes two primary storage components: snow and water. They introduced three levels of "neuralization":

  • M0 (The Baseline): A purely mechanistic conceptual model using standard empirical equations for processes like evapotranspiration ($ET$) and discharge ($Q$).
  • M50 (The Hybrid): A model where the equations for $ET$ and $Q$ are replaced by neural networks, while other processes remain mechanistic.
  • M100 (The Fully Neuralized Flux): A model where all five internal hydrologic processes—precipitation partitioning, snowmelt, $ET$, and $Q$—are substituted by a single integrated neural network.

To ensure stable training, the authors employed a knowledge transfer approach. The neural networks were first pre-trained to mimic the behavior of the conceptual M0 model. Once this baseline was established, the models were fine-tuned using real-world observation data from the CAMELS-US dataset.

Experimental Setup and Data

The study utilized the CAMELS-US dataset, encompassing 569 catchments across the continental United States. This dataset provides a rigorous testing ground due to its wide variety of climatic and geological conditions. The models were trained on 20 years of daily data (1980–2000) and evaluated on a 10-year independent test period (2000–2010). Key inputs included precipitation, temperature, and day length, with streamflow discharge as the target variable.

Key Results and Insights

Superior Predictive Performance

The M100 Neural ODE model emerged as the top performer, surpassing both the conceptual baseline and the state-of-the-art LSTMs used for comparison. Across the 569 basins, the M100 achieved a median Nash-Sutcliffe Efficiency (NSE) of ~0.71, compared to ~0.60 for the LSTM and ~0.46 for the conceptual M0. Notably, the Neural ODEs were significantly more effective at capturing high-flow events (peak flows), a common area of failure for traditional models.

Physical Realism and Interpretability

One of the most compelling findings was the model's ability to maintain physical realism. Despite not being explicitly trained on snow data, the Neural ODEs accurately captured the timing of snow accumulation and melt when compared against independent Snow Water Equivalent (SWE) observations.

Furthermore, the "grey-box" nature of the model allowed researchers to visualize the learned relationships. By plotting the neural network's internal outputs, they could see how the model represented the relationship between water storage and discharge. The Neural ODE discovered complex, non-linear behaviors that the simple M0 model was forced to oversimplify, providing new insights into catchment-specific dynamics.

Advantages of Continuous-Time Modeling

Unlike standard machine learning models that operate on fixed daily steps, Neural ODEs are continuous. This makes them inherently better suited for handling irregular data intervals or modeling high-resolution events like flash floods, which can occur on sub-daily timescales.

Limitations and Future Directions

While promising, the Neural ODE approach has limitations:

  • Data Extremes: In rare "edge cases" (e.g., extreme storage levels with no rainfall), the neural networks occasionally learned physically implausible relations due to a lack of training data in those ranges.
  • Computational Intensity: Training Neural ODEs is more demanding than training standard LSTMs, which may impact scalability.
  • Lumped Structure: The current model treats catchments as single points. Future work aims to develop "regionalized" models that incorporate spatial attributes like soil type, slope, and land cover to further improve generalization.

Conclusion

Hydrologic Neural ODEs represent a significant step forward in rainfall-runoff modeling. By fusing the flexibility of deep learning with the structural constraints of mechanistic models, they offer a path toward high-accuracy predictions that do not sacrifice process understanding. This "grey-box" approach provides hydrologists with a powerful tool to not only predict the future of water systems but also to better understand the complex physical processes driving them.

Summary updated

BibTeX
@inproceedings{hoge2022improving,
  author = {Marvin Höge and Andreas Scheidegger and Marco Baity‐Jesi and Carlo Albert and Fabrizio Fenicia},
  title = {{Improving hydrologic models for predictions and process understanding using neural ODEs}},
  booktitle = {Hydrology},
  year = {2022},
  doi = {10.5194/hess-26-5085-2022},
}
Figure