A remote sensing image road segmentation method based on improved DeeplabV3+

By improving the DeeplabV3+ network, introducing MobileNetV3 and ECA attention mechanisms, and combining depthwise separable dilated convolution and multi-level upsampling, the problems of boundary blurring and shadow occlusion in remote sensing road image segmentation are solved, thereby improving segmentation accuracy and efficiency.

CN117351372BActive Publication Date: 2026-11-24WUXI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311418100.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2026-11-24
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

In remote sensing road image segmentation, there are problems such as blurred boundaries and difficulty in distinguishing shadow occlusion. Existing networks lose information when identifying and segmenting small targets, which affects the segmentation accuracy.

Method used

An improved DeeplabV3+ network is adopted, incorporating MobileNetV3 and ECA attention mechanisms. Combined with the depthwise separable dilated convolution DS-ASPP module and multi-level upsampling, it enhances the attention to local information and contextual relevance, while preserving target location and boundary information.

Benefits of technology

It improves the accuracy and efficiency of remote sensing road segmentation, effectively solves the problems of blurred boundaries and shadow occlusion, and enhances the segmentation capability of small targets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117351372B_ABST
    Figure CN117351372B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on the remote sensing image road segmentation method of improved DeeplabV3+, including steps: S1, obtain remote sensing road image dataset, after data set is preprocessed, according to the proportion set, it is divided into training set and test set;S2, by constructing the remote sensing image road segmentation network based on improved DeeplabV3+, obtain accurate remote sensing road segmentation graph;S3, the training set obtained in step S1 is input to remote sensing road image semantic segmentation network and is trained, loss function is calculated and is back propagated, network parameter is updated, and the best parameter model is obtained;S4, the test set obtained in step S1 is input to the best parameter model trained in step S3, and the accurate segmentation graph of remote sensing road image is output.The application can improve the segmentation ability of small target object, solve the problem that boundary is fuzzy and shadow is shielded in road segmentation and is difficult to distinguish, ensure the precision and efficiency of road segmentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to a road segmentation method for remote sensing images based on an improved DeeplabV3+. Background Technology

[0002] Semantic segmentation of remote sensing images involves dividing an image into multiple homogeneous regions and assigning them corresponding labels. This field has wide applications, including environmental pollution monitoring, natural disaster prediction, post-disaster emergency response, and human and hydrological monitoring. Meanwhile, accurate road extraction also has a significant impact on the detection of other objects, such as urban scene segmentation, land cover classification, rice lodging detection, and photovoltaic footprint detection.

[0003] With the continuous development of deep learning technology, convolutional neural networks have achieved remarkable results in image segmentation and classification, and have been widely applied in the field of semantic segmentation. Du et al. combined DeepLabv3+ and Object-Based Image Analysis (OBIA) to segment very high-resolution remote sensing images, while Zeng et al. added a feature cross-attention module to DeepLabv3+. This module extracts low-level spatial information and high-level contextual features through two branches to refine the segmentation results. However, remote sensing road images are characterized by high resolution, and road segmentation suffers from problems such as blurred boundaries and difficulty in distinguishing shadow occlusions. The segmentation effect on the detailed information of road images still needs to be improved.

[0004] The encoder-decoder architecture leads to information loss when segmenting small targets in remotely sensed road images. The network may fail to retain detailed information with high segmentation accuracy, thus affecting the accurate identification and segmentation of small targets. Therefore, how to better capture the rich features of the input data, pay more attention to local information and contextual relevance, and preserve the position and boundary information of the target has become a key issue in remotely sensed road image segmentation. Summary of the Invention

[0005] Purpose of the invention: The purpose of this invention is to provide a road segmentation method for remote sensing images based on an improved DeeplabV3+, which pays more attention to local information and contextual relevance, preserves the location and boundary information of the target, solves the problems of blurred boundaries and difficulty in distinguishing shadow occlusion in road segmentation, and can ensure the accuracy and efficiency of road segmentation.

[0006] Technical solution: The remote sensing image road segmentation method of the present invention includes the following steps:

[0007] S1. Obtain the remote sensing road image dataset, which includes the original remote sensing images and corresponding label images. After preprocessing the dataset, it is divided into training set and test set according to the set ratio.

