Remote sensing image domain adaptive semantic segmentation method, readable storage medium and equipment

Through the causal prototype-inspired remote sensing image domain adaptive semantic segmentation model, we decouple and compare the causal features of remote sensing images, solve the problem of data distribution differences between remote sensing image domains, and achieve high-performance semantic segmentation effects.

CN118628738AInactive Publication Date: 2024-09-10CENT SOUTH UNIV

Patent Information

Application Number
CN202410715383.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing remote sensing image domain adaptive semantic segmentation methods rely on statistical information and are difficult to effectively handle the data distribution differences between different remote sensing image domains, resulting in a decline in semantic segmentation performance.

Method used

The remote sensing image domain adaptive semantic segmentation model inspired by causal prototypes is used to decouple and compare the causal features of remote sensing images through the causal feature decoupling module, causal prototype comparison module and causal intervention module, generate domain-invariant causal features, and use pseudo Label training DeepLab-v3 model to achieve semantic segmentation.

Benefits of technology

It effectively eliminates the influence of differences in sensor type, imaging conditions and shooting locations, improves the semantic segmentation performance between different remote sensing image domains, and significantly improves the accuracy and generalization ability of semantic segmentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628738A
    Figure CN118628738A
Patent Text Reader

Abstract

The invention relates to the technical field of remote sensing images, and particularly provides a remote sensing image domain adaptive semantic segmentation method, a readable storage medium and equipment, and the method comprises a causal prototype inspired remote sensing image domain adaptive semantic segmentation model which comprises a causal feature decoupling module, a causal prototype comparison module and a causal intervention module. According to the model, causal features are decoupled from an original remote sensing image, and causal factors are replaced by the causal features; the difference of causal features between the source domain and the target domain is eliminated, so that the model is stimulated to obtain domain-invariant causal features; the deviation characteristics are intervened, an anti-factual unbiased sample is generated, and the causal characteristics and the deviation characteristics are further decorrelated, so that the causal characteristics have enough prediction sufficiency for semantic tags. According to the method, the influence of differences of sensor types, imaging conditions, shooting positions and the like on semantic segmentation can be eliminated, and a high-performance semantic segmentation effect among different remote sensing image domains is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of remote sensing image technology, and in particular to a remote sensing image domain adaptive semantic segmentation method, a readable storage medium and a device. Background Art

[0002] Semantic segmentation of remote sensing images has been widely used in urban planning, intelligent transportation, disaster prediction, agricultural production and other fields. In the past decade, methods based on deep convolutional neural networks (DCNNs) have shown excellent performance in the task of semantic segmentation of remote sensing images. However, due to differences in sensor type, imaging conditions and shooting positions, different remote sensing image domains often face the problem of "data distribution gap", which makes it impossible for DCNN-based semantic segmentation methods to achieve out-of-distribution generalization and leads to a sharp decline in semantic segmentation performance. Domain adaptation methods are used to solve the problem of data distribution differences between different data domains. It aims to transfer knowledge learned from annotated source domain data to unannotated target domain data without the need for a large number of sample annotations in the target domain. However, existing domain adaptation semantic segmentation tends to use statistical information of data to align the style or features between the source domain and the target domain. Due to the interference of chaotic phenomena, the prediction results of these statistical correlation-based methods are prone to uncertainty and fragility. Therefore, in order to better achieve high-performance semantic segmentation between different remote sensing image domains, it is not enough to simply consider the statistical dependency between variables.

[0003] In summary, there is an urgent need to provide a remote sensing image domain adaptive semantic segmentation method, readable storage medium and device to eliminate the impact of differences in sensor type, imaging conditions and shooting position on semantic segmentation, and achieve high-performance semantic segmentation effects between different remote sensing image domains. Summary of the invention

[0004] The purpose of the present invention is to provide a remote sensing image domain adaptive semantic segmentation method, a readable storage medium and a device to eliminate the influence of differences in sensor type, imaging conditions and shooting position on semantic segmentation, and achieve high-performance semantic segmentation between different remote sensing image domains. The specific technical solution is as follows:

[0005] A remote sensing image domain adaptive semantic segmentation method, comprising the following steps:

[0006] Step S1, determining a source domain dataset and a target domain dataset;

[0007] Step S2, constructing a causal prototype-inspired remote sensing image domain-adaptive semantic segmentation model, and using a source domain dataset and a target domain dataset to train the causal prototype-inspired remote sensing image domain-adaptive semantic segmentation model;

[0008] Step S3: input the remote sensing images in the target domain data set into the trained causal prototype-inspired remote sensing image domain adaptation semantic segmentation model to perform pseudo label prediction, and obtain the pseudo label of the target domain;

