<!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>MapView: Graphical Data Representation for Active Learning</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Eva Weigl</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Wolfgang Heidl</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alexander Walch</string-name>
          <email>AL@iKNOW</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Thomas Radauer</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ulrich Neissl</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Edwin Lughofer</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pauline Meyer-Heye</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Christian Eitzinger</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Johannes Kepler University of Linz</institution>
          ,
          <country country="AT">Austria</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Profactor GmbH</institution>
          ,
          <addr-line>Steyr-Gleink</addr-line>
          ,
          <country country="AT">Austria</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>STRATEC Consumables GmbH</institution>
          ,
          <addr-line>Anif</addr-line>
          ,
          <country country="AT">Austria</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Active learning facilitates the training of classifiers by selectively querying the user in order to gain insights on unlabeled data samples. Until recently, the user had limited abilities to interact with an active learning system: A sub-selection was presented by the system and every sample within had to be annotated. We propose an alternative and graphical solution to active learning called MapView where the user may profit from a different interpretation of the underlying data. Experiments underline the usability and advantages of our approach during the training of a classifier from scratch.</p>
      </abstract>
      <kwd-group>
        <kwd>active learning</kwd>
        <kwd>graphical data representation</kwd>
        <kwd>classification</kwd>
        <kwd>random forests</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>providing information on the original features in the graphical visualization as well as confidences and proposed
class labels from the classifier. This gives the user a more complete picture of the scenario. Also all samples are
presented, allowing relabeling of samples and even adding new classes during training.</p>
      <p>
        Our proposed method is independent from the classifier choice as long as the classifier result contains an
