Gcn-based dual-view information sensing road extraction method, system and device
By adopting a dual-view information perception road extraction method based on GCN, the challenges of modeling regions with different feature saliency levels and road network structures in remote sensing road extraction are solved. This method achieves more accurate road feature localization and structural integrity, thereby improving the accuracy of remote sensing road extraction.
Patent Information
- Application Number
- CN202410169049.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-02-06
AI Technical Summary
Existing remote sensing road extraction algorithms struggle to adequately address regions with varying levels of road feature saliency and efficiently model the overall road network structure, leading to misjudgments and structural interruptions.
A dual-view information perception road extraction method based on GCN is adopted. By combining a road feature saliency graph reasoning module and a road structure isomorphic spatial graph reasoning module with a view feature fusion alignment strategy, a road extraction model is constructed to enhance the perception of road features and structure.
It significantly reduces misjudgments in areas with blurred features, improves the completeness and accuracy of extracted structures, and enhances the accuracy and consistency of remote sensing road extraction algorithms.
Smart Images

Figure CN118038145B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of remote sensing technology, specifically to a method, system, and device for road extraction based on GCN dual-view information perception. Background Technology
[0002] Roads are a major component of modern transportation infrastructure. Practical applications such as intelligent transportation, urban planning, and autonomous driving rely on the timely updating of road information. Therefore, how to automatically extract roads from high-resolution remote sensing images has always attracted the attention of researchers.
[0003] Remote sensing road extraction algorithms primarily utilize computer vision technology to perceive deep road features in images and determine whether each pixel represents a road. In recent years, thanks to the powerful feature extraction capabilities of Convolutional Neural Networks (CNNs), researchers have gradually adopted CNN semantic segmentation models to replace traditional methods, achieving significant results. Compared to common remote sensing extraction targets such as buildings, water bodies, and vegetation, roads possess more unique and complex features and structures. From a feature perspective, the influence of paving materials and occlusion can easily blur road features in images: rural roads, due to simple paving, are easily confused with the surrounding environment; roads are easily obscured by building shadows, trees, vehicles, and other objects. These factors lead to numerous misclassifications in these areas. From a structural perspective, roads are often scattered across different locations in remote sensing images, and there are long-distance dependencies between structures. Models cannot establish connections between roads in different locations, thus the extraction results are prone to interruptions and fragmentation. Both feature and structural perspectives make remote sensing image road extraction a challenging task.
[0004] In the early design of road extraction algorithms, researchers focused on enhancing the perception of deep road features. This was achieved through deeper networks, enhanced context awareness, and attention mechanisms to improve extraction accuracy. However, traditional convolutional algorithms, with their local perception and parameter sharing characteristics, tend to focus more on salient regions. Therefore, in remote sensing images where roads often exhibit both salient and blurred features, even enhanced feature perception can lead to insufficient attention in blurred areas. Thus, solely focusing on enhancing the model's ability to perceive road features has limitations; method design should consider how to evenly distribute attention across roads with different levels of feature saliency. Meanwhile, other methods focus on the integrity of the extracted road network structure. These methods can be divided into two types. The first is centerline-based road extraction methods. These methods generate road structure maps through iterative generation, directed supervision, and tensor encoding, aiming to maintain the integrity and topology of the road structure. However, since the road structure map only represents the centerline and not the actual road surface, the segmentation results are poor. Secondly, segmentation-based road extraction methods, building upon existing road extraction models, expand the model's perception range to uncover more road structure information, thus achieving a balance between local accuracy and global completeness. However, while these segmentation-based methods enhance the model's ability to perceive the overall road network structure through a larger perception range and densely modeled interrelationships, they also introduce high computational overhead. Summary of the Invention
[0005] To address the problems existing in the prior art, this invention provides a dual-view information perception road extraction method, system, and device based on GCN. It solves two challenging problems in remote sensing road extraction: the model cannot equally focus on areas with different levels of road feature saliency and it is difficult to efficiently model the overall road network structure. The obtained road feature representation contains rich semantic information and accurate location information, which can more accurately distinguish road features and locate the specific location of the road.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a road extraction method based on GCN dual-view information perception, wherein the original remote sensing image is input into a road extraction model based on GCN enhanced feature-structure dual-view information perception to extract a road structure map; The road extraction model includes an encoder, a GCN-based dual-view perceptron, and a decoder. The encoder uses HRNet as the backbone network. The GCN-based dual-view perceptron includes a parallel road feature saliency graph inference module, a road structure isomorphic spatial graph inference module, and a view feature fusion alignment strategy that connects the road feature saliency graph inference module and the road structure isomorphic spatial graph inference module.
[0007] Furthermore, in the road feature saliency map reasoning module: 1) Divide the feature map into regions and calculate the similarity of the region information to form a similarity matrix: 1.1) The deep road features obtained by the encoder HRNet Divided into Each region contains [number] areas. The region features are obtained from the feature elements. ,in Represents the original feature size and number of channels. This represents the feature size and number of channels after partitioning; 1.2) Regional characteristics Using convolution Extract The road features of each region are analyzed and the matrix is transposed to obtain the road feature transpose matrix. ; 1.3) Regional characteristics Perform global pooling and diagonalization to generate a region self-connected matrix. ; 1.4) Perform the above convolution Road feature transpose matrix Region self-connection matrix Multiply and perform Softmax Calculate and obtain the similarity matrix. ; 2) Using the similarity matrix as the Laplacian matrix in the GCN graph convolutional neural network, road structure information is obtained according to the layer-by-layer propagation rules of the multi-layer GCN graph convolutional neural network. Specifically: (6) in, It is a similar matrix; It is a learnable weight matrix; It is a non-linear activation function, using the ReLU function.
[0008] Furthermore, in the road structure isomorphic spatial graph reasoning module, 1) Through convolution and Deep road features obtained by the capture encoder HRNet Roads scattered in different locations form a road structure isomorphic space. The details are as follows: (7) in, and These are learnable convolutional kernels; It is the number of nodes in the isomorphic space. D It is the structural information dimension; 2) By using convolution and transpose convolution, the node information and dependencies perceived in the isomorphic space are mapped back to the original space to obtain road feature information. The details are as follows: (8) in, For Laplace matrix, ; It is a space with isomorphic road structure. The weight matrix is a learnable matrix. It is a non-linear activation function.
[0009] Furthermore, in the viewpoint feature fusion alignment strategy: The road structure information is obtained from the road feature saliency graph reasoning module. Road feature information obtained from the road structure isomorphic spatial graph reasoning module The splicing is performed along the channel dimension to obtain the splicing features. ; Through extrusion splicing features Obtain global feature distribution The extrusion operation is as follows: (9) Distribution of global features Perform activation operations to obtain the weight matrix. The details are as follows: (10) in, It reflects the weight of each feature. and It is learned through fully connected layers and non-linear layers, where r is the scaling parameter; weight matrix splicing features Multiply to obtain the fusion feature ; Low-resolution fusion features Upsampling is performed on high-resolution fused features. Downsampling is performed, and then element-wise summation is performed to obtain the road feature representation. .
[0010] Furthermore, the decoder employs a progressive upsampling strategy.
[0011] Furthermore, both the encoder and decoder have four layers.
[0012] Furthermore, the road extraction model is trained by a road extraction network, which employs the cross-entropy-Dice loss remote sensing master-slave loss function during training. L seg The details are as follows: (1) (2) (3) in, y i Representing the i The true value of each pixel. y i =1 indicates that the pixel is a road. y i =0 indicates that the pixel is the background; p i Representing the i Predicted probability of each pixel ; N It is the total number of pixels; =1×10 -5 It is the gradient factor used to smooth the loss; α It is a hyperparameter that adjusts the ratio of cross-entropy loss to Dice loss.
[0013] This invention also provides a dual-view information perception road extraction system based on GCN, comprising: The model building module is used to build a road extraction model that enhances the perception of feature-structure dual-view information using GCN. The road extraction model includes an encoder, a GCN-based dual-view perceptron, and a decoder. The encoder selects HRNet as the backbone network. The GCN-based dual-view perceptron includes a parallel road feature saliency graph inference module, a road structure isomorphic spatial graph inference module, and a view feature fusion alignment strategy that connects the road feature saliency graph inference module and the road structure isomorphic spatial graph inference module simultaneously. The road extraction module is used to input the original remote sensing image into the road extraction model based on GCN-enhanced feature-structure dual-view information perception to extract the road structure map.
[0014] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the steps of the above-mentioned GCN-based dual-view information perception road extraction method, or, when the processor executes the computer program, it implements the functions of each module in the above-mentioned GCN-based dual-view information perception road extraction system.
[0015] The present invention also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of the above-described GCN-based dual-view information perception road extraction method, or, when the processor executes the computer program, it implements the functions of each module in the above-described GCN-based dual-view information perception road extraction system.
[0016] Compared with the prior art, the present invention has at least the following beneficial effects: This invention provides a dual-view information perception road extraction method based on Gaussian Networking (GCN). A road extraction model based on GCN-enhanced feature-structure dual-view information perception is established. This model significantly reduces misjudgments in areas of feature ambiguity, improves the completeness of the extracted structure, and enhances the accuracy of the extraction algorithm. Specifically, considering the characteristics of GCN's information propagation process, which features average node characteristics and long-distance information interaction, this invention leverages GCN's superior information interaction capabilities to mine road information in remote sensing images from dual views in a two-stage manner. In the first stage, a road feature saliency graph inference module and a road structure isomorphic space graph inference module are designed for both the feature view and the structure view. The road feature saliency graph inference module uses the similarity of road feature information from different regions as a similarity matrix to participate in the graph inference process, guiding the network to equally focus on regions with different feature saliency levels. The road structure isomorphic space graph inference module maps the road structure to the corresponding isomorphic space and aggregates and interacts with road information through graph convolution, improving the network's ability to perceive roads at different locations. In the second stage, since dual-view information usually shares a potential common feature representation, a view feature fusion and alignment strategy is designed to fully integrate and align road information from different perspectives and scales, accurately mapping the two-view information to this common representation, thus obtaining a road feature representation with complementarity and consistency.
[0017] Quantitative and qualitative analysis of experimental results on two benchmark datasets shows that the algorithm proposed in this invention has significant advantages in remote sensing road extraction tasks. The road feature representation obtained by this invention contains rich semantic information and accurate location information, which can more accurately distinguish road features and locate the specific location of the road. Attached Figure Description
[0018] Figure 1 Overall structure of RDPGNet; Figure 2 Encoder network structure diagram; Figure 3 Schematic diagram of road feature saliency map reasoning; Figure 4 Schematic diagram of spatial reasoning for road structure isomorphism; Figure 5 Potential representation of road information from two perspectives; Figure 6 A schematic diagram of the viewpoint feature fusion and alignment strategy; Figure 7 Overall structure of the decoder network; Figure 8 Dataset samples and their corresponding labels; Figure 9 Visualization results of different networks in the Massachusetts remote sensing road dataset; Figure 10 Visualization results of different networks in the DeepGlobe remote sensing road dataset. Detailed Implementation
[0019] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0020] This invention proposes a dual-view information-based road extraction method based on GCN, the specific steps of which are as follows: S1 obtains the experimental dataset and performs preprocessing, specifically: 1) This invention selects the Massachusetts remote sensing road dataset and the DeepGlobe remote sensing road dataset for experiments.
[0021] The Massachusetts remote sensing road dataset consists of 1171 images, each 1500×1500 pixels, covering over 2600 km of Massachusetts, USA. 2 The dataset consists of remote sensing images with a ground resolution of 1 m / pixel. The DeepGlobe remote sensing road dataset has a ground resolution of 0.5 m / pixel and comprises 8570 images, each 1024×1024 in size, covering a total area of 2200 km² in Thailand, Indonesia, and India. 2 Composed of remote sensing images.
[0022] 2) First, the two datasets are cropped using a sliding window to a uniform size of 512×512. Then, to enhance the model's generalization ability during training, standard data augmentation strategies are used, including random rotation, random flipping, random Gaussian blur, random masking, and random contrast adjustment to enhance the training data.
[0023] S2 constructs a Road Extraction Network with Dual-View Information Perception based on GCN (RDPGNet). This network consists of three parts: an encoder, a GCN-based dual-view perceptron (GDVP), and a decoder. Specifically: 1) HRNet is used as the backbone network to extract multi-scale road features during the encoding stage; 2) GDVP includes two novel modules: the Road Feature Saliency Graph Reasoning Module (RFSG) and the Road Structure Homogeneous Space Graph Reasoning Module (RSHS), which mine road information from two perspectives respectively; and a Viewpoint Feature Fusion Alignment Strategy (MVFA), which fully integrates road information from different perspectives and scales to obtain complementary and consistent road feature representations, among which: 2.1) RFSG takes into account the different saliency levels of road features and guides the model to redistribute the feature weights of different regions during graph inference, thereby improving the focus on regions with low saliency levels of road features. 2.2) RSHS aims to model the overall structure of the road network and efficiently perceive long-distance road dependencies by aggregating and propagating information from nodes in the structural isomorphic space.
[0024] 3) Since the above steps have already yielded accurate road feature maps, only a small amount of convolution and upsampling are used in the decoding part to complete the remote sensing road extraction.
[0025] S3 model training settings and loss function All experiments in this invention used an NVIDIA GeForce GTX 3090 (24G) graphics card and the PyTorch deep learning framework to build, train, and test models. AdamW was used as the optimizer, with a batch size of 8, a learning epoch of 200, and an initial learning rate of 5×10⁻⁶. -4 Furthermore, the CosineAnnealingLR learning rate strategy was used to adjust the learning rate, with an adjustment period of 50 rounds and a minimum learning rate set to 1×10. -6 .
[0026] Road extraction from remote sensing images is a binary classification dense prediction problem, typically solved using cross-entropy loss. However, relying solely on cross-entropy loss can weaken the model's focus on road type foreground, causing the learning process to get stuck in a local minimum of the loss function. Considering Dice loss (… L Dice This invention gives equal importance to each category during the training process, and uses the cross-entropy loss function ( L seg Based on the above, Dice loss is added to alleviate the class imbalance problem, forming the cross-entropy-Dice loss function, which is the primary and secondary loss function for remote sensing.L seg Defined as: (1) (2) (3) in, y i Representing the i The true value of each pixel. y i =1 indicates that the pixel is a road. y i =0 indicates that the pixel is the background; p i Representing the i Predicted probability of each pixel ; N It is the total number of pixels; =1×10 -5 It is the gradient factor used to smooth the loss; α It is a hyperparameter that adjusts the ratio of cross-entropy loss to Dice loss; based on engineering experience, it is chosen to be 0.4.
[0027] S4 inputs the raw remote sensing images into the trained model for testing. First, the encoder extracts multi-resolution road features from the raw remote sensing images. , Secondly, Input road feature information into the RSHS module and RFSG module respectively. and road structure information Then, these features are uniformly input into the MVFA module for information fusion and alignment to obtain accurate road feature representations. Finally, precise road feature characterization will be performed. The input decoder completes the remote sensing road extraction, and the output is the extracted structure.
[0028] Preferably, a road extraction network based on GCN-enhanced road feature-structure information perception has the following specific structure: Figure 1 As shown, specifically: 1.1 Encoder Semantic segmentation models such as SegNet, DeconvNet, and U-Net are prone to losing effective information and shifting positional and feature information due to multiple upsampling and downsampling operations during encoding and decoding. The HRNet network, however, maintains high-resolution feature representation throughout the feature extraction process and repeatedly performs feature fusion, minimizing information loss. Therefore, this invention selects HRNet as the encoder network to extract initial features from remote sensing images.
[0029] like Figure 2 As shown, HRNet includes four feature extraction branches, each yielding a feature map. l=1,2,3,4. The first feature extraction branch takes the remote sensing image as input. While maintaining the same resolution, the resolution is increased to C-dimensional; the remaining three feature extraction branches all use convolutional units with a stride of 2 to successively halve the resolution and increase the number of channels. Each feature extraction branch contains multiple... The convolutional unit consists of convolutional layers, batch normalization layers, ReLU, and residual connections; simultaneously, feature fusion between branches of different resolutions is repeatedly performed during feature extraction to obtain multi-resolution road features. , .
[0030] 1.2 GCN-based dual-view perceptron 1.2.1 Graph Convolutional Neural Networks For a given graph and its adjacency matrix Sum-degree matrix The propagation rules in a multi-layer graph convolutional network are as follows: (4) in, Indicates the first n Layer vertex features, Indicates the first n Layer-learnable weight matrix, It is a symmetric normalized Laplace matrix ( () represents the relationships between different nodes. It is a non-linear activation function.
[0031] The propagation process of GCN essentially involves averaging the features of a node itself and its neighboring nodes. Compared to CNN, GCN uses the Laplacian matrix, which represents the relationships between nodes, to aggregate and transmit information during its propagation, allowing it to better learn the relationships between nodes and the global features of the graph.
[0032] 1.2.2 Road Feature Saliency Map Reasoning Module The construction of a reasonable Laplacian matrix directly affects the transfer and updating of features between nodes. For two-dimensional images, a common approach is to treat image pixels or regions as nodes to establish a fully connected graph and construct a Laplacian matrix for it. However, this type of method associates all nodes with their surrounding nodes without considering whether there are interrelationships between nodes. Based on this, this invention proposes a Road Feature Saliency Graph Inference Module (RFSG), such as... Figure 3As shown above, RSFG first divides the feature map into regions and calculates the similarity of the regional information as a similarity matrix. This matrix describes whether different regions have similarity relationships while also characterizing the saliency level of road features. Then, the similarity matrix is used as the Laplacian matrix in GCN to measure whether different regions have similarity relationships based on the saliency level of road features. Finally, due to the participation of the similarity matrix, the model is guided to perceive and propagate information from different regions during graph inference, thereby achieving a redistribution of road feature weights.
[0033] For details on the implementation process, please refer to [link / document / etc.]. Figure 3 Bottom: 1.2.2.1 Constructing a similarity matrix First, the region coding method proposed in ViT is used to extract deep road features. Divided into Each region contains [number] areas. Each feature element. The features of the partitioned region are: ,in Represents the original feature size and number of channels. This represents the feature size and number of channels after partitioning.
[0034] Then, the features of the encoded region Using convolution Extract The road characteristics of each region are analyzed and the matrix is transposed. At the same time, similar to the self-join operation in GCN, for Perform global pooling (GP.) and diagonalization (Diag.) to generate a region self-connection matrix. .
[0035] Finally, as shown in equation (5), multiply the above three matrices and pass through... Softmax The similarity between the feature information of each region and the feature information of the other regions is calculated and used as a similarity matrix. .
[0036] (5) As can be seen, the similarity matrix reflects, on the one hand, the differences in the deep characteristics of roads between different regions; on the other hand, regions with lower road feature saliency have lower similarity to other regions, thus the matrix simultaneously characterizes the level of road feature saliency. Using it as a Laplace matrix achieves the purpose of measuring the interrelationships between regions through the level of feature saliency.
[0037] 1.2.2.2 According to the layer-by-layer propagation rules of multi-layer graph convolutional networks, the module learning process is expressed as Equation (6), resulting in a feature map containing rich road feature information. .
[0038] The similarity matrix participates in the graph reasoning process, guiding the model to aggregate and propagate road feature information from different regions and averaging the feature weights of different regions. Through multiple rounds of iterative adaptive updates to the similarity matrix, the model has the ability to equally consider regions with different feature saliency levels.
[0039] (6) in, It is a constructed similarity matrix; It is a learnable weight matrix, equivalent to performing a convolution on the features; It is a non-linear activation function, and this invention uses the ReLU function.
[0040] 1.2.3 Road Structure Isomorphic Spatial Graph Reasoning Module GCN employs convolution operations to achieve the transmission and interaction of node information, effectively modeling the dependencies between nodes. Existing methods often use global modeling to perceive road dependencies, which cannot directly establish connections between roads at various locations while also resulting in high computational complexity. Based on this, this invention proposes a Road Structure Isomorphic Spatial Graph Reasoning Module (RSHS), such as... Figure 4 As shown above, RSHS first captures roads scattered in different locations and establishes a homogeneous space for them. Each node in the homogeneous space contains structural information about its corresponding road. Then, the homogeneous space is treated as a fully connected graph, constructing a Laplacian matrix, and the node information is propagated and aggregated through graph convolution. Since the nodes in the homogeneous space contain structural information about roads in different locations, all nodes interact with each other without considering their interrelationships. Finally, the node information and dependencies perceived in the homogeneous space are mapped back to the original space, completing the perception of the overall road network structure.
[0041] For details on the implementation process, please refer to... Figure 4 The bottom side.
[0042] First, regarding the deep features of the road Through convolution and Capture roads scattered in different locations in space, among which and These are learnable convolutional kernels. To improve adaptability to irregular road structures, two different convolutional kernels are used here to enhance the expressive power of the mapping function while reducing noise information in the original features.
[0043] Simultaneously, the road structure isomorphism space corresponding to the road information captured in the above steps is constructed using the design formula (7). , It is the number of nodes in the isomorphic space. D It is the structural information dimension.
[0044] (7) Then, refer to formula (4) to establish the Laplace matrix for the structural isomorphism space. This involves participating in the graph reasoning process, enabling direct information exchange between nodes representing road structure information. Typically, remote sensing images only contain a small number of roads; therefore, when constructing a structurally isomorphic space... The matrix dimension is typically set to 16×32 for features, which greatly reduces the computational complexity of the process while more accurately reflecting road structure information.
[0045] Finally, convolution and transpose convolution are used to backmap the nodes and their relationships in the isomorphic space back to the original space. This process is expressed as Equation (8). The Laplacian matrix representing the road relationships and the isomorphic space containing road structure information participate in the module learning process, establishing connections between the originally isolated and scattered roads, and efficiently improving the model's ability to perceive the overall road network structure.
[0046] (8) 1.2.4 Viewpoint Feature Fusion and Alignment Strategy The feature-structure information mined by the RSFG and RHSH modules can be considered as remote sensing road information from two perspectives, and they share a potential common representation, such as... Figure 5 As shown. Information from different perspectives should be consistent and complementary; therefore, they need to be aligned and fused to generate a unified road information representation. Based on this, this invention proposes a perspective feature fusion and alignment strategy, such as... Figure 6 As shown.
[0047] The feature fusion component completes the fusion of information from different views at the feature level through three steps: squeezing, excitation, and reweighting. First, the mined multi-scale view information is fused... and The splicing is performed along the channel dimension to obtain the splicing features. Subsequently, through extrusion splicing features Obtain global feature distribution , This reflects the distribution of features within the layer. The calculation process for the extrusion operation is as follows: (9) Then, As input to the activation module, the activation module consists of two fully connected layers, one ReLU activation layer, and an activation function (Sigmoid). Through the two fully connected layers, the feature information of each channel is effectively fused to obtain the weight matrix. The calculation process for the stimulus operation is as follows: (10) in, It reflects the weight of each feature. and It can be learned through fully connected layers and non-linear layers. r It is a scaling parameter (C / 2 is usually chosen based on engineering experience).
[0048] Subsequently, the weight matrix splicing features Multiplication allows for the reweighting process, resulting in fused features. ,Right now: (11) During the optimization process, the network learns... and This allows for the selection of features from different dimensions and the acquisition of the final fused features. .
[0049] Due to fusion characteristics Because these features are obtained from different scales and perspectives, a large amount of information within them is not aligned to achieve a consistent representation. Here, based on the idea that large convolutional kernels have a stronger ability to perceive contextual information, we design a simple alignment module. This module, as shown in formula (12), upsamples the low-resolution fused features and downsamples the high-resolution fused features, then adds them element-wise. Simultaneously, a 7×7 large convolution is introduced during the upsampling and downsampling process to better perceive contextual information, achieving feature alignment and obtaining accurate road feature representations. , l =1,2,3,4.
[0050] (12) 1.3 Decoder Since the encoder and the GCN-based dual-view feature perceptron have accurately modeled the road features and structure, they output four feature representations at different resolutions. , l=1,2,3,4. Therefore, the decoder only needs to consider upsampling low-resolution features to recover high-resolution feature representations to output road extraction results. However, directly upsampling from low resolution to high resolution will lead to the loss of a large amount of effective information. To minimize the loss of effective information during the upsampling process, this invention adopts a progressive upsampling strategy in the decoder, such as... Figure 7 As shown. Specifically, the progressive upsampling strategy can be expressed as an iterative process of formula (13), where l= 2,3,4. This strategy employs a progressive, resolution-wise sampling and fusion approach to minimize information loss caused by offsets between different resolutions and excessive sampling factors. Compared to directly upsampling features from different resolutions to a uniform size before fusion, this minimizes information loss and offset.
[0051] (13) Finally, for the fully fused high-resolution characterization Only simple convolution and Softmax The designed classifier matches the category of each pixel to achieve accurate extraction of roads from remote sensing images.
[0052] 1.4 Loss Function Road extraction from remote sensing images is a binary classification dense prediction problem, and such problems typically choose the cross-entropy loss function (CLOSE). This invention statistically analyzed the road proportions in the Massachusetts and DeepGlob remote sensing road datasets, finding them to be 4.239% and 2.864% respectively, which is relatively low compared to buildings, farmland, and trees. Using only cross-entropy loss can easily weaken the model's focus on road type foreground, causing the learning process to get stuck in a local minimum of the loss function.
[0053] Considering Dice loss ( This invention emphasizes equal importance for each class during training. It supplements the cross-entropy loss function with Dice loss to alleviate class imbalance, forming the cross-entropy-Dice loss remote sensing primary and secondary loss function. L seg Defined as: (1) (2) (3) in, y i Representing the i The true value of each pixel. y i =1 indicates that the pixel is a road.y i =0 indicates that the pixel is the background; p i Representing the i Predicted probability of each pixel ; N It is the total number of pixels; =1×10 -5 It is the gradient factor used to smooth the loss; α This is a hyperparameter that adjusts the ratio of cross-entropy loss to Dice loss; 0.4 was chosen based on experimental results.
[0054] 2. Experiment and Results Analysis This invention selects the Massachusetts remote sensing road dataset and the DeepGlobe remote sensing road dataset for experiments.
[0055] The Massachusetts remote sensing road dataset consists of 1171 images, each 1500×1500 pixels, covering over 2600 areas of Massachusetts, USA. km 2 The dataset consists of remote sensing images. The ground resolution is 1 m / pixel, and it contains 1108 training images, 14 validation images, and 49 test images. To standardize the size, the original 1500×1500 data was padded to 1536×1536 pixels at the bottom and right, and then cropped into nine 512×512 images using a sliding window method.
[0056] The DeepGlobe remote sensing road dataset has a ground resolution of 0.5m. / Pixels, consisting of 8570 images, each 1024×1024 pixels, covering a total area of 2200 square meters in Thailand, Indonesia, and India. km 2 The remote sensing images were composed of [references]. The 6226 remote sensing images and their labeled images were divided into a training set of 4696 images and a test set of 1530 images. Finally, the original 1024×1024 images were cropped into four 512×512 images using a sliding window method.
[0057] After cropping, the sample images in the experimental dataset are as follows: Figure 8 As shown, the upper part is the Massachusetts remote sensing road dataset, and the lower part is the DeepGlobe remote sensing road dataset.
[0058] 2.2 Evaluation Indicators To verify the effectiveness of the algorithm proposed in this invention, this invention uses four commonly used evaluation metrics in semantic segmentation to evaluate the performance of different algorithms: accuracy ( PrecisionRecall rate represents the ratio of correctly predicted roads to all predicted roads; Recall This indicates the ratio of predicted roads to actual roads; F1 Fraction( F1 score The intersection-over-union ratio (IoU) is the harmonic mean of precision and recall, used to balance these two metrics; Intersection Over Union, IoU The area represented by () indicates the ratio between the overlap area of the extracted results and the actual labels and the total area. The calculations for each indicator are as follows: (14) (15) (16) (17) In the above formula, TP Predict the total number of correctly identified pixels for each road category; FP The total number of pixels that are incorrectly predicted for the road category; FN The total number of pixels that are incorrectly predicted for the background category.
[0059] 2.3 Experimental Setup All experiments in this invention used an NVIDIA GeForce GTX 3090 (24G) graphics card and the PyTorch deep learning framework to build, train, and test models. AdamW was used as the optimizer, with a batch size of 8, a learning epoch of 200, and an initial learning rate of 5×10⁻⁶. -4 Furthermore, the CosineAnnealingLR learning rate strategy was used to adjust the learning rate, with an adjustment period of 50 rounds and a minimum learning rate set to 1×10. -6 .
[0060] To enhance the model's generalization ability, standard data augmentation is used during training, including random rotation, random flipping, random Gaussian blur, random masking, and random contrast adjustment strategies to enhance the training data.
[0061] 2.4 Comparative Experiment 2.4.1 Comparative Experiment with Massachusetts Remote Sensing Road Dataset Table 1 shows the quantitative evaluation results of multiple algorithms on the Massachusetts remote sensing road dataset. Experimental results indicate that RDPGNet enhances the perception of road feature-structure information, in... Recall , F1 score and IoU In terms of the three metrics (80.31%, 79.14%, 65.48%), the algorithm proposed in this invention significantly outperforms other mainstream algorithms. In the Recall metric, the algorithm in this invention is 1.30% higher than the best comparison algorithm, which is relatively high. Recall This means fewer missed detections in road prediction, which is crucial for road prediction tasks. Compared to DDU-Net, although RDPGNet... Precision Lower, but Recall Far surpasses DDU-Net. More importantly, in terms of comprehensive... Precision and Recall Indicators F1 score In the comparison, the algorithm proposed in this invention outperforms the best algorithm by 0.95%. This directly reflects the quality of the extraction results. IoU In the metrics, RDPGNet outperformed the best comparison algorithm by 1.29%.
[0062] Table 1. Quantitative Analysis Results of the Massachusetts Remote Sensing Road Dataset
[0063] Qualitative evaluation results of multiple algorithms on the Massachusetts remote sensing road dataset, as follows: Figure 9 As shown in the visualization results, the algorithm proposed in this invention is significantly superior to other comparative algorithms. For example, in the first row of red areas, there are both main roads with significant features and auxiliary roads with blurred features. Due to the guidance of the RFSG module, the algorithm proposed in this invention can completely predict the convergence of the auxiliary roads on both sides to the main road. In the second row of red areas, the road structure is complex and the features are blurred. RDPGNet has a stronger perception ability of road features and structural information, and the extraction results are significantly better than other comparative algorithms. In the third row of red areas, the road features are severely obscured by trees and vehicles. The algorithm proposed in this invention can handle this situation better. In the fourth row of red areas, the road features are almost completely obscured by trees. The RFSG module enhances the attention to areas with blurred features, while the RSHS module perceives long-distance road dependencies, successfully predicting the severely obscured roads. In the fifth row of red areas, the RSHS module perceives the dependencies between roads distributed in different locations, and the completeness of the extracted road network is better than other methods.
[0064] 2.4.2 Comparative Experiment of DeepGlobe Remote Sensing Road Dataset Table 2 shows the quantitative evaluation results of multiple algorithms on the DeepGlobe remote sensing road dataset. Similar to the experimental results on the Massachusetts remote sensing road dataset, the algorithm proposed in this invention... Recall , F1 score and IoU It outperforms other mainstream algorithms in three metrics (83.38%, 82.04%, 69.48%). Especially in... Recall In terms of metrics, the algorithm proposed in this invention outperforms the best comparison method by 2.46%, indicating a greater advantage in prediction tasks. For metrics that comprehensively reflect the algorithm's performance... F1 scoreand directly reflects the extraction results IoU In terms of metrics, the algorithm of this invention outperforms the best comparison method by 0.82% and 1.11%, respectively.
[0065] Table 2. Quantitative Analysis Results of DeepGlobe Remote Sensing Road Dataset
[0066] Qualitative evaluation results of the DeepGlobe remote sensing road dataset are as follows: Figure 10 As shown in the visualization results, the algorithm proposed in this invention is significantly superior to other comparative algorithms. For example, in the first row of red areas, there are long-distance dependencies between the three roads, which are severely obscured by trees. The RSHS and RFSG modules work in parallel to enhance the perception of long-distance dependencies and fuzzy features of the roads. In the second row of red areas, there are both main roads with significant features and smaller roads with fuzzy features. The RFSG module can effectively guide the model to pay equal attention to different types of roads, so only the method of this invention can completely extract the smaller roads. In the third row of red areas, there are unpaved roads, and there are paved roads in the upper left corner of the image, resulting in different levels of road feature salience in these two areas. The algorithm of this invention can completely extract the unpaved roads due to the participation of the RFSH module. In the fourth row of red areas, the roads have an irregular structure and long-distance dependencies. The RSHS module efficiently models the road structure and accurately extracts the road information. In the fifth row of red areas, the road features are easily confused with the surrounding environment. Because RDPGNet has a stronger feature perception capability, it performs better than other algorithms in terms of extraction results.
[0067] This invention addresses two challenging problems in remote sensing road extraction: the inability of models to equally focus on regions with different levels of road feature saliency and the difficulty in efficiently modeling the overall road network structure. The proposed RDPGNet incorporates three main innovative ideas. First, considering the characteristics of average node features and long-distance information interaction in the information propagation process of GCN, GDVP is designed based on this. Second, in the first stage of GDVP, a Road Feature Saliency Graph Inference Module (RFSG) and a Road Structure Isomorphism Spatial Graph Inference Module (RSHS) are designed to mine road feature information and structural information, respectively. Finally, in the second stage of GDVP, a viewpoint feature fusion and alignment strategy is used to fully fuse and align road information from different viewpoints and scales, resulting in a complementary and consistent road feature representation.
[0068] Quantitative and qualitative analysis of experimental results on two benchmark datasets shows that the algorithm proposed in this invention has significant advantages in remote sensing road extraction tasks.
[0069] This invention also provides a dual-view information perception road extraction system based on GCN, comprising: The model building module is used to build a road extraction model that enhances the perception of feature-structure dual-view information using GCN. The road extraction model includes an encoder, a GCN-based dual-view perceptron, and a decoder. The encoder selects HRNet as the backbone network. The GCN-based dual-view perceptron includes a parallel road feature saliency graph inference module, a road structure isomorphic spatial graph inference module, and a view feature fusion alignment strategy that connects the road feature saliency graph inference module and the road structure isomorphic spatial graph inference module simultaneously. The road extraction module is used to input the original remote sensing image into the road extraction model based on GCN-enhanced feature-structure dual-view information perception to extract the road structure map.
[0070] In another embodiment of the present invention, a computer device is provided, the computer device including a processor and a memory, the memory being used to store a computer program, the computer program including program instructions, and the processor being used to execute the program instructions stored in the computer storage medium.
[0071] The processor may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing and control core of the terminal, and is suitable for implementing one or more instructions. Specifically, it is suitable for loading and executing one or more instructions to realize the corresponding method flow or corresponding function. The processor described in this embodiment of the invention can realize the operation of the dual-view information perception road extraction method based on GCN.
[0072] In another embodiment of the present invention, a storage medium is provided, specifically a computer-readable storage medium (Memory). This computer-readable storage medium is a memory device within a computer device used to store programs and data. It is understood that the computer-readable storage medium here can include both the built-in storage medium of the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space containing the terminal's operating system. Furthermore, this storage space also contains one or more instructions suitable for loading and execution by a processor. These instructions can be one or more computer programs (including program code).
[0073] It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk storage device. A processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the GCN-based dual-view information perception road extraction method in the above embodiments.
[0074] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0075] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0076] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0077] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A dual-view information perception road extraction method based on GCN, characterized in that, The original remote sensing image is input into a road extraction model based on GCN-enhanced feature-structure dual-view information perception to extract a road structure map. The road extraction model includes an encoder, a GCN-based dual-view perceptron, and a decoder. The encoder uses HRNet as the backbone network. The GCN-based dual-view perceptron includes a parallel road feature saliency graph inference module, a road structure isomorphic spatial graph inference module, and a view feature fusion alignment strategy that connects the road feature saliency graph inference module and the road structure isomorphic spatial graph inference module. In the road feature saliency map reasoning module: 1) Divide the feature map into regions and calculate the similarity of the region information to form a similarity matrix: 1.1) The deep road features obtained by the encoder HRNet Divided into Each region contains [number] areas. The region features are obtained from the feature elements. ,in Represents the original feature size and number of channels. This represents the feature size and number of channels after partitioning; 1.2) Regional characteristics Convolution Extract The road features of each region are analyzed and the matrix is transposed to obtain the road feature transpose matrix. ; 1.3) Regional characteristics Perform global pooling and diagonalization to generate a region self-connected matrix. ; 1.4) Perform the above convolution Road feature transpose matrix Region self-connection matrix Multiply and perform Softmax Calculate and obtain the similarity matrix. ; 2) Using the similarity matrix as the Laplacian matrix in the GCN graph convolutional neural network, road structure information is obtained according to the layer-by-layer propagation rules of the multi-layer GCN graph convolutional neural network. Specifically: (6) in, It is a similar matrix; It is a learnable weight matrix; It is a non-linear activation function, using the ReLU function; In the road structure isomorphic spatial graph reasoning module 1) Through convolution and Deep road features obtained by the capture encoder HRNet Roads scattered in different locations form a road structure isomorphic space. The details are as follows: (7) in, and These are learnable convolutional kernels; It represents the number of nodes in the isomorphic space. D It is the structural information dimension; 2) By using convolution and transpose convolution, the node information and dependencies perceived in the isomorphic space are mapped back to the original space to obtain road feature information. The details are as follows: (8) in, For Laplace matrix, ; It is a space with isomorphic road structure. The weight matrix is a learnable matrix. It is a non-linear activation function; In the viewpoint feature fusion alignment strategy: The road structure information is obtained from the road feature saliency map reasoning module. Road feature information obtained from the road structure isomorphic spatial graph reasoning module The splicing is performed along the channel dimension to obtain the splicing features. ; Through extrusion splicing features Obtain global feature distribution The extrusion operation is as follows: (9) Distribution of global features Perform activation operations to obtain the weight matrix. The details are as follows: (10) in, It reflects the weight of each feature. and It is learned through fully connected layers and non-linear layers. r For scaling parameters; weight matrix splicing features Multiply to obtain the fusion feature ; Low-resolution fusion features Upsampling is performed on high-resolution fused features. Downsampling is performed, and then element-wise summation is performed to obtain the road feature representation. .
2. The method for road extraction based on GCN dual-view information perception according to claim 1, characterized in that, The decoder employs a progressive upsampling strategy.
3. The dual-view information perception road extraction method based on GCN according to claim 1, characterized in that, Both the encoder and decoder have four layers.
4. The dual-view information perception road extraction method based on GCN according to claim 1, characterized in that, The road extraction model is trained by a road extraction network, which employs the cross-entropy-Dice loss remote sensing master-slave loss function during training. L seg The details are as follows: (1) (2) (3) in, y i Representing the i The true value of each pixel. y i =1 indicates that the pixel is a road. y i =0 indicates that the pixel is the background; p i Representing the i Predicted probability of each pixel ; N It is the total number of pixels; =1×10 -5 It is the gradient factor used to smooth the loss; α It is a hyperparameter that adjusts the ratio of cross-entropy loss to Dice loss.
5. A dual-view information perception road extraction system based on GCN, characterized in that, The system comprises the steps of implementing the dual-view information perception road extraction method based on GCN as described in any one of claims 1-4, wherein the system includes: The model building module is used to build a road extraction model that enhances the perception of feature-structure dual-view information using GCN. The road extraction model includes an encoder, a GCN-based dual-view perceptron, and a decoder. The encoder selects HRNet as the backbone network. The GCN-based dual-view perceptron includes a parallel road feature saliency graph inference module, a road structure isomorphic spatial graph inference module, and a view feature fusion alignment strategy that connects the road feature saliency graph inference module and the road structure isomorphic spatial graph inference module simultaneously. The road extraction module is used to input the original remote sensing image into the road extraction model based on GCN-enhanced feature-structure dual-view information perception to extract the road structure map.
6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the dual-view information perception road extraction method based on GCN as described in any one of claims 1-4; or, when the processor executes the computer program, it implements the functions of each module in the dual-view information perception road extraction system based on GCN as described in claim 5.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the dual-view information perception road extraction method based on GCN as described in any one of claims 1-4; or, when the processor executes the computer program, it implements the functions of each module in the dual-view information perception road extraction system based on GCN as described in claim 5.
Citation Information
Patent Citations
Remote sensing image road extraction method based on graph convolution
CN112766280A
Remote sensing image road extraction method and system
CN114821342A