[0009] Step S4: Use the target domain dataset and the target domain pseudo-label to train the DeepLab-v3 semantic segmentation model, input the target domain dataset into the trained DeepLab-v3 semantic segmentation model for prediction, and obtain the final target domain semantic segmentation result.

[0010] Furthermore, step S1 is specifically as follows: downloading the high-resolution remote sensing image datasets Potsdam dataset and Vaihingen dataset from the Internet, and cropping the remote sensing images and corresponding labels in the Potsdam dataset into image blocks of size 512*512 as the source domain dataset (X S , Y S ), the remote sensing images in the Vaihingen dataset are cropped into image blocks of 512*512 size as the target domain dataset (X T ).

[0011] Further, in step S2, the causal prototype-inspired remote sensing image domain adaptation semantic segmentation model includes a causal feature decoupling module, a causal prototype comparison module, and a causal intervention module;

[0012] The causal feature decoupling module includes a causal encoder E c and Deviation Encoder E b , causal encoder E c For decoupling causal features from remote sensing images, the bias encoder E b Used to decouple deviation features from remote sensing images;

[0013] The causal prototype comparison module is used to narrow the distance between the source domain causal features and the target domain causal features to obtain domain-invariant causal features;

[0014] The causal intervention module includes a transposition intervention operation, a causal classifier C c and the bias classifier C b , the causal intervention module is used to further remove the correlation between causal features and deviation features.

[0015] Furthermore, in step S2, the steps of training the causal prototype-inspired remote sensing image domain adaptation semantic segmentation model using the source domain dataset and the target domain dataset are as follows:

[0016] Step S2.1: X S Input into the causal feature decoupling module to obtain the causal feature C of the source domain S and deviation feature B S ; XT Input into the causal feature decoupling module to obtain the causal feature C of the target domain T and deviation feature B T ;

[0017] Step S2.2: The causal feature C of the source domain S and the causal characteristics C of the target domain T Input into the causal prototype contrast module for contrastive learning to narrow the causal features C of the source domain S and the causal characteristics C of the target domain T The distance between them, and the total causal contrast loss L CC ;

[0018] The causal feature C of the source domain S and deviation feature B S Input to the causal intervention module to obtain biased features and the unbiased character of counterfactuals

[0019] Step S2.3: The biased features and the unbiased character of counterfactuals Input to the causal classifier C c Get the prediction results and At the same time, the biased features and the unbiased character of counterfactuals Input into the deviation classifier Cb to get the prediction result and

[0020] Step S2.4: Using the prediction results and Calculate the semantic segmentation loss L seg ;

[0021] Step S2.5: Using the total causal contrast loss L CC and semantic segmentation loss L seg Calculate the loss L of the entire network, L = L CC +L seg ; Back-propagate the loss L from the output layer of the network to the input layer; Specifically, each layer of the network calculates the gradient of the parameters according to the loss L and updates the parameters along the gradient direction;

[0022] Step S2.6, repeat steps S2.1-S2.5 until all parameters of the causal prototype-inspired remote sensing image domain-adapted semantic segmentation model converge, and save the trained causal prototype-inspired remote sensing image domain-adapted semantic segmentation model.

[0023] Furthermore, in step S2.2, the causal feature CS and the causal characteristics C of the target domain T Input into the causal prototype comparison module for comparative learning, which includes the following steps:

[0024] Step S2.2.1, causal prototype update, specifically,

[0025] First, use the causal features C of the source domain S Initialize the causal prototype p,

[0026]

[0027] In formula 1), p1, p2, ..., p K They represent the causal prototypes of category 1, category 2, ... category K respectively. K category causal prototypes constitute a causal prototype p. K represents the total number of ground object categories in the remote sensing image. s represents the number of remote sensing images in the source domain, Represents C S The features belonging to category k, k∈{1, 2, ..., K};

[0028] Then, using the causal features C of the source domain S and the causal characteristics C of the target domain T Update the causal prototype p,

[0029] p′ k =(1-m)·p k +m·C k 2);

[0030] In formula 2), p′ k Represents the updated p k , C k represent and A set of m represents the momentum parameter, and a polynomial annealing strategy is used to update m.

[0031]

[0032] In formula 3), m t represents the value of m at the tth iteration, T represents the total number of training iterations of the model, α and m0 are default parameters, and the value is 0.9;

[0033] Step S2.2.2: Causal prototype contrast learning. Specifically,

