<!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>Neural network texture segmentation of satellite images of woodlands using the U-net model</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Anna E. Alyokhina</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dmitry S. Rusin</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Egor V. Dmitriev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anastasia N. Safonova</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Marchuk Institute of Numerical Mathematics of the Russian Academy of Sciences</institution>
          ,
          <addr-line>Moscow</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Siberian Federal University</institution>
          ,
          <addr-line>Krasnoyarsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>15</fpage>
      <lpage>22</lpage>
      <abstract>
        <p>With the advent of space equipment that allows obtaining panchromatic images of ultra-high spatial resolution (&lt; 1 m) there was a tendency to develop methods of thematic processing of aerospace images in the direction of joint use of textural and spectral features of the objects under study. In this paper, we consider the problem of classification of forest canopy structures based on textural analysis of multispectral and panchromatic images of Worldview-2. Traditionally, a statistical approach is used to solve this problem, based on the construction of distributions of the common occurrence of gray gradations and the calculation of statistical moments that have significant regression relationships with the structural parameters of stands. An alternative approach to solving the problem of extracting texture features is based on frequency analysis of images. To date, one of the most promising methods of this kind is based on wavelet scattering. In comparison with the traditionally applied approaches based on the Fourier transform, in addition to the characteristic signal frequencies, the wavelet analysis allows us to identify characteristic spatial scales, which is fundamentally important for the textural analysis of spatially inhomogeneous images. This paper uses a more general approach to solving the problem of texture segmentation using the convolutional neural network U-net. This architecture is a sequence of convolution-pooling layers. At the first stage, the sampling of the original image is lowered and the content is captured. At the second stage, the exact localization of the recognized classes is carried out, while the discretization is increased to the original one. The RMSProp optimizer was used to train the network. At the preprocessing stage, the contrast of fragments is increased using the global contrast normalization algorithm. Numerical experiments using expert information have shown that the proposed method allows segmenting the structural classes of the forest canopy with high accuracy.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Neural network</kwd>
        <kwd>segmentation</kwd>
        <kwd>satellite images</kwd>
        <kwd>U-net</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Monitoring of forest areas, namely textural segmentation and forest mapping is an urgent
task. One of the promising ways of global tracking of areas is the use of remote sensing data
of the Earth (remote sensing). Due to the growth and diversity of information, there is a
need to develop and modernize new methods of its processing. So, in recent years, due to the
development of production capacities, one of the fastest growing areas is artificial intelligence.
Thus, the idea of this experiment is to use remote sensing data and neural network methods
to solve the problem of texture segmentation. In particular, there are works in the literature
that are close to our experiment. In [1], the authors performed texture segmentation using the
AGMSSeg-Net neural network, interactively selected by the user. Models based on convolutional
neural networks, such as the second [2] and third versions of Deeplab [3], were also successfully
used to create color labels on maps that allow solving the problem of textural segmentation of
forest zones.</p>
      <p>After the analysis of related works, we decided to use the Unet model to perform the task of
textural segmentation of woodlands using Worldview-2 panchromatic images.</p>
      <p>The main contribution to the work is as follows:
1. Preliminary image processing was performed using the global contrast normalization
method.
2. The U-net model was trained on the original and pre-processed images.
3. Texture segmentation was performed by the final version of the trained model with the
best result of metrics.</p>
      <p>4. The errors were compared by the cross-validation method.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Materials and methods</title>
      <sec id="sec-2-1">
        <title>2.1. The research area</title>
        <p>The research area is located on the territory of the Moscow region, Bronnitsky forestry in the
immediate vicinity of the territory of geographical landings of the forester P.I. Dementieva.
The stands of the Bronnitsky forestry have an age of 40 years or more and, according to the
variety of species, they cover all the main forest-forming breeds of Russia. The selected site
contains natural and forest-cultural plantings with diferent species composition and visible
textural diferences of the forest canopy. The plot contains part of the territory of permanent
larch forest-seed plantations, which have a pronounced regular structure. The plot also contains
natural birch and pine (with an admixture of spruce) stands of various completeness.</p>
        <p>Multispectral and panchromatic images of WorldView-2 with a spatial resolution of 1.85
and 0.46 m, respectively, were used as satellite information. The photo was taken on June 28,
2011, before the construction of the Novoryazansky Highway and the Central Ring Road began.
For texture processing, a panchromatic image was used, which, after correction, has a spatial
resolution of 0.5 m (Fig. 1).</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Pre-processing of images</title>
        <p>This subsection presents an algorithm for preprocessing a satellite image, which consists of:
