Remote sensing image road extraction method and device based on cross-domain joint learning

Through the adversarial cross-domain joint learning model and autocorrelation algorithm, the problem of insufficient robustness and generalization performance of traditional remote sensing image road extraction methods in complex backgrounds is solved, efficient and automatic road extraction is achieved, and the need for manual intervention is reduced. .

CN118711082APending Publication Date: 2024-09-27GUANGZHOU NORTH SECOND RING TRANSPORT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410880248.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Traditional remote sensing image road extraction methods have insufficient robustness in complex backgrounds, are susceptible to interference, and have weak generalization performance. They require a large amount of manual intervention and complex parameter adjustments, and have low processing efficiency.

Method used

A remote sensing image road classification model based on adversarial cross-domain joint learning is adopted. Through the feature extractor and adversarial domain discriminator, combined with the maximum inter-class variance method and the autocorrelation algorithm, threshold segmentation of the road category activation map is achieved to obtain a binary image. .

Benefits of technology

It improves the generalization performance of the model, reduces the dependence on labeling accuracy, reduces labor costs, and improves the accuracy and efficiency of road extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711082A
    Figure CN118711082A
Patent Text Reader

Abstract

The invention discloses a remote sensing image road extraction method and device based on cross-domain joint learning. The method comprises the following steps: acquiring a remote sensing image of a to-be-extracted road; inputting the remote sensing image into a pre-trained remote sensing image road classification model based on adversarial cross-domain joint learning to obtain a road category activation graph; performing threshold segmentation on the road category activation graph by using a maximum between-class variance method to obtain a binary image displaying the road in the remote sensing image; wherein the remote sensing image road classification model based on adversarial cross-domain joint learning comprises a feature extractor and an adversarial domain discriminator. According to the method disclosed by the invention, domain invariance features among different data domains can be learned, and the generalization performance of the model is improved; dependence of a classification model on labeling precision is weakened, labor cost is reduced, and target extraction precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of remote sensing image processing, and in particular to a remote sensing image road extraction method and device based on cross-domain joint learning. Background Art

[0002] In recent years, remote sensing technology has developed rapidly and has been widely used in land planning, meteorological monitoring, environmental protection and other aspects. People's demand for intelligent interpretation of remote sensing images has become more urgent. Optical remote sensing images are images of the earth's surface captured by optical sensors, with high spatial resolution and good visual effects. However, the diverse and complex distribution of ground targets makes it difficult for optical remote sensing images to be accurately recognized by traditional methods. Computers cannot automatically analyze them in depth, wasting the rich information in remote sensing images. Therefore, as an important part of the automatic interpretation of remote sensing images, how to quickly and effectively classify objects such as roads, vegetation, water bodies, etc. from complex ground scenes has become a research hotspot in the field of remote sensing image processing and image recognition technology.

[0003] Traditional road extraction methods are mostly based on the extraction of low-level features, such as edge extraction, superpixel segmentation, shape matching, etc. For example, He et al. proposed a road area detection algorithm based on color images in the article "Color-based road detection in urban traffic scenes". First, the edge image of the scene is analyzed to obtain the candidate areas of the left and right road boundaries, and the areas are divided. Then, the mean and variance of the Gaussian distribution are calculated. It is assumed that the color components of the road surface obey the Gaussian distribution, and then the road area is effectively extracted, and the boundary that is most suitable for the road extraction result is strengthened. However, with the continuous improvement of the optical imaging resolution of remote sensing satellites, the structure and detail features contained in remote sensing images are gradually becoming more complex. Traditional road extraction methods have the following two shortcomings: 1) Insufficient robustness to complex backgrounds, easily affected by surrounding buildings, trees, water bodies, obstacles, and factors such as light and shadows, resulting in unstable extraction results; 2) Weak generalization performance. When processing large-scale remote sensing images, a large amount of manual intervention and complex parameter adjustments are often required, and the processing efficiency is low. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a training method, a classification method and a device for a cross-domain text classification model that overcome the above problems or at least partially solve the above problems.

[0005] According to one aspect of the present invention, a method for extracting roads from remote sensing images based on cross-domain joint learning is provided, the method comprising:

[0006] Acquire a remote sensing image of the road to be extracted;

[0007] Inputting the remote sensing image into a pre-trained remote sensing image road classification model based on adversarial cross-domain joint learning to obtain a road category activation map;

