Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/2996913.2996954acmotherconferencesArticle/Chapter ViewAbstractPublication PagesgisConference Proceedingsconference-collections
research-article
Public Access

A simple efficient approximation algorithm for dynamic time warping

Published: 31 October 2016 Publication History

Abstract

Dynamic time warping (DTW) is a widely used curve similarity measure. We present a simple and efficient (1 + ε)- 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([EQUATION]n log σ) for a pair of k-packed curves with a total of n points, assuming that the spreads of P and Q are bounded by σ. 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 efficient 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 efficacy 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.

References

[1]
P. K. Agarwal, K. Fox, J. Pan, and R. Ying. Approximating dynamic time warping and edit distance for a pair of point sequences. In Proc. 32nd Int. Symp. Comp. Geom., pages 6:1--6:16, 2016.
[2]
P. K. Agarwal, S. Har-Peled, and K. R. Varadarajan. Geometric approximation via coresets. In Combinatorial and Computational Geometry (J. E. Goodman, J. Pach, and E. Welzl, eds.), Cambridge Univ. Press, New York, 1--30, 2005.
[3]
G. Al-Naymat, S. Chawla, and J. Taheri. Sparsedtw: A novel approach to speed up dynamic time warping. In Proc. 8th Aus. Data Mining Conf., pages 117--128, 2009.
[4]
T. Brox and J. Malik. Object segmentation by long term analysis of point trajectories. In Proc. 11th Euro. Conf. Comp. Vis., pages 282--295, 2010.
[5]
P. B. Callahan and S. R. Kosaraju. A decomposition of multidimensional point sets with applications to k-nearest-neighbors and n-body potential fields. J. ACM, 42(1):67--90, 1995.
[6]
A. De Luca, A. Hang, F. Brudy, C. Lindner, and H. Hussmann. Touch me once and i know it's you!: implicit authentication based on touch screen patterns. Proc. ACM Conf. Human Factors Comput., pages 987--996, 2012.
[7]
H. Ding, G. Trajcevski, P. Scheuermann, X. Wang, and E. Keogh. Querying and mining of time series data: experimental comparison of representations and distance measures. Proc. VLDB Endow., 1(2):1542--1552, 2008.
[8]
A. Driemel, S. Har-Peled, and C. Wenk. Approximating the Fréchet distance for realistic curves in near linear time. Discrete Comput. Geom., 48:94--127, 2012.
[9]
R. Durbin, editor. Biological Sequence Analysis: Probabalistic Models of Proteins and Nucleic Acids. Cambridge Univ. Press, Cambridge, 1998.
[10]
J. Fischer and V. Heun. Theoretical and practical improvements on the RMQ-problem, with applications to LCA and LCE. In Proc. 17th Annu. Sympos. Combin. Pattern Match., pages 36--48, 2006.
[11]
T. Gasser and K. Wang. Alignment of curves by dynamic time warping. Annals Stat., 25:1251--1276, 1997.
[12]
T. Giorgino. Computing and visualizing dynamic time warping alignments in R: The dtw Package. J. Stat. Software, 31(7), 2009.
[13]
S. Har-Peled. Geometric Approximation Algorithms. American Mathematical Society, Providence, 2011.
[14]
W. Kabsch. A solution for the best rotation to relate two sets of vectors. Acta Crys. Sec. A, 32(5):922--923, 1976.
[15]
J. Kleinberg and E. Tardos. Algorithm Design. Pearson/Addison-Wesley, Boston, 2006.
[16]
R. Kolodny, P. Koehl, and M. Levitt. Comprehensive evaluation of protein structure alignment methods: scoring by geometric measures. J. Mol. Biol., 346(4):1173--1188, 2005.
[17]
J. Matoušek, M. Sharir, and E. Welzl. A subexponential bound for linear programming. Algorithmica, 16(4-5):498--516, 1996.
[18]
M. Munich and P. Perona. Continuous dynamic time warping for translation-invariant curve alignment with applications to signature verification. In Proc. 7th IEEE Int. Conf. Comp. Vis., 1999.
[19]
M. Müller. Information Retrieval for Music and Motion. Springer-Verlag Berlin Heidelberg, 2007.
[20]
N. Padoy and G. D. Hager. Spatio-temporal registration of multiple trajectories. In Proc. 14th Medical Image Comp. Comp.-Asst. Inter., pages 145--152. 2011.
[21]
L. R. Rabiner and B. H. Juang. Fundamentals of Speech Recognition. Prentice Hall, Upper Saddle River, 1993.
[22]
H. Sakoe and S. Chiba. Dynamic programming algorithm optimization for spoken word recognition. IEEE Trans. Acou., Speech, Signal Proc., 26:43--49, 1978.
[23]
Y. Zheng, Q. Li, Y. Chen, X. Xie, and W.-Y. Ma. Understanding mobility based on GPS data. In Proc. 10th ACM Conf. Ubi. Comp., pages 312--321, 2008.
[24]
Y. Zheng, X. Xie, and W.-Y. Ma. Geolife: A collaborative social networking service among user, location and trajectory. IEEE Data Eng. Bull., 33(2):32--39, 2010.
[25]
Y. Zheng, L. Zhang, X. Xie, and W.-Y. Ma. Mining interesting locations and travel sequences from GPS trajectories. In Proc. 18th Int. Conf. World Wide Web, pages 791--800, 2009.
[26]
F. Zhou and F. Torre. Canonical time warping for alignment of human behavior. In Proc. 23rd Annu. Conf. Neural Info. Proc. Sys., pages 2286--2294, 2009.

