Deep Markov Spatio-Temporal Factorization

Amirreza Farnoosh, Behnaz Rezaei, Eli Zachary Sennesh, Zulqarnain Khan, Jennifer G. Dy, Ajay B. Satpute, J. Benjamin Hutchinson, Jan-Willem van de Meent, Sarah OstadabbasarXiv 2020

TL;DR

This paper introduces Deep Markov Spatio-Temporal Factorization (DMSTF), a novel generative model that can analyze complex, high-dimensional spatio-temporal data by learning both nonlinear temporal dynamics and multimodal spatial patterns. DMSTF achieves state-of-the-art performance in forecasting and clustering across diverse datasets, including fMRI and traffic data, by leveraging deep learning for temporal modeling and a flexible spatial factor parameterization.

What Problem Does This Paper Address?

Analyzing spatio-temporal data, which is abundant in fields like neuroscience, climate science, and traffic management, presents a significant challenge due to its high dimensionality and complex dynamics. Traditional factor analysis methods often struggle to capture nonlinear temporal transitions and can be computationally prohibitive for extremely high-dimensional data like fMRI. Existing deep learning approaches for time series often lack explicit probabilistic frameworks or struggle with missing data and interpretability. This paper aims to bridge this gap by proposing a probabilistic generative model that can effectively handle high-dimensional data, model complex nonlinear temporal dynamics, and provide interpretable insights through learned latent representations.

Methods

The core of DMSTF is a hierarchical probabilistic factor analysis framework. It decomposes high-dimensional data $Y$ into a product of time-dependent weights $W$ and spatially dependent factors $F$. The novelty lies in how these components are modeled:

  • Deep Markovian Prior for Temporal Dynamics: The weights $W$ are parameterized by a deep generative Markovian prior. This prior uses neural networks (specifically, recurrent neural networks) to model potentially nonlinear and multimodal temporal dynamics in a low-dimensional latent space ($z_t$). This is a departure from traditional methods that often assume linear dynamics.
  • Flexible Spatial Factor Parameterization: The spatial factors $F$ are learned using a low-dimensional spatial latent ($z_f$). This latent can either parameterize functional forms for spatial factors (e.g., Gaussian blobs for fMRI) or directly learn spatial factors without structural assumptions, making it adaptable to various data types.
  • Stochastic Variational Inference: The model is trained using stochastic variational inference, which allows for efficient learning on large datasets. A key aspect is the use of a structured variational distribution for the temporal latents, employing a bidirectional recurrent network.
  • Extensions: DMSTF is designed to be flexible, allowing for extensions like incorporating a discrete latent for clustering instances (e.g., separating patient groups) or conditioning on observed control variables to guide temporal dynamics.

Datasets

The paper evaluates DMSTF on a variety of datasets:

  • Simulated Data: A toy example to demonstrate the recovery of parameters from a nonlinear dynamical system.
  • Neuroimaging Datasets:
    • Autism Dataset (ABIDE): Resting-state fMRI data from multiple sites, used for clustering and classification.
  • Depression Dataset: Task-based fMRI data, used for modeling temporal dynamics with control signals.
  • Traffic Datasets: Four datasets (Birmingham car parks, Guangzhou road segments, Hangzhou metro stations, Seattle loop detectors) used for short-term forecasting.

Key Insights and Ideas

  • Unifying Temporal and Spatial Modeling: DMSTF successfully integrates deep learning for modeling complex, nonlinear temporal dynamics with flexible factor analysis for high-dimensional spatial data.
  • Interpretability through Latent Spaces: The learned low-dimensional temporal ($z_t$) and spatial ($z_f$) latent spaces provide interpretable insights into the underlying structure of the data, enabling tasks like clustering and identifying distinct patterns.
  • Handling High Dimensionality Efficiently: By learning low-dimensional latent representations and using structured variational inference, DMSTF scales effectively to very high-dimensional data like fMRI, overcoming computational bottlenecks of previous methods.
  • Adaptability to Data Modalities: The flexible parameterization of spatial factors allows DMSTF to be applied to diverse domains, from structured neuroimaging data to less structured traffic data.
  • Clustering for Unsupervised Discovery: The ability to perform unsupervised clustering in the temporal latent space is powerful for discovering hidden groupings or states within the data, such as cognitive states in fMRI.

Key Results

  • Forecasting Performance: DMSTF consistently outperformed state-of-the-art baselines (TRMF, BayesTRMF, BTMF) in short-term traffic speed prediction across four datasets, achieving significantly better RMSE and MAPE. For example, on the Birmingham dataset, DMSTF achieved an RMSE of 102.00 compared to the next best model's 25.10.
  • fMRI Analysis:
    • In the Autism dataset, DMSTF successfully clustered subjects, partially separating ASD and control groups. When combined with SVM for classification (DMSTF+SVM), it outperformed a standard ROI+SVM baseline.
  • For the Depression dataset, DMSTF demonstrated the ability to model temporal dynamics influenced by control signals (musical vs. non-musical stimuli), with control variables being good predictors of temporal sequences.
  • DMSTF achieved higher held-out log-likelihood compared to HTFA on both Autism and Depression datasets, indicating a better model fit.
  • Toy Example: DMSTF accurately recovered the parameters of a synthetic nonlinear dynamical system.
  • Clustering: DMSTF successfully recovered clusters in synthetic fMRI data, corresponding to different groups of activation sources.

Limitations and Future Work

  • Long-Term Prediction: While DMSTF shows promise for long-term prediction (as visualized in the traffic data appendix), the paper primarily focuses on short-term forecasting.
  • Higher-Order Dynamics: The authors suggest extending DMSTF to accommodate higher-order temporal dynamics for more complex sequential modeling. This could involve conditioning temporal latents on multiple previous time steps (e.g., a second-order Markov chain).
  • Computational Cost: While DMSTF is tractable, training on extremely large datasets can still be computationally intensive, though the paper highlights its efficiency compared to alternatives.
  • Discrete Latent for Clustering: The paper mentions approximating the posterior for the discrete clustering latent ($c_n$) with the generative posterior ($p(c_n|z_{n,0})$) to simplify training. Further exploration of more sophisticated variational inference for discrete latents could be beneficial.

Summary updated

BibTeX
@misc{farnoosh2020deep,
  author = {Amirreza Farnoosh and Behnaz Rezaei and Eli Zachary Sennesh and Zulqarnain Khan and Jennifer G. Dy and Ajay B. Satpute and J. Benjamin Hutchinson and Jan-Willem van de Meent and Sarah Ostadabbas},
  title = {{Deep Markov Spatio-Temporal Factorization}},
  year = {2020},
  eprint = {2003.09779},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.09779},
}
Figure