DTW-C++: Fast dynamic time warping and clustering oftime series data

Time-series data analysis is of interest in a huge number of different applications, from finding patterns of energy consumption to detecting brain activity or discovering stock price trends.Unsupervised learning methods can help analysts unlock patterns in data, and a key example of this is clustering.However, clustering of time series data can be computationally expensive for large datasets.We present an approach for computationally efficient dynamic time warping (DTW) and clustering of time-series data.The method frames the dynamic warping of time series datasets as an optimisation problem solved using dynamic programming, and then clusters time series data by solving a second optimisation problem using integer programming.There is also an option to use k-medoids clustering when a certificate for global optimality is not essential.The increased speed of our approach is due to task-level parallelisation and memory efficiency improvements.The method was tested using the UCR Time Series Archive, and was found to be on average 33% faster than the next fastest option when using the same clustering approach.This increases to 64% faster when considering only larger datasets (with more than 1000 time series).The integer programming clustering is most effective on small numbers of longer time series, because the DTW computation is faster than other approaches, but the clustering problem becomes increasingly computationally expensive as the number of time series increases.

Authors

Publication Details

Journal
The Journal of Open Source Software
Published
2024-09-06
DOI
https://doi.org/10.21105/joss.06881
Citations
5
Primary Topic
Time Series Analysis and Forecasting
Type
article
Field-Weighted Citation Impact
1.75

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

DTW-C++: Fast dynamic time warping and clustering oftime series data

David A. Howey, Volkan Kumtepeli, Rebecca Perriment
5 citations
The Journal of Open Source Software
Time Series Analysis and Forecasting
1.75
article

DTW-C++: Fast dynamic time warping and clustering oftime series data

David A. Howey, Volkan Kumtepeli, Rebecca Perriment
article en
5 citations

Abstract

Time-series data analysis is of interest in a huge number of different applications, from finding patterns of energy consumption to detecting brain activity or discovering stock price trends.Unsupervised learning methods can help analysts unlock patterns in data, and a key example of this is clustering.However, clustering of time series data can be computationally expensive for large datasets.We present an approach for computationally efficient dynamic time warping (DTW) and clustering of time-series data.The method frames the dynamic warping of time series datasets as an optimisation problem solved using dynamic programming, and then clusters time series data by solving a second optimisation problem using integer programming.There is also an option to use k-medoids clustering when a certificate for global optimality is not essential.The increased speed of our approach is due to task-level parallelisation and memory efficiency improvements.The method was tested using the UCR Time Series Archive, and was found to be on average 33% faster than the next fastest option when using the same clustering approach.This increases to 64% faster when considering only larger datasets (with more than 1000 time series).The integer programming clustering is most effective on small numbers of longer time series, because the DTW computation is faster than other approaches, but the clustering problem becomes increasingly computationally expensive as the number of time series increases.

The Journal of Open Source SoftwareVol. 9(101)
UK Research and Innovation, Engineering and Physical Sciences Research Council
Openalex Percentile: Top 15%
Time Series Analysis and Forecasting
1.75
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.