Manuscript Offprint

arXiv:2609.07606

CLUES-WEASEL: No additional clues required to choose your time series clustering algorithm

Johann Faouzi

Abstract

Time series data is very common in many real-world applications and in numerous domains, with increasing interest for automated information extraction using machine learning. One of these subfields is time series clustering, which consists in identifying clusters among a set of time series in an unsupervised fashion. Most time series clustering algorithms suffer from the same balancing act: they trade clustering performance for faster runtimes or vice versa. We present a novel time series clustering algorithm that we call CLUES-WEASEL, which stands for CLustering with the UnsupervisEd Second version of Word ExtrAction for time Series cClassification. CLUES-WEASEL extracts features using the unsupervised version of the transformation step of WEASEL 2.0, which is a time series classification algorithm, then reduces these features using principal component analysis, and finally performs clustering with the k-means algorithm using these reduced extracted features. Through extensive experiments, we prove that CLUES-WEASEL is significantly better than any other existing time series clustering algorithm while being (much) faster than any state-of-the-art one. We also show that the architecture of CLUES-WEASEL can work well with other time series feature extraction algorithms. Our findings highlight the relevance of CLUES-WEASEL for time series clustering.

Keywords: time series clustering, time series, clustering, machine learning, unsupervised learning, feature extraction

1 Introduction

We consider time series as an ordered sequence of real-valued observations (often called univariate time series) sampled at equal frequency. Such data are very common in many real-world applications given their nature. With the increasing availability of sensors as well the development of Internet of things devices, more time series data and applications become available. Numerous varied fields are affected, from econometrics and finance (Perron, 1989) to climate science with weather forecasting (Agrawal, Kumar, Pandey, & Khan, 2012) to geology with earthquake prediction (Amei, Fu, & Ho, 2012).

Clustering is a subfield of machine learning, and more specifically unsupervised learning, aiming at grouping similar samples together, while dissimilar instances belong to different groups (Rokach & Maimon, 2005). Formally, the set of samples is represented as a union of disjoint subsets of samples. Some clustering algorithms always assign a group to every sample, while some samples might not be assigned to any group if they are deemed to be outliers by other clustering algorithms. Popular standard clustering algorithms include k-means (MacQueen, 1967), spectral clustering (von Luxburg, 2007), Gaussian mixtures (Jain & Dubes, 1988), hierarchical clustering (Jain & Dubes, 1988), and density-based spatial clustering of applications with noise (Ester, Kriegel, Sander, & Xu, 1996). Clustering is an essential approach in data analysis for extracting relevant information from unlabeled data, with successful applications in many fields such as transportation and logistics, manufacturing, energy, and healthcare (Oyewole & Thopil, 2023).

Time series clustering consists in performing clustering on time series data and has been employed in various fields, such as healthcare and speech recognition, and for various applications, such as anomaly detection and indexing (Paparrizos, Yang, & Li, 2024). Many algorithms dedicated to time series clustering have been developed. Some of them consist in adapting partition-based clustering algorithms with distances, assignment methods, and averaging functions more specific to time series data (Holder & Bagnall, 2024; Holder, Guijo-Rubio, & Bagnall, 2023a; Ismail-Fawaz, Ismail Fawaz, et al., 2023; Petitjean, Ketterlin, & Gançarski, 2011). Others consist in extracting features from time series and applying a standard clustering algorithms (Jorge & Rubén, 2024; X. Li, Xi, & Lin, 2024; Ruta, Sawada, McKeough, Behrisch, & Beyer, 2019; Tiano, Bonifati, & Ng, 2021; Zakaria, Mueen, & Keogh, 2012; Zhang, Wu, Yang, Tian, & Zhang, 2016).

We present a novel time series clustering algorithm that we call CLUES-WEASEL, which stands for CLustering with the UnsupervisEd Second version of Word ExtrAction for time Series cClassification. CLUES-WEASEL uses the unsupervised version of the transformation step of WEASEL 2.0 (Schäfer & Leser, 2023), which is an algorithm developed for time series classification, to extract features, then performs dimensionality reduction using principal component analysis (PCA) (Gewers et al., 2021) to reduce the feature space, and finally applies the k-means algorithm (Lloyd, 1982; MacQueen, 1967) on these reduced extracted features. We evaluate CLUES-WEASEL on the UCR time series classification archive (Dau et al., 2019) and compare its clustering performance to state-of-the-art time series clustering algorithms. We also investigate the use of other unsupervised transformation algorithms developed for time series classification. Our results show that CLUES-WEASEL delivers state-of-the-art time series clustering performance by a large margin while also being faster than state-of-the-art algorithms. We prove the relevance of other unsupervised transformation algorithms for time series classification, and that the unsupervised version of the transformation of WEASEL 2.0 yields the best results. We also investigate the maximum number of features extracted by the unsupervised version of the transformation step of WEASEL 2.0.

The remaining of this paper is structured as follows. Section 2 provides relevant information about existing time series analysis algorithms, notably for clustering and classification. In Section 3, we describe the architecture of CLUES-WEASEL, the reasoning behind its architecture and which elements were optimized. Section 4 presents the algorithms that we compare CLUES-WEASEL to, as well as the data sets and metrics used to perform these comparisons. We provide the results of all the experiments in Section 5 and perform short exploratory analyses in Section 6 before concluding in Section 7.

References (94)