An adaptive granularity clustering method based on hyper-ball

Shuyin Xia, Jiang Xie, Guo-Yin WangarXiv 2022 · DOI

Abstract

Granular-Ball Clustering (GBC) introduces a novel multi-granularity approach to data clustering, shifting the focus from individual data points to "granular balls"—coarse-grained representations of data regions. By mimicking the human "large-scale first" cognitive process, GBC achieves the computational efficiency of partition-based methods like K-means while matching the shape-recognition capabilities of density-based methods like DBSCAN. Through an adaptive top-down division and an overlap-based merging strategy, GBC identifies complex, non-convex structures and handles varying cluster densities without the need for extensive hyperparameter tuning.

Introduction

Traditional clustering algorithms generally fall into two categories: partition-based and density-based. Partition-based methods, such as K-means, are computationally efficient but struggle with non-spherical shapes and require a predefined number of clusters ($K$). Conversely, density-based methods, like DBSCAN or DPeak, can identify arbitrary shapes and handle noise effectively. However, these methods are often computationally expensive—requiring $O(N^2)$ distance calculations—and are highly sensitive to hyperparameters like density thresholds or epsilon values.

The authors of this paper argue that both approaches suffer from operating at the finest possible granularity: the individual data point. This makes them susceptible to local noise and computationally inefficient on large datasets. GBC seeks to bridge this gap by using a multi-granularity approach that is both efficient and adaptive to varying data densities.

Methodology: The Granular-Ball Framework

The core of the GBC algorithm is the Granular-Ball (GB), defined by a center ($c_k$) and a radius ($r_k$). The process follows two main phases:

1. Adaptive Division (Top-Down)

The algorithm begins with the entire dataset represented as a single large granular ball. It then recursively splits balls into smaller ones. A ball only stops splitting when its "quality"—measured by the average distance of points to the center—reaches a threshold where further splitting does not significantly improve the representation. This ensures that dense regions are represented by many small balls, while sparse regions are captured by fewer, larger balls.

2. Granular-Ball Differentiation (Merging)

Once the balls are generated, the algorithm merges adjacent balls into clusters. Crucially, it uses an adaptive adjacency criterion. It calculates an adjustment coefficient ($\tau$) based on the degree of overlap between neighboring balls. This allows the algorithm to dynamically adjust its "merging strictness," enabling it to correctly identify clusters even when they have vastly different densities.

The GBC workflow: from original data (A) through recursive adaptive division (B-D) to connectivity detection (E) and final clustering (F).

Unlike traditional density-based methods, GBC does not require calculating the distance between every pair of points, which drastically reduces its computational footprint.

Experimental Results and Evaluation

The authors evaluated GBC against K-means, DBSCAN, and DPeak using a variety of benchmarks, including synthetic "toy" problems, genomic data from The Cancer Genome Atlas (TCGA), and the MNIST handwritten digit dataset.

Shape Recognition and Robustness

Qualitative results on synthetic datasets show that GBC successfully separates intertwined spirals and manifold structures where K-means fails completely. The algorithm's "large-scale first" cognition allows it to perceive global structures before fine details, naturally ignoring minor noise that would trip up point-based methods.

GBC results on synthetic benchmarks, showing the generated granular balls (left) and the resulting clusters (right) for various complex shapes.

Computational Efficiency

In head-to-head timing tests, GBC was consistently the fastest. For example, on a spatiotemporal dataset of immune cells, GBC completed the task in 5.9 seconds, compared to 50.2 seconds for DBSCAN and 272.9 seconds for DPeak.

Biological and Real-World Relevance

On TCGA cancer data, the clusters generated by GBC showed statistically significant differences in patient survival (P-values < 0.05), demonstrating that the clusters were biologically meaningful. On the MNIST dataset, GBC effectively and adaptively produced ten clusters corresponding to the digits.

Conclusion and Future Work

GBC represents a foundational shift in clustering by moving from point-based to ball-based representations. This shift provides a parameter-free adaptivity that handles varying densities and complex shapes with high efficiency. While the current implementation relies on Euclidean distance, future work may explore non-Euclidean metrics or kernel-based distances to improve performance on high-dimensional data. Additionally, the granular-ball concept could be integrated into other AI models, such as spectral clustering or manifold learning, to enhance their scalability.

Summary updated

BibTeX
@misc{xia2022adaptive,
  author = {Shuyin Xia and Jiang Xie and Guo-Yin Wang},
  title = {{An adaptive granularity clustering method based on hyper-ball}},
  year = {2022},
  eprint = {2205.14592},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.14592},
}
Figure