additional probability measure about how certain the classifier is in its decision. We take advantage of a
Random Forest classifier [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and interpret the trees’ votes as probabilities. We chose Random Forests because we
start with a small number of pre-labeled samples for active learning where a bagged ensemble approach such as
Random Forests is well known to outperform other standard (non-ensembled) classifiers. This is because bagging
nicely explores the data space through bootstrapping the samples a multiple times, which is, for instance, more
deeply analyzed in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. In this way, bagging not only reduces the bias of the classifier, but also its variance.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Method</title>
      <p>We propose a graphical approach to support the user in training a classifier via active learning. The scenario is
multi-class classification with pool-based sampling with uncertainty sampling as query strategy.</p>
      <p>
        The main information displayed in the graphical representation is: current labels, current predicted labels,
certainty of the prediction and sample coordinates in feature space. The last providing the user with a feature
analysis view. This kind of view is described as enhancing the user’s understanding of predictions and trust in
the underlying classifier in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. To display the multi-dimensional feature coordinates, we need to project them
onto a 2-dimensional map. For this purpose, we first take advantage of k-means clustering to find a number
of cluster centers among our data (corresponding to the number of classes). These centers are then embedded
onto a 2-dimensional map by dimensionality reduction. All remaining samples can then be represented as linear
combination of the cluster centers and are added to the map. In the following, we will describe the method in
more detail.
      </p>
      <p>
        As classifier, we select Random Forests (see [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] for more information). However, as mentioned before, any
classifier that delivers probability measures for each class label can be selected. In our case, we use the votes of
each tree divided by the number of all trees as certainty measure for the sampling of interesting samples: the
higher the votes, the more certain the classifier is in its decision. This is similar to a least confidence sampling
strategy with aspects of maximum entropy sampling in active learning, where the sample to be labeled by the
user, is chosen by the learning algorithm [
        <xref ref-type="bibr" rid="ref10">11</xref>
        ]. However, in our approach the user is merely given the information
as decision support, thus providing an interactive learning scenario as described in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>Within the scope of our classifier, we use the term event for any item in our database (this can be e.g., an
image). Let Ei be the i-th event in our database, consisting of i = 1, ..., N samples. Each event Ei has an
F -dimensional feature vector xi = {x1, ..., xF }. The goal is to assign one of K class labels to the image. For this
purpose, for each event Ei a class vector ci = {c1, ..., cK } exists, with cj ∈ [0; 1], j = {1, ..., K} representing the
probability of belonging to class j.</p>
      <p>
        Since our aim is to embed the high-dimensional events on a user-friendly 2D map, it is necessary to perform
dimensionality reduction. Dimensionality reduction means finding an embedding e : Rd → Rc that transforms
high-dimensional data from its original d-dimensional space into representations with a reduced number of
dimensions c (with c d) [
        <xref ref-type="bibr" rid="ref14">15</xref>
        ]. In our environment, there are two vectors per event which result in two
possibilities for the embedding: (i) the feature vector xi, or (ii) the class vector ci. The first has the advantage
that the resulting map will not change after each classifier training, since the features remain static. Additionally,
the resulting map can be used at the very beginning where not a single class label is present in the dataset. On
the other side, using the class vector for the embedding better resembles the classifier’s view of the data. Nearby
located events are regarded as belonging to a similar class, and uncertainties in labeling can quickly be identified
(e.g., events lying between two classes). However, the main drawback is that the map will change after every
training or incremental update of the classifier. Since our motivation is to facilitate the annotation work for the
user, we chose the feature vectors for our embedding in order to avoid confusion over the continuously changing
map as it would be in case of the class vectors.
      </p>
      <p>
        There exist a variety of dimensionality reduction methods (see [
        <xref ref-type="bibr" rid="ref14">15</xref>
        ] for a comparative review). For our
experiments, we used the Sammon’s Mapping (SM) [10] since it attempts to preserve the inherent data structure.
The goal is to minimize the following error function
      </p>
      <p>E = P
1</p>
      <p>X (di∗j − dij )2
i&lt;j di∗j i&lt;j</p>
      <p>
        di∗j
where di∗j is the distance between the i-th and j-th event in the original space, and dij the distance in the
embedding. As distance measure the Euclidean distance was selected. The minimization is performed iteratively
with a random initialization and a heuristic approach as proposed by [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. It is a non-linear approach since the
embedding is not a linear combination of the original components (as for example, in techniques like the principal
component analysis) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. In addition, the computational complexity is quadratic (w.r.t. the number of events)
which we regarded feasible since the mapping only needs to be computed once as the feature vectors remain
static. Additionally, instead of performing the SM on all events from the dataset, we take advantage of k-means
clustering as initial step where we compute the locations of K cluster centers (corresponding to the number of K
classes). The feature vectors xi of all N events of our dataset are then transformed and represented as a linear
combination of the K cluster centers kj (i.e., as barycentric coordinates):
xi ≈
      </p>
      <p>K
X kj · λj
j=1
with PK</p>
      <p>j=1 λj = 1. In our application area, the number of cluster centers is typically smaller than the dimension d
of the feature vectors. Hence, for each feature vector, we computed a least squares solution of the overdetermined
equation system in Eq. 2. In general, the number of cluster centers need to be restricted to min (d, K) in order
to guarantee a unique solution of Eq. 2. By choosing λ1 = 1 − PK
j=2 λj , one can reduce the constraint on the
lambdas by solving:
xi − k1 ≈ (k2 − k1, . . . , kK − k1) ·  ... 
| {kz } λK
 λ2 
which is equivalent to finding a least squares solution of Eq. 2. Since the matrix k is independent of the feature
vectors xi, its pseudoinverse k+ enables an efficient computation of the barycentric coordinates of all feature
vectors:
 λ1 
 ... 
λK
λ1</p>
      <p>+
= k · (xi − k0)
= 1 − PK
j=2 λj
After embedding the cluster centers kj via SM, the embedded feature vectors xi∗, i = {1, ..., N } of all events are
computed using Eq. 2 by substituting kj with the embedded cluster centers k∗.
j</p>
      <p>We implemented a simple user interface depicting the proposed MapView of a given dataset (see Fig. 1). In
our setting, all events are displayed as points on a 2-dimensional map. Instead of presenting the user the raw
view of a pre-selected set of interesting instances (e.g., unlabeled images with pre-computed features), the user
gets a graphical overview. Within this view, events are displayed as points with the transparency of the color
proportional to the certainty of the classifier – i.e., the more certain a classifier is about classifying a specific
event, the less visible (and thus, more transparent) the corresponding point is on the map. This results in a
highlighting of interesting samples that is intended to attract the user’s attention, while samples with a high
classifier certainty are blurred out. We also decided to show both the manually assigned label (area of the circle)
as well as the classifier’s prediction (circular ring) pretending the label is unknown. The user can interact with
the MapView via different ways: (i) zooming in/out and translating, (ii) getting a preview of a selected event
(e.g., image thumbnail and features), (iii) assigning a class label to the event (via a pop-up window that shows
a preview of the underlying raw image or features), and (iv) applying a (re-)training of the classifier.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Experimental results</title>
      <p>
        For our experiments, we used an activity recognition dataset containing accelerometer and gyroscope sensor
signals collected by waist-mounted smartphones (see [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]). The set consists of 12 classes (representing basic
activities and postural transitions of human subjects, such as walking, standing, etc.) with a total of 3162
samples with 561 features each.
      </p>
      <p>We attempted to train a classifier from scratch by excluding the class labels for our active learning approach
and only using them for labeling the query samples. We started with a random labeling of one sample per
(2)
(3)
(4)
(5)
(a) Legend
(b) Initial map</p>
      <p>(c) Result after one labeled event per class
(d) Result after 6 labeled events per class
class and a subsequent training of the classifier. This step is depicted in Fig. 1(b) with each color representing a
class label (see Fig. 1(a)). The result after training the classifier on these labeled samples is shown in Fig 1(c).
Obviously, the certainty of the classifier is very low at this point as nearly all samples are depicted opaque.
Afterwards, we labeled five uncertain samples per class and again trained the classifier (the result is in Fig. 1(d)).</p>
      <p>The results are easily interpretable and match our assumptions: As one can see, the active activities (walking,
walking down, walking up) form a cluster in the lower left region of the map, whereas passive activities (laying,
sitting, standing ) are centered on the upper right half of the map, with laying being even more separated from the
other two classes. Postural transitions (lie to sit, lie to stand, sit to lie, sit to stand, stand to lie, stand to sit )
are spread in between the other two clusters. The average accuracy as shown in Tab. 1 evaluates the classifier’s
performance after the initial setup of only one labeled event per class, and after 5 additional samples. We also
evaluated the 12 classes by dividing them into passive and active classes as described before, as well as into
3 postural transition classes of the pairs lie to sit/lie to stand, sit to lie/sit to stand, stand to lie/stand to sit.
Apparently, after labeling only 5 additional events per class, the average accuracy increases up to 60%. When
considering the combined groups with only 1 labeled event per (original) class, the accuracy even rises to 97%.</p>
      <p>The advantage of our method is that it is faster to calculate the embedding only for the cluster centers instead
of all samples of the dataset. In addition, the map also allows a graphical interpretation of the dataset and the
classifier’s behavior.</p>
      <sec id="sec-3-1">
        <title>Acuracy</title>
      </sec>
      <sec id="sec-3-2">
        <title>Per class</title>
        <p>Per group
1 labeled
sample
per class
0.47
0.97</p>
      </sec>
      <sec id="sec-3-3">
        <title>6 labeled</title>
        <p>samples
per class
0.60
0.98</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>The proposed method implements a graphical representation of an underlying dataset for classification via active
learning. Instead of presenting the user a sub-set of interesting samples and requiring their annotation, the
samples are depicted as 2D points on a map (called ‘MapView’) with the color corresponding to the class label.
This results in several advantages such as (i) using active learning to avoid the annotation of a large amount of
data, (ii) gaining insight into the high-dimensional feature space of the data within the 2D view (e.g., simple
identification of cluster samples or outliers), (iii) getting feedback of the classifier’s certainty in labeling the
samples (samples about which the classifier is uncertain are plotted opaque, whereas the more certain a classifier
is, the more transparent the 2D point representation), and (iv) straightforward interpretation of the classifier
result and improved understanding of the classifier’s decision (e.g., understanding why the classifier made or is
uncertain its decision). In the future, we will consider feature selection before the embedding process in order to
reduce the high-dimensional space to the most promising features. Additionally, other dimensionality reduction
or embedding methods might be worth experimenting with.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgements</title>
      <p>This work was funded via the projects ‘rollerNIL’ within the call ‘Produktion der Zukunft’, and ‘MVControl’
within the call ‘IKT der Zukunft’. Both programs are supplied by the Austrian Research Promotion Agency
(FFG), and promoted by the Austrian Federal Ministry of Transport, Innovation and Technology (BMVIT).
[10] J.W. Sammon. A Nonlinear Mapping for Data Structure Analysis. IEEE Transactions on Computers,</p>
      <p>C-18(5):401–409, 1969.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Bilal</given-names>
            <surname>Alsallakh</surname>
          </string-name>
          , Allan Hanbury, Helwig Hauser, Silvia Miksch, and
          <string-name>
            <given-names>Andreas</given-names>
            <surname>Rauber</surname>
          </string-name>
          .
          <article-title>Visual methods for analyzing probabilistic classification data</article-title>
          .
          <source>Visualization and Computer Graphics</source>
          , IEEE Transactions on,
          <volume>20</volume>
          (
          <issue>12</issue>
          ):
          <fpage>1703</fpage>
          -
          <lpage>1712</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Michael</given-names>
            <surname>Balzer</surname>
          </string-name>
          and
          <string-name>
            <given-names>Oliver</given-names>
            <surname>Deussen</surname>
          </string-name>
          .
          <article-title>Level-of-detail visualization of clustered graph layouts</article-title>
          .
          <source>In Visualization</source>
          ,
          <year>2007</year>
          . APVIS'
          <volume>07</volume>
          .
          <year>2007</year>
          6th
          <string-name>
            <given-names>International</given-names>
            <surname>Asia-Pacific Symposium</surname>
          </string-name>
          on, pages
          <fpage>133</fpage>
          -
          <lpage>140</lpage>
          . IEEE,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>P</given-names>
            <surname>Brazdil</surname>
          </string-name>
          , CG Carrier,
          <string-name>
            <given-names>C</given-names>
            <surname>Soares</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R</given-names>
            <surname>Vilalta</surname>
          </string-name>
          . Metalearning:
          <article-title>Applications to Data Mining</article-title>
          .
          <source>Cognitive Technologies</source>
          . Springer Berlin Heidelberg,
          <volume>1</volume>
          <fpage>edition</fpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Leo</given-names>
            <surname>Breiman</surname>
          </string-name>
          .
          <article-title>Random forests</article-title>
          .
          <source>Machine learning</source>
          ,
          <volume>45</volume>
          (
          <issue>1</issue>
          ):
          <fpage>5</fpage>
          -
          <lpage>32</lpage>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Benjamin</surname>
            <given-names>H</given-names>
          </string-name>
          ¨oferlin, Rudolf Netzel, Markus H¨oferlin, Daniel Weiskopf, and
          <string-name>
            <given-names>Gunther</given-names>
            <surname>Heidemann</surname>
          </string-name>
          .
          <article-title>Inter-active learning of ad-hoc classifiers for video visual analytics</article-title>
          .
          <source>In Visual Analytics Science and Technology (VAST)</source>
          ,
          <source>2012 IEEE Conference on</source>
          , pages
          <fpage>23</fpage>
          -
          <lpage>32</lpage>
          . IEEE,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Danny</given-names>
            <surname>Holten</surname>
          </string-name>
          .
          <article-title>Hierarchical edge bundles: Visualization of adjacency relations in hierarchical data</article-title>
          .
          <source>Visualization and Computer Graphics</source>
          , IEEE Transactions on,
          <volume>12</volume>
          (
          <issue>5</issue>
          ):
          <fpage>741</fpage>
          -
          <lpage>748</lpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>T</given-names>
            <surname>Kohonen</surname>
          </string-name>
          .
          <article-title>Self-Organizing Maps</article-title>
          , volume
          <volume>30</volume>
          of Springer Series in Information Sciences. Springer Berlin Heidelberg,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Boaz</given-names>
            <surname>Lerner</surname>
          </string-name>
          , Hugo Guterman,
          <string-name>
            <given-names>Mayer</given-names>
            <surname>Aladjem</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I</given-names>
            <surname>Dinsteint</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Romem</surname>
          </string-name>
          .
          <article-title>On pattern classification with Sammon's nonlinear mapping an experimental study</article-title>
          .
          <source>Pattern Recognition</source>
          ,
          <volume>31</volume>
          (
          <issue>4</issue>
          ):
          <fpage>371</fpage>
          -
          <lpage>381</lpage>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J</given-names>
            <surname>Reyes-Ortiz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Luca</given-names>
            <surname>Oneto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A</given-names>
            <surname>Sama</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X</given-names>
            <surname>Parra</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D</given-names>
            <surname>Anguita</surname>
          </string-name>
          .
          <article-title>Transition-Aware Human Activity Recognition Using Smartphones</article-title>
          . Neurocomputing,
          <volume>171</volume>
          (
          <issue>1</issue>
          ):
          <fpage>754</fpage>
          -
          <lpage>767</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Christin</given-names>
            <surname>Seifert</surname>
          </string-name>
          and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Granitzer</surname>
          </string-name>
          .
          <article-title>User-Based Active Learning</article-title>
          .
          <source>In International Conference on Data Mining Workshops</source>
          , pages
          <fpage>418</fpage>
          -
          <lpage>425</lpage>
          . IEEE,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Burr</given-names>
            <surname>Settles</surname>
          </string-name>
          .
          <article-title>Active learning literature survey</article-title>
          .
          <source>Technical Report 1648</source>
          , University of Wisconsin-Madison, Wisconsin, USA,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>Burr</given-names>
            <surname>Settles</surname>
          </string-name>
          .
          <source>Active Learning</source>
          , volume
          <volume>18</volume>
          <source>of Synthesis Lectures on Artificial Intelligence and Machine Learning</source>
          . Morgan &amp; Claypool, San Rafael, Calif. (1537
          <string-name>
            <given-names>Fourth</given-names>
            <surname>Street</surname>
          </string-name>
          , San Rafael, CA 94901 USA),
          <year>2012</year>
          . OCLC:
          <volume>799360189</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>Alexandru</given-names>
            <surname>Telea</surname>
          </string-name>
          and
          <string-name>
            <given-names>Ozan</given-names>
            <surname>Ersoy</surname>
          </string-name>
          .
          <article-title>Image-Based Edge Bundles: Simplified Visualization of Large Graphs</article-title>
          . In Computer Graphics Forum, volume
          <volume>29</volume>
          , pages
          <fpage>843</fpage>
          -
          <lpage>852</lpage>
          . Wiley Online Library,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Laurens Van Der Maaten</surname>
          </string-name>
          , Eric Postma, and Jaap Van den Herik.
          <article-title>Dimensionality reduction: A comparative Review</article-title>
          .
          <source>Technical Report TiCC-TR-2009-005</source>
          , Tilburg University, The Netherlands,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>