arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2102.05221cs.LG
收藏

包含动态时间弯曲的弹性距离的早期放弃和修剪

Early Abandoning and Pruning for Elastic Distances including Dynamic Time Warping

Monash University(莫纳什大学)

Matthieu Herrmann, Geoffrey I. Webb

摘要:

弹性距离下的最近邻搜索是时间序列分析的一个重要工具,支持许多应用。然而,距离的直接实现需要$O(n^2)$空间和时间复杂度,从而阻止这些应用扩展到长系列。许多工作都致力于加快NN搜索过程,主要是下限的发展,允许在超过给定阈值时避免昂贵的距离计算。由相似性搜索过程提供的该阈值还允许提前放弃距离本身的计算。另一种方法是修剪部分计算。所有这些技术都是相互正交的。在这项工作中,我们开发了一个新的通用策略,“EAPruned”,紧密结合修剪与早期放弃。我们将其应用于六个弹性距离措施:DTW,CDTW,WDTW,ERP,MSM和TWE,在NN搜索应用程序中显示出显着的加速。单独修剪也显示了一些距离的显著加速,有利于NN搜索范围之外的应用(例如,需要所有成对距离),因此早期放弃不适用。我们将我们的实现作为一个新的C++库的一部分发布,用于时间序列分类,以及易于使用的Python/Numpy绑定。

英文摘要:

Nearest neighbor search under elastic distances is a key tool for time series analysis, supporting many applications. However, straightforward implementations of distances require $O(n^2)$ space and time complexities, preventing these applications from scaling to long series. Much work has been devoted to speeding up the NN search process, mostly with the development of lower bounds, allowing to avoid costly distance computations when a given threshold is exceeded. This threshold, provided by the similarity search process, also allows to early abandon the computation of a distance itself. Another approach, is to prune parts of the computation. All these techniques are othogonal to each other. In this work, we develop a new generic strategy, "EAPruned", that tightly integrates pruning with early abandoning. We apply it to six elastic distance measures: DTW, CDTW, WDTW, ERP, MSM and TWE, showing substantial speedup in NN search applications. Pruning alone also shows substantial speedup for some distances, benefiting applications beyond the scope of NN search (e.g. requiring all pairwise distances), and hence where early abandoning is not applicable. We~release our implementation as part of a new C++ library for time series classification, along with easy to use Python/Numpy bindings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