A road extraction method for high-resolution remote sensing images based on dual spatial attention mechanism

By introducing a dual spatial attention mechanism and an improved U-Net network structure into high-resolution remote sensing images, the problem of missed extraction in occlusion and narrow road sections is solved, achieving road extraction with higher accuracy and robustness, ensuring Completeness and connectivity of extraction results.

CN114819101BActive Publication Date: 2024-10-29LIAONING TECHNICAL UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210544191.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-18
Publication Date
2024-10-29
Estimated Expiration
2042-05-18

AI Technical Summary

Technical Problem

Existing road extraction methods in high-resolution remote sensing images have the problem of missing extraction in occluded areas and narrow road sections, resulting in discontinuous detection results and the lack of a mechanism to obtain dense continuous context information, which affects the topological connectivity of road extraction.

Method used

A road extraction method from high-resolution remote sensing images based on a dual-space attention mechanism is designed. Through the improved U-Net network structure, the decoupled Non-local module is introduced as the global attention module, and added to the encoder and decoder. The local refinement module captures global and local consistent contextual information and solves the problems of information transfer and detail fine-tuning.

Benefits of technology

It achieves higher accuracy and robustness in road extraction, reduces the loss of structural information, can effectively connect shadowed and narrow road sections, improves the integrity and connectivity of the extraction results, and is better than other methods in complex road scenarios. performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114819101B_ABST
    Figure CN114819101B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for extracting roads from high-resolution remote sensing images based on a dual-spatial attention mechanism, and the steps are: data set preprocessing; constructing a dual-spatial attention road extraction network; training the network; and predicting a test set. The present invention improves the U‑Net network structure and constructs a basic network structure. In order to reduce the spatial information loss caused by multiple downsampling of the encoder part, a small convolution kernel is applied to summarize the channel dimension information and reduce the amount of calculation. The encoder part is simplified. In order to avoid the interference of redundant information in the low-level feature layer, the original U‑Net network is designed into an asymmetric structure. The present invention introduces a decoupled Non‑local module as a global attention module to capture the global context information required for reasoning road targets, and designs a local refinement module. By fine-tuning the long-distance context information obtained by the encoder part, the entire network can obtain dense, global and local consistent context information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image processing, and in particular relates to a high-resolution remote sensing image road extraction method based on a dual-space attention mechanism. Background Art

[0002] As an important infrastructure, the real-time and accurate update of road information plays a key role in many practical applications, such as urban planning, vehicle automatic navigation, emergency rescue, smart cities, and geographic information system updates. As an important element of the spatial database, roads are also the most sensitive to changes and the most in need of timely updates. Therefore, the real-time and accurate positioning and identification of road targets has far-reaching significance and has become a hot issue that many researchers and scholars continue to pay attention to.

[0003] In recent years, with the vigorous development of sensor technology and remote sensing technology at home and abroad, it has become possible to obtain massive amounts of high-resolution remote sensing images. High-resolution remote sensing images carry precise location information, including clear geometric information and fine texture information, and can obtain clearer and more accurate expressions of target objects. This feature lays a solid data foundation for the extraction of object information. However, while high-resolution remote sensing images provide rich spectral and spatial information, they are also accompanied by the amplification of redundant noise, which also brings new challenges to the interpretation of objects.

[0004] Although the traditional semi-automatic road extraction method that relies on expert knowledge has high extraction accuracy, it has low extraction efficiency. When faced with complex roads in different scenarios, a high degree of human-computer interaction is often required, which means that the arbitrariness and subjectivity of threshold parameter setting and decision-making make traditional road detection methods no longer suitable for high-resolution remote sensing images with massive and rich features. Therefore, in high-resolution remote sensing images, the complexity and diversity of the roads themselves and their surroundings make the existing traditional methods lack a universal and efficient automatic extraction model. The excellent representation learning ability of deep learning methods makes up for the shortcomings of traditional methods and promotes the research progress of road extraction. However, the extraction results of existing methods still have the problem of missed extraction in occluded areas and narrow sections.

[0005] The phenomenon of missed road detection will not significantly reduce the quantitative accuracy index as a whole, but it will cause a road to be split into multiple roads, which is seriously unfavorable for the current status evaluation, layout design and demand planning of roads. Therefore, in response to this problem, the present invention attempts to build a high-performance road extraction network to connect the separated sections caused by shadows and narrow sections, and extract a road network with higher accuracy and stronger robustness from high-resolution remote sensing images.