[0034] First, calculate the causal features of the source domain category k separately and the causal prototype p′ of category k k Similarities between and the causal characteristics of the target domain category k and the causal prototype p′ of category k k Similarities between

[0035]

[0036] In Equation 4) and Equation 5), τ represents the temperature hyperparameter, Represents C T The features belonging to category k in Represents C S The features belonging to category k in

[0037] Then, use and Calculate the source domain contrast loss L separately S Compared with the target domain loss L T ,

[0038]

[0039] In formula 6) and formula 7), represents the true value label of category k in the source domain, Represents the predicted label of category k in the target domain; according to the source domain contrast loss L S Compared with the target domain loss L T , calculate the total causal contrast loss L CC ,

[0040] L CC =L S +L T 8).

[0041] Furthermore, in step S2.2, the causal feature C S and deviation feature B S Input to the causal intervention module to obtain biased features and the unbiased character of counterfactuals Specifically,

[0042] For each batch of source domain deviation feature matrix B S ∈R B×N×H×W Perform random matrix permutation at the batch level to generate a permutation bias feature matrix Among them, B is the batch size, N is the number of matrix channels, H is the matrix height, and W is the matrix width; the deviation feature matrix And the causal feature matrix C in the same batch S Superposition is performed at the channel level to obtain counterfactual unbiased features in, At the same time, the causal feature C S , Deviation feature B SSuperposition is performed at the channel level to obtain biased features in,

[0043] Furthermore, in step S2.4, the prediction results are used and Calculate the semantic segmentation loss L seg , specifically,

[0044]

[0045] In formula 9), L C Used to train the causal classifier C c , L B Used to train the bias classifier C b , CE(·) represents the cross entropy loss function, SCE(·) represents the symmetric cross entropy loss function, Y S The transposed matrix of .

[0046] Furthermore, step S4 specifically includes:

[0047] Step S4.1: The remote sensing image X of the target domain T Input into the DeepLab-v3 semantic segmentation model to get the prediction result Y′ T ;

[0048] Step S4.2: Using the prediction result Y′ T and pseudo labels Calculate the semantic segmentation loss L seg-s , Where CE(·) represents the cross entropy loss function;

[0049] Step S4.3: Set the semantic segmentation loss L seg-s Backpropagates from the output layer of the DeepLab-v3 semantic segmentation model to the input layer; specifically, each layer of the network is trained according to the loss L seg-s Calculate the gradient of the parameters and update the parameters along the gradient direction;

[0050] Step S4.4: Repeat steps S4.1-S4.3 until all parameters of the DeepLab-v3 semantic segmentation model converge, and save the trained DeepLab-v3 semantic segmentation model;

[0051] Step S4.5: Use the trained DeepLab-v3 semantic segmentation model to predict the target domain image and obtain the final target domain semantic segmentation result.

[0052] A device comprises a memory and a processor, wherein the memory stores a computer program; the processor executes the computer program to implement the remote sensing image domain adaptive semantic segmentation method as described above.

[0053] A readable storage medium stores a computer program, and a processor executes the computer program to implement the remote sensing image domain adaptive semantic segmentation method as described above.

[0054] The application of the technical solution of the present invention has the following beneficial effects:

[0055] The present invention proposes a remote sensing image domain adaptation semantic segmentation method, which formalizes the domain adaptation semantic segmentation problem of remote sensing images from a causal perspective. The method of the present invention includes a remote sensing image domain adaptation semantic segmentation model inspired by a causal prototype, and the remote sensing image domain adaptation semantic segmentation model inspired by a causal prototype includes a causal feature decoupling module, a causal prototype comparison module and a causal intervention module. The causal feature decoupling module decouples the causal feature from the original remote sensing image, so that the causal feature replaces the causal factor. The causal prototype comparison module is used to eliminate the difference in causal features between the source domain and the target domain, thereby stimulating the model to obtain domain-invariant causal features. The causal intervention module intervenes in the deviation feature to generate counterfactual unbiased samples, and further decorrelates the causal feature and the deviation feature, so that the causal feature has sufficient predictive adequacy for the semantic label. The method of the present invention can eliminate the influence of differences in sensor type, imaging conditions and shooting position on semantic segmentation, and achieve high-performance semantic segmentation effects between different remote sensing image domains.

[0056] In addition to the above-described objects, features and advantages, the present invention has other objects, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:

[0058] Figure 1 It is a flow chart of the remote sensing image domain adaptive semantic segmentation method in the present invention;

[0059] Figure 2 It is a schematic diagram of the remote sensing image domain adaptive semantic segmentation model in the present invention. DETAILED DESCRIPTION