[0008] Performing threshold segmentation on the road category activation map using the maximum inter-class variance method to obtain a binary image showing the road in the remote sensing image;

[0009] Among them, the remote sensing image road classification model based on adversarial cross-domain joint learning includes a feature extractor and an adversarial domain discriminator.

[0010] In some embodiments, the training process of the remote sensing image road classification model based on adversarial cross-domain joint learning includes:

[0011] Construct a dataset for road extraction from weakly labeled remote sensing images;

[0012] Construct a weakly supervised remote sensing image road classification model based on adversarial cross-domain joint learning, including feature extractor and adversarial domain discriminator;

[0013] Train a weakly supervised remote sensing image road classification model based on adversarial cross-domain joint learning; the training parameters are as follows: batch size is 16, number of learning rounds is 32, optimizer is Adam optimizer, learning rate of feature extractor is 0.01, learning rate of adversarial domain discriminator is 0.005, momentum is 0.9, and weight decay parameter is 0.0005.

[0014] In some implementations, constructing a dataset for weakly annotated remote sensing image road extraction includes:

[0015] We use cross-domain optical remote sensing images with different data distributions as datasets, which are divided into source domain datasets D s ={I1,I2,…,I M} and the target domain dataset D t ={I1,I2,…,I N}: The i-th remote sensing image I in the dataset i The pixel-level weak label is l i ∈{0,1}, if l i =1, the remote sensing image belongs to the foreground class and is a remote sensing image containing the road area; if l i =0, the remote sensing image belongs to the background class and is a remote sensing image that does not contain road areas;

[0016] The data set is standardized and normalized, data augmented through horizontal and vertical inversion and random cropping image enhancement operations, and divided into training set and test set according to a preset ratio.

[0017] In some embodiments, the feature extractor uses ResNet50 as the basic network for feature extraction, and uses a residual structure and a jump connection mechanism for improvement.

[0018] In some embodiments, the adversarial domain discriminator includes 5 convolutional layers, the convolution kernel size of the convolutional layer is 4×4, the step size is 2, the number of channels is {64, 128, 256, 512, 1}, and except for the last layer, each convolutional layer is followed by a leaky ReLU layer with a parameter of 0.2.

[0019] In some embodiments, the remote sensing image road classification model based on adversarial cross-domain joint learning further includes a fully connected layer and a global average pooling layer, and the remote sensing image is input into a pre-trained remote sensing image road classification model based on adversarial cross-domain joint learning to obtain a road category activation map including:

[0020] The feature map output by the global average pooling layer is obtained, the feature map is multiplied by the weight of the fully connected layer, and the sum is performed channel by channel to obtain the road category activation map.

[0021] In some implementations, after obtaining the road category activation map, the method further includes: optimizing the road category activation map based on an autocorrelation algorithm, the specific steps including:

[0022] The features of the remote sensing image of the road to be extracted are combined and fused with the features of the road category activation map to obtain the fusion features of each pixel;

[0023] Based on the fusion features of each pixel, the cosine distance C(x i ,x j ) to measure each pixel x i With pixel x j The correlation between

[0024] Through the autocorrelation between pixels, the weighted values ​​of the corresponding pixels in the road category activation map are obtained to obtain the weighted road category activation map.

[0025] According to another aspect of the present invention, a remote sensing image road extraction device based on cross-domain joint learning is provided, the device comprising:

[0026] An image acquisition module, adapted to acquire a remote sensing image of a road to be extracted;

[0027] A classification extraction module, adapted to input the remote sensing image into a pre-trained remote sensing image road classification model based on adversarial cross-domain joint learning to obtain a road category activation map;

[0028] A road segmentation module, adapted to perform threshold segmentation on the road class activation map using a maximum inter-class variance method to obtain a binary image showing the roads in the remote sensing image;

[0029] Among them, the remote sensing image road classification model based on adversarial cross-domain joint learning includes a feature extractor and an adversarial domain discriminator.

[0030] According to another aspect of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0031] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the above-mentioned remote sensing image road extraction method based on cross-domain joint learning.

[0032] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to perform operations corresponding to the above-mentioned remote sensing image road extraction method based on cross-domain joint learning.

[0033] In summary, the technical solution disclosed in the embodiment of the present invention can be divided into the following steps:

