AMD-DBSCAN: An Adaptive Multi-density DBSCAN for datasets of extremely variable density

Ziqing Wang, Zhirong Ye, Yuyang Du, Yi Mao, Yanying Liu, Ziling Wu, Jun Wang

TL;DR

This paper introduces AMD-DBSCAN, a novel adaptive clustering algorithm designed to overcome the limitations of traditional DBSCAN on datasets with highly variable densities. By intelligently adapting its core parameters (Eps and MinPts) for different density regions, AMD-DBSCAN achieves significantly improved accuracy and efficiency on complex, multi-density datasets.

What Problem Does This Paper Address?

Density-Based Spatial Clustering of Applications with Noise (DBSCAN) is a popular algorithm for identifying clusters of arbitrary shapes. However, its performance degrades significantly on datasets where clusters exhibit vastly different densities. Traditional DBSCAN relies on a single pair of parameters, Eps (neighborhood radius) and MinPts (minimum number of points to form a dense region). When applied to multi-density datasets, a single parameter pair is either too sensitive to sparse regions (leading to noise misclassification) or too coarse for dense regions (merging distinct clusters). Existing multi-density approaches often struggle with manual parameter tuning or have limitations in adapting to extreme density variations. This paper aims to address this gap by proposing an adaptive approach that automatically tunes parameters for each density level.

Methods

The core innovation of AMD-DBSCAN lies in its adaptive parameter tuning mechanism. Instead of using fixed Eps and MinPts, the algorithm dynamically determines them.

  • Adaptive Parameter Adaptation of k: The algorithm first identifies an "adaptive k" which is crucial for determining the k-distance (k-nearest neighbor distance). This adaptive k is found by analyzing the distribution properties of the dataset.
  • Candidate Eps List Generation: The k-distance values are used to generate a k-distance frequency histogram. Peaks in this histogram indicate regions of consistent density. The K-means algorithm is then applied to cluster these k-distance values, and the cluster centers are used to form a list of candidate Eps values. This approach is novel compared to methods that rely on finding inflection points in k-distance curves.
  • Candidate MinPts List Generation: For each candidate Eps, a corresponding MinPts value is calculated based on the local density, ensuring that parameters are tailored to the specific region.
  • Multi-density DBSCAN: The algorithm then iteratively applies DBSCAN using the generated candidate Eps and MinPts pairs. Each iteration clusters a specific density level, and the remaining unclustered points are passed to the next iteration, effectively handling multi-density scenarios.

Datasets

The paper evaluates AMD-DBSCAN on a combination of publicly available datasets and synthetically generated ones:

  • Publicly Available Datasets: Aggregation, Compound, D31, Flame, R15, unbalance.
  • Synthetically Generated Datasets: make_blobs1 through make_blobs8. These datasets were specifically generated to test varying densities and robustness, with make_blobs1 serving as a base for density variations.

The paper also introduces the concept of Variance of the Number of Neighbors (VNN) to classify datasets into single-density (VNN < 10) and multi-density (VNN > 10) categories, with extreme multi-density datasets having VNN > 100.

Key Insights and Ideas

  • K-distance Histogram for Density Peaks: Using a k-distance frequency histogram and K-means to identify candidate Eps is a more robust approach than relying on inflection points of k-distance curves, especially for complex distributions.
  • Adaptive k is Crucial: The paper highlights that the choice of 'k' significantly impacts clustering results, and an adaptive approach to finding 'k' is essential for effective parameter tuning.
  • VNN as a Density Metric: The proposed VNN metric provides a quantitative way to categorize datasets by their density variability, aiding in understanding algorithm performance across different dataset types.
  • Single Hyperparameter: AMD-DBSCAN requires only one hyperparameter (which is easily determined through the adaptive process), simplifying its application compared to methods with multiple manual tuning parameters.

Key Results

  • Accuracy Improvement: AMD-DBSCAN achieves an average accuracy improvement of 24.7% on multi-density datasets with extremely variable density compared to state-of-the-art methods like YADING and AEDBSCAN. On single-density datasets, it shows an average improvement of 1.6%.
  • Efficiency: The use of binary search in parameter adaptation makes AMD-DBSCAN approximately 4 times faster than traditional adaptive methods like PDDBSCAN. For the "unbalance" dataset, this speedup reached nearly 93%.
  • Robustness: The algorithm demonstrates strong performance on synthetically generated datasets designed to test noise resistance and varying cluster distributions.
  • Qualitative Results: Visualizations show AMD-DBSCAN effectively distinguishing clusters in dense and sparse regions, often correctly identifying points as noise that other algorithms misclassify.

Limitations and Future Work

  • Single-Threaded Implementation: The current implementation of AMD-DBSCAN is single-threaded.
  • Parallelization Potential: The authors suggest that the algorithm's adaptive nature lends itself well to parallelization using strategies like MapReduce, which could significantly improve performance on large-scale datasets. This is identified as a key direction for future work.

Summary updated

Abstract

DBSCAN has been widely used in density-based clustering algorithms. However, with the increasing demand for Multi-density clustering, previous traditional DSBCAN can not have good clustering results on Multi-density datasets. In order to address this problem, an adaptive Multi-density DBSCAN algorithm (AMD-DBSCAN) is proposed in this paper. An improved parameter adaptation method is proposed in AMD-DBSCAN to search for multiple parameter pairs (i.e., Eps and MinPts), which are the key parameters to determine the clustering results and performance, therefore allowing the model to be applied to Multi-density datasets. Moreover, only one hyperparameter is required for AMD-DBSCAN to avoid the complicated repetitive initialization operations. Furthermore, the variance of the number of neighbors (VNN) is proposed to measure the difference in density between each cluster. The experimental results show that our AMD-DBSCAN reduces execution time by an average of 75% due to lower algorithm complexity compared with the traditional adaptive algorithm. In addition, AMD-DBSCAN improves accuracy by 24.7% on average over the state-of-the-art design on Multi-density datasets of extremely variable density, while having no performance loss in Single-density scenarios.
BibTeX
@inproceedings{wang2022amd,
  author = {Ziqing Wang and Zhirong Ye and Yuyang Du and Yi Mao and Yanying Liu and Ziling Wu and Jun Wang},
  title = {{AMD-DBSCAN: An Adaptive Multi-density DBSCAN for datasets of extremely variable density}},
  booktitle = {DSAA},
  year = {2022},
  url = {https://openreview.net/forum?id=ACJ-w8YAwqn},
}

Loading related content...

Figure