<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A method for comparing self-organizing maps: case studies of banking and linguistic data</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Toomas Kirt</string-name>
          <email>Toomas.Kirt@mail.ee</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ene Vainik</string-name>
          <email>ene@eki.ee</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Leo Võhandu</string-name>
          <email>leov@staff.ttu.ee</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute of Cybernetics at Tallinn University of Technology</institution>
          ,
          <addr-line>Akadeemia tee 21, 12618 Tallinn</addr-line>
          ,
          <country country="EE">Estonia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Institute of the Estonian Language</institution>
          ,
          <addr-line>Roosikrantsi 6, 10119 Tallinn</addr-line>
          ,
          <country country="EE">Estonia</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Tallinn University of Technology</institution>
          ,
          <addr-line>Raja 15, 12618 Tallinn</addr-line>
          ,
          <country country="EE">Estonia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2007</year>
      </pub-date>
      <fpage>107</fpage>
      <lpage>115</lpage>
      <abstract>
        <p>The method of self-organizing maps (SOM) is a method of exploratory data analysis used for clustering and projecting multi-dimensional data into a lower-dimensional space to reveal hidden structure of the data. The algorithm used retains local similarity and neighborhood relations between the data items. In some cases we have to compare the structure of data items visualized on two or more self-organizing maps (i.e. the information about the same set of data items is gathered in different tasks, from different respondents or using time intervals (lags)). In this paper we introduce a method for systematic comparison of SOM maps in the form of similarity measurement. Based on the idea that the SOM retains local similarity relations of data items those maps can be compared in terms of corresponding neighborhood relations. We give two examples of case studies and discuss the method and its applicability as an additional and more precise measure of similarity of SOM maps.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>The self-organizing map (SOM) is a method to visualize multidimensional data. The
SOM performs mapping of multidimensional data onto a two-dimensional map while
preserving proximity relationships as well as possible. The results of the SOM
analysis are usually assessed visually. Interpretation of the SOM and discovered
knowledge depends mostly on an interpreter. Subjective factors such as one’s
attentiveness to both general patterns and local details of a large number of presented
data items might diminish the objective value of data analysis.</p>
      <p>When we use different sources of data that describe the same phenomenon but are
collected somehow differently or the number of variables is varying then we have to
assess whether the results of the two analyses are similar. As the SOM projects close
units of the input space into nearby map units the local neighborhood should remain
quite similar. In this paper we propose a simple method to compare the results of
different self-organizing maps. The methodology is based on the measurement of
similarities of the local neighborhood.</p>
      <p>In the first part of the paper the used methods and techniques including similarity
