TL;DR
This paper introduces InstaTran, a novel deep learning model for water level forecasting that integrates spatiotemporal causal relationships. By leveraging prior knowledge of physical laws and domain expertise, InstaTran achieves enhanced interpretability and robustness to distribution shifts, outperforming state-of-the-art methods.
What Problem Does This Paper Address?
Accurate river water level forecasting is crucial for managing traffic and mitigating natural disasters. However, this task is challenging due to the complex, interconnected factors influencing river flow. While deep learning models have shown promise, they often lack interpretability, making it difficult to trust their predictions and diagnose potential issues. Existing methods struggle to simultaneously capture intricate spatiotemporal dependencies and provide clear explanations for their forecasts, especially when dealing with real-world, heterogeneous data. This paper aims to bridge this gap by developing a model that is both highly accurate and interpretable, by explicitly incorporating causal relationships.
Methods
The core of InstaTran is a transformer architecture enhanced with Spatiotemporal Causal Attention Mechanisms (SCAN). This approach leverages a multilayer network structure that encodes predefined causal relationships between different observation points (e.g., precipitation, dam levels, bridge water levels) and across time. Key innovations include:
- Causal Masking: The model uses masking techniques to enforce assumed causal structures, ensuring that attention mechanisms learn relationships consistent with domain knowledge. This allows for the integration of partial causal knowledge, making the model more flexible.
- Spatiotemporal Encoder: This component uses SCAN to embed spatial causal relations and a Temporal Attention Network (TAN) to capture temporal dependencies. The encoder iteratively refines feature representations by considering both spatial and temporal causal links.
- Temporal Decoder: This part directly forecasts multiple quantiles of future water levels, avoiding the error accumulation common in recursive forecasting methods.
- Heterogeneous Predictors: The model can handle different types of input variables for different observation sites, a common scenario in real-world data.
Datasets
The primary dataset used is the Han River water level dataset from Seoul, South Korea, spanning from 2016 to 2021. This dataset includes water levels from various observatories, as well as meteorological data like precipitation.
For additional validation, the authors also used a US lake dataset comprising data from three lakes (Mead, Mohave, Havasu) from 2005 to 2022, including water level, inflow, outflow, and precipitation.
Key Insights and Ideas
- Causality as a Foundation for Interpretability: By explicitly encoding known causal relationships (e.g., precipitation affecting water levels, upstream conditions influencing downstream), the model's predictions become more aligned with physical intuition, leading to enhanced interpretability.
- Robustness to Distribution Shifts: The causal framework helps the model generalize better to unseen conditions. Unlike models that overfit to training data, InstaTran's reliance on underlying causal structures makes it more resilient to changes in data distribution (e.g., seasonal shifts in rainfall).
- Attention Weights as Explanations: The attention weights within InstaTran provide a quantitative measure of variable importance, directly reflecting how the model weighs different factors at various time points. This offers a transparent view into the model's decision-making process.
- Tidal Influence Captured: The model effectively captures the 12-hour periodic pattern characteristic of tidal influences on the Han River, demonstrating its ability to learn complex temporal dynamics.
Key Results
- Performance: InstaTran achieved competitive results, ranking third in quantile loss (QL) measures among ten evaluated models on the Han River dataset. It also demonstrated superior performance at higher quantile levels (0.9).
- Interpretability: Ablation studies showed that the spatial causal mask (Ms) significantly improved the model's ability to capture spatial dependencies and provided more meaningful interpretations, clearly differentiating between rainy and dry days. Variable importance analysis confirmed that InstaTran's insights align with domain expertise, particularly regarding the influence of precipitation.
- Robustness: In distribution shift scenarios (e.g., comparing May-June data to July-August data), InstaTran maintained strong performance, outperforming many benchmarks, including TFT, which showed performance degradation.
- Efficiency: The direct forecasting approach of InstaTran's decoder is simpler and more efficient than recursive methods, potentially mitigating error accumulation.
Limitations and Future Work
- Causal Structure Complexity: The current model is designed for relatively straightforward causality structures, such as directional graphs. Embedding more complex, nonlinear causal structures in latent space is a limitation.
- Future Work: The authors suggest that future research could explore nonlinear structural causal models to enable the construction of more comprehensive and interpretable deep learning models. They also propose extending this research to more complex causal structures.
Summary updated