<!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>Selection of features system and network parameters for hyperspectral images classification using convolutional neural networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Victor I. Kozik</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Evgeniy S. Nezhevenko</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute of Automation and Electrometry of SB RAS</institution>
          ,
          <addr-line>Novosibirsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>152</fpage>
      <lpage>160</lpage>
      <abstract>
        <p>A classification system for hyperspectral images using convolutional neural networks is described. A specific network was selected and analyzed. The network parameters, ensured the maximum classification accuracy: dimension of the input layer, number of the layers, size of the fragments into which the classified image is divided, number of learning epochs, are experimentally determined. High percentages of correct classification were obtained with a large-format hyperspectral image, and some of the classes into which the image is divided are very close to each other and, accordingly, are dificult to distinguish by hyperspectra.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Hyperspectral images</kwd>
        <kwd>convolutional neural networks</kwd>
        <kwd>deep learning</kwd>
        <kwd>principal components</kwd>
        <kwd>probability of correct classification</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Classification of the land areas is gaining in importance for a wide variety of applications, and
one of the most efective systems of classification features is hyperspectral data. It is known that
the greatest advances in the field of recognition in recent years have been obtained using deep
learning and convolutional neural networks. This report examines exactly this problem. The
most important question in this case — what features to use at the input of the neural network.
Earlier it was shown that a high probability of correct classification is possible only using
spatial-spectral features. The dimension of the input image of convolutional neural network is
limited; therefore, a shortened system of features — the principal components — is formed from
the spectral components. Spatial features are obtained by forming fragments from the resulting
system of spectral features, and the methods of this formation significantly afect the quality of
the classification. The analysis of these methods is the main subject of research in this report.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Description of the analyzed object</title>
      <p>
        The object that will be investigated in this report has appeared in many publications (Figure 1) [
        <xref ref-type="bibr" rid="ref1 ref2 ref3">1,
2, 3</xref>
        ]. The reason for this is its unique properties: it is a satellite image of a suficiently large size
(1408× 614 pixels), pixel size is 20 m, and each pixel is characterized by 220 spectral components
in the range of 0.4–2.5  m. A hyperspectral image of the site obtained within the framework of
the AVIRIS program (Airborne Visible Infrared Imaging Spectrometer) at the Indian Pice test
site (Indiana, USA) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Figure 2 shows in pseudo colors the markup of this GSI into classes.
There are 57 classes in total. However, the specificity of the spatial processing method we have
chosen is such that in some areas classicfiation cannot be formed due to the small size of these
areas.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Convolutional network used for classification</title>
      <p>
        Works in the direction of using neural networks for GSI classification have already been carried
out [
        <xref ref-type="bibr" rid="ref5 ref6 ref7">5, 6, 7</xref>
        ], in our report another object is processed and a diferent method of element
extraction is used. Currently, a huge number of networks have been published, designed to
classify a wide variety of objects.
      </p>
      <p>
        The use of networks pre-trained on millions of data is recommended. However, we have a
special case. Our training and recognizable images are small terrain fragments that cover the
marked (i.e. classified) areas of the GSI. Therefore, we will use a neural network that is not too
complex and without such layers as Max Pooling, Dropout, etc. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. This network is shown in
Figure 3. The network contains an input layer, convolutional layers, and a fully connected layer.
We will not describe the functioning of the network, this is submitted in detail in the literature.
Let’s define the parameters of the network, and the most important of them is the character of
the input signal. As such, a cube  ×  ×  is selected, where  ×  is the size of the fragment
cut out from the 1408× 614 image and shifted throughout this image, and  is the number of
spectral features characterizing each pixel. As mentioned in the description of the object, the
number of spectral components is 220, however, there are highly correlated components among
them. As it’s known from the theory of pattern recognition, using of correlated features reduces
the correctness of recognition, therefore, for efective recognition, as a rule, decorrelation of
features is carried out.
      </p>
      <p>
        The most efective way to do this is by converting the array of spectral features to the