[0034] First, a weakly annotated cross-domain remote sensing image road dataset is constructed, and data augmentation and division into training and test sets are performed. In the training stage, first, a weakly supervised remote sensing image road classification model based on adversarial cross-domain joint learning is constructed, including a feature extractor, an autocorrelation perception module and an adversarial domain discriminator, and then the training parameters and loss function are set to train the model. In the testing stage, a road category activation map based on autocorrelation perception is generated, and the final road extraction result map is obtained by threshold segmentation. The method specifically includes the following steps:

[0035] Step 1: Construct a weakly labeled remote sensing image road extraction dataset. Preprocess the optical remote sensing images with different parameters, and perform image augmentation operations such as horizontal and vertical inversion and random cropping to obtain optical remote sensing road datasets Ds and Dt in the source and target domains with different data distributions, and divide them into training sets and test sets in proportion. Subsequently, the dataset is annotated at the image level, and the annotation only contains information on whether the remote sensing image contains road areas.

[0036] Step 2: Construct a weakly supervised remote sensing image road classification model based on adversarial cross-domain joint learning, which consists of a feature extractor and an adversarial cross-domain joint discriminator.

[0037] Feature extractor. ResNet50 is used as a feature extractor to extract road features in remote sensing images. ResNet50 can extract rich feature information at different levels, including shallow detail information and deep semantic information, through residual structure, jump connection and other mechanisms.

[0038] Adversarial Domain Discriminator. The core idea is to learn feature representation through adversarial training so that the features of the source domain and the target domain are closer in the shared representation space. The discriminator is used to distinguish the features of the source domain and the target domain. It learns to identify which features belong to the source domain from the shared representation and enables the feature extractor to extract features with stronger generalization ability through forward propagation, thereby achieving effective cross-domain joint learning.

[0039] Step 3: Train the weakly supervised remote sensing image road classification model based on adversarial cross-domain joint learning. First, set the training parameters, including batch size, number of learning rounds, optimizer, and learning rate. Then calculate the network loss and perform backpropagation, including classification task loss and adversarial domain discrimination loss.

[0040] Step 4: Generate a road category activation map based on autocorrelation perception. After the classification network is trained, obtain the feature map of the global average pooling layer. For the road category, multiply the feature map of the global average pooling layer by the weight of the fully connected layer and sum channel by channel to obtain the original class activation map of the road category. In order to better utilize the information of the image itself and make up for the inherent defects of weak supervision, a pixel autocorrelation perception module is proposed to capture the pixel context dependency of the input image and correct the original class activation map. Finally, the activation map is normalized to obtain the importance of each pixel to the road category, thereby obtaining a visualized image.

[0041] Step 5: Input the test image and obtain the corresponding road category activation map. After the classification model training is completed, in the test phase, the remote sensing image to be tested is input into the trained network to obtain the road category activation map of the remote sensing image to be tested.

[0042] Step 6: Threshold segmentation to obtain the final road extraction result map. Using the maximum inter-class variance method, the final road extraction result map of the remote sensing image to be tested is threshold segmented, and the road extraction result map of the remote sensing image is segmented into a binary image template, with "1" representing the road area and "0" representing the non-road area.

[0043] The method disclosed in the present invention can learn domain invariance features between different data domains, improve the generalization performance of the model, reduce the model's dependence on annotation accuracy, reduce labor costs, and improve target extraction accuracy.

[0044] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0046] Figure 1 A flowchart of a remote sensing image road extraction method based on cross-domain joint learning provided by an embodiment of the present invention is shown;

[0047] Figure 2 A schematic diagram showing a specific implementation process provided by an embodiment of the present invention;

[0048] Figure 3 A schematic diagram showing an example of a remote sensing image and a corresponding ground truth label (Ground Truth) provided in one embodiment of the present invention is shown;

[0049] Figure 4 This is a schematic diagram showing the comparison of road extraction results using the method of the present invention and other methods in an example picture;

[0050] Figure 5 A structural diagram of a remote sensing image road extraction device based on cross-domain joint learning provided by an embodiment of the present invention is shown;