Cited By

View all
  • (2023)Meta-Learning Based Classification for Moving Object Trajectories in Mobile IoTIEEE Transactions on Big Data10.1109/TBDATA.2022.31958619:2(584-596)Online publication date: 1-Apr-2023
  • (2022)Measurement of micro-harmonic vibration frequency from the modulated self-mixed interferometric signal using dynamic time warping methodMechanical Systems and Signal Processing10.1016/j.ymssp.2021.108712168(108712)Online publication date: Apr-2022
  • (2022)Osprey: a heterogeneous search framework for spatial-temporal similarityComputing10.1007/s00607-022-01075-4104:9(1949-1975)Online publication date: 4-Apr-2022
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
SIGSPACIAL '16: Proceedings of the 24th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems
October 2016
649 pages
ISBN:9781450345897
DOI:10.1145/2996913
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 31 October 2016

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. approximation algorithm
  2. curve matching
  3. dynamic time warping
  4. trajectory analysis

Qualifiers

  • Research-article

Funding Sources

Conference

SIGSPATIAL'16

Acceptance Rates

SIGSPACIAL '16 Paper Acceptance Rate 40 of 216 submissions, 19%;
Overall Acceptance Rate 257 of 1,238 submissions, 21%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)135
  • Downloads (Last 6 weeks)37
Reflects downloads up to 06 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2023)Meta-Learning Based Classification for Moving Object Trajectories in Mobile IoTIEEE Transactions on Big Data10.1109/TBDATA.2022.31958619:2(584-596)Online publication date: 1-Apr-2023
  • (2022)Measurement of micro-harmonic vibration frequency from the modulated self-mixed interferometric signal using dynamic time warping methodMechanical Systems and Signal Processing10.1016/j.ymssp.2021.108712168(108712)Online publication date: Apr-2022
  • (2022)Osprey: a heterogeneous search framework for spatial-temporal similarityComputing10.1007/s00607-022-01075-4104:9(1949-1975)Online publication date: 4-Apr-2022
  • (2019)Scalable and Adaptive Joins for Trajectory Data in Distributed Stream SystemJournal of Computer Science and Technology10.1007/s11390-019-1940-x34:4(747-761)Online publication date: 19-Jul-2019
  • (2018)PigeonringProceedings of the VLDB Endowment10.14778/3275536.327553912:1(28-42)Online publication date: 1-Sep-2018
  • (2018)Subtrajectory ClusteringProceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3196959.3196972(75-87)Online publication date: 27-May-2018
  • (2017)Stitching web tables for improving matching qualityProceedings of the VLDB Endowment10.14778/3137628.313765710:11(1502-1513)Online publication date: 1-Aug-2017
  • (2017)Distributed trajectory similarity searchProceedings of the VLDB Endowment10.14778/3137628.313765510:11(1478-1489)Online publication date: 1-Aug-2017
  • (2017)SquirrelJoinProceedings of the VLDB Endowment10.14778/3137628.313763610:11(1250-1261)Online publication date: 1-Aug-2017
  • (2017)Revenue maximization in incentivized social advertisingProceedings of the VLDB Endowment10.14778/3137628.313763510:11(1238-1249)Online publication date: 1-Aug-2017
  • Show More Cited By

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media