principal components. The number of principal components will be determined by analyzing
the “rocky talus” — the graph of eigenvalues decreasing. It is presented in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. It can be seen
that already the 5th eigenvalue is 1/500 of the first value, this means that it accounts for 0.2% of
the variance of the spectral components, therefore, most of the experiments will be carried out
with the number of principal components equal to 5. Thus, based on the foregoing above, our
classification system is a 3D convolutional neural network, the dimension of the input layer
is 5, the dimension of the input signal is  ×  × 5, total number of layers is 13. Subsampling
is not used in our network, since the classified images are already relatively small size. The
dimension of the output layer is equal to the number of classes.
      </p>
      <p>The most important role is played the MxN parameter, the dimension of the fragment cut out
from the input layer. Too small size of the fragment will not allow revealing its spatial features.
A large size of fragments reduces their number in the class, since the areas belonging to the
classes have an arbitrary shape, as a rule, curvilinear, and the fragments are rectangular, so that
too few (and sometimes no one) fragments fall on some classes. Thus, it is necessary to find a
compromise between the size of fragments and their number in an area belonging to one class,
and this is the main theme of this report.</p>
      <p>Let us explain how the training sample is formed in our case. Its elements are fragments of
the GSI, divided into marked areas. Each area contains its own number of elements, depending
on the size of the section and its configuration. When forming a sample, all GSI is covered with
square fragments of a given size, and if all the pixels of a fragment belong to the same class,
this fragment is considered as an element of the corresponding class.</p>
    </sec>
    <sec id="sec-4">
      <title>4. GSI classification experiments</title>
      <p>The sequence of classification stages.</p>
      <p>1. The principal components of the GSI are calculated.
2. Directories of classes from 1 to 57 are formed.
3. From the file containing the GSI separation into classes (Figure 2), using a sliding window
of size  ×  and shift_M, shift_N, fragments are selected, all elements of which belong
to the same class. Classes, the number of fragments of which exceeds the specified
threshold, participate in training.
4. Network parameters are adjusted: number of layers, kernels size, number of feature maps,
number of classes.
5. Parameters of the training procedure are adjusted: numbers of classes, number of training
epochs, objects of each class are divided into training and validation samples (as a rule, in
a ratio of 7 : 3).
6. Training procedure is started.</p>
      <p>Trained network is visualized in Figure 4.</p>
      <p>The number of weights adjusted as a result of training is 158184. There are 3 convolution
layers in the network, 3 layers of normalization (batchnorn layers), which speed up the learning
procedure; three activation layers (ReLu layers), which perform nonlinear transformation, and
softmax and classoutput layers, provided the recognition procedure. Using the input layer
(imageinput), training and recognizable images are introduced.</p>
      <p>Let’s consider the results of experiments. Note, that the only criterion of the classification
efectiveness is the classification accuracy, which is defined as the ratio of correctly objects
classified number to the total number of objects (this term — accuracy — is used along with
the term “probability of correct classification”). Let us note the feature of our method of a
training sample forming, training and classification. With diferent sizes of fragments into
which sections of classes are divided, and limiting the number of elements in a class, the number
of classes will be diferent, which will not allow determining the actual dependence of the
classification accuracy on the size of fragments, since two factors afect here: the size of the
fragment and the number of classes. Therefore, we calculated the number of classes (18) for
the maximum fragment size of 16x16 and then trained the network for all fragments with this
number of classes. The dependence of the classification accuracy on the fragments size with
number of classes 18 is shown in Figure 5.</p>
      <p>It can be seen from this graph that the optimal fragment size is near 14× 14.</p>
      <p>A very important factor afecting the classification accuracy is the dimension of the input
layer, which is equal to the number of principal components used at the input. This dependence
is presented in Table 1.</p>
      <p>It can be seen that, starting with 5 principal components, the classification accuracy increases
insignificantly.</p>
      <p>A very important parameter of the network is the number of learning epochs. Dependence
