<!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>KNN algorithm with DTW distance for signature classification of wine leaves</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>José Luis Seixas Junior Tomáš Horváth</string-name>
          <email>jlseixasjr@inf.elte.hu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Data Science and Engineering ELTE - Eötvös Loránd University, Faculty of Informatics</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>The European Union has created a way of classifying wines to make life easier for consumers when choosing the product that most appeals to them, this classification may require control that is hampered by the distancing of production. The automation of control processes is a good way out, but this comes up against the difficulty of computational methods for image interpretation. Thus, this paper presents a form of abstraction of image data into a series of values that can be more easily understood by the computer. A Machine Learning algorithm is also applied to create a baseline for the classification of these entry images, obtaining up to 60% accuracy while classifying five classes of vine varieties.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        In 2009, the European Union unified the wine
classification system in order to make it easier for consumers to
understand the European wine quality. Protected
Designation of Origin (PDO) and Protected Geographical
Indication (PGI) are types of wines which have some influence
from their place of origin and may require control of
different aspects of production [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], PDOs being the highest
influenced and having highest production restriction [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
A third class is Wine which has no restrictions or
influence.
      </p>
      <p>
        In Hungary, 97% of vineyards areas are eligible for
protected zones PDOs or PGIs [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], making it hard to keep
track of all production and varieties available.
      </p>
      <p>Automating the plant identification process reduces the
need for specialist professionals and, thus, makes it
possible to increase the recognition and production capacity
in each area. The automation of the processes requires the
application of image processing techniques and the
interpretation of the data obtained after these processes.</p>
      <p>
        The “Protocol for distinctness, uniformity and stability
tests” for grapevine [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] made by the European Community
Plant Variety Office (CPVO) indicates that shapes can be
an important feature for determining varieties, but
unfortunately, complex shapes are characteristics that are difficult
to detect and compare in image computational processes.
      </p>
      <p>
        Ratanamahatana and Keogh [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] suggest that some
problems can be transformed into a pseudo time series and even
mention leaf shape as one of them. In their case, the leaves
belonged to six different species, four species of maple and
two species of oak.
      </p>
      <p>So, the goal of this paper is to create a process that could
transform a leaf image into a series based on its shape and
use Artificial Intelligence or Machine Learning algorithms
to create a baseline of object signature classification in
grape varieties identification task.</p>
      <p>This paper is organized as follow: Section 3 presents
steps and techniques used to transform a leaf image into
a series, followed by Section 4 which describes how these
series were used to build a classification model. Section 5
brings the results obtained and in Section 6 the conclusions
which can be inferred by these results.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Works</title>
      <p>
        As in Ratanamahatana and Keogh [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], most of the works
in the literature classify different species of plants, but the
variations found in the differentiation of species are much
higher than varieties differentiation which belongs to the
same species Vitis vinifera.
      </p>
      <p>
        Remagnino et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] present margin patterns as a
structure that can contribute to plant identification and mentions
that few works cite this characteristic in the identification
automation.
      </p>
      <p>
        Stubendek &amp; Karacs [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] describe techniques for
creating object description vectors which count pixels of a
region of interest in different directions, i.e., counting region
pixels in a column for index i from x axis. The Extended
Projected Principal Shape Edge Distribution counts
directionally pixels belonging to the edge which exist in the
direction of counting in four angles (axes x, y, main and
secondary diagonals) and finally, concatenates the vectors
of each direction for description by a single vector,
however, rotation variant.
      </p>
      <p>
        Munisami et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] uses the kNN algorithm to cluster
thirty two different plant species leaves, creating a
vector of morphological features such as aspect ratio, area
by perimeter ratio, perimeter ratio by smaller window,
distance maps. Testing the feature vectors of all images
with all samples, obtaining up to 100% accuracy for some
classes and 83.5% general accuracy. This indicates that
the kNN method can be an important ally for
classification after obtaining the descriptive vectors.
      </p>
      <p>
        Patil and Bhagat [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] bring us a review where the same
