Skip to main content
QUICK REVIEW

[Paper Review] Random Warping Series: A Random Features Method for Time-Series Embedding

Lingfei Wu, Ian En-Hsu Yen|arXiv (Cornell University)|Sep 14, 2018
Time Series Analysis and ForecastingComputer Science2 references31 citations
TL;DR

This paper proposes Random Warping Series (RWS), a random features method that transforms time series into explicit vector embeddings using dynamic time warping (DTW) against random series, enabling efficient, scalable kernel-based learning. RWS achieves state-of-the-art accuracy and up to orders-of-magnitude speedup over existing DTW-based methods by reducing computational complexity from quadratic to linear in both sample count and sequence length.

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. A number of global-alignment kernels have since been proposed in the spirit of DTW to extend its use to kernel-based estimation method such as support vector machine. However, those kernels suffer from diagonal dominance of the Gram matrix and a quadratic complexity w.r.t. the sample size. In this work, we study a family of alignment-aware positive definite (p.d.) kernels, with its feature embedding given by a distribution of \\emph{Random Warping Series (RWS)}. The proposed kernel does not suffer from the issue of diagonal dominance while naturally enjoys a \\emph{Random Features} (RF) approximation, which reduces the computational complexity of existing DTW-based techniques from quadratic to linear in terms of both the number and the length of time-series. We also study the convergence of the RF approximation for the domain of time series of unbounded length. Our extensive experiments on 16 benchmark datasets demonstrate that RWS outperforms or matches state-of-the-art classification and clustering methods in both accuracy and computational time. Our code and data is available at { \\url{https://github.com/IBM/RandomWarpingSeries}}.

Motivation & Objective

  • To address the high computational complexity and diagonal dominance issues of DTW-based global alignment kernels in time-series learning.
  • To develop a positive definite kernel for time series that supports efficient random features approximation.
  • To enable linear-time computation for large-scale time-series classification and clustering while preserving or improving accuracy.
  • To extend random features theory to handle time series of unbounded length.
  • To provide a scalable, parallelizable framework that supports flexible elastic distance measures beyond DTW.

Proposed method

  • The method constructs a family of positive definite kernels by computing DTW between input time series and a distribution of random warping series.
  • It employs a random features approximation using R random warping series to linearize the kernel computation, reducing complexity from O(N²L²) to O(NRL).
  • The feature map is defined as the DTW values between each time series and R independently drawn random series from a specified distribution p(ω).
  • The kernel approximation is shown to converge uniformly to the exact kernel with R = Ω(1/ε²) random series for ε-precision.
  • The framework is extensible and can be adapted to other elastic distance measures such as CID and DTDC.
  • The method is fully parallelizable and compatible with standard kernel methods like SVM and K-means clustering.

Experimental results

Research questions

  • RQ1Can a random features approximation of a DTW-based kernel achieve both high accuracy and linear computational complexity in time-series learning?
  • RQ2Does the proposed RWS method mitigate the diagonal dominance problem inherent in global alignment kernels?
  • RQ3Can the random features approximation uniformly converge to the exact kernel for time series of unbounded length?
  • RQ4How does RWS compare to state-of-the-art time-series classification and clustering methods in terms of accuracy and runtime?
  • RQ5Can the RWS framework support a trade-off between accuracy and computational efficiency through adjustable rank R?

Key findings

  • RWS consistently outperforms or matches state-of-the-art methods on 16 benchmark datasets in both classification and clustering accuracy.
  • RWS(SR), using a small rank R, achieves comparable or better accuracy than 1NN-DTW and 1NN-DTW opt while being significantly faster.
  • RWS(LR), with a large rank, achieves superior accuracy to DTWF and TGAK on 11 out of 16 datasets, with one to two orders of magnitude speedup.
  • RWS reduces computational complexity from O(N²L²) to O(NRL) and memory usage from O(NL + N²) to O(NR), enabling scalability to large datasets.
  • In clustering, RWS outperforms KMeans-DTW and CLDS in both accuracy and runtime, and achieves 5 wins, 1 tie, and 2 losses over K-Shape across 8 datasets, with better efficiency.
  • Theoretical analysis confirms that R = Ω(1/ε²) random series suffice for uniform convergence to the exact kernel within ε precision, even for unbounded-length time series.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.