of classification accuracy on this parameter for a fragment 14 × 14 and the number of principal
components — 5 is shown in Figure 6.</p>
      <p>The classification accuracy monotonically increases with the number of epochs, taking a
sharp jump from 20 to 30 epochs, although this function depends on the size of the fragments.</p>
      <p>For the fragment 14× 14, it is already at 30 epochs actually comes out in saturation, and for a
5x5 size the classification accuracy continues to grow even at 50 epochs, as can be seen from
Figure 7.</p>
      <p>
        The classification accuracy also depends on the number of layers. In the previous work [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ],
only convolutional layers, input and output, were considered. Since here the entire network
is shown, let’s consider the dependence on the total number of layers. This dependence for a
14× 14 fragment is shown in Figure 8. As follows from the graph, the optimal number of layers
is 13.
      </p>
      <p>So, we have chosen the following network parameters: fragment size — 14× 14, number
of principal components — 5, number of network layers 13, number of learning epochs 50.
Classification results with the number of classes 33, (as seen in the learning function shown in
Figure 9) — 99.72%, which, in our opinion, is a very good result.</p>
      <p>The resulting table with the number of elements in each class and the probability of class
recognition is shown in Table 2.</p>
      <p>It can be suggested, that high values of classification accuracy are obtained due to overfitting
of the neural network. This is an undesirable phenomenon that occurs under solving learning
problems by precedents, when the probability of the trained algorithm average error on the test
sample is significantly higher than the error on the training sample. From Figure 9 (bottom part),
characterizes the behavior of the error in the learning process, follows that the error on the
test sample is very insignificantly (by a part of a percent) higher than the error on the training
sample, which means that there is no overfitting in this case. Table 2 shows the classification
results, indicating the probabilities for each class.</p>
      <p>
        From the class names it is clear that we did not integrate closely related classes into one (for
example, crops of corn, crops of soybeans), as it was done in other publications [
        <xref ref-type="bibr" rid="ref10 ref9">9, 10</xref>
        ]. It is
clear that it is much easier to distinguish corn crops from buildings than to distinguish between
diferent planting options for the corn or soybeans for diferent types of plowing. Note that
with fragments of 14× 14, almost indistinguishable objects — crops of corn, soybeans — are
classified with a very high (often 100%) probability.
      </p>
      <p>
        It should be said that the results obtained in this work significantly exceed the results of [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ],
with one caveat: the latter does not contain the problem of covering an area belonging to a class
by rectangular windows; therefore the regions with a complex configuration can be classified
there.
      </p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>Thus, in this report we have analyzed the influence of the neural networks parameters on
