Classical machine learningML 13

Self-Organising Maps

A self-organising map arranges data on a grid so that similar items end up next to each other. Each cell of the grid, called a unit, holds a point in data space. Training repeatedly takes one sample, finds the unit closest to it, and pulls that unit and its neighbours on the grid towards the sample. Nobody labels the data: the order emerges by itself, which makes SOMs a tool for exploring data: grouping customers, documents, songs or patients with similar profiles. Press play to watch the map organise, or step through single updates.

input space
the mapgrid of units

Training

Last update

input space (2D data): dots are samples, the net is the map, and each unit is drawn at its weights · ring: the sample, outlined unit: its best match · dashed circles on the map: 1σ and 2σ of the neighbourhood (shown when paused) · while training runs, the picture eases smoothly instead of redrawing every update, to avoid flicker

Reading the map

In the colours example each unit’s weights are a colour, so the map can be painted directly: after training, similar colours sit together and blend into each other. For 2D data, the units are coloured by their position in the input space, so the same colours in both views belong together. The U-matrix (Ultsch & Siemon, 1990) shows the distance from each unit to its neighbours: orange ridges are gaps in the data, the borders between clusters. The hits view shows how many samples each unit represents.

Measuring quality

The quantisation error is the average distance from each sample to its best-matching unit: how faithfully the map represents the data. The topographic error is the share of samples whose two closest units are not neighbours on the grid: how well the map keeps things that are close in the data close on the grid (Kiviluoto, 1996). A tangled map, as at the start, has a high topographic error. Shrinking the neighbourhood too fast leaves knots that never untangle; try a short training length on the square.

Where SOMs are used

Teuvo Kohonen developed the method in the early 1980s, partly as a model of the orderly maps found in the brain’s sensory cortex. SOMs have since been used to organise large collections of documents, sounds and images, to monitor industrial processes, and in biology to group genes by their expression patterns (Tamayo et al., 1999). Their advantage over plain clustering is the picture: the map shows how groups relate to each other, not only which group each item belongs to.

References

  1. Kohonen, T. (1982). Self-organized formation of topologically correct feature maps. Biological Cybernetics, 43(1), 59–69. doi.org/10.1007/BF00337288
  2. Kohonen, T. (1990). The self-organizing map. Proceedings of the IEEE, 78(9), 1464–1480. doi.org/10.1109/5.58325
  3. Ultsch, A., & Siemon, H. P. (1990). Kohonen’s self organizing feature maps for exploratory data analysis. In Proceedings of the International Neural Network Conference (INNC-90), Paris (Vol. 1, pp. 305–308). Kluwer.
  4. Kiviluoto, K. (1996). Topology preservation in self-organizing maps. In Proceedings of the International Conference on Neural Networks (ICNN'96), Washington, DC (Vol. 1, pp. 294–299). IEEE.
  5. Tamayo, P., Slonim, D., Mesirov, J., et al. (1999). Interpreting patterns of gene expression with self-organizing maps: methods and application to hematopoietic differentiation. Proceedings of the National Academy of Sciences, 96(6), 2907–2912. doi.org/10.1073/pnas.96.6.2907