Inferensys

Glossary

Self-Organizing Maps (SOM)

A Self-Organizing Map (SOM) is a type of artificial neural network that uses unsupervised competitive learning to produce a low-dimensional, discretized representation of the input space, preserving the topological properties of the data.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
UNSUPERVISED NEURAL TOPOLOGY

What is Self-Organizing Maps (SOM)?

A Self-Organizing Map (SOM) is a type of artificial neural network that uses unsupervised competitive learning to project high-dimensional input data onto a low-dimensional, discretized grid while preserving the topological relationships of the original data space.

A Self-Organizing Map (SOM) is an unsupervised neural network that produces a topology-preserving, low-dimensional discretized representation of the input space. Unlike error-correction learning, SOMs use competitive learning where output neurons compete to be activated, with the winning neuron and its topological neighbors updating their weight vectors to move closer to the input pattern.

In patient stratification, SOMs enable the visualization of high-dimensional multi-omics data on a 2D component plane, revealing natural groupings of patients based on molecular similarity. The algorithm's ability to preserve topological properties means that adjacent patients on the output map share similar clinical or genomic profiles, making it a powerful tool for endotype discovery and identifying clinically meaningful subgroups without a priori labels.

TOPOLOGICAL LEARNING

Key Features of Self-Organizing Maps

Self-Organizing Maps (SOMs) are a distinct class of unsupervised neural networks that project high-dimensional input data onto a low-dimensional, topology-preserving grid. This makes them uniquely suited for visualizing complex patient stratification landscapes.

01

Topology Preservation

The defining characteristic of a SOM is its ability to preserve the topological relationships of the input space. Similar input vectors map to nearby or identical nodes on the output grid, while dissimilar vectors map to distant nodes. This is achieved through a competitive learning process where the Best Matching Unit (BMU) and its topological neighbors are updated simultaneously, ensuring the map's spatial ordering reflects the data's intrinsic structure.

02

The Competitive Learning Algorithm

SOMs operate via a two-phase iterative process:

  • Competition: For each input vector, the node with the smallest Euclidean distance (the BMU) is identified.
  • Cooperation & Adaptation: The BMU and its neighbors within a defined radius are adjusted to move closer to the input vector. The learning rate and neighborhood radius decrease over time, transitioning the map from an initial ordering phase to a fine-tuning convergence phase.
03

High-Dimensional Visualization

A primary use case in patient stratification is the visualization of complex, high-dimensional omics data. The trained SOM grid can be rendered as a Unified Distance Matrix (U-Matrix), which color-codes the distances between adjacent nodes. Light areas represent cluster boundaries, while dark areas represent dense, similar patient groups, allowing researchers to visually identify natural disease subtypes without predefined labels.

04

Component Planes for Feature Analysis

Beyond cluster visualization, SOMs provide component planes—individual heatmaps of the grid for each input variable. By comparing component planes side-by-side, clinical data scientists can visually correlate features. For example, a plane showing high expression of a specific biomarker can be directly compared to a plane showing a high polygenic risk score, revealing multivariate relationships that drive patient subgroup separation.

05

Soft Clustering and Transition Zones

Unlike hard clustering algorithms like K-Means, SOMs naturally model transitional states. Patients mapped to nodes on the border between two dense regions on a U-Matrix represent ambiguous or intermediate phenotypes. This is critical for modeling disease progression or continuous treatment responses, where a patient does not fit neatly into a discrete cluster but exists on a continuum between molecular subtypes.

06

Outlier Detection Capability

SOMs inherently function as an anomaly detection system. Input vectors that activate nodes with a high quantization error (a large distance between the input and its BMU) are statistical outliers. In a clinical context, these patients represent rare disease variants, data entry errors, or novel molecular profiles that warrant further investigation, making SOMs a valuable tool for quality control and novel endotype discovery.

ALGORITHM COMPARISON

SOM vs. Other Clustering & Dimensionality Reduction Methods

Comparative analysis of Self-Organizing Maps against common unsupervised learning techniques used for patient stratification and high-dimensional biomarker visualization.

FeatureSelf-Organizing Map (SOM)K-Means Clusteringt-SNEUMAPHierarchical Clustering

Learning Type

Unsupervised (competitive)

Unsupervised (centroid-based)

Unsupervised (manifold)

Unsupervised (manifold)

Unsupervised (connectivity-based)

Output

2D topology-preserving grid

Hard cluster assignments

2D/3D embedding

2D/3D embedding

Dendrogram hierarchy

Topology Preservation

Handles Non-linear Relationships

Requires Pre-specified Cluster Count

Probabilistic Assignment

Interpretable Node Weights

Scalability (n > 100K)

Moderate

High

Low

High

Low

SELF-ORGANIZING MAPS

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the architecture, training, and clinical application of Self-Organizing Maps for patient stratification.

A Self-Organizing Map (SOM) is a type of artificial neural network that uses unsupervised competitive learning to project high-dimensional input data onto a low-dimensional, typically two-dimensional, discrete grid of nodes while preserving the topological relationships of the original data space. The network consists of an input layer fully connected to a lattice of output neurons, each associated with a prototype weight vector of the same dimensionality as the input. During training, an input vector is presented, and the neuron whose weight vector is most similar—the Best Matching Unit (BMU)—is identified using a distance metric like Euclidean distance. The weight vectors of the BMU and its topological neighbors are then adjusted toward the input vector, with the update magnitude decreasing over time and with distance from the BMU. This process results in a map where similar inputs activate adjacent regions, enabling the visualization of high-dimensional clusters and data landscapes.

Prasad Kumkar

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.