[0051] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0052] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0053] The embodiment of the present invention proposes a weakly supervised remote sensing image road extraction method based on adversarial cross-domain joint learning, which aims to train cross-domain optical remote sensing datasets with different data distributions, improve the generalization performance of the feature extractor through the adversarial domain discriminator structure, and improve the accuracy of weakly supervised learning through the pixel autocorrelation perception module, so as to achieve end-to-end mapping from input remote sensing images to accurate road extraction result images. The method proposed in the present invention effectively improves the model's migration and generalization capabilities in remote sensing image datasets with different parameters, while alleviating the road extraction method's dependence on annotation accuracy, greatly improving the model's test effect.

[0054] Figure 1 The flowchart of the embodiment of the remote sensing image road extraction method based on cross-domain joint learning disclosed in the present invention is shown, and the method is applied to electronic devices. The electronic devices include intelligent terminal devices, computer devices and / or clouds installed with computer programs, and the intelligent terminal devices include but are not limited to smart phones and PADs; the computer devices include but are not limited to personal computers, laptops, industrial computers, network hosts, single network servers, and multiple network server sets; the cloud is composed of a large number of computers or network servers based on cloud computing (Cloud Computing), wherein cloud computing is a type of distributed computing, a virtual supercomputer composed of a group of loosely coupled computer sets.

[0055] like Figure 1 As shown, the method comprises the following steps:

[0056] Step S110, obtaining a remote sensing image of the road to be extracted;

[0057] Step S120, inputting the remote sensing image into a pre-trained remote sensing image road classification model based on adversarial cross-domain joint learning to obtain a road category activation map;

[0058] Step S130, performing threshold segmentation on the road class activation map using the maximum inter-class variance method to obtain a binary image showing the roads in the remote sensing image;

[0059] Among them, the remote sensing image road classification model based on adversarial cross-domain joint learning includes a feature extractor and an adversarial domain discriminator.

[0060] The remote sensing image road extraction scheme based on cross-domain joint learning disclosed in this embodiment learns the domain invariance features between different data domains to improve the generalization performance of the model; reduces the model's dependence on annotation accuracy, reduces labor costs, and improves target extraction accuracy.

[0061] Specific, combined Figure 2 As shown, the method disclosed in the embodiment of the present invention includes:

[0062] Step 1: Construct a weakly labeled remote sensing image road extraction dataset.

[0063] The imaging parameters and flight variables (such as altitude, speed, and shooting angle) of each satellite optical imaging system lead to deviations between different data domains. In this paper, a cross-domain optical remote sensing image training dataset with different data distributions is used, which is denoted as the source domain dataset D s ={I1,I2,…,I M} and the target domain dataset D t ={I1,I2,…,I N}. The i-th remote sensing image of the training data set is I i The pixel-level weak label is l i ∈{0,1}, if l i =1, the remote sensing image belongs to the foreground class and is a remote sensing image containing the road area; if l i =0, the remote sensing image belongs to the background class and is a remote sensing image that does not contain road areas. The data set is standardized and normalized, and data augmentation is performed through image enhancement operations such as horizontal and vertical inversion and random cropping, and the training set and test set are divided according to a certain ratio.

[0064] Step 2: Construct a weakly supervised remote sensing image road classification model based on adversarial cross-domain joint learning.

[0065] The road classification network model proposed in the present invention consists of a feature extractor, an autocorrelation perception module and an adversarial domain discriminator, wherein the autocorrelation perception module will be introduced in step four.

[0066] (1) Feature Extractor

[0067] The present invention uses ResNet50 as the basic network for feature extraction. Through residual structure, jump connection and other mechanisms, it can extract rich feature information at different levels, including shallow detail information and deep semantic information. The input image size is usually 256×256. After a series of convolution and pooling operations, five levels of feature vectors can be obtained, denoted as F={f1,f2,f3,f4,f5}. After feature extraction, the network is supervised by image-level weak labels to realize adversarial domain discriminators for classification tasks.

[0068] The cross-domain joint discriminator is a key module in adversarial learning. It is used to distinguish data between different domains. Through adversarial training, the features of the source domain and the target domain are made closer in the shared representation space, so that the feature extractor can extract domain-invariant features with stronger generalization ability, and achieve effective cross-domain joint learning. Specifically, the input of the cross-domain joint discriminator is the source domain and target domain data, and the output is the domain label. The domain label is a binary value, 0 represents the source domain, and 1 represents the target domain. The discriminator consists of 5 convolutional layers with a convolution kernel size of 4×4, a stride of 2, and the number of channels is {64, 128, 256, 512, 1}. Except for the last layer, each convolutional layer is followed by a leaky ReLU layer with a parameter of 0.2.