[0008] S2, Construct a remote sensing image road segmentation network based on the improved DeeplabV3+. The remote sensing image road segmentation network includes an encoding module, a multi-level upsampling module, and a decoding module. The encoding module includes a backbone network, an ECA module, and a DS-ASPP module.

[0009] The backbone network uses convolution and pooling operations to achieve hierarchical feature extraction from low-level detailed features to high-level semantic features of the image. The high-level feature map of the original input image output by the backbone network is input into the DS-ASPP module and the ECA module respectively to obtain multi-scale feature maps and channel attention feature maps, which are then fused to obtain the feature map output by the encoding module. The feature map output by the encoding module is input into the decoding module to obtain an accurate remote sensing road segmentation map.

[0010] S3. Input the training set obtained in step S1 into the remote sensing road image semantic segmentation network for training, calculate the loss function and perform backpropagation, update the network parameters, and obtain the optimal parameter model.

[0011] S4. Input the test set obtained in step S1 into the optimal parameter model trained in step S3, and output the accurate segmentation map of the remote sensing road image.

[0012] Furthermore, in step S1, the preprocessing of the dataset specifically involves: cropping the original remote sensing images and corresponding label images of the Massachusetts Roads dataset into images of size 512×512 pixels in sequence; and processing them using image enhancement techniques to obtain 12,452 original remote sensing road images and corresponding label images.

[0013] The 512×512 dataset was randomly divided into a training set and a test set in a 9:1 ratio.

[0014] Furthermore, in step S2, the steps for building a remote sensing image road segmentation network based on the improved DeeplabV3+ are as follows:

[0015] S21, input the original JPG image of the remote sensing road into the backbone network to obtain the high-level feature map output by the last layer of the backbone network and the low-level feature maps of the two middle layers respectively.

[0016] S22, the high-level feature map of the original input image output by the backbone network is input into the DS-ASPP module and the ECA module respectively to obtain multi-scale feature maps and channel attention feature maps, and then fused to obtain the output feature map of the encoding module;

[0017] S23, perform multi-level upsampling operation on the output feature map of the encoding module and the low-level feature map in the backbone network to obtain the output feature map of the multi-level upsampling module;

[0018] S24, input the feature map output by the encoding module into the decoding module to obtain an accurate remote sensing road segmentation map.

[0019] Furthermore, the DS-ASPP module consists of five parts: the first part is a convolutional layer, the second, third, and fourth parts are depthwise separable dilated convolutional layers, and the fifth part consists of convolutional layers and pooling layers. Each part outputs a feature map. The convolutional layers perform convolutional operations with a kernel size of 1×1 and a stride of 1. The depthwise separable dilated convolutional layers perform convolutional operations with a kernel size of 3×3 and dilation coefficients of 3, 6, and 9, respectively. The pooling layers perform adaptive mean pooling.

[0020] The ECA module consists of global average pooling, convolutional layers, and a sigmoid activation function; global average pooling performs average pooling with a kernel size of k; the convolutional layers perform convolution operations with a kernel size of 1×1 and a stride of 1; and the sigmoid activation function performs normalization operations.

[0021] The high-level feature map of the original input image output by the backbone network is compressed into 1×1 blocks by the DS-ASPP module to obtain the global feature map. Then, the high-level feature map of the original input image output by the backbone network is subjected to global average pooling. Through a fast one-dimensional convolution operation of size k, the channel attention information obtained by the 1×1 convolution operation with the Sigmoid activation function is multiplied by the original input feature information to obtain the specific channel attention feature map. Finally, the output global feature map is passed through a 1×1 convolution layer, and the output channel attention feature map is passed through a 1×1 convolution layer to perform feature fusion operation to obtain the output feature map of the encoding module.

[0022] Furthermore, the multi-level upsampling module takes the output feature map of the encoding module as input, first performs a 2x upsampling operation, and then merges it with the low-level feature map obtained by performing a 1×1 convolution operation on the feature map of the original input image at 1 / 8 resolution output by the backbone network to obtain the first low-level feature. Next, the first low-level feature is subjected to a 2x upsampling operation, and finally merged with the low-level feature map obtained by performing a 1×1 convolution operation on the feature map of the original input image at 1 / 4 resolution output by the backbone network to obtain the output feature map of the multi-level upsampling module, which is the second low-level feature.

