Deep Canonical Time Warping

George Trigeorgis, Mihalis A. Nicolaou, Stefanos Zafeiriou, Björn W. SchullerCVPR 2016

Abstract

Machine learning algorithms for the analysis of timeseries often depend on the assumption that the utilised data are temporally aligned. Any temporal discrepancies arising in the data is certain to lead to ill-generalisable models, which in turn fail to correctly capture the properties of the task at hand. The temporal alignment of time-series is thus a crucial challenge manifesting in a multitude of applications. Nevertheless, the vast majority of algorithms oriented towards the temporal alignment of time-series are applied directly on the observation space, or utilise simple linear projections. Thus, they fail to capture complex, hierarchical non-linear representations which may prove to be beneficial towards the task of temporal alignment, particularly when dealing with multi-modal data (e.g., aligning visual and acoustic information). To this end, we present the Deep Canonical Time Warping (DCTW), a method which automatically learns complex non-linear representations of multiple time-series, generated such that (i) they are highly correlated, and (ii) temporally in alignment. By means of experiments on four real datasets, we show that the representations learnt via the proposed DCTW significantly outperform state-of-the-art methods in temporal alignment, elegantly handling scenarios with highly heterogeneous features, such as the temporal alignment of acoustic and visual features.

Introduction

Temporal alignment is a fundamental challenge in time-series analysis, particularly when dealing with multi-modal data where sensor lag, varying action speeds, or differing sampling rates create discrepancies. Traditional methods like Dynamic Time Warping (DTW) operate on raw observation spaces, while Canonical Time Warping (CTW) utilizes linear subspaces. Both struggle with high-dimensional data and the complex, non-linear relationships inherent in real-world sequences, such as mapping raw pixels to acoustic frequencies. Deep Canonical Time Warping (DCTW) addresses these bottlenecks by learning hierarchical non-linear transformations that maximize correlation and alignment simultaneously.

Methodology

DCTW integrates deep neural networks with temporal alignment layers to learn a shared latent space where sequences are both synchronized and highly correlated. The architecture employs separate deep networks for each input sequence to perform spatial transformations.

The DCTW architecture combines deep spatial transformations with temporal alignment layers to optimize for both correlation and alignment.

The model is optimized through an alternating strategy:

  1. Temporal Alignment: Given current feature representations, a variant of DTW finds the optimal warping matrices to align sequences in time.
  2. Feature Learning: With alignment fixed, neural network parameters are updated to maximize correlation between warped sequences by minimizing the nuclear norm of the correlation matrix, a technique inspired by Deep Canonical Correlation Analysis (DCCA).

Key Results

The authors evaluated DCTW on four diverse datasets: the Weizmann human action database, the MMI Facial Expression database, the Wisconsin X-ray Microbeam (XRMB) articulatory dataset, and the CUAVE audio-visual dataset.

Quantitative comparison of alignment error across different methods, demonstrating that DCTW consistently achieves the lowest error rates.

DCTW demonstrated superior accuracy and robustness across all tasks. Notably, on the XRMB dataset (acoustic vs. articulatory data), DCTW achieved an alignment error of 7.19, dramatically outperforming linear CTW (58.92) and Generalized Time Warping (64.06). In facial expression analysis, the method showed significantly higher accuracy in identifying temporal phases (onset, apex, offset) compared to all baseline methods, proving its efficacy in handling highly heterogeneous features.

Conclusion

Deep Canonical Time Warping successfully bridges the gap between deep representation learning and temporal alignment. By optimizing feature extraction and alignment jointly, it handles complex non-linear distortions that traditional methods cannot. Future work may involve incorporating more specialized architectures, such as Convolutional or Recurrent Neural Networks, to further refine alignment for specific data modalities like video and long-term speech.

Summary updated

BibTeX
@inproceedings{trigeorgis2016deep,
  author = {George Trigeorgis and Mihalis A. Nicolaou and Stefanos Zafeiriou and Björn W. Schuller},
  title = {{Deep Canonical Time Warping}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  url = {https://openreview.net/forum?id=H1bQelM_ZB},
}
Figure