Abstract
Time series data analytics has been a problem of substantial interests for decades, and Dynamic Time Warping (DTW) has been the most widely adopted technique to measure dissimilarity between time series. However, DTW's quadratic complexity and the "diagonal dominance" issue in kernel methods limit its scalability. This paper introduces Random Warping Series (RWS), a novel embedding method that leverages random features to transform variable-length time series into fixed-length vectors, achieving linear complexity and state-of-the-art performance.
Introduction
Analyzing time-series data—such as heartbeats, speech, or stock prices—is inherently difficult because sequences often vary in length and exhibit temporal shifts. The "gold standard" for measuring similarity is Dynamic Time Warping (DTW), which finds an optimal alignment between sequences. However, DTW faces two major hurdles:
- Computational Cost: Pairwise comparisons require $O(N^2 L^2)$ operations, making it prohibitively slow for large datasets.
- Kernel Issues: "Global Alignment" kernels used in machine learning often suffer from "diagonal dominance," where a sequence is significantly more similar to itself than to others, rendering the resulting kernel matrix ineffective for learning.
Methodology: Random Warping Series
The authors propose Random Warping Series (RWS), a "Random Features" approach to time-series embedding. Instead of comparing every pair of time series in a dataset, RWS compares each series to a collection of $R$ random sequences (anchors).
The Core Algorithm
- Generate Random Anchors: Create $R$ random time series ($\omega$) with lengths sampled from a distribution.
- Compute Embeddings: For every input time series $x$, calculate its DTW distance to each of the $R$ random sequences. This produces a fixed-length vector of $R$ numbers—a "signature" or embedding of the original series.
- Linear Learning: These embeddings are then processed by fast linear classifiers, such as a linear SVM.
This approach extends Random Features theory to variable-length sequences. The authors introduce the Minimum Shape-Preserving Length (MSPL) to prove that a finite number of random features can accurately approximate the underlying kernel even for sequences of unbounded length.
Experimental Results
The RWS method was evaluated on 16 real-world benchmark datasets from the UCR archive, including Beef, ECG5T, FordB, Wafer, and NIFECG.
Performance and Scalability
- Accuracy: RWS consistently matched or outperformed 1NN-DTW and other state-of-the-art methods like TSEigen and TSMC.
- Speed: On the HO dataset (the largest tested), RWS achieved a classification time of 43.3 seconds, compared to nearly 13 hours for TSEigen—a 1000x speedup.
- Convergence: Experimental results confirmed that accuracy saturates quickly as the number of random features ($R$) increases, meaning a relatively small number of random series is sufficient for high performance.
Key Insights
- Randomness as a Proxy: Comparing structured signals to random noise provides sufficient discriminatory information for accurate classification.
- Breaking the Quadratic Barrier: Shifting to comparisons against fixed anchors reduces complexity to linear with respect to the number of samples ($O(NR)$).
- Solving Diagonal Dominance: By using the "hard" minimum from DTW rather than a "soft-max" over all alignments, RWS avoids the mathematical smoothing that plagues other kernels.
Conclusion
Random Warping Series offers a scalable and efficient solution for time-series embedding, overcoming the computational and mathematical limitations of traditional DTW-based kernels. Future work will explore different distributions for random series and the application of RWS to unsupervised learning tasks.
Summary updated