<!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>Guiding Active Contours for Tree Leaf Segmentation and Identi cation?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Guillaume Cerutti</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Laure Tougne</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Julien Mille</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Antoine Vacavant</string-name>
          <email>antoine.vacavant@iut.u-clermont1.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Didier Coquin</string-name>
          <email>didier.coquin@univ-savoie.fr</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Clermont Universite , Universite d'Auvergne, ISIT</institution>
          ,
          <addr-line>F-63001, Clermont-Ferrand</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>LISTIC</institution>
          ,
          <addr-line>Domaine Universitaire, F-74944, Annecy le Vieux</addr-line>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Universite Lyon 1</institution>
          ,
          <addr-line>LIRIS, UMR5205, F-69622</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Universite Lyon 2</institution>
          ,
          <addr-line>LIRIS, UMR5205, F-69676</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>Universite de Lyon</institution>
          ,
          <addr-line>CNRS (</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>In the process of tree identi cation from pictures of leaves in a natural background, retrieving an accurate contour is a challenging and crucial issue. In this paper we introduce a method designed to deal with the obstacles raised by such complex images, for simple and lobed tree leaves. A rst segmentation step based on a light polygonal leaf model is rst performed, and later used to guide the evolution of an active contour. Combining global shape descriptors given by the polygonal model with local curvature-based features, the leaves are then classi ed over nearly 50 tree species.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>In our everyday more urbanized and arti cial world, the knowledge of plants,
that used to constitute our most immediate environment, has somehow been
lost, except for a handful of specialists. What is allegedly seen as unquestionable
progress also scattered away the names and uses of so many trees, owers and
herbs. But nowadays, with a certain resurgence of the idea that plant resources
and diversity ought to be treasured, the will to regain some touch with nature
feels more and more tangible. And making it possible, for whoever feels the need,
to identify a plant species, to learn its history and properties, is as much a way
to transmit a vanished knowledge, as to allow people to get a glance at nature's
unfathomable richness.</p>
      <p>The identi cation of species is the rst and essential key to understand the
plant environment. Botanists traditionally rely on the aspect and composition of
fruits, owers and leaves to identify species. But in the context of a widespread
non-specialist-oriented application, the predominant use of leaves, which are
possible to nd almost all year long, simple to photograph, and easier to analyze
from two-dimensional images, is the most sensible and widely used approach in
image processing. Considering the shape of a leaf is then the obvious choice to
? This work has been supported by the French National Agency for Research with the
reference ANR-10-CORD-005 (REVES project).
try to recognize the species. Our system intends then to classify a photograph
of a leaf, which should be roughly centered and vertically-oriented as shown in
Figure 1, over around 50 di erent tree species.</p>
      <p>In this paper we present a method to classify simple and lobed leaves, using
a polygonal modeling of leaf shapes and geometric botany-inspired descriptors.
In Section 2 we will present related publications. Section 3 expounds the rst
segmentation step using a parametric active polygon, and Section 4 the re
nement leading to the actual segmentation. The process of classi cation is then
detailed in Section 5 and Section 6 relates the results of experiments both on
white-background leaf images and natural scenes.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related work</title>
      <p>Plant recognition has recently been a subject of interest for various works. Few of
them though consider acquiring images of leaves or owers in a complex, natural
environment, thus eluding most of the hard task of segmentation.</p>
      <p>
        Nilsback and Zisserman [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] adressed the problem of segmenting owers in
natural scenes, by using a geometric model, and classifying them over a large
number of classes. Saitoh and Kaneko [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] focus also on owers, but in images with
hard constraints on out-of-focus background. Such approaches are convenient for
owers, but lose much of their e ciency with leaves.
      </p>
      <p>
        Many works on plant leaf recognition tend to avoid the problem by using
a plain sheet of paper to make the segmentation easy as pie. Their recognition
systems are then based on either statistical or geometric features:
CentroidContour Distance (CCD) curve [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], moments [
        <xref ref-type="bibr" rid="ref3 ref4">4,3</xref>
        ], histogram of gradients, or
SIFT points [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Some more advanced statistical descriptors, such as the Inner
Distance Shape Context [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], or the Curvature Scale Space representation [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]
that allows taking self-intersections into account, have also been applied to the
context of leaf classi cation, while developed in a general purpose.
      </p>
      <p>
        As a matter of fact, isolating green leaves in an overall not less green
environment seems like a much tougher issue, and only some authors have designed
algorithms to overcome the di culties posed by a natural background. Teng,
Kuo and Chen [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] used 3D points reconstruction from several di erent images
to perform a 2D/3D joint segmentation using 3D distances and color similarity.
Wang [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] performed an automatic marker-based watershed segmentation, after
a rst thresholding-erosion process. All these approaches are complex methods
that seem hardly reachable for a mobile application. In the case of weed leaves,
highly constrained deformable templates have been used [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] to segment one single
species, providing good results even with occlusions and overlaps.
      </p>
      <p>
        The concept of active contours, or snakes, have been introduced by Kass,
Witkin and Terzopulos [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] as a way to solve problems of edge detection. They
are splines that adjust to the contours in the image by minimizing an energy
functional. This energy is classically composed of two terms, an internal energy
term considering the regularity and smoothness of the desired contour, and an
external or image energy accounting for its adequation with the actual features
in the image, based on the intensity gradient.
      </p>
      <p>
        To detect objects that are not well de ned by gradient, Chan and Vese [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] for
instance based the evolution of their active contour on the color consistency of the
regions, by using a level set formulation. Another region-based approach, relying
this time on texture information, was proposed by Unal, Yezzi and Krim [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]
who also introduced a polygonal representation of the contour.
      </p>
      <p>
        But to include some knowledge about complex objects, a deformable
template [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] can be used, with the asset of lightening the representation and storage
space of the contour by the use of parameters. Felzenszwalb [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] represents shapes
by deformable triangulated polygons to detect precisely described objects,
including maple leaves, and Cremers [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] includes shape priors into level set active
contours to segment a known object, but both approaches lack the exibility
needed to include knowledge about the shape of any possible leaf.
      </p>
      <p>In our case, the similarity between the background and the object of
interest, and the di culty to avoid adjacent and overlapping leaves constitute a
prohibitive obstacle to the use of unconstrained active contours (Figure 1). The
idea of using a template to represent the leaves is complicated by the fact that
there is much more variety in shapes than for eyes or mouths. The only solution
to overcome the aforementioned problems is however to take advantage of the
prior knowledge we may have on leaf shapes to design a very exible time-e cient
model to represent leaves.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Parametric Polygonal Leaf Model</title>
      <p>
        Even when considering trees only, leaves show an impressively wide variety in
shapes. It is however necessary to come up with a representation of what a leaf
is, that is accurate enough to be tted to basically any kind of leaf. In a rst
time, we consider only simple leaves, including lobed and palmate ones, which
covers already 90% of French broad-leaved tree species [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] and roughly the same
proportion in all European species.
3.1
      </p>
      <sec id="sec-3-1">
        <title>A polygon to describe leaf shapes</title>
        <p>The general shape of a leaf is a key component of the process of identifying a leaf.
Botanists have a whole set of terms describing either the shape of a simple leaf,
of the lobes of a palmate leaf, or of the lea ets of a compound leaf. Examples
of such shapes are diplayed in Figure 3. The problem being that the borders
between the di erent terms are not well de ned, since leaves can naturally have
non-canonical, intermediate shapes.</p>
        <p>
          To sketch the shapes used in botany, we propose a light polygonal model
based on a set of 4 parameters [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ] The idea of de ning a simple parametric
model to represent all these various shapes has the double advantage of turning
an imprecise, blurry and quite subjective classi cation into numerical parameter
values, and producing in the same time some descriptors accounting for the
general shape of the leaf.
        </p>
        <p>The chosen model relies on two points, base B and tip T , that de ne the main
symmetry axis of the leaf. From this axis, we construct the 10 points de ning
the polygon, as displayed in Figure 2, using 4 numeric integer parameters:
{ B, the opening angle at the base
{ T , the opening angle at the tip
{ w, the relative maximal width
{ p, the relative position where this width is reached</p>
        <p>This model is then able to cover correctly, with a very concise set of
parameters, almost every shape used in botany. Figure 3 illustrates how, by changing
manually the values of the parameters, it is possible to create shapes that visibly
correspond to the di erent canonical shapes.
The case of palmately lobed leaves is slightly more complex, but our
hypothesis is that a palmate leaf can be seen as a superposition of several identical
simple leaf shapes, joining at the base of the leaf. This is justi ed by the
descriptions that can be found in ora books, where palmate leaves are characterized
by the shape of their lobes using the same previously mentioned terms.</p>
        <p>Concretely, we model a palmate leaf by overlaying an odd number of simple
polygonal models, symmetrically arranged in pairs, and varying only in length
and angle: a main lobe whose axis is de ned by the points B and T , and several
symmetric pairs of secondary lobes, whose axes all radiate from the actual base
of the main lobe, the point BB. Such representation implies the addition of a
number of new parameters to make the construction represented in Figure 4
possible. In addition to the 4 parameters determining the shape of the lobes, we
have to introduce:
{ nL, the number of pairs of lobes (1 means simple, 2 means 3-lobed)
{ for each pair of lobes, L(l), the relative length of the two symmetric lobes
{ for each pair of lobes, (l), the angle of the lobes with the main axis</p>
        <p>The idea is then to apply a deformable template approach on this model,
using the variations of the di erent parameters as elementary deformations, to
make it t best the leaf in the image. This has the major advantage of
encapsulating some prior knowledge on the shape of the object, in the very de nition of
the model. The nal polygon we obtain can later be used as a shape prior for a
re ned segmentation.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Color representation</title>
        <p>A polygonal model inevitably being an approximation of the actual contour of
the leaf, it is not relevant to base its evolution on the edge information, contained
in the gradient. This is why we use only the color information to make the model
t the leaf in the image.</p>
        <p>It is however impossible to come up with an a priori model for what the
color of a leaf is, that would be accurate whatever the leaf, season and lighting.
It is then absolutely necessary to estimate, for each new leaf we want to segment,
the particular color model, which can only be performed with some rough idea
of where the leaf lies in the image, implying constraints on its position. In the
following, we assume that the leaf is roughly centered and vertically-oriented, so
that an initialization of our template in the middle of the image contains almost
only leaf pixels. Typically, a leaf in the image taken on purpose by a user will
be large enough to ensure the correctness of the initialization.</p>
        <p>We considered then that the color of a leaf can be modelled by a 2-component
GMM estimated in the initial region, accounting for shaded and lighted or shiny
areas, and de ned by the parameters ( 1; 12; 1) and ( 2; 22; 2), respectively
the mean, variance and weight of each gaussian distribution. Then the distance
of a pixel x to the color model, in a 3-dimensional colorspace, is de ned by a
normalized 1-norm distance, written as following:
3
X jxi g;ij
i=1 g;i</p>
        <p>Based on this formulation, we can compute for every pixel in the image its
distance to the color model, resulting in a map that measures the dissimilarity of
pixels to the leaf, and where leaf pixels should appear in black and background
pixels in gray-white. Based on the aspect of this map for di erent leaves and
di erent color spaces, we chose to work in the L*a*b* colorspace, for which
leaves were standing out best in distance maps.</p>
        <p>d(x; 1;2; 1; 2; 2) = min
g=1;2
(1)
3.3</p>
      </sec>
      <sec id="sec-3-3">
        <title>Parametric Active Polygon</title>
        <p>With an iterative process similar to active contours, the initial model will
undergo a series of deformations, whose goal is to minimize an energy functional
based on the afore described leaf dissimilarity map. The internal energy term
that traditionnally appears in the energy formulation can be considered as
implicit here, as it is included in the construction rules of our model. The remaining
external term is then expressed as:</p>
        <p>E( ) =</p>
        <p>X (d(x; 1; 1; 2; 2)
dmax)
(2)
x2</p>
        <p>The value dmax actually represents a balloon force, that will push the model
to grow as much as possible. It can also be seen as a threshold, the distance to
the color model for which a pixel will be costly to add into the polygon. The
expected outcome is to produce the biggest region with as little leaf-dissimilar
pixels as possible.</p>
        <p>At each step, all the possible elementary variations of the parameters and
of the base and tip points are examined, and the one leading to the greatest
decrease of the energy is applied, until no deformation can bring it any lower.
As such, this method presents the risk of getting stuck in local energy minima,
this is why a heuristic close to simulated annealing is used. It is also necessary
to constrain the model, that is basically exible enough to take shapes that are
not likely to ever be reached by leaves. To achieve that, actual leaf shapes were
learned, and at every moment, the model has to remain within a certain distance
to one of these reference shapes.
The only parameter that has to be treated separately is the number of lobes
nL. Considering it on the same level as the other parameters does not make
much sense, given the drastic changes in shape a modi cation of its value would
induce. A way to solve the problem could have been to estimate in a preliminary
step the number of lobes, and have this parameter xed for the evolution of the
model. But such an estimation, that would ultimately require some equivalent
of a segmentation to be accurate, would just seem like going round in circles.</p>
        <p>The method we kept treats the number of lobes in the same optimization
process that ts the model to the leaf, but in a di erent way. After the color
model has been estimated on the simple polygonal initalization shown in Figure 5
an excessive number of lobes is added to the model, typically resulting in a
11lobed leaf model. The deformable template algorithm runs then freely on all the
parameters, except for the number of lobes. The expected result is that lobes will
group together inside the actual lobes of the leaf. The key is then to eliminate
the overlapping lobes until there remains only as many lobes as necessary.</p>
        <p>This elimination step is performed between two temperature rises in the
simulated annealing process. For each secondary pair of lobes, we evaluate an
overlapping ratio with the previous one, expressed as:
r(l) = w2 :L(l 1) : 1 : cos( ) (3)</p>
        <p>sin( ) L(l)
where = (l) (l 1). Figure 6 illustrates the origin of this formula where
polygonal models are approximated by rectangles. This value can be seen as the
ratio between the blue area (estimating the overlapped part of the considered
lobe) and the whole lobe, weighed by a cosinus to favour more large angles
between lobes. The actual result is the ratio between the lengths of the two red
lines.</p>
        <p>Lobes that have a overlapping ratio greater than a given threshold (typically,
70%) are eliminated. In addition, a second pass is performed to ensure that the
remaining lobes have a plausible repartition, which could correspond to a leaf.
If a lobe makes a naturally unlikely angle with its predecessor (typically, more
than 60 degrees) it is suppressed too. The result is that the perceived number of
lobes will emerge from the very process that approximates the leaf by a model
(as in Figure 7) and this even for the case of simple leaves, where all the lobes
should eventually collapse into one.</p>
        <p>The resulting model gives a good clue of what the shape of the leaf is, but it
is not enough to carry out species identi cation, and the rst resulting contour
has to be later enhanced to hug the boundary of the leaf.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Guided Active Contour Segmentation</title>
      <p>As initially mentioned, unconstrained active contours applied to the complex
natural images we aim at dealing with would produce unsatisfying contours,
that would try and make their way through every possible gap and aw in the
border of the leaf. The solution we propose is to use the polygonal model obtained
after the rst step not only as an initial leaf contour but also as a shape prior
that will guide its evolution towards the real leaf boundary.</p>
      <sec id="sec-4-1">
        <title>4.1 Energy formulation</title>
        <p>
          We chose to use the active contour model de ned by Kass et al. [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ], including a
guiding constraint and using leaf dissimilarity, both under the form of additional
terms in the energy functional the contour strives to minimize. The general
energy term, for a contour delineating a region ( ), can be expressed as:
E( ) = ELeaf ( )+ EShape( )+ EGradient( )+ ESmooth( ) !EBalloon( )
(4)
Instead of having an external energy term based on color consistency, or distance
to a mean, we decided to reuse the dissimilarity map from the previous step,
considering we have already an e cient measure of how well a pixel should t
in the leaf, in terms of color. The corresponding energy term is then based on
the dissimilarity function d detailed in Section 3 and can be written as:
        </p>
        <p>ELeaf ( ) = R ( ) d(x; 1; 1; 2; 2)dx
The guiding constraint term relies on a so-called stencil function KShape
increasing with the distance to the polygonal contour , which is explicited in 4.2. It
guarantees that contour points that are distant from the polygon that will be
pushed back towards it, when neither the color nor the gradient would be strong
enough to retain it. It has then the following form:</p>
        <p>EShape( ) = R</p>
        <p>KShape( (s); )ds
However this is obviously not enough, and the contribution of the gradient
computed on the image I is here essential, as it may allow the contour to stick to
the actual boundaries of the leaf (which is ultimately the main objective) even
when the color information would not be relevant enough. The gradient energy
is expressed in order to penalize curve points located on pixels with low gradient
magnitude and is simply formulated as:</p>
        <p>EGradient( ) = R
krI( (s))kds
Although the nal contour has to be precise, to capture points and teeth on the
leaf margin essentially, some moderate smoothing is still necessary to prevent
the contour from being too noisy. And nally the balloon energy is here to
counterbalance and stabilize the other energies by adding a constant force towards
the outside of the contour:</p>
        <p>ESmooth( ) = R</p>
        <p>d
k ds k2 ds</p>
        <p>EBalloon( ) = R ( ) dx</p>
        <p>
          The nal variation of E is determined using calculus of variations, and the
resulting evolution equation is implemented on a parametric curve following [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ].
The function we use is asymmetric with respect to the polygonal contour , as
shown in Figure 8. The reason is that, our basic energy already using a balloon
force, we want the force pushing the contour to the polygon to be stronger on
the outside of the polygon, where it has to compete with the balloon, than on
the inside, where the two resulting forces will push towards the same direction.
We also introduce a margin around the polygon where the contour should
be free to evolve, i.e. where the shape energy is equal to 0. For a given pixel,
located at a distance d from the polygonal contour, the cost function is then:
(max(d ; 0) on the inside of the polygon
max((d
)2; 0) on the outside of the polygon
(5)
        </p>
        <p>A small improvement to this basic formulation is a slight elongation of the
polygonal contour at the base and the tip of the leaf before the evaluation of the
distance, resulting in the two round black areas on the map of Figure 8. This is
justi ed by the fact that the shape of the leaf in these areas is really discriminant,
and the contour absolutely has to be able to reach such determinant parts of the
leaf. Since the polygonal model is by de nition not well suited to account for
local particular shapes, the contour needs a larger freedom around those crucial
points.
If we call the extension of the original polygonal contour at the base
and at the tip, the nal expression for our stencil function is: KShape(x; ) =
k(d (x)) where d (x) = miny2 kx yk represents the Euclidean distance
of a pixel to the contour .
As such however, the various energies, though having all their role to play, are
hard to harmonize into a coherent whole, e cient regardless of the image. Some
of them may have con icting interactions, the leaf dissimilarity term impeding
for instance that the contour reaches the edge where the gradient term would
make it stay. This is the reason why, rather than trying to nd the optimal way
of making those disparate forces cooperate smoothly, we decided to split the
process into two phases where each will be able to express freely.</p>
        <p>Starting from a contracted version of the polygon, to try to make sure that
most of the points are located inside the leaf, the contour will undergo a rst
expansion step, where the coe cients of the balloon and gradient are preeminent,
and the margin is rather tolerant. The contour should swell with no concern for
the color, sometimes getting outside of the leaf, but constrained to be blocked
when it crosses strong gradients or when it gets quite far from the reference
polygon.</p>
        <p>The second phase has for purpose to bring back the contour from non-leaf
areas where it might have wandered, with at the same time hanging on to the
strong edges and not going back inside the leaf even when the dissimilarity
would claim so. The coe cient of the leaf dissimilarity energy is this time very
high while the balloon is reduced and enough gradient preserved to stick to the
boundary of the leaf. The distance map to the polygon is recomputed with a
smaller , again in this perspective of shrinking the contour to the leaf and
no further. Those two steps and the nal contour we obtain are illustrated in
Figure 9.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Geometric Features and Classi cation</title>
      <p>
        Our purpose is then to classify new leaf images into one of the 50 species of
non-compound-leaved trees of the ImageCLEF Plant Images Classi cation task
database[
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]. We made the choice of basing our classi cation on explicit
morphological descriptors inspired by those used by botanists. These geometric criteria
are those used to build the determination keys that have proved some skills when
it comes to helping with species identi cation.
5.1
      </p>
      <sec id="sec-5-1">
        <title>Global shape features</title>
        <p>As stated earlier, the global shape of a leaf is one of the most relevant
characteristics for its identi cation, even if it has to be completed by local details.
We already presented a way of dealing with global shape features, by means of
the parametric polygonal described in 3.1. As a matter of fact, the parameters
resulting from the nal evolution of polygon can directly be used as descriptors
accounting for the global shape of the leaf, since it is actually the very purpose
they were designed for.</p>
        <p>Among them, we chose to keep only those who appeared to be the most
discriminating ones: the four simple shape parameters w, p, B and T , and the
two lobe parameters for the rst pair of secondary lobes L(1) and (1), these
two being respectively set to 100 and 0 when the number of lobes is 1.
5.2</p>
      </sec>
      <sec id="sec-5-2">
        <title>Contour characterization</title>
        <p>The margin of the leaf is also a very important feature to spot. Its shape can
be determining when trying to discriminate two species that have more or less
the same global shape. It may consist of teeth of various sizes and frequencies,
regularly arranged or not, from large spiny points, to small regular saw-like teeth,
or even to a smooth entire border.</p>
        <p>
          In order to cover these numerous possibilities, we based our contour
descriptors by a measure of the curvature, using the osculating circle method [
          <xref ref-type="bibr" rid="ref19 ref20">19,20</xref>
          ]
estimated at 1, 3, 5, and 10 points, for each point of the contour. Then we
simply computed the means and variances of the resulting vectors, and used those
8 values to characterize how large and how regular the teeth of the margin are.
        </p>
        <p>There is however a lot more to do to measure this crucial feature accurately,
and if the descriptors we use are visibly performing satisfyingly, they are still
very correlated, and do not account e ciently for the regularity of the teeth, or
for doubly serrated leaves. Such basic measures also fail in representing the local
shape at the base and the tip of the leaf, which are both essential elements for
species identi cation.
5.3</p>
      </sec>
      <sec id="sec-5-3">
        <title>Normalized classi cation</title>
        <p>The learning base was built by extracting the aforementioned descriptors on 2101
white-background images of non-compound leaves of the ImageCLEF training
database. Once computed, the base was normalized by adjusting all the values
for each parameter, in order that their mean becomes 0 and their variance 1.
Then for the k-th species among the 50 we treat, the speci c mean and variance
of each parameter are computed resulting in a model k = ( k; k) representing
the species.</p>
        <p>For a new image, the parameters extracted during and after the segmentation
form a feature vector that has to be compared with every of the 50 species
models. For each one of them we compute a normalized Euclidean distance in
the parameters space, with the only particularity that the features are weighted
di erently, by a constant coe cient denoted by wi for the i-th feature. The
formulation of the distance is then: d( ; k) = qPi wi ( (i) k(ik)2(i))2</p>
        <p>The species corresponding to the model achieving the smallest distance
is the one that is picked if we have to give one single answer. But when multiple
answers are possible, we associate them with a con dence score, measuring how
probable the species are. The only species that are to be displayed in a nal list
are the ones with a con dence score not equal to zero. If we designate by
the model corresponding to the second best distance, our recipe of a con dence
measure is given by: C( ; k) = max 1 d( ; d()+;d(k); ) ; 0</p>
        <p>Our nal classi cation result presents a list of species, in decreasing order
with respect to the con dence we allow to each species.
6.1</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Results</title>
      <sec id="sec-6-1">
        <title>Segmentation results</title>
        <p>
          To measure the accuracy of our segmentation process, we compare the binary
mask representing the nal contour with a hand-made binary segmentation of
the same image. Segmentations were hand-performed on more than 200
photographs of the ImageCLEF Database[
          <xref ref-type="bibr" rid="ref18">18</xref>
          ]. Results were measured by computing
an overlapping factor accounting for how well the region our algorithm
provides overlaps with the expected truth T : = jj \[TT jj
        </p>
        <p>Figure 10 displays the results for 226 segmentations, showing for each
overlapping factor value the percentage of images in the database for which this
score is reached. Both the polygonal model (dotted line) and the active contour
result (plain line) are presented. The results show a mean overlap of 80,3% for
the polygonal model and 85,8% for the nal contour, with an overlapping score
of 80% being reached for more than 78% of the images in the database.
As said previously, the training of our classi er was performed on these easier
plain-background images. We used cross-validation during the learning base, by
using 30% of the base as a testing base to get a reliable performance measure.
Our typical classi cation scores for scan and pseudoscan images over 50 classes lie
around 70% on the training base and 67% on the testing base, with respectively
97% and 94% of presence of the real class in the 5 rst answers.</p>
        <p>
          On the plant identi cation task proposed for ImageCLEF 2011 [
          <xref ref-type="bibr" rid="ref18">18</xref>
          ] our
method achieved a classi cation score of 53.8 0.8% on scan images and 52.6
1.8% on scan-like images.
When using the same classi er for the photograph images of the training base,
that contained only 26 of the 50 species, we reach only a score of 29%, with the
good answer being in the top 5 species in 63% of cases. This can of course be
explained by the fact that returning one of 50 possible classes when there are
actually only 26 increases the risk of making bad choices.
        </p>
        <p>There is also the fact that we use the plain-background images as our
reference, considering that the contours we obtained on these easier cases would be
more trustworthy. However, by making this choice, we prevent our system from
learning the defaults it may have on more complicated images, and consequently
adapting to them, making it extremely less robust to the noisy, sometimes
inaccurate contours obtained on such di cult pictures.</p>
        <p>On the ImageCLEF pland identi cation task, we performed a score of 18.7
6.4 % on such natural scene photographs.
7</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Conclusions and Perspectives</title>
      <p>We have presented a method designed to perform the segmentation of a leaf in
a natural scene, based on the optimization of a polygonal leaf model used as
a shape prior for an exact active contour segmentation. It also provides a set
of global geometric descriptors that, later combined with local curvature-based
fatures extracted on the nal contour, make the classi cation into tree species
possible.</p>
      <p>The segmentation process is based on a color model that is robust to
uncontrolled lighting conditions. But a global color model for a whole image may
sometimes not be enough, for leaves that are not well de ned by color only. The
use of an additional texture model, or of an adaptive color model could lead to
a good improvement.</p>
      <p>There is also a need for better local contour descriptors, always keeping in
mind what years of botany have found to be the most discriminative places to
look at. These descriptors would also have to be more robust to the change from
white-background images to real natural scenes, or to little aws in the contour
natural objects inevitably carry.</p>
      <p>Nevertheless, it constitutes already a promising way of dealing with images
of leaves in a complex background, giving promising results in terms of
segmentation correctness, and proposing interesting descriptors relying on the criteria
used by botanists to discriminate leaves.</p>
    </sec>
    <sec id="sec-8">
      <title>Acknowledgements</title>
      <p>We would like to thank Hung Duong Viet for the work on leaf segmentation
he performed during his Master internship.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Nilsback</surname>
            ,
            <given-names>M.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zisserman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Delving into the whorl of ower segmentation</article-title>
          .
          <source>In: British Machine Vision Conference</source>
          . Volume
          <volume>1</volume>
          . (
          <year>2007</year>
          )
          <volume>570</volume>
          {
          <fpage>579</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Saitoh</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kaneko</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Automatic recognition of blooming owers</article-title>
          .
          <source>International Conference on Pattern Recognition</source>
          <volume>1</volume>
          (
          <year>2004</year>
          )
          <volume>27</volume>
          {
          <fpage>30</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chi</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Feng</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          :
          <article-title>Leaf image retrieval with shape features</article-title>
          .
          <source>In: Advances in Visual Information Systems. Volume 1929 of Lecture Notes in Computer Science</source>
          . (
          <year>2000</year>
          )
          <volume>41</volume>
          {
          <fpage>52</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>X.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>D.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Du</surname>
            ,
            <given-names>J.X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huan</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Heutte</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Classi cation of plant leaf images with complicated background</article-title>
          .
          <source>Applied Mathematics and Computation</source>
          <volume>205</volume>
          (
          <year>2008</year>
          )
          <volume>916</volume>
          {
          <fpage>926</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Belhumeur</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Feiner</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jacobs</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kress</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ling</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lopez</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ramamoorthi</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sheorey</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>White</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
          </string-name>
          , L.:
          <article-title>Searching the world's herbaria: A system for visual identication of plant species</article-title>
          .
          <source>In: European Conference on Computer Vision</source>
          . (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Mokhtarian</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Abbasi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Matching shapes with self-intersections: Application to leaf classi cation</article-title>
          .
          <source>IEEE Transactions on Image Processing</source>
          <volume>13</volume>
          (
          <year>2004</year>
          )
          <volume>653</volume>
          {
          <fpage>661</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Teng</surname>
            ,
            <given-names>C.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuo</surname>
            ,
            <given-names>Y.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>Y.S.:</given-names>
          </string-name>
          <article-title>Leaf segmentation, its 3d position estimation and leaf classi cation from a few images with very close viewpoints</article-title>
          .
          <source>In: Proceedings of the 6th International Conference on Image Analysis and Recognition</source>
          . ICIAR '
          <volume>09</volume>
          (
          <year>2009</year>
          )
          <volume>937</volume>
          {
          <fpage>946</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Manh</surname>
            ,
            <given-names>A.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rabatel</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Assemat</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Aldon</surname>
            ,
            <given-names>M.J.:</given-names>
          </string-name>
          <article-title>Weed leaf image segmentation by deformable templates</article-title>
          .
          <source>Journal of agricultural engineering research 80</source>
          (
          <year>2001</year>
          )
          <volume>139</volume>
          {
          <fpage>146</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Kass</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Witkin</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Terzopoulos</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          : Snakes:
          <article-title>Active contour models</article-title>
          .
          <source>International Journal of Computer Vision</source>
          <volume>1</volume>
          (
          <year>1988</year>
          )
          <volume>321</volume>
          {
          <fpage>331</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Chan</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vese</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Active contours without edges</article-title>
          .
          <source>IEEE Transactions on Image Processing</source>
          <volume>10</volume>
          (
          <year>2001</year>
          )
          <volume>266</volume>
          {
          <fpage>277</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Unal</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yezzi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krim</surname>
          </string-name>
          , H.:
          <article-title>Information-theoretic active polygons for unsupervised texture segmentation</article-title>
          .
          <source>International Journal of Computer Vision</source>
          <volume>62</volume>
          (
          <year>2005</year>
          )
          <volume>199</volume>
          {
          <fpage>220</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Yuille</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hallinan</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cohen</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Feature extraction from faces using deformable templates</article-title>
          .
          <source>International Journal of Computer Vision</source>
          <volume>8</volume>
          (
          <year>1992</year>
          )
          <volume>99</volume>
          {
          <fpage>111</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Felzenszwalb</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Representation and detection of deformable shapes</article-title>
          .
          <source>PAMI</source>
          <volume>27</volume>
          (
          <year>2004</year>
          )
          <volume>208</volume>
          {
          <fpage>220</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Cremers</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          , Tischhauser,
          <string-name>
            <given-names>F.</given-names>
            ,
            <surname>Weickert</surname>
          </string-name>
          ,
          <string-name>
            <surname>J.</surname>
          </string-name>
          , Schnorr, C.:
          <article-title>Di usion snakes: introducing statistical shape knowledge into the mumford-shah functional</article-title>
          .
          <source>International Journal Of Computer Vision</source>
          <volume>50</volume>
          (
          <year>2002</year>
          )
          <volume>295</volume>
          {
          <fpage>313</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Coste</surname>
          </string-name>
          , H.:
          <article-title>Flore descriptive</article-title>
          et illustree de la France de la Corse et des contrees limitrophes. (
          <year>1906</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Cerutti</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tougne</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vacavant</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Coquin</surname>
            ,
            <given-names>D.:</given-names>
          </string-name>
          <article-title>A parametric active polygon for leaf segmentation and shape estimation</article-title>
          .
          <source>In: 7th International Symposium on Visual Computing</source>
          . (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Mille</surname>
          </string-name>
          , J.:
          <article-title>Narrow band region-based active contours and surfaces for 2d and 3d segmentation</article-title>
          .
          <source>Computer Vision and Image Understanding</source>
          <volume>113</volume>
          (
          <year>2009</year>
          )
          <volume>946</volume>
          {
          <fpage>965</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Goau</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bonnet</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Joly</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boujemaa</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Barthelemy</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Molino</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Birnbaum</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mouysset</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Picard</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>The clef 2011 plant images classi cation task</article-title>
          . (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Vacavant</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Coeurjolly</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tougne</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>A framework for dynamic implicit curve approximation by an irregular discrete approach</article-title>
          .
          <source>Graphical Models</source>
          <volume>71</volume>
          (
          <year>2009</year>
          )
          <volume>113</volume>
          {
          <fpage>124</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20. Hermann,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Klette</surname>
          </string-name>
          ,
          <string-name>
            <surname>R.:</surname>
          </string-name>
          <article-title>A comparative study on 2d curvature estimators</article-title>
          .
          <source>In: International Conference on Computing: Theory and Applications</source>
          . (
          <year>2007</year>
          )
          <volume>584</volume>
          {
          <fpage>589</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>