<!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>Visual localization using global visual features and vanishing points</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Olivier Saurer</string-name>
          <email>saurero@inf.ethz.ch</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Friedrich Fraundorfer</string-name>
          <email>fraundorfer@inf.ethz.ch</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marc Pollefeys</string-name>
          <email>marc.pollefeys@inf.ethz.ch</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Computer Vision and Geometry Group, ETH Zurich</institution>
          ,
          <country country="CH">Switzerland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper describes a visual localization approach for mobile robots. Robot localization is performed as location recognition. The approach uses global visual features (e.g. GIST) for image similarity and a geometric veri cation step using vanishing points. Location recognition is an image search to nd the most similar image in the database. To deal with partial occlusions, which lower image similarity and lead to ambiguity, vanishing points are used to ensure that a matching database image was taken from the same viewpoint as the query image from the robot. Our approach will assign a query image to a location learned from a training dataset, to an "Unknown" location or in case of too much uncertainty the algorithm would refrain from a decision. The algorithm was evaluated under the ImageCLEF 2010 RobotVision competition1. The results on the datasets of this competition are published in this paper.</p>
      </abstract>
      <kwd-group>
        <kwd>visual place recognition</kwd>
        <kwd>semantic annotation of space</kwd>
        <kwd>visual localization</kwd>
        <kwd>vanishing points</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Recent approaches to visual robot localization using local image features and
visual words proved to work very well [
        <xref ref-type="bibr" rid="ref1 ref2 ref3 ref8">2, 8, 1, 3</xref>
        ]. An underlying assumption for