[0023] Furthermore, the decoding module first performs multi-level upsampling operations on the feature map output by the encoding module to obtain the second low-level features. Then, it performs a 1×1 convolution operation and two 3×3 depth-separable convolution operations on the second low-level features to restore the high-level spatial information. Finally, it adjusts the number of channels using a 1×1 convolution operation and then performs a bilinear interpolation four-fold upsampling operation to obtain the accurate segmentation map of the output remote sensing image.

[0024] Further, in step S3, the parameters of the remote sensing image semantic segmentation network are randomly initialized. The training and validation set data are input into the remote sensing image road segmentation network to generate a semantic segmentation probability map of the remote sensing image, and the cross-entropy loss is calculated. The formula for calculating the cross-entropy loss function is:

[0025]

[0026] Among them, y i For sample i, the true label image is y. ′ i Let N be the label image predicted for sample i, where N is the number of pixels in the image.

[0027] Compared with the prior art, the significant advantages of this invention are as follows:

[0028] 1. This invention introduces MobileNetV3 and ECA attention mechanism into the backbone network. Compared with other networks, MobileNetV3 has fewer parameters and avoids losing some useful information as much as possible. The ECA attention mechanism is used to extract image details and reduce the influence of background on target features. Adding the ECA attention mechanism to the MobileNetV3 backbone network optimizes the time-consuming layers, reduces the number of parameters and computation, and achieves the requirement of lightweight design. At the same time, it can better capture the correlation information between channels, so that the model can pay more attention to continuous road feature information and suppress background information interference. This results in more comprehensive high-level feature extraction and better robustness, effectively improving the problem of difficulty in distinguishing road and background information in object occlusion or similar scenes.

[0029] 2. Multi-level upsampling is adopted in the decoding process. The high-level semantic features output by the ASPP module are upsampled through two 2x upsampling operations. In the feature fusion process, this connection summation operation can keep the number of channels unchanged and reduce the number of parameters. Moreover, since the low-level features have more positional and boundary information, by compensating with the high-level semantic features of the decoder, the tight connection between the encoder and decoder can be enhanced, more attention can be paid to local information and contextual relevance, and more target positional and boundary information can be retained. This can effectively improve the model's ability to segment small target objects in the image, solve the problem of blurred boundaries and shadow occlusion in road segmentation, and ensure the accuracy and efficiency of road segmentation.

[0030] 3. The Depth-Separable Dilated Convolution (DS-ASPP) module is adopted. By adjusting different dilation coefficients using depth-separable dilated convolution, richer features are extracted at different scales, which can further increase the receptive field. This enables the network to better understand the contextual information of the input image, enhances the network's ability to detect and recognize multi-scale targets, effectively improves the problem of information loss of small targets, and reduces the number of model parameters while improving the segmentation speed. Attached Figure Description

[0031] Figure 1 This is a schematic diagram of the process of the present invention;

[0032] Figure 2 This is a structural diagram of the model of the present invention;

[0033] Figure 3 This is a structural diagram of the backbone network of the present invention;

[0034] Figure 4 This is a structural diagram of the encoding fusion module of the present invention;

[0035] Figure 5 This is a structural diagram of the multi-level upsampling module of the present invention;

[0036] Figure 6 This is a structural diagram of the decoding module of the present invention;

[0037] Figure 7 This diagram illustrates a comparison of the segmentation performance of the present invention with that of PSPNet, SegNet, U-Net, and DeepLabV3+. Detailed Implementation

[0038] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.

[0039] This embodiment provides a remote sensing image road segmentation method based on the improved DeeplabV3+, such as... Figure 1 , 2 As shown, it includes the following steps:

[0040] Step 1: Obtain the Massachusetts Roads remote sensing road image dataset, which includes the original remote sensing images and corresponding label images. After preprocessing the dataset, divide it into training and test sets according to a set ratio.

[0041] The specific process for obtaining the dataset is as follows: Obtain the Massachusetts Roads remote sensing road dataset, which includes the original remote sensing images and corresponding label images, with each image being 1500×1500 pixels in size;

