What are Self-organizing Maps?
A self-organizing map (SOM), introduced by Teuvo Kohonen, is an unsupervised neural network that projects high-dimensional data onto a low-dimensional grid of nodes, usually two-dimensional, while preserving topology: similar inputs land on nearby nodes. Training presents feature vectors one at a time; the best-matching node and its grid neighbors are pulled toward each input, with the neighborhood radius and learning rate shrinking as training proceeds. Each node ends up holding a prototype, a representative combination of feature values.
For markets, the grid becomes a map of conditions: feed in volatility, momentum, and volume features and regions of the map come to correspond to regimes, with the live bar's best-matching node saying where conditions currently sit. The approach is closely related to K-means regime grouping, since both learn prototypes. Its supervised sibling, learning vector quantization (LVQ), attaches class labels to the prototypes so the nearest one's label becomes a directional signal, which is how some charting implementations of this family work.
The method is Finnish in origin: Kohonen introduced it in the early 1980s while at the Helsinki University of Technology, and it became one of the most cited neural architectures of the pre-deep-learning era, applied to speech, image, and document organization. Its enduring appeal is interpretability. Where most networks are opaque, a trained SOM can literally be drawn: each node's prototype can be inspected directly, and shading the distances between neighboring prototypes (the U-matrix) reveals the natural groupings in the data.
Getting useful maps from market data is mostly feature engineering and preprocessing. Inputs must be scaled to comparable ranges or the distance calculation is dominated by whichever feature has the largest units, and many workflows compress correlated inputs with PCA first. Grid size, learning rate, and neighborhood decay are free parameters with no market-given answer, and because prices are non-stationary, a map trained on one era can misfile the next, which motivates periodic retraining or online updating. The map itself is descriptive: turning a region into a trade still requires attaching outcomes, through LVQ labels or a separate label definition step.
How to put a self-organizing map to work on a chart
A SOM is a model rather than a chart pattern, so identification means building and reading one; charting implementations follow roughly the same sequence.
- 1Choose a handful of features per bar, such as returns over several horizons, a volatility measure, and relative volume, and normalize each to a comparable scale.
- 2Pick a modest grid and train on a rolling historical window; small maps are typical for single-symbol work because each node needs many example bars.
- 3Inspect the trained map and label regions by the average behavior of the bars that land there: quiet drift, strong trend, high-volatility reversal.
- 4Plot the live bar's best-matching node or region on the chart, coloring bars or a status pane by regime.
- 5Watch trajectories as well as states: drift across adjacent nodes suggests gradual regime change, while a jump to a distant region flags an abrupt shift.
- 6Retrain on a schedule and compare successive maps; regions that reshuffle on every retrain are unstable and should not carry trading logic.
How traders use it
- Regime mapping: train the map on historical feature vectors, label coherent regions (quiet trend, volatile range), and key strategy logic off which region the current bar maps into.
- Analog finding: the best-matching node identifies which historical conditions most resemble the present, a prototype-based cousin of kNN analog forecasting.
- LVQ classification: prototypes carry bullish or bearish outcome labels and are nudged toward inputs of their own class during training; live classification is simply the nearest prototype's label.
- Anomaly detection: when the live bar sits unusually far from even its best-matching prototype, current conditions resemble nothing in the training window, which argues for reducing model-driven risk.
- As one voice in ensemble voting: the SOM's regime label gates or weights other signals, for example only honoring mean-reversion entries when the map sits in a range-like region.
Self-organizing maps vs related methods
K-means: Both learn prototypes from unlabeled data. K-means prototypes are unordered, while a SOM constrains grid neighbors to stay similar, adding a geography of regimes at some cost in raw fit.
kNN Analog Forecasting: kNN keeps every historical observation and searches raw history at prediction time; a SOM compresses history into prototypes first, trading fine detail for speed and a stable, inspectable map.
Gaussian Mixture Models: GMMs describe data with overlapping probability components and return soft membership probabilities; a SOM returns a hard best-matching node arranged spatially. One quantifies uncertainty, the other visualizes structure.
Hidden Markov / Markov-switching Regimes: HMMs model regime persistence and transition probabilities through time; a SOM has no time model and classifies each bar independently, which is why the two are sometimes combined.
Concept family
Machine Learning
32 concepts mapped · 32 in the Library
Self-organizing Maps FAQ
Turn Self-organizing Maps into a trading strategy.
Describe your Self-organizing Maps idea to Quant. It builds the strategy with you and backtests it on real data.