methodology is applied with different techniques for leaf
shapes process and recognition. The difference among
datasets shows that for different types of leaves they need
different approaches for classification, and it reflects the
importance of shapes as a decision criterion.
      </p>
      <p>
        In Du [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], we can see several shape descriptors based
on binary images. For image binarization, conversion to
gray scale was used with conversion weights as channel
Y (Gray = 0:299R + 0:578G + 0:114B), from YIQ model,
which represents brightness in analog imaging systems.
The descriptors shown deal with major differences, but
they are used to separate species, and not varieties, which
have greater differences among them.
      </p>
      <p>
        Aakif and Khan [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], on the other hand, uses a different
intensity calculation that specifically fits leaves. It gives
greater importance to green channel, since it is known that
leaves tend to have high values on green, it was again used
to differentiate species, background has less control than
other articles, but with a unique color.
      </p>
      <p>
        Diago et al. [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] also brings a study on leaves area
estimation, but uses leaves as bush not individually and does
not classify the type of grape, so it does not depend on
smaller leaves details.
      </p>
      <p>
        Convolutional Neural Networks (CNNs) have been used
in all kinds of problems related to images and in viticulture
it is no different, in addition to working in this sector, Ji
and Wu [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] also cite several works that use these CNNs
frameworks aimed at plant diseases identification. In our
work, CNNs are avoids because these networks demand a
much larger amount of images, computational power and
time. Transfer learning, which is a proposed solution to
such problems, is also not as efficient as models generally
need to be tuned, as even mentioned by Ji and Wu.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3 Image to Series Transformation</title>
      <p>Image acquisition process was done a long time before the
beginning of the work, without the presence of an image
specialist, so the process was very poorly controlled and
there was no requirement for any type of special
equipment. This caused the first impacting factor, as several of
the images could not be used in this research due to
excessive noise.</p>
      <p>This happened due to the correct time for the plants to
have leaves or be harvested, as this acquisition cannot be
made at any time of the year by the climatic state that
causes effects on production. Thus, the noisy images could
not simply be reacquired at any time that was requested.</p>
      <p>This lack of control was also designed to enable testing
different approaches and after detecting the best possible
process, later a new acquisition step can be done taking
into account the relevant factors of this work when the
appropriate time comes.</p>
      <p>The number of images that could be really useful for
work was also reduced, and this number was used to
maintain the class balance. Thus, the number of images was
thirty two per class, eight being used to create the
classification and the rest for tests.</p>
      <p>Two steps must be performed with the images, border
identification, which is used in object description and
reference point detection, which is used to measure the
distances to the borders.</p>
      <p>Figures 1 and 2 show the steps used in the two
procedures, the figure representing the steps to find the outline
of the object, while the figure shows the steps necessary
to find the desired reference point in this work. Figures
1a and 2a are the same, since both algorithm has the same
starting point.</p>
      <p>Right after image reading, a resizing operation is carried
out, there is no need to use such a high resolution as
available in cell phone cameras nowadays, in addition, some
algorithms that have size dependence may differ with
different resolutions. Thus, resizing helps not only in execution
speed, but also in standardizing values for all algorithms.</p>
      <p>A test is done in image orientation, testing if the
highest value is the width or height, to detect if the image is
in portrait or landscape orientation. The highest value
between them is used as a basis for reduction, where this
value is now only 10% of its total value. The original
images are 4000 3000 pixels, the reduction maintains
the aspect ratio, thus, the bigger side is decreased to 400
and the smaller one consequently undergoes the necessary
change to maintain the ratio.</p>
      <p>At this point, two algorithms are applied, one that will
find the reference point and the other that will find the
border, so a copy is made of this resized image.
3.1</p>
      <sec id="sec-3-1">
        <title>Contour Finder</title>
        <p>To find the borders and avoid as much noise as possible,
some preprocessing is applied. First, a Gaussian blurring
filter is applied and then this result is subtracted from the
original image.</p>
        <p>Due to the characteristic of the blur filter, plain areas do
