A method for extracting rural roads from remote sensing images based on a multi-task structure
By combining image enhancement, multi-level attention modules, and edge detection tasks with a multi-task structure-based method for extracting rural roads from remote sensing images, the complexity and narrowness of rural road extraction in remote sensing images are solved, achieving efficient and accurate road extraction results.
Patent Information
- Application Number
- CN202410109383.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-01-26
AI Technical Summary
Existing technologies struggle to effectively extract rural roads from remote sensing images, especially in complex backgrounds where they are difficult to identify and lack continuity, and the detection accuracy for narrow roads is insufficient.
A rural road extraction method based on remote sensing imagery with a multi-task structure is adopted. By combining image enhancement, multi-task road extraction network, segmentation loss function, edge loss function and coarse segmentation loss function, the network parameters are iteratively trained and optimized. Multi-level attention module and edge detection auxiliary task are used to enhance feature extraction and detection accuracy.
It improves the efficiency of feature extraction and target extraction performance of rural roads, effectively infers occluded roads while maintaining complete edge contours, and enhances detection accuracy and anti-interference ability in complex backgrounds.
Smart Images

Figure CN117953375B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of image processing and computer vision technology, and in particular to a method for extracting rural roads from remote sensing images based on a multi-task structure. Background Technology
[0002] Rural roads are the lifeblood of economic development in rural areas. Rural road extraction is a key technology in rural road construction and is widely used in rural planning, traffic management, emergency response, disaster management, agricultural development, and traffic navigation. However, the complexity and irregularity of rural roads present several challenges: 1) Rural roads often appear similar to background features such as bare land, farmland, and building rooftops in remote sensing images, making inter-class differences unclear and difficult to identify. 2) Rural roads are often obscured by trees and shadows, resulting in broken and discontinuous extracted roads. 3) Compared to urban roads, rural roads are narrower, typically appearing as only a few to a dozen pixels wide in remote sensing images, leading to poor extraction integrity. Therefore, rural road extraction remains a challenging task.
[0003] Numerous research methods for extracting roads from remote sensing images have been accumulated both domestically and internationally, mainly falling into two categories: traditional road extraction methods and deep learning-based road extraction methods. Traditional road extraction methods largely extract the inherent features of roads in the image, such as spectral and textural features, and then use these features to extract the road's location information within the image. While these features are simple and easy to understand, relying solely on these simple features for road extraction yields limited results. In recent years, research using deep learning methods to extract roads from remote sensing images has increased significantly. This is primarily because Convolutional Neural Networks (CNNs) in deep learning possess the ability to self-extract features, moving away from relying on single features for road identification. CNNs can utilize training samples to learn various road features in the image, as well as various feature combinations, to identify roads. Current domestic and international research based on deep learning can be broadly categorized into three methods: GANs models, deconvolutional models, and FCN models. Each model has its own limitations and advantages. For example, simple interpolation is used in the upsampling of FCN models. This upsampling-downsampling structure can obtain pixel-to-pixel inference and learn end-to-end inference, but it ignores the details of narrow roads, resulting in a relatively coarse result. To address the road connectivity problem encountered by FCN models and the low spatial constancy of segmentation maps, deconvolutional models can achieve higher spatial accuracy and greater adaptability because the latter uses low-level information in the deconvolutional layers. However, applying this model requires significant storage and memory usage, as well as high computational complexity. In contrast, GANs models are more efficient because they can achieve constant segmentation maps with road boundary information. However, these models suffer from a lack of convergence, gradient violation, and complex training issues. Compared to traditional methods, deep learning methods significantly improve the accuracy of road extraction. However, due to the complexity and narrowness of roads, extracting a complete and detailed road network remains a challenge. Summary of the Invention
[0004] The technical problem to be solved by this invention is to provide a method for extracting rural roads from remote sensing images based on a multi-task structure, which can effectively enhance the efficiency of rural road feature extraction and improve target extraction performance.
[0005] To address the aforementioned technical problems, this invention provides a method for extracting rural roads from remote sensing images based on a multi-task structure, comprising the following steps:
[0006] Step 1: Perform image augmentation on the acquired rural road data, and divide the augmented dataset into a training set and a test set. The training set is used to train the network, and the test set is used to test the model performance.
[0007] Step 2: Construct a multi-task road extraction network and input the enhanced image I into the network;
[0008] Step 3: Construct segmentation loss function, edge loss function, and coarse segmentation loss function, and use the sum of the three as the total loss function. Iterate and train to optimize the network parameters. After the loss stabilizes, input the detection image into the trained neural network to obtain the final detection result image.
[0009] Preferably, in step 1, image enhancement is performed on the acquired rural road data, including: unifying image size, rotation, scaling, color gamut transformation, and pixel grayscale normalization.
[0010] Preferably, in step 2, the multi-task road extraction network includes four encoding blocks, a multi-level attention module, two decoding blocks, an edge refinement head, and an edge label generation module. First, road features are extracted through the encoding blocks. Second, the road feature representation is enhanced through the multi-level attention module, the edge refinement head, and the edge label generation module. Finally, the features are mapped back to the input image through the decoding blocks.
[0011] Preferably, an encoder-decoder network framework is adopted, with the encoding part consisting of four stages and the decoding part consisting of two stages; ResNet50 is used as the backbone network, and the enhanced image I is input into the backbone network to obtain the output features F of different layers. i (i = 1, ..., 4); Each decoder block consists of two 3×3 convolutional layers, which fuse the backbone features with the feature layers corresponding to F2 and F3, fuse the shallow features with rich spatial and contour information with the deep features with rich semantic information to generate a global feature map, and feed the feature map into a 1×1 convolutional layer to obtain the final pixel-level prediction result map.
[0012] Preferably, the edge refinement head includes a spatial branch and a semantic branch. The spatial branch generates an edge prediction map under the supervision of the edge label map, consisting of a 1×1 convolutional layer and a 1×1 convolution. The edge label generation module extracts edge information using Laplacian operators with strides of 1, 2, and 4, respectively, to obtain edge feature maps of the original size, downsampled by 2 times, and downsampled by 4 times. Bilinear interpolation is used to restore the edge feature maps of different sizes to their original size, and then fusion is achieved through 1×1 convolution, resulting in edge label maps with multi-scale detail information. A threshold of 0.1 is used to convert the edge feature maps into edge label maps with edge detail information. Under the supervision of the generated edge label maps, shallow features will learn more edge detail information.
[0013] Preferably, the semantic branch is further learned by fusing edge features and backbone features, thereby promoting the expression of high-level semantic information; attention enhancement is applied to the edge features to obtain the attention weights of the edge prediction map as follows:
[0014] α N =σ(C N )
[0015] Among them, C N The edge prediction map is defined by N, where N is the number of pixels and σ is the sigmoid function. The resulting attention weights are used to weight the edge prediction map, resulting in an edge feature layer that is fused with the backbone features.
[0016]
[0017] in, To perform element-wise dot product, C 1×1 For a 1×1 convolution operation, S N This is the edge feature layer after attention weighting.
[0018] Preferably, the multi-level attention module includes coarse segmentation, self-attention, cross-attention, and attention enhancement; coarse segmentation is performed on the input backbone feature layer, the coarse segmentation process includes a 1×1 convolutional layer and a 1×1 convolution, finally generating a coarse segmentation prediction map, where the value of each smallest unit indicates the degree to which the corresponding pixel belongs to a road or not; spatial softmax is used to normalize the two object regions {M1, M2} to obtain the category information of each pixel:
[0019]
[0020] Where C is the number of categories; x i β represents the pixel values of the coarse segmentation image; S is the softmax function; β i For normalized weights;
[0021] During the coarse segmentation of the backbone feature layer, supervised loss is used to introduce knowledge hidden in the dataset from the labels into the model, and distillation loss is used to introduce knowledge from the deeper parts of the model into the shallower parts. The road prediction map adds a strong consistency constraint to the coarse segmentation. The road prediction map is a probability map transformed by the sigmoid function, defined as follows:
[0022]
[0023] Where x is the final output value, and p(x) is the probability that the pixel is a positive sample, with a value between 0 and 1;
[0024] The self-attention component performs initial aggregation of global context information, aggregating the pixel representations of road regions into a road region representation. The category information of each pixel obtained after coarse segmentation is used as the weights for the self-attention component. The pixel representations of road regions are obtained by transforming the input backbone features through a 3×3 convolutional layer. The weighted aggregation of these pixel representations yields the final road region representation.
[0025]
[0026] Among them, z i β is the pixel representation of the input features. i For normalized weights;
[0027] The cross-attention component enhances and aggregates global context information, combining the road object region representation into an object context representation; the relationship between each pixel and the road region representation is calculated as follows:
[0028]
[0029] Among them, z i r is the pixel representation of the input features. i The area is represented by φ(·) and These are two functions consisting of 1×1 convolutional layers; As a variation of the dot product, the correlation between matrices is calculated; the regional representations of roads are weighted to obtain the final context representation:
[0030]
[0031] Where, r i The region representation of the road, i.e., the value in the attention function; ω i The attention weights describe the relationship between each pixel and the road region. The resulting context representation is fused with the pixel representation to obtain the output feature layer after global context aggregation.
[0032] Preferably, in step 3, the sum of the segmentation loss function, edge loss function, and coarse segmentation loss function is used as the total loss function. The coarse segmentation loss function is further divided into a distillation loss function and a supervised loss function. The network parameters are iteratively trained and optimized. After the loss stabilizes, the detection image is input into the trained neural network to obtain the final detection result image. This loss is expressed as:
[0033] L = L seg +η×L edge +γ×L c-seg +μ×L kd
[0034] Among them, L seg It is the binary cross-entropy loss between the predicted image and the true label image, L edge It is the loss of the edge detection auxiliary task, L c-seg It is the supervised loss in coarse segmentation, L kd This represents the distillation loss in coarse segmentation, where η, γ, and μ are the loss weight coefficients for edge loss, supervision loss, and distillation loss, respectively. seg L edgeL c-seg With L kd The calculation method is as follows:
[0035]
[0036]
[0037]
[0038]
[0039] Among them, y i Represents the pixels of the edge label map; Represents the edge prediction map pixels; N is the total number of pixels; ε is the Laplacian smoothing parameter to avoid division by zero; in the experiment, ε was set to 1. This represents the probability that each pixel in the coarse segmentation prediction map (student model) is a road. The probability that each pixel in the road prediction map (teacher model) is a road is given; the test samples are input into the network to obtain the final extraction results.
[0040] The beneficial effects of this invention are as follows: (1) The multi-level attention module uses self-attention mechanism and cross-attention mechanism to construct road context information, making full use of the long-range dependency relationship of feature map, thereby inferring the occluded road; (2) The edge detection auxiliary task enables the network to learn more edge linear features, thereby improving the detection accuracy of narrow roads, and at the same time, through spatial-semantic joint learning, it improves the anti-interference ability of the network in complex backgrounds; (3) The distillation mechanism can extract the knowledge learned by the deep network to the shallow layer, thereby enhancing the representation of semantic information in the multi-level attention module and balancing the accuracy and efficiency of the model; (4) The multi-scale feature fusion module fuses the shallow features with rich spatial location information with the deep features with rich semantic information, thereby improving the detection effect of the model on roads of different scales. Attached Figure Description
[0041] Figure 1 This is a schematic diagram of the method flow of the present invention.
[0042] Figure 2 This is a diagram of the overall architecture of the present invention.
[0043] Figure 3 This is a diagram illustrating the edge detection auxiliary task of the present invention.
[0044] Figure 4 This is a diagram of the multi-level attention module of the present invention.
[0045] Figure 5 This is a diagram showing the extraction results of the present invention on the test dataset. Detailed Implementation
[0046] like Figure 1 As shown, a method for extracting rural roads from remote sensing images based on a multi-task structure includes the following steps:
[0047] Step 1: Perform image augmentation on the acquired rural road data, and divide the augmented dataset into a training set and a test set. The training set is used to train the network, and the test set is used to test the model performance.
[0048] Step 2: Construct a multi-task road extraction network and input the enhanced image I into the network;
[0049] Step 3: Construct segmentation loss function, edge loss function, and coarse segmentation loss function, and use the sum of the three as the total loss function. Iterate and train to optimize the network parameters. After the loss stabilizes, input the detection image into the trained neural network to obtain the final detection result image.
[0050] This invention provides a specific embodiment using a dataset of 24,904 satellite images covering various road types in urban and rural areas. The images have rich backgrounds, including urban areas, rural areas, wilderness, coastlines, and tropical rainforests. The dataset was acquired by the DigitalGlobe satellite, with images uniformly sized at 512×512 pixels and a resolution of 50 cm / pixel. The entire dataset is divided into training and testing sets in a 9:1 ratio. The training set is used to train the network, while the testing set is used to monitor model performance and generalization ability, optimize hyperparameters, and save the optimal model. This embodiment is implemented on a computer with an Intel Core i7-6800K CPU, an NVIDIA TITAN XP GPU, and 47.9GB of RAM, using Python as the programming language.
[0051] During the training phase, input road images are grouped into sets of four. The SGD optimizer is used to estimate the network weight parameters, with an initial learning rate of 7e-3, adaptively adjusted according to the batch size. The weight decay coefficient is 1e-4. Network training iterates until the loss function stabilizes, at which point training stops. The total training epochs are set to 120. Performance validation and model saving are performed after each iteration. During detection, test images are input to verify the method's performance, and experimental results are saved. Figure 5 As shown.
[0052] like Figure 2 As shown, an encoder-decoder network framework is employed, with the encoding part consisting of four stages and the decoding part consisting of two stages. Specifically, ResNet50 is used as the backbone network, and the enhanced image I is input into the backbone network to obtain the output features F of different layers. i(i = 1, ..., 4). An auxiliary task for edge detection is applied to the feature layers corresponding to F2 and F3 to enhance the edge features of the road. Simultaneously, the extracted edge features are fused with the backbone features to promote the expression of semantic information. Multi-level attention modules are applied to F3 and F4 to aggregate global contextual information. A distillation mechanism is added to the coarse segmentation part of the multi-level attention modules to balance the model's accuracy and efficiency.
[0053] Constructing an edge detection auxiliary task, this branch includes an edge refinement head and an edge label generation module, such as... Figure 3 As shown, the edge refinement head comprises two branches: a spatial branch and a semantic branch. The spatial branch generates an edge prediction map under the supervision of the edge label map, consisting of 1×1 convolutional layers and 1×1 convolutions. The edge label generation module extracts edge information using Laplacian operators with strides of 1, 2, and 4, obtaining edge feature maps of the original size, downsampled by two times, and downsampled by four times, respectively. Then, bilinear interpolation is used to restore the edge feature maps of different sizes to their original size, and they are fused using 1×1 convolutions, resulting in edge label maps with multi-scale detail information. Finally, a threshold of 0.1 is used to convert the edge feature maps into edge label maps with edge detail information. Therefore, under the supervision of the generated edge label maps, shallow features will learn more edge detail information.
[0054] A semantic branch is constructed for the edge refinement head. This branch further learns by fusing edge features with backbone features, thereby promoting the expression of high-level semantic information. Road detection tasks can share features with edge detection auxiliary tasks, but not all shared features are suitable for edge detection. Edge detection tasks are more lightweight and focus more on shape information. Therefore, when fusing the learned edge features with backbone features, attention enhancement is needed for the edge features. The attention weights of the edge prediction map are obtained as follows:
[0055] α N =σ(C N )
[0056] Among them, C N The edge prediction map is defined by N, where N is the number of pixels and σ is the sigmoid function. The resulting attention weights are used to weight the edge prediction map, thus yielding the edge feature layer fused with the backbone features:
[0057]
[0058] in, To perform element-wise dot product, C 1×1 For a 1×1 convolution operation, S NThis is the edge feature layer after attention weighting. This edge detection task does not need to be used in the inference stage, therefore it does not require any inference cost.
[0059] Construct a multi-level attention module, which includes four parts: coarse segmentation, self-attention, cross-attention, and attention enhancement. Figure 4 As shown, we divide the image into two object regions {M1, M2}: road and non-road, represented by a coarse segmentation map. Specifically, first, we perform coarse segmentation on the input backbone feature layer. This coarse segmentation process includes a 1×1 convolutional layer and a 1×1 convolution, ultimately generating a coarse segmentation prediction map. The value of each smallest unit indicates the degree to which the corresponding pixel belongs to the road or non-road. Then, we use spatial softmax to normalize the two object regions {M1, M2} to obtain the category information for each pixel.
[0060]
[0061] Where C is the number of categories; x i β represents the pixel values of the coarse segmentation image; S is the softmax function; β i For normalized weights.
[0062] In the coarse segmentation of the backbone feature layer, we utilize supervised loss to introduce knowledge hidden in the dataset from the labels into the model, and distillation loss to introduce knowledge from deeper layers into shallower layers. Similar to the label map, the road prediction map adds a strong consistency constraint to the coarse segmentation. The road prediction map is a probability map transformed using the sigmoid function, defined as follows:
[0063]
[0064] Where x is the final output value, and p(x) is the probability that the pixel is a positive sample, with a value between 0 and 1.
[0065] Therefore, the road prediction map contains more information about positive and negative samples, such as the probability of some negative samples being much higher than that of others. Thus, the road prediction map is also known as a soft target. This operation only needs to be performed during training, reducing the computational resources required for the inference part.
[0066] The self-attention component performs initial aggregation of global context information, combining the pixel representations of the road region into a road region representation. Specifically, firstly, the category information of each pixel obtained after coarse segmentation is used as the weights of the self-attention component; the pixel representation of the road region is obtained by transforming the input backbone features through a 3×3 convolutional layer; finally, the pixel representations of the road region are weighted and aggregated to obtain the road region representation.
[0067]
[0068] Among them, z i β is the pixel representation of the input features. i For normalized weights.
[0069] The cross-attention component enhances and aggregates global context information, combining the road object region representation into an object context representation. First, we calculate the relationship between each pixel and the road region representation as follows:
[0070]
[0071] Among them, z i r is the pixel representation of the input features. i The area is represented by φ(·) and These are two functions consisting of 1×1 convolutional layers; This is a variation of the dot product, used to calculate the correlation between matrices. Then, we weight the region representations of the roads to obtain the final context representation:
[0072]
[0073] Where, r i The region representation of the road, i.e., the value in the attention function; ω i The attention weights represent the relationship between each pixel and the road region. The resulting context representation is then fused with the pixel representation to obtain the final output feature layer after global context aggregation.
[0074] Input image I enters the road feature extraction network to obtain the output features F of each layer. i (i = 1, ..., 4). The decoding part consists of two decoder blocks, each consisting of two 3×3 convolutional layers, fusing the backbone features with the corresponding feature layers F2 and F3. Shallow features with rich spatial and contour information are fused with deep features with rich semantic information to generate a global feature map. This feature map is then fed into a 1×1 convolutional layer to obtain the final pixel-level prediction result.
[0075] During network training, the sum of the segmentation loss function, edge loss function, and coarse segmentation loss function is used as the total loss function. The coarse segmentation loss function is further divided into a distillation loss function and a supervision loss function. The network parameters are iteratively trained and optimized. After the loss stabilizes, the detection image is input into the trained neural network to obtain the final detection result image. This loss can be expressed as:
[0076] L = L seg +η×L edge +γ×Lc-seg +μ×L kd
[0077] Among them, L seg It is the binary cross-entropy loss between the predicted image and the true label image, L edge It is the loss of the edge detection auxiliary task, L c-seg It is the supervised loss in coarse segmentation, L kd This represents the distillation loss in coarse segmentation, where η, γ, and μ are the loss weight coefficients for edge loss, supervision loss, and distillation loss, respectively. seg L edge L c-seg With L kd The calculation method is as follows:
[0078]
[0079]
[0080]
[0081]
[0082] Among them, y i Represents the pixels of the edge label map; Represents the edge prediction map pixels; N is the total number of pixels; ε is the Laplacian smoothing parameter to avoid division by zero; in the experiment, ε was set to 1. This represents the probability that each pixel in the coarse segmentation prediction map (student model) is a road. This represents the probability that each pixel in the road prediction map (teacher model) is a road.
[0083] During the testing phase, test samples are input into the network to obtain the final extraction results.
[0084] Figure 5 This is a demonstration image of the detection results in this embodiment, where a and c are the original input road images, and b and d are the output images extracted by the rural road extraction network. Figure 5 The extraction results show that the multi-task network proposed in this invention can effectively extract roads, infer occluded roads, and preserve complete edge contours, making it an effective method for rural road extraction.
Claims
1. A method for extracting rural roads from remote sensing images based on a multi-task structure, characterized in that, Includes the following steps: Step 1: Perform image augmentation on the acquired rural road data, and divide the augmented dataset into a training set and a test set. The training set is used to train the network, and the test set is used to test the model performance. Step 2: Construct a multi-task road extraction network and input the enhanced image I into the network. The multi-task road extraction network includes four encoding blocks, a multi-level attention module, two decoding blocks, an edge thinning head, and an edge label generation module. First, road features are extracted through the encoding blocks. Second, the road feature representation is enhanced through the multi-level attention module, the edge thinning head, and the edge label generation module. Finally, the features are mapped back to the input image through the decoding blocks. The multi-level attention module includes coarse segmentation, self-attention, cross-attention, and attention enhancement. It performs coarse segmentation on the main feature layer of the input. The coarse segmentation process includes a 1×1 convolutional layer and a 1×1 convolution, which finally generates a coarse segmentation prediction map. The value of each smallest unit indicates the degree to which the corresponding pixel belongs to the road or not. Spatial softmax is used to normalize the two object regions {M1, M2} to obtain the category information for each pixel: in, Number of categories; These are the pixel values of the coarsely segmented image; It is the softmax function; For normalized weights; During the coarse segmentation of the backbone feature layer, supervised loss is used to introduce knowledge hidden in the dataset from the labels into the model, and distillation loss is used to introduce knowledge from the deeper parts of the model into the shallower parts. The road prediction map adds a strong consistency constraint to the coarse segmentation. The road prediction map is a probability map transformed by the sigmoid function, defined as follows: in, For the final output value, It represents the probability that a pixel is a positive sample, and its value is between 0 and 1. The self-attention component performs initial aggregation of global context information, aggregating the pixel representations of road regions into a road region representation. The category information of each pixel obtained after coarse segmentation is used as the weights for the self-attention component. The pixel representations of road regions are obtained by transforming the input backbone features through a 3×3 convolutional layer. The weighted aggregation of these pixel representations yields the final road region representation. in, The pixel representation of the input features; For normalized weights; The cross-attention component enhances and aggregates global context information, combining the road object region representation into an object context representation; the relationship between each pixel and the road region representation is calculated as follows: in, The pixel representation of the input features; This represents the area of the road; and These are two functions consisting of 1×1 convolutional layers; As a variation of the dot product, the correlation between matrices is calculated; the regional representations of roads are weighted to obtain the final context representation: in, This represents the region of the road, i.e., the value in the attention function; The attention weights describe the relationship between each pixel and the road region. The resulting context representation will be fused with the pixel representation to obtain the output feature layer after global context aggregation. Step 3: Construct the segmentation loss function, edge loss function, and coarse segmentation loss function. The coarse segmentation loss function is further divided into distillation loss function and supervision loss function. The sum of the three is used as the total loss function. Iteratively train and optimize the network parameters. After the loss stabilizes, input the detection image into the trained neural network to obtain the final detection result image. The total loss function is expressed as: in, It is the binary cross-entropy loss between the predicted image and the true label image. This is a loss in edge detection auxiliary tasks. It is the supervised loss in coarse segmentation. This refers to the distillation loss during coarse fractionation. , and These are the loss weight coefficients for edge loss, supervision loss, and distillation loss, respectively. , , and The calculation method is as follows: in, Represents the pixels of the edge label map; Represents pixels in the edge prediction map; This represents the total number of pixels. It is the Laplace smoothing parameter to avoid division by zero. In the experiment, it is... Set to 1; To predict the probability that each pixel in the coarse segmentation image is a road; This represents the probability that each pixel in the road prediction map is a road; the test samples are input into the network to obtain the final extraction results.
2. The method for extracting rural roads from remote sensing images based on a multi-task structure as described in claim 1, characterized in that, In step 1, image enhancement is performed on the acquired rural road data, including: uniform image size, rotation, scaling, color gamut transformation, and pixel grayscale normalization.
3. The method for extracting rural roads from remote sensing images based on a multi-task structure as described in claim 1, characterized in that, An encoder-decoder network framework is adopted, with the encoding part consisting of four stages and the decoding part consisting of two stages. ResNet50 is used as the backbone network, and the enhanced image I is input into the backbone network to obtain the output features F of different layers. i , where i=1,…,4; each decoder block consists of two 3×3 convolutional layers, which fuse the backbone features with the feature layers corresponding to F2 and F3, fuse the shallow features with rich spatial and contour information with the deep features with rich semantic information to generate a global feature map, and feed the feature map into a 1×1 convolutional layer to obtain the final pixel-level prediction result map.
4. The method for extracting rural roads from remote sensing images based on a multi-task structure as described in claim 1, characterized in that, The edge refinement head includes spatial and semantic branches. The spatial branch generates an edge prediction map under the supervision of the edge label map, consisting of 1×1 convolutional layers and 1×1 convolutions. The edge label generation module extracts edge information using Laplacian operators with strides of 1, 2, and 4, respectively, to obtain edge feature maps of the original size, downsampled by 2 times, and downsampled by 4 times. Bilinear interpolation is used to restore the edge feature maps of different sizes to their original size, and they are fused by 1×1 convolutions, so that the resulting edge label maps have multi-scale detail information. A threshold of 0.1 is used to convert the edge feature maps into edge label maps with edge detail information. Under the supervision of the generated edge label maps, the shallow features will learn more edge detail information.
5. The method for extracting rural roads from remote sensing images based on a multi-task structure as described in claim 4, characterized in that, The semantic branch learns further by fusing edge features with backbone features, thereby promoting the expression of high-level semantic information; attention enhancement is applied to the edge features, and the attention weights of the edge prediction map are as follows: in, For edge prediction maps, Number of pixels Using the sigmoid function, the resulting attention weights are weighted on the edge prediction map, resulting in an edge feature layer that is fused with the backbone features: in, This is for element-wise dot product operation. This is a 1×1 convolution operation. This is the edge feature layer after attention weighting.
Citation Information
Patent Citations
Histogram compactness transformation-based detail image contrast enhancement method
CN114926363A
Methods and data processing systems for predicting road attributes
US20220357176A1
