TG-PhyNN: An Enhanced Physically-Aware Graph Neural Network framework for forecasting Spatio-Temporal Data
Zakaria Elabid, Lena Sasal, Daniel Busby, Abdenour Hadid
TL;DR
TG-PhyNN tackles the challenge of forecasting spatio-temporal processes on graphs by embedding physical laws into GNN training through a physics-informed loss $L = \lambda_1 Loss_{data} + \lambda_2 Loss_{Phy}$, and by using a two-step prediction strategy to estimate discrete temporal and spatial derivatives with $\frac{df}{dt} \approx \frac{f(t+\delta t) - f(t)}{\delta t}$ and $\frac{\partial f}{\partial x_i} \approx \frac{1}{N_i} \sum_{j \in \mathcal{N}(i)} (f(i) - f(j))$. The framework demonstrates improved forecasting accuracy over traditional baselines (e.g., GRU, LSTM, GAT, GCN) on real-world datasets such as PedalMe, England Covid, and Chickenpox by leveraging PDE-informed constraints, while offering scalable and flexible integration with sparse GNNs. Results indicate strong gains for several TG-PhyNN variants, though some dataset-specific failures (notably with TG-PhyNN-enhanced GCN on certain tasks) motivate future hybrid approaches that can handle non-periodic, stochastic, and chaotic dynamics. The work highlights the practical potential of physics-informed graph modeling for real-world forecasting and points to future enhancements via Fourier Neural Operators or wavelet-transform-based architectures to better capture multi-scale and seasonal effects.
Abstract
Accurately forecasting dynamic processes on graphs, such as traffic flow or disease spread, remains a challenge. While Graph Neural Networks (GNNs) excel at modeling and forecasting spatio-temporal data, they often lack the ability to directly incorporate underlying physical laws. This work presents TG-PhyNN, a novel Temporal Graph Physics-Informed Neural Network framework. TG-PhyNN leverages the power of GNNs for graph-based modeling while simultaneously incorporating physical constraints as a guiding principle during training. This is achieved through a two-step prediction strategy that enables the calculation of physical equation derivatives within the GNN architecture. Our findings demonstrate that TG-PhyNN significantly outperforms traditional forecasting models (e.g., GRU, LSTM, GAT) on real-world spatio-temporal datasets like PedalMe (traffic flow), COVID-19 spread, and Chickenpox outbreaks. These datasets are all governed by well-defined physical principles, which TG-PhyNN effectively exploits to offer more reliable and accurate forecasts in various domains where physical processes govern the dynamics of data. This paves the way for improved forecasting in areas like traffic flow prediction, disease outbreak prediction, and potentially other fields where physics plays a crucial role.