not have much alteration since plain regions have similar
pixels and consequently the spread of similar information
remains similar.</p>
        <p>At the edges, this causes a difference, where, also by
definition, the edges have drastic variations and therefore
interactions with neighboring pixels will change the
previous values. Thus, when subtracting values close to plains
and more distant to the edges results in an edge sharpening
filter, as can be seen in Figure 1b.</p>
        <p>After edge sharpening, as known, leaves are greenish
in color, a mathematical channel operation is performed
using the green channel with double value and subtracting
the red channel value.</p>
        <p>In the used images, the blue channel has low values for
almost the entire image, thus, this channel was not very
useful in the operation and no benefit was seen when used,
thus, discarded.</p>
        <p>Background area has closer values for red and green
channels. However, within leaf areas there are distant
val(a) Image example.</p>
        <p>(b) Sharpened Green Channel
(c) Subtraction operation.
(d) Detected contour
ues, with great intensities of green and very small (almost
zero) for red, so the operation produces values close to
zero in the background and values close to the green
channel on the leaf area.</p>
        <p>After this operation, the object is much more visible and
the background practically tends to black, which greatly
increases the ability of edge detection algorithm, so much
that even image binarization was not necessary, in Figure
1c there is example of the result of this mathematical
operation and how the object is able to stand out from the
background, which at this moment, becomes black.</p>
        <p>The contour detection algorithm used was the algorithm
from OpenCV library, all edge points were stored, no
approximation was made and only the most external object
was used. The result of the contour detection can be seen
in Figure 1d.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Reference Point</title>
        <p>The copy of resized image is used in this process, so none
of the processes mentioned in the contour detection,
described in Subsection 3.1, will impact at this point.</p>
        <p>
          Tak and Hwang [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] use a procedure that allows the
margin and its patterns to be taken into account, using the
distances to a reference point. Their work uses the
center point of the object as a reference, so they calculate the
distance from all points on the margin to the center of the
object, as it is rotation and scale invariant.
        </p>
        <p>These characteristics are important and are maintained
in this work, however, by definition, the center of the
image is the average distance over the margin values, which
will flatten the different distances. This approximation of
values tends to make it more difficult to solve the problem
by the models.</p>
        <p>So different steps were taken to find the reference point.
For this task, it is assumed that the petiole region is a
region with a lot of information.</p>
        <p>The petiole is the stalk which bind the leaf to the steam,
its region is the part of the leaf which contains the cut and
it is full of thick ribs, many edges and a small circle may
appear in some cases. Thus, since this region has a
junction of many parts, it also contains many edges, therefore,
the first step in this process is to run an edge detection
filter.</p>
        <p>To prevent many details from being highlighted in the
middle of the leaf, the Canny algorithm was used with
relatively high values, 200 and 250 for minimum and
maximum detection parameters, respectively, the result is as
shown in Figure 2b.</p>
        <p>At the petiole region, which is the region sought, many
edges are detected, following the edge detection, a
closing operation with a rectangular shape and size 7 7 is
executed. Close lines will therefore be connected, small
holes filled and as mentioned, this region has many lines,
it becomes a very highlighted region, i.e., it becomes a big
blob or structure, as seen in Figure 2c.</p>
        <p>At this point, the resizing previously mentioned gains
huge importance, since with no image size adjusting,
kernels in this type of algorithm could vary greatly in images
obtained from different cameras.</p>
        <p>After that, several erosion operations is carried out, with
a cross structural element size 3 3. Any noise or small
region is eliminated. The erosion operation takes place
until a new execution would clear the image, i.e., the
operation is performed until if performed once more, everything
would be eliminated.</p>
        <p>Therefore, the resultant is the smallest possible portion
of the largest portion found after the closing operation.
With these operations, the remaining point is only the one
which belonged to the largest region, which is the petiole
region due to its characteristics. The (x; y) coordination
of this point is stored. In Figure 2d, the point found was
painted over the image for a better visualization of precise
position found after the subsequent erosion were made.
3.3</p>
      </sec>
      <sec id="sec-3-3">
        <title>Signature Creation</title>
        <p>With the object contour points and a reference point, it is
