X-means: Extending K-means with Efficient Estimation of the Number of Clusters
Dan PellegAndrew Moore
Proposes the X-means algorithm, an extension of K-means that automatically determines the number of clusters using local Bayesian Information Criterion tests accelerated by multiresolution kd-trees to achieve superior clustering quality and major speedups on large datasets.
Clustering large datasets requires choosing in advance how many groups to form, a step that standard K-means leaves to the user and that becomes impractical for big or high-volume data. The X-means work set out to remove that requirement by building an algorithm that both finds a suitable number of clusters and places them efficiently while still producing results at least as good as conventional K-means.
The authors start from an already-accelerated version of K-means that stores summary statistics in a kd-tree and uses geometric tests to avoid checking every point against every center. They then add a structure-improvement step that repeatedly splits each current center into two local candidates, runs a short two-center refinement inside the parent region only, and accepts or rejects the split according to the Bayesian Information Criterion. The process repeats, increasing the number of centers only where the data support it, until an upper limit supplied by the user is reached. Experiments used both synthetic Gaussian mixtures with known true cluster counts and real astronomical catalogs containing hundreds of thousands of galaxies.
X-means recovered cluster counts within roughly 15 percent of the true value on synthetic data and produced lower distortion and higher BIC scores than K-means given the correct count in advance. On the same hardware it ran about twice as fast as repeated accelerated K-means trials over a comparable range of K values; on a 330,000-point galaxy set the speed-up reached roughly thirty-fold relative to naïve repeated K-means. In the Sloan Digital Sky Survey sample the method returned an average cluster size of about 470 objects with far smaller run-to-run variation than the baseline approach.
These results matter because they let analysts apply clustering to millions of records without exhaustive trial-and-error searches for K and without sacrificing statistical quality. The method therefore supports timely exploration of large scientific or operational datasets where the right number of groups is not known beforehand.
The authors note that the same local-decision framework can be extended to other model-selection criteria such as AIC and to mixture-model fitting beyond hard K-means assignments; both directions are already under study. The main limitations are that the current implementation assumes spherical clusters of equal variance and has been demonstrated only up to four dimensions, so users facing strongly non-spherical or very high-dimensional data should validate results on representative subsets before scaling.
- Paper: An Efficient k-Means Clustering Algorithm: Analysis and Implementation, Tapas Kanungo et al. (2002). Reading this efficient exact implementation of k-means clustering provides the foundational nearest-center algorithms and pruning techniques built upon by X-means.
No sufficiently relevant recommendations were found.
