Parameterizing the cost function of Dynamic Time Warping with application to time series classification

Matthieu Herrmann, Chang Wei Tan, Geoffrey I. Webb
1/24/2023
cs.LG

No confident code implementation found for this paper.

Abstract

Dynamic Time Warping (DTW) is a popular time series distance measure that aligns the points in two series with one another. These alignments support warping of the time dimension to allow for processes that unfold at differing rates. The distance is the minimum sum of costs of the resulting alignments over any allowable warping of the time dimension. The cost of an alignment of two points is a function of the difference in the values of those points. The original cost function was the absolute value of this difference. Other cost functions have been proposed. A popular alternative is the square of the difference. However, to our knowledge, this is the first investigation of both the relative impacts of using different cost functions and the potential to tune cost functions to different tasks. We do so in this paper by using a tunable cost function λγ with parameter γ. We show that higher values of γ place greater weight on larger pairwise differences, while lower values place greater weight on smaller pairwise differences. We demonstrate that training γ significantly improves the accuracy of both the DTW nearest neighbor and Proximity Forest classifiers.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{herrmann2023parameterizing,
  title  = {Parameterizing the cost function of Dynamic Time Warping with application to time series classification},
  author = {Matthieu Herrmann and Chang Wei Tan and Geoffrey I. Webb},
  year   = {2023},
  eprint = {2301.10350},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.10350v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.10350.svg)](https://codeofpaper.com/paper/2301.10350)

Discussion