[0060] The embodiments of the present invention are described in detail below with reference to the accompanying drawings, but the present invention can be implemented in many different ways as defined and covered by the claims.

[0061] Example:

[0062] See also Figure 1 The present invention provides a remote sensing image domain adaptation semantic segmentation method, in particular a remote sensing image domain adaptation semantic segmentation method inspired by causal prototype, comprising the following steps:

[0063] Step S1, determining a source domain dataset and a target domain dataset;

[0064] Step S2, constructing a causal prototype-inspired remote sensing image domain-adaptive semantic segmentation model, and using a source domain dataset and a target domain dataset to train the causal prototype-inspired remote sensing image domain-adaptive semantic segmentation model;

[0065] Step S3: input the remote sensing images in the target domain data set into the trained causal prototype-inspired remote sensing image domain adaptation semantic segmentation model to perform pseudo label prediction, and obtain the pseudo label of the target domain;

[0066] Step S4: Use the target domain dataset and the target domain pseudo-label to train the DeepLab-v3 semantic segmentation model, input the target domain dataset into the trained DeepLab-v3 semantic segmentation model for prediction, and obtain the final target domain semantic segmentation result.

[0067] Step S1 is as follows: download the high-resolution remote sensing image dataset Potsdam dataset (as source domain) and Vaihingen dataset (as target domain) provided by the International Society for Photogrammetry (ISPRS) from its official website, and crop the remote sensing images and corresponding labels in the Potsdam dataset into image blocks of size 512*512 as the source domain dataset (X S , Y S ), the remote sensing images in the Vaihingen dataset are cropped into image blocks of 512*512 size as the target domain dataset (X T ).

[0068] In step S2, see Figure 2 ,The causal prototype-inspired domain-adapted semantic segmentation model for remote sensing images includes a causal feature decoupling (CFD) module, a causal prototype comparison (CPC) module, and a causal intervention (CI) module;

[0069] The causal feature decoupling module includes a causal encoder E c and Deviation Encoder E b , causal encoder E c For decoupling causal features from remote sensing images, the bias encoder E b Used to decouple deviation features from remote sensing images;

[0070] The causal prototype comparison module is used to narrow the distance between the source domain causal features and the target domain causal features to obtain domain-invariant causal features;

[0071] The causal intervention module includes a transposition intervention operation, a causal classifier C c and the bias classifier C b , the causal intervention module is used to further remove the correlation between causal features and deviation features.

[0072] In step S2, the steps of training the causal prototype-inspired remote sensing image domain adaptation semantic segmentation model using the source domain dataset and the target domain dataset are as follows:

[0073] Step S2.1: X S Input into the causal feature decoupling module to obtain the causal feature C of the source domain S and deviation feature B S ; X T Input into the causal feature decoupling module to obtain the causal feature C of the target domain T and deviation feature B T .

[0074] Step S2.2: The causal feature C of the source domain S and the causal characteristics C of the target domain T Input into the causal prototype contrast module for contrastive learning to narrow the causal features C of the source domain S and the causal characteristics C of the target domain T The distance between them, and the total causal contrast loss L CC ; Specifically, it includes two steps: causal prototype updating and causal prototype comparative learning:

[0075] Step S2.2.1, causal prototype update, specifically,

[0076] First, use the causal features C of the source domain S Initialize the causal prototype p,

[0077]

[0078] In formula 1), p1, p2, ..., p K They represent the causal prototypes of category 1, category 2, ... category K respectively. K category causal prototypes constitute a causal prototype p. K represents the total number of ground object categories in the remote sensing image. s represents the number of remote sensing images in the source domain, Represents C S The features belonging to category k, k∈{1, 2, ..., K};

[0079] Then, using the causal features C of the source domain Sand the causal characteristics C of the target domain T Update the causal prototype p,

[0080] p′ k =(1-m)·p k +m·C k 2);

[0081] In formula 2), p′ k Represents the updated p k , C k represent and A set of m represents the momentum parameter, and a polynomial annealing strategy is used to update m.

[0082]

[0083] In formula 3), m t represents the value of m at the tth iteration, T represents the total number of training iterations of the model, α and m0 are default parameters, and the value is 0.9;

[0084] Step S2.2.2: Causal prototype contrast learning. Specifically,

[0085] First, calculate the causal features of the source domain category k separately and the causal prototype p′ of category k k Similarities between and the causal characteristics of the target domain category k and the causal prototype p′ of category k k Similarities between

[0086]

[0087] In Equation 4) and Equation 5), τ represents the temperature hyperparameter, Represents C T The features belonging to category k in Represents C S The features belonging to category k in

