<!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>Convolutional Long Short-Term Memory Neural Networks for Hierarchical Species Prediction</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Nithish B Moudhgalya</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sharan Sundar S</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Siddharth Divi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>P Mirunalini</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chandrabose Aravindan</string-name>
          <email>aravindancg@ssn.edu.in</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>S. M. Jaisakthi</string-name>
          <email>jaisakthi.murugaiyan@vit.ac.in</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science and Engineering, SSN College of Engineering</institution>
          ,
          <addr-line>Kalavakkam, Chennai</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>School of Computer Science and Engineering, VIT University</institution>
          ,
          <addr-line>Vellore</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Building accurate knowledge of the identity, the geographic distribution and the evolution of organisms is essential for biodiversity conservation. Automatic prediction of list of species is useful for many scenarios in biodiversity informatics. In this work, we propose a hybrid model to predict the species that are most probable to be observed at a given location, using environmental features and taxonomy of the organism. These environmental features are represented as k-dimensional image patches, where each dimension represents the value of an environmental variable, in the neighborhood of the occurrence of the species. The hybrid model Convolutional Long Short-Term Memory Neural Networks henceforth called as CLNN, is a combination of Convolutional Neural Networks(CNNs) and Long Short-Term Memory Networks(LSTMs), where the CNN forms the spatial feature generator while the LSTM focuses on nding the taxonomy. Using the dataset provided by Geo LifeCLEF 2018, the proposed method helped achieve a Mean Reciprocal Rank (MRR) score of 0.003 during the test phase.</p>
      </abstract>
      <kwd-group>
        <kwd>Niche modeling</kwd>
        <kwd>Hierarchical embedding</kwd>
        <kwd>Taxonomic pre- diction</kwd>
        <kwd>CLNN</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Environmental niche models have been used by biologists and environmentalists
to understand the species distribution in geographic space. These models help
reduce resources expended in data collection and analysis, thus giving space for
research in analyzing impacts of global phenomenon like climate change, habitat
loss, species invasion and evolutionary trends that could help in translocation of
species.</p>
      <p>
        Considering the overwhelming uses of species prediction modeling, CLEF
organizers posed the Geo LifeCLEF 2018 challenge [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The aim of the challenge is
to develop a location-based species recommendation system using image-based
representation of environmental features of the immediate surroundings. The
main focus was to substitute environmental feature vectors at a given location
with image-based representation of the features containing details of the
neighborhood. The inclusion of features of the neighborhood better portrays the
distribution of species in a region as compared to other niche modeling techniques.
Modeling image-based environmental features involves complex convolutions over
multiple lters/channels. Moreover, the impact caused by each feature in
determining the likelihood of a particular species can't be analyzed by visualizing the
spatial rasters provided. The high number of target classes may lead to
vanishing probabilities, an issue where the model's predicted probabilities are low and
uniformly distributed across the target classes, thus making the learning process
error-prone.
      </p>
      <p>To overcome these challenges, we propose the use of Convolutional Long
ShortTerm Memory Neural Networks (CLNN) architecture shown in Fig. 4, to model
the species distribution given their spatial environmental features along with
the species taxonomy. The introduction of taxonomy addresses the vanishing
probabilities by reducing the target classes.
2</p>
      <p>
        Methodology
The proposed CLNN model is a hybrid pipeline of CNN and LSTM layers.
Both CNN's and LSTM's are brainchildren of Deep Learning Techniques. Deep
Learning (DL) is a broader type of machine learning algorithms, drawing
inspirations from the biological nervous system. In DL, a cascade of multiple layers of
non-linear processing is used for feature extraction and transformation.
Convolutional Neural Networks(CNNs) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] are a class of deep neural networks that are
used for Computer Vision or analyzing visual imagery. CNN makes use of a set
of learnable lters, which are used to detect the presence of speci c features or
patterns present in the original image. Di erent lters which detect di erent
features are convolved and a set of activation maps are produced. These maps are
then attened i.e. reduced to a n-dimensional vector, and fed into the LSTM.
Long Short-Term Memory Networks(LSTMs) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] are a class of deep learning
techniques that are constructed based on recurrent concepts in neural networks.
The LSTM cells have 3 gates namely input, output and forget that helps it to
arbitrarily remember some input thus giving it memory. They are usually used for
modeling sequences and to predict the change in patterns with respect to some
xed variable. The LSTM layers used here, get the attened features from CNN
and nd the taxonomy of the species as a sequence. The taxonomy of
organisms was used to capture the intra rank similarities and also reduce the search
space for species prediction. Embeddings were added to represent the labels in
k-dimensional space and to maintain their taxonomic context.
2.1
      </p>
    </sec>
    <sec id="sec-2">
      <title>Use of taxonomic nomenclature</title>
      <p>
        Taxonomy of organisms was introduced in Biology, to group species based on
