Skip to main content
QUICK REVIEW

[Paper Review] Spatio-Temporal Alignments: Optimal transport through space and time

Hicham Janati, Marco Cuturi|arXiv (Cornell University)|Oct 9, 2019
Diffusion and Search DynamicsBiochemistry, Genetics and Molecular Biology19 references7 citations
TL;DR

This paper proposes Spatio-Temporal Alignments (STA), a differentiable metric that combines unbalanced optimal transport for spatial differences and soft-DTW for temporal alignment, enabling joint modeling of spatial and temporal variability in time series data. The method achieves quadratic sensitivity to time shifts and effectively clusters brain imaging and handwritten letter data by capturing both spatial and temporal structure.

ABSTRACT

Comparing data defined over space and time is notoriously hard, because it involves quantifying both spatial and temporal variability, while at the same time taking into account the chronological structure of data. Dynamic Time Warping (DTW) computes an optimal alignment between time series in agreement with the chronological order, but is inherently blind to spatial shifts. In this paper, we propose Spatio-Temporal Alignments (STA), a new differentiable formulation of DTW, in which spatial differences between time samples are accounted for using regularized optimal transport (OT). Our temporal alignments are handled through a smooth variant of DTW called soft-DTW, for which we prove a new property: soft-DTW increases quadratically with time shifts. The cost matrix within soft-DTW that we use are computed using unbalanced OT, to handle the case in which observations are not normalized probabilities. Experiments on handwritten letters and brain imaging data confirm our theoretical findings and illustrate the effectiveness of STA as a dissimilarity for spatio-temporal data.

Motivation & Objective

  • To address the challenge of comparing spatio-temporal data that vary both spatially and temporally while preserving chronological order.
  • To overcome the non-differentiability of Dynamic Time Warping (DTW), which limits its use in end-to-end learning.
  • To develop a unified, differentiable dissimilarity measure that captures both spatial shifts via optimal transport and temporal shifts via soft-DTW.
  • To enable effective clustering and representation learning on spatio-temporal data such as brain imaging and handwritten motion sequences.

Proposed method

  • The method uses soft-DTW as a smooth, differentiable approximation of DTW, which allows gradient-based optimization.
  • Spatial differences between time samples are modeled using unbalanced optimal transport, enabling comparison of non-probabilistic measures.
  • The overall cost is defined as a soft-minimization over alignments, where each alignment's cost combines spatial transport cost (via unbalanced Wasserstein) and temporal alignment cost (via soft-DTW).
  • The formulation leverages entropy regularization to enable efficient computation using Sinkhorn’s algorithm.
  • The resulting dissimilarity, called Spatio-Temporal Alignment (STA), is differentiable and supports backpropagation through both spatial and temporal components.
  • The method is implemented using multi-GPU acceleration to scale to large datasets, such as 200 brain signals with 642 vertices each.

Experimental results

Research questions

  • RQ1How can we design a differentiable metric that jointly models spatial and temporal variability in time series data?
  • RQ2Does soft-DTW exhibit a quadratic sensitivity to temporal shifts, as claimed in the paper?
  • RQ3Can unbalanced optimal transport effectively capture spatial differences in non-probabilistic, non-normalized data such as neural activity or pen trajectories?
  • RQ4To what extent does STA outperform standard soft-DTW in clustering spatio-temporal data with mixed spatial and temporal variations?
  • RQ5How well does STA generalize to real-world datasets such as handwritten letters and simulated brain signals?

Key findings

  • STA successfully captures both spatial and temporal differences in simulated brain signals, with t-SNE visualization showing clear separation of four distinct groups (two regions, two time points) only when β > 0.
  • With β = 0.1, STA achieved effective clustering of 200 simulated brain signals in 10 minutes on a DGX-1, processing over 8 million Sinkhorn iterations.
  • On the handwritten letters dataset, STA outperformed soft-DTW in t-SNE visualization by clearly separating letters based on spatial structure, even when temporal dynamics were similar.
  • The method demonstrated robustness to β values in the handwritten letters experiment, indicating stability across different regularization levels.
  • The full STA dissimilarity matrix for 200 brain signals required approximately 8 million Sinkhorn loops between 642-dimensional vectors, completed efficiently on GPU hardware.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.