An Efficient Density-based Clustering Algorithm for Higher-Dimensional Data

Thapana Boonchoo, Xiang Ao, Qing HearXiv 2018

Abstract

DBSCAN is a typically used clustering algorithm due to its clustering ability for arbitrarily-shaped clusters and its robustness to outliers. Generally, the complexity of DBSCAN is $O(n^2)$ in the worst case, and it practically becomes more severe in higher dimension. Grid-based DBSCAN is one of the recent improved algorithms aiming at facilitating efficiency. However, the performance of grid-based DBSCAN still suffers from two problems: neighbour explosion and redundancies in merging, which make the algorithms infeasible in high-dimensional space. In this paper, we propose a novel algorithm named GDPAM attempting to extend Grid-based DBSCAN to higher data dimension. In GDPAM, a bitmap indexing is utilized to manage non-empty grids so that the neighbour grid queries can be performed efficiently. Furthermore, we adopt an efficient union-find algorithm to maintain the clustering information in order to reduce redundancies in the merging. The experimental results on both real-world and synthetic datasets demonstrate that the proposed algorithm outperforms the state-of-the-art exact/approximate DBSCAN and suggests a good scalability.

Introduction

DBSCAN (Density-Based Spatial Clustering of Applications with Noise) is widely recognized for its ability to identify clusters of arbitrary shapes and its robustness against outliers. However, its computational complexity of $O(n^2)$ poses a significant challenge for large-scale and high-dimensional datasets. While grid-based variants were developed to improve efficiency by partitioning the data space, they encounter the "curse of dimensionality" in two specific ways:

  1. Neighbor Explosion: The number of adjacent grid cells to check grows exponentially with the number of dimensions.
  2. Merging Redundancy: Significant computational resources are wasted on redundant checks to determine if two cells belong to the same cluster, often re-verifying connections already established through transitivity.

To address these limitations, we present GDPAM (Grid-based DBSCAN with PArtial Merge-Checkings), an algorithm designed to scale DBSCAN to higher dimensions effectively.

Methodology: The GDPAM Approach

GDPAM introduces two core innovations to overcome the inefficiencies of traditional grid-based clustering.

HyperGrid Bitmap (HGB) Indexing

Traditional spatial indexing structures like k-d trees often fail in high dimensions. GDPAM replaces these with a HyperGrid Bitmap (HGB). This structure uses bit arrays for each dimension to track non-empty grid cells. By representing the grid occupancy as bitmaps, neighbor queries are transformed into highly efficient bitwise operations (AND/OR), which are natively optimized by modern CPU architectures.

Figure 2: Indexing an example 2D data with the HGB structure, showing the partitioned layout and corresponding bitmaps for each dimension.

Optimized Merging via Union-Find

To eliminate redundant merging operations, GDPAM utilizes a Union-Find data structure. By treating grid cells as nodes in a forest, the algorithm maintains the connectivity of clusters in real-time. Before initiating a computationally expensive merge-check between two cells, the algorithm first checks if they already belong to the same set (tree). If they do, the check is skipped, drastically reducing the total number of operations.

Illustration of Union-Find operations used to manage cluster connectivity and reduce redundant merge-checks.

Experimental Evaluation

The performance of GDPAM was evaluated using both synthetic and real-world datasets:

  • Synthetic Data: Generated across 3D to 40D spaces with up to 3 million objects.
  • Real-World Data: Included the Household dataset (7D, 2M records) and the PAMAP2 dataset (54D, 3.8M records).

Key Results

  • Performance Gains: GDPAM demonstrated remarkable speedups, outperforming the state-of-the-art approximate algorithm (GRID-A) by up to 736x on 30D synthetic data. Compared to original DBSCAN, speedups reached nearly 3,000x.
  • Redundancy Reduction: In the 54D PAMAP2 dataset, the Union-Find strategy allowed GDPAM to perform only 0.15% of the merging operations required by standard grid-based approaches.
  • Scalability: Unlike traditional DBSCAN, GDPAM's execution time scales almost linearly with data size, making it suitable for big data applications.

Conclusion and Future Work

GDPAM successfully extends grid-based DBSCAN to high-dimensional spaces by leveraging hardware-efficient bitmaps and graph-theoretic optimizations. While the algorithm is highly efficient, it remains sensitive to the choice of $\epsilon$ and $MinPTS$ parameters, a common challenge in high-dimensional clustering. Future research may explore adapting GDPAM for distributed computing frameworks like Apache Spark to further enhance its scalability for even larger datasets.

Summary updated

BibTeX
@misc{boonchoo2018efficient,
  author = {Thapana Boonchoo and Xiang Ao and Qing He},
  title = {{An Efficient Density-based Clustering Algorithm for Higher-Dimensional Data}},
  year = {2018},
  eprint = {1801.06965},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.06965},
}
Figure