<!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>Building extraction from satellite imagery using a digital surface model</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>A V Dunaeva</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>F A Kornilov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>N.N. Krasovskii Institute of Mathematics and Mechanics of the Ural Branch of the Russian Academy of Sciences</institution>
          ,
          <addr-line>S. Kovalevskaya Street 16, Yekaterinburg, Russia, 620990</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Ural Federal University named after the first President of Russia B.N. Yeltsin</institution>
          ,
          <addr-line>Mira Street 19, Yekaterinburg, Russia, 620002</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <fpage>372</fpage>
      <lpage>378</lpage>
      <abstract>
        <p>In this paper, two approaches to building extraction from satellite imagery and height data obtained from stereo images or LIDAR are compared. The first approach consists of detecting high-rise objects in a digital surface model and then improving recognition accuracy using segmentation of spectral information. The second approach uses the U-Net convolutional neural network, which showed the best results for the extraction of objects from aerospace images on a number of large datasets. Extensive experiments were carried out to evaluate the dependence of the quality of U-Net-based building extraction on the different data types (including high-resolution satellite images and digital surface model data). Building extraction quality of the trained network was also evaluated on satellite images with different spatial resolutions.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>At the present time, monitoring the state of the Earth's surface based on aerospace images plays an
important role in many fields such as agriculture, construction, emergency analysis and others. This
approach has a number of undeniable advantages: timeliness, large coverage of areas and a relatively
low cost. At the same time, many tasks are handled manually by an operator, which makes it important
to develop tools for automatically retrieving required information from satellite images.</p>
      <p>The extraction and classification of terrain objects are the most important tasks in processing
satellite imagery. The solutions of such problems find their application in cartography (update of
topographic maps), the detection of changes in the composition of the terrain objects (i.e. analysis of
urban development and illegal deforestation), navigation of aircrafts and others. However, the methods
existing at the moment extract and classify objects of a terrain from space images with insufficient
accuracy. First of all, this is due to the complexity and variability of the scenes under consideration,
which contain a huge number of objects of different nature significantly influenced by shooting
conditions. All this contributes to the importance of research aimed at overcoming these difficulties
and developing software systems for processing remote sensing data.</p>
      <p>
        In this paper, in order to improve the quality of the building extraction, a digital surface model
(DSM) containing heights of a terrain and objects on it was applied. Height information for the DSM
can be obtained by shooting a terrain from two different angles. Two such images form a stereo pair,
which is passed to the input of a stereo matching algorithm, for calculating a matrix of pixel shifts (a
disparity map) belonging to the same objects between two images. After that, the digital surface
model of the terrain is constructed by calculating the heights of the terrain and objects on the basis of
the disparity map and the parameters of shooting. In this paper, we used a digital surface model
obtained as a result of the operation of the stereo matching algorithm proposed in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Since the main
interest was the urban development, panchromatic images with a resolution of 0.5 m were used for
stereo matching, and the resolution of the final model was 1 m per pixel. Among the works devoted to
the generation of DSMs, it is also worth mentioning work [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] which describes a fast algorithm for
GPUs.
      </p>
      <p>
        The paper is organized as follows. The second section describes an approach to building extraction,
based on the detection of high-rise objects of a terrain from a DSM and the refinement of their
boundaries on the basis of segmentation of spectral information. The third section is devoted to the
U-Net [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] convolutional neural network and details of its training. The fourth section presents the
results of the comparison of considered approaches using real data.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Image segmentation and detection of high-rise objects</title>
      <p>As a starting point for building extraction, we consider a segmentation algorithm, which uses heights
of objects in addition to the spectral information to provide a better segmentation of satellite images.</p>
      <sec id="sec-2-1">
        <title>2.1. Satellite image segmentation</title>
        <p>
          Segmentation is used to pre-process images in many computer vision tasks, since it allows analyzing
homogeneous (by certain criteria) regions instead of separate pixels of an image. The characteristics
used to split an image can be very different: the color, the texture, etc. To date, a large number of
segmentation algorithms have been developed. In [
          <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
          ], a description and comparison of some of
them is given to address the problem of building extraction. The considered algorithms demonstrate
high quality segmentation, but do not use height information that can permit a better detection of
object boundaries in satellite images.
        </p>
        <p>
          To test the influence of height information on the result of satellite image segmentation, an
