Introduction
Predicting high-dimensional spatio-temporal data—such as urban traffic flow, disease spread, or climate patterns—presents a significant challenge in machine learning. These systems often exhibit "global nonlinearity" while remaining "locally simple"; for instance, traffic dynamics shift distinctly between rush hour and midnight. Existing approaches typically fall into two categories: Matrix/Tensor Factorization, which reduces dimensionality but often relies on simplistic linear dynamics, and Switching Linear Dynamic Systems (SLDS), which can switch between modes but are generally restricted to first-order Markovian dependencies. These limitations hinder the capture of long-term recurring patterns and complex, multi-step relationships, especially in the presence of missing data.
Methodology
The authors propose Deep Switching Auto-Regressive Factorization (DSARF), a deep generative model designed to overcome these hurdles by integrating three core components:
- Factorization: High-dimensional data ($X$) is approximated as a product of temporal weights ($W$) and spatial factors ($F$), ensuring scalability to massive datasets.
- Deep Switching Dynamics: The temporal weights are governed by a Deep Vector Auto-Regressive (VAR) process. Multiple neural networks (MLPs) represent distinct dynamical "states," with a Markovian chain determining the active state at any given time. This allows the model to capture higher-order dependencies (looking back multiple time steps) and non-linear transitions.
- Deep Spatial Priors: DSARF employs a deep generative prior to model multimodal spatial distributions, allowing for more effective grouping of related spatial locations compared to standard Gaussian priors.
Training is performed using Stochastic Variational Inference (SVI) with a non-amortized approach. By avoiding reliance on an "encoder" network to estimate latent variables, the model demonstrates superior robustness when handling datasets with significant gaps of missing values.
Experimental Evaluation
DSARF was evaluated across a diverse array of benchmarks, including:
- Synthetic Systems: Toy non-linear VAR models, the chaotic Lorenz Attractor, and Double Pendulum simulations.
- Urban Dynamics: Parking occupancy in Birmingham and traffic speeds in Guangzhou and Seattle.
- Health & Environment: Google Flu trends, Dengue fever outbreaks, and precipitation data.
- Physical Trajectories: Bat flight paths and sleep apnea respiration signals.
Key Results and Insights
DSARF consistently outperformed state-of-the-art baselines like BTMF, TRMF, and LSTNet. A key advantage is its ability to handle higher-order dependencies; by looking back across a "lag set," the model masters complex physical simulations that first-order models fail to capture.
Performance Highlights:
- State Recovery: In synthetic toy examples, DSARF recovered hidden temporal states with ~80% accuracy, significantly higher than the ~62% achieved by rSLDS.
- Forecasting Accuracy: On the Birmingham parking dataset, DSARF achieved a 5.70% NRMSE, compared to 9.32% for LSTNet. For seasonal data like Google Flu trends, it reduced long-term prediction error to 34.96%, whereas the popular BTMF model reached 94.31%.
- Robustness: The model maintained high performance even on precipitation data containing over 50% missing values.
- Interpretability: By segmenting data into discrete states, DSARF identifies recurring regimes, such as periods of apnea in breathing signals, providing an explanatory layer to its predictions.
Conclusion
DSARF represents a powerful advancement in spatio-temporal forecasting, combining the scalability of factorization with the flexibility of deep switching dynamics. While computationally more intensive than linear models, its ability to capture higher-order, non-linear dependencies and its robustness to missing data make it a highly effective tool for complex real-world applications. Future work may explore more sophisticated methods for relating temporal and spatial factors to further reduce prediction error.
Summary updated