[0042] The dataset preprocessing involved cropping the original remote sensing images and their corresponding label images from the Massachusetts Roads dataset into 512×512 pixel images in sequence to avoid overlapping regions. Various image enhancement techniques, such as flipping, panning, scaling, and cropping, were employed to obtain 12,452 original remote sensing road images and their corresponding label images.

[0043] The dataset is divided as follows: the 512×512 dataset is randomly divided into a training set and a test set in a 9:1 ratio.

[0044] Step 2: Construct a remote sensing image road segmentation network based on the improved DeeplabV3+, including a backbone network, an ECA module, a DS-ASPP module, a multi-level upsampling module, and a decoding module. The backbone network, ECA module, and DS-ASPP module constitute the encoding module of the remote sensing road image semantic segmentation network.

[0045] The steps to build a remote sensing image road segmentation network based on the improved DeeplabV3+ are as follows:

[0046] Step 21: Input the original JPG image of the remote sensing road into the backbone network to obtain the high-level feature map output from the last layer of the backbone network and the low-level feature maps from the two middle layers.

[0047] The backbone network MobileNetV3 mainly consists of three layers. Through convolution and pooling operations, it achieves hierarchical feature extraction from low-level detailed features to high-level semantic features of the image. Specifically, the first layer of MobileNetV3 performs a standard convolution operation on the original JPG image, with 16 convolutional filters. The second layer stacks 15 bneck layers, introduces the ECA module and H-swish (HS) activation function to improve model accuracy, and outputs a feature map at 1 / 2 resolution of the original input image. The last layer performs a 1×1 convolution operation on the 1 / 2 resolution feature map, outputting a feature map at 1 / 4 resolution of the original input image. Then, it performs a soft pooling operation and a 1×1 convolution operation, outputting a feature map at 1 / 8 resolution of the original input image. Finally, it performs a 1×1 convolution operation, outputting a feature map at 1 / 16 resolution of the original input image.

[0048] Step 22: The high-level feature map of the original input image at 1 / 16 resolution, which was output by the backbone network in step 21, is input into the DS-ASPP module and the ECA module respectively to obtain multi-scale feature maps and channel attention feature maps, and then fused to obtain the output feature map of the encoding module.

[0049] The DS-ASPP module consists of five parts, implemented using standard convolution, depthwise separable dilated convolution, and pooling operations. The ECA module uses global average pooling and convolution operations to extract features. Specifically: First, the DS-ASPP module performs a 1×1 convolution on the 1 / 16 resolution high-level feature map to output the first feature map. Then, it performs a 3×3 depthwise separable dilated convolution with a dilation factor of 3 on the 1 / 16 resolution high-level feature map to output the second feature map. Next, it performs a 3×3 depthwise separable dilated convolution with a dilation factor of 6 on the 1 / 16 resolution high-level feature map to output the third feature map. Finally, it performs a 3×3 depthwise separable dilated convolution with a dilation factor of 9 on the 1 / 16 resolution high-level feature map to output the fourth feature map. Pooling is performed to output the fifth feature map. The five feature maps are then fused. The number of channels is adjusted by a 1×1 convolution operation to output the multi-scale feature map of the DS-ASPP module. The high-level feature map of the original input image at 1 / 16 resolution is then input into the ECA attention mechanism. Global average pooling is used to extract features, and a one-dimensional convolution kernel of size k is used to generate channel weights. Channel attention information is obtained by a 1×1 convolution operation with a sigmoid activation function. The obtained channel information is multiplied by the original input feature information to obtain the specific channel attention feature map. Finally, the multi-scale feature map output by the DS-ASPP module and the channel attention feature map output by the ECA module are fused to obtain the feature map output by the encoding module.

[0050] Step 23: Perform multi-level upsampling operation on the output feature map of the encoding module obtained in step 22 and the low-level feature map in the backbone network to obtain the output feature map of the multi-level upsampling module.