algorithm based on the idea of grouping pixels in regions on the basis of the similarity of their
brightnesses and heights was presented in [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. The algorithm receives a four-channel image and a
digital surface model. The following sequence of steps is performed.
        </p>
        <p>1. Median filtering of the image.</p>
        <p>2. Preliminary selection of a region. For each pixel in the image we form a region by recursive
search for neighboring pixels of similar height and color. After that, we calculate mode values of the
height and each of the four image channels in the obtained region and find in it a pixel having a height
exactly equal to the calculated mode of height and the closest brightness to the modes of each channel.</p>
        <p>3. Selection of the region. Next, from the found pixel, we form a new region by repeating recursive
search, and fill the new region with the color of the computed mode values.</p>
        <p>4. Repeat steps 2-3. Due to the noisiness of the input data, the regions obtained in the previous
steps will have a small area. The repetition of the segmentation procedure will allow merging the
regions into larger ones.</p>
        <p>5. Small region removal. As a result of the brightness or height discontinuity, regions with a
negligible area can remain. Such regions are combined with neighboring ones in such a way that the
region to which the pixels are added has a larger area, and its height and brightness are as close to the
added pixels as possible. This procedure is performed for regions in order of increasing area.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Building extraction from a DSM</title>
        <p>After segmenting the satellite image (using the algorithm mentioned above or another one), it is
required to determine whether the obtained segments belong to buildings.</p>
        <p>To do this, it is necessary to find objects in the DSM that rise above the terrain. Such objects
include buildings and forest tracts. For this purpose, the following algorithm is proposed.</p>
        <p>1. Search for height differences. For each pixel p in the DSM with the height value h, we consider
its one-dimensional neighborhoods  →( ) and   ↓ ( ) of the radius  in horizontal and vertical
directions. For the pixels   ∈   ( ), we calculate ∆ℎ = ℎ − ℎ +1,  ∈ [− ,  − 1], where the index
0 corresponds to the pixel  , which is the center of the neighborhood. And if ∆ℎ0 = max ∆ℎ or
Image Processing and Earth Remote Sensing</p>
        <p>∆ℎ0 = min ∆ℎ , and |∆ℎ0| ≥  , then the pixel  is marked as having a significant height difference.
The threshold  specifies the minimum height of buildings to be detected. We do not consider the
pixels at which the minimum and maximum are simultaneously reached, since they are the errors in
the DSM.</p>
        <p>2. Obtaining high regions. From the pixels that have a significant height difference, we construct
line segments, which will form the target regions. For the construction of these line segments, we
search horizontally and vertically in forward and backward directions in the DSM for pixels with a
height difference upward. Then we begin to draw a line segment from each selected pixel that goes:
 to the pixel with the height difference upward, the value of which is added to the value of the
difference at the starting pixel. Then the construction of the line segment continues;
 to the pixel at which the height value is less or close to the height value at the beginning of the
line segment;
 until the line segment reaches the fixed length.</p>
        <p>Performing this procedure in the forward and backward directions (from left to right and vice versa,
from top to bottom and vice versa) allows us to find even those regions of buildings in which one of
the sides can be blurred due to the influence of noise.</p>
        <p>Next, the pixels of the segments selected only horizontally or vertically are discarded. The
remaining pixels of the segments form regions. We select only those of them that contain at least one
pixel with a significant height difference. This operation allows rejecting the false intersections of the
vertical and horizontal segments.</p>
        <p>3. Refinement of the form of the found regions. We consider simply connected regions in the DSM,
all pixels of which have the same height. If more than half of the pixels of the region were marked as
high in the previous step, the remaining pixels of the region are also marked as high. Thus, the
boundaries of the detected regions are smoothed and false alarms associated with slopes of hills and
other sharp differences of the terrain height are rejected. The regions with small area are removed from
consideration.</p>
        <p>
          4. Extraction of buildings among the found high regions. Not only buildings and structures, but
also high vegetation (trees) is related to the detected high-rise objects. The normalized difference
vegetation index (NDVI) [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], which is calculated from the red and infrared channels of a satellite
image, effectively distinguishes vegetation from other objects. However, in addition to vegetation, this
index also extracts buildings, which will lead to skipping objects when the building extraction
algorithm is running. To solve this problem, it is necessary to perform additional color filtering of the
vegetation extracted using the NDVI.
        </p>
        <p>The segmentation procedure splits a satellite image into homogeneous regions; however, buildings
can be covered by several regions. The detection of high objects in the DSM allows us to extract an
object entirely, but with low accuracy of boundary localization. We suggested the combination of the
outputs of high region extraction and segmentation algorithms as follows: if more than 75% of the
pixels of the segmented region are marked as high, then the whole region is considered high (the
threshold was chosen empirically). This enables to increase the accuracy of object localization and
reduce the number of false alarms (for regions of trees closely adjacent to buildings). The result of the
proposed approach is shown in figure 1 and in table 1.</p>
        <sec id="sec-2-2-1">
          <title>3. Building extraction using convolutional neural networks</title>
          <p>
            The use of convolutional neural networks made it possible to significantly improve the performance of
computer vision algorithms in solving a variety of tasks, including the task of extracting and
classifying objects in satellite images. Due to the increasing interest of various organizations in this
task, at least four global online competitions [
            <xref ref-type="bibr" rid="ref7 ref8 ref9">7-9</xref>
            ] on the extraction and classification of objects in
aerospace images were conducted in the last two years. Among the variety of solutions, the best
performance for building extraction in [
            <xref ref-type="bibr" rid="ref7 ref8">7,8</xref>
            ] was shown by convolutional neural networks –
modifications of the U-Net architecture [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ]. It is worth noting that a better accuracy of object
extraction is achieved by training a separate model of U-Net for each class of objects. In this work, we
used the implementation of U-Net described in [
            <xref ref-type="bibr" rid="ref10">10</xref>
            ].
          </p>
          <p>
            U-Net has a deep convolutional encoder-decoder architecture. At the input, the network receives a
tensor containing satellite image channels and channels with additional data about the scene. At the
output, U-Net returns a single-channel mask coinciding with the size of the original image and
containing the found buildings. The network is trained on batches consisting of fragments with the
size of 112 ×112 pixels randomly taken from the image, to which reflection over the x or y axes is
randomly applied. Its training was performed on a four-channel satellite image of an urban settlement
with the size of about 5 × 5 km and 1-m resolution that contains more than 3,000 objects such as
multi-storey buildings, garages, hangars and cottages. In addition, we used a digital surface model
obtained from the stereo matching algorithm proposed in [
            <xref ref-type="bibr" rid="ref1">1</xref>
            ]. The examples of the input data are
presented in figure 1. To assess the influence degree of the data composition on the recognition
quality, four U-Net models were trained on the following data sets:
 image, NDVI, DSM;
 image, DSM;
 image, NDVI;
 image.
          </p>
          <p>The results of the U-Net network trained on different data sets are shown in figure 1 and in table 1.
Building extraction quality of the trained network was also evaluated using satellite images with
different spatial resolutions. The results of building extraction from the images with the resolution of
2 m and 3 m per pixel can be observed in the figure 2 and table 2.</p>
          <p>a)
