Bridge Extraction Algorithm Based on Deep Learning and High-Resolution Satellite Image

-is paper proposes a novel method of extracting roads and bridges from high-resolution remote sensing images based on deep learning. Edge detection is performed on the images in the road area along with the road skeleton line, and the result of the detected binary edge is vectorized. -e interference of protective belts on both sides of the road, road vehicles, road green belts, traffic signs, etc. and the shadow interference of the bridge itself are eliminated to determine the parallel sides of the road. -e bridge features on the road are used to locate the detected bridge and obtain information such as the location, length, width, and direction of the bridge, verifying the experimental results of the Shaoguan Le point images. In addition, in order to learn higher-level road feature information, the algorithm in this paper introduces the hollow convolution and multicore pooling modules. Secondly, the residual refinement network further refines the output of the prediction network to improve the ambiguity of the prediction network results. In addition, in view of the small proportion of road pixels in remote sensing images, the network also integrates binary cross entropy, structural similarity, and intersection ratio loss function to reduce road information loss.-e applicability of the proposed study was tested, and the results show that the algorithm is very effective for the extraction of road and bridge targets.


Introduction
e bridge is one of the important artificial buildings. Its detection and identification are of great significance for GIS data acquisition, map update, and auxiliary supervision of bridge construction. Bridges are divided into water bridges and road bridges. At present, most of the existing algorithms are carried out for the target of bridges on the water. ese algorithms mainly adopt a top-down knowledge-driven recognition method, that is, first use prior knowledge to establish a target recognition model. According to the hypothesis, segmentation, marking, and feature extraction are carried out on a purposeful basis, and then, further target detection is carried out [1][2][3]. ese algorithms have certain reference significance for the extraction of road bridges on high-resolution images [4], but the surface conditions of the images of bridges on the road are complex and changeable. Buildings, protective belts on both sides of the road, vehicles on the road, road green belts, traffic signs, signs, billboards, and other factors will interfere with the extraction of bridges. At present, there is no complete algorithm for bridge extraction on the road [5][6][7].
In order to effectively identify the road bridge target in the remote sensing image, the key is how to extract the characteristics of the road bridge in the remote sensing image [8,9]. It is concluded that the bridge on the road mainly has the following characteristics: (1) the bridge body is suspended in the air, except for the supporting piers and cables, and the bridge body has no contact with other objects on the ground. What is shown in the image is that the bridge body and the surrounding area have a clear boundary line. Even the overpass between the upper and lower highways has a difference in brightness due to the influence of light. (2) ere is basically no big change in the gray value inside the bridge, and it has local averageness, and the gray level of the whole bridge does not change much and it is the same. (3) e shape of the bridge imaged on the image is a long rectangle, with a pair of approximately parallel sides that intersect the road but are not necessarily perpendicular to the road. (4) e bridge has a certain width on the highresolution image, usually a few pixels. (5) Across the road. Among them, (1) and (2) are the radiation characteristics of road bridges; (3) and (4) are the geometric characteristics of on-road bridges; and (5) is the functional characteristics of on-road bridges. We make full use of these features, formulate different criteria pertinently, and propose a reasonable method of extracting bridges on the road [10]. e organization of this paper is as follows: Section 2 briefly depicts the algorithm and realization of road bridge recognition. Section 3 shows the details of the deep-learningbased method. e experiments of the proposed study are presented in Section 4. e conclusion and future work are given in section 5 of this paper.

The Algorithm and Realization of Road Bridge Recognition
In this paper, aiming at the imaging characteristics and resolution of high-resolution visible light images [11] and the main characteristics of road bridge targets, a method for extracting road bridges based on multiple information is proposed. First, a certain size of sliding window is used to track the road skeleton line for Canny edge detection, and the edge information within the road domain is detected. en, the detected edges are vectorized to obtain a set of vector lines, the criteria are used to remove invalid line segments, and finally, the bridge parallel lines are detected, the bridge target is identified, and the parameters of the bridge are determined. e overall framework of the algorithm is shown in Figure 1.

Edge Detection.
e edge of the image is the most basic feature of the image. e most notable feature of the bridge is a pair of parallel lines. is article attempts to analyze and determine the outer edge line of the bridge body from edge detection [12,13]. Edges are usually detected by using firstorder and second-order derivatives to calculate the abruptness of the brightness value. Sobel, Roberts, LOG, and Canny are mainstream operators for calculating the abruptness of the brightness value.
Most of the bridges on the road have low contrast with the road, and the edges are relatively weak. Compared with Sobel, Roberts [14], and LOG, Canny edge detection uses high and low thresholds to extract edges and then connects the edges in the high-threshold image into contours. When the end point of the contour is reached when connecting, the edges that can be connected on the low-threshold image are found and collected until all the gaps are connected. As shown in Figure 2, the Canny operator can accurately locate the abrupt signal of the bridge edge line. erefore, the Canny operator is selected as the edge detection operator in this paper. In order to avoid the impact of buildings, vegetation, water system, etc. other than the road and because the road bridge is located within the road area, we can track the existing road vector data through the sliding window method and perform edge detection on the image within the road area. To ensure that bridges on the road can be fully detected, the length and width of the sliding window here are 1.5 times the width of the road. is not only further restricts the scope of bridge detection but also detects the edge of the bridge more quickly and accurately.