their common ancestral characteristics. According to Darwins Common Descent
theory [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], the process of speciation occurs due to the adaptation of
organisms/species to environmental changes. This results in di erent species with a
common ancestor, that share common characteristics and requirements. This
fact has been exploited in our species prediction model by making use of
taxonomic hierarchy. The Fig. 1 shows the radial tree of taxonomic hierarchy, where
the center of the diagram is the root node "NULL" and the leaf nodes
represent the species ids. The diagram shows that many labels get eliminated as we
traverse radially outward, thus narrowing our search space greatly in reaching
the right species id. In Fig. 2, the bar plot shows that the number of class labels
at the nal layer during classi cation, dropped from 3336 to about 72 with the
introduction of a hierarchy of 5 levels. The taxonomic ranks were contained in
the below mentioned data columns - Kingdom, Phylum, Class, Order, Family,
Genus and Species glc id. As the rst 2 ranks were same for all the given
instances, only the last 5 levels were used in the tree structure shown in Fig. 1.
Embeddings were introduced in Machine learning especially in Natural
Language Processing (NLP) WordtoVec algorithms, by Tomas Mikolov [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Many
embedding algorithms have since been developed, but most of them use
euclidean distance as the measure of similarity. However, since hierarchical vectors
form a tree structure which resembles a hyperbolic curve as seen in Fig. 1, using
hyperbolic distance as the measure of similarity embeds species vectors aptly.
Poincare embeddings [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] can be used represent hierarchical vectors. The Fig. 3
shows a t-SNE plot [9] of the Poincare embeddings created in experiments. The
named dots are the class names and the other indistinct dull spots belong to each
unique label in other lower level taxonomic ranks. The axes shown in the plot are
used to visualize the n-dimensional vectors in a 3D space but are not correlated
to any coordinate system. From the plot, it can be inferred that the class labels
are embedded far apart and the corresponding lower ranks are clustered along,
thus preserving hierarchy.
2.3
      </p>
    </sec>
    <sec id="sec-3">
      <title>CLNN architecture</title>
      <p>
        The CNN used is the state-of-art ResNext model architecture [10] that
combines Inception [8](parallelized convolutions) and Resnet [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ](sequential layers
with residues) together. The rst + symbol in the Fig. 4 shows the global
average pooling of 256 parallel convolutions, while the second + represents the
concatenation of input residue to the output from that block. CNNs are used
to extract meaningful spatial features from the given ti images. These features
are repeated over 5 time steps and passed on to the LSTM layer to predict the
taxonomic ranks. At each time step, the LSTM predicts the taxonomic ranks
namely class, order, family, genus and species as shown in Fig 5. The 3 Dense
layers containing [
        <xref ref-type="bibr" rid="ref5">128,128,5</xref>
        ] neurons respectively, follow the LSTM and are time
distributed, which ensures that the logcosh loss is calculated and the errors in
Poincare embedding predictions are back-propagated to both the LSTM and
CNN layers with equal weights for each time step. This helps the CNN work
with the LSTM, and provide features that help the LSTM improve its
predictions. No pre-trained weights were used and hence the model trains entirely on
the data provided.
The GeoLifeCLEF 2018 dataset, consists of 2,18,000 ti images, with each ti
image containing 33 raster layers of environmental features. The batch size for all
experimental purposes was xed at 32. The CLNN model proposed contains 23M
trainable parameters and 32,000 non-trainable parameters. The learning rate of
the model was set to the default value of 0.001. The codes were written in Keras
API with back-end as tensor ow. Python packages like numpy, scikit-io, ti le,
PIL and pandas were used for data preprocessing. The resource con gurations
include 4GB dedicated graphics by Nvidia GEFORCE 840M processor and 12GB
CPU memory. Di erent combinations of main concepts mentioned earlier were
used to make the following runs.
      </p>
      <p>SSN 1 The CLNN model used the given 33 layers of spatial feature maps to
predict the taxonomic ranks of species. Every layer of each ti image was rst
center-cropped to a size of 32x32 and then fed to the model which ran for 5 time
steps classifying the image into taxonomic ranks. However the model was not
trained to classify each rank .i.e. the back-propagation algorithm ran only for
species classi cation and not for the other ranks. Adam optimizer was used to
nd the minima of the sparse categorical cross-entropy loss function.</p>
      <p>SSN 2 The concept of embeddings was introduced and an independent
model was used to create the embeddings of 10 dimensions between each pair of
taxonomic ranks .i.e. class labels were embedded to nd order, order labels
embedded to nd family and so on. The embedded vectors were used as identi ers
of the unique labels in the CLNN model. So the architecture was modi ed to
predict a 5 time-stepped sequence of 10 dimensional vector, where each vector
corresponds to its unique taxonomic rank labels. However, these embeddings
did not capture the context of hierarchy, which was not used for creating them.
The back-propagation algorithm runs only for the last time step .i.e. the species
predictions. Adam optimizer was used to nd the minima of a MSE loss function.</p>
      <p>SSN 3 The concept of Poincare embeddings was used and binarization was
used to convert each ordinal feature layer into n-1 layers, where n stands for the
number of categories it can assume. All images were fed into the model with the
original dimensions of 64x64. The CLNN model was made to learn each level
in the taxonomic hierarchy, by adding a time distributed wrapper around the
layers following the LSTM. The model predicts the Poincare embedded vector of
5 dimensions, at each time step for a particular image which is then decoded to
nd the corresponding labels. The ranks of species were calculated based on the
distance between the learned embeddings and the model predicted embeddings
of the species. Since Poincare embeddings was used, the logcosh loss function
was used with Adam optimizer by the model for a batch size of 32 ti images.</p>
      <p>SSN 4 All images were fed into the model with the original dimensions of
64x64. A time distributed wrapper was added to the layers following the LSTM
segment of the CLNN to ensure the back propagation algorithm applied to every
time step, thus enabling the model to learn the entire taxonomic hierarchy.
Again, the concept behind binarization was applied to ordinal feature layers.
The Adam optimizer was used to nd minima of sparse categorical cross-entropy
loss function, as the nal outputs were one-hot encoded.</p>
      <p>The metric used to measure model e ciency is Mean Reciprocal Rank(MRR)
which is calculated as,</p>
      <p>M RR =
1 jQj</p>
      <p>X</p>
      <p>1
jQj i=1 ranki</p>
      <p>The results are calculated for both training and testing datasets and shown
in Table 1.
The hybrid CLNN model with the power of taxonomy resulted in low accuracies
initially but showed promising surge in the later stages(0.004 to 0.0030). The use
of Poincare embeddings along with learning taxonomy at each time step, showed
best results so far. However, these relatively low values can be attributed to some
or all the following reasons. The LSTMs need a large number of epochs to learn
the sequences but due to the processing and resource bottlenecks, the LSTM was
trained only for a few epochs. The mathematical complexity involved in
incorporating Poincare Embeddings for the taxonomic prediction is still debatable.
Thus ne tuning the hyper parameters of the CLNN model to maximize the use
of taxonomy and embeddings can be incorporated in future. The use of
embeddings at output levels are hard to model as they are n-dimensional oat values
for each label and cannot be easily predicted by model within a few epochs thus
displaying huge errors at starting stages. To nd the top n ranks of species, the
distance between model predictions and learned embeddings were compared. As
the embeddings were calculated using di erent functions and CLNN trained on
di erent loss function, the distances calculated need not belong to either
coordinate system thus giving curious results in some cases. Also the shu e among
patch ids and species ids predicted by model may be attributed to bottlenecks
in CPU and GPU computations owing to the use of Sequence generator.</p>
      <p>CLNN can be modularized in the future, by training the CNN and LSTM
separately, to avoid misleading gradient problem, wherein the errors made by
LSTM need not be re ected into CNNs feature generations. The model would
thus function like image-captioning with CNN features being xed and LSTM
training to understand sequences from these xed features. Yet another family
of thoughts could give rise to Branch-CNN [11] in which the coarse layers are
used to predict lower level hierarchy and ner layers to predict higher level
hierarchy. Each branch trains speci cally for the corresponding taxonomic rank
thus compartmentalizing the CNN's features generated.
8. Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S.E., Anguelov, D.,
Erhan, D., Vanhoucke, V., Rabinovich, A.: Going deeper with convolutions. CoRR
abs/1409.4842 (2014)
9. Wattenberg, M., Vigas, F., Johnson, I.: How to use t-sne e ectively. Distill (2016)
10. Xie, S., Girshick, R., Dollr, P., Tu, Z., He, K.: Aggregated residual transformations
for deep neural networks. arXiv preprint arXiv:1611.05431 (2016)
11. Zhu, X., Bain, M.: B-CNN: branch convolutional neural network for hierarchical
classi cation. CoRR abs/1709.09890 (2017)</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Darwin</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>The Origin Of Species</article-title>
          . John Murray (
          <year>1859</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Deshpande</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>A Beginner's Guide To Understanding Convolutional Neural Networks</article-title>
          . https://adeshpande3.github.io/A-Beginner%
          <article-title>27s-Guide-To-Understanding-Convolutional-Neural-Networks/ (</article-title>
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>He</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ren</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sun</surname>
          </string-name>
          , J.:
          <article-title>Deep residual learning for image recognition</article-title>
          .
          <source>CoRR abs/1512</source>
          .03385 (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Hochreiter</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schmidhuber</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>Long short-term memory</article-title>
          .
          <source>Neural Comput</source>
          .
          <volume>9</volume>
          (
          <issue>8</issue>
          ),
          <volume>1735</volume>
          {1780 (Nov
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Joly</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          , Goeau, H.,
          <string-name>
            <surname>Botella</surname>
            , Christophe,
            <given-names>G.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bonnet</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Planque</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vellinga</surname>
            ,
            <given-names>W.P.</given-names>
          </string-name>
          , Muller, H.:
          <article-title>Overview of lifeclef 2018: a large-scale evaluation of species identi cation and recommendation algorithms in the era of ai</article-title>
          .
          <source>In: Proceedings of CLEF</source>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Mikolov</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sutskever</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Corrado</surname>
            ,
            <given-names>G.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dean</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <article-title>Distributed representations of words and phrases and their compositionality</article-title>
          . In: Burges,
          <string-name>
            <given-names>C.J.C.</given-names>
            ,
            <surname>Bottou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            ,
            <surname>Welling</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Ghahramani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            ,
            <surname>Weinberger</surname>
          </string-name>
          ,
          <string-name>
            <surname>K.Q</surname>
          </string-name>
          . (eds.)
          <source>Advances in Neural Information Processing Systems</source>
          <volume>26</volume>
          , pp.
          <volume>3111</volume>
          {
          <fpage>3119</fpage>
          . Curran Associates, Inc. (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Nickel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kiela</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Poincare embeddings for learning hierarchical representations</article-title>
          . In: Guyon,
          <string-name>
            <given-names>I.</given-names>
            ,
            <surname>Luxburg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.V.</given-names>
            ,
            <surname>Bengio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Wallach</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            ,
            <surname>Fergus</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Vishwanathan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Garnett</surname>
          </string-name>
          ,
          <string-name>
            <surname>R</surname>
          </string-name>
          . (eds.)
          <source>Advances in Neural Information Processing Systems</source>
          <volume>30</volume>
          , pp.
          <volume>6338</volume>
          {
          <fpage>6347</fpage>
          . Curran Associates, Inc. (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>