Unsupervised clustering is a class of machine learning algorithms that partition a heterogeneous patient population into distinct subgroups based solely on the intrinsic structure of high-dimensional data, such as genomic, proteomic, or clinical features. Unlike supervised classification, it operates without predefined outcome labels, making it essential for discovering novel molecular taxonomies and previously unknown disease endotypes.
Glossary
Unsupervised Clustering

What is Unsupervised Clustering?
Unsupervised clustering is a machine learning technique for grouping patients based on inherent data similarities without predefined labels, revealing natural disease subtypes.
The process relies on similarity metrics to identify natural groupings, with common algorithms including k-means, hierarchical clustering, and DBSCAN. The resulting patient clusters must be validated for stability and clinical relevance using internal metrics like the silhouette score and external validation against distinct prognostic outcomes, ensuring the discovered subgroups are both statistically robust and biologically meaningful.
Core Characteristics of Unsupervised Clustering
Unsupervised clustering algorithms partition patient populations into distinct subgroups by identifying inherent data structures without relying on predefined labels. These techniques are fundamental to discovering novel disease subtypes and driving precision medicine.
Label-Free Discovery
Unlike supervised learning, unsupervised clustering operates on unlabeled data, seeking natural groupings based solely on feature similarity. This is critical in biomedicine where ground-truth labels for novel subtypes do not yet exist. The algorithm identifies structure by optimizing an objective function, such as minimizing intra-cluster variance (K-Means) or maximizing density connectivity (DBSCAN).
Distance Metrics & Similarity
The definition of a cluster depends entirely on the chosen distance metric. Common metrics include:
- Euclidean distance: Straight-line distance, sensitive to scale.
- Cosine similarity: Measures the angle between vectors, ignoring magnitude, often used for high-dimensional omics data.
- Manhattan distance: Sum of absolute differences, robust in high dimensions.
- Correlation-based distance: Groups patients with similar expression patterns regardless of baseline levels.
Hard vs. Soft Clustering
Clustering algorithms can produce hard or soft assignments:
- Hard clustering (e.g., K-Means, DBSCAN): Each patient belongs to exactly one cluster.
- Soft clustering (e.g., Gaussian Mixture Models, Fuzzy C-Means): Each patient receives a probability or membership score for belonging to multiple clusters. This is clinically valuable for capturing disease ambiguity or transitional states in patient trajectories.
The Curse of Dimensionality
In high-dimensional spaces, such as those generated by genomics or proteomics, distance metrics lose discriminative power—a phenomenon known as the curse of dimensionality. All points tend to become equidistant. Effective clustering in bioinformatics requires dimensionality reduction (PCA, UMAP) or feature selection (LASSO) as a preprocessing step to project data into a meaningful lower-dimensional manifold.
Cluster Validation
Determining the optimal number of clusters and assessing their quality requires internal validation metrics, as external labels are absent. Key metrics include:
- Silhouette Score: Measures cohesion vs. separation (-1 to 1).
- Davies-Bouldin Index: Average similarity between clusters (lower is better).
- Gap Statistic: Compares within-cluster dispersion to a null reference distribution.
- Cluster Stability: Assesses reproducibility under data perturbation.
Density vs. Centroid Models
Clustering algorithms are broadly categorized by their underlying model:
- Centroid-based (K-Means, PAM): Assumes clusters are spherical and defined by a central point. Efficient but fails on irregular shapes.
- Density-based (DBSCAN, HDBSCAN): Defines clusters as areas of high density separated by sparse regions. Robust to noise and arbitrary shapes, ideal for identifying rare cell populations or outlier patients.
- Hierarchical (Agglomerative, Divisive): Builds a tree of nested clusters, visualized as a dendrogram, without requiring a pre-specified cluster count.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about applying unsupervised clustering algorithms to patient stratification and biomarker discovery.
Unsupervised clustering is a machine learning technique that partitions a heterogeneous patient population into distinct subgroups based solely on inherent similarities in their data, without using predefined diagnostic labels. The algorithm ingests high-dimensional feature vectors—such as gene expression levels, protein concentrations, or imaging features—and iteratively groups patients who are mathematically proximate in that feature space. Common algorithms include K-Means, which minimizes within-cluster variance around centroids; Hierarchical Clustering, which builds a dendrogram of nested groupings; and Gaussian Mixture Models (GMM), which provide probabilistic soft assignments. In precision medicine, this process reveals natural disease subtypes, or endotypes, that share a common molecular mechanism, enabling targeted therapeutic strategies that would be invisible to traditional histology-based classification.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Mastering unsupervised clustering requires understanding the foundational algorithms, validation metrics, and advanced techniques that transform raw patient data into clinically meaningful subgroups.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us