[0006] Existing deep learning methods generally use an encoder-decoder architecture to complete the semantic segmentation process of roads. In the encoder-decoder architecture, the encoder part generally uses a deep CNN as a feature extractor to extract multi-scale information. However, it is limited to the convolution operation processing one local neighborhood at a time. Repeated convolution and downsampling operations, although it can gradually propagate data to capture long-distance dependencies, information cannot be transmitted back and forth between distant locations. When the road is blocked, it is difficult to establish the topological relationship between the sections separated by the occlusion, and the problem of road breakage is difficult to avoid. The main solutions to this problem are: ① Introducing hollow convolution to expand the receptive field; ② Establishing a specific mechanism to obtain contextual information; ③ Using an attention module to capture long-range dependencies.

[0007] The above methods cannot be directly applied to road extraction tasks due to information loss. Specifically, the atrous convolution is affected by its own sparse sampling method, which makes it difficult to generate dense and continuous long-distance correlation context information; many scholars have designed road-specific context information acquisition mechanisms based on road characteristics. However, as far as the modules proposed so far are concerned, they all ignore the correlation of information between various positions in the global scope. For road targets with global distribution characteristics, this correlation between long-distance positions is crucial for reasoning about blocked roads; although the attention module is a pioneering method for capturing dense long-range dependencies, the aggregated global context is biased towards large pattern areas, while small pattern areas with complex structures are over-smoothed, and there is a local and global inconsistency. In road scenes, these small pattern areas include: shadows formed by trees, vehicles, road signs, etc. on the road surface, turns with large curvature changes, etc. The incomplete information acquisition in these areas will affect the topological connectivity of the road network extraction, so that the detected roads are still discontinuous, which leads to a high missed detection rate in the road extraction results. Summary of the invention

[0008] Based on the above deficiencies in the prior art, there is still the problem of missed extraction of narrow sections and occluded sections in the extraction results of the existing road extraction network. The technical problem solved by the present invention is to provide a high-resolution remote sensing image road extraction method based on a dual spatial attention mechanism. For the problem of missed extraction of narrow sections, the present invention designs a simple and efficient basic network architecture; for the problem of missed extraction of occluded areas, the present invention proposes a dual attention mechanism to solve the defect that the existing method cannot obtain dense and continuous context information.

[0009] In order to solve the above technical problems, the present invention is implemented by the following technical solutions:

[0010] The high-resolution remote sensing image road extraction method based on the dual-space attention mechanism of the present invention comprises the following steps:

[0011] Step S1: Dataset preprocessing;

[0012] Step S2: construct a dual-space attention road extraction network;

[0013] Step S3: training the network;

[0014] Step S4: Predict the test set.

[0015] Furthermore, the step S2 includes the following steps:

[0016] Step 2.1: Use the U-Net network as the basic network, and select ResNet-34 for the encoder part. Improve its first building block. First, use a convolution layer with a convolution kernel size of 1×1. Relying on the dimension-raising effect of the 1×1 convolution kernel feature, increase the number of feature channels to the number of channels required for the subsequent step, and then pass the features through three convolution layers with a convolution kernel size of 3×3 and a stride of 1 in sequence; secondly, design the entire network as an asymmetric structure;

[0017] Step 2.2: Add a decoupled Non-local module after the first encoder module as a global attention module to capture long-range context information;

[0018] Step 2.3: Add a local refinement module to the end of the encoder. Use parallel convolution kernels of different scales on the feature map obtained before step 2.2 to further refine the long-distance context information and fine-tune the information transmission. When the feature is input into the module, perform mirror padding of padding=1 and padding=2 respectively to obtain a pair of parallel feature maps with padded edges. Then use 1×1 convolution to reduce the number of channels from C to C / 4. Next, perform convolution operations on the parallel feature maps with convolution kernels of 3×3 and 5×5 respectively, and then apply 1×1 convolution to increase the number of feature map channels to C; use element-wise product to fuse the information of the two paths, and use Sigmoid activation function to obtain the refined weight; finally, multiply the local detail weight with the input feature to obtain the refined feature map;

[0019] Step 2.4: Add a decoupled Non-local module after the first decoder module of the decoder.

[0020] Furthermore, the step S3 includes the following steps:

[0021] Step 3.1: Environment setting, using the Pytorch deep learning framework under Windows and the compiler is pycharm;