measurement methodology are introduced. In the second part of the paper two data
sets as case studies are used to illustrate the similarity measurement methodology.
Finally there is a discussion to analyze the results and the accuracy of the
methodology.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Self-organizing Map</title>
      <p>
        The self-organizing map [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is a powerful tool to visualize high-dimensional data. It
projects nonlinear relationships between high-dimensional input data into a
twodimensional output grid (map). The SOM is an artificial neural network that uses an
unsupervised learning algorithm without prior knowledge how systems input and
output are connected. For visualization of the self-organizing map a Unified distance
matrix (U-matrix) is used. The analysis has been performed by the SOM toolbox [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Dimensionality Reduction</title>
      <p>
        To reduce dimensionality of the data we use the principal component analysis (PCA).
The main idea of PCA is to reduce the dimensionality of a data set consisting of a
large number of interrelated variables, while retaining as much as possible of the
variation present in the data set [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The PCA transforms the data linearly and projects
original data on a new set of variables that are called the principal components. Those
are uncorrelated and ordered so that the first few components represent most of the
variation of the original variables.
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>Matrix Reordering</title>
      <p>
        The matrix reordering is a structuring method for graphs (and general data tables).
The method reorganizes the neighborhood graph data vertices according to specific
property – systems monotonicity [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. For example, we start with a simpleminded
graph input variant. Then we calculate the Hamming similarity matrix S for the given
graph. To reorder the graph for an easy visibility we will find the row sums of H.
Then we take the weakest object in the system (one with the minimal row sum) and
subtract that chosen object's similarities from the sum vector. We repeat that
elimination step n times whereby z is the evolving list of graph nodes in the
elimination order. And as the last step we print our graph g in the new order z. The
examples of such reordering can be seen in our case studies (Fig.3, Fig.5).
      </p>
    </sec>
    <sec id="sec-5">
      <title>Methodology of Similarity Measurement</title>
      <p>While the SOM represents data on two-dimensional topological maps the local
topological relations between data items can be used to assess whether the maps have
similar structure. The local neighborhood is the basis of our approach to measure the
similarity between maps and we expect the neighborhood relations to remain stable
even when the overall orientation of the map changes.</p>
      <p>The proposed methodology to measure similarity between the self-organizing maps
consists of four main steps.</p>
      <p>Firstly, to analyze general organization the resulting map is visually examined and
clusters and their borders are identified, also the general orientation and locations of
data items are identified. Thereafter the matrix of neighborhood relations is formed.
Neighborhood assessment is based on the location of the best matching units (BMU
a point on the map that is the closest to the input data vector) on the self-organizing
map. Two data items are neighbors if they are marked to locate on the same node or
in the neighboring nodes depending on the neighborhood range. The neighborhood on
the hexagonal map is demonstrated on Fig. 1. The neighborhood matrix is an n-by-n
square symmetric matrix N where n is the number of data items and the matrix can
also be regarded as a graph. If there is neighborhood relation between ith and jth
element then the value of the matrix element is marked 1 and 0 otherwise.</p>
      <p>⎧1, ifneighbor
nij = ⎨</p>
      <p>⎩0, otherwise</p>
      <p>
        Next stage of similarity analysis is the calculation and assessment of similarity
coefficients [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The coefficients have typically values between 0 and 1. A value 1
indicates that the two objects are completely similar and a value 0 indicates that the
objects are not at all similar. We have used two coefficients, such as the Simple
Matching Coefficient (SMC) and Jaccard coefficient (J).
      </p>
      <p>SMC =</p>
      <p>number of matches
total number of variables
.</p>
      <p>(1)</p>
      <p>The SMC rates positive and negative similarity equally and can be used if positive
and negative values have equal weight.</p>
      <p>Jaccard Coefficient (J) is used if the negative and positive matches have different
weights (are asymmetric).</p>
      <p>J =</p>
      <p>number of positive matches
number of variables - negative matches
.
(2)</p>
      <p>Jaccard Coefficient ignores negative matches and can be used if the variables have
many 0 values.</p>
      <p>If the value of the Jaccard coefficient and SMC is below 0.5 then the number of
positive matches is less than half of the total matches.</p>
      <p>Fourth part of the similarity measurement consists of finding how much the two
neighboring matrixes are identical what is a maximum isomorphic subset. The task is
not as complicated as the general isomorphic graph problem, because the order of the
data items is known and to identify the maximum isomorphic subgraph we can use an
AND operator. If aij &amp; bij (elements of the neighborhood matrixes have both value 1),
then the neighborhood relation is isomorphic. Here we can perform a new meta-level
analysis and reorder and visualize the isomorphic sub-graph to see commonly shared
information between two maps. For output the Graphviz1 software has been used.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Case Studies</title>
      <p>We use two sets of data to illustrate the method of similarity measurement. The first is
a research into the concepts of emotion in Estonian language. The survey consisted of
two parts and as a result two different data matrixes describe the same set of emotion
concepts. In our meta-analysis we attempt to analyze whether and to what extent the
results of two tasks are comparable. The second data set is banking data. In this case
the purpose of our meta-analysis is to detect whether and to what degree the
dimensionality reduction method (PCA) applied to the data has preserved its
structure. Those two data sets reveal different aspects of the comparison
methodology.
6.1</p>
      <sec id="sec-6-1">
        <title>Study of Estonian Concepts of Emotion</title>
        <p>The purpose of the study was to discover the hidden structure of the Estonian emotion
concepts and test a hypothesis that the way the information about concepts is
collected can influence its emergent structure. Two lexical tasks were carried out
providing information about emotion concepts either through their relation to the
episodes of emotional experience or through semantic interrelations of emotion terms
(synonymy and antonymy).</p>
      </sec>
      <sec id="sec-6-2">
        <title>Subjects and procedures</title>
        <p>
          The inquiry was carried out in written form during the summer months of 2003 in
Estonia. There were 24 emotion concepts selected for the study based on the results of
tests of free listings [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] and also on word frequencies in the corpora. The participants
        </p>
        <sec id="sec-6-2-1">
          <title>1 Graph Visualization Software available from http://www.graphviz.org/</title>
          <p>
            had to complete two tasks measuring the concepts by means of different levels of
knowledge (see [
            <xref ref-type="bibr" rid="ref10">10</xref>
            ]). In the first task they had to evaluate the meaning of every
single word against a set of seven bipolar scales, inspired by the Osgood’s method of
semantic differentials [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ]. In the second task the same participants had to elicit
emotion terms similar and opposite by meaning to the same 24 stimulus words.
          </p>
        </sec>
      </sec>
      <sec id="sec-6-3">
        <title>Analysis by SOM and meta-analysis of neighborhood relations</title>
        <p>The data of both tasks was analyzed by SOM (Fig. 2). In a visual comparison of the
two maps we could see completely different structures, but there is a clear distinction
of concepts of positive vs. negative emotions observable on both maps. The locations
of these clusters are reversed, however. In addition, the upper part of Fig. 2b is
divided into two subclusters as there is a group of concepts located in the uppermost
right edge of the graph. It is hard to decide whether the obtained structures are
different enough to claim the hypothesis that the way of approach (in form of our two
tasks) can influence the emerging conceptual structure, proved.</p>
        <p>a)
b)</p>
        <sec id="sec-6-3-1">
          <title>Neig. Task 1 Task 2 Similar Total SMC Jaccard</title>
          <p>range neig. neig. neig. neig. coef.
1 96 100 52 144 0.8403 0.3611
2 198 216 150 264 0.8021 0.5682
3 276 346 230 392 0.7188 0.5867</p>
          <p>The summary of the neighborhood relations between two tasks is given in Table 2.
The number of relations is measured with different range of neighborhood, starting
from 1 to 3. Increase in neighborhood range causes also increase in the number of
relevant neighborhood relations. The SMC coefficient is decreasing if the
neighborhood is increasing because of possible connections between the words that
actually do not belong to the same neighborhood. We could use the SMC as an
indicator of stability. Jaccard coefficient is increasing if the neighborhood range is
widening and there is tendency to have more positive matches if the number of
neighborhood relations increases.</p>
          <p>As far as the neighborhood range remains open it is still difficult to decide,
whether the two SOMs of our two tasks were different enough to claim our
hypothesis of the case study proven.</p>
          <p>The second step of meta-analysis is to find a maximum isomorphic sub-graph and
to find a clue what the suitable range of the neighborhood could be. In the case the
neighborhood range was provisionally set on 1, several separate fragments of
conceptual networks were formed. The general structure of the data did not appear as
a connected system. With the neighborhood range 2, the graph became connected.
One can speculate that it represents the communal structure or a backbone of the
conceptual data gathered from two tasks. The reordered data matrix and its graph are
visible on Fig. 3. The lighter part of the reordered matrix is isomorphic part of the
matrix.</p>
          <p>A conclusion can be drawn, that the match of the two structures based on our two
tasks is partial, and it is measurable in principle. The degree of measured structural
isomorphism depends on the rigidity of the selected criteria of neighborhood.
6.2</p>
        </sec>
      </sec>
      <sec id="sec-6-4">
        <title>Study of Banking Data</title>
        <p>The second data set is used to illustrate the impact of dimensionality reduction by
PCA on the SOM maps. The aim of the study is to measure the similarity between the
results of SOM mapping of original data and reduced data.</p>
      </sec>
      <sec id="sec-6-5">
        <title>The Banking Data</title>
        <p>The second data set consists of banking data (1997—2000;
http://www.bankofestonia.info). We have used 133 public quarterly reports by
individual banks as a balance sheet and profit / loss statement (income statement).
The 50 most important variables have been selected to form a short financial
statement of a bank. All the variables are normalized by the variable of total assets to
make the reports comparable.</p>
      </sec>
      <sec id="sec-6-6">
        <title>Analysis by SOM and meta-analysis of neighborhood relations</title>
        <p>We formed three sets of the banking data. The first set consisted of all 50 original
variables (Original), for the second set 26 principal components describing 95% of
variation were selected (PCA95) and for the third set 5 principal components
describing 50% of variation were selected (PCA50). From those data sets three
selforganizing maps were created (Fig. 4). Our aim has been to measure how similar
those maps are and whether similar banks are projected into nearby map units in all
cases.</p>
        <p>a)
b)
c)</p>
        <p>Analyzing the maps visually we can see that in general the maps have a similar
structure. As we are interested in overall structure we marked only the first BMUs on
the map. The labels are referring to the number of a report. Comparing the SOMs we
could identify one bigger group on top, another on bottom and a darker area between
them. The original and PCA50 map seem to be rather similar but in case of the
PCA95 left-right sides are interchanged. On the bigger light area on top of the SOM
there are located the bigger and main retail banks. At the bottom some smaller and
niche banks are gathered.
Experiment Neig. Orig PCA neig. Similar Total SMC Jaccard
range neig. neig. neig. coef.</p>
        <p>Orig vs. PCA 95% 1 1876 1772 1426 2222 0.9550 0.6418
Orig vs. PCA 50% 1 1876 2120 1480 2516 0.9414 0.5882
Orig vs. PCA 95% 2 4078 3972 3122 4928 0.8979 0.6335
Orig vs. PCA 50% 2 4078 4038 3046 5070 0.8856 0.6008</p>
        <p>In Table 2 the similarity measurement coefficients of the banking data are given.
The density of data items on the map is quite high and it is also visible in the number
of neighborhood relations. There is a slight difference in the number of neighborhood
relations between PCA95 and PCA50. It shows that the PCA retains the internal
structure of the data items. The SMC value is very high in all cases, but is becoming
lower if the neighborhood range is widening. The Jaccard coefficient shows about 0.6
similarities between the different representations of the data items.</p>
        <p>As the banking data consisted of 133 data items the neighboring relations were
much stronger than in case of linguistic data. In Fig. 5 there is given an isomorphic
subgraph showing neighborhood relations between the SOM of original data and the
SOM of PCA95. The neighborhood range is defined as 1. The graph illustrates quite
well the structure within the data. The same grouping was visible on the graph
representing only 50% of variations. When the neighborhood range was increased the
isomorphic sub-graph became connected but at the same time the neighborhood
relations became so dense that the structure was not clearly visible any more.</p>
        <p>The analysis what is the impact of dimensionality reduction on the results gave us
confirmation that even the dramatic dimensionality reduction by the PCA method
retains the most important internal relations in the data.
7</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Discussion and Conclusions</title>
      <p>
        The case studies give an overview of possibilities to measure similarity between
selforganizing maps that is based on the topology and neighborhood relations. We find
local neighborhood relations between the data items and measure the similarity of
relations by coefficients and by finding an isomorphic subgraph. There has been
proposed another method to evaluate two- or three-dimensional visualizations and to
measure distances between the two representations by Mandl and Eibl [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. They
calculate Euclidian distances between all the items and find correlation between two
representations. We prefer to use local topological representation and not to convert it
once more into the Euclidian space.
      </p>
      <p>The similarity measurement coefficients together could give some additional
information about the similarity. If the SMC value is high and at the same time the
Jaccard coefficient has lower value then it indicates the presence of clustered
structure. The bigger the difference is the smaller are the clusters. We can also use the
SMC coefficient if the data items are exclusive like in the case of lexical study. There
were two exclusive groups of data – positive and negative emotion concepts – that
had weak neighborhood relations.</p>
      <p>We expected to use the maximum isomorphic subgraph as a measure to identify
the similarity between the SOMs, but it became a new meta-level tool to find hidden
structure and to reveal the grouping structure of the data. The main parameter in
similarity analysis is the range of neighborhood. The number of neighborhood
relations increases if the number of data items or the range of the neighborhood
widens. The size of a map has also an impact on the density of data items on the map.
Depending on the density of the data items range 1 or 2 gives good insight into the
hidden structure or the so-called backbone within the data. In both case studies the
visualized isomorphic neighborhood matrix gave us a new perspective on relations
between the data items.</p>
      <p>In this paper, we have proposed a methodology to measure similarity between the
self-organizing maps if the maps are describing the same phenomenon but use
different sources of data or the number of variables are different. We illustrated the
methodology by two sets of data. The results of the two case studies have shown us
that the suggested method to measure similarity between two self-organizing map is
applicable and it gives new insights into the data.</p>
      <p>Acknowledgements. This study was supported by the Estonian Science Foundation,
grant No 7149 and G5918.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Jolliffe</surname>
          </string-name>
          , I.T.:
          <article-title>Principal Component Analysis</article-title>
          . Springer, New York (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Kohonen</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Self-organising maps</article-title>
          .
          <source>3rd edn</source>
          . Springer, Berlin (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Mandl</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eibl</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Evaluating Visualizations: A Method for Comparing 2D Maps</article-title>
          . In: Smith,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Salvendy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Harris</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            ,
            <surname>Koubek</surname>
          </string-name>
          ,
          <string-name>
            <surname>R</surname>
          </string-name>
          . (eds.):
          <source>Proceedings of the HCI International</source>
          <year>2001</year>
          (9th International Conference on Human-Computer Interaction). Lawrence Erlbaum Associates, London (
          <year>2001</year>
          )
          <fpage>1145</fpage>
          -
          <lpage>1149</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Alhoniemi</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Himberg</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parhankangas</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <source>Vesanto J.: SOM Toolbox (Version 2.0)</source>
          . [Computer software and manual].
          <source>(2005) Retrieved November 11</source>
          ,
          <year>2005</year>
          , from http://www.cis.hut.fi/projects/somtoolbox/
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Osgood</surname>
            ,
            <given-names>C.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Suci</surname>
            ,
            <given-names>G.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tannenbaum</surname>
            ,
            <given-names>P.H.</given-names>
          </string-name>
          :
          <article-title>The Measurement of Meaning</article-title>
          . University of Illinois Press, Urbana and Chicago (
          <year>1975</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Tan</surname>
            ,
            <given-names>P.-N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Steinbach</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kumar</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Introduction to Data Mining</article-title>
          .
          <source>Addison Wesley</source>
          , Boston (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Vainik</surname>
          </string-name>
          , E.:
          <article-title>Emotions, emotion terms and emotion concepts in an Estonian folk model</article-title>
          .
          <source>Trames</source>
          ,
          <volume>6</volume>
          (
          <issue>4</issue>
          ) (
          <year>2002</year>
          )
          <fpage>322</fpage>
          -
          <lpage>341</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Võhandu</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Express methods of data analysis</article-title>
          .
          <source>Transactions of Tallinn TU</source>
          ,
          <volume>464</volume>
          (
          <year>1979</year>
          )
          <fpage>21</fpage>
          -
          <lpage>35</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Võhandu</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Fast methods in exploratory data analysis</article-title>
          .
          <source>Transactions of Tallinn TU</source>
          ,
          <volume>705</volume>
          (
          <year>1989</year>
          )
          <fpage>3</fpage>
          -
          <lpage>14</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Vainik</surname>
          </string-name>
          , E.:
          <article-title>Lexical knowledge of emotions: the structure, variability and semantics of the Estonian emotion vocabulary</article-title>
          . Tartu University Press, Tartu, Estonia (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>