b)
c)
d)
e) f) g) h)
Figure 1. (a) Orthorectified four-channel satellite image (near-infrared, red, green channels) with the 1-m
resolution, (b) digital surface model obtained from a stereo pair using a stereo matching algorithm, (c) the
hand-drawn ground-truth building regions, (d) detection of buildings in the DSM and refinement of their
boundaries using segmentation of spectral information. Building extraction by the U-Net network trained
on: (e) image, DSM and NDVI, (f) image, DSM, (g) image and NDVI, (h) only on image. The extracted
buildings and the ground-truth building boundaries are displayed in black and red respectively.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>4. A comparison of considered approaches</title>
      <p>The quality of the considered algorithms was evaluated using a fragment of a four-channel satellite
image with the size of 900 × 500 pixels and 1-m resolution. The regions marked as buildings by the
algorithms were compared with the hand-drawn ground-truth building regions according to the
following criteria:
1. Intersection over Union (also known as the Jaccard Index), which is sensitive to the accuracy of
localization of the detected objects:
 = |  ∩ |,</p>
      <p>|  ∪ |
where   ‒ the regions of the extracted buildings, and  ‒ the ground-truth building regions. Its
value changes from 0 to 1, where 1 means full overlap of the found regions with the ground-truth
ones.
2. The rate and amount of true positives, and false alarms in the output of the algorithms.
The results of the comparison can be observed in table 1 and in figure 1.</p>
      <p>Of the two approaches to building extraction, the best performance was demonstrated by the U-Net