[0069] Step 3: Train a weakly supervised remote sensing image road classification model based on adversarial cross-domain joint learning.

[0070] The present invention sets the training parameters as follows: the batch size is 16, the number of learning rounds is 32, the optimizer is the Adam optimizer, the learning rate of the feature extractor is 0.01, the learning rate of the domain discriminator is 0.005, the momentum is 0.9, and the weight decay parameter is 0.0005.

[0071] The classification model also includes adding a fully connected layer after the last feature extraction layer to enhance the nonlinear fitting ability of the network; then adding a global average pooling layer (GAP layer), and obtaining the probability that the remote sensing image contains a road area through a softmax normalization operation.

[0072] During the training phase, the network backpropagates the parameters through the loss function to optimize the network weights and biases. Backpropagation is a gradient-based optimization method that determines the direction and size of parameter updates by calculating the partial derivatives of the loss function for each parameter. In this way, the network can provide feedback on errors based on the gradient information and gradually adjust the parameters so that the network's prediction results are close to the true label. The network loss function of the present invention mainly includes the road classification task loss and the adversarial domain discrimination loss.

[0073] The specific formula includes: the classification network obtains the classification vector z through the fully connected layer, the global average pooling layer and the softmax operation. According to the weak annotation l at the image level, the road classification task loss can be expressed as:

[0074]

[0075] The training goal of the domain discriminator is to distinguish whether the input image comes from the source domain or the target domain as much as possible. The corresponding classification network aims to extract cross-domain common features with domain invariance as much as possible. Given the feature extractor G and the discriminator D, after the input image I, the discriminator outputs, and the domain discriminator loss can be written as:

[0076] L d (I) = -(1-y d )log(D(G(I)) (0) )-y d log(D(G(I)) (1) )

[0077] where y d is the true domain label of the input image. If it is a source domain image, then y d =0, if it is the target domain image, then y d =1. The network loss function can be written as:

[0078] L=λ cls L cls +λ d L d

[0079] Among them, λ cls and λ d They are the weights of classification loss and domain discrimination loss, respectively, and are set to 1 in the present invention.

[0080] Step 4: Generate autocorrelation-aware class activation map.

[0081] Through the trained weakly supervised remote sensing image road classification model based on cross-domain joint learning, features with strong generalization can be obtained. This step calculates the road class activation map (Class Activation Mapping, CAM) of the remote sensing image of the input data, and optimizes it through the autocorrelation perception module of the input image as the result of road extraction. Specifically, a global average pooling layer (global average pooling layer, GAP layer) and a fully connected layer (fully connected layer, FC layer) layer are connected after the last feature extraction layer f5. The role of the fully connected layer is to limit the output to a suitable size. fk(i,j) represents the activation result of position (i,j) in channel k in the fully connected layer. The result of the maximum average pooling layer can be written as F k =∑f k (i,j). The original class activation map M fg It can be expressed as:

[0082]

[0083] Among them, ω k is the classification weight of the road category as the foreground in the classification network. fg (i, j) directly represents the probability that the position (i, j) belongs to the road category and is used as the basic basis for road extraction.

[0084] Although the original class activation map can approximately locate the target area, the features extracted by the classification network are too sparse for the pixel-level target extraction task and cannot accurately extract the complete road target. In order to better utilize the information of the remote sensing image itself, the present invention introduces an autocorrelation perception module to capture the correlation between the pixels of the input image and correct the original class activation map. First, we fuse the original input image I with the high-level features to obtain the fused feature x:

[0085] x=Concat(Down(I),Conv 1×1 (f3),Conv 1×1 (f4))

[0086] Among them, Conv 1×1 represents a 1×1 convolutional layer, which is used to compress the number of feature channels, Concat(·) represents the feature concatenation operation, and Down(·) is the downsampling operation. Then, we use the cosine distance C(x i ,x j ) to measure pixel x i With pixel x j The correlation between:

[0087]

[0088] The original class activation map can be reweighted by the autocorrelation between pixels and Normalize the output result and express it as:

[0089]

[0090] Step 5: Input the test image and obtain the corresponding road category activation map.

[0091] After completing the training of the weakly supervised remote sensing image road classification network based on adversarial cross-domain joint learning obtained in step three, in the testing phase, the remote sensing image to be tested is input into the trained network, and the road category activation map based on autocorrelation perception of the image to be tested is obtained through step four.

