Diffeomorphic Temporal Alignment Nets for Time-series Joint Alignment and Averaging
Ron Shapira Weber, Oren Freifeld
TL;DR
This work introduces DTAN, a diffeomorphic temporal alignment network that learns input-dependent warps to jointly align and average time-series in unsupervised or weakly supervised settings. It leverages CPAB-based 1D diffeomorphisms within a Temporal Transformer Net, and introduces ICAE as a regularization-free objective for robust alignment, along with a recurrent variant (RDTAN) and a multi-task version (MT-DTAN) that incorporates classification. The approach achieves state-of-the-art Nearest Centroid Classification (NCC) performance across 128 UCR datasets, while enabling fast inference, variable-length handling, and improved PCA-based dimensionality reduction on aligned data. These results demonstrate scalable, generalizable JA for time-series, with practical impact on preprocessing, classification, and downstream analyses. The findings emphasize the value of diffeomorphic warps and learned alignment in enabling robust statistical analyses of misaligned time-series in real-world datasets.
Abstract
In time-series analysis, nonlinear temporal misalignment remains a pivotal challenge that forestalls even simple averaging. Since its introduction, the Diffeomorphic Temporal Alignment Net (DTAN), which we first introduced (Weber et al., 2019) and further developed in (Weber & Freifeld, 2023), has proven itself as an effective solution for this problem (these conference papers are earlier partial versions of the current manuscript). DTAN predicts and applies diffeomorphic transformations in an input-dependent manner, thus facilitating the joint alignment (JA) and averaging of time-series ensembles in an unsupervised or a weakly-supervised manner. The inherent challenges of the weakly/unsupervised setting, particularly the risk of trivial solutions through excessive signal distortion, are mitigated using either one of two distinct strategies: 1) a regularization term for warps; 2) using the Inverse Consistency Averaging Error (ICAE). The latter is a novel, regularization-free approach which also facilitates the JA of variable-length signals. We also further extend our framework to incorporate multi-task learning (MT-DTAN), enabling simultaneous time-series alignment and classification. Additionally, we conduct a comprehensive evaluation of different backbone architectures, demonstrating their efficacy in time-series alignment tasks. Finally, we showcase the utility of our approach in enabling Principal Component Analysis (PCA) for misaligned time-series data. Extensive experiments across 128 UCR datasets validate the superiority of our approach over contemporary averaging methods, including both traditional and learning-based approaches, marking a significant advancement in the field of time-series analysis.
