Skip to main content
QUICK REVIEW

[Paper Review] A Review and Evaluation of Elastic Distance Functions for Time Series Clustering

Chris Holder, Matthew Middlehurst|arXiv (Cornell University)|May 30, 2022
Time Series Analysis and ForecastingComputer Science33 references6 citations
TL;DR

This paper evaluates nine elastic distance functions for time series clustering using k-means and k-medoids on UCR time series datasets. Surprisingly, dynamic time warping (DTW) underperforms Euclidean distance with k-means, while k-medoids with the move-split-merge (MSM) distance consistently outperforms all others, emerging as the recommended benchmark for elastic distance-based clustering.

ABSTRACT

Time series clustering is the act of grouping time series data without recourse to a label. Algorithms that cluster time series can be classified into two groups: those that employ a time series specific distance measure; and those that derive features from time series. Both approaches usually rely on traditional clustering algorithms such as $k$-means. Our focus is on distance based time series that employ elastic distance measures, i.e. distances that perform some kind of realignment whilst measuring distance. We describe nine commonly used elastic distance measures and compare their performance with k-means and k-medoids clustering. Our findings are surprising. The most popular technique, dynamic time warping (DTW), performs worse than Euclidean distance with k-means, and even when tuned, is no better. Using k-medoids rather than k-means improved the clusterings for all nine distance measures. DTW is not significantly better than Euclidean distance with k-medoids. Generally, distance measures that employ editing in conjunction with warping perform better, and one distance measure, the move-split-merge (MSM) method, is the best performing measure of this study. We also compare to clustering with DTW using barycentre averaging (DBA). We find that DBA does improve DTW k-means, but that the standard DBA is still worse than using MSM. Our conclusion is to recommend MSM with k-medoids as the benchmark algorithm for clustering time series with elastic distance measures. We provide implementations in the aeon toolkit, results and guidance on reproducing results on the associated GitHub repository.

Motivation & Objective

  • To evaluate the performance of nine elastic distance measures in time series clustering using k-means and k-medoids.
  • To determine whether elastic distances improve clustering over Euclidean distance with k-means, as they do in time series classification.
  • To assess the impact of barycenter averaging (DBA) on DTW-based k-means clustering.
  • To identify a robust, reproducible benchmark for evaluating new time series clustering algorithms using elastic distances.
  • To compare computational efficiency and clustering quality across methods, especially under normalization and test set evaluation.

Proposed method

  • Evaluated nine elastic distance measures: Euclidean, DTW, wDTW, MSM, EDR, LCSS, DDTW, ERP, TWE, and WDDTW.
  • Applied k-means and k-medoids clustering on 112 UCR time series datasets after normalizing all series to remove scale bias.
  • Used precomputed distance matrices for k-medoids to improve efficiency and avoid centroid averaging issues.
  • Employed barycenter averaging (DBA) with DTW to refine k-means centroids via alignment and averaging.
  • Reproduced results using the aeon and tslearn libraries for consistent implementation and reproducibility.
  • Evaluated performance on separate test sets rather than training data to avoid overfitting bias.

Experimental results

Research questions

  • RQ1Does using elastic distance measures improve k-means clustering performance compared to Euclidean distance on time series data?
  • RQ2How does k-medoids compare to k-means when using elastic distances for time series clustering?
  • RQ3To what extent does barycenter averaging (DBA) improve DTW-based k-means clustering?
  • RQ4Which elastic distance measure yields the best clustering accuracy across diverse time series datasets?
  • RQ5Is there a computationally efficient and high-performing baseline for evaluating new time series clustering algorithms?

Key findings

  • Dynamic time warping (DTW) with k-means performs worse than Euclidean distance, contradicting its strong performance in time series classification.
  • k-medoids significantly improves clustering performance over k-means for all nine elastic distance measures, indicating that centroid averaging is suboptimal for elastic distances.
  • The move-split-merge (MSM) distance outperforms all other elastic distances, including DTW and TWE, when used with k-medoids.
  • DBA improves DTW-based k-means clustering but still fails to outperform MSM with k-medoids, and incurs a high computational cost.
  • The tslearn implementation of DBA is significantly faster than the original but remains slower than MSM and does not surpass its performance.
  • MSM with k-medoids is recommended as the new benchmark for elastic distance-based time series clustering due to superior accuracy and efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.