[0088] Then, use and Calculate the source domain contrast loss L separately S Compared with the target domain loss L T ,

[0089]

[0090] In formula 6) and formula 7), represents the true value label of category k in the source domain, Represents the predicted label of category k in the target domain; according to the source domain contrast loss LS Compared with the target domain loss L T , calculate the total causal contrast loss L CC ,

[0091] L CC =L S +L T 8).

[0092] The causal feature C of the source domain S and deviation feature B S Input to the causal intervention module to obtain biased features and the unbiased character of counterfactuals Specifically, for each batch of source domain deviation feature matrix B S ∈R B×N×H×W Perform random matrix permutation at the batch level to generate a permutation bias feature matrix Among them, B is the batch size, N is the number of matrix channels, H is the matrix height, and W is the matrix width; the deviation feature matrix And the causal feature matrix C in the same batch S Superposition is performed at the channel level to obtain counterfactual unbiased features in, At the same time, the causal feature C S , Deviation feature B S Superposition is performed at the channel level to obtain biased features in,

[0093] Step S2.3: The biased features and the unbiased character of counterfactuals Input to the causal classifier C c Get the prediction results and At the same time, the biased features and the unbiased character of counterfactuals Input to the bias classifier C b Get the prediction results and

[0094] Step S2.4: Using the prediction results and Calculate the semantic segmentation loss L seg ; Specifically,

[0095]

[0096] In formula 9), L C Used to train the causal classifier C c , L BUsed to train the bias classifier C b , CE(·) represents the cross entropy loss function, SCE(·) represents the symmetric cross entropy loss function, Y S The transposed matrix of .

[0097] Step S2.5: Using the total causal contrast loss L CC and semantic segmentation loss L seg Calculate the loss L of the entire network, L = L CC +L seg ; Back-propagate the loss L from the output layer of the network to the input layer; Specifically, each layer of the network calculates the gradient of the parameters according to the loss L and updates the parameters along the gradient direction.

[0098] Step S2.6, repeat steps S2.1-S2.5 until all parameters of the causal prototype-inspired remote sensing image domain-adapted semantic segmentation model converge, and save the trained causal prototype-inspired remote sensing image domain-adapted semantic segmentation model.

[0099] Step S4 specifically includes:

[0100] Step S4.1: The remote sensing image X of the target domain T Input into the DeepLab-v3 semantic segmentation model to get the prediction result Y′ T ;

[0101] Step S4.2: Using the prediction result Y′ T and pseudo labels Calculate the semantic segmentation loss L seg-s , Where CE(·) represents the cross entropy loss function;

[0102] Step S4.3: Substitute the semantic segmentation loss L seg-s Backpropagates from the output layer of the DeepLab-v3 semantic segmentation model to the input layer; specifically, each layer of the network is trained according to the loss L seg-s Calculate the gradient of the parameters and update the parameters along the gradient direction;

[0103] Step S4.4: Repeat steps S4.1-S4.3 until all parameters of the DeepLab-v3 semantic segmentation model converge, and save the trained DeepLab-v3 semantic segmentation model;

[0104] Step S4.5: Use the trained DeepLab-v3 semantic segmentation model to predict the target domain image and obtain the final target domain semantic segmentation result.

[0105] The domain gap between high-resolution remote sensing images is mainly reflected in the differences in color texture, scale, shape representation, etc. of the object categories caused by differences in sensor type, resolution, imaging location or imaging weather. In order to verify that the method provided by the present invention can better handle these common data distribution differences in semantic segmentation tasks, we used the Potsdam dataset as the source domain and the Vaihingen dataset as the target domain (i.e., POT (IR-RG) → VAI (IR-RG) task) for experimental analysis (quantitative analysis and ablation study). The Potsdam dataset depicts a densely populated urban scene. It contains 38 high-resolution orthophoto slices with a size of 6000×6000 and a spatial resolution of 5 cm. The dataset contains three channels: near infrared (IR), red (R), and green (G). The Vaihingen dataset depicts a small village with a sparse layout pattern. It contains 33 high-resolution orthophoto slices with an average size of 2494×2064 pixels and a spatial resolution of 9 cm. The dataset also contains three channels: near infrared (IR), red (R), and green (G).

[0106] Quantitative analysis