network. Its advantage, as compared with the algorithm that extracts buildings only by using a DSM,
is the ability to detect cottages and other low-rise buildings that are not visible in the DSM and these,
at least, are one third of the objects in the initial 5 × 5 km image. Also, U-Net performs more accurate
detection of the building boundaries.</p>
      <p>According to table 1 and figure 1, U-Net shows the good result even without using additional
information about the scene. However, the network was trained with height information better detect
building boundaries, as was proved by the higher  value. The use of the NDVI lead to deterioration
in building detection quality. A possible explanation for this might be that NDVI extracts not only
vegetation but also buildings. The quality of the building extraction of U-Net was also evaluated on
the image of another town with the size of about 5 × 5 km which can be seen in figure A1. Despite the
fact that the image differs from the training set by shooting conditions and the composition and type of
objects, U-Net (image, dsm) showed for it a similar rate of false alarms, correct and missed detections.</p>
      <p>
        As regards building detection quality of U-Net for satellite images with different resolution, the
network is also able to detect buildings in such cases. Figure 2 illustrates that the quality of building
extraction depends on the building area and the network was unable to detect barely visible objects.
Also, as the resolution is reduced, the quality of detection of building boundaries decreases. Perhaps, it
is possible to improve the accuracy of boundary detection on images with different resolutions by
adding such images to the training set of the network. It should be noted that to date several ways of
improving the U-Net performance have been proposed [
        <xref ref-type="bibr" rid="ref11 ref12 ref13">11-13</xref>
        ], and it is most likely the conducted
experiments will be valid for the proposed networks.
      </p>
      <p>High-rise objects and segmentation
U-Net (image, ndvi)
U-Net (image, ndvi, dsm)
U-Net (image)
U-Net (image, dsm)</p>
      <p>False Alarms</p>
      <sec id="sec-3-1">
        <title>5. Conclusion</title>
        <p>This paper considered a comparison of two approaches to building extraction from satellite imagery
and height data. The best performance was shown by the U-Net-based approach, which extracts a
larger number of buildings with a better detection of their boundaries. Furthermore, U-Net shows the
good result even without using additional information about scene. However, its application is
possible only if there is a sufficiently large data set for training the network. The advantage of the
approach based on extraction of buildings from a DSM is the absence of parameters that must be
selected for each particular satellite image and it will work on images obtained from different
satellites. In the future, it is planned to investigate the effect of the size and composition of the training
set on the U-Net building extraction quality as well as the possibility of using trained models of neural
networks for satellite images of different areas.
1m
1m, only high
buildings
2m
2m, only high
buildings
3m
3m, only high
buildings</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Appendix A</title>
      <p>Figure A1. The result of building extraction using the trained U-Net model (image, dsm) for the
