<!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>Fast Tree Leaf Image Retrieval using a Probabilistic Multi-class Support Vector Machine Classi er</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ignazio Gallo</string-name>
          <email>ignazio.gallo@uninsubria.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alessandro Zamberletti</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Simone Albertini</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Angelo Nodari</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marco Vanetti</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Insubria Dipartimento di Scienze Teoriche ed Applicate via Mazzini 5</institution>
          ,
          <addr-line>Varese</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Nowadays an increasing number of people own mobile phones with built-in camera, able to take pictures. Thus, having a fast and fully automatic algorithm of image retrieval is considered a promising way to identify plant leaves on a mobile device. Our solution proposes a Support Vector Machine that provides a multi-class probability estimation with radial basis function kernel based on two descriptors: PHOG and a variant of HAAR. With our method we placed seventh among all the fully automatic methods who participated in the ImageCLEF Plant Identication 2012 task. As showed by the results, the proposed method is very fast and at the same time has a classi cation accuracy comparable with the state of the art in this domain, aspects which make this method feasible in practice.</p>
      </abstract>
      <kwd-group>
        <kwd>image classi cation</kwd>
        <kwd>support vector machine</kwd>
        <kwd>pyramid of histograms of orientation gradients</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        This paper presents the participation of the ArTe-Lab1 research laboratory
(Applied Recognition Technology Laboratory) at University of Insubria in the
ImageCLEF Plant Identi cation 2012 task. The objective of this work is the
retrieval of plant species, starting from the images belonging to the dataset
proposed by the aformentioned task2; this problem can be solved with a good
accuracy using one of the many algorithms proposed in literature, such as: LP- [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ],
MKL [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], VLFeat [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], R.Forests [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], etc. However these algorithms require a lot
of computional time and therefore they cannot be used to perform a real time
classi cation of the images. We wanted to follow a di erent approach by
designing and developing a fast algorithm that is able to obtain a good accuracy over
all the types of images belonging to the dataset of the task subject of this study.
1 http://artelab.dicom.uninsubria.it/
2 http://www.imageclef.org/2012/plant/
      </p>
      <p>In order to identify the species a leaf belongs to, we model the species as
classes in a classi cation framework that is based on a set of simple visual features
extracted only from the images; we do not consider any metadata annotated
along with each image which belongs to the dataset. In particular, we decided to
employ simple features based on edges and intensity values distribution, among
all the most successful features proposed in literature for object classi cation. We
address the problem of learning score functions, motivated by ranking tasks in
information retrieval (IR). Given an image containing a leaf, the scoring function
associates a score to each known class; these class labels are then presented to
the user in a decreasing order of scores. The quality of this sorted list of class
labels depends on the position (rank) of the labels that are relevant to the image.
Since the user considers only the few rst class labels, it is desirable to have an
high precision on top scored ones. Learning to rank is equivalent to the problem
of choosing an e ective scoring function, using a training set of images for which
relevant classes are known.</p>
      <p>With our method we placed seventh among all the fully automatic methods
who participated in the ImageCLEF Plant Identi cation 2012 task.
2</p>
    </sec>
    <sec id="sec-2">
      <title>The Proposed Method</title>
      <p>
        The multi-class classi cation problem refers to assigning each of the observations