1. Converting fragments from the format .tif to .png format for further work with the neural
network. In this study, fragments of images with a size of 27 × 27 pixels were prepared
for training.
2. Increasing the contrast of fragments using the global contrast normalization algorithm [4]:
′,, =</p>
        <p>{︃ √︂
max ,
 +
,, − 
1   3</p>
        <p>∑︀ ∑︀ ∑︀ (,, − )2
3 =1 =1 =1
}︃ ,</p>
        <p>
          (
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
where ,, is the tensor of the original image, ′,, is the tensor of the normalized
1   3
image,  = ∑︀ ∑︀ ∑︀ ,, is the average pixel value of the original image,  and
3 =1 =1 =1
 are some constants, in our solution  = 10,  = 0.000000001, respectively.
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. The U-net model</title>
        <p>In this work, the Xception model [5] was used, due to the fact that with the help of this
convolutional network architecture, it is possible to obtain a better result compared to Inception
V3 [6], as presented in [7]. The Xception architecture represents a fully connected convolutional
network that is able to work with a small number of training examples for segmentation tasks.
The generalized U-net architecture [8] is shown in Figure 3.</p>
      </sec>
      <sec id="sec-2-4">
        <title>2.4. Metrics</title>
        <p>To calculate the efectiveness of the trained model, we used the mAP and IoU metrics [ 9]. IoU is
just a score indicator. Any algorithm that provides predicted bounding rectangles as output can
be evaluated using IoU.</p>
        <p>
          1. Reliably marked areas manually by an expert.
2. Certain results of the trained network (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ):
 =
        </p>
        <p>⋓
where   is the label of ground truth, and  ⋓ are the labels of
prediction and truth.</p>
        <p>
          Additionally,  1 −  (
          <xref ref-type="bibr" rid="ref3">3</xref>
          ) and  (
          <xref ref-type="bibr" rid="ref4">4</xref>
          ) are calculated to evaluate the performance of
the model. The  1 −  is calculated based on Accuracy (Precision) (
          <xref ref-type="bibr" rid="ref5">5</xref>
          ) and memorization
(Recall) (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ). mAP is the average value for all classes or finding the area under the Precision-Recall
curve above [10] mAP is calculated in the range from 0 to 1 using the following formula (
          <xref ref-type="bibr" rid="ref4">4</xref>
          ):
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
(
          <xref ref-type="bibr" rid="ref3">3</xref>
          )
(
          <xref ref-type="bibr" rid="ref4">4</xref>
          )
(
          <xref ref-type="bibr" rid="ref7">7</xref>
          )
 1 −  =
2 *   * 
  +
        </p>
        <p>,

 = ∑︁  =
=1
1</p>
        <p>
          ∑︁  (),
 
  =   , (
          <xref ref-type="bibr" rid="ref5">5</xref>
          )
        </p>
        <p>
          +  
 =   (
          <xref ref-type="bibr" rid="ref6">6</xref>
          )
        </p>
        <p>+  
where   is a true positive result,   is a false positive result, and   is a false negative
result.</p>
        <p>
          The sparse categorical cross entropy () (
          <xref ref-type="bibr" rid="ref7">7</xref>
          ) was used to calculate the model loss
parameter
 = −
        </p>
        <p>∑︁ ( * log( ()))
=1
or is the normalized exponent.</p>
        <p>where  () = 
∑︀ 
=1</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Results</title>
      <p>The RMSprop optimizer was used to train the network. The number of epochs was 250. The
time spent for one epoch is about 5–6 minutes. The training was carried out on the Google
Colab platform [11]. The learning process is shown in Figure 4. The quality of using normalized
images was compared.</p>
      <p>As you can see, increasing the contrast slightly improves the quality of the model, a more
detailed comparison of the results is presented below.</p>
      <p>At the exit from the network, a mask is formed that corresponds to a certain forest structure.
An example of the final processing of a test image is shown in Figure 5.</p>
      <p>The main metrics of this work are presented in Table 1.  and  −  take an average
value for small images of the test area.</p>
      <p>a b c
Figure 4: The value of the error function (a) and accuracy value (b and c) at each epoch for the test and
training processed data.</p>
      <p>After training, the model was tested on test images. The results of the predicted masks were
compared with the test masks using several quality metrics. The results are presented in Table 1.</p>
      <p>Cross-validation was also carried out for evaluation on independent data. The parameter 
was equal to 5. The results of the sliding control are presented in Table 2.</p>
      <p>As can be seen from Figure 4, c, we have a predominance of the third class, and also sometimes
the model considered the 3rd class as the 1st class, perhaps due to the close intersection of these
classes, this error occurred, you can also see the erroneous definition of the ForestMixedNormal
class as the LarchRegularNormal class. This was due to the similar data structure of the classes.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>Based on the results, we can conclude that the U-net model copes with the processing of satellite
images of forest areas for segmentation tasks. The main structure of each type of forest is clearly
highlighted in the image for a better result, a larger set of image data is still needed, on which
several classes will intersect.</p>
      <p>In the future, it is planned to process high-resolution images (36 pixels) this will allow using
several classes on one image, and it is also planned to use classical architectures of convolutional
models of neural networks with a change in architecture to increase eficiency and compare
with the U-net model in new areas.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>The research was carried out with the financial support of the RFBR (projects No. 19-01-00215
and No. 20-07-00370).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Li</surname>
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hu</surname>
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jiang</surname>
            <given-names>H.</given-names>
          </string-name>
          , Shu
          <string-name>
            <surname>Z.</surname>
          </string-name>
          , Mi Z.
          <article-title>Attention-guided multi-scale segmentation neural network for interactive extraction of region objects from high-resolution satellite imagery</article-title>
          // Remote Sensing.
          <year>2020</year>
          . Vol.
          <volume>12</volume>
          . P. 789. DOI:
          <volume>10</volume>
          .3390/rs12050789.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Bengana</surname>
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Heikkilä</surname>
            <given-names>J</given-names>
          </string-name>
          .
          <article-title>Improving land cover segmentation across satellites using domain adaptation // Remote Sensing</article-title>
          .
          <year>2020</year>
          . DOI:
          <year>1912</year>
          .05000.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Barmpoutis</surname>
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stathaki</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dimitropoulos</surname>
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nikos</surname>
            <given-names>G</given-names>
          </string-name>
          .
          <article-title>Early fire detection based on aerial 360-degree sensors, deep convolution neural networks and exploitation of fire dynamic textures</article-title>
          // Remote Sensing.
          <year>2020</year>
          . Vol.
          <volume>12</volume>
          . P. 3177. DOI:
          <volume>10</volume>
          .3390/rs12193177.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Bengio</surname>
            <given-names>Y.</given-names>
          </string-name>
          <article-title>Deep learning</article-title>
          .
          <year>2016</year>
          . URL: https://www.deeplearningbook.org.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>François</surname>
            <given-names>C.</given-names>
          </string-name>
          <article-title>Xception: Deep learning with depthwise separable convolutions // arXiv preprint</article-title>
          .
          <year>2017</year>
          . arXiv:
          <volume>1610</volume>
          .02357v3 [cs.CV].
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Szegedy</surname>
            <given-names>C.</given-names>
          </string-name>
          et al.
          <article-title>Rethinking the inception architecture for computer vision</article-title>
          // arXiv preprint.
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Canziani</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paszke</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Culurciello</surname>
            <given-names>E.</given-names>
          </string-name>
          <article-title>An analysis of deep neural network models for practical applications</article-title>
          . URL: https://arxiv.org/abs/1605.07678.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Hui</surname>
            <given-names>J.</given-names>
          </string-name>
          <article-title>mAP (mean Average Precision) for object detection</article-title>
          .
          <year>2018</year>
          . URL: https://jonathan-hui.
          <article-title>medium.com/map-mean-average-precision-for-object-detection-45c121a31173.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Scikit-learn.</surname>
          </string-name>
          Precision-Recall. URL: https://scikit-learn.org/stable/auto_examples/model_ selection/plot_precision_recall.html.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Canziani</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paszke</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Culurciello</surname>
            <given-names>E.</given-names>
          </string-name>
          <article-title>An analysis of deep neural network models for practical applications</article-title>
          . URL: https://arxiv.org/abs/1605.07678.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Hinton</surname>
            <given-names>G.</given-names>
          </string-name>
          <article-title>Neural networks for machine learning</article-title>
          .
          <source>Online course</source>
          . URL: https://www. coursera.org/leture/neural
          <article-title>-networks-deep-learning/geofrey-hinton-interview-dcm5r.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Colab</surname>
            <given-names>G.</given-names>
          </string-name>
          <article-title>Research notebooks</article-title>
          . URL: https://colab.research.google.com.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>