The Proper Care and Feeding of CAMELS: How Limited Training Data Affects Streamflow Prediction

Martin Gauch, Juliane Mai, Jimmy Lin · DOI

Abstract: Accurate streamflow prediction largely relies on historical meteorological records and streamflow measurements. For many regions, however, such data are only scarcely available. Facing this problem, many studies simply trained their machine learning models on the region's available data, leaving possible repercussions of this strategy unclear. In this study, we evaluate the sensitivity of tree- and LSTM-based models to limited training data, both in terms of geographic diversity and different time spans. We feed the models meteorological observations disseminated with the CAMELS dataset, and individually restrict the training period length, number of training basins, and input sequence length. We quantify how additional training data improve predictions and how many previous days of forcings we should feed the models to obtain best predictions for each training set size. Further, our findings show that tree- and LSTM-based models provide similarly accurate predictions on small datasets, while LSTMs are superior given more training data.

Introduction

Accurate streamflow prediction is critical for flood forecasting and water management, yet many regions globally suffer from "data scarcity"—a lack of long-term historical meteorological and hydrological records. While data-driven machine learning (ML) models often outperform traditional physical models, they are notoriously "data-hungry." This study seeks to quantify the sensitivity of two popular ML architectures—LSTMs and Gradient Boosted Regression Trees (specifically XGBoost)—to limited training data across both temporal and spatial dimensions.

Methodology

The study compares two primary architectures using the CAMELS (Catchment Attributes and MEteorology for Large-sample Studies) dataset, which includes 531 basins across the continental United States.

  • EA-LSTM (Entity-Aware LSTM): A specialized recurrent neural network that treats static catchment attributes and dynamic time-series forcings as separate inputs.
  • XGBoost: A popular gradient-boosted tree framework.

Researchers used split-sample testing to systematically restrict the training set across three dimensions: training period length (3, 6, or 9 years), hydro-geo-climatic diversity (random subsets of basins from 2.5% to 100%), and input sequence length (the "look-back window"). Results were benchmarked against the mHM (multiscale Hydrologic Model), a well-regarded traditional physical hydrologic model.

Key Insights and Results

The Scaling Advantage of LSTMs

On very small datasets (e.g., 13 basins for 3 years), XGBoost and LSTMs perform similarly. However, LSTMs exhibit a much higher performance ceiling. As more basins and years are added, the LSTM's accuracy improves at a significantly faster rate than XGBoost's. This scaling behavior is a key differentiator for large-sample hydrology.

Median NSE scaling for XGBoost and EA-LSTM as a function of the total number of training samples.

Diversity vs. Duration

A critical finding is that adding data from different basins (spatial diversity) often provides a greater boost to model accuracy than simply having a longer historical record for a single basin. This suggests that ML models are successfully learning general physical relationships that transfer across different environments.

Comparison to Physical Models

Remarkably, the EA-LSTM outperformed the traditionally calibrated physical model (mHM) using data from only 53 basins (10% of the dataset), despite mHM being specifically calibrated for each individual basin. On the full dataset (531 basins, 9 years), the EA-LSTM achieved a median Nash-Sutcliffe Efficiency (NSE) of 0.74, compared to XGBoost's 0.66 and mHM's ~0.66 baseline.

Performance distributions (NSE) across varying training years and basin counts, comparing ML models to the physical mHM baseline.

Adaptive Look-back Windows

The "optimal" amount of past weather data a model needs to see changes with dataset size. For LSTMs, larger datasets allow the model to effectively utilize longer sequences (up to 365 days). Conversely, for XGBoost, longer sequences can degrade performance as the input dimensionality becomes too high for the model to handle efficiently.

Conclusion and Limitations

While LSTMs are superior given sufficient data, XGBoost remains a competitive and robust baseline when data is extremely scarce. However, LSTMs are more robust overall, showing a lower percentage of "failed" basins (NSE ≤ 0) across most scenarios.

Future work should explore transfer learning, where models are pre-trained on data-rich regions and fine-tuned for data-poor ones. Additionally, while general accuracy improved with more data, the improvement in predicting low-flow events was less pronounced than for high-flow events, suggesting a need for specialized loss functions or architectures for drought conditions.

Summary updated

BibTeX
@article{gauch2019proper,
  author = {Martin Gauch and Juliane Mai and Jimmy Lin},
  title = {{The Proper Care and Feeding of CAMELS: How Limited Training Data Affects Streamflow Prediction}},
  journal = {Environ. Model. Softw.},
  year = {2019},
  doi = {10.1016/j.envsoft.2020.104926},
}
Figure