Variational Gaussian-process factor analysis for modeling spatio-temporal data

Jaakko Luttinen, Alexander IlinNeurIPS 2009

TL;DR

This paper introduces Gaussian-Process Factor Analysis (GPFA), a probabilistic model that uses Gaussian Process priors to capture the underlying structure of data varying across both space and time. By combining the dimensionality reduction of factor analysis with the smoothing power of Gaussian Processes—and making it scalable via variational inference—the authors outperform standard methods in reconstructing historical global sea surface temperatures.

The Challenge of Spatio-Temporal Data

Spatio-temporal datasets, such as weather station readings over decades or brain activity across different regions, are notoriously difficult to model. They are often high-dimensional, riddled with missing values, and sampled unevenly.

Standard techniques like Principal Component Analysis (PCA) or Factor Analysis are excellent at finding dominant patterns, but they treat every data point as independent. They ignore the fundamental reality that measurements close together in time or space are usually related.

Conversely, Gaussian Processes (GPs) are the "gold standard" for modeling such correlations. However, they are computationally "heavy": the cost scales cubically with the number of data points ($O(N^3)$), making them unusable for large-scale global datasets. The authors aim to bridge this gap, capturing the structural benefits of GPs with the efficiency of factor models.

Methods: The GPFA Approach

The authors propose a model where the observed data matrix $Y$ is decomposed into a loading matrix $W$ (representing spatial patterns) and a factor matrix $X$ (representing temporal signals): $Y = WX + \text{noise}$.

The model's "secret sauce" lies in its priors and inference strategies:

  1. GP Priors on Both Sides: Unlike previous models that only place a GP on the factors, this model places independent GP priors on both the rows of $X$ (time) and the columns of $W$ (space). This allows the model to learn that time signals should be smooth and spatial patterns should be geographically coherent.
  2. Variational Bayesian (VB) Inference: Because the exact posterior is mathematically intractable, the authors use VB to approximate it. This allows the model to account for uncertainty in its estimates rather than just outputting a single "best guess."
  3. Sparse Approximations: To solve the $O(N^3)$ scaling problem, they use "inducing inputs"—a small set of representative points that summarize the GP. This slashes the computational cost, making it feasible to run on thousands of locations and time steps.
  4. Component-wise Factorization: They further optimize the model by neglecting correlations between different factors, which significantly speeds up the learning process.

Datasets

The model was evaluated on two primary datasets:

  • Artificial Dataset: A synthetic set of 30 sensors and 200 time instances used to verify if the model can correctly separate signals with different characteristics (e.g., periodic vs. slowly changing).
  • MOHSST5 (Historical Sea Surface Temperatures): A real-world dataset from the U.K. Meteorological Office containing monthly temperature anomalies from 1856 to 1991. It covers 1,700 spatial locations over 1,600 time instances. Crucially, 55% of the data is missing, particularly during the 19th century and the World Wars.

Key Insights and Ideas

  • Symmetry is Key: The model treats space and time symmetrically. By performing GP modeling in only one domain at a time (alternating between updating space and updating time), the dimensionality is reduced, making large datasets manageable.
  • Kernel Flexibility: Because they use GPs, the authors can "plug in" different kernels to capture specific phenomena. For the climate data, they used squared exponential kernels for long-term trends and periodic kernels for seasonal cycles.
  • Handling Sparsity: The model excels at "infilling." Because the spatial GP knows that nearby locations should have similar temperatures, it can make highly accurate guesses for regions where no sensors existed in the 1800s.
  • Automatic Pruning: By using specific parameters in the spatial covariance, the model can automatically "prune" unnecessary factors that don't contribute to explaining the data.

Key Results

Signal Separation

In the artificial tests, the model successfully disentangled four different signals (slow-moving, quasi-periodic, and two fast-changing) from a noisy, incomplete dataset.

Reconstruction of artificial data showing observations with missing values (left) and the separated underlying temporal signals (right).

Better Reconstruction and Smoother Patterns

On the historical sea surface temperature (SST) task, GPFA achieved a weighted root mean square error (RMSE) of 0.5714, significantly outperforming the standard Variational Bayesian PCA (VBPCA) score of 0.6180.

Qualitatively, the spatial and temporal patterns recovered by GPFA were much smoother and more physically plausible than those from VBPCA, which often looked noisy or "jagged" in data-sparse regions.

Spatial maps and temporal factors extracted from the historical sea surface temperature dataset.

Limitations and Future Work

While powerful, the proposed GPFA model has a few limitations:

  • Computational Ceiling: Even with sparse approximations, the model is still more demanding than simple PCA. For extremely large datasets, further factorization or more aggressive sparse approximations might be needed.
  • Manual Tuning: The choice of how many factors to assign to specific kernels (e.g., "use 5 factors for periodic signals") was done ad hoc. Future work could involve more automated ways to learn the optimal number and type of factors.
  • Linearity: The model assumes a linear relationship between factors and observations ($Y=WX$). Extending this to a non-linear mapping while maintaining the GP structure is a promising potential future direction.

Summary updated

BibTeX
@inproceedings{luttinen2009variational,
  author = {Jaakko Luttinen and Alexander Ilin},
  title = {{Variational Gaussian-process factor analysis for modeling spatio-temporal data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2009},
  url = {https://openreview.net/forum?id=ByVoaUZOWr},
}
Figure