Manuscript Offprint
arXiv:2609.07606CLUES-WEASEL: No additional clues required to choose your time series clustering algorithm
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.
2.1 Distance-based approaches
Computing similarity scores between samples is a common approach in machine learning. For instance, such methods include the k-nearest neighbors (Cover & Hart, 1967; Fix & Hodges, 1989) and support vector machines (Cortes & Vapnik, 1995) algorithms in supervised learning, as well as the k-means (Lloyd, 1982; MacQueen, 1967), hierarchical clustering (Murtagh & Contreras, 2012), t-distributed Stochastic Neighbor Embedding (t-SNE) (van der Maaten & Hinton, 2008), and Uniform Manifold Approximation and Projection (UMAP) (McInnes, Healy, & Melville, 2020) algorithms in unsupervised learning, to name a few. Additionally, for clustering algorithms that compute centroids, an averaging method is necessary to compute the centroid of each cluster. For instance, for the k-means algorithm with the Euclidean distance, the centroid of a cluster is the average of all the samples assigned to this cluster.
For time series analysis, specific metrics have been developed. Dynamic Time Warping (DTW) (Berndt & Clifford, 1994; Sakoe & Chiba, 1978) is an elastic distance that uses dynamic programming to find the optimal alignment between two time series by computing the minimum path through a cost matrix consisting of the pairwise pointwise squared differences. Starting from the starting indices of both time series, each index can be incremented by at most one at every step, and the final indices must be the ending indices of both time series. Several variants of DTW have been developed, some of them adding a region constraint on the possible set of paths (Itakura, 1975; Sakoe & Chiba, 1978) and some others adding weights penalizing alignments with high phase differences (Herrmann & Webb, 2023; Jeong, Jeong, & Omitaomu, 2011). One of them, called Shape-DTW (Zhao & Itti, 2018), uses shape descriptors to encode structural information, computes the optimal warping path on this new representation, and finally applies this optimal path on the original time series. The Move-Split-Merge (MSM) distance (Stefan, Athitsos, & Das, 2013) is inspired by edit distances. It also relies on a cost matrix, but the latter consists of the pairwise point-wise absolute differences. Moreover, a diagonal move on the cost matrix (that is both indices being incremented by one) is penalized contrary to DTW.
2.1.1 Time series classification
The DTW distance and its variants, as well as the MSM distance, have been used in conjunction with the one-nearest-neighbor algorithm for time series classification (Stefan et al., 2013). It should be noted that the MSM distance satisfies the triangle inequality, contrary to the DTW distance, enabling the use of more efficient nearest-neighbor search algorithms (Bentley, 1975; Omohundro, 1989) than the brute-force approach. A one-nearest-neighbor classification algorithm with the DTW distance is still used as a baseline classifier in current time series classification benchmarks.
2.1.2 Time series clustering
Numerous research works have been carried out on times series clustering with distance-based approaches. Some of them have a structure very similar to the standard k-means algorithm, that is:
- Initialization step: The centroid of each cluster is initialized.
- Until a stopping criterion is satisfied, the following two steps are repeated: (a) Assignment step: Each time series is assigned to a cluster using an assignment method based on a distance. (b) Update step: The centroid of each cluster is computed using an averaging function.
There are four key hyperparameters to these approaches: the initialization method, the distance, the assignment method, and the averaging function. For instance, the k-means algorithm uses either the Forgy method (the initial clusters are samples randomly chosen) (Forgy, 1965) or the k-means++ method (Arthur & Vassilvitskii, 2007), the Euclidean distance, the Lloyd's assignment (Lloyd, 1982) (that is the cluster whose centroid is the closest to the sample for the chosen distance), and the mean function. For time series clustering, specific methods have been developed for these four hyperparameters.
The DTW barycenter averaging (DBA) (Petitjean et al., 2011) is an averaging technique aiming at minimizing the sum of squared DTW distances from the average time series to the set of time series. Shape-DBA (Ismail-Fawaz, Ismail Fawaz, et al.,
- uses the Shape-DTW distance and employs an averaging technique aiming at minimizing the sum of squared Shape-DTW distances from the average time series to the set of time series. The MSM distance was also investigated with the k-means algorithm and was found to be the best performing elastic distance compared to nine other elastic distances (Holder, Middlehurst, & Bagnall, 2024). The k-means accelerated stochastic subgradient barycenter average (KASBA) (Holder & Bagnall, 2024) uses the MSM distance, an initialization procedure based on this distance, and a barycenter stochastic gradient descent method as the averaging function.
The MSM distance also been investigated with other partition-based methods, namely k-medoids algorithms, and it was found that the Partition Around Medoids (PAM) (Leonard Kaufman, 1990) was the best performing method in conjunction with this distance (Holder, Guijo-Rubio, & Bagnall, 2023b).
2.2 Feature-based approaches
Feature-based approaches consist in computing statistics from the whole time series.
2.2.1 Time series classification
For time series classification, a standard classification algorithm is applied on top of these computed statistics.
The canonical time series characteristics (Catch22) (Lubba et al., 2019) are 22 features that have been determined to be discriminative on the UCR data sets (Dau et al., 2019), and a decision tree was used to perform classification.
The Time Series Feature Extraction based on Scalable Hypothesis Tests (TSFresh) algorithm (Christ, Braun, Neuffer, & Kempa-Liehr, 2018) is a set of close to 800 features extracted from time series. This set of features can be pruned using statistical tests. Random forest (Breiman, 2001) and AdaBoost (Freund & Schapire, 1996) were the investigated classification algorithms applied on top of these extracted features.
2.2.2 Time series clustering
To the best of our knowledge, these feature-based algorithms have been little used for time series clustering.
The Feature-based Time Series Clustering (FeatTS) algorithm (Tiano et al., 2021) extracts features from time series using TSFresh and performs clustering using k-medoids (Jain & Dubes, 1988) on these features.
The other feature-based time series clustering algorithms that we found are generally specific to some time series types or data sets (Choksi, Jain, & Pindoriya, 2020; A. Li et al., 2023; Räsänen & Kolehmainen, 2009) and have not been evaluated on the UCR time series classification archive (Dau et al., 2019).
2.3 Interval-based approaches
Interval-based methods generate intervals, extract the subseries corresponding to these intervals, and compute statistics from these subseries.
2.3.1 Time series classification
Several interval-based approaches have been developed for time series classification.
The Time Series Forest (TSF) algorithm (Deng, Runger, Tuv, & Vladimir, 2013) computes three statistics for each subseries (the mean, the standard deviation and the slope) and then applies a random forest (Breiman, 2001) on top of this transformation.
The Canonical Interval Forest (CIF) algorithm (Middlehurst, Large, & Bagnall, 2020) is an extension of TSF with more features being extracted. The Diverse Representation Canonical Interval Forest (DrCIF) algorithm (Middlehurst et al., 2021) extends CIF with two additional time series representations: periodograms and first-order differences.
The QUANT algorithm (Dempster, Schmidt, & Webb, 2024) uses fixed dyadic intervals as well as quantiles instead of all other features, but includes four time series representations: raw time series, first- and second-order differences, and Fourier coefficients. The classification algorithm used in conjunction is extremely randomized trees (Geurts, Ernst, & Wehenkel, 2006).
2.3.2 Time series clustering
To the best of our knowledge, no time series clustering algorithm based on interval-based time series classification algorithm has been published as of the time of writing.
2.4 Shapelet-based approaches
Shapelets are subseries extracted from the training time series and used to differentiate time series. To do so, the most commonly used metric is the minimum Euclidean distance between the shapelet and all the subseries, of the same length as the shapelet, extracted from the time series.
2.4.1 Time series classification
For time series classification, shapelets were first investigated in (Ye & Keogh, 2011) and the transformation was followed by a decision tree to perform classification.
The Shapelet Transform Classifier (STC) (Hills, Lines, Baranauskas, Mapp, & Bagnall, 2014) investigates all the possible shapelets from the training set before selecting the most discriminative ones, followed by an ensemble of classifiers. Several refinements have been made since the release of its original version to improve its performance and scalability, notably performing a random search for the shapelets and using a single classification algorithm on top of the transformation (Bostrom & Bagnall, 2017; Bostrom, Bagnall, & Lines, 2016).
The Random Dilated Shapelet Transform (RDST) algorithm (Guillaume, Vrain, & Elloumi, 2022) adds two novel elements to existing shapelet-based approaches. The first one is the use of dilation, meaning that the entries of a shapelet are not necessarily consecutive entries of a training time series: every other entries are used, with being the value of the dilation. The second one is the addition of two new features computed for each shapelet: the position of the minimum distance and the number of occurrences of the shapelet.
2.4.2 Time series clustering
Shapelet-based approaches have also been investigated for time series clustering. The U-Shapelets algorithm (Zakaria et al., 2012) proposed a novel method for unsupervised shapelet searching by maximizing the separation gap between clusters. The Unsupervised Shapelet Learning Model (USLM) algorithm (Zhang et al., 2016) involves a more efficient shapelet learning strategy by jointly optimizing a cost function including both the shapelet transform and the distances.
2.5 Dictionary-based approaches
Dictionary-based methods, similarly to shapelet-based approaches, also extract subseries from time series. However, no distance between the subseries and the time series is computed. Instead, each subseries is turned into a short sequence of discrete symbols, which is usually called a word. The frequencies of the all the words extracted from a time series are then computed to obtain the new representation of this time series. Figure 1 illustrates this pipeline. For time series classification, a standard machine learning classification algorithm is applied on top of this transformation.
There exist two main symbolic representations of time series. The first one, in the time domain, is the Symbolic Aggregate approXimation (SAX) (Lin, Keogh, Wei, & Lonardi, 2007), which performs dimensionality reduction first in the time domain (using the mean from non-overlapping windows) and then in the value domain (using discretization based on quantiles). The second one, in the frequency domain, is the Symbolic Fourier Approximation (SFA) (Schäfer & Höggvist, 2012), which computes the discrete Fourier transform of the time series, selects a subset of the Fourier coefficients, and discretizes them (using quantiles).
2.5.1 Time series classification
The SAX representation has been used for time series classification. Indeed, the authors proposing SAX also proposed a distance between two SAX representations, investigated its use with a nearest-neighbor classification algorithm, and showed that it was competitive with the Euclidean distance while being much faster.
The SAX representation has also been used in conjunction with a vector space model (Senin & Malinchik, 2013). Given the nature of the transformation, the authors proposed to use techniques from natural language processing, notably the term frequency – inverse document frequency. Here, a term is word and a document is a time series. For each class, the frequency of each word is first computed. Then, these frequencies are weighted by the inverse of their frequencies among the classes. This weighing is done to highlight words that are specific to one or few classes in contrary to words that are present in many classes. Thus, a vector is obtained for each class. For a new time series, it is first transformed into a vector of word frequencies, and the predicted class is the class associated with the class vector giving the highest cosine similarity with this vector of word frequencies.
The SFA representation was first introduced for indexing high dimensional data sets, but has also been used in several algorithms developed for time series classification.

(1) Windowing

(2) Discretization

(3) Bag-of-Patterns model
Fig. 1: Transformation of a time series into word counts. From a time series (top), subseries are extracted using overlapping windows (second to top) and are transformed into words (second to bottom), and the word counts are computed (bottom). This type of transformation is the core of dictionary-based approaches. The image is from (Schäfer & Leser, 2017) and the authors have permitted its reuse.
The Bag-of-SFA-Symbols (BOSS) algorithm (Schäfer, 2015b) extracts subseries from a time series using overlapping windows, then transforms each subseries into a word using SFA, and finally the word frequencies are computed. A new distance for this representation was also developed and used in conjunction with a nearest-neighbor classifier to perform classification. An ensemble of BOSS classification algorithms was used in practice, with different values for several hyperparameters. A modified version of BOSS in vector space (Schäfer, 2015a), inspired by SAX-VSM, was proposed as a faster but less accurate alternative to BOSS.

Fig. 2: Differences between the first and second versions of WEASEL, highlighted in red. Compared to the first version, WEASEL 2.0 adds a dilation mapping before the sliding window operator, uses an unsupervised version of SFA, chooses parameters to control the size and memory consumption of the dictionary, and adds randomization to increase variance. The classification algorithm used in WEASEL 1.0 is actually logistic regression and not Ridge. The image is from (Schäfer & Leser, 2023) and the authors have permitted its reuse.
The Word Extraction for Time Series Classification (WEASEL) algorithm (Schäfer & Leser, 2017) involves several new changes compared to BOSS. Notably, the selection of the Fourier coefficients is supervised (using ANOVA tests), the quantization of SFA is also supervised (using information gain), bigrams and multiple window lengths are considered, a subset of words is selected in a supervised fashion (using chi-squared tests), and the classification step is replaced with logistic regression. WEASEL was later refined in a new version called WEASEL 2.0 (Schäfer & Leser, 2023), adding notably a novel dilation mapping, using less supervised selection methods in SFA, and replacing logistic regression with a Ridge classification algorithm. Figure 2 highlights these differences.
2.5.2 Time series clustering
To the best of our knowledge, dictionary-based approaches have not been much used for time series clustering.
The authors who proposed SAX also investigated its use for time series clustering, applying Lloyd's algorithm on top of the SAX representation. Keogh, Lonardi, and Ratanamahatana (2004) proposed a compression-based dissimilarity measure to compare two strings and applied it to time series clustering, with time series being transformed into strings using SAX. Ruta et al. (2019) used agglomerative hierarchical clustering using the SAX representation and its corresponding distance to perform time series clustering. X. Li, Lin, and Zhao (2019) used the SAX representation to transform time series and proposed an ensemble of trees where each split is determined by the presence or absence of a pattern in the transformed time series.
To the best of our knowledge, no time series clustering algorithm using SFA or another algorithm based on SFA has been published as of the time of writing.
2.6 Convolution-based approaches
Convolution is a mathematical operation that has applications in numerous fields such as signal and image processing. In machine learning, a convolution is characterized by a kernel with its weights and its possible bias, as well as its padding and its dilation. In deep learning, convolutional layers, that are the backbones of convolutional neural networks, are characterized by their kernels. Several convolution-based algorithms have been developed for time series classification, which have inspired new algorithms for time series clustering.
2.6.1 Time series classification
Instead of learning the kernels given a specific classification task, it has been proposed to use random kernels for time series classification. This strategy was introduced with the Random Convolutional Kernel Transform (ROCKET) algorithm (Dempster, Petitjean, & Webb, 2020). ROCKET generates numerous random kernels (with random length, weights, bias, padding and dilation), applies the convolution for each of them, and extracts two aggregate features for each of them: the maximum value and the proportion of positive values. Finally, a Ridge classifier is trained on these extracted features.
ROCKET has been extended in two versions. The first one is MiniROCKET (Dempster, Schmidt, & Webb, 2021) which involves much less randomness in the generation of the kernels than ROCKET. Moreover, only the proportion of positive values is extracted from the convolutional outputs. MiniROCKET is faster than ROCKET with very similar performance. The second extension is MultiROCKET (Tan, Dempster, Bergmeir, & Webb, 2022), which adopts the improvements of MiniROCKET but also includes two notable new changes. First, in addition to the proportion of positive values, three new features are extracted from the convolutional output: the mean of positive values, the mean of indices of positive values, and the longest stretch of positive values. Second, half of the convolutions are applied to the first-order difference of the time series.
A model combining both dictionary- and convolution-based approaches, called HYbrid Dictionary-ROCKET Architecture (Hydra) (Dempster, Schmidt, & Webb, 2023), was later proposed. The kernels are aggregated into groups, the best matching kernel among each group is recorded, and their frequencies are computed. The combination of both MultiROCKET and Hydra is a very performing time series classification algorithm while still being fast (Dempster et al., 2023).
2.6.2 Time series clustering
The unsupervised convolution-based transformations developed for time series classification have inspired new algorithms for time series clustering.
R-Clustering (Jorge & Rubén, 2024) uses a modified version of MiniROCKET to extract features, followed by principal component analysis to reduce the dimensionality

Fig. 3: Architecture of CLUES-WEASEL. First, features (word counts) are extracted using the transformation step of WEASEL 2.0 (Schäfer & Leser, 2023). We remove the potential constant features as they are obviously not discriminative. We then standardize the features to have zero mean and unit variance before applying principal component analysis (PCA) for dimensionality reduction. The number of components selected is the smallest one such that the selected components explain 20% of the total explained variance. Finally, the k-means algorithm is applied on these reduced extracted features to predict the clusters.
of the feature space, and finally a k-means algorithm to perform clustering on these reduced features.
RandomNet (X. Li et al., 2024) is a deep neural network composed with random weights and biases. It is an ensemble method with several independent convolutional and recurrent blocks to extract features, followed by k-means algorithms to perform one clustering for each block. Finally, a subset of the clusterings is selected by removing clusterings with too small or large clusters, and the final clustering is computed using bipartite graph partitioning (Fern & Brodley, 2004) from this subset of clusterings. Even though we mentioned that we do not cover artificial neural networks in this section, we included RandomNet because its parameters are random and not learned, similarly to the other convolution-based methods aforementioned.
3 Methodology
In this section, we detail the proposed clustering algorithm and specify which hyperparameters were optimized and the values for hyperparameters that were not optimized.
3.1 Time series clustering algorithm
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 of WEASEL 2.0, then performs dimensionality reduction using PCA, and finally applies the k-means algorithm on these reduced extracted features. Figure 3 highlights the pipeline after hyperparameter optimization. In the remaining of this subsection, we provide more information about each step of CLUES-WEASEL.
3.1.1 Feature extraction
As mentioned in Section 2, a lot of algorithms have been developed for time series classification and clustering. They can be grouped in different categories and, for time series classification, many of them consist in extracting features and then applying a standard classification algorithm. Moreover, most of the recently published algorithms use the same classification algorithm, namely the classification version of Ridge (Hoerl & Kennard, 1970a, 1970b) because of its efficiency to perform leave-one-out cross-validation on the regularization term and to handle multiclass classification tasks. Since we are interested in time series clustering, we are only interested in the feature extraction step. Moreover, since clustering is unsupervised, the feature extraction step needs to be unsupervised (or at least to have an unsupervised version). We choose the feature extraction step of WEASEL 2.0 (Schäfer & Leser, 2023) because of the predictive performance of WEASEL 2.0 and the simplicity of using an unsupervised version of its feature extraction step.
WEASEL 2.0 has a parameter called max_feature_count, which is the upper limit of the number of kept features, to limit the memory footprint. The default value for this parameter is 30,000, and three methods are available to perform this potential selection:
- By default, the feature selection is performed using chi-squared tests, and features with the highest p-values are dropped. This method is supervised and we cannot use it.
- The feature selection can also be totally random. This method is unsupervised.
- The final option is to keep all the features, that is no feature selection is performed, and the max_feature_count parameter is ignored.
We decide to use the default value for the max_feature_count parameter, that is 30,000, and to select features at random if more than 30,000 features are extracted. We justify this choice in the next section as it is related to the dimensionality reduction technique that is used. Our pipeline also removes the potential constant features as they are not discriminative.
3.1.2 Dimensionality reduction
As aforementioned, the first step of many of time series classification algorithms consists in extracting features. For some of them, the default number of features can be very large. For instance, MultiROCKET extracts nearly 50,000 features, RDST extracts 30,000 features, and WEASEL 2.0 extracts at most 30,000 features. The task of figuring out which of these features are useful for the given classification task is left to the classification algorithm, which usually includes regularization or boot-strap aggregating to tackle this large number of features. For time series clustering, we cannot use any supervised method to find the relevant features and their weights. Moreover, we have to take the curse of dimensionality into account: distances in high dimensional space are not always relevant, as the distribution of pairwise distances becomes more and more uniform as the dimensionality increases. For these reasons, we decide to apply dimensionality reduction. Among the different options, we decide to use principal component analysis for two reasons. The first one is that it is a linear dimensionality reduction technique, and so is the classification algorithm of WEASEL 2.0, namely the classification version of Ridge. The second one is the possibility to investigate how much total variance the selected components explain. Before applying
PCA, we standardize the features to have zero mean and unit variance not to give more weights to some features than others because we do not have any a priori information.
Principal component analysis requires computing the singular value decomposition of the input data. The complexity of this decomposition is equal to the number of samples times the square of the number of features. With a quadratic complexity in terms of the number of features, we would like the number of features not to be too high. With the default value of at most 30,000 extracted features selected at random, CLUES-WEASEL is still fast and the required memory is reasonable for modern hardware. We are also aware of incremental versions of PCA that do not process all the samples at once but by batches (Levy & Lindenbaum, 1998; Ross, Lim, Lin, & Yang, 2008), reducing the complexity in terms of the number of samples, but we do not further investigate this approach.
3.1.3 Clustering on reduced extracted features
Now that the feature space is smaller, we can apply a standard clustering algorithm. We choose k-means (MacQueen, 1967) for several reasons. First, it is one of the most popular and standard clustering algorithms. Second, it is an algorithm that can easily and naturally be applied to new unseen data: the predicted cluster is simply the cluster whose centroid is the closest to this new observation. Third, it has already been successfully applied to time series clustering both in this vanilla version with extracted features (Jorge & Rubén, 2024) and in modified versions with time series specific metrics (Cuturi & Blondel, 2017; Holder et al., 2023a; Ismail-Fawaz, Ismail Fawaz, et al., 2023; Paparrizos & Gravano, 2016; Petitjean et al., 2011; Yang & Leskovec, 2011).
3.2 Hyperparameter values and optimization
Among the five steps of the CLUES-WEASEL pipeline, three have hyperparameters that could be optimized: the transformation step of WEASEL 2.0, principal component analysis, and k-means. Performing an exhaustive grid search over many hyperparameters would be computationally intensive. Among those three steps, we assume that the most critical one is principal component analysis. Indeed, WEASEL 2.0 has proven to be a strong time series classification algorithm with the default values for its hyperparameters, so we assume that the default values for the hyperparameters of its transformation step are likely effective. The only change that we make is to replace the supervised feature selection using chi-squared tests with unsupervised feature selection at random, as aforementioned. Likewise, k-means is a popular standard clustering algorithm without many hyperparameters. Centroids are initialized with the k-means++ initialization (Arthur & Vassilvitskii, 2007), which is usually effective in generating good initial centroids, so we use a single initialization to reduce the complexity of CLUES-WEASEL.
The step that we focus on for hyperparameter optimization is thus the dimensionality reduction step using PCA. This technique consists in finding a representation of the data through principal components. The principal components are a sequence of unit vectors such that the i-th vector is the best approximation of the data (i.e., maximizing the explained variance) while being orthogonal to the first i-1 vectors.
The main hyperparameter of PCA is the number of components selected. The upper bound for the number of selected components is equal to minimum between the number of samples and the number of features. For data sets with very different sizes, this can lead to very different upper bounds. Moreover, it seems inappropriate to use a raw value for the number of selected components when some data sets can be orders of magnitude larger than others. However, one of the upsides of PCA is that it provides the variance explained by each component. The explained variances can also be computed as ratios to have the relative variance instead of the raw variance. This information is used in R-Clustering (Jorge & Rubén, 2024): the components that explain less than 1% of the total variance are removed.
Instead of reasoning in terms of variance explained ratio by each component independently, we reason in terms of total explained variance ratio. Since the components are orthogonal, the ratio of variance explained by all the selected components is the sum of the ratios of variance explained by each selected component. For instance, if many components explain less than 1% of the total variance are removed, a lot of information might be lost, while the first ones would still be selected with our approach, until the total variance explained ratio is greater than a given threshold. We investigate the following total explained variance ratios: 100%, 99%, 95%, 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, 10%, and 5%. With our method, the theoretical minimum number of components that are selected is one. We increase this minimum to two, as performing clustering in a one-dimensional space might be too difficult.
4 Experimental setup
4.1 Data sets and algorithms
We use the UCR time series archive (Dau et al., 2019) to assess the performance of CLUES-WEASEL. More precisely, we consider the 128 univariate time series classification data sets from this archive. Out of the 128 data sets, we exclude the ones with variable length time series (since some algorithms do not work on variable length time series) and the ones with missing values (since all the algorithms cannot natively deal with missing values, and we do not want the missing value imputation strategy to have an impact on the results). We end up including 112 data sets, which are the data sets used in most benchmarks. Unless otherwise stated, we use the default training and test splits of the data sets, train the models on the training sets and evaluate their performance on the test sets. Since CLUES-WEASEL includes randomness, all the reported results are the average of 10 runs with different seeds for the random number generators, similarly to (Holder & Bagnall, 2024). We also independently standardize the time series to have zero mean and unit variance before using them as input to CLUES-WEASEL, similarly to (Holder & Bagnall, 2024), even though the debate on this topic is still open (Javed, Lee, & Rizzo, 2020; Rakthanmanon et al., 2013).
We compare CLUES-WEASEL to several other time series clustering algorithms. Since our setup is very similar to the one in (Holder & Bagnall, 2024), we use the results reported in their study and select the best algorithms in different categories. For our main comparisons, we include the following algorithms: KASBA (Holder & Bagnall, 2024), MSM (Holder et al., 2024; Stefan et al., 2013), PAM-MSM (Holder et al., 2023b), DBA (Petitjean et al., 2011), Shape-DBA (Ismail-Fawaz, Ismail Fawaz, et al., 2023), and R-Clustering (Jorge & Rubén, 2024). We also perform less extensive comparisons to other algorithms, such as RandomNet (X. Li et al., 2024) and deep learning algorithms (Lafabregue et al., 2022), since the setups are different.
4.2 Metrics, hyperparameter optimization and comparisons
To evaluate the algorithms, we use four clustering metrics (when available). The first one is clustering accuracy, which is equal to the proportion of correct predictions where each cluster has been assigned to its best matching class. The second one is the adjusted Rand index, which is a version of the Rand index adjusted for chance. The third and fourth ones are the adjusted and normalized mutual information, which are versions of the mutual information adjusted for chance and scaled between 0 and 1 respectively.
To perform hyperparameter optimization, we use a development subset of 41 data sets among the 112 data sets, which is the same subset that was used in the development of ROCKET (Dempster et al., 2020) and R-Clustering (Jorge & Rubén, 2024). In order to obtain the final architecture of CLUES-WEASEL, we compute the clustering accuracy scores for every configuration and for each of the 41 development data sets, compute the mean rank of each combination over the 41 development data sets, and choose the highest ranked combination. We evaluate the algorithms on the remaining 71 data sets, which we call the evaluation subset, to avoid any unfair advantage given to CLUES-WEASEL.
To compare the algorithms on several data sets, we apply several commonly used tools. The first one is a modified version of the critical difference diagram (Demşar, 2006) with the post-hoc Nemenyi test being replaced with a pairwise comparison using the Wilcoxon signed-rank tests and cliques being formed using the Holm correction as recommended in (Benavoli, Corani, & Mangili, 2016; García & Herrera, 2008). As in (Holder & Bagnall, 2024), we use a significance level of 0.05 for all the hypothesis tests. In the critical difference diagrams, we compare the average ranks (for a chosen metric) of several algorithms, and cliques, represented by solid lines, indicate no significant difference between these algorithms. We also use the multiple comparison matrix (Ismail-Fawaz, Dempster, et al., 2023) to highlight pairwise comparisons between several algorithms as well as scatter plots for pairwise comparisons between two algorithms.
We also perform small exploratory analyses on the reduced extracted features used as input to the k-means algorithm. To visualize them in a two-dimensional space, we use the Uniform Manifold Approximation and Projection (UMAP) algorithm (McInnes et al., 2020) as the dimensionality reduction technique.
4.3 Experiments, implementation and reproducibility
All the experiments were run on a MacBook Air (M1, 2020) with 16 GB RAM using Python 3.13.11. We used the following Python packages to implement CLUES-WEASEL:
- aeon (Middlehurst, Ismail-Fawaz, et al., 2024) is a popular Python package dedicated to time series analysis using machine learning. We used the implementation of the transformation step of WEASEL 2.0.
- NumPy (Harris et al., 2020) is a standard Python package for manipulating n-dimensional arrays. We used it to compute the cumulative explained variance ratios of PCA.
- scikit-learn (Pedregosa et al., 2011) is a popular Python package dedicated to machine learning, providing implementations of many algorithms as well as utility tools. We used it to remove the constant features, to standardize the features, as well as their implementation of PCA and k-means.
Additionally, to perform all the experiments, including saving the results and generating the figures, we also used the following Python packages:
- Matplotlib (Hunter, 2007) is a general Python package to create visualizations.
- multi-comp-matrix (Ismail-Fawaz, Dempster, et al., 2023) provides the implementation of the multiple comparison matrix.
- pandas (Wes McKinney, 2010) is a data analysis package that makes working on tabular data very convenient.
- seaborn (Waskom, 2021) is a data visualization package more specific to data science than Matplotlib.
- umap-learn (McInnes, Healy, Saul, & Großberger, 2018) is the official implementation of UMAP.
The source code is publicly available on a GitHub repository.¹ We provide detailed instructions so that our results can be easily reproduced by anyone.
5 Results
We present our results in several sections. Section 5.1 highlights the results of hyperparameter optimization on the 41 development data sets, from which the final architecture of CLUES-WEASEL (described in Figure 3) is derived. In Section 5.2, we provide the results of the comparisons between CLUES-WEASEL and existing time series clustering algorithms. Section 5.3 provides the results of the additional comparisons to other time series clustering algorithms. In Section 5.4, we compare CLUES-WEASEL to other algorithms in terms of runtimes. Section 5.5 highlights the results of our ablation experiments.
5.1 Hyperparameter optimization
As mentioned in Section 3.2, we perform hyperparameter optimization on the number of components extracted by PCA, which is not absolute but based on the total variance explained ratio. We investigate the following values of total explained variance ratio: 100%, 99%, 95%, 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, 10%, and 5%.
Table 1 presents the results for all the total explained variance ratios across the 41 development data sets in terms of clustering accuracy. We compute the mean rank
¹https://github.com/johannfaouzi/CLUES-WEASEL
Table 1: Results in terms of clustering accuracy for all the total variance explained ratios investigated across the 41 development data sets.
| Total variance explained | Mean rank | Winning count |
|---|---|---|
| 20% | 5.280 | 6 |
| 30% | 5.293 | 7 |
| 40% | 5.305 | 5 |
| 50% | 6.171 | 1 |
| 60% | 6.537 | 1 |
| 100% | 6.768 | 0 |
| 10% | 6.890 | 2 |
| 70% | 7.122 | 3 |
| 5% | 7.354 | 1 |
| 80% | 7.720 | 2 |
| 99% | 8.232 | 1 |
| 90% | 9.098 | 2 |
| 95% | 9.232 | 2 |
and the winning count for each total explained variance ratio. These results show non-monotonic relationships between the total explained variance ratios and the mean ranks as well as the winning counts. There is a clear top 3, both in terms of mean ranks and winning counts: 20% of total explained variance ratio obtains a mean rank of 5.280 and a winning count of 6, while 30% of total explained variance ratio obtains a mean rank of 5.293 and a winning count of 7, and 40% of total explained variance ratio obtains a mean rank of 5.305 and a winning count of 5. We choose the 20% of total explained variance ratio as it obtains the lowest mean rank. This choice leads to the final architecture of CLUES-WEASEL, which is highlighted in Figure 3.
5.2 Comparisons to other time series clustering algorithms with the same setup
In this section, we use the results reported in the KASBA (Holder & Bagnall, 2024), which are obtained from the official GitHub repository.²
5.2.1 With cross-validation
We compare CLUES-WEASEL to five state-of-the-art time series clustering algorithms with cross-validation: KASBA (Holder & Bagnall, 2024), MSM (Holder et al., 2024; Stefan et al., 2013), PAM-MSM (Holder et al., 2023b), DBA (Petitjean et al., 2011), Shape-DBA (Ismail-Fawaz, Ismail Fawaz, et al., 2023), and R-Clustering (Jorge & Rubén, 2024). All the algorithms are trained on the default train sets and evaluated on the default test sets. Figure 4 shows the critical difference diagrams comparing the mean ranks of the algorithms for four clustering metrics on the evaluation data sets. For the four clustering metrics, CLUES-WEASEL has a significantly lower mean rank

(a) Clustering accuracy

(b) Adjusted Rand index

(c) Adjusted mutual information

(d) Normalized mutual information
Fig. 4: CLUES-WEASEL against five state-of-the-art time series clustering algorithms with cross-validation. All the algorithms are trained on the default training sets and evaluated on the default test sets. The mean ranks are computed over 60 of the 71 evaluation data sets as the results are missing for 11 data sets for some algorithms because of a too high runtime.
than all the other algorithms. PAM-MSM is the second-best algorithm, followed by Shape-DBA or KASBA (depending on the metric). For more specific comparisons with these three algorithms, we use scatter plots with the predictive performance in terms of clustering accuracy and adjusted Rand index (see Figure 5). CLUES-WEASEL has more wins and a higher median score than the three other algorithms for both metrics. The results are similar when the algorithms are evaluated on all the data sets (see Figure A1).
5.2.2 Without cross-validation
We compare CLUES-WEASEL to five state-of-the-art time series clustering algorithms without cross-validation: KASBA (Holder & Bagnall, 2024), MSM (Holder et al., 2024; Stefan et al., 2013), DBA (Petitjean et al., 2011), Shape-DBA (Ismail-Fawaz, Ismail Fawaz, et al., 2023), k-shape (Paparrizos & Gravano, 2016). All the algorithms are trained and evaluated on the merged training and test sets. Figure 6 shows the critical difference diagrams comparing the mean ranks of the algorithms for four clustering metrics on the evaluation data sets. For the four clustering metrics, CLUES-WEASEL has a significantly lower mean rank than all the other algorithms. Shape-DBA is the second-best algorithm, followed by KASBA, MSM or DBA (depending on the metric). The results are similar when the algorithms are evaluated on all the data sets (see Figure A2).

Wilcoxon test for equality of medians: p-value = 0.024
Paired t-test for equality of means: p-value = 0.021
(a) PAM-MSM – Clustering accuracy
Wilcoxon test for equality of medians: p-value = 0.005
Paired t-test for equality of means: p-value = 0.005
(b) PAM-MSM – Adjusted Rand index

Wilcoxon test for equality of medians: p-value = 0.002
Paired t-test for equality of means: p-value ≤ 1e-3
(c) Shape-DBA – Clustering accuracy
Wilcoxon test for equality of medians: p-value = 0.002
Paired t-test for equality of means: p-value ≤ 1e-3
(d) Shape-DBA – Adjusted Rand index

Wilcoxon test for equality of medians: p-value ≤ 1e-3
Paired t-test for equality of means: p-value ≤ 1e-3
(e) KASBA – Clustering accuracy
Wilcoxon test for equality of medians: p-value ≤ 1e-3
Paired t-test for equality of means: p-value ≤ 1e-3
19
(f) KASBA – Adjusted Rand index
Fig. 5: CLUES-WEASEL against three state-of-the-art time series clustering algorithms in terms of clustering accuracy and adjusted Rand index. All the algorithms are trained on the default training sets and evaluated on the default test sets. Out of the 71 evaluation data sets, the results are available for 70 data sets for PAM-MSM, 61 data sets for Shape-DBA, and 71 data sets for KASBA.

(a) Clustering accuracy
(b) Adjusted Rand index

(c) Adjusted mutual information
(d) Normalized mutual information
Fig. 6: CLUES-WEASEL against five state-of-the-art time series clustering algorithms without cross-validation. All the algorithms are trained and evaluated on the merged training and test sets. The mean ranks are computed over 55 of the 71 evaluation data sets as the results are missing for 16 data sets for some algorithms because of a too high runtime.
5.3 Comparisons to other time series clustering algorithms with different setups
5.3.1 RandomNet
We compare CLUES-WEASEL to RandomNet (Jorge & Rubén, 2024), which is a deep neural network with random parameters. The authors considered the 128 univariate data sets (including the ones with varying length and missing values), used a development subset of 20 data sets, and evaluated the algorithm with the adjusted Rand index. They trained and evaluated RandomNet on the merged training and test sets (without cross-validation). They ran RandomNet 10 times and reported the average adjusted Rand index scores. We use the results available on the official GitHub repository.
We compare CLUES-WEASEL and RandomNet on the intersection of the evaluation data sets (61 data sets) and on all the data sets (112 data sets). Figure 7 shows the corresponding scatter plots. CLUES-WEASEL is significantly better than RandomNet in both cases.
5.3.2 Deep learning
We also compare CLUES-WEASEL to trained deep neural networks using the results of Lafabregue et al. (2022). In this study, the authors trained 296 neural networks with different architectures, pretext losses (losses used to train the neural network in a
https://github.com/Jackxiini/RandomNet

(a) Evaluation data sets
(b) All the data sets
Fig. 7: CLUES-WEASEL against RandomNet without cross-validation in terms of adjusted Rand index. All the algorithms are trained and evaluated on the merged training and test sets. The algorithms are compared on the intersection of the evaluation data sets (left) and on all the data sets (right).
self-supervised fashion), and possibly clustering losses (losses to learn representations that are also suitable for clustering), to learn latent representations. The clustering task was then performed using the k-means algorithm on these learned latent representations. The authors trained the algorithms on the training sets and evaluated their performance on the test sets. However, we identified an issue in the source code. The authors trained the k-means algorithm over on the test sets instead of using the centroids learned on the training sets, which is inappropriate and might lead to overestimating the clustering performance of the algorithms.
The authors trained each algorithm five times and reported the mean scores on the test sets. The results are missing from some combinations of algorithms and data sets due to convergence issues. The authors used the normalized mutual information as their main metric, but also reported the clustering accuracy scores. We use the results available on the official GitHub repository.
In order to select the best algorithms, we use the following procedure. We consider both the normalized mutual information (the main metric in their study) and the clustering accuracy (the main metric in our study). We consider algorithms whose results are available for all the data sets and algorithms whose results are available for at least 92 of the 112 data sets (that is we exclude algorithms with too many missing results as we deem them unreliable). Finally, we consider the top 3 algorithms
https://github.com/blafabregue/TimeSeriesDeepClustering

(a) Clustering accuracy - With missing results
(b) Clustering accuracy - Without missing results

(c) Normalized mutual information - With missing results
(d) Normalized mutual information - Without missing results
Fig. 8: CLUES-WEASEL against state-of-the-art deep learning time series clustering algorithms with cross-validation. For each configuration, the best deep learning algorithms have been selected as the union of the top 3 rankings in terms of mean scores and mean ranks. All the algorithms are trained on the default training sets and evaluated on the default test sets. The mean ranks are computed over the available evaluation data sets.
in terms of mean scores and mean ranks (thus at least three algorithms and at most six, depending on the intersection of both top 3 rankings).
Figure 8 shows the critical difference diagrams for the four configurations on the evaluation data sets. In all the configurations, CLUES-WEASEL is significantly better than all the trained neural networks. The same conclusion holds when evaluating the algorithms on all the 112 data sets (including the 41 development data sets) (see Figure A3).
5.4 Runtimes
Due to limited computational resources, we could not perform exhaustive comparisons in terms of runtimes for existing time series clustering algorithms. There is currently no faster algorithm than KASBA that is performing better than KASBA (Holder & Bagnall, 2024). Moreover, KASBA is orders of magnitude faster than other algorithms with similar clustering performance such as PAM-MSM and Shape-DBA. We thus compare CLUES-WEASEL to KASBA in terms of runtimes.
We ran CLUES-WEASEL and KASBA ten times with ten different seeds for the random number generators. Table 2 presents the results. CLUES-WEASEL is approximately 2.6 times faster than KASBA while being significantly better KASBA and other time series clustering algorithms that take much longer than KASBA. The runtimes of CLUES-WEASEL are also very similar across different seeds, with the slowest run taking only 0.68% more time than the fastest run, compared to 11.94% for KASBA.
Table 2: Runtimes in hours of CLUES-WEASEL and KASBA. The runtimes are the sum of the training runtimes on the default training sets and the inference runtimes on the default test sets over the 112 data sets. The descriptive statistics are computed over ten sequential runs with ten different seeds for the random number generators.
| CLUES-WEASEL | KASBA | |
|---|---|---|
| Minimum | 1.326 | 3.250 |
| Median | 1.331 | 3.476 |
| Mean | 1.331 | 3.467 |
| Maximum | 1.335 | 3.638 |
5.5 Ablation experiments
We perform two types of ablation experiments. First, we investigate the use of other unsupervised transformations from algorithms developed for time series classification. We do not include distance-based approaches as they are not compatible with the architecture of CLUES-WEASEL. Second, we investigate the maximum number of features extracted by the transformation step of WEASEL 2.0.
5.5.1 Use of other unsupervised transformations
For each type of approaches, we select the transformation step of one time series classification algorithm based on the following criteria: ease of using an unsupervised version of the transformation step, and predictive performance on the UCR time series classification archive. Based on a recent review of time series classification algorithms (Middlehurst, Schäfer, & Bagnall, 2024), we choose the transformation steps of the following algorithms: TSFresh (Christ et al., 2018) for feature-based approaches, QUANT (Dempster et al., 2024) for interval-based approaches, RDST (Guillaume et al., 2022) for shapelet-based approaches, and MultiROCKET (Tan et al., 2022) for convolution-based approaches. We also include Hydra (Dempster et al., 2023), which is both a convolution- and dictionary-based approach.
The architecture for each of these algorithms is the same as in Figure 3, except that we replace the transformation step of WEASEL 2.0 with the corresponding transformation. We perform the same type of hyperparameter optimization, that is we investigate the optimal total explained variance ratio for PCA, with the same values. Table 3 presents the mean ranks (in terms of clustering accuracy) over the 41 development data sets for each transformation. The optimal values are 100% for TSFresh, 90% for MultiROCKET, and 70% for Hydra, QUANT and RDST.
Using these optimal values, we evaluate the algorithms on the 71 evaluation data sets. Figure 9 shows the critical difference diagrams comparing the mean ranks of the algorithms for four clustering metrics. The transformation step of WEASEL 2.0
Table 3: Results in terms of clustering accuracy for all the total variance explained ratios investigated across the 41 development data sets for each transformation. The lowest mean rank for each transformation is highlighted in bold.
| Total variance explained | Hydra | MultiROCKET | QUANT | RDST | TSFresh |
|---|---|---|---|---|---|
| 100% | 6.341 | 5.768 | 6.793 | 6.268 | 5.622 |
| 99% | 6.195 | 5.878 | 6.805 | 6.488 | 6.854 |
| 95% | 5.854 | 5.610 | 6.524 | 6.012 | 6.561 |
| 90% | 6.463 | 5.549 | 6.732 | 6.183 | 8.073 |
| 80% | 6.220 | 5.768 | 5.866 | 6.341 | 6.463 |
| 70% | 5.720 | 6.500 | 5.476 | 5.195 | 6.122 |
| 60% | 6.561 | 6.622 | 6.195 | 6.012 | 6.878 |
| 50% | 7.171 | 8.451 | 6.902 | 6.256 | 7.317 |
| 40% | 8.256 | 8.073 | 8.146 | 7.951 | 6.232 |
| 30% | 8.146 | 8.195 | 7.854 | 8.500 | 7.427 |
| 20% | 8.024 | 8.195 | 7.902 | 8.622 | 7.817 |
| 10% | 8.024 | 8.195 | 7.902 | 8.585 | 7.817 |
| 5% | 8.024 | 8.195 | 7.902 | 8.585 | 7.817 |
has the lowest mean rank for all the metrics, followed by RDST, MultiROCKET, Hydra, QUANT, and TSFresh. WEASEL 2.0 is only significantly better than Hydra, QUANT and TSFresh. The multiple comparison matrix (see Figure 10) confirms these results. The same conclusions hold when evaluating the algorithms on the 112 data sets (including the 41 development data sets) (see Figures A4 and A5).
We compare these six new time series clustering algorithms to three existing state-of-the-art time series clustering algorithms. Figure 11 shows the critical difference diagrams comparing the mean ranks of the algorithms for four clustering metrics. Our architecture with the transformation steps of WEASEL 2.0, RDST and MultiROCKET is very competitive compared to these state-of-the-art algorithms, with higher mean ranks and significant differences for some metrics. The results with Hydra, QUANT and TSFresh are less positive, with these algorithms having the highest mean ranks in most cases. The same conclusions hold when evaluating the algorithms on the 112 data sets (including the 41 development data sets) (see Figure A6).
5.5.2 Impact of the maximum feature count
The transformation step of WEASEL 2.0 extracts at most 30,000 features by default, which is also the value used in CLUES-WEASEL. We investigate the use of lower values for this hyperparameter, namely 10,000, 5,000, 1,000, 500, and 200. We perform the same hyperparameter optimization procedure on the total explained variance ratio. Table 4 presents the results, which are consistent with the ones observed with the default values of 30,000: the highest ranks are obtained with total variance explained ratios of 40%, 30%, and 20% to a lesser degree. We select the total variance explained ratio corresponding to the lowest mean rank and obtain the following values: 40% for a maximum feature count of 10,000, and 30% for maximum feature counts of 10,000, 5,000, 1,000, and 200.

(a) Clustering accuracy

(b) Adjusted Rand index

(c) Adjusted mutual information

(d) Normalized mutual information
Fig. 9: WEASEL 2.0 against five transformation steps of state-of-the-art time series classification algorithms. The architectures of these time series clustering algorithms is the same as the one depicted in Figure 3, except that the second step is replaced with the corresponding transformation and that the total variance explained ratio has been optimized for each transformation. All the algorithms are trained on the default training sets and evaluated on the default test sets. The mean ranks are computed over the 71 evaluation data sets.
| WEASEL 2.00.6180 | RDST0.6167 | MultiROCKET0.5999 | Hydra0.5855 | QUANT0.5678 | TSFresh0.5454 | |
|---|---|---|---|---|---|---|
| WEASEL 2.0.0.6180 | Mean-Differencerxc / r=c / r<cWilcoxon p-value | 0.001336 / 0 / 350.9863 | 0.018237 / 0 / 340.3300 | 0.032642 / 0 / 290.0425 | 0.050247 / 0 / 240.0002 | 0.072650 / 0 / 21≤ 1e-04 |
| RDST0.6167 | -0.001335 / 0 / 360.9863 | - | 0.016833 / 0 / 380.3807 | 0.031343 / 1 / 270.0517 | 0.048945 / 1 / 250.0008 | 0.071347 / 1 / 23≤ 1e-04 |
| MultiROCKET.0.5999 | -0.018234 / 0 / 370.3300 | -0.016838 / 0 / 330.3807 | - | 0.014438 / 0 / 330.1709 | 0.032143 / 0 / 280.0032 | 0.054551 / 0 / 20≤ 1e-04 |
| Hydra.0.5855 | -0.032629 / 0 / 420.0425 | -0.031327 / 1 / 430.0517 | -0.014433 / 0 / 380.1709 | - | 0.017733 / 1 / 370.4012 | 0.040144 / 0 / 270.0022 |
| QUANT0.5678 | -0.050224 / 0 / 470.0002 | -0.048925 / 1 / 450.0008 | -0.032128 / 0 / 430.0032 | -0.017737 / 1 / 330.4012 | - | 0.022445 / 0 / 260.0350 |
| TSFresh.0.5454 | -0.072621 / 0 / 50≤ 1e-04 | -0.071323 / 1 / 47≤ 1e-04 | -0.054520 / 0 / 51≤ 1e-04 | -0.040127 / 0 / 440.0022 | -0.022426 / 0 / 450.0350 | If in bold, thenp-value < 0.05 |
Fig. 10: Multiple comparison matrix for 6 unsupervised transformation algorithms in terms of clustering accuracy on the 71 evaluation data sets. All the algorithms are trained on the default training sets and evaluated on the default test sets. In each cell, the mean difference (top), the numbers of wins/ties/losses (middle), and the p-value (unadjusted for multiple comparisons) for a one-sided Wilcoxon sign rank test are highlighted. Bold values indicate significant differences (at the confidence level of 0.05).

(a) Clustering accuracy

(b) Adjusted Rand index

(c) Adjusted mutual information

(d) Normalized mutual information
Fig. 11: WEASEL 2.0 and five transformation steps of state-of-the-art time series classification algorithms against three state-of-the-art time series clustering algorithms. The architectures for these six transformations is the same as the one depicted in Figure 3, except that the second step is replaced with the corresponding transformation and that the total variance explained ratio has been optimized for each transformation. These six algorithms are compared to three state-of-the-art time series clustering algorithms. All the algorithms are trained on the default training sets and evaluated on the default test sets. The mean ranks are computed over 60 of the 71 evaluation data sets as the results are missing for 11 data sets for some algorithms because of a too high runtime.
Using these optimal values, we evaluate CLUES-WEASEL with different maximum feature counts (and different total variance explained ratios) on the 71 evaluation data sets. Figure 12 show the critical difference diagrams comparing the mean ranks of these versions for four clustering metrics. There is clear top 2, with CLUES-WEASEL(5k, 30%) and CLUES-WEASEL(30k, 20%) having the lowest and second-lowest mean ranks respectively, although the difference is not significant. However, CLUES-WEASEL(5k, 30%) is significantly better than all the other configurations except CLUES-WEASEL(30k, 20%). The multiple comparison matrix (see Figure 13) confirms these results. The same conclusions hold when evaluating the algorithms on the 112 data sets (including the 41 development data sets) (see Figures A7 and A8).
6 Exploratory analyses
In this section, we perform short exploratory analyses on the reduced extracted features by our architecture with different feature extraction algorithms. To visualize the results in 2D, we have to potentially perform an additional dimension reduction step
Table 4: Results in terms of clustering accuracy for all the total variance explained ratios (rows) and all the values of the maximum number of features (columns) of CLUES-WEASEL investigated across the 41 development data sets. The lowest mean rank for each transformation is highlighted in bold.
| Total variance explained | 10k | 5k | 1k | 500 | 200 |
|---|---|---|---|---|---|
| 100% | 7.122 | 6.695 | 7.780 | 8.000 | 7.720 |
| 99% | 7.683 | 7.085 | 7.537 | 8.098 | 7.463 |
| 95% | 8.902 | 9.220 | 7.866 | 8.280 | 7.890 |
| 90% | 9.110 | 8.524 | 8.610 | 7.988 | 7.878 |
| 80% | 7.622 | 8.402 | 7.683 | 6.963 | 7.268 |
| 70% | 7.378 | 6.939 | 6.232 | 6.610 | 6.280 |
| 60% | 6.451 | 6.585 | 6.390 | 6.390 | 6.134 |
| 50% | 6.000 | 5.707 | 5.659 | 5.415 | 5.988 |
| 40% | 5.061 | 5.476 | 5.305 | 5.341 | 5.707 |
| 30% | 5.110 | 5.098 | 5.049 | 4.500 | 5.159 |
| 20% | 5.756 | 5.659 | 5.890 | 6.378 | 6.317 |
| 10% | 7.183 | 7.561 | 8.195 | 8.390 | 8.415 |
| 5% | 7.622 | 8.049 | 8.805 | 8.646 | 8.780 |
if the feature space has a larger dimension. We use the Uniform Manifold Approximation and Projection (UMAP) algorithm (McInnes et al., 2020) to project the features in a two-dimensional space. All the algorithms are trained on the default training sets and the visualized reduced extracted features are computed on the default test sets.
Figure 14 shows the results for the Coffee data set. This data set consists of 2 classes with 28 training samples and 28 test samples. It is a very simple data set for which most time series classification algorithms have perfect predictive performance. The results show that the samples are not really clustered into two distinct groups for any algorithm, but samples from the same classes tend to be closer to each other.
Figure 15 shows the results for the Fish data set. This data set consists of 7 classes with 175 training samples and 175 test samples. It is also a simple data set for which most time series classification algorithms have very high predictive performance. The results show that the samples are clustered into groups that are correlated to the true classes for all the algorithms except TSFresh (and QUANT to a lesser extent).
Additional visualization results for other data sets are available in appendices (see Figures B9, B10 and B11).
7 Conclusion
We have presented CLUES-WEASEL, a novel time series clustering algorithm incorporating feature extraction using the unsupervised version of the transformation step of WEASEL 2.0, dimensionality reduction using principal component analysis, and clustering using k-means. The evaluation of CLUES-WEASEL on the UCR time series classification archive has shown that CLUES-WEASEL is significantly better than any existing time series clustering algorithm, while being much faster than other state-of-the-art algorithms. We have proved that the architecture of CLUES-WEASEL can be

(a) Clustering accuracy

(b) Adjusted Rand index

(c) Adjusted mutual information

(d) Normalized mutual information
Fig. 12: CLUES-WEASEL with different maximum feature counts (first value inside the brackets) and total variance explained ratios (second value inside the brackets). All the versions are trained on the default training sets and evaluated on the default test sets. The mean ranks are computed over the 71 evaluation data sets.
used with other feature extraction algorithms, namely RDST and MultiROCKET, to obtain state-of-the-art clustering performance.
Our work still has several limitations. CLUES-WEASEL has a non-negligible memory footprint, especially for large data sets, due to the complexity of principal component analysis (linear in terms of number of samples and quadratic in terms of number of features). This memory footprint might be reduced with the use of fewer extracted features from the transformation step of WEASEL 2.0, as our ablation experiments have shown that it is possible to obtain the similar clustering performance with 5,000 features at most instead of 30,000. Nonetheless, principal component analysis has the advantage of being an extremely fast dimensionality reduction technique. We also select the number of components based on the total variance explained ratio. The current implementation of CLUES-WEASEL uses the PCA implementation of scikit-learn: the whole PCA is performed and the number of components is selected afterwards. We could investigate the use of an iterative version of PCA that is stopped when the total variance explained ratio is above the threshold, but a potential lower runtime is not guaranteed. CLUES-WEASEL would also benefit from being benchmarked on other data sets, as WEASEL 2.0 was also benchmarked on the UCR time series classification archive. However, this remark also applies to other time series clustering algorithms.
In conclusion, CLUES-WEASEL is a very powerful time series clustering algorithm. It is the current state-of-the-art in terms of clustering performance while being really fast, at the cost of relatively high memory footprint for large data sets. We believe that CLUES-WEASEL is a valuable addition to the list of time series clustering algorithms.
| (5k, 30%)0.6205 | (30k, 20%)0.6180 | (500, 30%)0.6152 | (1k, 30%)0.6152 | (10k, 40%)0.6068 | (200, 30%)0.6065 | |
|---|---|---|---|---|---|---|
| (5k, 30%)0.6205 | Mean-Differencer>c / r<c / r<c | 0.002537 / 1 / 33 | 0.005343 / 0 / 28 | 0.005345 / 0 / 26 | 0.013751 / 1 / 19 | 0.014144 / 0 / 27 |
| Wilcoxon p-value | 0.8209 | 0.0342 | 0.0226 | 0.0001 | 0.0041 | |
| -0.002533 / 1 / 370.8209 | - | 0.002841 / 0 / 300.3838 | 0.002842 / 0 / 290.2448 | 0.011244 / 0 / 270.0226 | 0.011644 / 0 / 270.0437 | |
| (500, 30%)0.6152 | -0.005328 / 0 / 43 | -0.002830 / 0 / 41 | - | 0.000036 / 2 / 33 | 0.008436 / 0 / 35 | 0.008739 / 1 / 31 |
| 0.0342 | 0.3838 | 0.8478 | 0.4126 | 0.0373 | ||
| -0.005326 / 0 / 45 | -0.002829 / 0 / 42 | -0.000033 / 2 / 36 | - | 0.008442 / 0 / 29 | 0.008738 / 1 / 32 | |
| (1k, 30%)0.6152 | 0.0226 | 0.2448 | 0.8478 | 0.1488 | 0.1031 | |
| (10k, 40%)0.6068 | -0.013719 / 1 / 51 | -0.011227 / 0 / 44 | -0.008435 / 0 / 36 | -0.008429 / 0 / 42 | - | 0.000441 / 0 / 30 |
| 0.0001 | 0.0226 | 0.4126 | 0.1488 | 0.3714 | ||
| -0.014127 / 0 / 44 | -0.011627 / 0 / 44 | -0.008731 / 1 / 39 | -0.008732 / 1 / 38 | -0.000430 / 0 / 41 | If in bold, thenp-value < 0.05 | |
| (200, 30%)0.6065 | 0.0043 | 0.0437 | 0.0373 | 0.1031 | 0.3714 |
Fig. 13: Multiple comparison matrix for CLUES-WEASEL with different maximum feature counts (first value inside the brackets) and total variance explained ratios (second value inside the brackets) in terms of clustering accuracy on the 71 evaluation data sets. All the versions are trained on the default training sets and evaluated on the default test sets. In each cell, the mean difference (top), the numbers of wins/ties/losses (middle), and the p-value (unadjusted for multiple comparisons) for a one-sided Wilcoxon sign rank test are highlighted. Bold values indicate significant differences (at the confidence level of 0.05).
8 Declarations
All the data sets used in this study are publicly available from the University of California, Riverside Time Series Archive (Dau et al., 2019). They can be downloaded in several ways, either manually from the website or automatically using libraries such as the aeon (Middlehurst, Ismail-Fawaz, et al., 2024) Python package. The whole source code supporting this study is publicly available on a GitHub repository,⁶ with detailed instructions to reproduce all the experiments. The results are also directly available, so that other researchers can easily compare their algorithms with ours. The repository is under the BSD 3-Clause License, making it reusable by other researchers.
No funding was received for conducting this study. The authors have no relevant financial or non-financial interests to disclose. The authors have no conflicts of interest to declare that are relevant to the content of this article. The authors certify that they have no affiliations with or involvement in any organization or entity with any financial interest or non-financial interest in the matter or materials discussed in this manuscript. The authors have no financial or proprietary interests in any material discussed in this article.
⁶https://github.com/johannfaouzi/CLUES-WEASEL

Fig. 14: Visualization of the reduced extracted features by different algorithms on the Coffee data set. All the algorithms are trained on the default train set, and the figure shows the visualization of the reduced extracted features on the test set in a two-dimensional space using UMAP. This data set has two classes and the colors highlight the true classes.

Fig. 15: Visualization of the reduced extracted features by different algorithms on the Fish data set. All the algorithms are trained on the default train set, and the figure shows the visualization of the reduced extracted features on the test set in a two-dimensional space using UMAP. This data set has seven classes and the colors highlight the true classes.
Appendix A Additional results
A.1 Comparisons to other time series clustering algorithms with the same setup
A.1.1 With cross-validation

(a) Clustering accuracy

(b) Adjusted Rand index

(c) Adjusted mutual information

(d) Normalized mutual information
Fig. A1: CLUES-WEASEL against five state-of-the-art time series clustering algorithms with cross-validation. All the algorithms are trained on the default training sets and evaluated on the default test sets. The mean ranks are computed over 101 of the 112 data sets as the results are missing for 11 data sets for some algorithms because of a too high runtime.
A.1.2 Without cross-validation

(a) Clustering accuracy

(b) Adjusted Rand index

(c) Adjusted mutual information

(d) Normalized mutual information
Fig. A2: CLUES-WEASEL against five state-of-the-art time series clustering algorithms without cross-validation. All the algorithms are trained and evaluated on the merged training and test sets. The mean ranks are computed over 93 of the 112 evaluation data sets as the results are missing for 19 data sets for some algorithms because of a too high runtime.
A.2 Comparisons to other time series clustering algorithms with different setups
A.2.1 Deep learning

(a) Clustering accuracy - With missing results
(b) Clustering accuracy - Without missing results

(c) Normalized mutual information - With missing results
(d) Normalized mutual information - Without missing results
Fig. A3: CLUES-WEASEL against state-of-the-art deep learning time series clustering algorithms with cross-validation. For each configuration, the best deep learning algorithms have been selected as the union of the top 3 rankings in terms of mean scores and mean ranks. All the algorithms are trained on the default training sets and evaluated on the default test sets. The mean ranks are computed over all the available data sets.
A.3 Ablation experiments
A.3.1 Use of other unsupervised transformations

(a) Clustering accuracy

(b) Adjusted Rand index

(c) Adjusted mutual information

(d) Normalized mutual information
Fig. A4: WEASEL 2.0 against five transformation steps of state-of-the-art time series classification algorithms. All the algorithms are trained on the default training sets and evaluated on the default test sets. The mean ranks are computed over the 112 data sets (the 71 evaluation data sets and the 41 development data sets).
| WEASEL 2.0 | RDST | MultiROCKET | Hydra | QUANT | TSFresh | |
|---|---|---|---|---|---|---|
| 0.6002 | 0.5896 | 0.5807 | 0.5723 | 0.5578 | 0.5384 | |
| WEASEL 2.0 | Mean-Difference | 0.0106 | 0.0195 | 0.0279 | 0.0424 | 0.0618 |
| r<c / r=c / r<c | 61 / 1 / 50 | 61 / 1 / 50 | 67 / 1 / 44 | 71 / 0 / 41 | 78 / 1 / 33 | |
| Wilcoxon p-value | 0.2051 | 0.0703 | 0.0074 | 0.0001 | ≤ 1e-04 | |
| RDST | -0.0106 | - | 0.0088 | 0.0173 | 0.0318 | 0.0512 |
| 0.5896 | 50 / 1 / 61 | - | 56 / 0 / 56 | 64 / 1 / 47 | 67 / 1 / 44 | 70 / 1 / 43 |
| 0.2051 | 0.2184 | 0.1391 | 0.0024 | 0.0024 | ≤ 1e-04 | |
| MultiROCKET | -0.0195 | -0.0088 | - | 0.0085 | 0.0229 | 0.0424 |
| 0.5807 | 50 / 1 / 61 | 56 / 0 / 56 | - | 59 / 0 / 53 | 60 / 0 / 52 | 77 / 0 / 35 |
| 0.0703 | 0.2184 | 0.4047 | 0.0484 | 0.0484 | ≤ 1e-04 | |
| Hydra | -0.0279 | -0.0173 | -0.0085 | - | 0.0145 | 0.0339 |
| 0.5723 | 44 / 1 / 67 | 47 / 1 / 64 | 53 / 0 / 59 | - | 54 / 2 / 56 | 70 / 0 / 42 |
| 0.0074 | 0.1391 | 0.4047 | 0.4007 | 0.0003 | ||
| QUANT | -0.0424 | -0.0318 | -0.0229 | -0.0145 | - | 0.0194 |
| 0.5578 | 41 / 0 / 71 | 44 / 1 / 67 | 52 / 0 / 60 | 56 / 2 / 54 | - | 71 / 0 / 43 |
| 0.0001 | 0.0024 | 0.0484 | 0.4007 | 0.0032 | ||
| TSFresh | -0.0618 | -0.0512 | -0.0424 | -0.0339 | -0.0194 | If in bold, then p-value < 0.05 |
| 0.5384 | 33 / 1 / 78 | 41 / 1 / 70 | 35 / 0 / 77 | 42 / 0 / 70 | 41 / 0 / 71 | |
| ≤ 1e-04 | ≤ 1e-04 | ≤ 1e-04 | 0.0003 | 0.0032 |
Mean-Difference
Fig. A5: Multiple comparison matrix for 6 unsupervised transformation algorithms in terms of clustering accuracy on the 112 data sets (the 71 evaluation data sets and the 41 development data sets). All the algorithms are trained on the default training sets and evaluated on the default test sets. In each cell, the mean difference (top), the numbers of wins/ties/losses (middle), and the p-value (unadjusted for multiple comparisons) for a one-sided Wilcoxon sign rank test are highlighted. Bold values indicate significant differences (at the confidence level of 0.05).

(a) Clustering accuracy

(b) Adjusted Rand index

(c) Adjusted mutual information

(d) Normalized mutual information
Fig. A6: WEASEL 2.0 and five transformation steps of state-of-the-art time series classification algorithms. The architectures of these time series clustering algorithms is the same as the one depicted in Figure 3, except that the second step is replaced with the corresponding transformation and that the total variance explained ratio has been optimized for each transformation. These six algorithms are compared to three state-of-the-art time series clustering algorithms. All the algorithms are trained on the default training sets and evaluated on the default test sets. The mean ranks are computed over 101 of the 112 evaluation data sets as the results are missing for 11 data sets for some algorithms because of a too high runtime.
A.3.2 Impact of the maximum feature count

(a) Clustering accuracy
(b) Adjusted Rand index

(c) Adjusted mutual information
(d) Normalized mutual information
Fig. A7: CLUES-WEASEL with different maximum feature counts (first value inside the brackets) and total variance explained ratios (second value inside the brackets). All the versions are trained on the default training sets and evaluated on the default test sets. The mean ranks are computed over all the 112 data sets.
| (30k, 20%) | (5k, 30%) | (1k, 30%) | (500, 30%) | (10k, 40%) | (200, 30%) | |
|---|---|---|---|---|---|---|
| 0.6002 | 0.5995 | 0.5958 | 0.5951 | 0.5894 | 0.5857 | |
| (30k, 20%) | Mean-Difference | 0.0007 | 0.0044 | 0.0051 | 0.0108 | 0.0145 |
| 0.6002 | p< fsc / rsc | 56 / 2 / 54 | 69 / 1 / 42 | 66 / 0 / 46 | 66 / 1 / 45 | 73 / 0 / 39 |
| Wilcoxon p-value | 0.8617 | 0.1034 | 0.1679 | 0.0193 | 0.0008 | |
| (5k, 30%) | -0.0007 | 0.0037 | 0.0043 | 0.0101 | 0.0138 | |
| 0.5995 | 54 / 2 / 56 | - | 66 / 0 / 46 | 67 / 2 / 43 | 77 / 1 / 34 | 72 / 1 / 39 |
| 0.8617 | 0.0295 | 0.0410 | 0.0001 | 0.0002 | ||
| (1k, 30%) | -0.0044 | -0.0037 | 0.0007 | 0.0064 | 0.0102 | |
| 0.5958 | 42 / 1 / 69 | 46 / 0 / 66 | - | 53 / 2 / 57 | 63 / 2 / 47 | 65 / 1 / 46 |
| 0.1034 | 0.0295 | 0.7429 | 0.1434 | 0.0047 | ||
| (500, 30%) | -0.0051 | -0.0043 | -0.0007 | 0.0057 | 0.0095 | |
| 0.5951 | 46 / 0 / 66 | 43 / 2 / 67 | 57 / 2 / 53 | - | 58 / 0 / 54 | 69 / 2 / 41 |
| 0.1679 | 0.0410 | 0.7429 | 0.3380 | 0.0008 | ||
| (10k, 40%) | -0.0108 | -0.0101 | -0.0064 | -0.0057 | 0.0038 | |
| 0.5894 | 45 / 1 / 66 | 34 / 1 / 77 | 47 / 2 / 63 | 54 / 0 / 58 | - | 68 / 0 / 44 |
| 0.0193 | 0.0001 | 0.1434 | 0.3380 | 0.0657 | ||
| (200, 30%) | -0.0145 | -0.0138 | -0.0102 | -0.0095 | -0.0038 | If in bold, then p-value < 0.05 |
| 0.5857 | 39 / 0 / 73 | 39 / 1 / 72 | 46 / 1 / 65 | 41 / 2 / 69 | 44 / 0 / 68 | |
| 0.0008 | 0.0002 | 0.0047 | 0.0008 | 0.0657 |
Fig. A8: Multiple comparison matrix for CLUES-WEASEL with different maximum feature counts (first value inside the brackets) and total variance explained ratios (second value inside the brackets) in terms of clustering accuracy on all the 112 data sets. All the versions are trained on the default training sets and evaluated on the default test sets. In each cell, the mean difference (top), the numbers of wins/ties/losses (middle), and the p-value (unadjusted for multiple comparisons) for a one-sided Wilcoxon sign rank test are highlighted. Bold values indicate significant differences (at the confidence level of 0.05).
Appendix B Exploratory analyses

Fig. B9: Visualization of the reduced extracted features by different algorithms on the Car data set. All the algorithms are trained on the default train set, and the figure shows the visualization of the reduced extracted features on the test set in a two-dimensional space using UMAP. This data set has four classes and the colors highlight the true classes.

Fig. B10: Visualization of the reduced extracted features by different algorithms on the MiddlePhalanxTW data set. All the algorithms are trained on the default train set, and the figure shows the visualization of the reduced extracted features on the test set in a two-dimensional space using UMAP. This data set has six classes and the colors highlight the true classes.


Hydra
RDST

QUANT
TSFresh


Fig. B11: Visualization of the reduced extracted features by different algorithms on the Symbols data set. All the algorithms are trained on the default train set, and the figure shows the visualization of the reduced extracted features on the test set in a two-dimensional space using UMAP. This data set has six classes and the colors highlight the true classes.
References
Agrawal, A., Kumar, V., Pandey, A., Khan, I. (2012). An application of time series analysis for weather forecasting. International Journal of Engineering Research and Applications, 2(2), 974–980,
Amei, A., Fu, W., Ho, C.-H. (2012). Time series analysis for predicting the occurrences of large scale earthquakes. International Journal of Applied Science and Technology, 2(7), ,
Arthur, D., & Vassilvitskii, S. (2007, January). K-means++: The advantages of careful seeding. Proceedings of the eighteenth annual ACM-SIAM symposium on Discrete algorithms (pp. 1027–1035). USA: Society for Industrial and Applied Mathematics.
Benavoli, A., Corani, G., Mangili, F. (2016). Should We Really Use Post-Hoc Tests Based on Mean-Ranks? Journal of Machine Learning Research, 17(5), 1–10,
Bentley, J.L. (1975, September). Multidimensional binary search trees used for associative searching. Commun. ACM, 18(9), 509–517, https://doi.org/10.1145/361002.361007
Berndt, D.J., & Clifford, J. (1994, July). Using dynamic time warping to find patterns in time series. Proceedings of the 3rd International Conference on Knowledge Discovery and Data Mining (pp. 359–370). Seattle, WA: AAAI Press.
Bostrom, A., & Bagnall, A. (2017). Binary shapelet transform for multiclass time series classification (extended version). A. Hameurlain, J. Küng, R. Wagner, S. Madria, & T. Hara (Eds.), Transactions on Large-Scale Data- and Knowledge-Centered Systems XXXII (Vol. 10420, pp. 24–46). Springer.
Bostrom, A., Bagnall, A., Lines, J. (2016). Evaluating Improvements to the Shapelet Transform. Second SIGKDD Workshop on Mining and Learning from Time Series.
Breiman, L. (2001, October). Random Forests. Machine Learning, 45(1), 5–32, https://doi.org/10.1023/A:1010933404324
Choksi, K.A., Jain, S., Pindoriya, N.M. (2020, June). Feature based clustering technique for investigation of domestic load profiles and probabilistic variation assessment: Smart meter dataset. Sustainable Energy, Grids and Networks, 22, 100346, https://doi.org/10.1016/j.segan.2020.100346
Christ, M., Braun, N., Neuffer, J., Kempa-Liehr, A.W. (2018, September). Time Series FeatuRe Extraction on basis of Scalable Hypothesis tests (tsfresh – A Python package). Neurocomputing, 307, 72–77, https://doi.org/10.1016/j.neucom.2018.03.067
Cortes, C., & Vapnik, V. (1995, September). Support-Vector Networks. Machine Learning, 20(3), 273–297, https://doi.org/10.1023/A:1022627411411
Cover, T., & Hart, P. (1967, January). Nearest neighbor pattern classification. IEEE Transactions on Information Theory, 13(1), 21–27, https://doi.org/10.1109/TIT.1967.1053964
Cuturi, M., & Blondel, M. (2017, August). Soft-DTW: A differentiable loss function for time-series. Proceedings of the 34th International Conference on Machine Learning - Volume 70 (pp. 894–903). Sydney, NSW, Australia: JMLR.org.
Dau, H.A., Bagnall, A., Kamgar, K., Yeh, C.-C.M., Zhu, Y., Gharghabi, S., ... Keogh, E. (2019, November). The UCR time series archive. IEEE/CAA Journal of Automatica Sinica, 6(6), 1293–1305, https://doi.org/10.1109/JAS.2019.1911747
Dempster, A., Petitjean, F., Webb, G.I. (2020, September). ROCKET: Exceptionally fast and accurate time series classification using random convolutional kernels. Data Mining and Knowledge Discovery, 34(5), 1454–1495, https://doi.org/10.1007/s10618-020-00701-z
Dempster, A., Schmidt, D.F., Webb, G.I. (2021, August). MiniRocket: A Very Fast (Almost) Deterministic Transform for Time Series Classification. Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining (pp. 248–257). New York, NY, USA: Association for Computing Machinery.
Dempster, A., Schmidt, D.F., Webb, G.I. (2023, September). Hydra: Competing convolutional kernels for fast and accurate time series classification. Data Mining and Knowledge Discovery, 37(5), 1779–1805, https://doi.org/10.1007/s10618-023-00939-3
Dempster, A., Schmidt, D.F., Webb, G.I. (2024, July). Quant: A minimalist interval method for time series classification. Data Mining and Knowledge Discovery, 38(4), 2377–2402, https://doi.org/10.1007/s10618-024-01036-9
Demşar, J. (2006). Statistical Comparisons of Classifiers over Multiple Data Sets. Journal of Machine Learning Research, 7(1), 1–30,
Deng, H., Runger, G., Tuv, E., Vladimir, M. (2013, August). A time series forest for classification and feature extraction. Information Sciences, 239, 142–153, https://doi.org/10.1016/j.ins.2013.02.030
Ester, M., Kriegel, H.-P., Sander, J., Xu, X. (1996, August). A density-based algorithm for discovering clusters in large spatial databases with noise. Proceedings of the Second International Conference on Knowledge Discovery and Data Mining (pp. 226–231). Portland, Oregon: AAAI Press.
Fern, X.Z., & Brodley, C.E. (2004, July). Solving cluster ensemble problems by bipartite graph partitioning. Proceedings of the twenty-first international conference on Machine learning (p. 36). New York, NY, USA: Association for Computing Machinery.
Fix, E., & Hodges, J.L. (1989). Discriminatory Analysis. Nonparametric Discrimination: Consistency Properties. International Statistical Review / Revue Internationale de Statistique, 57(3), 238–247, https://doi.org/10.2307/14037971403797
Forgy, E.W. (1965). Cluster analysis of multivariate data: efficiency versus interpretability of classifications. biometrics, 21, 768–769,
Freund, Y., & Schapire, R.E. (1996, July). Experiments with a new boosting algorithm. Proceedings of the Thirteenth International Conference on International Conference on Machine Learning (pp. 148–156). San Francisco, CA, USA: Morgan Kaufmann Publishers Inc.
García, S., & Herrera, F. (2008). An Extension on “Statistical Comparisons of Classifiers over Multiple Data Sets” for all Pairwise Comparisons. Journal of Machine Learning Research, 9(89), 2677–2694,
Geurts, P., Ernst, D., Wehenkel, L. (2006, April). Extremely randomized trees. Machine Learning, 63(1), 3–42, https://doi.org/10.1007/s10994-006-6226-1
Gewers, F.L., Ferreira, G.R., Arruda, H.F.D., Silva, F.N., Comin, C.H., Amancio, D.R., Costa, L.D.F. (2021, May). Principal Component Analysis: A Natural Approach to Data Exploration. ACM Comput. Surv., 54(4), 70:1–70:34, https://doi.org/10.1145/3447755
Guillaume, A., Vrain, C., Elloumi, W. (2022, June). Random Dilated Shapelet Transform: A New Approach for Time Series Shapelets. Pattern Recognition and Artificial Intelligence: Third International Conference, ICPRAI 2022, Paris, France, June 1–3, 2022, Proceedings, Part I (pp. 653–664). Berlin, Heidelberg: Springer-Verlag.
Harris, C.R., Millman, K.J., van der Walt, S.J., Gommers, R., Virtanen, P., Cournapeau, D., ... Oliphant, T.E. (2020, September). Array programming with NumPy. Nature, 585(7825), 357–362, https://doi.org/10.1038/s41586-020-2649-2
Herrmann, M., & Webb, G.I. (2023, May). Amercing: An intuitive and effective constraint for dynamic time warping. Pattern Recognition, 137, 109333, https://doi.org/10.1016/j.patcog.2023.109333
Hills, J., Lines, J., Baranauskas, E., Mapp, J., Bagnall, A. (2014, July). Classification of time series by shapelet transformation. Data Min. Knowl. Discov., 28(4), 851–881, https://doi.org/10.1007/s10618-013-0322-1
Hoerl, A.E., & Kennard, R.W. (1970a). Ridge Regression: Applications to Nonorthogonal Problems. Technometrics, 12(1), 69–82, https://doi.org/10.2307/12673521267352
Hoerl, A.E., & Kennard, R.W. (1970b). Ridge Regression: Biased Estimation for Nonorthogonal Problems. Technometrics, 12(1), 55–67, https://doi.org/10.2307/12673511267351
Holder, C., & Bagnall, A. (2024, November). Rock the KASBA: Blazingly Fast and Accurate Time Series Clustering (No. arXiv:2411.17838). arXiv.
Holder, C., Guijo-Rubio, D., Bagnall, A. (2023a, November). Barycentre Averaging for the Move-Split-Merge Time Series Distance Measure. 15th International Conference on Knowledge Discovery and Information Retrieval (pp. 51–62).
Holder, C., Guijo-Rubio, D., Bagnall, A. (2023b). Clustering Time Series with k-Medoids Based Algorithms. G. Ifrim et al. (Eds.), Advanced Analytics and Learning on Temporal Data (pp. 39–55). Cham: Springer Nature Switzerland.
Holder, C., Middlehurst, M., Bagnall, A. (2024, February). A review and evaluation of elastic distance functions for time series clustering. Knowledge and Information Systems, 66(2), 765–809, https://doi.org/10.1007/s10115-023-01952-0
Hunter, J.D. (2007, May). Matplotlib: A 2D Graphics Environment. Computing in Science Engineering, 9(3), 90–95, https://doi.org/10.1109/MCSE.2007.55
Ismail-Fawaz, A., Dempster, A., Tan, C.W., Herrmann, M., Miller, L., Schmidt, D.F., ... Webb, G.I. (2023, May). An Approach to Multiple Comparison Benchmark Evaluations that is Stable Under Manipulation of the Compare Set (No. arXiv:2305.11921). arXiv.
Ismail-Fawaz, A., Ismail Fawaz, H., Petitjean, F., Devanne, M., Weber, J., Berretti, S., ... Forestier, G. (2023). ShapeDBA: Generating Effective Time Series Prototypes Using ShapeDTW Barycenter Averaging. G. Ifrim et al. (Eds.), Advanced Analytics and Learning on Temporal Data (pp. 127–142). Cham: Springer Nature Switzerland.
Itakura, F. (1975, February). Minimum prediction residual principle applied to speech recognition. IEEE Transactions on Acoustics, Speech, and Signal Processing, 23(1), 67–72, https://doi.org/10.1109/TASSP.1975.1162641
Jain, A.K., & Dubes, R.C. (1988). Algorithms for clustering data. USA: Prentice-Hall, Inc.
Javed, A., Lee, B.S., Rizzo, D.M. (2020, September). A benchmark study on time series clustering. Machine Learning with Applications, 1, 100001, https://doi.org/10.1016/j.mlwa.2020.100001
Jeong, Y.-S., Jeong, M.K., Omitaomu, O.A. (2011, September). Weighted dynamic time warping for time series classification. Pattern Recognition, 44(9), 2231–2240, https://doi.org/10.1016/j.patcog.2010.09.022
Jorge, M.-B., & Rubén, C. (2024, July). Time series clustering with random convolutional kernels. Data Mining and Knowledge Discovery, 38(4), 1862–1888, https://doi.org/10.1007/s10618-024-01018-x
Keogh, E., Lonardi, S., Ratanamahatana, C.A. (2004, August). Towards parameter-free data mining. Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining (pp. 206–215). Seattle WA USA: ACM.
Lafabregue, B., Weber, J., Gançarski, P., Forestier, G. (2022, January). End-to-end deep representation learning for time series clustering: A comparative study.
Data Min. Knowl. Discov., 36(1), 29–81, https://doi.org/10.1007/s10618-021-00796-y
Leonard Kaufman, P. (1990). Partitioning around medoids (program pam), chapter 2. Wiley.
Levy, A., & Lindenbaum, M. (1998, October). Sequential Karhunen-Loeve basis extraction and its application to images. Proceedings 1998 International Conference on Image Processing. ICIP98 (Cat. No.98CB36269) (Vol. 2, p. 456-460 vol.2).
Li, A., Xiong, S., Li, J., Mallik, S., Liu, Y., Fei, R., ... Liu, G. (2023, March). AngClust: Angle Feature-Based Clustering for Short Time Series Gene Expression Profiles. IEEE/ACM Transactions on Computational Biology and Bioinformatics, 20(2), 1574–1580, https://doi.org/10.1109/TCBB.2022.3192306
Li, X., Lin, J., Zhao, L. (2019, July). Linear time complexity time series clustering with symbolic pattern forest. Proceedings of the twenty-eighth international joint conference on artificial intelligence, IJCAI-19 (pp. 2930–2936). International Joint Conferences on Artificial Intelligence Organization.
Li, X., Xi, W., Lin, J. (2024, November). Randomnet: Clustering time series using untrained deep neural networks. Data Mining and Knowledge Discovery, 38(6), 3473–3502, https://doi.org/10.1007/s10618-024-01048-5
Lin, J., Keogh, E., Wei, L., Lonardi, S. (2007, October). Experiencing SAX: A novel symbolic representation of time series. Data Mining and Knowledge Discovery, 15(2), 107–144, https://doi.org/10.1007/s10618-007-0064-z
Lloyd, S. (1982, March). Least squares quantization in PCM. IEEE Transactions on Information Theory, 28(2), 129–137, https://doi.org/10.1109/TIT.1982.1056489
Lubba, C.H., Sethi, S.S., Knaute, P., Schultz, S.R., Fulcher, B.D., Jones, N.S. (2019, November). Catch22: CAnonical Time-series CCharacteristics. Data Mining and Knowledge Discovery, 33(6), 1821–1852, https://doi.org/10.1007/s10618-019-00647-x
MacQueen, J. (1967, January). Some methods for classification and analysis of multivariate observations. Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability, Volume 1: Statistics (Vol. 5.1, pp.
281–298). University of California Press.
McInnes, L., Healy, J., Melville, J. (2020, September). UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction (No. arXiv:1802.03426). arXiv.
McInnes, L., Healy, J., Saul, N., Großberger, L. (2018, September). UMAP: Uniform Manifold Approximation and Projection. Journal of Open Source Software, 3(29), 861, https://doi.org/10.21105/joss.00861
Middlehurst, M., Ismail-Fawaz, A., Guillaume, A., Holder, C., Guijo-Rubio, D., Bulatova, G., ... Bagnall, A. (2024). Aeon: A Python Toolkit for Learning from Time Series. Journal of Machine Learning Research, 25(289), 1–10,
Middlehurst, M., Large, J., Bagnall, A. (2020, December). The Canonical Interval Forest (CIF) Classifier for Time Series Classification. 2020 IEEE International Conference on Big Data (Big Data) (pp. 188–195).
Middlehurst, M., Large, J., Flynn, M., Lines, J., Bostrom, A., Bagnall, A. (2021, December). HIVE-COTE 2.0: A new meta ensemble for time series classification. Machine Learning, 110(11), 3211–3243, https://doi.org/10.1007/s10994-021-06057-9
Middlehurst, M., Schäfer, P., Bagnall, A. (2024, July). Bake off redux: A review and experimental evaluation of recent time series classification algorithms. Data Mining and Knowledge Discovery, 38(4), 1958–2031, https://doi.org/10.1007/s10618-024-01022-1
Murtagh, F., & Contreras, P. (2012). Algorithms for hierarchical clustering: An overview. WIREs Data Mining and Knowledge Discovery, 2(1), 86–97, https://doi.org/10.1002/widm.53
Omohundro, S.M. (1989). Five balltree construction algorithms (Tech. Rep.). 947 Center Street, Suite 600, Berkeley, California 94704: International Computer Science Institute.
Oyewole, G.J., & Thopil, G.A. (2023). Data clustering: application and trends. Artificial intelligence review, 56(7), 6439–6475,
Paparrizos, J., & Gravano, L. (2016, June). K-Shape: Efficient and Accurate Clustering of Time Series. SIGMOD Rec., 45(1), 69–76, https://doi.org/10.1145/2949741
.2949758
Paparrizos, J., Yang, F., Li, H. (2024, December). Bridging the Gap: A Decade Review of Time-Series Clustering Methods (No. arXiv:2412.20582). arXiv.
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., ... Duchesnay, É. (2011, October). Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research, 12, 2825-2830,
Perron, P. (1989). The great crash, the oil price shock, and the unit root hypothesis. Econometrica: journal of the Econometric Society, 1361–1401,
Petitjean, F., Ketterlin, A., Gançarski, P. (2011, March). A global averaging method for dynamic time warping, with applications to clustering. Pattern Recognition, 44(3), 678–693, https://doi.org/10.1016/j.patcog.2010.09.013
Rakthanmanon, T., Campana, B., Mueen, A., Batista, G., Westover, B., Zhu, Q., ... Keogh, E. (2013, September). Addressing Big Data Time Series: Mining Trillions of Time Series Subsequences Under Dynamic Time Warping. ACM Trans. Knowl. Discov. Data, 7(3), 10:1–10:31, https://doi.org/10.1145/2500489
Räsänen, T., & Kolehmainen, M. (2009). Feature-Based Clustering for Electricity Use Time Series Data. M. Kolehmainen, P. Toivanen, & B. Beliczynski (Eds.), Adaptive and Natural Computing Algorithms (pp. 401–412). Berlin, Heidelberg: Springer.
Rokach, L., & Maimon, O. (2005). Clustering methods. Data mining and knowledge discovery handbook (pp. 321–352). Springer.
Ross, D.A., Lim, J., Lin, R.-S., Yang, M.-H. (2008, May). Incremental Learning for Robust Visual Tracking. International Journal of Computer Vision, 77(1), 125–141, https://doi.org/10.1007/s11263-007-0075-7
Ruta, N., Sawada, N., McKeough, K., Behrisch, M., Beyer, J. (2019, October). SAX Navigator: Time Series Exploration through Hierarchical Clustering. 2019 IEEE Visualization Conference (VIS) (pp. 236–240).
Sakoe, H., & Chiba, S. (1978, February). Dynamic programming algorithm optimization for spoken word recognition. IEEE Transactions on Acoustics, Speech, and Signal Processing, 26(1), 43–49, https://doi.org/10.1109/TASSP.1978.1163055
Schäfer, P. (2015a, May). Bag-Of-SFA-Symbols in Vector Space (BOSS VS).
Schäfer, P. (2015b, November). The BOSS is concerned with time series classification in the presence of noise. Data Mining and Knowledge Discovery, 29(6), 1505–1530, https://doi.org/10.1007/s10618-014-0377-7
Schäfer, P., & Högqvist, M. (2012). SFA: A symbolic fourier approximation and index for similarity search in high dimensional datasets. Proceedings of the 15th International Conference on Extending Database Technology - EDBT '12 (p. 516). Berlin, Germany: ACM Press.
Schäfer, P., & Leser, U. (2017, November). Fast and Accurate Time Series Classification with WEASEL. Proceedings of the 2017 ACM on Conference on Information and Knowledge Management (pp. 637–646). New York, NY, USA: Association for Computing Machinery.
Schäfer, P., & Leser, U. (2023, December). WEASEL 2.0: A random dilated dictionary transform for fast, accurate and memory constrained time series classification. Machine Learning, 112(12), 4763–4788, https://doi.org/10.1007/s10994-023-06395-w
Senin, P., & Malinchik, S. (2013, December). SAX-VSM: Interpretable Time Series Classification Using SAX and Vector Space Model. 2013 IEEE 13th International Conference on Data Mining (pp. 1175–1180).
Stefan, A., Athitsos, V., Das, G. (2013, June). The Move-Split-Merge Metric for Time Series. IEEE Transactions on Knowledge and Data Engineering, 25(6), 1425–1438, https://doi.org/10.1109/TKDE.2012.88
Tan, C.W., Dempster, A., Bergmeir, C., Webb, G.I. (2022, September). MultiRocket: Multiple pooling operators and transformations for fast and effective time series classification. Data Mining and Knowledge Discovery, 36(5), 1623–1646, https://doi.org/10.1007/s10618-022-00844-1
Tiano, D., Bonifati, A., Ng, R. (2021, June). FeatTS: Feature-based Time Series Clustering. Proceedings of the 2021 International Conference on Management of Data (pp. 2784–2788). New York, NY, USA: Association for Computing Machinery.
van der Maaten, L., & Hinton, G. (2008). Visualizing Data using t-SNE. Journal of Machine Learning Research, 9(86), 2579–2605, von Luxburg, U. (2007, December). A tutorial on spectral clustering. Statistics and Computing, 17(4), 395–416, https://doi.org/10.1007/s11222-007-9033-z
Waskom, M.L. (2021, April). Seaborn: Statistical data visualization. Journal of Open Source Software, 6(60), 3021, https://doi.org/10.21105/joss.03021
Wes McKinney (2010). Data Structures for Statistical Computing in Python. Stéfan van der Walt & Jarrod Millman (Eds.), Proceedings of the 9th Python in Science Conference (p. 56 - 61).
Yang, J., & Leskovec, J. (2011, February). Patterns of temporal variation in online media. Proceedings of the fourth ACM international conference on Web search and data mining (pp. 177–186). New York, NY, USA: Association for Computing Machinery.
Ye, L., & Keogh, E. (2011, January). Time series shapelets: A novel technique that allows accurate, interpretable and fast classification. Data Mining and Knowledge Discovery, 22(1), 149–182, https://doi.org/10.1007/s10618-010-0179-5
Zakaria, J., Mueen, A., Keogh, E. (2012, December). Clustering Time Series Using Unsupervised-Shapelets. 2012 IEEE 12th International Conference on Data Mining (pp. 785–794).
Zhang, Q., Wu, J., Yang, H., Tian, Y., Zhang, C. (2016, July). Unsupervised feature learning from time series. Proceedings of the Twenty-Fifth International Joint Conference on Artificial Intelligence (pp. 2322–2328). New York, New York, USA: AAAI Press.
Zhao, J., & Itti, L. (2018, February). shapeDTW: Shape Dynamic Time Warping. Pattern Recognition, 74, 171–184, https://doi.org/10.1016/j.patcog.2017.09.020