Rainfall–runoff modelling using Long Short-Term Memory (LSTM) networks

Frederik Kratzert, Daniel Klotz, Claire Brenner, Karsten Schulz, Mathew Herrnegger

Abstract

Rainfall-runoff modelling is one of the key challenges in the field of hydrology. Various approaches exist, ranging from physically based over conceptual to fully data driven models. In this paper, we propose a novel data driven approach, using the Long-Short-Term-Memory (LSTM) network, a special type of recurrent neural networks. The advantage of the LSTM is its ability to learn long-term dependencies between the provided input and output of the network, which are essential for modelling storage effects in e.g. catchments with snow influence. We use 241 catchments of the freely available CAMELS data set to test our approach and also compare the results to the well-known Sacramento Soil Moisture Accounting Model (SAC-SMA) coupled with the Snow-17 snow routine. We also show the potential of the LSTM as a regional hydrological model, in which one model predicts the discharge for a variety of catchments. In our last experiment, we show the possibility to transfer process understanding, learned at regional scale, to individual catchments and thereby increasing model performance when compared to a LSTM trained only on the data of single catchments. Using this approach, we were able to achieve better model performance as the SAC-SMA + Snow-17, which underlines the potential of the LSTM for hydrological modelling applications.

Introduction

Predicting river discharge (runoff) based on meteorological forcing—such as precipitation and temperature—is a fundamental task in hydrology. Traditional approaches generally fall into two categories: physically-based models, which simulate processes via complex differential equations, and conceptual models like the Sacramento Soil Moisture Accounting Model (SAC-SMA), which simplify these processes but require basin-specific calibration.

A significant hurdle for standard data-driven models, such as Artificial Neural Networks (ANNs), is their inability to account for long-term temporal dependencies. In many catchments, runoff is influenced by events that occurred months prior, such as winter snowpack melting in the spring. Standard recurrent neural networks (RNNs) often fail to capture these effects due to the "vanishing gradient" problem, where information from the distant past is lost during training.

Comparison of standard RNN and LSTM cell architectures. The LSTM's gating mechanism enables it to maintain a long-term cell state.

Methodology

To address the memory limitations of standard RNNs, this study utilizes Long Short-Term Memory (LSTM) networks. The LSTM architecture is specifically designed to regulate the flow of information through "gates," allowing the model to store and retrieve information over long sequences.

The experimental framework evaluated three modeling strategies:

  1. Local Models: Training individual LSTMs for each specific catchment.
  2. Regional Models: Training a single LSTM on a large, diverse set of catchments to learn general hydrological principles.
  3. Transfer Learning: Initializing a model with regional knowledge and fine-tuning it with local data.
The multi-layer LSTM architecture used for rainfall-runoff prediction, featuring two recurrent layers and a final dense layer.

The models were trained and validated using the CAMELS dataset, encompassing 241 catchments across the contiguous United States. This dataset provides a diverse range of climatic and geological conditions, with 15 years of data used for calibration and approximately 20 years for validation.

Results and Discussion

The LSTM demonstrated superior performance compared to the traditional SAC-SMA + Snow-17 benchmark. The local LSTM achieved a mean Nash-Sutcliffe Efficiency (NSE) of 0.63, surpassing the benchmark's 0.58. The most effective approach was transfer learning (Experiment 3), which reached a median NSE of 0.72.

Beyond numerical performance, the LSTM exhibited an "unintentional" understanding of physical processes. By examining the internal cell state, the authors discovered that the network had independently learned to track snow accumulation and melt cycles, despite receiving no explicit physical constraints or snow-related labels. This suggests that LSTMs can internalize complex hydrological storage effects directly from raw meteorological data.

Conclusion

This research highlights the potential of LSTMs as a robust tool for rainfall-runoff modeling. By effectively managing long-term dependencies and benefiting from regional data through transfer learning, LSTMs can outperform established conceptual models. While challenges remain regarding data requirements and the "black box" nature of neural networks, the ability of these models to learn physical representations like snow dynamics opens new avenues for data-driven hydrology.

Summary updated

BibTeX
@inproceedings{kratzert2018rainfallrunoff,
  author = {Frederik Kratzert and Daniel Klotz and Claire Brenner and Karsten Schulz and Mathew Herrnegger},
  title = {{Rainfall–runoff modelling using Long Short-Term Memory (LSTM) networks}},
  booktitle = {Hydrology},
  year = {2018},
  doi = {10.5194/hess-22-6005-2018},
}
Figure