[0092] Step 6: Threshold segmentation to obtain the final road extraction result map.

[0093] The maximum inter-class variance method is used to perform threshold segmentation on the final road extraction result map of the tested remote sensing image, and the final saliency map of the remote sensing image is segmented into a binary image template, with "1" representing the road area and "0" representing the non-road area.

[0094] The effects of the present invention can be further illustrated by the following experimental results and analysis:

[0095] 1. Experimental Data

[0096] This paper selects a set of optical remote sensing images taken by satellite from the public transfer learning semantic segmentation dataset LoveDA, covering Wuhan, Changzhou, Nanjing and other areas, and uses urban area data as the source domain and rural area data as the target domain, and respectively generates a set of images of size 256×256 as the experimental data, such as Figure 3 shown.

[0097] 2. Comparative Experiment

[0098] In order to evaluate the performance of the proposed method, the following comparative experiments were designed. The existing representative visual attention methods, the regional smoothing and label correction method (RSLC) and the weakly supervised object detection method (HWSL), were selected to compare the performance with the proposed method. The road extraction results of different methods were compared subjectively. Figure 4 As shown in the figure, (a)-(d) represent the input test image, the results of using RSLC, HWSL and the method of the present invention, respectively. RSLC is a target extraction method based on Region Smoothing and Label Correction (RSLC), and HWSL is a remote sensing image saliency analysis method based on Hierarchical Weakly Supervised Learning (HWSL).

[0099] It can be seen from the results that: except for the method of the present invention, other methods have produced serious misjudgments in the road extraction process. RSLC performs road segmentation through image texture, brightness and other features. The detection results are poor under complex conditions such as vegetation occlusion, and the generalization performance for remote sensing images in different environments is poor. HWSL utilizes multi-scale gradient features and combines high-level features with low-level features. However, the weakly supervised network lacks accurate target position information during the learning process. Although image-level labels can be used for classification tasks, they lack accurate details of road details in fine road extraction tasks, making it impossible to extract complete roads. The method of the present invention has a better boundary preservation effect and can also better eliminate the interference of complex backgrounds.

[0100] Figure 5FIG. 5 shows a schematic diagram of a remote sensing image road extraction device 500 according to an embodiment of the present invention based on cross-domain joint learning. Figure 5 As shown, the device 500 includes:

[0101] An image acquisition module 510 is adapted to acquire a remote sensing image of a road to be extracted;

[0102] The classification extraction module 520 is adapted to input the remote sensing image into a pre-trained remote sensing image road classification model based on adversarial cross-domain joint learning to obtain a road category activation map;

[0103] A road segmentation module 530 is adapted to perform threshold segmentation on the road class activation map using a maximum inter-class variance method to obtain a binary image showing the roads in the remote sensing image;

[0104] Among them, the remote sensing image road classification model based on adversarial cross-domain joint learning includes a feature extractor and an adversarial domain discriminator.

[0105] It should be noted that the specific implementation of the above-mentioned device embodiments can be carried out with reference to the specific implementation of the above-mentioned corresponding method embodiments, which will not be repeated here.

[0106] It should be noted that:

[0107] An embodiment of the present invention provides a non-volatile readable computer storage medium, which stores at least one executable instruction. The computer executable instruction can execute the above-mentioned remote sensing image road extraction method based on cross-domain joint learning in any of the above-mentioned method embodiments.

[0108] Figure 6 The schematic diagram of the structure of the electronic device embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.

[0109] like Figure 6 As shown, the electronic device may include: a processor (processor) 602 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .

[0110] The processor 602, the communication interface 604, and the memory 606 communicate with each other via a communication bus 608. The communication interface 604 is used to communicate with other devices such as a client or a network element of another server. The processor 602 is used to execute a program 610, which can specifically execute the relevant steps in the embodiment of the method for extracting roads from remote sensing images based on cross-domain joint learning for electronic devices.

[0111] Specifically, the program 610 may include program codes, which include computer operation instructions.

[0112] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0113] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0114] The program 610 can be specifically used to enable the processor 602 to perform operations corresponding to the above-mentioned embodiment of the remote sensing image road extraction method based on cross-domain joint learning.

[0115] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description made to specific languages ​​above is for disclosing the best mode of the present invention.

