FastDTW is approximate and Generally Slower than the Algorithm it Approximates
Preprint
Abstract
Many time series data mining problems can be solved with repeated use of distance measure. Examples of such tasks include similarity search, clustering, classification, anomaly detection and segmentation. For over two decades it has been known that the Dynamic Time Warping (DTW) distance measure is the best measure to use for most tasks, in most domains. Because the classic DTW algorithm has quadratic time complexity, many ideas have been introduced to reduce its amortized time, or to quickly approximate it. One of the most cited approximate approaches is FastDTW. The FastDTW algorithm has well over a thousand citations and has been explicitly used in several hundred research efforts. In this work, we make a surprising claim. In any realistic data mining application, the approximate FastDTW is much slower than the exact DTW. This fact clearly has implications for the community that uses this algorithm: allowing it to address much larger datasets, get exact results, and do so in less time. Our observation also has a more sobering lesson for the community. This work may serve as a reminder to the community to exercise more caution in uncritically accepting published results.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Chatter detection in turning using machine learning and similarity measures of time series via dynamic time warpingJournal of Manufacturing Processes, 2022
- A Low-Cost Smart Glove System for Real-Time Fitness CoachingIEEE Internet of Things Journal, 2020
- Gesture Recognition in RGB Videos Using Human Body Keypoints and Dynamic Time Warping2019
- Speeding up dynamic time warping distance for sparse time series dataKnowledge and Information Systems, 2017
- A real-time spike classification method based on dynamic time warping for extracellular enteric neural recording with large waveform variabilityJournal of Neuroscience Methods, 2016
- Building representative velocity profiles using FastDTW and spectral clustering2015
- The impact of motion dimensionality and bit cardinality on the design of 3D gesture recognizersInternational Journal of Human-Computer Studies, 2013
- Recognizing Human Actions by Learning and Matching Shape-Motion Prototype TreesIEEE Transactions on Pattern Analysis and Machine Intelligence, 2012
- I'm home: Defining and evaluating a gesture set for smart-home controlInternational Journal of Human-Computer Studies, 2011
- Toward accurate dynamic time warping in linear time and spaceIntelligent Data Analysis: An International Journal, 2007