[0022] Step 3.2: Parameter setting.

[0023] Furthermore, in step S3.2, an adaptive moment estimation optimizer is selected, and a binary cross entropy loss is selected as a loss function.

[0024] Further, the step S1 comprises the following steps:

[0025] Step 1.1: Use the class ratio cropping method to crop the large images in the Massachusetts road dataset and the LSRV dataset into multiple sub-image blocks of 224×224 pixels and 512×512 pixels respectively;

[0026] Step 1.2: Divide the trimmed dataset into training set and test set in a ratio of 9:1.

[0027] From the above, the high-resolution remote sensing image road extraction method based on the dual spatial attention mechanism of the present invention has at least the following beneficial effects:

[0028] 1. Improve the basic network structure to reduce the loss of road structure information:

[0029] The U-Net network structure was improved and a new basic network structure was constructed. In order to reduce the spatial information loss caused by multiple downsampling of the encoder part, the small convolution kernel can summarize the channel dimension information and reduce the amount of calculation, simplifying the encoder part. In addition, in order to avoid the interference of redundant information in the low-level feature layer, the original U-Net network is designed as an asymmetric structure.

[0030] Second, in order to solve the problem of missing extraction of occluded parts, a dual spatial attention mechanism is constructed:

[0031] The present invention introduces a decoupled Non-local module as a global attention module to capture the global contextual information required for reasoning road targets; and designs a local refinement module to fine-tune the long-distance contextual information obtained by the encoder part, so that the entire network can obtain dense, global and local consistent contextual information.

[0032] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following is a detailed description in combination with the preferred embodiments and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings of the embodiment are briefly introduced below.

[0034] Figure 1As the basic network structure diagram;

[0035] Figure 2 is the global attention module diagram;

[0036] Figure 3 It is a local refinement module diagram;

[0037] Figure 4 The overall structure diagram of the dual spatial attention road extraction network;

[0038] Figure 5 Extract the resulting map for the Massachusetts roads dataset;

[0039] Figure 6 Extract result graph for LSRV dataset;

[0040] Figure 7 This is a flowchart of the high-resolution remote sensing image road extraction method based on the dual spatial attention mechanism of the present invention. DETAILED DESCRIPTION

[0041] like Figures 1 to 7 As shown, the high-resolution remote sensing image road extraction method based on the dual-space attention mechanism of the present invention comprises the following steps:

[0042] Step 1: Dataset preprocessing

[0043] Step 1.1: Use the class ratio cropping method to crop the large images in the Massachusetts road dataset and the LSRV dataset into multiple sub-image blocks of 224×224 pixels and 512×512 pixels respectively.

[0044] Step 1.2: Divide the trimmed dataset into training set and test set in a ratio of 9:1.

[0045] Step 2: Build a dual spatial attention road extraction network

[0046] Step 2.1: Figure 1 As shown, the present invention uses the U-Net network as the basic network, and the encoder part uses ResNet-34. The first building block is improved. First, a convolution layer with a convolution kernel size of 1×1 is used. Relying on the dimension-raising effect of the 1×1 convolution kernel feature, the number of feature channels is increased to the number of channels required for the subsequent operation, and then the features are sequentially passed through three convolution layers with a convolution kernel size of 3×3 and a step size of 1. Secondly, the entire network is designed as an asymmetric structure.

[0047] Step 2.2: Add a decoupled Non-local module after the first encoder module as a global attention module to capture long-range context information. Its structure is as follows Figure 2 shown.

[0048] Step 2.3: Add a local refinement module at the end of the encoder, with the structure as follows Figure 3 As shown in the figure, parallel convolution kernels of different scales are used on the feature maps obtained before step 2.2 to further refine the long-distance context information and fine-tune the information transfer. When the feature is input into the module, the mirror padding of padding=1 and padding=2 is performed respectively to obtain a pair of parallel feature maps with padded edges. Then a 1×1 convolution is used to reduce the number of channels from C to C / 4. Next, a convolution operation is performed on the parallel feature maps with convolution kernels of 3×3 and 5×5 respectively, and then a 1×1 convolution is applied to increase the number of feature map channels to C. The element-wise product is used to fuse the information of the two paths, and the Sigmoid activation function is used to obtain the refined weights. Finally, the local detail weights are multiplied by the input features to obtain the refined feature maps.

