Fast and explainable clustering based on sorting
Xinye Chen, Stefan Güttel
TL;DR
This paper tackles scalable clustering by proposing CLASSIX, a two-phase algorithm that first sorts data along the first principal component and greedily aggregates nearby points within a radius $R$, then merges the resulting groups into clusters using either a distance-based or a density-based criterion. The method achieves near-linear time and linear space in many practical settings and provides intuitive explanations for the resulting clusters, aided by its simple two-parameter control: the radius $R$ and the minimum cluster size $minPts$. Through extensive experiments on synthetic and real data, CLASSIX demonstrates competitive performance against state-of-the-art methods (e.g., k-means++, DBSCAN, HDBSCAN, Quickshift++) across varying shapes, dimensionalities, and sizes, while maintaining fast runtimes and robust clustering quality. The work also emphasizes explainability and offers outlier handling and out-of-sample extension capabilities, highlighting its practical applicability to large-scale or dynamic datasets and its potential for interpretable clustering results.
Abstract
We introduce a fast and explainable clustering method called CLASSIX. It consists of two phases, namely a greedy aggregation phase of the sorted data into groups of nearby data points, followed by the merging of groups into clusters. The algorithm is controlled by two scalar parameters, namely a distance parameter for the aggregation and another parameter controlling the minimal cluster size. Extensive experiments are conducted to give a comprehensive evaluation of the clustering performance on synthetic and real-world datasets, with various cluster shapes and low to high feature dimensionality. Our experiments demonstrate that CLASSIX competes with state-of-the-art clustering algorithms. The algorithm has linear space complexity and achieves near linear time complexity on a wide range of problems. Its inherent simplicity allows for the generation of intuitive explanations of the computed clusters.