[0107] The causal prototype-inspired remote sensing image domain adaptation semantic segmentation model of the present invention is compared with the pure source domain model and eight most advanced domain adaptation semantic segmentation methods (MCD_DA, AdaptSegNet, AdvEnt, FADA, SDCA, MUCSS, Zhang's and ProCA) that do not consider causality. The experimental results are shown in Table 1.

[0108]

[0109] Table 1 Quantitative evaluation results of different methods on the POT(IR-RG)→VAI(IR-RG) task

[0110] As can be seen from Table 1, due to the domain shift of spatial resolution, geographic location and scene, the pure source domain model has the worst performance, with OA, MA and mIoU values ​​of only 67.19%, 60.55% and 43.58% respectively. Compared with the pure source domain model, the eight comparison methods have improved the performance of semantic segmentation to varying degrees, because they have access to images in the target domain and use domain adaptation strategies. However, these methods often align pixels or features based on statistical information obtained from the image and its corresponding labels, which leads to uncertainty and unexplainability of the prediction results when facing complex and changeable remote sensing image scenes, limiting the performance of domain adaptation semantic segmentation on remote sensing images. Therefore, the OA, MA and mIoU values ​​of ProCA, the best performing model among the comparison methods, only reached 77.48%, 69.25% and 54.37%. Considering the invariant causal mechanism of different remote sensing image domains and semantic labels in the process of domain adaptation, the proposed method achieved the best performance, with OA, MA and mIoU values ​​reaching 80.18%, 76.94% and 60.75%, respectively. Compared with the pure source domain model, the OA performance of the proposed method is improved by 12.99%, the MA performance is improved by 16.39%, and the mIoU performance is improved by 17.17%. Compared with the best performing comparison method ProCA, the proposed method improves OA, MA and mIoU by 2.7%, 7.69% and 6.38%, respectively.

[0111] As can be seen from Table 1, the F1 values ​​of the proposed method in the impervious surface, building, tree, car and background classes reached 84.92%, 91.76%, 79.75%, 68.10% and 60.18%, respectively, which are 12.07%, 17.36%, 11.79%, 21.34% and 31.69% higher than those of the pure source domain model. It is worth noting that in the background class containing multiple geographic objects (such as water bodies, containers, tennis courts and swimming pools), the proposed method achieved a 60.18% performance improvement compared with the pure source domain model, and also achieved a 22.73% improvement compared with the best comparison method ProCA. This result shows that the proposed method has higher performance and better generalization ability for such categories with complex features, multiple semantics and diverse scenes, which is due to the fact that the proposed method reduces the interference of complex appearance features and irrelevant external factors on semantic segmentation performance by capturing the invariant causal mechanism between images and semantic categories in different remote sensing image domains.

[0112] Ablation studies

[0113] In order to evaluate the contribution of each module in the method of the present invention, Table 2 lists the ablation study results of the causal feature decoupling (CFD), causal prototype comparison (CPC), and causal intervention (CI) modules in the POT (IR-RG) → VAI (IR-RG) task.

[0114]

[0115] Table 2 Ablation study of the proposed method on the POT(IR-RG)→VAI(IR-RG) task

[0116] Compared with the pure source domain model, after adopting the CFD module, the results of OA and mIoU are improved by 9.0% and 8.94%, respectively, which confirms the effectiveness of causal feature separation. After further integrating the CI module, OA and mIoU are improved to 76.86% and 53.82%, respectively. At the same time, compared with the pure source domain model, after adopting CPC, the results of OA and mIoU are improved by 9.65% and 9.74%, respectively, which confirms the effectiveness of causal prototype contrastive learning in aligning feature distributions. It is worth noting that using only the CPC module achieves better segmentation performance than using only the CFD module, with improvements of 0.53% and 0.80% on OA and mIoU, respectively, which shows that extracting feature distributions between the source and target domains is more effective than separating causal features from the input image. In addition, after adopting the CFD module and the CPC module at the same time, OA and mIoU are improved by 77.37% and 54.42%, respectively. Compared with the model with only the CFD module, OA and mIoU are improved by 1.06% and 1.9%, respectively. Compared with the model with only the CPC module, OA and mIoU are improved by 0.53% and 1.1%, respectively. After adding the CI module, the performance of OA and mIoU reaches 77.00% and 56.32%, respectively. Finally, we obtain pseudo labels for the target domain based on the remote sensing image domain adaptation semantic segmentation model inspired by causal prototypes, and self-train the target domain on the Deeplab-v3 model with ResNet-101 as the backbone, and OA and mIoU are improved by 3.18% and 4.43%, respectively.

[0117] The present invention also provides a device corresponding to the above embodiment, which may be a processing device for a client, such as a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the method of the above embodiment.

[0118] The device of this embodiment includes a memory, a processor, and a computer program stored in the memory; the processor executes the computer program in the memory to implement the steps of the method of the above embodiment.

[0119] In some implementations, the memory may be a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.

[0120] In some other implementations, the processor may be a central processing unit (CPU), a digital signal processor (DSP), or other general-purpose processors of various types, which are not limited herein.

[0121] The present invention also provides a readable storage medium corresponding to the above embodiment, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps of the method of the above embodiment are implemented.

[0122] Computer readable storage media can be tangible devices that hold and store instructions used by instruction execution devices. Computer readable storage media can be, for example, but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any combination thereof.

[0123] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0124] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0125] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0126] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A remote sensing image domain adaptive semantic segmentation method, characterized in that: The following steps are involved: Step S1, determining a source domain dataset and a target domain dataset; Step S2, constructing a causal prototype-inspired remote sensing image domain-adaptive semantic segmentation model, and using a source domain dataset and a target domain dataset to train the causal prototype-inspired remote sensing image domain-adaptive semantic segmentation model; Step S3: input the remote sensing images in the target domain data set into the trained causal prototype-inspired remote sensing image domain adaptation semantic segmentation model to perform pseudo label prediction, and obtain the pseudo label of the target domain; Step S4: Use the target domain dataset and the target domain pseudo-label to train the DeepLab-v3 semantic segmentation model, input the target domain dataset into the trained DeepLab-v3 semantic segmentation model for prediction, and obtain the final target domain semantic segmentation result.