possible to create a object signature. The signature is a
vector with distances of each contour point in relation to
the reference point.
fore, all vectors in this case start with one, since they have
been normalized.</p>
        <p>This was done because the same leaf would produce
quite different values and, consequently, larger distances
between values that should be very close.</p>
        <p>For example, in Figure 4, all series belong to the same
leaf, the one previously used as example, and rotated 90 ,
180 and 270 , respectively. But measuring distances
between its original and after applying rotation, the results
are approximately 211, 234 and 143, respectively. With
the vector rotation technique, all of them are represented
as the first example, as this has its greatest value in the first
position, and the distance between them goes to zero.</p>
        <p>The unchanged vector was still maintained, since some
small variations in the vector would be interpreted by the
distance calculation algorithm, so comparisons would be
made on the necessity for the rotations.</p>
        <p>Even though rotated vector adjusts variations in
angulation, it also approximates values, as it is possible to see
when realizing all vectors start with the maximum value,
one. So, the experiments were done with both types of
vectors to check if the gain of the process is greater than
the damage caused by the approximation of the values.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Object Classification</title>
      <p>After the process of creating object signatures, they need
to be classified among the available groups. Our research
included five different types of vine leaves:</p>
      <sec id="sec-4-1">
        <title>Cabernet Franc</title>
      </sec>
      <sec id="sec-4-2">
        <title>Blaufränkisch (Kékfrankos)</title>
      </sec>
      <sec id="sec-4-3">
        <title>Muscat Blanc à Petits Grains (Sárgamuskotály)</title>
      </sec>
      <sec id="sec-4-4">
        <title>Pinot gris (Szürkebarát)</title>
      </sec>
      <sec id="sec-4-5">
        <title>Gewürztraminer (Tramini)</title>
        <p>So, the task is a multiclass series classification from
object signature generated by vine leaves contours.
The classification was made using the k-Nearest
Neighbors (kNN) algorithm. The kNN is a distance-based
sorting algorithm, where the object to be classified receives the
class of most of the objects closest to it. The kNN
algorithm was chosen because it does not need many examples,
since there not so many images.</p>
        <p>Figure 5 shows an example of kNN operation where
the new object class is assigned as the same as the most
numerous class of its neighbors. The value of k
determines how many objects are taken into account when
assigning the new object’s class, so if k equals 1, the object
to be classified receives the same class as the closest
object, which may be interesting because the object would
be classified according to the value most similar to it, but
it makes the model more susceptible to noise.</p>
        <p>kNN can be used with any distance measurement, it is
commonly found with Euclidean distance as it is a
distance calculation easy to understand and with good
accuracy. However, Euclidean distance needs vectors of equal
sizes for its calculation, in addition, small flaws in the
detection of contour, or any image noise, such as shadows
or reflections, close to the edges could cause variations in
distance positions of the calculated vector.</p>
        <p>Thus, in order to avoid problems in the calculation of
distances due to small inaccuracies and still eliminating
the problem of the vectors sizes, the distance calculation
method used to measure the series distances was using the
Dynamic Time Warping algorithm.
4.2</p>
        <sec id="sec-4-5-1">
          <title>Dynamic Time Warping</title>
          <p>
            Dynamic Time Warping (DTW) is a technique for finding
the alignment of two time series even if one of them has
been deformed by shortening or stretching the time axis,
the algorithm finds the minimum distance of the series
deformation path [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ].
          </p>
          <p>
            In Cope and Remagnino [
            <xref ref-type="bibr" rid="ref16">16</xref>
            ], they show this technique
can be used to compare leaves using their margins,
however, in their case, plants belong to different species that
make the distances and differences in the series more
accentuated.
          </p>
          <p>
            To make the algorithm more efficient, its fastest form
was used, named fastDTW introduced by Salvador and
Chan [
            <xref ref-type="bibr" rid="ref17">17</xref>
            ]. In this approach the warp path is found first in a
