Averaging Spatio-temporal Signals using Optimal Transport and Soft Alignments

Hicham Janati, Marco Cuturi, Alexandre Gramfort
3/11/2022
stat.MLcs.LG

Official code: hichamjanati/spatio-temporal-alignements (49 stars, Python, BSD-3-Clause, last commit 2025-04-19).

Abstract

Several fields in science, from genomics to neuroimaging, require monitoring populations (measures) that evolve with time. These complex datasets, describing dynamics with both time and spatial components, pose new challenges for data analysis.

Show full abstract

We propose in this work a new framework to carry out averaging of these datasets, with the goal of synthesizing a representative template trajectory from multiple trajectories. We show that this requires addressing three sources of invariance: shifts in time, space, and total population size (or mass/amplitude). Here we draw inspiration from dynamic time warping (DTW), optimal transport (OT) theory and its unbalanced extension (UOT) to propose a criterion that can address all three issues. This proposal leverages a smooth formulation of DTW (Soft-DTW) that is shown to capture temporal shifts, and UOT to handle both variations in space and size. Our proposed loss can be used to define spatio-temporal barycenters as Fréchet means. Using Fenchel duality, we show how these barycenters can be computed efficiently, in parallel, via a novel variant of entropy-regularized debiased UOT. Experiments on handwritten letters and brain imaging data confirm our theoretical findings and illustrate the effectiveness of the proposed loss for spatio-temporal data.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Spatio-temporal alignements: Optimal transport in space and time

498PythonOct 17, 20191 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{janati2022averaging,
  title  = {Averaging Spatio-temporal Signals using Optimal Transport and Soft Alignments},
  author = {Hicham Janati and Marco Cuturi and Alexandre Gramfort},
  year   = {2022},
  eprint = {2203.05813},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.05813}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.05813.svg)](https://codeofpaper.com/paper/2203.05813)

Discussion