Faster Retrieval with a Two-Pass Dynamic-Time-Warping Lower Bound

Daniel Lemire
11/20/2008
199 citations
cs.DBcs.CV

Official code: lemire/lbimproved (116 stars, C++, Apache-2.0, last commit 2026-03-31).

Abstract

The Dynamic Time Warping (DTW) is a popular similarity measure between time series. The DTW fails to satisfy the triangle inequality and its computation requires quadratic time.

Show full abstract

Hence, to find closest neighbors quickly, we use bounding techniques. We can avoid most DTW computations with an inexpensive lower bound (LB Keogh). We compare LB Keogh with a tighter lower bound (LB Improved). We find that LB Improved-based search is faster. As an example, our approach is 2-3 times faster over random-walk and shape time series.

View on arXivView PDF

Code Implementations(1)

lemire/lbimprovedOfficial100%
Apache-2.0

Dynamic Time Warping (DTW) library implementing lower bounds (LB_Keogh, LB_Improved...)

11629C++, PythonMar 12, 20158 months agoApache-2.0
c-plus-plusdtwlower-boundswarping

Similar Papers

Cite this paper

@article{lemire2008faster,
  title  = {Faster Retrieval with a Two-Pass Dynamic-Time-Warping Lower Bound},
  author = {Daniel Lemire},
  year   = {2008},
  eprint = {0811.3301},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/0811.3301}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/0811.3301.svg)](https://codeofpaper.com/paper/0811.3301)

Discussion