very low level resolution of the series, then projected and
refined into higher resolution levels until full resolution,
decreasing the DTW’s complexity from O(N2) to O(N).
5
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Results</title>
      <p>The kNN algorithm was executed with k values from 1 to
7, the best result in all executions was with value 3, as can
be seen in Figure 6. Where the dashed blue line
represents the accuracy of non-rolled vectors and the red full
line shows the accuracy of rolled vectors using different
values for k in the kNN algorithm.</p>
      <p>Non-rolled series reached approximately 44% accuracy,
while 60% for rolled vectors for all five classes. When
analyzing classes individually, Kékfrankos was the most
accurate with 80% accuracy, while Cabernet Franc got just
over 43%.</p>
      <p>These individual results were obtained with the value of
k as 3, for being the best for all experiments. The same
values of k were applied for individual classes
measurements, but the results of the best and worst varieties were
always the same, changing only the percentages.</p>
      <p>As a comparison, random checks were performed, ten
attempts were made with a maximum accuracy of 25% and
an average of 20% for the five classes.</p>
      <p>One of the reasons for the low accuracy of the kNN
model was the noise caused in the detection of contours
that united the grooves in the middle of the leaf with the
bottom, as this included contour values that were not leaf
margins, besides, they are values with more significant
differences than those belonging to margin patterns.</p>
      <p>In Figure 7 there is an example where the internal
grooves of the image were detected as margins. The first
problem is that the reference point, in this case, is not part
of the interior of the region, which should not happen. The
second problem is from contour detection which detects
contours on the inside of the leaf, creating patterns that are
not from margins, but will be part of the series.</p>
      <p>In Figure 8 shows the variations caused by noise in the
contour detection. Since those inside lines does not have
any margin pattern, they appear straighter than outside
lines and with higher changes from surrounding values.</p>
      <p>In Cabernet Franc, there is another problem that may
have caused problems in the series and may be
responsible for the poor accuracy result of this type. The lack of
control of the acquisition and the fact that the leaf is not
flat allows some places on the edges to touch each other.</p>
      <p>In Figure 9, there are two examples of Cabernet Franc
leaves where the margin touches itself. As highlighted by
the red dashed ellipses, one of them touches itself and the
other does not, so it is not possible to be sure this will
always happen and it will be part of the series or that it
would never happen.</p>
      <p>Tramini was responsible for the use of few images,
because in this variety we had thirthy two usable images,
eight of which were used for kNN training and the rest to
obtain the results. All other classes had more images, but
were not used to maintain a balance between classes.</p>
      <p>The lack of images for training was one of the reasons
for choosing kNN for classification, as this algorithm does
not require many examples to produce considerable
results, but which can be improved if there are more
examples for training and testing.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Conclusions</title>
      <p>In this article, a process for transforming an image of a
leaf into a series of values was presented. This series can
be saved, analyzed or compared easier than a shape inside
an image.</p>
      <p>In addition, the kNN clustering model was used to try to
classify the different types of leaves through these series.
This first attempt was chosen with the intention of
creating a baseline and studies of models or improvement of
this model can help in a more correct recognition of leaves
series.</p>
      <p>It was also seen that the rolling process on the vectors
helps the algorithm to compare the sequences more
correctly, because this process makes the series rotation
invariant, and applied with the normalization, also makes it
scale invariant.</p>
      <p>Two processes may be performed in future works, one
of them on the preprocessing algorithm for a better
detection of the contour, which can use segmentation of the area
of interest, or the study of models that can work better with
the series already created.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgement</title>
      <p>We would like to thank Telekom who has us as one of
its technology partners on Telekom Innovation
Laboratories and the Tempus Public Foundation for the financial
support through the Stipendium Hungaricum Scholarship
Programme.</p>
      <p>The research has been supported by the European
