Dynamic Time Warping (DTW) is a well-known similarity measure for time series. The standard dynamic programming approach to compute the DTW distance of two length-$n$ time series, however, requires $O(n^2)$ time, which is often too slow for real-world applications. Therefore, many heuristics have been proposed to speed up the DTW computation. These are often based on approximating or bounding the true DTW distance or considering special input data (e.g. binary or piecewise constant time series). In this paper, we present an exact algorithm to compute the DTW distance of two run-length encoded time series. The worst-case running time is cubic in the encoding length. In practice, however, our algorithm might be faster and used for accurate indexing and classification of time series in combination with preprocessing techniques such as piecewise aggregate approximation (PAA).
翻译:动态时间转换( DTW) 是时间序列的一个众所周知的相似度量。 但是,计算两个长度- 美元时间序列的 DTW 距离的标准动态编程方法需要美元( n) 2美元的时间, 而对于真实世界的应用来说,这个时间序列往往太慢。 因此,为了加速 DTW 的计算,已经提出了许多超自然学建议。 这些方法往往基于接近或约束真正的 DTW 距离,或者考虑特殊输入数据( 如二进制或片分常数时间序列 ) 。 在本文中,我们提出了一个精确的算法来计算两个运行时间序列的 DTW 距离。 最坏的运行时间是编码长度的立方。 然而,在实践中,我们的算法可能更快, 并用于准确的指数化和时间序列分类, 与预处理技术( 如拼图总近值( PAAA) ) 相结合 。