[0116] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0117] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0118] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0119] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0120] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0121] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A remote sensing image road extraction method based on cross-domain joint learning, the method comprising: Acquire a remote sensing image of the road to be extracted; Inputting the remote sensing image into a pre-trained remote sensing image road classification model based on adversarial cross-domain joint learning to obtain a road category activation map; Performing threshold segmentation on the road category activation map using the maximum inter-class variance method to obtain a binary image showing the road in the remote sensing image; Among them, the remote sensing image road classification model based on adversarial cross-domain joint learning includes a feature extractor and an adversarial domain discriminator.

2. The method according to claim 1, characterized in that The training process of the remote sensing image road classification model based on adversarial cross-domain joint learning includes: Construct a dataset for road extraction from weakly labeled remote sensing images; Construct a weakly supervised remote sensing image road classification model based on adversarial cross-domain joint learning, including feature extractor and adversarial domain discriminator; Train a weakly supervised remote sensing image road classification model based on adversarial cross-domain joint learning; the training parameters are as follows: batch size is 16, number of learning rounds is 32, optimizer is Adam optimizer, learning rate of feature extractor is 0.01, learning rate of adversarial domain discriminator is 0.005, momentum is 0.9, and weight decay parameter is 0.0005.

3. The method according to claim 2, characterized in that The dataset for constructing weakly labeled remote sensing image road extraction includes: We use cross-domain remote sensing images with different data distributions as datasets, which are divided into source domain datasets D s ={I1,I2,…,I M } and the target domain dataset D t ={I1,I2,…,I N }: The i-th remote sensing image I in the dataset i The pixel-level weak label is l i ∈{0,1}, if l i =1, the remote sensing image belongs to the foreground class and is a remote sensing image containing the road area; if l i =0, the remote sensing image belongs to the background class and is a remote sensing image that does not contain road areas; The data set is standardized and normalized, data augmented through horizontal and vertical inversion and random cropping image enhancement operations, and divided into training set and test set according to a preset ratio.

4. The method according to claim 2, characterized in that: The feature extractor uses ResNet50 as the basic network for feature extraction, and improves it by using residual structure and skip connection mechanism.

5. The method according to claim 2, characterized in that: The adversarial domain discriminator consists of 5 convolutional layers. The convolution kernel size of the convolutional layer is 4×4, the step size is 2, and the number of channels is {64, 128, 256, 512, 1}. Except for the last layer, each convolutional layer is followed by a leaky ReLU layer with a parameter of 0.

2.

6. The method according to claim 1, characterized in that The remote sensing image road classification model based on adversarial cross-domain joint learning also includes a fully connected layer and a global average pooling layer. The remote sensing image is input into the pre-trained remote sensing image road classification model based on adversarial cross-domain joint learning to obtain a road category activation map including: The feature map output by the global average pooling layer is obtained, the feature map is multiplied by the weight of the fully connected layer, and the sum is performed channel by channel to obtain the road category activation map.

7. The method according to claim 6, characterized in that After obtaining the road category activation map, the method further includes: optimizing the road category activation map based on an autocorrelation algorithm, and the specific steps include: The features of the remote sensing image of the road to be extracted are combined and fused with the features of the road category activation map to obtain the fusion features of each pixel; Based on the fusion features of each pixel, the cosine distance C(x i ,x j ) to measure each pixel x i With pixel x j The correlation between Through the autocorrelation between pixels, the weighted values ​​of the corresponding pixels in the road category activation map are obtained to obtain the weighted road category activation map.

8. A remote sensing image road extraction device based on cross-domain joint learning, the device comprising: An image acquisition module, adapted to acquire a remote sensing image of a road to be extracted; A classification extraction module, adapted to input the remote sensing image into a pre-trained remote sensing image road classification model based on adversarial cross-domain joint learning to obtain a road category activation map; A road segmentation module, adapted to perform threshold segmentation on the road class activation map using a maximum inter-class variance method to obtain a binary image showing the roads in the remote sensing image; Among them, the remote sensing image road classification model based on adversarial cross-domain joint learning includes a feature extractor and an adversarial domain discriminator.

9. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the remote sensing image road extraction method based on cross-domain joint learning according to any one of claims 1-7.

10. A computer-readable storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to perform operations corresponding to the remote sensing image road extraction method based on cross-domain joint learning according to any one of claims 1-7.