[0051] The output feature map of the multi-level upsampling module is obtained by performing two 2x upsampling operations on the output feature map of the encoding module to enhance the connection between the encoder and decoder. Specifically, the low-level feature map obtained by performing a 1×1 convolution operation on the feature map of the original input image at 1 / 8 resolution output by the backbone network is fused with the high-level feature map obtained by performing a 2x upsampling operation on the output feature map of the encoding module to obtain the first low-level feature map. Then, the feature map obtained by performing a 1×1 convolution operation on the feature map of the original input image at 1 / 4 resolution output by the backbone network is obtained to obtain the low-level feature map. Finally, the low-level feature map is fused with the first low-level feature map after performing a 2x upsampling operation to obtain the output feature map of the multi-level upsampling module.

[0052] Step 24: Input the feature map output by the encoding module into the decoding module to obtain an accurate remote sensing road segmentation map.

[0053] The decoding module processes the feature map output by the encoding module through the multi-level upsampling module, depthwise separable convolution, and upsampling operations in step 23 to achieve accurate semantic segmentation of the remote sensing road image. Specifically, the feature map output by the encoding module is first subjected to multi-level upsampling operations to obtain the second low-level features. Then, the second low-level features are subjected to 1×1 convolution operations and two 3×3 depthwise separable convolution operations to restore high-level spatial information. Finally, the number of channels is adjusted using 1×1 convolution operations, and then a four-fold upsampling operation using bilinear interpolation is performed to obtain the accurate segmentation map of the output remote sensing image.

[0054] The backbone network structure provided in this embodiment is as follows: Figure 3 As shown, the backbone network adopts an improved MobileNetV3, which consists of three layers and has fewer parameters. At the same time, it tries to avoid losing some useful information. A lightweight ECA attention module has been added to perform multi-scale and multi-level feature extraction on remote sensing road images.

[0055] The backbone network consists of a single convolutional layer in the first layer, 15 stacked bneck layers in the second layer, and a standard convolutional layer, a soft pooling layer, and two standard convolutional layers without normalized batch normalization (BN) in the third layer. The convolutional layers perform convolutional operations with a kernel size of 3×3 and a stride of 2, and have 16 convolutional filters. The bneck layers contain convolutional operations with kernel sizes of 3×3 and 5×5, strides of 1 or 2, an ECA attention mechanism, and an H-swish (HS) activation function. The standard convolutional layers perform convolutional operations with a kernel size of 1×1 and a stride of 1. The soft pooling layers perform soft pooling operations with a stride of 1.

[0056] In the first layer of the backbone network of this embodiment, the original JPG image of remote sensing road image is used as the input of the first layer. The input image is preprocessed by performing a 3×3 convolution operation with H-swish activation function and stride of 2 to extract features and reduce dimensionality of the input image, and obtain the output feature map of the first layer.

[0057] The second layer consists of 15 stacked bneck layers. The feature map output from the first layer is used as the input to the second layer. First, the feature map output from the first layer is passed through three 3×3 convolution operations with ReLU activation function and strides of 1, 2, and 1 respectively. Simultaneously, it is passed through three 5×5 convolution operations with ReLU activation function and strides of 2, 1, and 1 respectively for feature extraction, and an ECA attention mechanism is used. Next, it is passed through one 3×3 convolution operation with H-swish activation function and stride of 2, and five 3×3 convolution operations with H-swish activation function and stride of 1. An ECA attention mechanism is added to the last two bneck layers. Finally, it is passed through three 5×5 convolution operations with H-swish activation function and strides of 2, 1, and 1 respectively, and an ECA attention mechanism is added. The resulting second layer output feature map is a feature map with half the resolution of the original input image.

[0058] The third layer uses the feature map at half the resolution of the original input image as input. First, the feature map at half the resolution of the original input image is passed through a 1×1 convolution operation with H-swish activation function and stride 1, followed by BN normalization, to output a feature map at 1 / 4 resolution. Then, the feature map at 1 / 4 resolution of the original input image is subjected to soft pooling with stride 1 and a 1×1 convolution operation with H-swish activation function and stride 1, to output a feature map at 1 / 8 resolution. Finally, the feature map at 1 / 8 resolution of the original input image is subjected to a 1×1 convolution operation with H-swish activation function and stride 1, to output a feature map at 1 / 16 resolution of the original input image, which is the final high-level feature map output by the backbone network.

