Clusterdv, a simple density-based clustering method that is robust, general and automatic

João C. Marques, Michael B. OrgerbioRxiv 2017

TL;DR

This paper introduces Clusterdv, a novel, fully automatic density-based clustering algorithm that excels at identifying clusters of arbitrary shapes and numbers without manual parameter tuning. It outperforms existing methods like clusterdp, particularly on challenging datasets with uneven cluster densities and noise, making it a powerful tool for uncovering hidden structures in diverse data.

What Problem Does This Paper Address?

Clustering is a fundamental task in data analysis, aiming to group similar data points together. However, real-world data is messy: clusters can have varied shapes, densities, and degrees of overlap, and the number of clusters is often unknown. Existing algorithms often struggle with these complexities, requiring manual parameter adjustments or failing on specific data distributions. For instance, the popular density-based clustering method clusterdp, while effective, is not fully automatic and can falter on datasets with uneven cluster densities. This paper addresses the need for a robust, general, and automatic clustering method that can reliably discover cluster structures across a wide range of data types.

Methods

The core innovation of Clusterdv lies in its approach to identifying cluster boundaries by focusing on density valleys rather than just density peaks. Here's a breakdown of the key methods:

  • Adaptive Gaussian Kernel Density Estimation: Clusterdv uses an adaptive Gaussian kernel to estimate local densities at each data point. This is a standard technique, but the adaptivity (bandwidth adjustment per point) is crucial.
  • Density Path Calculation: Instead of just looking at distances, Clusterdv defines the "separation" between two points by the lowest density one must traverse to connect them. This is achieved by finding the "density path" with the highest minimum density.
  • Maximum Density Valley Depth: For each point, the algorithm calculates the maximum density valley depth to any point of higher density. This metric helps identify potential cluster centers.
  • Separability Index (SI): A novel metric, the SI, is introduced to quantify how well a potential cluster center is separated from denser regions. It normalizes the density drop relative to the local density, allowing for the identification of low-density peaks that are truly distinct.
  • Hierarchical Tree and Automatic Cut-off: Putative cluster centers are ranked by their SI values and organized into a hierarchical tree. The number of clusters is then automatically determined by applying data-driven criteria (e.g., largest jump in SI) to cut this dendrogram, eliminating the need for manual parameter tuning.

Datasets

The authors validated Clusterdv on a comprehensive set of datasets:

  • Synthetic Datasets: A wide variety of artificial datasets were used, including those specifically designed to challenge existing methods (e.g., "exclamation mark" datasets with uneven densities).
  • Real-World Datasets: The method was tested on diverse real-world data, including:
  • Bone marrow data
    • MNIST handwritten digit data
    • Olivetti face data
    • Zachary's karate club network data
    • Zebrafish larvae behavioral data (a newly introduced benchmark for unsupervised behavioral categorization).

Key Insights and Ideas

  • Focusing on "Gaps" is Key: By looking at density valleys (the "gaps" between clusters) rather than just density peaks, Clusterdv can better identify clusters that are close together but separated by low-density regions. This is a crucial departure from peak-finding methods.
  • Robustness to Uneven Densities: The "exclamation mark" datasets, where one cluster is much denser than another, highlight a critical limitation of clusterdp. Clusterdv's SI metric effectively handles these scenarios, correctly identifying both clusters.
  • True Automation: The automatic selection of the number of clusters via SI dendrogram cut-offs is a significant advancement, removing a major hurdle in applying clustering algorithms.
  • Behavioral Categorization: The application to zebrafish behavior demonstrates Clusterdv's ability to uncover meaningful patterns in complex, noisy, and sparse biological data, even when the underlying structure is unknown.

Key Results

  • Outperforms clusterdp: Clusterdv consistently outperformed clusterdp across a wide range of datasets, especially in automatic implementations. For example, in one comparison, Clusterdv correctly solved 31 out of 33 datasets, while clusterdp only solved 21.
  • Handles Difficult Distributions: Clusterdv successfully clustered datasets that clusterdp failed on, particularly those with uneven cluster densities and noise.
  • Accurate Cluster Assignment: The method achieved high accuracy in assigning data points to their correct clusters.
  • Automatic Cluster Number Selection: The automatic criteria for determining the number of clusters were effective, with the "max SI jump" method correctly identifying the number of clusters in 29 out of 33 datasets.
  • Zebrafish Behavior: Clusterdv successfully categorized zebrafish swim bouts into meaningful behavioral categories without prior knowledge, a task where clusterdp failed.

Limitations and Future Work

  • Dimensionality Reduction: Clusterdv, like many density-based methods, operates on data embedded in a low-dimensional space. While it can be combined with dimensionality reduction techniques like t-SNE or UMAP, this pre-processing step is necessary.
  • Computational Trade-off: The number of divisions used to calculate density lines can be adjusted for a trade-off between computational time and accuracy.
  • Future Work: The authors suggest that Clusterdv's robustness and automatic nature make it suitable for a wide range of novel problems where uncovering hidden structures is important, even when the ground truth is unknown. The method's ability to handle complex, noisy, and unevenly distributed data opens doors for applications in fields like neuroscience, biology, and beyond.

Summary updated

BibTeX
@misc{marques2017clusterdv,
  author = {João C. Marques and Michael B. Orger},
  title = {{Clusterdv, a simple density-based clustering method that is robust, general and automatic}},
  year = {2017},
  doi = {10.1101/224840},
  howpublished = {bioRxiv},
}
Figure