Abstract
Spatiotemporal models have drawn significant interest recently due to their widespread applicability across many domains. These models are often made more practically useful by incorporating beneficial inductive biases, such as laws or symmetries from domain-relevant physics equations. This "physics-awareness" provides an interpretable means of grounding otherwise purely data-driven models, improving robustness and boosting performance in settings with limited data. In this work, we view physical dynamics as domain knowledge that captures fundamental causal relationships across space and time, and can be effectively leveraged by our proposed physics-aware spatiotemporal causal graph network (P-STCGN). We firstly describe a means of deriving causal relationships from spatiotemporal data, serving as physics-aware labels to learn a causal structure via a dedicated neural module. We then formulate a forecasting module that can operate under this causal structure, producing predictions that are guided by physics-aware cause-effect relationships among modeled variables. Extensive experimentation demonstrates that our method is robust to noisy and limited data, outperforming existing models across a variety of challenging synthetic tasks and benchmark datasets.
Introduction
Spatiotemporal forecasting—predicting the evolution of systems like weather, traffic, or power grids—is a critical yet challenging task for deep learning. Standard data-driven models often struggle due to two primary factors: data scarcity and a lack of physical grounding. Real-world physical data is frequently limited in quantity or quality, and purely neural approaches may identify correlations that violate fundamental physical laws, such as an effect preceding its cause.
To address these issues, we propose the Physics-Aware Spatiotemporal Causal Graph Network (P-STCGN). Unlike traditional Physics-Informed Neural Networks (PINNs) that treat physics as a soft constraint in the loss function, P-STCGN uses physical principles to explicitly define the model's underlying causal structure. By viewing physical dynamics as domain knowledge that captures fundamental cause-effect relationships, we can build models that are more robust to noise and highly efficient with limited data.
Methods
The P-STCGN framework decouples the forecasting problem into two distinct stages: causal discovery and guided prediction.
Physics-Aware Causal Module (STGC)
Instead of attempting to infer a causal graph solely from data, the STGC module utilizes domain-specific partial differential equations (PDEs), such as the Heat or Navier-Stokes equations, to derive "physics-aware labels." For instance, the Heat Equation dictates that a node’s future state is determined by its current state and its immediate spatial neighbors. These labels guide a neural module to learn a Directed Acyclic Graph (DAG) representing the causal structure. To ensure robustness, we also introduce "non-causal labels" based on temporal precedence, preventing the model from overfitting on positive causal links.
Spatiotemporal Forecasting Module (STGF)
Once the causal structure is established, the STGF module utilizes these relationships to generate predictions. It transforms latent representations into future signals by weighing the influence of identified "causes" on their respective "effects." This ensures that the forecasting process is grounded in the learned physical causality.
Experimental Results
We evaluated P-STCGN across synthetic simulations, standard benchmarks (Particles, Kuramoto, and Netsim), and real-world climatology data from the Global Historical Climatology Network (GHCN).
Data Efficiency and Accuracy
P-STCGN demonstrated remarkable efficiency in data-sparse environments. On the TMAX (Western US) temperature dataset, the model trained on only 5% of the training data outperformed baseline models trained on the full dataset. In terms of accuracy, P-STCGN achieved a 40.6% improvement over the state-of-the-art Amortized Causal Discovery (ACD) baseline on the Kuramoto benchmark.
Robustness to Noise and Hidden Variables
In synthetic tests with high additive noise, standard models like Graph Convolutional Networks (GCNs) performed near random guessing. In contrast, P-STCGN maintained a strong causal discovery AUC of 0.712. Furthermore, in experiments involving hidden confounders (e.g., an unmeasured "temperature" variable affecting particle motion), P-STCGN successfully modeled the underlying dynamics where other models failed.
Conclusion
P-STCGN demonstrates that incorporating physics as a structural prior, rather than just a loss term, significantly enhances spatiotemporal forecasting. The model remains effective even when prior physics knowledge is incomplete or partially relevant. While the two-stage training process adds some complexity, the gains in data efficiency and robustness make it a powerful tool for real-world applications where data is messy and physical laws are paramount. Future work will explore relaxing the stationarity assumption to better handle rapidly shifting systems like extreme climate events.
Summary updated