Union, co-financed by the European Social Fund
(EFOP3.6.2-16-2017-00013, Thematic Fundamental Research
Collaborations Grounding Innovation in Informatics and
Infocommunications).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Machiel</surname>
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Reinders</surname>
            , Marija Banovic, and
            <given-names>Luis</given-names>
          </string-name>
          <string-name>
            <surname>Guerrero</surname>
          </string-name>
          . Chapter 1
          <article-title>- introduction</article-title>
          . In Charis M. Galanakis, editor,
          <source>Innovations in Traditional Foods</source>
          , pages
          <fpage>1</fpage>
          -
          <lpage>26</lpage>
          . Woodhead Publishing,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>M.J.</given-names>
            <surname>Martelo-Vidal</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Vázquez</surname>
          </string-name>
          . 3
          <article-title>- advances in ultraviolet and visible light spectroscopy for food authenticity testing</article-title>
          . In Gerard Downey, editor,
          <source>Advances in Food Authenticity Testing, Woodhead Publishing Series in Food Science, Technology and Nutrition</source>
          , pages
          <fpage>35</fpage>
          -
          <lpage>70</lpage>
          . Woodhead Publishing,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Agrosynergie</surname>
            <given-names>EEIG</given-names>
          </string-name>
          .
          <article-title>Evaluation of the cap measures applied to the wine sector</article-title>
          .
          <source>Agricultural policy 10</source>
          .2762/79919, Directorate-General
          <source>for Agriculture and Rural Development (European Commission)</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <article-title>[4] Protocol for distinctness, uniformity and stability tests</article-title>
          . cpvo.europa.eu/sites/default/files/ documents/vitis_2.pdf,
          <year>2009</year>
          . Accessed:
          <fpage>2020</fpage>
          -06-10.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Chotirat</given-names>
            <surname>Ann</surname>
          </string-name>
          Ratanamahatana and
          <string-name>
            <given-names>Eamonn</given-names>
            <surname>Keogh</surname>
          </string-name>
          .
          <article-title>Everything you know about dynamic time warping is wrong</article-title>
          .
          <source>In Third Workshop on Mining Temporal and Sequential Data. Citeseer</source>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Paolo</given-names>
            <surname>Remagnino</surname>
          </string-name>
          , Simon Mayo, Paul Wilkin, James Cope, and
          <string-name>
            <given-names>Don</given-names>
            <surname>Kirkup</surname>
          </string-name>
          .
          <source>Computational Botany</source>
          .
          <volume>01</volume>
          <fpage>2017</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Attila</given-names>
            <surname>Stubendek</surname>
          </string-name>
          and
          <string-name>
            <given-names>Kristóf</given-names>
            <surname>Karacs</surname>
          </string-name>
          .
          <article-title>Shape recognition based on projected edges and global statistical features</article-title>
          . Mathematical Problems in Engineering,
          <year>2018</year>
          :
          <fpage>1</fpage>
          -
          <lpage>18</lpage>
          ,
          <year>04 2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Trishen</given-names>
            <surname>Munisami</surname>
          </string-name>
          , Mahess Ramsurn, Somveer Kishnah, and
          <string-name>
            <given-names>Sameerchand</given-names>
            <surname>Pudaruth</surname>
          </string-name>
          .
          <article-title>Plant leaf recognition using shape features and colour histogram with k-nearest neighbour classifiers</article-title>
          .
          <source>Procedia Computer Science</source>
          ,
          <volume>58</volume>
          :
          <fpage>740</fpage>
          -
          <lpage>747</lpage>
          ,
          <year>2015</year>
          . Second International Symposium on Computer Vision and the Internet (VisionNet'15).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Akshay</given-names>
            <surname>Patil</surname>
          </string-name>
          and
          <string-name>
            <given-names>Kanchan</given-names>
            <surname>Bhagat</surname>
          </string-name>
          .
          <article-title>Plants identification by leaf shape recognition: A review</article-title>
          .
          <source>International Journal of Engineering Trends and Technology</source>
          ,
          <volume>35</volume>
          :
          <fpage>359</fpage>
          -
          <lpage>361</lpage>
          ,
          <year>05 2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Ji-Xiang</surname>
            <given-names>Du</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xiao-Feng</surname>
            <given-names>Wang</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Guo-Jun Zhang</surname>
          </string-name>
          .
          <article-title>Leaf shape based plant species recognition</article-title>
          .
          <source>Appl. Math. Comput.</source>
          ,
          <volume>185</volume>
          (
          <issue>2</issue>
          ):
          <fpage>883</fpage>
          -
          <lpage>893</lpage>
          ,
          <year>February 2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Aimen</given-names>
            <surname>Aakif</surname>
          </string-name>
          and
          <string-name>
            <given-names>Muhammad</given-names>
            <surname>Khan</surname>
          </string-name>
          .
          <article-title>Automatic classification of plants based on their leaves</article-title>
          .
          <source>Biosystems Engineering</source>
          ,
          <volume>139</volume>
          :
          <fpage>66</fpage>
          -
          <lpage>75</lpage>
          ,
          <year>11 2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Maria-Paz</surname>
            <given-names>Diago</given-names>
          </string-name>
          , Christian Correa, Borja Millán, Pilar Barreiro, Constantino Valero, and
          <string-name>
            <given-names>Javier</given-names>
            <surname>Tardaguila</surname>
          </string-name>
          .
          <article-title>Grapevine yield and leaf area estimation using supervised classification methodology on rgb images taken under field conditions</article-title>
          .
          <source>Sensors</source>
          ,
          <volume>12</volume>
          (
          <issue>12</issue>
          ):
          <fpage>16988</fpage>
          -
          <lpage>17006</lpage>
          ,
          <year>Dec 2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Miaomiao</surname>
            <given-names>Ji</given-names>
          </string-name>
          , Lei Zhang, and
          <string-name>
            <given-names>Qiufeng</given-names>
            <surname>Wu</surname>
          </string-name>
          .
          <article-title>Automatic grape leaf diseases identification via unitedmodel based on multiple convolutional neural networks</article-title>
          .
          <source>Information Processing in Agriculture</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Yoon-Sik Tak</surname>
            and
            <given-names>Eenjun</given-names>
          </string-name>
          <string-name>
            <surname>Hwang</surname>
          </string-name>
          .
          <article-title>A leaf image retrieval scheme based on partial dynamic time warping and twolevel filtering</article-title>
          .
          <source>In 7th IEEE International Conference on Computer and Information Technology (CIT</source>
          <year>2007</year>
          ), pages
          <fpage>633</fpage>
          -
          <lpage>638</lpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>J.</given-names>
            <surname>Moreira</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Carvalho</surname>
          </string-name>
          , and
          <string-name>
            <given-names>T.</given-names>
            <surname>Horvath</surname>
          </string-name>
          . A General Introduction to Data Analytics. Wiley,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>James</surname>
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Cope</surname>
            and
            <given-names>Paolo</given-names>
          </string-name>
          <string-name>
            <surname>Remagnino</surname>
          </string-name>
          .
          <article-title>Classifying plant leaves from their margins using dynamic time warping</article-title>
          .
          <source>In Jacques Blanc-Talon</source>
          , Wilfried Philips, Dan Popescu, Paul Scheunders, and Pavel Zemcˇík, editors,
          <source>Advanced Concepts for Intelligent Vision Systems</source>
          , pages
          <fpage>258</fpage>
          -
          <lpage>267</lpage>
          , Berlin, Heidelberg,
          <year>2012</year>
          . Springer Berlin Heidelberg.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>Stan</given-names>
            <surname>Salvador</surname>
          </string-name>
          and
          <string-name>
            <given-names>Philip</given-names>
            <surname>Chan</surname>
          </string-name>
          .
          <article-title>Toward accurate dynamic time warping in linear time and space</article-title>
          .
          <source>Intell. Data Anal.</source>
          ,
          <volume>11</volume>
          (
          <issue>5</issue>
          ):
          <fpage>561</fpage>
          -
          <lpage>580</lpage>
          ,
          <year>October 2007</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>