A Simple Efficient Approximation Algorithm for Dynamic Time Warping

被引:7
|
作者
Ying, Rex [1 ]
Pan, Jiangwei [2 ]
Fox, Kyle [2 ]
Agarwal, Pankaj K. [2 ]
机构
[1] Stanford Univ, Stanford, CA 94305 USA
[2] Duke Univ, Durham, NC 27706 USA
来源
24TH ACM SIGSPATIAL INTERNATIONAL CONFERENCE ON ADVANCES IN GEOGRAPHIC INFORMATION SYSTEMS (ACM SIGSPATIAL GIS 2016) | 2016年
关键词
Curve matching; dynamic time warping; approximation algorithm; trajectory analysis; SETS;
D O I
10.1145/2996913.2996954
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Dynamic time warping (DTW) is a widely used curve similarity measure. We present a simple and efficient (1 + is an element of)approximation algorithm for DTW between a pair of point sequences, say, P and Q, each of which is sampled from a curve. We prove that the running time of the algorithm is O (k(2) /is an element of n log sigma) for a pair of k-packed curves with a total of n points, assuming that the spreads of P and Q are bounded by sigma. The spread of a point set is the ratio of the maximum to the minimum pairwise distance, and a curve is called k-packed if the length of its intersection with any disk of radius r is at most kr. Although an algorithm with similar asymptotic time complexity was presented in [1], our algorithm is considerably simpler and more e ffi cient in practice. We have implemented our algorithm. Our experiments on both synthetic and real_world data sets show that it is an order of magnitude faster than the standard exact DP algorithm on point sequences of length 5,000 or more while keeping the approximation error within 5-10%. We demonstrate the e ffi cacy of our algorithm by using it in two applications | computing the k most similar trajectories to a query trajectory, and running the iterative closest point method for a pair of trajectories. We show that we can achieve 8-12 times speedup using our algorithm as a subroutine in these applications, without compromising much in accuracy.
引用
收藏
页数:10
相关论文
共 50 条
  • [31] Two-dimensional dynamic time warping algorithm for matrices similarity
    Gao, Cuifang
    Li, Junjie
    Shen, Wanqiang
    Yin, Ping
    INTELLIGENT DATA ANALYSIS, 2022, 26 (04) : 859 - 871
  • [32] Recognizing wrist pulse waveforms with improved dynamic time warping algorithm
    Wang, L
    Wang, KQ
    Xu, LS
    PROCEEDINGS OF THE 2004 INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND CYBERNETICS, VOLS 1-7, 2004, : 3644 - 3649
  • [33] Dynamic time warping distance algorithm application in iterative learning control
    Hao, X. (lzgq66@163.com), 1600, Binary Information Press, P.O. Box 162, Bethel, CT 06801-0162, United States (09):
  • [34] Approximation algorithm for two-dimensional warping
    Uchida, Seiichi
    Sakoe, Hiroaki
    IEICE Transactions on Information and Systems, 2000, E83-D (01) : 109 - 111
  • [35] Parallelizing Dynamic Time Warping Algorithm Using Prefix Computations on GPU
    Xiao, Limin
    Zheng, Yao
    Tang, Wenqi
    Yao, Guangchao
    Ruan, Li
    2013 IEEE 15TH INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE COMPUTING AND COMMUNICATIONS & 2013 IEEE INTERNATIONAL CONFERENCE ON EMBEDDED AND UBIQUITOUS COMPUTING (HPCC_EUC), 2013, : 294 - 299
  • [36] Research of Elderly Fall Detection Based on Dynamic Time Warping Algorithm
    Li Huan
    Yang Yong-li
    PROCEEDINGS OF THE 35TH CHINESE CONTROL CONFERENCE 2016, 2016, : 5190 - 5194
  • [37] PARTIAL SEQUENCE MATCHING USING AN UNBOUNDED DYNAMIC TIME WARPING ALGORITHM
    Anguera, Xavier
    Macrae, Robert
    Oliver, Nuria
    2010 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH, AND SIGNAL PROCESSING, 2010, : 3582 - 3585
  • [38] Application of the dynamic time warping (DTW) algorithm in the trouble-diagnosis
    Li, ZQ
    Han, Y
    ICEMI'2003: PROCEEDINGS OF THE SIXTH INTERNATIONAL CONFERENCE ON ELECTRONIC MEASUREMENT & INSTRUMENTS, VOLS 1-3, 2003, : 1116 - 1118
  • [39] Dynamic Time Warping Inside a Genetic Algorithm for Automatic Speech Recognition
    Maouche, Fadila
    Benmohammed, Mohamed
    MODELLING AND IMPLEMENTATION OF COMPLEX SYSTEMS, 2019, 64 : 180 - 192
  • [40] Speech Dynamic Time Warping Based on Ant Colony Optimization Algorithm
    Wei, Xing
    Yang, Xiaojin
    2013 3RD INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS, COMMUNICATIONS AND NETWORKS (CECNET), 2013, : 602 - 604