Self-Organizing Maps (SOM)
Self-Organizing Maps (SOM)
Self-Organizing Maps (SOM)
Lecture 7
Self-Organizing Maps (SOM)
Prof. Zhen Ni
Assistant Professor
Department of Electrical Engineering and Computer Science
J. Lohr College of Engineering
South Dakota State University
223 Daktronics Engineering Hall, Box 2222
Brookings, SD 57007
Outline
• What is SOM?
• Touring SOM through equations and examples
• More SOM examples and variations
• SOM application in real world
• References
1
3/16/2016
Note
Most of the lecture slides are adopted from the following resources:
History
2
3/16/2016
What is SOM?
What is SOM?
3
3/16/2016
Topographic Maps
Topographic Maps
4
3/16/2016
We have points x in input space mapping to points I(x) in the output space
Each point I in the output space will map to a corresponding point w(I) in the input
9
space.
10
5
3/16/2016
11
12
6
3/16/2016
13
14
7
3/16/2016
15
Components of Self-Organization
• Four major steps in the self-organization procedure
1. Initialization:
All the weights of neurons are initialized.
2. Competition:
For each input pattern, compute the respective values of a discriminant
function for each neuron node;
The particular neuron with the smallest value of the discriminant function
is declared the winner.
3. Cooperation:
The winner determines a topological neighborhood of excited neurons,
whose degree of excitation is determined by their distance to the winner.
4. Adaptation:
The excited neurons adjust their weights to reduce the discriminant
function for each input pattern.
16
8
3/16/2016
3. Find the Best Matching Unit (BMU) for each input instance
based on the distance between the data and the weights of
nodes;
Initialization
9
3/16/2016
Data Sampling
19
20
10
3/16/2016
22
11
3/16/2016
Shrinks
over time
• Idea: Weights of nodes that are closer to the BMU will subject
to greater influence
• The lattice distances between the nodes and the BMU are
calculated in the output space
• A neighborhood function (kernel) is utilized to determine the
influence of BMU within the neighborhood
24
12
3/16/2016
• Idea: Weights of nodes that are closer to the BMU will subject
to greater influence
• Assume we keep the same BMU in this example
The lateral influence of BMU
The BMU Start training…
Also shrinks
over time
Both shrinks
over time
13
3/16/2016
= 1000
0.06
0.04
0.02
0
1 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Iterations
27
Current L0 = 0.8
0.5
0.1
input
x0 The SOM
weights
are drawn
The closer to
BMU x0
(original
location) The BMU
also moves
for any
non-zero
learning
rate
14
3/16/2016
where
Weights Weights
Update Update
Best
Matching Input
Unit Data
30
Source: http://en.wikipedia.org/wiki/Self-organizing_map
15
3/16/2016
0.8
1.5
0.6
1
0.4
0.5
0.2
0 0
0 0.5 1 1.5 2 0 0.2 0.4 0.6 0.8 1
32
16
3/16/2016
33
1 1 1
0 0 0
1 1 1
1 1 BMU 1
0.5 0.5 0.5 0.5
0.5 0.5
0 0 0 0 0 0
34
17
3/16/2016
35
SOM Applications
36
18
3/16/2016
SOM Applications
Data Analysis (Engineering Applications)
o Computational Intelligence analysis
Data visualization
Data clustering
Hagenauer, J. and Helbich, M. (2013). “Contextual neural gas for spatial clustering and
analysis”. International Journal of Geographical Information Science, 27(2):251–266 37
SOM Applications
Data Analysis (Engineering Applications)
o Communication networks
Kaski, Samuel, et al. "WEBSOM– self-organizing maps of document
collections." Neurocomputing 21.1 (1998): 101-117.
o Chemical Engineering
Melssen, W. J., et al. "Using artificial neural networks for solving chemical
problems: Part II. Kohonen self-organising feature maps and Hopfield networks."
Chemometrics and intelligent laboratory systems 23.2 (1994): 267-291.
o Geoinformation Systems (GIS)
Ji, C. Y. "Land-use classification of remotely sensed data using Kohonen self-
organizing feature map neural networks." Photogrammetric Engineering and
Remote Sensing 66.12 (2000): 1451-1460.
Bação, Fernando, Victor Lobo, and Marco Painho. "The self-organizing map, the
Geo-SOM, and relevant variants for geosciences." Computers & Geosciences 31.2
(2005): 155-163.
38
19
3/16/2016
SOM Applications
o Power System analysis
Y., Jun, et al. "Multi-Contingency Cascading Analysis of Smart Grid Based on Self-
Organizing Map." (2013): Information Forensics and Security, IEEE Transactions
on,8.4 (2013)
Thang, K. F., et al. "Analysis of power transformer dissolved gas data using the self-
organizing map." Power Delivery, IEEE Transactions on 18.4 (2003)
A visualization and security analysis for Texas Grid with SOM, Yan, Jun, et al (2013)
39
SOM Applications
Data Analysis (Non-engineering fields)
o Biology
Ideker, Trey, et al. "Integrated genomic and proteomic analyses of a systematically
perturbed metabolic network." Science 292.5518 (2001): 929-934.
Tamayo, Pablo, et al. "Interpreting patterns of gene expression with self-organizing
maps: methods and application to hematopoietic differentiation. " Proceedings of
the National Academy of Sciences 96.6 (1999): 2907-2912.
Fankhauser, Niklaus, and Pascal Mäser. "Identification of GPI anchor attachment
signals by a Kohonen self-organizing map." Bioinformatics 21.9 (2005): 1846-1852.
Biomedical study
Chen, Dar-Ren, Ruey-Feng Chang, and Yu-Len Huang. "Breast cancer diagnosis
using self-organizing map for sonography." Ultrasound in medicine & biology 26.3
(2000): 405-411.
Andrade, M. A., et al. "Evaluation of secondary structure of proteins from UV
circular dichroism spectra using an unsupervised learning neural network.“ Protein
engineering 6.4 (1993): 383-390.
Lagerholm, Martin, et al. "Clustering ECG complexes using Hermite functions and
self-organizing maps." Biomedical Engineering, IEEE Transactions on 47.7 (2000):
838-848. 40
20
3/16/2016
SOM Applications
Data Analysis (Non-engineering fields)
o Finance
– Kiviluoto, Kimmo. "Predicting bankruptcies with the self-organizing map."
Neurocomputing 21.1 (1998): 191-201.
– Kaski, Samuel, Janne Sinkkonen, and Jaakko Peltonen. "Bankruptcy analysis with
self-organizing maps in learning metrics." Neural Networks, IEEE Transactions
on 12.4 (2001): 936-947.
– Eklund, Tomas, et al. "Using the self-organizing map as a visualization tool in
financial benchmarking." Information Visualization 2.3 (2003): 171-181.
o Ecology
– Giraudel, J. L., and S. Lek. "A comparison of self-organizing map algorithm and
some conventional statistical methods for ecological community ordination."
Ecological Modelling 146.1 (2001): 329-339.
41
SOM Resources
• Tutorial
– Kohonen's Self Organizing Feature Maps
http://www.ai-junkie.com/ann/som/som1.html
• Toolbox
– SOM Toolbox for Matlab
http://www.cis.hut.fi/somtoolbox/
– WEKA SOM package
https://sourceforge.net/projects/wekann/files/SelfOrganizingMap/
42
21
3/16/2016
Summary
• Self-Organizing Map
– The algorithm
• Initialization, competition, corporation, and adaptation
• BMU, neighborhood size, learning rate, and kernel function
– Examples
• The Iris example
• SOM variations
– SOM applications and resources
43
Reference
The lecture notes in this lecture are adopted and based on the following information:
22