2. The remote sensing image domain adaptive semantic segmentation method according to claim 1, characterized in that: Step S1 is as follows: download the high-resolution remote sensing image datasets Potsdam dataset and Vaihingen dataset from the Internet, and cut the remote sensing images and corresponding labels in the Potsdam dataset into image blocks of 512*512 size as the source domain dataset (X S , Y S ), the remote sensing images in the Vaihingen dataset are cropped into image blocks of 512*512 size as the target domain dataset (X T ).

3. The remote sensing image domain adaptive semantic segmentation method according to claim 2, characterized in that: In step S2, the causal prototype-inspired remote sensing image domain adaptation semantic segmentation model includes a causal feature decoupling module, a causal prototype comparison module, and a causal intervention module; The causal feature decoupling module includes a causal encoder E c and Deviation Encoder E b , causal encoder E c For decoupling causal features from remote sensing images, the bias encoder E b Used to decouple deviation features from remote sensing images; The causal prototype comparison module is used to narrow the distance between the source domain causal features and the target domain causal features to obtain domain-invariant causal features; The causal intervention module includes a transposition intervention operation, a causal classifier C c and the bias classifier C b , the causal intervention module is used to further remove the correlation between causal features and deviation features.

4. The remote sensing image domain adaptive semantic segmentation method according to claim 3, characterized in that: In step S2, the steps of training the causal prototype-inspired remote sensing image domain adaptation semantic segmentation model using the source domain dataset and the target domain dataset are as follows: Step S2.1: X S Input into the causal feature decoupling module to obtain the causal feature C of the source domain S and deviation feature B S ; X T Input into the causal feature decoupling module to obtain the causal feature C of the target domain T and deviation feature B T ; Step S2.2: The causal feature C of the source domain S and the causal characteristics C of the target domain T Input into the causal prototype contrast module for contrastive learning to narrow the causal features C of the source domain S and the causal characteristics C of the target domain T The distance between them, and the total causal contrast loss L CC ; The causal feature C of the source domain S and deviation feature B S Input to the causal intervention module to obtain biased features and the unbiased character of counterfactuals Step S2.3: biased features and the unbiased character of counterfactuals Input to the causal classifier C c Get the prediction results and At the same time, the biased features and the unbiased character of counterfactuals Input to the bias classifier C b Get the prediction results and Step S2.4: Using the prediction results and Calculate the semantic segmentation loss L seg ; Step S2.5: Using the total causal contrast loss L CC and semantic segmentation loss L seg Calculate the loss L of the entire network, L = L CC +L seg ; Back-propagate the loss L from the output layer of the network to the input layer; Specifically, each layer of the network calculates the gradient of the parameters according to the loss L and updates the parameters along the gradient direction; Step S2.6, repeat steps S2.1-S2.5 until all parameters of the causal prototype-inspired remote sensing image domain-adapted semantic segmentation model converge, and save the trained causal prototype-inspired remote sensing image domain-adapted semantic segmentation model.