[0059] The structure of the encoding fusion module provided in this embodiment is as follows: Figure 4 As shown, the encoding fusion module mainly consists of the DS-ASPP module and the ECA module. The DS-ASPP module consists of five blocks.

[0060] The first block of the DS-ASPP module is a convolutional layer, the second, third, and fourth blocks are depthwise separable dilated convolutional layers, and the fifth block consists of convolutional layers and pooling layers. The convolutional layers perform convolution operations with a 1×1 kernel and a stride of 1. The depthwise separable dilated convolutional layers perform convolution operations with a 3×3 kernel and dilation coefficients of 3, 6, and 9 respectively. The pooling layers perform adaptive mean pooling. In the first block, the DS-ASPP module performs a 1×1 convolution operation on a 1 / 16 resolution high-level feature map, outputting the first feature map. In the second block, the 1 / 16 resolution high-level feature map is... The high-resolution feature map is subjected to a 3×3 depthwise separable dilated convolution with a dilation factor of 3, outputting the second feature map. The third feature map is obtained by performing a 3×3 depthwise separable dilated convolution with a dilation factor of 6 on the 1 / 16 resolution high-resolution feature map. The fourth feature map is obtained by performing a 3×3 depthwise separable dilated convolution with a dilation factor of 9 on the 1 / 16 resolution high-resolution feature map. The fifth feature map is obtained by performing a 1×1 convolution and pooling operation on the 1 / 16 resolution high-resolution feature map. The ECA module consists of Global Average Pooling (GAP), convolutional layers, and a Sigmoid activation function. Global Average Pooling performs average pooling with a kernel size of k. The convolutional layers perform convolutions with a kernel size of 1×1 and a stride of 1. The Sigmoid activation function performs normalization.

[0061] The encoding fusion module provided in this embodiment first compresses the five high-level feature maps of the original input image at 1 / 16 resolution output by the backbone network to 1×1 using the DS-ASPP module to obtain the global feature map. Then, it performs global average pooling on the high-level feature map of the original input image at 1 / 16 resolution output by the backbone network. Through a fast one-dimensional convolution operation of size k, the channel attention information obtained by the 1×1 convolution operation with the Sigmoid activation function is multiplied by the original input feature information to obtain the specific channel attention feature map. Finally, the output global feature map is passed through a 1×1 convolutional layer, and the output channel attention feature map is passed through a 1×1 convolutional layer to perform feature fusion operation to obtain the output feature map of the encoding module.

[0062] The structure of the multi-level upsampling module provided in this embodiment is as follows: Figure 5 As shown, the multi-level upsampling module will Figure 4The output feature map of the output encoding module is used as the input of the multi-level upsampling module. First, it undergoes a 2x upsampling operation, and then it is fused with the low-level feature map after a 1×1 convolution operation with the feature map of the original input image at 1 / 8 resolution output by the backbone network to obtain the first low-level feature. Then, the first low-level feature is subjected to a 2x upsampling operation, and finally fused with the low-level feature map after a 1×1 convolution operation with the feature map of the original input image at 1 / 4 resolution output by the backbone network to obtain the output feature map of the multi-level upsampling module.

[0063] The structure of the decoding module provided in this embodiment is as follows: Figure 6 As shown, the decoding module mainly consists of Figure 5 It consists of a multi-level upsampling module, convolutional layers, depthwise separable convolutional layers, and upsampling.

[0064] The convolutional layer performs convolution operations with a kernel size of 1×1 and a stride of 1; the depthwise separable convolutional layer performs depthwise convolution and pointwise convolution operations with a kernel size of 3×3; and the upsampling layer performs bilinear interpolation upsampling operations at a factor of four.

[0065] The decoding module provided in this embodiment first performs multi-level upsampling operations on the feature map output by the encoding module to obtain the second low-level feature. Then, it performs a 1×1 convolution operation and two 3×3 depth-separable convolution operations on the second low-level feature to restore the high-level spatial information. Finally, it adjusts the number of channels using a 1×1 convolution operation and then performs a bilinear interpolation four-fold upsampling operation to obtain the accurate segmentation map of the output remote sensing image.

