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›Semi-supervised HDBSCAN
Machine learningMachine learning

Semi-supervised HDBSCAN

Semi-supervised Hierarchical Density-Based Spatial Clustering of Applications with Noise · Also known as: Constrained HDBSCAN, Semi-supervised hierarchical density clustering, HDBSCAN with partial labels, SS-HDBSCAN

Semi-supervised HDBSCAN extends the Hierarchical Density-Based Spatial Clustering of Applications with Noise (HDBSCAN) algorithm by incorporating partial supervision — such as must-link and cannot-link pairwise constraints or a small set of labeled examples — to guide the density-based cluster hierarchy toward cluster assignments that are consistent with available domain knowledge.

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.

Semi-supervised HDBSCAN
DBSCANHDBSCANK-meansSemi-supervised DBSCANSemi-supervised Gaussian…Semi-supervised K-meansEnsemble HDBSCAN

When to use it

Choose semi-supervised HDBSCAN when you have unlabeled or mostly unlabeled data with natural density-based cluster structure, and you also hold a small number of pairwise constraints or labeled instances that encode meaningful domain knowledge. It excels when the number of clusters is unknown, clusters vary in density or shape, and some noise or outliers are expected. Avoid it when most data points are labeled (use a supervised classifier instead), when the dataset is very small (fewer than about 100 observations, where density estimates are unreliable), or when the feature space is very high-dimensional without prior dimensionality reduction, as density estimates degrade in high dimensions.

Strengths & limitations

Strengths
  • Discovers clusters of varying density and arbitrary shape without requiring the number of clusters to be specified in advance.
  • Naturally identifies and isolates noise points rather than forcing all observations into a cluster.
  • Partial supervision steers the solution toward domain-relevant groupings without requiring full annotation.
  • Inherits HDBSCAN's robustness: cluster extraction is based on cluster persistence rather than a fixed epsilon threshold.
  • Scales reasonably to medium-sized datasets and is available in mature open-source libraries (hdbscan Python package).
  • Combines well with dimensionality reduction steps such as UMAP before clustering.
Limitations
  • Density estimation degrades in high-dimensional feature spaces; dimensionality reduction is often necessary.
  • Constraint integration methods vary across implementations and are not yet standardized, making reproducibility harder to ensure.
  • Choosing the minimum cluster size hyperparameter still requires domain judgment or grid search.
  • Cannot easily incorporate soft or probabilistic label information — constraints are typically hard must-link or cannot-link pairs.

Frequently asked

How do I incorporate must-link and cannot-link constraints in practice?

The most common approach modifies the mutual-reachability distance matrix before MST construction: shrink distances for must-link pairs and expand them for cannot-link pairs. Some implementations also post-process the condensed cluster tree to enforce constraints during extraction.

What if I only have a few labeled examples, not pairwise constraints?

Labeled examples can be converted to pairwise constraints: all pairs sharing the same label become must-link pairs, and all cross-label pairs become cannot-link pairs. With very few labels, apply this selectively to avoid an explosion of constraints that overwhelms the density signal.

How does this differ from plain HDBSCAN?

Plain HDBSCAN is fully unsupervised and relies entirely on the data's density structure. Semi-supervised HDBSCAN biases the hierarchy using domain knowledge so the extracted clusters are more consistent with known groupings, at the cost of some additional hyperparameter choices around constraint weighting.

What evaluation metric should I use?

Evaluate against the labeled subset using adjusted Rand index (ARI) or normalized mutual information (NMI). Also inspect the proportion of points labeled as noise and check that known must-link pairs are indeed co-clustered.

Does semi-supervised HDBSCAN work in high dimensions?

Not reliably without preprocessing. Apply UMAP or PCA to reduce dimensionality to a manageable range (typically 10–50 dimensions) before running density-based clustering, as mutual-reachability distances become uninformative in very high-dimensional spaces.

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. HDBSCAN. Wikipedia. link ↗

How to cite this page

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

Related methods

DBSCANHDBSCANK-meansSemi-supervised DBSCANSemi-supervised Gaussian Mixture ModelSemi-supervised K-means

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.

  • DBSCANMachine learning↔ compare
  • HDBSCANMachine learning↔ compare
  • K-meansMachine learning↔ compare
  • Semi-supervised DBSCANMachine learning↔ compare
  • Semi-supervised Gaussian Mixture ModelMachine learning↔ compare
  • Semi-supervised K-meansMachine learning↔ compare
Compare side by side →

Referenced by

Ensemble HDBSCAN

Similar methods

Semi-supervised DBSCANSemi-supervised K-meansRobust HDBSCANHDBSCANSelf-supervised DBSCANExplainable HDBSCANEnsemble HDBSCANOnline HDBSCAN

Related reference concepts

Clustering AlgorithmsUnsupervised LearningCluster AnalysisText ClusteringModel-Based ClusteringK-Means Clustering

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

ScholarGate — Semi-supervised HDBSCAN (Semi-supervised Hierarchical Density-Based Spatial Clustering of Applications with Noise). Retrieved 2026-07-21 from https://scholargate.app/en/machine-learning/semi-supervised-hdbscan · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
McInnes, L.; Healy, J. (base HDBSCAN); semi-supervised extensions by various authors
Year
2017–present
Type
Semi-supervised density-based clustering
DataType
Continuous or mixed tabular data; optional partial cluster labels or pairwise constraints
Subfamily
Machine learning
Related methods
DBSCANHDBSCANK-meansSemi-supervised DBSCANSemi-supervised Gaussian Mixture ModelSemi-supervised K-means
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