into one of k classes. In this paper we focus on a technique that provides a
multi-class probability estimation by combining all the pairwise comparisons [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ],
using a Support Vector Machine (SVM) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] classi er. Pairwise coupling is a
popular multi-class classi cation method that combines all comparisons for each
pair of classes; this method can be reduced to a linear system which is easy to
implement. In particular, we used the implementation found in LIBSVM library
for support vector machines [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. The predicted label is the one with the largest
probability value but, using the same probability values we sort all the classes,
from most to least likely.
      </p>
      <p>
        The SVN receives as input two di erent descriptors: the rst is the Pyramid
of Histograms of Orientation Gradients (PHOG) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and the second is similar
to the HAAR descriptor proposed by Viola and Jones [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. We used 15 bins
and 3 layers for the PHOG descriptor while the HAAR is composed by two
di erent descriptors. Regarding the latest, the rst HAAR descriptor is D1 =
fD11; : : : ; D215g and it is computed as follows: each image is divided into a table
of 25 rows and 3 columns; for each row j we calculate the sums Si obtaining
a descriptor's component as Dj1 = S1 + S2 S3. The second HAAR descriptor
D2 = fD12; : : : ; D520g is computed similarly to the rst one: each image is divided
in 25 rows and 6 columns but, for each row j, we compute two components
Dj2 = S2 S1 S3 and Dj2+1 = S5 S4 S6. Each descriptor is rst normalized
and then concatenated to the other in order to form the input pattern. Figure 1
shows a graphical representation of how the input images are transformed in
patterns for the used SVM model. In the top row of the gure we can notice the
three histograms extracted from the three levels of the PHOG descriptor, while
each histogram is constructed by concatenating the histograms extracted from
each cell. In the bottom row we can notice the two HAAR descriptors, each of
which is transformed into a new histogram to be concatenated to the previous.
      </p>
      <p>The SVM is trained for probability estimation and it uses a radial basis
function as kernel and C = 8, = 2 as main parameters.</p>
      <p>We compared PHOG and Haar descriptors along with many others in order
to determine the most stable and robust ones.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Experiments</title>
      <p>
        In order to choose the best features to manage the problem addressed in this
study, we started our experiments comparing di erent classi cation algorithms
found in the literature: a multiclass method called LP- [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], a multi-kernel
method called MKL [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], an algorithm based on Bag of Words called VLFeat [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]
and an image classi cation approach based on R.Forests named Random Forests
(R.Forests) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. We also considered simpler approaches based on HOG [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] and
PHOG [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] features, using a SVM classi er [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. We also evaluated an interesting
feature: the HAAR descriptor proposed by Viola and Jones [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]; when taken
individually this feature has not been shown to be relevant in classi cation but, in
the experimental phase, we have veri ed that by combining it with other features
we increase the object classi cation accuracy.
      </p>
      <p>
        These features are compared using two standard datasets: the Caltech-101 [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]
which contains 9,146 images of generic objects belonging to 101 classes, and the
Drezzy-46 [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] which is composed by 46 classes of di erent commercial products
crawled from the web and, for each class, there are approximately 100 images,
leading to a total amount of about 4600 images. The results are reported in
Table 1, we also report the computational time, evaluated using a single thread
C# code, on a Intel R CoreTMi5 CPU at 2.30GHz.
      </p>
      <p>Because our goal is focused on the development of an application able to
properly work on a mobile device, we were looking for good features that can
Input
image</p>
      <p>G
O
H
P
)
1
(
R
A
A
H</p>
      <p>level 3
be quickly computed and do not require too much memory. Therefore we have
selected the features considering the best balance between accuracy,
computational time and memory requirements: PHOG and HAAR descriptors. In
particular, the parameters of the PHOG feature were tuned in order to obtain the
best compromise between speed and accuracy. Regarding the HAAR feature, we
computed the two descriptors by setting the width of the rectangle to t the
image width of each image belonging to the ImageCLEF Plant Identi cation
2012 task dataset, on the basis of the results obtained during the experimental
phase. Even if the predicted output label of our solution is the one having the
largest probability value, using the same probability we can provide as output a
list of class labels ordered by likelihood.</p>
      <p>After selecting the features to adopt in our model, we evaluated the
performance of classi cation on the Pl@ntLeaves dataset which has been built for the
ImageCLEF Plant Identi cation 2012 competition, showed in Figure 2. This
dataset contains around 11572 pictures subdivided into 3 di erent kinds of
pictures: scans (Scan), scan-like photos (Pseudoscan) and free natural photos
(Photograph). Each picture represents a plant leaf belonging to one of the 126 species
present in the dataset. In the Scan category, each scan shows the upper-side of
one leaf on a uniform background, centered and oriented vertically along the main
natural axis; in the scan-like category the images are similar to the previous
category but there are some luminance variations, optical distortions and shadows
due to the not attened acquisition method; in the free natural photos category
the images are taken directly on the trees, therefore they may contain one or
more leaves with di erent and complex backgrounds (such as branches, leafage,
a trunk, the ground, the sky etc.) and various orientations. We trained a single
SVM model for all three categories of images, even if the category Photograph
deserves at least a preprocessing in order to improve the overall performance.</p>
      <p>We used the overall-accuracy to evaluate the results on the Pl@ntLeaves
dataset and we obtained an average score of 0.30; considering individual types
of images we obtained: 0.40 for annotations of type Scan, 0.37 for Pseudoscan
and 0.14 for Photograph. A comparison with the results obtained by the other
participants can be found in the gures 3,4 and 5. Our solution was implemented
in C++ and tests were conducted on a Linux machine with CPU Intel Core2Duo
4500 2.02GHz. The average time required to transform a single image into a
pattern for the SVM model is 90ms (that approximately corresponds to the time
required to compute the single feature PHOG), while to predict the ranking for
a single image the trained SVM needs approximately 20ms.</p>
      <p>We want to emphasize that the proposed method does not use any a priori or
metadata information but is based only on the information extracted from the
content of each image and for this reason we believe that it is a very promising
result.</p>
      <p>Fig. 3: Comparative results showing the performances of the proposed solution
(ARTELAB-gallo) applied on the Scan category of the Pl@ntLeaves dataset.
Our group submitted just one run in our rst participation in the ImageCLEF
Plant Identi cation 2012 task; in this paper we described a simple plant species
retrieval model based on a probabilistic SVN using PHOG and HAAR features.</p>
      <p>With our proposed solution we placed seventh among all the fully automatic
methods who participated in the aformentioned task and this is a good result
because our approach can perform the classi cation of a single image, belonging
to the Pl@ntLeaves dataset, in real time on a low computational power machine.
Looking at the results, we can see that the proposed method obtains good
results in the classi cation of the images belonging to the rst two classes of images
(Scan and Pseudoscan), while it needs much more preprocessing and
segmentation work to be e ective in the classi cation of the images belonging to the
Photograph class.</p>
      <p>Concerning the computational time, our algorithm turned out to be very fast
due to the fact that we employed simple features and also because the Support
Vector Machine using a radial basis function kernel requires linear time in the
feature pattern size for the predictions phase.</p>
      <p>This work opens a possible deep study of the features adopted to enhance
the classi cation accuracy. Our simple approach allows the proposed algorithm
to be very fast, but we could evaluate the possibility of adopting more complex
features or even exploiting the pre-processing phases, such as image segmentation
or partitioning, in order to improve the number of correct classi cations, in spite
of the computational performances.</p>
      <p>Another possible future improvement of our model lies in the possibility
of exploiting the metadata informations associated to the images belonging to
the Pl@ntLeaves dataset, in order to enhance the classi cation accuracy; for
example, we could identify the features that characterize the plants from each
di erent region, as we can obtain the geographical place where the leaf had been
taken from the metadata.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Gehler</surname>
            ,
            <given-names>P.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nowozin</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>On feature combination for multiclass object classi cation</article-title>
          . In: ICCV,
          <string-name>
            <surname>IEEE</surname>
          </string-name>
          (
          <year>2009</year>
          )
          <volume>221</volume>
          {
          <fpage>228</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Vedaldi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gulshan</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Varma</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zisserman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Multiple kernels for object detection</article-title>
          .
          <source>In: Proceedings of the International Conference on Computer Vision</source>
          (ICCV).
          <article-title>(</article-title>
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Vedaldi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fulkerson</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Vlfeat: an open and portable library of computer vision algorithms</article-title>
          . In Bimbo,
          <string-name>
            <given-names>A.D.</given-names>
            ,
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.F.</given-names>
            ,
            <surname>Smeulders</surname>
          </string-name>
          , A.W.M., eds.: ACM Multimedia, ACM (
          <year>2010</year>
          )
          <volume>1469</volume>
          {
          <fpage>1472</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bosch</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zisserman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Munoz</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          :
          <article-title>Image classi cation using random forests and ferns</article-title>
          .
          <source>In: IEEE International Conference on Computer Vision</source>
          . (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>T.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lin</surname>
            ,
            <given-names>C.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weng</surname>
            ,
            <given-names>R.C.</given-names>
          </string-name>
          :
          <article-title>Probability estimates for multi-class classi cation by pairwise coupling</article-title>
          .
          <source>J. Mach. Learn. Res. 5 (December</source>
          <year>2004</year>
          )
          <volume>975</volume>
          {
          <fpage>1005</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Cortes</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vapnik</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Support vector networks</article-title>
          .
          <source>Machine Learning</source>
          <volume>20</volume>
          (
          <year>1995</year>
          )
          <volume>273</volume>
          {
          <fpage>297</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <issue>7</issue>
          .
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>C.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lin</surname>
            ,
            <given-names>C.J.:</given-names>
          </string-name>
          <article-title>LIBSVM: A library for support vector machines</article-title>
          .
          <source>ACM Transactions on Intelligent Systems and Technology</source>
          <volume>2</volume>
          (
          <year>2011</year>
          )
          <volume>27</volume>
          :
          <fpage>1</fpage>
          {
          <fpage>27</fpage>
          :27 Software available at http://www.csie.ntu.edu.tw/~cjlin/libsvm.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Bosch</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zisserman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Munoz</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          :
          <article-title>Representing shape with a spatial pyramid kernel</article-title>
          .
          <source>In: Proceedings of the 6th ACM international conference on Image and video retrieval</source>
          .
          <source>CIVR '07</source>
          ,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2007</year>
          )
          <volume>401</volume>
          {
          <fpage>408</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Viola</surname>
            ,
            <given-names>P.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jones</surname>
            ,
            <given-names>M.J.:</given-names>
          </string-name>
          <article-title>Robust real-time face detection</article-title>
          .
          <source>International Journal of Computer Vision</source>
          <volume>57</volume>
          (
          <issue>2</issue>
          ) (
          <year>2004</year>
          )
          <volume>137</volume>
          {
          <fpage>154</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Dalal</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Triggs</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Histograms of oriented gradients for human detection</article-title>
          .
          <source>In: Proc. CVPR</source>
          . (
          <year>2005</year>
          )
          <volume>886</volume>
          {
          <fpage>893</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11. L.
          <string-name>
            <surname>Fei-Fei; Fergus</surname>
            ,
            <given-names>R.P.</given-names>
          </string-name>
          :
          <article-title>One-shot learning of object categories</article-title>
          .
          <source>IEEE Transactions on Pattern Analysis Machine Intelligence</source>
          <volume>28</volume>
          (
          <year>April 2006</year>
          )
          <volume>594</volume>
          {
          <fpage>611</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Nodari</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ghiringhelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Albertini</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vanetti</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gallo</surname>
            ,
            <given-names>I.:</given-names>
          </string-name>
          <article-title>A mobile visual search application for content based image retrieval in the fashion domain</article-title>
          .
          <source>In: Workshop on Content-Based Multimedia Indexing (CBMI2012)</source>
          . (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>