A simple efficient approximation algorithm for dynamic time warping

Rex Ying, Jiangwei Pan, K. Fox, P. Agarwal
{"title":"A simple efficient approximation algorithm for dynamic time warping","authors":"Rex Ying, Jiangwei Pan, K. Fox, P. Agarwal","doi":"10.1145/2996913.2996954","DOIUrl":null,"url":null,"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.","PeriodicalId":20525,"journal":{"name":"Proceedings of the 24th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2016-10-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"23","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 24th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2996913.2996954","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 23

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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
一种简单有效的动态时间翘曲近似算法
动态时间规整(DTW)是一种应用广泛的曲线相似性度量方法。我们提出了一种简单而有效的(1 + ε)-近似算法,用于对点序列之间的DTW,例如,P和Q,每个点序列都是从曲线上采样的。我们证明了在假设P和Q的扩展以σ为界的条件下,对于一对共n个点的k填充曲线,该算法的运行时间为O([EQUATION]n log σ)。点集的扩展是最大与最小两两距离之比,如果曲线与任何半径为r的盘相交的长度不超过Kr,则称为K-填充曲线。虽然在[1]中提出了一种具有类似渐近时间复杂度的算法,但我们的算法在实践中要简单得多,效率也更高。我们已经实现了我们的算法。我们在合成数据集和真实数据集上的实验表明,在长度为5000或更多的点序列上,它比标准精确DP算法快一个数量级,同时将近似误差保持在5- 10%以内。我们通过在两个应用程序中使用我们的算法来证明其有效性-计算k个与查询轨迹最相似的轨迹,并对一对轨迹运行迭代最近点方法。我们表明,在这些应用程序中,使用我们的算法作为子程序,我们可以实现8- 12倍的加速,而不会在精度上打折扣。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Location corroborations by mobile devices without traces Knowledge-based trajectory completion from sparse GPS samples Particle filter for real-time human mobility prediction following unprecedented disaster Pyspatiotemporalgeom: a python library for spatiotemporal types and operations Fast transportation network traversal with hyperedges: (industrial paper)
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1