[0066] Step 3: Input the preprocessed training set of remote-sensing road images from Step 1 into the remote-sensing road image semantic segmentation network from Step 2 for training. Calculate the loss function and perform backpropagation to update the network parameters and obtain the optimal parameter model. Specifically, this includes:

[0067] Step 31: Randomly initialize the parameters of the remote sensing image semantic segmentation network, input the preprocessed training set and validation set data from Step 1 into the multimodal remote sensing image semantic segmentation network based on the encoding and decoding structure in Step 2, generate the semantic segmentation probability map of the remote sensing image, and calculate the cross-entropy loss.

[0068] The loss function used when training the semantic segmentation network for remote sensing images is the cross-entropy loss function, and the formula for calculating the cross-entropy loss function is as follows:

[0069]

[0070] Among them, y i For sample i, the true label image is y. ′ i Let N be the label image predicted for sample i, where N is the number of pixels in the image.

[0071] Step 32: Backpropagate the loss, update the network parameters, minimize the loss function as the optimization objective, obtain the optimal parameter model and save it.

[0072] Step four: Input the preprocessed test set from step one into the optimal parameter model trained in step three, and output the accurate segmentation map of the remote sensing road image.

[0073] To demonstrate the effectiveness of the remote sensing image road segmentation method based on the improved DeeplabV3+ provided in this embodiment, the model was trained and tested using the Massachusetts Roads remote sensing road dataset.

[0074] Table 1 compares the results of the remote sensing image road segmentation method based on the improved DeeplabV3+ provided in this embodiment with those of PSPNet, SegNet, U-Net, and DeepLabV3+ in various metrics.

[0075] Table 1 Comparison of various performance indicators between this invention and PSPNet, SegNet, U-Net, and DeepLabV3+

[0076] Model P / % R / % F1 / % IoU / % Parameter quantity / M PSPNet 82.95 76.59 81.69 76.14 5.80 SegNet 89.26 82.46 85.73 78.26 46.24 U-Net 91.74 84.27 87.85 80.87 60.70 DeepLabV3+ 92.45 87.00 89.64 81.06 93.42 This embodiment 93.71 87.49 90.49 83.71 55.57

[0077] As shown in Table 1, all evaluation metrics of this embodiment are higher than those of existing segmentation networks; the segmentation results of this invention are compared with those of PSPNet, SegNet, U-Net, and DeepLabV3+ as follows. Figure 7 As shown, the segmentation effect is closest to the original image.

Claims

1. A road segmentation method for remote sensing images based on an improved DeeplabV3+, characterized in that, The steps include the following: S1. Obtain the remote sensing road image dataset, which includes the original remote sensing images and corresponding label images. After preprocessing the dataset, it is divided into training set and test set according to the set ratio. S2, Construct a remote sensing image road segmentation network based on the improved DeeplabV3+. The remote sensing image road segmentation network includes an encoding module, a multi-level upsampling module, and a decoding module. The encoding module includes a backbone network, an ECA module, and a DS-ASPP module. The backbone network uses convolution and pooling operations to achieve hierarchical feature extraction from low-level detailed features to high-level semantic features of the image. The high-level feature map of the original input image output by the backbone network is input into the DS-ASPP module and the ECA module respectively to obtain multi-scale feature maps and channel attention feature maps, which are then fused to obtain the feature map output by the encoding module. The feature map output by the encoding module is input into the decoding module to obtain an accurate remote sensing road segmentation map. S3. Input the training set obtained in step S1 into the remote sensing road image semantic segmentation network for training, calculate the loss function and perform backpropagation, update the network parameters, and obtain the optimal parameter model. S4. Input the test set obtained in step S1 into the optimal parameter model trained in step S3, and output the accurate segmentation map of the remote sensing road image. The DS-ASPP module consists of five parts: the first part is a convolutional layer; the second, third, and fourth parts are depthwise separable dilated convolutional layers; and the fifth part consists of convolutional layers and pooling layers. Each part outputs a feature map. The convolutional layers perform convolutional operations with a kernel size of 1×1 and a stride of 1. The depthwise separable dilated convolutional layers perform convolutional operations with a kernel size of 3×3 and dilation coefficients of 3, 6, and 9, respectively. The pooling layers perform adaptive mean pooling. The ECA module consists of global average pooling, convolutional layers, and a sigmoid activation function; global average pooling performs average pooling with a kernel size of k; the convolutional layers perform convolution operations with a kernel size of 1×1 and a stride of 1; and the sigmoid activation function performs normalization operations. The high-level feature map of the original input image output by the backbone network is compressed into 1×1 blocks by the DS-ASPP module to obtain the global feature map. Then, the high-level feature map of the original input image output by the backbone network is subjected to global average pooling. Through a fast one-dimensional convolution operation of size k, the channel attention information obtained by the 1×1 convolution operation with the Sigmoid activation function is multiplied by the original input feature information to obtain the specific channel attention feature map. Finally, the output global feature map is passed through a 1×1 convolution layer, and the output channel attention feature map is passed through a 1×1 convolution layer to perform feature fusion operation to obtain the output feature map of the encoding module.

