Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Machine learning›Explainable HDBSCAN
Machine learningMachine learning

Explainable HDBSCAN

Explainable Hierarchical Density-Based Spatial Clustering of Applications with Noise · Also known as: XAI-HDBSCAN, Interpretable HDBSCAN, Explainable Hierarchical DBSCAN, HDBSCAN with XAI

Explainable HDBSCAN combines the hierarchical density-based clustering algorithm HDBSCAN with post-hoc explainability methods — primarily SHAP — to reveal which input features drive cluster membership and separation. It retains HDBSCAN's ability to find clusters of varying shape and density while adding a principled, auditable explanation layer.

ScholarGate
  1. Machine learning
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Explainable HDBSCAN
Explainable DBSCANExplainable Gaussian Mix…Explainable Isolation Fo…Explainable K-MeansExplainable Random ForestHDBSCAN

When to use it

Use Explainable HDBSCAN when you need density-based clustering on data with clusters of irregular shape or varying density AND you must justify cluster membership to stakeholders, regulators, or reviewers. It is especially appropriate in exploratory work on high-dimensional tabular data where both discovery and interpretability matter. Avoid it when clusters are known to be globular and k-means suffices; when the dataset is very small (fewer than ~100 points), where density estimation is unreliable; or when you need hard real-time decisions, since SHAP computation adds meaningful overhead.

Strengths & limitations

Strengths
  • Finds clusters of arbitrary shape and varying density without requiring the number of clusters to be specified in advance.
  • Natively identifies and labels noise/outlier points rather than forcing them into a cluster.
  • SHAP-based explanations are model-agnostic and satisfy desirable properties (efficiency, symmetry, dummy, additivity).
  • The condensed cluster tree provides an intrinsic visual summary of the hierarchical structure even before SHAP is applied.
  • Feature-importance rankings from SHAP can guide domain experts to validate whether cluster separations are scientifically meaningful.
Limitations
  • SHAP attribution is a post-hoc approximation; KernelSHAP is computationally expensive for large datasets.
  • Cluster assignments are not differentiable, making SHAP surrogate fitting imprecise for ambiguously assigned boundary points.
  • HDBSCAN's hyperparameters (min_cluster_size, min_samples) require tuning and can strongly affect results, complicating reproducibility.
  • Noise-labeled points receive no stable cluster attribution, which may frustrate downstream use cases that require every point to be assigned.

Frequently asked

Does HDBSCAN require specifying the number of clusters?

No. Unlike k-means, HDBSCAN infers the number of clusters from the data's density structure. You set min_cluster_size (the smallest group you consider meaningful) rather than a target cluster count.

Which SHAP explainer should I use with HDBSCAN?

Because HDBSCAN does not produce a differentiable model, KernelSHAP or a surrogate classifier (e.g., a random forest fitted on the cluster labels) is typically used. TreeExplainer is applicable if the surrogate is a tree-based model and is much faster than KernelSHAP.

How do I handle noise points in the explanation?

Noise points (label -1) are by definition ambiguous; their SHAP values reflect proximity to no stable cluster. It is good practice to treat them separately, reporting which features most contributed to their outlier status rather than conflating them with clustered observations.

How do I validate that my clusters are real and not artifacts?

Use bootstrapped stability analysis (e.g., HDBSCAN's built-in cluster persistence scores), compute silhouette or DBCV scores, and check whether SHAP-identified driving features align with domain knowledge. Replicating clusters on a held-out or independently collected sample provides the strongest validation.

Can Explainable HDBSCAN be used with high-dimensional data like text embeddings?

Yes, but dimensionality reduction (e.g., UMAP) is strongly recommended before clustering in very high-dimensional spaces, as distance metrics lose meaning in such spaces. SHAP is then applied to the original features by fitting a surrogate on cluster assignments.

Sources

  1. McInnes, L., Healy, J., & Astels, S. (2017). hdbscan: Hierarchical density based clustering. Journal of Open Source Software, 2(11), 205. DOI: 10.21105/joss.00205 ↗
  2. Lundberg, S. M., & Lee, S.-I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems, 30, 4765–4774. link ↗

How to cite this page

ScholarGate. (2026, June 3). Explainable Hierarchical Density-Based Spatial Clustering of Applications with Noise. ScholarGate. https://scholargate.app/en/machine-learning/explainable-hdbscan

Related methods

Explainable DBSCANExplainable Gaussian Mixture ModelExplainable Isolation ForestExplainable K-MeansExplainable Random ForestHDBSCAN

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Explainable DBSCANMachine learning↔ compare
  • Explainable Gaussian Mixture ModelMachine learning↔ compare
  • Explainable Isolation ForestMachine learning↔ compare
  • Explainable K-MeansMachine learning↔ compare
  • Explainable Random ForestMachine learning↔ compare
  • HDBSCANMachine learning↔ compare
Compare side by side →

Similar methods

Explainable DBSCANRobust HDBSCANHDBSCANEnsemble HDBSCANSemi-supervised HDBSCANExplainable K-MeansDBSCANOnline HDBSCAN

Related reference concepts

Clustering AlgorithmsCluster AnalysisText ClusteringHierarchical Cluster AnalysisK-Means ClusteringModel-Based Clustering

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Explainable HDBSCAN (Explainable Hierarchical Density-Based Spatial Clustering of Applications with Noise). Retrieved 2026-07-21 from https://scholargate.app/en/machine-learning/explainable-hdbscan · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
McInnes, L.; Healy, J. (HDBSCAN); Lundberg & Lee (SHAP-based explanation)
Year
2017–2020
Type
Explainable clustering
DataType
Continuous / mixed tabular; high-dimensional feature spaces
Subfamily
Machine learning
Related methods
Explainable DBSCANExplainable Gaussian Mixture ModelExplainable Isolation ForestExplainable K-MeansExplainable Random ForestHDBSCAN
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account