Edge Vectorization.
In order to better analyze the geometric feature lines of the bridge, the binarized edge image can be vectorized to obtain a series of edge vector lines. For the removal of invalid line segments later, the straight line fitting of bridge lines, etc. provide edge point collections of edge line segments. e edge vectorization in this article is based on the ArcGIS Engine development environment, using the GP tool under development to vectorize the detected edge binarization image to obtain the corresponding vector file [15].

Invalid Line Segment Removal.
e types of image features in the road area are more complicated. After edge extraction, a large number of invalid edge lines that interfere with the identification of bridges on the road will be obtained. erefore, those invalid line segments that affect bridge detection must be removed before detecting bridge parallel lines. Specific interference factors include vehicles, trees, traffic signs, signs, billboards, railings on individual bridges, and shadows of the bridge itself.

Interference Removal Caused by Factors such as Vehicles, Trees, Traffic Signs, and Billboards.
In the image after edge extraction, the vehicles and trees on the road mostly correspond to relatively small discontinuities and relatively short discontinuous edge lines, and the edges are mostly rough and the local curvature is larger. According to this feature, in order to avoid the impact of vehicles, road green belts, traffic signs, billboards, etc. on bridge recognition, this paper formulates guidelines to remove those very short or relatively large curvature edge lines. e specific algorithm guidelines are as follows: Rule 1: all the edge lines are recorded as set N, each edge vector line of the edge vector file is traversed, and the curve length li of the edge vector line is calculated. Suppose the length threshold in the rule of removing line segments is lmin, then the set after removing the too short broken lines is T � {ti|ti ∈ N, li > lmin}. Criterion 2: for the edge line in the set T, the distance between the end points of the line segment is di, the curve length of the line segment is li, then the curve degree parameter ci � di/li of the line segment is set, and cmin is the curvature threshold.
en, most of the 2 Scientific Programming invalid edge lines corresponding to the larger curvature of the vehicles on the road are removed, and the set T′ � {ti|ti ∈ T, li > lmin, ci > cmin} is obtained. erefore, in order to obtain more reliable results before identification, the article adopts criterion 3 to restrict. Criterion 3: due to the imaging method of the central projection, the bridge and the road across it cannot be parallel. By setting the angle between the sideline of the bridge and the centerline of the road to be greater than a certain threshold α, after experiments, setting the threshold α � 30°can remove most of the virtual scene information caused by the traffic sign line. e interference caused by the stop line needs to be further eliminated by the following parallel line detection criterion.

Interference Removal of the Shadow of the Bridge Itself.
For shadows on remote sensing images, it is mainly caused by insufficient illumination, which leads to low brightness in shadow areas and lack of color information [7].
After the Canny edge detection, the shadows of the bridge and itself often form three approximately parallel edge lines. Based on the intersection of the line in the middle and the center line of the road, a certain range of data is taken on both sides to take the average. e side with the smaller mean value is judged to be the shadow part, and the corresponding edge line is regarded as the shadow edge line and deleted to remove the shadow interference of the bridge itself.
e schematic diagram of shadow interference removal is shown in Figure 4.

Interference Removal Caused by Factors such as Bridge
Railings. If there is a bridge on the road, there must be intersections between the center line of the road and the edge  Scientific Programming of the bridge [3], and these intersections appear in pairs under normal circumstances. However, due to the angle between the normal of the sun and the angle of incidence, the image of the railing of the bridge may fall within the range of the bridge, and the intersection point with the center line of the road will also be recorded. erefore, two or more points may be recorded at and near a certain edge of the bridge when detecting along the center line. erefore, redundant points need to be deleted to avoid interference caused by factors such as bridge railings. e processing method is to traverse all the intersections, and if there is an intersection within the 8 neighborhood of another point, one of them is recorded [3].

