Abstract
In this work, we introduce TS-LDDMM, a novel unsupervised framework that treats time series as geometric shapes. By representing individual signals as deformations of a common reference template, the method extracts highly interpretable features that excel at classification tasks—even when data is irregularly sampled or missing up to 50% of its values.
Introduction
In fields like medicine and biology, researchers often need to quantify "inter-individual variability"—the subtle differences in how different subjects perform the same physiological function, such as a heartbeat or a breath. Standard time series analysis often struggles with two primary challenges:
- The "Shape" Problem: While we intuitively understand the "shape" of an ECG signal, defining it mathematically is difficult. Standard geometric transformations (like rotations) can result in curves where a single time point corresponds to multiple values, which is physically impossible for a signal.
- Irregular Sampling: Real-world sensor data is often messy due to sensor failure, varying sampling rates, and differing signal lengths. Most deep learning models require "rectified" data, which often necessitates lossy interpolation.
Methodology
Geodesic Shooting and LDDMM
The researchers adapt Large Deformation Diffeomorphic Metric Mapping (LDDMM), a powerful framework from computer vision. The core idea is Geodesic Shooting: a "reference" time series is treated as a flexible material. To match this reference to a specific target signal, a "velocity field" is applied to warp the reference over time. The "momentum" required to perform this warp becomes the feature vector (the representation) of that signal.
The "Time Series" Twist (TS-LDDMM)
Standard LDDMM kernels can "break" the time series structure. The authors propose a specific structured kernel ($K_G$) that separates and then integrates time and space transformations. This ensures that no matter how much the signal is deformed, it remains a valid function where every time $t$ has exactly one value $s(t)$.
Handling Irregularity with Oriented Varifolds
To handle irregular sampling, the framework utilizes Oriented Varifolds. Instead of comparing signals point-by-point, signals are treated as a collection of small segments with specific positions and directions. This allows for the computation of distances between signals of different lengths and sampling densities without requiring interpolation.
Experimental Evaluation
The paper validates the method across three distinct areas:
- Synthetic Data: Sine waves with random time-warping to test parameter recovery.
- Mouse Respiratory Cycles: Monitoring nasal and thoracic airflow in control vs. mutant mice exposed to respiratory-altering drugs.
- UCR/UEA Benchmarks: 15 standard shape-based datasets (7 univariate, 8 multivariate) covering diverse domains such as "ArrowHead" and "ECG200."
Key Results
- Superior Classification: TS-LDDMM outperformed state-of-the-art methods, including Neural ODEs and standard LDDMM, in 13 out of 15 benchmark cases.
- Resilience to Data Loss: In tests with 30% and 50% missing data, TS-LDDMM maintained high F1-scores (e.g., 0.83 at 0% missing vs. 0.7 at 50% missing), whereas traditional RNNs and LSTMs experienced sharp performance declines.
- Physiological Interpretability: By applying PCA to the learned deformations of mouse breaths, the first principal component (PC1) mapped directly to total breath duration, while PC2 captured the inhalation/exhalation balance. This allows clinicians to visualize exactly what makes a specific breathing pattern pathological.
Discussion and Future Work
TS-LDDMM demonstrates that treating time series as geometric objects provides a stable and interpretable feature set. By constraining the mathematics to respect the flow of time, the resulting features capture physiological reality rather than mathematical artifacts. Furthermore, the model's ability to "see" the underlying shape through gaps in data makes it uniquely suited for real-world sensor applications.
However, limitations remain. The method relies on kernel computations that can be memory-intensive, though the use of the KeOps library mitigates this. Future work will focus on automated hyperparameter tuning for kernel widths and extending the model to handle highly heterogeneous data through hierarchical clustering.
Summary updated