5. The remote sensing image domain adaptive semantic segmentation method according to claim 4, characterized in that: In step S2.2, the causal feature C of the source domain is S and the causal characteristics C of the target domain T Input into the causal prototype comparison module for comparative learning, which includes the following steps: Step S2.2.1, causal prototype update, specifically, First, use the causal features C of the source domain S Initialize the causal prototype p, In formula 1), p1, p2, ..., p K They represent the causal prototypes of category 1, category 2, ... category K respectively. K category causal prototypes constitute a causal prototype p. K represents the total number of ground object categories in the remote sensing image. s represents the number of remote sensing images in the source domain, Represents C S The features belonging to category k, k∈{1, 2, ..., K}; Then, using the causal features C of the source domain S and the causal characteristics C of the target domain T Update the causal prototype p, p′ k =(1-m)·p k +m·C k 2); In formula 2), p′ k Represents the updated p k , C k represent and A set of m represents the momentum parameter, and a polynomial annealing strategy is used to update m. In formula 3), m t represents the value of m at the tth iteration, T represents the total number of training iterations of the model, and α and m0 are default parameters; Step S2.2.2: Causal prototype contrast learning. Specifically, First, calculate the causal features of the source domain category k separately and the causal prototype p′ of category k k Similarities between and the causal characteristics of the target domain category k and the causal prototype p′ of category k k Similarities between In Equation 4) and Equation 5), τ represents the temperature hyperparameter, Represents C T The features belonging to category k in Represents C S The features belonging to category k in Then, use and Calculate the source domain contrast loss L separately S Compared with the target domain loss L T , In formula 6) and formula 7), represents the true value label of category k in the source domain, Represents the predicted label of category k in the target domain; according to the source domain contrast loss L S Compared with the target domain loss L T , calculate the total causal contrast loss L CC , L CC =L S +L T 8) 6. The remote sensing image domain adaptive semantic segmentation method according to claim 5, characterized in that: In step S2.2, the causal feature C of the source domain is S and deviation feature B S Input to the causal intervention module to obtain biased features and the unbiased character of counterfactuals Specifically, For each batch of source domain deviation feature matrix B S ∈R B×N×H×W Perform random matrix permutation at the batch level to generate a permutation bias feature matrix Among them, B is the batch size, N is the number of matrix channels, H is the matrix height, and W is the matrix width; the deviation feature matrix And the causal feature matrix C in the same batch S Superposition is performed at the channel level to obtain counterfactual unbiased features in, At the same time, the causal feature C S , Deviation feature B S Superposition is performed at the channel level to obtain biased features in, 7. The remote sensing image domain adaptive semantic segmentation method according to claim 6, characterized in that: In step S2.4, the prediction results are used and Calculate the semantic segmentation loss L seg , specifically, In formula 9), L C Used to train the causal classifier C c , L B Used to train the bias classifier C b , CE(·) represents the cross entropy loss function, SCE(·) represents the symmetric cross entropy loss function, Y S The transposed matrix of .

8. The remote sensing image domain adaptive semantic segmentation method according to claim 2, characterized in that: Step S4 specifically includes: Step S4.1: The remote sensing image X of the target domain T Input into the DeepLab-v3 semantic segmentation model to get the prediction result Y′ T ; Step S4.2: Using the prediction result Y′ T and pseudo labels Calculate the semantic segmentation loss L seg-s , Where CE(·) represents the cross entropy loss function; Step S4.3: Set the semantic segmentation loss L seg-s Backpropagates from the output layer of the DeepLab-v3 semantic segmentation model to the input layer; specifically, each layer of the network is trained according to the loss L seg-s Calculate the gradient of the parameters and update the parameters along the gradient direction; Step S4.4: Repeat steps S4.1-S4.3 until all parameters of the DeepLab-v3 semantic segmentation model converge, and save the trained DeepLab-v3 semantic segmentation model; Step S4.5: Use the trained DeepLab-v3 semantic segmentation model to predict the target domain image and obtain the final target domain semantic segmentation result.

9. A device, characterized in that: The device includes a memory and a processor, wherein the memory stores a computer program; the processor executes the computer program to implement the remote sensing image domain adaptive semantic segmentation method as described in any one of claims 1-8.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and the processor executes the computer program to implement the remote sensing image domain adaptive semantic segmentation method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Remote sensing image cross-domain classification method based on interpretable deep learning

    CN113537317A

  • Local-to-global domain adaptive remote sensing image semantic segmentation method based on pseudo tag generation

    CN115830597A

  • Streetscape semantic segmentation method and equipment based on generalization causal learning

    CN117456529A

  • Cross-domain remote sensing image semantic segmentation method based on adaptation and self-training in iteration domain

    WO2023201772A1

Cited By

  • Weak supervision medical image segmentation method and system based on causal intervention

    CN119693642A