Detect Parallel Edges.
rough the deletion of invalid line segments, we obtain potential bridge parallel line pairs, but there may still be virtual scenes in these lines, so the obtained edge lines need to be further confirmed before identification. Because the two edges of the bridge are not ideal parallel lines and the bridge has a certain width, the virtual scene can be further eliminated by extracting approximately parallel edge line segments within a certain range [6], as shown in Figure 5. e line segments AB and CD are the suspected edge line segment pairs of the bridge. A1 and B1 are the projections of AB on CD. C1 and D1 are the projections of CD on AB, respectively. d1-d4 are the distances from the end of the straight line to another straight line. e angle between the two straight lines is θ.
Criterion 4: (1) the bridge has a certain width, so d1-d4 is less than a specified threshold; (2) the intersection of the detected bridge edge and the road centerline is taken as the starting point, and the road width is used as the limit to track the edge line of the bridge, record the coordinates of the tracking point, and perform least-squares fitting on it to obtain the slope of the edge. Because the bridge has two sides, two slope values can be obtained. According to the angle formula, the angle θ corresponding to the two sides can be obtained. If θ is less than a certain threshold, it is considered as a pair of sides of the bridge.

Bridge Recognition.
After the invalid line segments are removed, the edges of the bridge can be paired. Starting from the recorded first edge line, two adjacent lines can determine a bridge [16], and the intersection points with the center line of the road are B1 (x1, y1) and B2 (x2, y2).
(1) Determination of the location of the bridge:

Deep-Learning-Based Method
is paper also uses deep-learning methods [16,17] to assist road and bridge extraction tasks. In the image segmentation task, the more common structure is the encoder-decoder structure. e encoder is responsible for downsampling and reducing the image dimensions, and the decoder is responsible for upsampling and reducing the image dimensions. As shown in Figure 6, the method proposed in this paper chooses to load the ResNet-34 pretraining model. e depth of the entire network is designed as five layers, including one input convolutional layer and four encoder layers. When using the Massachusetts dataset for training, the image size of the input into the network is 500 × 500 × 3; then, it will undergo a bilinear interpolation operation to interpolate the image size to 512 × 512 × 3 in the input convolutional layer, and the feature map of the size of 512 × 512 × 3 that will pass the step size is 2, the convolution kernel is a 7 × 7 convolution process, and the output feature map size at this time is 2_56 × 2_56 × 64; then, through the maximum pooling process with a convolution kernel of 2 × 2 and a step size of 2, the feature map obtained the size 128 × 128 × 64, and then, it is used as the input of the first- Figure 5: Criteria for detection of parallel lines. Figure 6: Encoder-decoder structure overall frame diagram. Scientific Programming layer decoder. In the abovementioned four-layer encoder layer, each layer of encoder is composed of a different number of residual blocks, and the residual block includes two 3 × 3 convolution kernels and a combined jump branch. e output generated by the four-layer encoder through the downsampling convolution operation is 128 × 128 × 64, 64 × 64 × 128, 32 × 32 × 256, and 16 × 16 × 512, and the output of the last encoder layer will be used as the input of the transition layer. Figure 6 represents the encoder-decoder structure overall frame diagram.   Figure 7(d) is the removal of interference factors such as vehicles and green belts, the threshold of curvature is set to 0.9, and the threshold of length is set to 4 pixels, and good results are obtained; Figure 7(e) is the removal of other interference factors such as traffic sign lines, and the threshold a of the angle with the road centerline is 30°; Figure 7(f ) is the result of removing the shadow interference of the bridge itself, and further removing the virtual scene by detecting the parallel lines, the bridge linear edge pair is basically recognized [16]. According to that the pixel value of the bridge shadow is smaller than the pixel value of the bridge itself, the shadow effect is eliminated. When detecting parallel lines, the threshold of the angle θ between the two sides is set to 5°, and the distance threshold is set to 40 m; Figure 7(g) is the final recognition result, and the light blue cross represents the bridge target. Table 1 shows the position, orientation, length, width, and other parameters of the bridge detection results from left to right in Figure 7(g), and it can be seen that bridges on the road can be better identified. It can be seen from Table 1 that the position, orientation, length, and width of the bridge can be obtained relatively correctly using the algorithm of this article.

Conclusions and Further Work
is paper proposes a set of high-resolution remote sensing image road bridge extraction technologies based on multiple information. Based on the main characteristics of the bridge, the algorithm establishes a criterion method for bridge recognition, using the road area as the recognition area and detecting along the center line of the road. Limiting the detection range to the vicinity of the center line of the road is conducive to the improvement of detection efficiency and results; the vectorization of the edge after Canny edge detection is beneficial to the deletion calculation of the virtual scene line, and the bridge edge line is quickly and accurately determined. e identification of bridges on the road provides direct and rapid dynamic updates for the map and provides auxiliary reference for municipal planning. e algorithm in this paper performs detection along the center line of the road, which depends on the accuracy of the road network information provided. If the road network is not accurately extracted, it will lead to misdetection and missed detection of bridge extraction; in addition, the detection algorithm in this paper is aimed at parallel bridges on the road, but it cannot be extracted correctly for ring-shaped and irregular bridges. is requires us to conduct further research.

Data Availability
e data used to support the findings of this study are included within the article.