these methods however is, that one already collected images for all possible
locations in a database. A scenario, where a database was created using images of one
oor of a building and having the robot localize itself on a di erent oor of the
building would be beyond the capabilities of these methods. This is exactly the
scenario that was created for the ImageCLEF 2010 RobotVision competition [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
The goal was to train the robot with locations (e.g. o ce, kitchen, printer room)
from one oor, so that it can identify the corresponding locations on the other
oor, where the locations di er in details like di erent chairs, di erent desks,
di erent posters, di erent curtains, etc. In this paper we describe an approach
that is targeted towards resolving this scenario. The approach works by using
a global image descriptor that captures the large scale features of the location,
but not the ne details. This would allow to match up two locations that share
      </p>
    </sec>
    <sec id="sec-2">
      <title>1 This approach was ranked 1st in the ImageCLEF 2010 RobotVision competition.</title>
      <p>
        the similar overall structure but di er on the ne details. Fig. 1 illustrates this
concept. The two images show two meeting rooms from the di erent oors. The
table, chairs and pictures on the wall are di erent but the overall structure is
similar. There is a table in the center of the room, which creates a strong
horizontal edge feature. The outline of the room walls itself creates also strong edge
features converging in a similar manner. These are the features that we would
like to capture. To achieve this our approach uses GIST [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] as a global visual
descriptor. In addition to visual similarity we propose a subsequent geometric
veri cation check. For geometric veri cation we compare the vanishing points of
matching images, which are computed from line features in the images. This
geometric check ensures, that images are matched up only, if they are taken in the
same geometric setting (e.g. a similar sized room) and from the same viewpoint.
      </p>
      <p>
        In the experiments using the dataset of the ImageCLEF 2010 RobotVision
competition [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] we demonstrate that using GIST it is possible to capture these
larger scale similarities and that it is possible to match up the locations like the
one depicted in Fig. 1. We also show that the vanishing points are useful for
geometric veri cation and improve the localization results. Finally we report the
scores achieved in the ImageCLEF 2010 RobotVision competition.
2
      </p>
      <sec id="sec-2-1">
        <title>Related Work</title>
        <p>
          The GIST descriptor used in our approach was rst introduced by Oliva et
al. in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. It was used in [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] for place and object recognition. They showed that
it is possible to distinguish between di erent places or rather scenes using the
GIST descriptor. In particular they presented classi cation results on the
following scenes: building, street, tree, sky, car, streetlight, person. In our current
work we show that it is possible to use GIST for place recognition in typical
indoor environments. In addition we added a geometric veri cation step targeted
to indoor environments. GIST was also used in [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] for place recognition using
panoramic images. There the GIST descriptor was adapted to the properties of
panoramic images.
3
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>GIST descriptor and Vanishing Points</title>
        <p>
          Before presenting our pipeline for semantic labeling of space, we rst discuss the
GIST descriptor which was introduced by Oliva et al. in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. The GIST descriptor
represents scenes from the encoding of the global con guration, ignoring most of
the details and object information present in the scene. We then further discuss
the concept of vanishing points, which are projections of points laying at in nity.
They provide information on the relative camera orientation with respect to the
scene and are used as a geometric veri cation after image retrieval using the
GIST descriptor.
3.1
        </p>
        <sec id="sec-2-2-1">
          <title>GIST descriptor</title>
          <p>
            The GIST descriptor was proposed by Oliva et al. in [
            <xref ref-type="bibr" rid="ref6">6</xref>
            ] for scene categorization
without the need for segmentation and processing of objects. The structure of
the scene is estimated using a few perceptual dimensions such as naturalness,
openness, roughness, expansion, ruggedness which describe the spatial properties
of the scene. The dimensions are reliably estimated using spectral and coarsely
localized information, where membership in semantic categories such as streets,
highways, etc. are projected close together in a multidimensional space. The
low dimensional representation of a scene is represented by a 960 dimensional
descriptor, which allows quick retrieval of similar images from a large database.
In the following, image search consists in nding the set of images with the
smallest L2 distance.
3.2
          </p>
        </sec>
        <sec id="sec-2-2-2">
          <title>Vanishing points</title>
          <p>
            The premise to nd vanishing points are man-made environments containing
parallel straight lines. When looking at the perspective projection of three
dimensional parallel lines, they intersect in one common point in the image plane,
the so called vanishing point (VP) [
            <xref ref-type="bibr" rid="ref4">4</xref>
            ]. Vanishing points therefor represent the
projections of 3D points laying at in nity, since parallel lines intersect at in nity.
          </p>
          <p>To estimate the vanishing points, we rst detect edges using canny edge
detection and extract long straight lines from the edge segments. The straight
lines are used as input for our RANSAC (random sample consensus) algorithm,
which estimates multiple vanishing points in a single image. The algorithm rst
randomly selects two lines and computes their intersection point P . If at least
20 of the lines passes through the intersection point P , the point is re-estimated
using a non-linear optimization, where all supporting lines are included in the
optimization process. The supporting lines are then removed from the input set
and the procedure is repeated until either no further lines are available or no
further vanishing point is found.
The proposed pipeline for semantic labeling of space is illustrated in Fig. 3. The
method classi es an image into one of the following three categories, which is
either a label learned from a training dataset, the "Unknown" label or in some
cases the algorithm would make no decision.</p>
          <p>In a rst step a database of GIST descriptors is build from the training
dataset. Our database consists of 4780 images and is represented by a kd-tree for
fast k-nearest neighbors search, we chose k to be 10 in our experiments. In a rst
step we query the database with the query image q, for its 10 nearest neighbors
stored in the result set r. Images in the result set r with a L2 distance to the query
image q, greater than a given threshold (0:6 in our experiments) are removed
from r. If r is empty, the image q is labeled as "Unknown". Otherwise the set r
is further matched to a set of ambiguous images, which were previously learned
from the training dataset, see Fig. 4. If the set of ambiguous images in the set r is
greater than the set of non-ambiguous images, the algorithm refrains a decision
on the image q, due to lack of con dence. Otherwise, a geometric veri cation is
applied to the remaining set of non-ambiguous images. The geometric veri cation
compares the angular distance of vanishing points between the query image and
the non-ambiguous images. Images with a large angular distance (0:34 in our
experiments) are removed from the set r. Finally, the query image is assigned
the label of the image with the smallest angular distance or is assigned the label
"Unknown" if the set r is empty.</p>
          <p>To nd vanishing point matches between two images, we rst normalize the
VP vector to unit length, such that the VP lays on the surface of a Gaussian
sphere. Then, for each VP in one image we do an exhaustive search for the closest
VP in the other image i.e., the VP with smallest angular distance. We assume
that two similar scenes match, if their appearance is similar i.e., similar GIST
descriptor and similar vanishing points, meaning the camera has a similar point
of view of the 3D scene being observed.</p>
          <p>GIST descriptor</p>
          <p>GIST descriptor
training data
k-nearest
neighbor search</p>
          <p>Filter GIST
descriptor</p>
          <p>GIST descriptor of
ambiguous places
Filter ambiguous</p>
          <p>places
Filter vanishing
points</p>
          <p>No decision</p>
          <p>Match
Unknown
Our algorithm was evaluated at the 3rd edition of the Robot Vision challenge,
held in conjunction with IROS 2010. The challenge addresses the problem of
classifying rooms and functional areas based on a pair of stereo images. Three
image sets were provided, one training set for learning, one validation set for
the participants to validate their algorithm and one testing set used for the
competition. All three sets were captured in the same building, but on di erent
oors. All three oors have a set of common rooms, such as O ces, Toilet,
Printer Area, Corridor, etc. and rooms which are only present in one of the
dataset such as Kitchen, Lab, Elevator, etc.. Sample images of the training sets
are provided in Fig. 5.</p>
          <p>Task 1 of the competition asked to build a system which can answer the
question "Where am I?", given one pair of stereo images. The answer can either
be a previously learned label, the "Unknown" label if the system is presented
with a new location not contained in the training set or it can refrain a decision by
leaving the image unclassi ed. The performance of the algorithm was evaluated
using the following scoring scheme:
{ +1.0 point for each correctly classi ed image.
{ -1.0 point for each misclassi ed image.
{ 0.0 point for each image that was not classi ed.
{ +2.0 points for a correct detection of unknown category.
{ -2.0 points for an incorrect detection unknown category.</p>
          <p>Our system ranked rst, with 677 points in the 3rd edition of the Robot
Vision challenge. The winning run used the following con guration: a search
window size of 10 images, a minimum GIST distance threshold of 0:6, and
a minimum mean angular distance threshold of 0:34. Door frames, walls and
whiteboards were learned and added to the ambiguous location set as well as
the following four rooms Kitchen, Small O ce and Large O ce.</p>
          <p>Bellow we further discuss the bene t of the geometric veri cation. The
evaluation is based on the validation set, which contains 2069 images, where 14:4%
of the image labels are unknown to the training set. Without geometric veri
cation an image match is obtained by searching the training set for the image
with the smallest L2 GIST distance. Using the geometric veri cation an
image match is obtained by choosing the image with the smallest mean angular
distance between the query image and the images obtained from the k-nearest
neighbors, with k = 30. Table 1 lists the recognition rate of each category known
to the training set. Overall, the geometric veri cation performed slightly
superior (recognition rate of 43:15%) to the pure GIST based method (recognition
rate of 42:03%). The Meeting Room category achieved an improvement of over
8%.</p>
          <p>For the label Corridor and Large O ce the pure GIST method performs
better. The reason our method provides a lower performance on the Corridor
Corridor
a)</p>
          <p>Corridor
b)</p>
          <p>Meeting Room
c)
category is that many images are misclassi ed at transitional places, where the
robot moves from the corridor into a room. Fig. 6 illustrates such a misclassi
cation. In the Large O ce category the misclassi ed images are mainly classi ed
as Kitchen or as Small O ce. Fig. 7 illustrated a misclassi cation based on the
GIST method, which is corrected by the geometric veri cation.</p>
          <p>Our unoptimized Matlab implementation takes 51:21 seconds on a 2:66GHz
Core2 Quad CPU, to classify 2069 images using precomputed GIST descriptors
and precomputed vanishing points. Extracting GIST descriptors takes in
average 1:91 seconds on a 487 487 pixel image. We make use of the freely available
Matlab code provided by Antonio Torralba2. We use our own Matlab
implementation to extract vanishing points. In average it takes 0:65 seconds to extract
the vanishing points of one image.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>2 http://people.csail.mit.edu/torralba/code/spatialenvelope/</title>
      <p>We have presented a system for visual localization using global visual features
(GIST) and a geometric veri cation based on vanishing points. We have shown
that the geometric veri cation can indeed improve the recognition rate when
used together with global visual features. The evaluation on the ImageCLEF
2010 RobotVision dataset showed that the approach manages to recognize
similar locations despite of di erences on the small scale. The evaluation however
also revealed that the approach has di culties in handling 'Unknown' locations.
'Unknown' locations are sometimes matched with locations from the training set
and known locations are sometimes classi ed as 'Unknown' locations.
Acknowledgments. We would like to thank Georges Baatz for sharing his
vanishing point detection code.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Angeli</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Filliat</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Doncieux</surname>
          </string-name>
          , S., Meyer, J.A.:
          <article-title>Fast and incremental method for loop-closure detection using bags of visual words</article-title>
          .
          <source>Robotics, IEEE Transactions on 24(5)</source>
          ,
          <volume>1027</volume>
          {1037 (Oct
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Cummins</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Newman</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <string-name>
            <surname>FAB-MAP</surname>
          </string-name>
          :
          <article-title>Probabilistic Localization and Mapping in the Space of Appearance</article-title>
          . The
          <source>International Journal of Robotics Research</source>
          <volume>27</volume>
          (
          <issue>6</issue>
          ),
          <volume>647</volume>
          {
          <fpage>665</fpage>
          (
          <year>2008</year>
          ), http://ijr.sagepub.com/cgi/content/abstract/27/6/647
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Fraundorfer</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pollefeys</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>Combining monocular and stereo cues for mobile robot localization using visual words</article-title>
          .
          <source>In: Proc. International Conference on Pattern Recognition</source>
          . pp.
          <volume>1</volume>
          {
          <issue>4</issue>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Hartley</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zisserman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Multiple View Geometry in Computer Vision</article-title>
          . Cambridge (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Murillo</surname>
            ,
            <given-names>A.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kosecka</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>Experiments in place recognition using gist panoramas</article-title>
          .
          <source>In: IEEE Workshop on Omnidirectional Vision</source>
          , Camera Netwoks and
          <string-name>
            <surname>Non-Classical</surname>
            <given-names>Cameras</given-names>
          </string-name>
          ,
          <string-name>
            <surname>ICCV</surname>
          </string-name>
          <year>2009</year>
          . pp.
          <volume>1</volume>
          {
          <issue>8</issue>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Oliva</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Torralba</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Modeling the shape of the scene: A holistic representation of the spatial envelope</article-title>
          .
          <source>International Journal of Computer Vision</source>
          <volume>42</volume>
          (
          <issue>3</issue>
          ),
          <volume>145</volume>
          {175 (May
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Pronobis</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fornoni</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Christensen</surname>
            ,
            <given-names>H.I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Caputo</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>The robot vision task at imageclef 2010</article-title>
          .
          <source>In: In the Working Notes of CLEF</source>
          <year>2010</year>
          , Padova, Italy (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Schindler</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brown</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Szeliski</surname>
          </string-name>
          , R.:
          <article-title>City-scale location recognition</article-title>
          .
          <source>In: Proc. IEEE Conference on Computer Vision</source>
          and Pattern Recognition, Minneapolis, Minnesota. pp.
          <volume>1</volume>
          {
          <issue>7</issue>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Torralba</surname>
            ,
            <given-names>A.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Murphy</surname>
            ,
            <given-names>K.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Freeman</surname>
          </string-name>
          , W.T.,
          <string-name>
            <surname>Rubin</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          :
          <article-title>Context-based vision system for place and object recognition</article-title>
          .
          <source>In: ICCV</source>
          . pp.
          <volume>273</volume>
          {
          <issue>280</issue>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>