Abstract
Clustering time series data is a fundamental task in data mining, yet it remains challenging due to the inherent variability in waveform alignment, amplitude, and phase. While the k-Shape algorithm has emerged as a state-of-the-art solution using cross-correlation-based distance, it is limited by its crisp membership assignments. This paper presents two fuzzy extensions: Fuzzy c-Shape plus (FCS+) and Fuzzy c-Shape double plus (FCS++). By integrating fuzzy logic with Shape-Based Distance (SBD) and Shape-Extracted (SE) prototypes, these algorithms provide more robust clustering for ambiguous real-world data. Empirical evaluations on 48 benchmark datasets demonstrate that FCS++ significantly outperforms k-Shape in accuracy, while FCS+ offers a substantial gain in computational efficiency.
Introduction
Time series waveforms, such as ECG signals or sensor readings, often share similar underlying shapes but differ in their temporal alignment or scale. Traditional clustering methods often struggle with these variations. Euclidean distance is sensitive to time shifts, while Dynamic Time Warping (DTW), though effective, is computationally prohibitive for large-scale applications.
The k-Shape algorithm addressed these issues by utilizing a shift-invariant distance measure. However, real-world data is rarely perfectly partitioned into distinct groups. Fuzzy clustering allows data points to have partial membership in multiple clusters, which can lead to more stable and accurate representations of complex datasets. This research "fuzzifies" the k-Shape approach to create a more flexible and powerful clustering framework.
Methods
The researchers developed two heuristic derivatives based on the Fuzzy c-Means (FCM) framework:
Fuzzy c-Shape plus (FCS+)
FCS+ replaces the standard Euclidean distance in FCM with Shape-Based Distance (SBD). SBD is derived from cross-correlation, making it invariant to both scaling and shifting. This allows the algorithm to recognize identical shapes regardless of their magnitude or when they appear in the sequence.
Fuzzy c-Shape double plus (FCS++)
FCS++ builds upon FCS+ by further refining the cluster prototype generation. Instead of a simple mean, it employs a Shape-Extracted (SE) prototype. This method uses an eigenvector-based approach to identify the most representative shape within a cluster, effectively filtering out noise and misalignments.
Because SBD is not a formal mathematical norm, these algorithms are considered heuristics. While they do not guarantee monotonic convergence in every iteration, they consistently arrive at high-quality clustering solutions in practice.
Experimental Evaluation
The performance of FCS+ and FCS++ was benchmarked against the original k-Shape algorithm using 48 datasets from the UCR Time Series Classification Archive. This archive includes a wide variety of data types, including synthetic controls, medical waveforms, and sensor data, with sequence lengths ranging from 24 to 1,882 points.
Results and Discussion
The fuzzy variants demonstrated superior performance across multiple Cluster Validity Indices (CVIs), including the Rand Index (RI), Adjusted Rand Index (ARI), Variation of Information (VI), and Normalized Mutual Information (NMI).
As shown in the results table, FCS++ achieved the highest accuracy, with a grand average Rand Index of 0.822, compared to 0.772 for k-Shape. Statistical tests (Wilcoxon and Friedman) confirmed that these improvements are significant.
Beyond accuracy, computational efficiency was a key finding. FCS+ proved to be the fastest method, averaging 9.51 seconds per run—approximately 2.4 times faster than the original k-Shape (22.95 seconds). This efficiency stems from avoiding the complex shape-extraction step while still maintaining high accuracy.
Conclusion
The introduction of fuzzy logic to shape-based time series clustering represents a significant advancement. FCS++ provides a new benchmark for accuracy in waveform clustering, while FCS+ offers a highly efficient alternative for large-scale data. While the lack of a formal convergence theory remains a theoretical limitation, the empirical success of these heuristic methods suggests they are highly effective for real-world time series analysis. Future research will explore the formal properties of SBD and methods to better utilize fuzzy membership information during prototype extraction.
Summary updated