Abstract: Ingesting near-real-time observation data is a critical component of many operational hydrological forecasting systems. In this paper, we compare two strategies for ingesting near-real-time streamflow observations into long short-term memory (LSTM) rainfall–runoff models: autoregression (a forward method) and variational data assimilation. Autoregression is both more accurate and more computationally efficient than data assimilation. Autoregression is sensitive to missing data, however an appropriate (and simple) training strategy mitigates this problem. We introduce a data assimilation procedure for recurrent deep learning models that uses backpropagation to make the state updates.
Introduction
Long Short-Term Memory (LSTM) networks have emerged as a powerful tool for rainfall-runoff modeling, frequently outperforming traditional conceptual models. However, for these models to be useful in operational forecasting, they must be able to incorporate near-real-time streamflow observations to adjust or "nudge" predictions based on current conditions. This study evaluates two primary methods for this integration: Autoregression (AR) and a novel form of Variational Data Assimilation (DA).
Comparing Integration Strategies
In traditional hydrology, Data Assimilation (DA) is the standard approach. It involves mathematically updating the model's internal states (e.g., soil moisture) to align with recent observations. For LSTMs, the authors developed a DA procedure that uses backpropagation through the tensor network to optimize hidden cell states.
Conversely, Autoregression (AR) is a common machine learning technique where the previous day's streamflow is simply included as an additional input feature. While AR is often criticized for being fragile when data is missing, this study proposes a "scheduled sampling" training strategy to overcome this limitation. By randomly replacing real observations with model predictions during training and using a binary flag to indicate data quality, the model learns to handle gaps in real-time data.
Key Results and Performance
The study utilized the CAMELS dataset, covering 531 basins across the United States. The results indicate that AR is superior to DA in both accuracy and computational efficiency.
- Accuracy: AR improved the median Nash-Sutcliffe Efficiency (NSE) from a baseline of 0.796 to 0.879, while the DA approach reached 0.862.
- Efficiency: Processing 10 years of data for all basins took approximately 30 minutes with AR, compared to roughly 2 hours for the iterative DA approach.
As shown in the scatter plots above, both DA and AR significantly improve performance over the base simulation. However, AR (specifically the 0.0 holdout version) consistently matches or exceeds the performance of the more complex DA method across the majority of basins.
Robustness to Missing Data
A critical finding of this research is that AR models can be made highly robust to missing data. When trained with a "holdout" strategy—where the model is exposed to missing data during training—it maintains high performance even when a large fraction of real-time observations are unavailable during testing.
Figure 4 illustrates that models trained without missing data (0.0 train holdout, blue line) see a sharp decline in performance as test data becomes scarce. In contrast, models trained with a 0.5 or 0.75 holdout fraction remain stable and outperform the base simulation even when 100% of the test-time observations are missing.
Conclusion
For operational streamflow forecasting using LSTMs, Autoregression is the recommended approach. It is more accurate, significantly faster, and—when paired with appropriate training strategies—remarkably robust to the sensor failures and data gaps common in real-world hydrological monitoring. Future work will explore why these benefits vary by region and how they extend to longer forecast lead times.
Summary updated