A Data Scientist's Guide to Streamflow Prediction

Martin Gauch, Jimmy LinarXiv 2020

Introduction

This paper serves as a foundational overview for machine learning practitioners entering the field of hydrology. Authors Martin Gauch and Jimmy Lin bridge the gap between domain-specific hydrologic jargon and the language of spatio-temporal modeling, formalizing streamflow prediction as a supervised learning problem.

The Core Challenge: Streamflow Prediction

Hydrology is shifting from traditional process-based models, built on physical equations, to data-driven models. The central task is predicting streamflow—the volume of water passing a specific point in a river—using meteorological inputs and landscape characteristics. This problem involves complex spatial dependencies and the "ungauged basin" problem: predicting flow for rivers lacking historical sensor data.

Modeling Paradigms and Spatial Granularity

The paper categorizes modeling approaches along two main axes:

  1. Process-Based vs. Data-Driven:
  2. Process-based models use physical abstractions (e.g., evaporation, soil infiltration) and rely on "states" (e.g., snow depth) and "parameters" tuned during calibration.
  3. Data-driven models treat the system as a black box. Long Short-Term Memory (LSTM) networks are highlighted as a natural fit due to their ability to maintain internal states, mimicking physical processes like groundwater storage.
  4. Spatial Granularity:
  5. Lumped Models: Treat an entire watershed as a single point with averaged inputs.
  6. Distributed Models: Use a high-resolution grid to account for spatial variability.
  7. Semi-distributed: A middle ground using "Hydrologic Response Units" (HRUs).

Key Hydrologic Concepts

Understanding the distinction between domain terms is crucial for effective modeling:

  • Streamflow vs. Runoff: Runoff is the water generated on a specific patch of land. Streamflow is the aggregate, "routed" result of all runoff from an upstream area (the catchment) passing through a single point (the outlet).
  • The "No Past Streamflow" Constraint: Models are often forbidden from using previous streamflow values as inputs. This ensures they learn physical drivers (rainfall $\to$ flow) and remain applicable to "ungauged" basins.
  • Warm-up Periods: Physical models require a "warm-up" phase to initialize internal states (e.g., soil moisture) before predictions become valid.
Conceptual diagram of a river basin, illustrating the relationship between runoff, streamflow, and gauging stations.

Formalizing the Prediction Task

The authors formalize the notation for the standard streamflow prediction setup: $$f(\Sigma, X_{t-k+1}, \dots, X_t; \theta) = \hat{y}_t$$ In this formulation, $\Sigma$ represents static geophysical features, while $X$ represents the time-series of meteorological forcings.

Mathematical notation and variable definitions for streamflow modeling.

Datasets and Evaluation

The CAMELS (Catchment Attributes and Meteorology for Large-sample Studies) datasets serve as the primary community benchmarks, providing "forcings" (temperature, precipitation) and static attributes (soil type, elevation) for basins across the US, Chile, and Great Britain.

Evaluation typically relies on the Nash-Sutcliffe Efficiency (NSE) rather than Mean Squared Error. An NSE of 1 indicates a perfect fit, while an NSE of 0 suggests the model is no better than predicting the long-term mean.

Future Outlook

The paper identifies several frontiers:

  • Physics-Guided ML: Hybrid models that constrain neural networks with physical laws (e.g., mass balance).
  • Data Heterogeneity: Overcoming the challenges of training global models on diverse regional datasets.
  • Data Assimilation: Improving methods to incorporate real-time sensor data without losing generalizability to ungauged regions.

Summary updated

BibTeX
@misc{gauch2020data,
  author = {Martin Gauch and Jimmy Lin},
  title = {{A Data Scientist's Guide to Streamflow Prediction}},
  year = {2020},
  eprint = {2006.12975},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.12975},
}
Figure