EA-LSTM
LSTM variant whose input gate is set by static catchment attributes, for rainfall-runoff modeling.
Physics and weather · 4,338 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Physics and weather
- Parameters
- 208.6K
- Operations
- 4,338
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- Hydrology and Earth System Sciences (arXiv 2019)
- Cited by
- 1,228 (as of 3 November 2026)
- Authors
- Frederik Kratzert, Daniel Klotz, Guy Shalev and others
- License
- BSD-3-Clause
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m16255
- Graph hash
- dbfb1e9bd5d6129ac9912e5b9a6be283cb01fe91609ad51ae3e294c7d57107ad
- Skeleton hash
- 7f1cf2a9ec3298b0077fdf64a51355d102437e4cf5056bea8cb441b444064df9
- Architecture hash
- 49c0d5afe662bc3d704f979490af5313c4de762b8e5940b6d658fa2d1ddc31d6
- Diagram SHA-256
- 32b9f9b461ed10a873cb2953a6261e5b01a6549739a4169470c1524556c6e2f4
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
EA-LSTM (Entity-Aware-LSTM) is a recurrent network for rainfall-runoff modeling: it learns a mapping from meteorological time series to streamflow for many river catchments at once. The paper proposes it as an adaption to the standard LSTM architecture that learns catchment similarities and embeds them as a feature layer.
The change is in the input gate, which is computed once from the static inputs, such as catchment attributes, and does not change over time. The static features thereby control which parts of the LSTM are active for a given catchment, while the dynamic and recurrent inputs control what is written into memory, what is deleted and what is output at each time step. The paper treats the trained gate as an embedding layer: a vector that maps the 27 static catchment features into the 256-dimensional space of the LSTM.
The paper used 531 basins from the CAMELS data set, and its main benchmarking result is that the EA-LSTM significantly outperforms all the hydrological benchmark models in overall NSE (Nash-Sutcliffe efficiency). Against a standard LSTM given the same static features as extra inputs, it reports a small performance sacrifice and names explainability as the benefit. The paper's LSTMs had 256 memory cells and read input sequences 270 time steps long: the forcings of the target day plus the 269 preceding days, to predict a single daily discharge value.
Key idea. The paper adapts the LSTM so that static catchment attributes set an input gate that does not change over time, which becomes a learned embedding of catchment similarity.
- EA-LSTM
- Entity-Aware LSTM
- Entity-Aware-LSTM
- rainfall-runoff modeling
- hydrology
- streamflow prediction
- CAMELS
- catchment attributes
- regional hydrological modeling
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{kratzert2019learninguniversalregionallocal,
title={Towards Learning Universal, Regional, and Local Hydrological Behaviors via Machine-Learning Applied to Large-Sample Datasets},
author={Frederik Kratzert and Daniel Klotz and Guy Shalev and Günter Klambauer and Sepp Hochreiter and Grey Nearing},
year={2019},
eprint={1907.08456},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1907.08456},
}