<!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>Recognition of the Amazonian flora by Inception Networks with Test-time Class Prior Estimation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Lukáš Picek</string-name>
          <email>picekl@kky.zcu.cz</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Milan Šulc</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jiří Matas</string-name>
          <email>matas@cmp.felk.cvut.cz</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dept. of Cybernetics, Faculty of Applied Sciences, University of West Bohemia</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Visual Recognition Group, Faculty of Electrical Engineering, Czech Technical University in Prague</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>The paper describes an automatic system for recognition of 10,000 plant species, with focus on species from the Guiana shield and the Amazon rain forest. The proposed system achieves the best results on the PlantCLEF 2019 test set with 31.9% accuracy. Compared against human experts in plant recognition, the system performed better than 3 of the 5 participating human experts and achieved 41.0% accuracy on the subset for expert evaluation. The proposed system is based on the Inception-v4 and Inception-ResNet-v2 Convolutional Neural Network (CNN) architectures. Performance improvements were achieved by: adjusting the CNN predictions according to the estimated change of the class prior probabilities, replacing network parameters with their running averages, testtime data augmentation, filtering the provided training set and adding additional training images from GBIF.</p>
      </abstract>
      <kwd-group>
        <kwd>Plant Recognition</kwd>
        <kwd>Computer Vision</kwd>
        <kwd>Convolutional Neural Networks</kwd>
        <kwd>Machine Learning</kwd>
        <kwd>Class Prior Estimation</kwd>
        <kwd>Fine-grained</kwd>
        <kwd>Classification</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        The paper describes an automatic system for visual recognition of plants among
10,000 species, developed for the the PlantCLEF 2019 plant identification
challenge [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] organized in connection with the LifeCLEF 2019 workshop [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] at the
Conference and Labs of the Evaluation Forum. Compared to previous
PlantCLEF challenges [
        <xref ref-type="bibr" rid="ref1 ref2 ref3">1,2,3</xref>
        ], which contained mainly species living in Europe and
North America, the 2019 task is focused on the recognition of species from ”data
deficient regions” - mainly the Guiana shield and the Amazon rain forest.
      </p>
      <p>
        The proposed approach is based on CMP’s winning submission to PlantCLEF
2018 [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Checkpoints of our models from PlantCLEF 2018 have been shared
with other participants of PlantCLEF 2019 in order to provide a good starting
point to all participants.
PlantCLEF 2019 EOL: 72,260 images covering 4,197 classes from the
Encyclopedia of Life3
PlantCLEF 2019 Google: 68,254 images covering 6,262 classes automatically
retrieved by web search engines.
      </p>
      <p>PlantCLEF 2019 Bing: 307,557 images covering 8,666 classes automatically
retrieved by web search engines.</p>
      <p>The average number of images per specie decreased dramatically from
PlantCLEF 2018. One fifth of species contains less then 10 images and some of them
contains only 1 image.
3 http://www.eol.org</p>
      <p>
        A brief manual inspection showed that the provided training set is aflicted
with noisy samples - wrongly labeled images, including images of non-flora
objects. Examples of noisy samples are in Figure 3. We therefore decided to detect
non-flora images by a pre-trained Darknet53 448x448 [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] classifier. Out of 428,702
images from the oficial training set, we removed 6,181 images detected as
nonlfora, After that our training data missed approximately 2000 classes, so we had
to gather additional training images to fill that gap. We created a new
training set4 including external training data downloaded from GBIF5, described in
Table 1. Changes in the dataset statistics are visualized in Figure 4.
      </p>
      <p>
        To make sure that none of the additional training images (or its resized or
cropped versions) downloaded from GBIF appear in the test set, we used the
image retrieval pipeline of Radenovic et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] with VGG-16 and whitening. The
4 For full reproducibility, a list of removed samples as well as an archive with
additional training images are shared at http://cmp.felk.cvut.cz/~sulcmila/
LifeCLEF2019/
5 http://www.gbif.org/
Original dataset
Cleaned dataset
      </p>
      <p>Cleaned &amp; extended dataset
2000
4000
6000
8000</p>
      <p>10000</p>
      <p>Class
nearest neighbours of test images among the downloaded images are vizualized
in Figure 5.
2.2</p>
      <sec id="sec-1-1">
        <title>Convolutional Neural Networks</title>
        <p>
          The proposed system is based on two CNN architectures – Inception ResNet