[0049] Step 2.4: Add a decoupled Non-local module after the first decoder module of the decoder. Finally, the structure diagram of the entire dual-space attention road extraction network is as follows Figure 4 shown.

[0050] Step 3: Train the network

[0051] Step 3.1: Environment setting. The present invention uses the Pytorch deep learning framework under Windows, and the compiler is pycharm. All models are trained on a server equipped with an NVIDIA GeForceRTX 2080Ti graphics card and 11GB of memory.

[0052] Step 3.2: Parameter setting. The present invention uses the adaptive moment estimation (Adam) optimizer. The Adam algorithm can achieve efficient calculations with small memory requirements and is suitable for processing large-scale data and parameter optimization problems. The binary cross entropy loss is selected as the loss function. Due to memory limitations, the batchsize is set to 2. The initial learning rate is set to 1e-3. When the training loss value is greater than the optimal training loss value for three consecutive epochs, the learning rate is multiplied by 0.85. When the output loss of the training set does not change for 6 consecutive times, the training is terminated.

[0053] Step 4: Predict the test set.

[0054] (1) The method proposed in the present invention is verified by two sets of experiments and compared with the existing algorithms. Experiment 1 is the extraction result on the Massachusetts road dataset, and Experiment 2 is the extraction result on the LSRV dataset.

[0055] 1) Experiment 1. Figure 5 The visualization results on the Massachusetts road dataset include the extraction results of the present invention and the results of the comparison method. The dataset covers various complex road types in urban, suburban and rural areas of Massachusetts, such as the intricate road network in urban areas, the occlusion of the road surface by buildings and vegetation, the complex road spectral information caused by vehicles, and the existence of roads with varying widths in suburban areas due to differences in road grades.

[0056] exist Figure 5 In the test set of each method, the present invention selects seven representative samples and their prediction results, and each row represents a sample. The eight columns represent the test images, label images, and prediction images generated by the six test methods. The first and second rows both show roads under occlusion conditions. In the first row, it can be intuitively seen that the extraction results of the method of the present invention are more complete and accurate than those of other algorithms; in the second row, for the road portion obscured by the shadows of trees, all five methods have achieved satisfactory results, while for the visual occlusion caused by the shooting angle of the satellite image, there is a gap between the results of NL-LinkNet and D-LinkNet, and the broken road sections completely obscured by the shadows cannot be connected. The third and fourth rows confirm the superiority of the method of the present invention in extracting intersections, and it can maintain a more complete road skeleton. Compared with ordinary sections, the extraction of intersections is more challenging due to the complexity of the road background environment. The intersection part is more susceptible to the influence of road vehicles and the environment on both sides of the road, and there is an unclear road boundary. In the fifth row, the method of the present invention successfully distinguishes the two lanes that are close to each other, and the narrow green belt can be correctly classified as the background, showing the ability to obtain clear boundaries. The sixth row of samples contains two different grades of roads with different road materials. The low-grade road is narrow and has blurred boundaries, and is omitted by the label image. Compared with several other methods, only the method of the present invention can fully depict it. The seventh row is an enlargement of the area where the prediction result is different from the label image. All methods identify this as the background. In real life, due to semantic thinking, the aisles between parking spaces are also marked as roads. However, the spectral difference between the aisle and the parking space is minimal, and it is difficult to distinguish them using only a simple combination based on semantic and appearance information. Compared with other methods, the method of the present invention ensures a high degree of integrity and connectivity.

[0057] 1) Experiment 2. Figure 6The visualization results on the LSRV road dataset include the extraction results of the present invention and the results of the comparison method. The dataset covers images of different resolutions in three regions, namely Boston and its surrounding cities in the United States, Birmingham in the United Kingdom, and Shanghai in China. Compared with the Massachusetts road dataset, the road conditions in the LSRV dataset are more complex. For example, there is a serious occlusion of high-rise buildings in the images of Shanghai. The present invention uses five test methods for road prediction, and selects five representative visualization results from each method for display.

