Introduction
Aligning time series—finding how two sequences correspond over time—is a foundational task in fields ranging from healthcare (ECG analysis) to finance. The gold standard algorithm, Dynamic Time Warping (DTW), is flexible but faces a major "scalability wall": its computational cost grows quadratically with sequence length ($O(L^2)$). For long signals, it becomes prohibitively slow. Furthermore, DTW is notoriously sensitive to noise and local distortions because it attempts to match every single point in both sequences, often leading to "over-warping" where the algorithm matches noise patterns rather than the underlying signal structure.
The TimePoint Framework
The authors introduce TimePoint (TP), a method inspired by 2D computer vision techniques like SuperPoint. Instead of aligning raw signals, TP identifies "salient" keypoints (like peaks or sharp changes) and computes a high-dimensional descriptor for each.
TP uses a shared encoder based on Wavelet Transform Convolutions (WTConv), allowing the model to capture features at multiple temporal scales efficiently. The encoder is followed by two specialized heads: a Keypoint Decoder that predicts the probability of each time step being a salient keypoint, and a Descriptor Decoder that generates a 256-dimensional vector capturing local context.
Self-Supervised Learning via Diffeomorphisms
Since real-world data lacks ground-truth keypoint labels, the authors use a self-supervised approach. They generate synthetic signals in a new dataset called SynthAlign and warp them using Continuous Piecewise Affine Based (CPAB) transformations. This creates pairs of signals where the exact correspondence between every point is mathematically known, allowing the model to learn to "find the same point" across different warps. This synthetic training generalizes remarkably well to real-world data like ECGs.
Sparse DTW and Key Results
During inference, DTW is performed only on the descriptors of the detected keypoints. This drastically reduces the size of the cost matrix, leading to massive speedups. Matching every point in a noisy signal is often counterproductive; by focusing only on salient keypoints, TimePoint effectively filters out noise, leading to more stable and accurate alignments than standard DTW.
- Massive Speedup: Using only 10% of the original signal length as keypoints yields a 100x speedup over standard DTW. At 20% keypoint usage, the speedup is approximately 65x.
- Improved Accuracy: On the UCR benchmark, TimePoint consistently achieved higher 1-Nearest Neighbor classification accuracy than standard DTW. Fine-tuning on real data provided a 7–8% boost over the synthetic-only model.
- Noise Robustness: In tests with added Gaussian noise and blur, TimePoint maintained significantly higher accuracy than raw DTW, proving that its learned descriptors are far more robust than raw signal values.
Limitations and Future Work
While powerful, TimePoint has some limitations. The current architecture uses a fixed downsampling factor of 8, which might overly compress very short sequences. Additionally, while synthetic training is effective, performance may degrade if real-world temporal distortions differ significantly from the CPAB-based warps used during training. Finally, the current implementation is designed for univariate time series; extending TimePoint to multivariate data is a key direction for future research.
Summary updated