Journal article
DTW-C++: fast dynamic time warping and clustering of time series data
- 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
- Publication status:
- Published
- Peer review status:
- Peer reviewed
Actions
Access Document
- Files:
-
-
(Preview, Version of record, pdf, 627.0KB, Terms of use)
-
- Publisher copy:
- 10.21105/joss.06881
Authors
- Publisher:
- Open Journals
- Journal:
- Journal of Open Source Software More from this journal
- Volume:
- 9
- Issue:
- 101
- Article number:
- 6881
- Publication date:
- 2024-09-06
- Acceptance date:
- 2024-09-06
- DOI:
- EISSN:
-
2475-9066
- Language:
-
English
- Pubs id:
-
2026423
- Local pid:
-
pubs:2026423
- Deposit date:
-
2024-09-10
- ARK identifier:
Terms of use
- Copyright holder:
- Kumtepeli et al
- Copyright date:
- 2024
- Rights statement:
- © 2024 Authors of papers retain copyright and release the work under a Creative Commons Attribution 4.0 International License (CC BY 4.0).
- Licence:
- CC Attribution (CC BY)
If you are the owner of this record, you can report an update to it here: Report update to this record