image with the size of about 5 × 5 km and 1-m resolution. Detected buildings are displayed in green.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>This work was carried out within the program of the Ural Branch of the Russian Academy of Sciences
№ 18-1-1-14.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Kostousov</surname>
            <given-names>V B</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Perevalov D S and Kornilov F A 2016</surname>
          </string-name>
          <article-title>Digital terrain model generation from satellite stereoscopic data Materials of the XXX conference of the memory of the outstanding designer of gyroscopic instruments N</article-title>
          .
          <source>N. Ostryakov 382-388</source>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Fursov</surname>
            <given-names>V A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goshin Ye</surname>
            <given-names>V</given-names>
          </string-name>
          and
          <string-name>
            <surname>Kotov A P 2016</surname>
          </string-name>
          <article-title>The hybrid CPU/GPU implementation of the computational procedure for digital terrain models generation from satellite images</article-title>
          <source>Computer Optics</source>
          <volume>40</volume>
          (
          <issue>5</issue>
          )
          <fpage>721</fpage>
          -
          <lpage>728</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2016-40-5-
          <fpage>721</fpage>
          -728
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Ronneberger</surname>
            <given-names>O</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fischer</surname>
            <given-names>P</given-names>
          </string-name>
          and
          <string-name>
            <surname>Brox T 2015 U-Net</surname>
          </string-name>
          :
          <article-title>Convolutional networks for biomedical image segmentation</article-title>
          <source>International Conference on Medical Image Computing and ComputerAssisted Intervention Lecture Notes in Computer Science</source>
          <volume>9351</volume>
          <fpage>234</fpage>
          -
          <lpage>241</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Maryanova</surname>
            <given-names>A V</given-names>
          </string-name>
          <year>2015</year>
          <article-title>The investigation of the quality of image segmentation algorithms depending on the size of objects in the image</article-title>
          <source>Proceedings of the 46th International Youth School-Conference Actual Problems of Mathematics and its Applications</source>
          <volume>129</volume>
          -134
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Dunaeva</surname>
            <given-names>A V</given-names>
          </string-name>
          and
          <string-name>
            <surname>Kornilov F A 2017</surname>
          </string-name>
          <article-title>Building detection in remote sensing images using a digital surface model</article-title>
          <source>Computational Mathematics and Information Technologies</source>
          <volume>2</volume>
          (
          <issue>2</issue>
          )
          <fpage>185</fpage>
          -
          <lpage>193</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Pettorelli</surname>
            <given-names>N 2013</given-names>
          </string-name>
          <article-title>The normalized difference vegetation index</article-title>
          (Oxford University Press) p
          <fpage>208</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <article-title>[7] Dstl satellite imagery feature detection competition web page (Access mode: https:// www</article-title>
          .kaggle.com/c/dstl-satellite
          <article-title>-imagery-feature-</article-title>
          <string-name>
            <surname>detection)</surname>
          </string-name>
          (
          <volume>01</volume>
          .
          <fpage>05</fpage>
          .
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <article-title>[8] The SpaceNet challenge web page (Access mode: https://crowdsourcing</article-title>
          .topcoder.com/spacenet) (
          <volume>01</volume>
          .
          <fpage>05</fpage>
          .
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <article-title>[9] Planet: understanding the Amazon from space competition web page (Access mode: https:// www</article-title>
          .kaggle.com/c/planet
          <article-title>-understanding-the-amazon-from-</article-title>
          <string-name>
            <surname>space)</surname>
          </string-name>
          (
          <volume>01</volume>
          .
          <fpage>12</fpage>
          .
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Iglovikov</surname>
            <given-names>V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mushinskiy</surname>
            <given-names>S</given-names>
          </string-name>
          and
          <string-name>
            <surname>Osin</surname>
            <given-names>V 2017</given-names>
          </string-name>
          <string-name>
            <surname>Satellite Imagery</surname>
          </string-name>
          <article-title>Feature Detection using Deep Convolutional Neural Network: A Kaggle Competition</article-title>
          Preprint arXiv:
          <volume>1706</volume>
          .
          <fpage>06169</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Iglovikov</surname>
            <given-names>V</given-names>
          </string-name>
          and
          <article-title>Shvets A 2018 TernausNet: U-Net with VGG11 Encoder Pre-Trained on ImageNet for Image Segmentation Preprint arXiv:</article-title>
          <year>1801</year>
          .05746
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Khalel</surname>
            <given-names>A</given-names>
          </string-name>
          and
          <string-name>
            <surname>El-Saban M 2018 Automatic Pixelwise</surname>
          </string-name>
          <article-title>Object Labeling for Aerial Imagery Using Stacked U-Nets Preprint arXiv:</article-title>
          <year>1803</year>
          .04953
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Hamaguchi</surname>
            <given-names>R</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fujita</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nemoto</surname>
            <given-names>K</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Imaizumi</surname>
            <given-names>T</given-names>
          </string-name>
          and
          <string-name>
            <surname>Hikosaka</surname>
            <given-names>S 2018</given-names>
          </string-name>
          <article-title>Effective use of dilated convolutions for segmenting small object instances in remote sensing imagery</article-title>
          <source>IEEE Winter Conference on Applications of Computer Vision</source>
          <volume>1442</volume>
          -1450
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>