Automatic Registration and Convex Clustering of Time Series

Michael Weylandt, George Michailidis

Abstract

Clustering time series data is often complicated by the "registration problem," where signals with identical shapes are misaligned in time. We present TROUT (Temporal Registration using Optimal Unitary Transformations), a framework that integrates a phase-adaptive spectral distance into a convex clustering objective. By automatically aligning signals during the clustering process, TROUT overcomes the limitations of traditional methods like Dynamic Time Warping (DTW) and phase-oblivious spectral clustering.

Introduction

The primary challenge in time series clustering is ensuring that signals are compared based on their inherent structure rather than their absolute temporal positioning. Standard approaches typically rely on pre-registration to a template or flexible matching via Dynamic Time Warping (DTW). However, pre-registration requires prior knowledge of the signal shape, and DTW can be overly flexible, distorting temporal features and incurring high computational costs. TROUT addresses these issues by treating alignment as an optimization problem within the clustering framework.

Methodology

The core of the TROUT framework is a "phase-adaptive" spectral distance. Unlike magnitude-only spectral methods that discard phase information, TROUT identifies the optimal phase shift ($\theta$) to align two signals in the Fourier domain. This is achieved by solving a complex-valued least squares problem, effectively a 1D version of the Unitary Procrustes problem.

Visual comparison of signal alignment and recovery using TROUT versus traditional methods across three synthetic scenarios.

This distance is embedded into a convex clustering formulation with a fusion penalty. As the regularization parameter $\lambda$ increases, the algorithm merges data points into clusters, creating a natural hierarchy. The optimization is handled via a hybrid approach using the Alternating Direction Method of Multipliers (ADMM) and a Majorization-Minimization (MM) step to manage the non-convexity of the alignment phase.

Experimental Results

The authors evaluated TROUT against three synthetic scenarios: distinct shapes (sinusoids, triangle, square), frequency differences, and relative phase differences. The latter is particularly challenging as signals differ only in the internal phase relationship between components.

Quantitative performance comparison (Adjusted Rand Index) of TROUT against baseline methods across varying Signal-to-Noise Ratios (SNR) and phase noise levels (Kappa).

As shown in the performance metrics, TROUT significantly outperforms DTW and Hierarchical Clustering (HC) in high-noise environments. Notably, in the relative phase difference scenario (bottom row of the performance plots), TROUT was the only method capable of recovering the true cluster structure. The algorithm is also computationally efficient, processing clustering paths in approximately 0.08 seconds per $\lambda$ step on standard hardware.

Discussion and Future Work

While TROUT demonstrates robust performance, the current distance measure does not satisfy the triangle inequality, which presents theoretical challenges. Future work aims to extend the framework to multivariate data using tensor-based solutions and to incorporate automatic amplitude scaling. Additionally, integrating feature selection to isolate specific frequency bands could further enhance clustering accuracy in complex datasets.

Conclusion

TROUT provides a powerful, efficient solution for clustering time series subject to random shifts. By combining spectral phase adaptation with convex optimization, it achieves superior registration and grouping compared to state-of-the-art temporal and spectral baselines.

Summary updated

BibTeX
@inproceedings{weylandt2021automatic,
  author = {Michael Weylandt and George Michailidis},
  title = {{Automatic Registration and Convex Clustering of Time Series}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  doi = {10.1109/icassp39728.2021.9414417},
}
Figure