the accuracy of hyperspectral images classification. The network parameters and methods
of forming a training sample are selected, which provide a very high classification accuracy
(integral accuracy is 99.72%), and such a high accuracy is ensured on close classes (11 types of
corn plowing, 14 types of soybean plowing). Analyzing such high classification accuracy, the
following should be said. This is largely due to the way as the training and validation samples
are formed, characterized by their very close mixing. At the same time, it is obvious that this
method shows a certain limit of classification accuracy, from which it’s possible to deviate,
for example, by increasing the fragments coverage step or forming the training and validation
samples spatially separated.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Kozik</surname>
            <given-names>V.I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nezhevenko</surname>
            <given-names>E.S.</given-names>
          </string-name>
          <article-title>Classification of hyperspectral images using convolutional neural networks</article-title>
          // Avtometriya.
          <year>2021</year>
          . No. 1. P.
          <volume>13</volume>
          -
          <fpage>21</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Borzov</surname>
            <given-names>S.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Potaturkin</surname>
            <given-names>O.I.</given-names>
          </string-name>
          <article-title>Spectral-spatial methods of classification of hyperspectral images</article-title>
          , a review // Avtometriya.
          <year>2018</year>
          . Vol.
          <volume>54</volume>
          . No. 6. P.
          <volume>64</volume>
          -
          <fpage>86</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Nezhevenko</surname>
            <given-names>E.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Feoktistov</surname>
            <given-names>A.S.</given-names>
          </string-name>
          <article-title>Investigation of the eficiency of neural network classification of hyperspectral images using the Hilbert - Huang transform // Collection of Articles Based on the Materials of the International Scientific Congress “Interexpo Geo-Siberia”</article-title>
          .
          <source>Novosibirsk, April 18-22</source>
          ,
          <year>2016</year>
          . Vol.
          <volume>1</volume>
          . P.
          <volume>60</volume>
          -
          <fpage>64</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Nezhevenko</surname>
            <given-names>E.S,</given-names>
          </string-name>
          <string-name>
            <surname>Feoktistov</surname>
            <given-names>A.S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dashevsky</surname>
            <given-names>O.</given-names>
          </string-name>
          <string-name>
            <surname>Yu</surname>
          </string-name>
          .
          <article-title>Neural network classification of hyperspectral images based on the Hilbert -</article-title>
          Huang transform // Avtometriya.
          <year>2017</year>
          . Vol.
          <volume>53</volume>
          . No. 2. P.
          <volume>79</volume>
          -
          <fpage>85</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Baumgardner</surname>
            <given-names>M. F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Biehl</surname>
            <given-names>L. L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Landgrebe</surname>
            <given-names>D. A.</given-names>
          </string-name>
          220
          <string-name>
            <surname>Band AVIRIS</surname>
          </string-name>
          <article-title>Hyperspectral Image Data Set: June 12, 1992 Indian Pine Test Site 3</article-title>
          . Purdue University Research Repository.
          <year>2015</year>
          . doi:
          <volume>10</volume>
          .4231/R7RX991C.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Audebert</surname>
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Saux</surname>
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lefèvre</surname>
            <given-names>S.</given-names>
          </string-name>
          <article-title>Deep learning for classification of hyperspectral data: A comparative review // Geoscience and Remote Sensing Magazine</article-title>
          . IEEE,
          <year>2019</year>
          . Vol.
          <volume>7</volume>
          . No. 2. P.
          <volume>159</volume>
          -
          <fpage>173</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Li</surname>
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shen</surname>
            <given-names>Q</given-names>
          </string-name>
          .
          <article-title>Spectral-spatial classification of hyperspectral imagery with 3D convolutional neural network // Remote Sensing</article-title>
          .
          <year>2017</year>
          . Vol.
          <volume>9</volume>
          . No. 67. P. 1-
          <fpage>21</fpage>
          , DOI:10.3390/rs9010067.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Krizhevsky</surname>
            <given-names>A</given-names>
          </string-name>
          .
          <article-title>Learning multiple layers of features from tiny images</article-title>
          .
          <source>Master's Thesis</source>
          , Department of Computer Science, University of Toronto,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Borzov</surname>
            <given-names>S.M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Potaturkin</surname>
            <given-names>O.</given-names>
          </string-name>
          <article-title>I Research of the eficiency of spectral-spatial classification of hyperspectral observation data</article-title>
          // Avtometriya.
          <year>2017</year>
          . Vol.
          <volume>53</volume>
          . No. 1. P.
          <volume>32</volume>
          -
          <fpage>42</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Borzov</surname>
            <given-names>S.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Potaturkin</surname>
            <given-names>O.I.</given-names>
          </string-name>
          <article-title>Classification of hyperspectral images with diferent methods of forming training samples</article-title>
          // Avtometriya.
          <year>2018</year>
          . Vol.
          <volume>54</volume>
          . No. 1. P.
          <volume>89</volume>
          -
          <fpage>97</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Nezhevenko</surname>
            <given-names>E.S.</given-names>
          </string-name>
          <article-title>Neural network classification of dificult to distinguish types of vegetation byhyperspectral features</article-title>
          // Avtometriya.
          <year>2019</year>
          . No. 3. P.
          <volume>62</volume>
          -
          <fpage>70</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>