2. The remote sensing image road segmentation method based on the improved DeeplabV3+ according to claim 1, characterized in that, In step S1, the preprocessing of the dataset specifically involves: cropping the original remote sensing images and corresponding label images of the Massachusetts Roads dataset into 512×512 pixel images in sequence; and using image enhancement techniques to obtain 12,452 original remote sensing road images and corresponding label images. The 512×512 dataset was randomly divided into a training set and a test set in a 9:1 ratio.

3. The remote sensing image road segmentation method based on the improved DeeplabV3+ according to claim 1, characterized in that, In step S2, the steps for building a remote sensing image road segmentation network based on the improved DeeplabV3+ are as follows: S21, input the original JPG image of the remote sensing road into the backbone network to obtain the high-level feature map output by the last layer of the backbone network and the low-level feature maps of the two middle layers respectively. S22, the high-level feature map of the original input image output by the backbone network is input into the DS-ASPP module and the ECA module respectively to obtain multi-scale feature maps and channel attention feature maps, and then fused to obtain the output feature map of the encoding module; S23, perform multi-level upsampling operation on the output feature map of the encoding module and the low-level feature map in the backbone network to obtain the output feature map of the multi-level upsampling module; S24, input the feature map output by the encoding module into the decoding module to obtain an accurate remote sensing road segmentation map.

4. The remote sensing image road segmentation method based on the improved DeeplabV3+ according to claim 1, characterized in that, The multi-level upsampling module takes the output feature map of the encoding module as input, first performs a 2x upsampling operation, and then merges it with the low-level feature map obtained by performing a 1×1 convolution operation on the feature map of the original input image at 1 / 8 resolution output by the backbone network to obtain the first low-level feature. Next, the first low-level feature is subjected to a 2x upsampling operation, and finally merged with the low-level feature map obtained by performing a 1×1 convolution operation on the feature map of the original input image at 1 / 4 resolution output by the backbone network to obtain the output feature map of the multi-level upsampling module, which is the second low-level feature.

5. The remote sensing image road segmentation method based on the improved DeeplabV3+ according to claim 1, characterized in that, The decoding module first performs multi-level upsampling operations on the feature map output by the encoding module to obtain the second low-level features. Then, it performs a 1×1 convolution operation and two 3×3 depthwise separable convolution operations on the second low-level features to restore the high-level spatial information. Finally, it adjusts the number of channels using a 1×1 convolution operation and then performs a four-fold upsampling operation using bilinear interpolation to obtain the accurate segmentation map of the output remote sensing image.

6. The remote sensing image road segmentation method based on the improved DeeplabV3+ according to claim 1, characterized in that, In step S3, the parameters of the remote sensing image semantic segmentation network are randomly initialized. The training and validation set data are input into the remote sensing image road segmentation network to generate a semantic segmentation probability map of the remote sensing image, and the cross-entropy loss is calculated. The formula for calculating the cross-entropy loss function is: , in, For sample i, the true label image. Let N be the label image predicted for sample i, where N is the number of pixels in the image.

Citation Information

Patent Citations

  • Remote sensing image semantic segmentation method based on multi-scale attention fusion

    CN113283435A

  • Improved remote sensing image segmentation method based on DeepLabV3

    CN114387518A