[0058] exist Figure 6 It can be clearly seen that when dealing with various complex road conditions, the network proposed in the present invention is visually superior to other test methods, and more accurate road details are obtained while ensuring connectivity. From the extraction results of the first row, the boundaries extracted by the method of the present invention are smoother. The second row is an image belonging to the same area as the first row, but with different imaging conditions. The test method obtains accurate extraction results. The third row is an example of a road completely blocked by trees. The method of the present invention obtains continuous extraction results. The image example in the fourth row further proves the detail capture ability of the method of the present invention. Compared with other test methods, only the method of the present invention can correctly mark the green isolation belt in the middle of the road as the background. The fifth row is an area where the spectral difference between the road and the background is small. The method of the present invention obtains a relatively complete and continuous road skeleton. The quantitative comparison with the four methods is shown in Table 1. It can be clearly seen that on the LSRV dataset, the method of the present invention ranks first in all four indicators. Compared with BT-RoadNet, which ranks second in each indicator, the IoU value is increased by 2.02%, the F1-score is increased by 1.41%, and the Precision is increased by 1.5%, indicating that the method has fewer false detections and missed detections.

[0059] Table 1 Quantitative evaluation of LSRV dataset

[0060]

[0061]

[0062] Road extraction based on high-resolution remote sensing images is of great significance in applications such as urban planning and vehicle navigation. However, the contextual relationship established by the encoding and decoding structure of existing deep learning methods lacks consistency between global and local information, and there is a loss of road detail information, which makes it impossible to extract occluded and narrow sections. In order to solve this problem, the present invention proposes a dual spatial attention road extraction network that can achieve global perception and local refinement. First, an improved U-Net is used as the basic network to reduce the loss of road structure information. Secondly, a global attention module and a local refinement module are constructed to obtain globally and locally consistent road contextual information to help the network establish topological relationships between broken sections. Experimental results on the Massachusetts road dataset and the LSRV road dataset show that the method of the present invention is superior to other methods in maintaining the integrity and connectivity of road extraction.

[0063] The above is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and changes can be made without departing from the principle of the present invention, and these improvements and changes are also regarded as the protection scope of the present invention.

Claims

1. A high-resolution remote sensing image road extraction method based on dual spatial attention mechanism, characterized in that: The following steps are involved: Step S1: Dataset preprocessing; Step S2: construct a dual-space attention road extraction network; Step S3: training the network; Step S4: predict the test set; Described step S1 comprises the following steps: Step 1.1: Use the class ratio cropping method to crop the large images in the Massachusetts road dataset and the LSRV dataset into multiple sub-image blocks of 224×224 pixels and 512×512 pixels respectively; Step 1.2: Divide the trimmed dataset into training set and test set in a ratio of 9:1; The step S2 comprises the following steps: Step 2.1: Use the U-Net network as the basic network, and select ResNet-34 for the encoder part. Improve its first building block. First, use a convolution layer with a convolution kernel size of 1×1. Relying on the dimension-raising effect of the 1×1 convolution kernel feature, increase the number of feature channels to the number of channels required for the subsequent process, and then pass the features through three convolution layers with a convolution kernel size of 3×3 and a stride of 1 in sequence; secondly, design the entire network as an asymmetric structure; Step 2.2: Add a decoupled Non-local module after the first encoder module as a global attention module to capture long-range context information; Step 2.3: Add a local refinement module to the end of the encoder. Use parallel convolution kernels of different scales on the feature map obtained before step 2.2 to further refine the long-distance context information and fine-tune the information transmission. When the feature is input into the module, perform mirror padding of padding=1 and padding=2 respectively to obtain a pair of parallel feature maps with padded edges. Then use 1×1 convolution to reduce the number of channels from C to C / 4. Next, perform convolution operations on the parallel feature maps with convolution kernels of 3×3 and 5×5 respectively, and then apply 1×1 convolution to increase the number of feature map channels to C; use element-wise product to fuse the information of the two paths, and use Sigmoid activation function to obtain the refined weight; finally, multiply the local detail weight with the input feature to obtain the refined feature map; Step 2.4: Add a decoupled Non-local module after the first decoder module of the decoder.

2. The high-resolution remote sensing image road extraction method based on dual spatial attention mechanism as claimed in claim 1, characterized in that: The step S3 comprises the following steps: Step 3.1: Environment setting, using the Pytorch deep learning framework under Windows and the compiler is pycharm; Step 3.2: Parameter setting.

3. The high-resolution remote sensing image road extraction method based on dual spatial attention mechanism as claimed in claim 2, characterized in that: In step S3.2, an adaptive moment estimation optimizer is selected, and a binary cross entropy loss is selected as a loss function.

Citation Information

Patent Citations

  • Remote sensing image change detection method based on spatial-spectral feature fusion network

    CN114359723A

  • High-speed delay scanning and deep learning techniques for spectroscopic SRS imaging

    US20210239618A1