Towards Efficient Interactive Computation of Dynamic Time Warping Distance
Abstract
The dynamic time warping (DTW) is a widely-used method that allows us to efficiently compare two time series that can vary in speed. Given two strings and of respective lengths and , there is a fundamental dynamic programming algorithm that computes the DTW distance for and together with an optimal alignment in time and space. In this paper, we tackle the problem of interactive computation of the DTW distance for dynamic strings, denoted , where character-wise edit operation (insertion, deletion, substitution) can be performed at an arbitrary position of the strings. Let and be the sizes of the run-length encoding (RLE) of and , respectively. We present an algorithm for that occupies space and uses time to update a compact differential representation of the DP table per edit operation, where denotes the number of cells in whose values change after the edit operation. Our method is at least as efficient as the algorithm recently proposed by Froese et al. running in time, and is faster when is smaller than which, as our preliminary experiments suggest, is likely to be the case in the majority of instances.
Keywords
Cite
@article{arxiv.2005.08190,
title = {Towards Efficient Interactive Computation of Dynamic Time Warping Distance},
author = {Akihiro Nishi and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
journal= {arXiv preprint arXiv:2005.08190},
year = {2020}
}
Comments
Accepted for SPIRE 2020