v2 and Inception v4 [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. The TensorFlow-Slim API was used to adjust and
ifne-tune the networks from the publicly available 6 PlantCLEF 2018 winning
checkpoints.
        </p>
        <p>All networks in our experiments shared the optimizer settings enumerated in
Table 2. The networks and their input resolutions are listed in Table 3.</p>
        <p>The following image pre-processing techniques were used for training:
Random image crop with aspect ratio range (0:75; 1:33) and content at least
80% of origin image.
6 http://cmp.felk.cvut.cz/~sulcmila/LifeCLEF2018/
Random left-right flip.</p>
        <p>Brightness and saturation distortion.
1x Full image,
1x Central crop covering 80% of the original image,
1x Central crop covering 60% of the original image.</p>
        <p>In submissions 4,5,6,7 the mirrored versions of all three crops were also evaluated.
2.4</p>
      </sec>
      <sec id="sec-1-2">
        <title>Adjusting Class Priors at Test Time</title>
        <p>The training set data distribution is highly unbalanced and we can not
guarantee that the test images were drawn from the same distribution: as described
in Section 2.1, the training set comes from diferent sources, where the class
frequencies may not correspond with the test-time priors.</p>
        <p>
          Following the notation of [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], the predictions p(ckjxi) of a network trained
on a dataset with class prior probabilities p(ck) should be corrected in case of
evaluation on a test set with diferent class priors pe(ck):
pe(ckjxi) =
        </p>
        <p>p(ckjxi) ppe((cckk))
P p(cj jxi) ppe((ccjj)) / p(ckjxi) ppe((cckk))
K
j=1</p>
        <p>Since the test-time priors pe(cj ) are unknown, we propose three diferent
estimates of adjusting the predictions:
UNIFORM: As the simplest option, we adjust the test predictions by assuming
a uniform prior for all classes.</p>
        <p>
          MLE: As the second option, we compute a Maximum Likelihood Estimate of
the test time prior pe(ck) using the EM algorithm of Saerens et al. [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ], comprising
of the following two steps:
        </p>
        <p>E: p(es)(ckjxi) =</p>
        <p>M: p(es+1)(ck) = 1 XN p(es)(ckjxi)</p>
        <p>N i=1
p(ckjxi) p(es)(ck)</p>
        <p>
          p(ck)
P p(cj jxi) p(es)(cj )
K
j=1 p(cj )
MAP: As the third option, we use the Maximum a Posteriori estimate proposed
in [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]:
(1)
(2)
(3)
PMAP = arg max p(Pj(x1; ::; xN ))
        </p>
        <p>P</p>
        <p>We model the prior knowledge about the categorical distribution pe(ck) by
the symmetric Dirichlet distribution:</p>
        <p>
          where the normalization factor for the symmetric case is B( ) =
in [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], we use
Table 4 describes eight final runs used for the evaluation. An ensemble of all five
networks from Section 2.2 was used in all runs and predictions were averaged
over all networks and all test image augmentations from Section 2.3.
        </p>
        <p>Run description Test accuracy
Name Test-time augm. Prior est. Top1 Top1 Exp. Top5 All Top5 Exp.
CMP Run 2 3 scale (none) 0,244 0,325 0,356 0,410
CMP Run 3 3 scale uniform 0,247 0,316 0,360 0,419
CMP Run 4 3 scale MAP 0,301 0,402 0,453 0,573
CMP Run 5 3 scale MLE 0,307 0,402 0,451 0,573
CMP Run 6 3 scale + mirrors (none) 0,311 0,402 0,454 0,538
CMP Run 7 3 scale + mirrors uniform 0,311 0,410 0,461 0,564
CMP Run 4* 3 scale + mirrors MAP 0,319 0,402 0,468 0,581
CMP Run 5* 3 scale + mirrors MLE 0,319 0,410 0,470 0,581</p>
        <p>
          The evaluation results are shown in Figures 1,6. From the class prior
estimation methods, MAP estimation with the Dirichlet hyperprior achieves the
best results. This corresponds to the results of [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], where adding the hyperprior
brought noticeable improvement over the MLE estimation, which may have a
tendency to overfit. Note that the results from Table 4 are the oficial
postchallenge evaluation not included in the challenge leaderboard, as our predictions
were wrongly exported into the challenge run-files.
4
        </p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Conclusions</title>
      <p>
        The proposed system achieves the best accuracy on the PlantCLEF 2019 test
set - 31.9% on the full set and 41.0% on the test subset for plant identification
experts. The results show that even for ”data-deficient” plant species, automatic
image recognition systems achieve human expert accuracy in visual recognition
of plants: The proposed method performed better than 3 of the 5 participating
experts in plant recognition. Although the results are promising, there are many
opportunities for further improvement of automatic plant recognition systems for
data-deficient species, such as one-shot learning and open long-tailed recognition
[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] methods.
      </p>
      <p>The increasing precision of the automated plant recognition methods should
allow for a better assistance to both nature lovers and biological experts in
the fields. For example, showing a shortlist of potential species candidates can
decrease the time needed for decision and potentially increase the recognition
rate.</p>
    </sec>
    <sec id="sec-3">
      <title>Acknowledgements</title>
      <p>LP was supported by the UWB project No. SGS‐2019‐027. MŠ and JM were
supported by OP VVV project CZ.02.1.01/0.0/0.0/16019/000076 Research Center
for Informatics. We’d like to thank Tomáš Jeníček for his assistance with the
image retrieval pipeline in Section 2.1.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Goëau</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>
          :
          <article-title>Plant identification in an open-world (lifeclef 2016)</article-title>
          .
          <source>In: CLEF working notes 2016</source>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Goëau</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>
          :
          <article-title>Plant identification based on noisy web data: the amazing performance of deep learning (lifeclef</article-title>
          <year>2017</year>
          ).
          <source>CEUR Workshop Proceedings</source>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Goëau</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>
          :
          <article-title>Overview of expertlifeclef 2018: how far automated identification systems are from the best experts?</article-title>
          <source>In: CLEF working notes 2018</source>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Goëau</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>
          :
          <article-title>Overview of lifeclef plant identification task 2019: diving into data deficient tropical countries</article-title>
          .
          <source>In: CLEF working notes 2019</source>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Joly</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goëau</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Botella</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kahl</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Servajean</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Glotin</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bonnet</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vellinga</surname>
            ,
            <given-names>W.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Planqué</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stöter</surname>
            ,
            <given-names>F.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Müller</surname>
          </string-name>
          , H.:
          <article-title>Overview of lifeclef 2019: Identification of amazonian plants, south &amp; north american birds, and niche prediction</article-title>
          .
          <source>In: Proceedings of CLEF</source>
          <year>2019</year>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miao</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhan</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gong</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yu</surname>
            ,
            <given-names>S.X.</given-names>
          </string-name>
          :
          <article-title>Large-scale long-tailed recognition in an open world</article-title>
          .
          <source>In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition</source>
          . pp.
          <fpage>2537</fpage>
          -
          <lpage>2546</lpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Radenović</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tolias</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chum</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          :
          <article-title>Fine-tuning cnn image retrieval with no human annotation</article-title>
          .
          <source>IEEE transactions on pattern analysis and machine intelligence</source>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Redmon</surname>
          </string-name>
          , J.: Darknet:
          <article-title>Open source neural networks in c</article-title>
          . http://pjreddie.com/ darknet/ (2013-2016)
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Saerens</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Latinne</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Decaestecker</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Adjusting the outputs of a classifier to new a priori probabilities: a simple procedure</article-title>
          .
          <source>Neural computation 14(1)</source>
          ,
          <fpage>21</fpage>
          -
          <lpage>41</lpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Sulc</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Matas</surname>
          </string-name>
          , J.:
          <article-title>Improving cnn classifiers by estimating test-time priors</article-title>
          . arXiv preprint arXiv:
          <year>1805</year>
          .08235v2 (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Sulc</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Picek</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Matas</surname>
          </string-name>
          , J.:
          <article-title>Plant recognition by inception networks with testtime class prior estimation</article-title>
          .
          <source>Working Notes of CLEF</source>
          <year>2018</year>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Szegedy</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Iofe</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vanhoucke</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alemi</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          :
          <article-title>Inception-v4, inception-resnet and the impact of residual connections on learning</article-title>
          .
          <source>In: Thirty-First AAAI Conference on Artificial Intelligence</source>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>