A network model for semantic change detection in dual-temporal remote sensing images

Through technical means such as dual-temporal twin network and Transformer module, the problem of binary change detection and semantic segmentation correlation exploration in semantic change detection of dual-temporal remote sensing images is solved, and high-performance semantic change detection is achieved, which is superior to existing technologies. .

CN118397480BActive Publication Date: 2024-08-30EAST CHINA JIAOTONG UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410851226.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-08-30
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing dual-temporal remote sensing image semantic change detection technology is difficult to fully explore the correlation between binary change detection and semantic segmentation, making it difficult to achieve high-performance detection.

Method used

Dual-temporal twin network, Transformer module, multi-task head and spatio-temporal feature learning module are used to extract multi-scale features through the CNN backbone network, the spatial attention module embeds position information, the Transformer module captures long-distance dependencies, and the multi-task head generates semantic segmentation and Binary change detection predicts the output and ensures image sequence consistency through a spatiotemporal feature learning module.

Benefits of technology

It achieves high performance in semantic change detection in dual-temporal remote sensing images, improves the accuracy and stability of semantic change detection, and is better than the performance of existing technologies on WHU-CD, SECOND and HRSCD data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397480B
    Figure CN118397480B
Patent Text Reader

Abstract

A network model for semantic change detection of dual-temporal remote sensing images includes a dual-temporal twin network, a Transformer module, a multi-task head and a spatiotemporal feature learning module; the dual-temporal twin network uses a CNN backbone network to extract multi-scale feature maps from an input dual-temporal remote sensing image pair and converts the multi-scale feature maps into visual tags, the dual-temporal twin network includes two CNN backbone networks, the CNN backbone network uses a residual network ResNet, the two CNN backbone networks share weights, the Transformer module is used to capture the long-distance dependency between visual tags, and obtain the output feature map of the Transformer module; the multi-task head is used to generate the prediction output of semantic segmentation and binary change detection based on the output feature map of the Transformer module; the spatiotemporal feature learning module is used for the binary change detection task. The network model can fully explore the correlation between binary change detection and semantic segmentation, so that the two tasks can promote each other and achieve high-performance semantic change detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of image analysis, and in particular to a network model for detecting semantic changes in dual-temporal remote sensing images. Background Art

[0002] Binary change detection (BCD) of bi-temporal remote sensing images refers to the use of computer vision and deep learning technologies to identify the location of areas that have changed from two remote sensing images covering the same area taken at different times. Bi-temporal remote sensing semantic change detection (SCD) analyzes two remote sensing images covering the same geographic area acquired at different times, aiming to not only identify the location of surface changes between images, but also further understand the semantic information of these changes, that is, the type and nature of the changes. This detection focuses on explaining the meaning of changes, such as the transformation from forest to farmland, or the addition or demolition of buildings. Compared with binary change detection, bi-temporal remote sensing semantic change detection can provide richer and more detailed information on surface changes, supporting decision-making in areas such as urban planning, disaster assessment, and environmental monitoring.

[0003] The rapid growth of high-quality satellite images and the advancement of deep learning technology have promoted the development of change detection technology, while also placing higher requirements on intelligent change detection technology. Existing change monitoring technology research mainly focuses on binary change detection, and semantic change detection of remote sensing images is still relatively underexplored. From a computer vision perspective, BCD is a binary semantic segmentation task that aims to identify the areas that have changed in the image; while SCD is a more complex task that requires generating a binary change map and land cover maps at two time points (the semantic segmentation results of the corresponding locations). The BCD model has only a single output branch, while the SCD model requires three output branches. Due to the fundamental differences between the output and the basic assumptions, the previous deep learning-based BCD model cannot be directly applied to SCD. In addition, the BCD model assumes that the prediction results of the binary change are invariant to the order of the two images in the input image pair, while the prediction results of the two land cover maps in SCD have a strict one-to-one correspondence with the two images in the input dual-temporal image pair.

[0004] To address the challenges of SCD, relevant researchers have proposed two types of models: single-task algorithms and multi-task algorithms. Single-task SCD algorithms usually decompose the change detection task (CD) into two independent stages: image semantic segmentation and BCD. However, this approach relies on the accuracy of the initial segmentation because errors propagate to the BCD step. In addition, the training of the semantic segmentation model fails to fully consider the temporal contextual relationship between images captured at different stages. In contrast, the multi-task SCD algorithm uses a single network to jointly model semantic segmentation and BCD, allowing different tasks to promote each other to improve the performance of each task.

[0005] While multi-task learning (MTL) brings benefits when applied to SCD, it also presents challenges. It is complex to integrate features from different tasks without causing interference or information redundancy. Unlike semantic segmentation, high-performance BCD must remain invariant to the order of input images. In addition, the multi-task head plays a key role in guiding the learning process for each specific task in the MTL model, leveraging the shared information between all tasks to improve efficiency and performance. However, competing for shared information between tasks may lead to performance degradation. In addition, it is challenging to balance the homogeneity and heterogeneity features in SCD in MTL. Homogeneity features focus on capturing the similarities between images at different times, while heterogeneity features capture their unique characteristics. It is crucial to strike a proper balance between these features. Over-emphasizing homogeneity may ignore subtle changes, while over-emphasizing heterogeneity may increase sensitivity to noise too much.

[0006] Therefore, how to fully explore the correlation between binary change detection and semantic segmentation so that these two tasks can promote each other and achieve high-performance semantic change detection is a technical problem that technicians in this field need to solve. Summary of the invention

[0007] The purpose of the present invention is to provide a network model for semantic change detection in dual-temporal remote sensing images, so as to fully explore the correlation between binary change detection and semantic segmentation, so that the two tasks can promote each other and achieve high-performance semantic change detection.

[0008] A network model for semantic change detection of dual-temporal remote sensing images, comprising a dual-temporal twin network, a Transformer module, a multi-task head and a spatiotemporal feature learning module, wherein the Transformer module has an encoder and a decoder;

[0009] The dual-phase twin network uses a CNN backbone network to extract a multi-scale feature map from an input dual-phase remote sensing image pair and converts the multi-scale feature map into a visual tag. The dual-phase twin network includes two CNN backbone networks. The CNN backbone network uses a residual network ResNet. Weights are shared between the two CNN backbone networks. A spatial attention module is used in the dual-phase twin network to embed spatial position information into the multi-scale feature map, and the multi-scale feature map is fused through sampling and pixel-level addition operations.

[0010] The Transformer module is used to capture the long-distance dependency between visual markers to obtain an output feature map of the Transformer module;

[0011] The multi-task head is used to generate prediction outputs for semantic segmentation and binary change detection based on the output feature map of the Transformer module;

[0012] The spatiotemporal feature learning module is used for binary change detection tasks to make the result of the first binary change detection consistent with the result of the second binary change detection, wherein the images in the dual-phase remote sensing image pair are arranged in chronological order, and the obtained binary change detection result is the result of the first binary change detection, and the images in the dual-phase remote sensing image pair are arranged in reverse chronological order, and the obtained binary change detection result is the result of the second binary change detection.

[0013] According to the network model for semantic change detection of dual-temporal remote sensing images provided by the present invention, the dual-temporal twin network can simultaneously model two tasks, namely semantic segmentation and binary change detection. The dual-temporal twin network uses a CNN backbone network to extract multi-scale feature maps from the input dual-temporal remote sensing image pairs, which can capture visual information at different spatial resolutions, and then convert the multi-scale feature maps into visual tags. The spatial position information is embedded into the multi-scale feature maps using a spatial attention module, and the long-distance dependencies between the visual tags are captured through the Transformer module. Subsequently, the prediction outputs of semantic segmentation and binary change detection are generated through a multi-task head. The multi-task head can effectively utilize the information from Tr The multi-scale features extracted from the ansformer block enable the model to adapt to different subtasks in a targeted manner. In order to enhance the feature representation of the binary change detection task, the temporal symmetry features are learned through the spatiotemporal feature learning module to ensure that the prediction results of the binary change detection task remain consistent when the order of the two images in the image pair is swapped. The network model can fully explore the correlation between binary change detection and semantic segmentation, so that the two tasks can promote each other and achieve high-performance semantic change detection. Experiments on the remote sensing image semantic change detection datasets WHU-CD, SECOND and HRSCD have confirmed that the network model is superior to the existing algorithms in the semantic change detection task. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a schematic diagram of the structure of the network model used for semantic change detection of dual-temporal remote sensing images in the present invention. DETAILED DESCRIPTION

[0015] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0016] See also Figure 1 An embodiment of the present invention provides a network model for semantic change detection of dual-temporal remote sensing images, including a dual-temporal twin network, a Transformer module, and a multi-task head, wherein the Transformer module has an encoder and a decoder.

[0017] The dual-temporal twin network uses a CNN backbone network to extract multi-scale feature maps from the input dual-temporal remote sensing image pair and converts the multi-scale feature maps into visual tags. The dual-temporal twin network includes two CNN backbone networks. The CNN backbone network adopts the residual network ResNet. The weights are shared between the two CNN backbone networks. A spatial attention module is used in the dual-temporal twin network to embed spatial position information into the multi-scale feature map, and the multi-scale feature map is fused through sampling and pixel-level addition operations.

[0018] In this embodiment, a dual-temporal twin network is used for multi-scale feature extraction. Multi-scale feature extraction is essential for capturing information at different spatial resolutions, which allows the model to extract both fine detail information and broader contextual information. This ability enables the model to discern subtle changes in land cover that may not be noticeable at a single spatial scale. By considering features at different scales, the model improves its discriminative ability, allowing it to more accurately distinguish different land cover classes and more accurately detect semantic changes.

[0019] The CNN backbone network includes a 7×7 convolutional layer and four residual blocks, wherein the residual block Res3 and the residual block Res4 perform 2x downsampling;

[0020] For a dual-temporal remote sensing image pair with an input size of 3×H×W , W and H represent the width and height of the input image respectively, and the CNN backbone network extracts and images Three feature maps of different scales are extracted from each branch. Then, the feature maps are processed by the spatial attention module. Finally, for each phase branch, the feature map The other two feature maps of the same phase branch are fused by sampling and pixel-level addition to output the feature map .

[0021] In the dual-phase twin network, the feature map is first Apply a 1×1 convolution followed by a softmax layer to obtain m A spatial attention map of size h×w , where h and w represent the dimension corresponding to the height of the feature map and the dimension corresponding to the width of the feature map, respectively. Represents the kth column in a spatial attention map corresponding to the phase branch of phase i and scale j. Then, the spatial attention map is used to Apply weighted average pooling operation to transform the feature map and spatial attention map The sizes of are reshaped into c×hw and hw×1 respectively, where c is the number of channels of the feature map, and the feature map is centered using the spatial attention map. Applying the weighted average pooling operation satisfies the following formula:

[0022] ;

[0023] in, Indicates the visual mark corresponding to the phase branch of phase i and scale j The kth column in ;

[0024] Last pair Splice to get the visual mark corresponding to the phase branch of phase i and scale j , for use by subsequent Transformer modules.

[0025] The Transformer module is used to capture the long-range dependencies between visual markers to obtain the output feature map of the Transformer module. In the present invention, the encoder of the transformer module cleverly captures the long-range dependencies through the self-attention mechanism. This mechanism enables the model to fully understand the spatial and temporal relationship between the two images in the input dual-time image pair. By doing so, the effectiveness of the semantic change detection model is enhanced, the context understanding is enriched and the discriminative ability of the features is enhanced.

[0026] The Transformer module uses convolution operation to transform the feature map Convert to size m Visual marker set ;

[0027] In visual marking Add a learnable positional encoding to The encoder takes the tokenized feature map as input and generates an encoded output feature map. .

[0028] The encoder consists of N eEach layer consists of a multi-head self-attention module and a feedforward neural network module. After the tokenized feature map is input into the encoder, it is l -1st floor to l The layers need to be processed by the multi-head self-attention module and the feedforward neural network module in sequence. In addition, to ensure the stability of SCD, layer normalization (LN) is used to normalize the inputs processed by the multi-head self-attention module and the feedforward neural network module, and residual connections are used for the outputs of the two modules.

[0029] Specifically, the encoder l After the -1 layer is layer-normalized, the l -1 layer corresponding feature map is passed to l In the multi-head self-attention module of the layer, the input features are mapped to multiple feature subspaces through N independent attention heads in parallel, where the N independent attention heads do not share weights, and each attention head includes a conversion layer and a self-attention layer. First, the input features are mapped into a set of key vectors, value vectors, and query vectors through the conversion layer; then the attention matrix is ​​calculated based on the key vector, value vector, and query vector to obtain the output features of each attention head in the multi-head self-attention module, and finally the output features of each attention head are spliced, and the splicing result is linearly projected to obtain the output features of the multi-head self-attention module;

[0030] The conversion layer is used to convert the l -1 layer corresponding feature map Mapping to key vector , value vector and query vector , for the l The nth attention head of the layer, the multi-head self-attention module is about The linear transformation of is expressed as:

[0031] ;

[0032] ;

[0033] ;

[0034] in, , , are the linear matrices corresponding to the key vector, value vector, and query vector respectively;

[0035] The output feature of the self-attention layer is obtained by weighted summing the value vector and the attention weight after softmax normalization, where lThe nth attention head in the layer satisfies the following condition:

[0036] ;

[0037] in, is the attention matrix obtained by calculating the attention weights between each pair of visual markers, is a function that normalizes the attention matrix along the row dimension, T represents the transpose operation, is the scaling factor of the scaled dot-product attention mechanism;

[0038] Getting the attention matrix After that, the output features of the nth attention head are calculated using the attention matrix of the two time branches to capture the cross-time correlation. l In the two phase branches of the layer, the output features of the nth attention head are expressed as:

[0039] ;

[0040] in, , They represent the output features of the nth attention head corresponding to phase 1 and the output features of the nth attention head corresponding to phase 2, respectively. , They represent the attention matrix corresponding to phase 1 and the attention matrix corresponding to phase 2 respectively. , Respectively represent the value vector corresponding to phase 1 and the value vector corresponding to phase 2;

[0041] Then concatenate and project the output features of the N attention heads to get l Output features of the multi-head self-attention module of the layer , the expression is as follows:

[0042] ;

[0043] in, concat Represents a splicing operation, represents the output feature of the first attention head corresponding to the i-th time, represents the output feature of the second attention head corresponding to the i-th time, represents the output feature of the Nth attention head corresponding to the i-th time, represents the projection matrix;

[0044] Finally, the output features of the multi-head self-attention module are passed to the feedforward neural network module, which includes two linear layers with a GELU activation function between the two linear layers. The GELU activation function helps introduce nonlinearity to learn complex input-output relationships.

[0045] The decoder uses the output of the encoder as input to reconstruct pixel-level features in pixel space. Specifically, the decoder converts the feature map , and feature maps with trainable positional encodings As input, the decoder adds a feature map with trainable positional encodings Mapped into the query vector, and Mapped into key vectors and value vectors, adding trainable positional encoded feature maps After being processed by the Transformer module, the output feature map of the Transformer module is obtained .

[0046] The multi-task head is used to generate prediction outputs for semantic segmentation and binary change detection based on the output feature maps of the Transformer module. The multi-task head enables the model to exploit shared feature representations between different tasks, thereby improving the performance of both tasks. Both semantic segmentation and BCD are pixel-by-pixel classification tasks. The same network architecture is used for both tasks to simplify the model.

[0047] Specifically, the multi-task head includes two semantic segmentation heads and one binary change detection head, each of the multi-task heads contains three 2x upsampling blocks, each upsampling block uses nearest neighbor upsampling, and two 3×3 convolutional layers are applied before the two upsampling blocks; the number of channels of the prediction output of the semantic segmentation head is two, corresponding to two categories of change or not, and the number of channels of the prediction output of the binary change detection head is equal to the number of predefined semantic categories.

[0048] In this embodiment, the network model also includes a spatiotemporal feature learning module.

[0049] The spatiotemporal feature learning module is used for the binary change detection task, so that the result of the first binary change detection is consistent with the result of the second binary change detection, wherein the images in the dual-phase remote sensing image pair are arranged in chronological order, and the binary change detection result obtained is the result of the first binary change detection, and the images in the dual-phase remote sensing image pair are arranged in reverse chronological order, and the binary change detection result obtained is the result of the second binary change detection. That is, regardless of whether the images in the dual-phase image pair are arranged in chronological order or in reverse chronological order, the SCD network can produce consistent BCD prediction results for the dual-phase image pair. The invariance of the dual-phase image features to the order of the image sequence is crucial to ensuring the accuracy and reliability of BCD.

[0050] In this embodiment, the binary change detection head includes a spatiotemporal feature learning module, and the semantic segmentation head does not include a spatiotemporal feature learning module.

[0051] Specifically, in the spatiotemporal feature learning module, along the channel dimension and Connect them to get two blocks of size 2c×h×w and , the expression is:

[0052] ;

[0053] ;

[0054] in, is the output feature map of the Transformer module corresponding to phase 1, is the output feature map of the Transformer module corresponding to phase 2, is the new feature map corresponding to phase 1, is the new feature map corresponding to phase 2;

[0055] Then and The size of is reshaped from 2c×h×w to 2×c×h×w, thus obtaining two 4D feature maps;

[0056] Finally, a 3D convolution operation of size k×k×k is applied to each of the two 4D feature maps. Then, the two spatiotemporal features are fused together using matrix dot multiplication to fuse the features. , the expression is as follows:

[0057] ;

[0058] in, Conv3d represents a 3D convolution operation, Represents matrix dot product.

[0059] In this embodiment, the total loss of the network model for semantic change detection of dual-temporal remote sensing images includes two semantic segmentation losses and one binary change detection loss, and the semantic segmentation loss and the binary change detection loss are modeled using multi-category cross entropy loss and binary cross entropy loss respectively;

[0060] Among them, the expressions of the two semantic segmentation losses are:

[0061] ;

[0062] ;

[0063] in, , Represent the semantic segmentation loss relative to phase 1 and phase 2, respectively. represents the number of pixels in the training set, CE represents the cross entropy loss function, , are the true value labels of the d-th pixel in the semantic segmentation task, Indicates that the d-th pixel corresponds to the branch of phase 1 relative to The predicted probability of Indicates that the dth pixel corresponds to the branch of phase 2 relative to The predicted probability of

[0064] The expression of binary change detection loss is:

[0065] ;

[0066] in, Represents the loss between the predicted result and the true value of binary change detection, and Respectively represent the true value and prediction result corresponding to the d-th pixel;

[0067] The total loss of the network model for semantic change detection in bi-temporal remote sensing images L The expression is:

[0068] ;

[0069] in, is the weight of semantic segmentation loss.

[0070] The network model of the present invention is experimentally tested below.

[0071] 1. Dataset used in the experiment

[0072] The present invention conducts comprehensive experiments on three SCD benchmark datasets: WHU-CD, SECOND and HRSCD.

[0073] WHU-CD: It contains two aerial images of 32507×15354 pixels taken in Christchurch, New Zealand in 2012 and 2016, with a spatial resolution of 0.2 meters per pixel. The dataset provides labels for buildings and building changes for the images of 2012 and 2016. The work splits the two images into non-overlapping 256×256 pixel patches for model training and evaluation. The dataset contains 4461 training patches, 1487 validation patches, and 1486 test patches.

[0074] SECOND: It contains 4462 pairs of remote sensing images from various sensors, of which 2968 pairs of images are accompanied by publicly available annotations. Each 512×512 pixel image has a spatial resolution of 0.3-5 meters and covers areas of Hangzhou, Chengdu, and Shanghai. It provides pixel-level annotations for six land cover classes (including ground, trees, low vegetation, water bodies, buildings, and playgrounds), and includes labels for 37 potential types of land cover changes, including changes between 36 different classes and areas where no changes have occurred. The dataset is divided into a training set (2375 pairs of images) and a test set (593 pairs of images), with a training set and a test set ratio of 4:1.

[0075] HRSCD: It contains 291 pairs of RGB aerial images with a resolution of 0.5 meters and a size of 10000×10000 pixels. Each pair of images is accompanied by its corresponding land cover annotation, which details six different categories: no information, artificial areas, agricultural areas, forests, wetlands, and water areas. The images were carefully collected from urban and rural areas of Rennes and Caen, France. The original images were cropped using a non-overlapping method. Cropping was performed only when the proportion of the changed area exceeded 10%. Through this process, 2373 pairs of 512×512 pixel samples were extracted for model training and evaluation. Pixels marked as "no information" were excluded from the training set to ensure that the change detection algorithm was evaluated only based on the remaining five categories. The dataset was divided into a training subset (containing 1900 pairs of images) and a test subset (containing 473 pairs of images), maintaining a balanced ratio of 4:1 between training data and test data.

[0076] 2. Evaluation indicators

[0077] The network model of the present invention (hereinafter referred to as MCTNet) was compared with several benchmark algorithms on binary change detection (hereinafter referred to as BCD) and semantic change detection (hereinafter referred to as SCD) tasks. Four commonly used BCD evaluation indicators were used, including: precision, recall, intersection over union (IoU), and F1 score. For semantic segmentation, the performance indicators of each category were reported using the same indicators. In addition, the average performance of all categories was compared. In order to comprehensively evaluate the semantic segmentation performance, the overall accuracy (OA), average precision (AP), and Kappa coefficient were included in the analysis.

[0078] 3. Comparison Models

[0079] Comparison models include recent change detection models including CNN and Transformer. CNN-based comparison models include DTCDSCN, DSIFN / IFN, MFPNet, and SNUNet. Transformer comparison models include BIT, MSCANet, Bi-SRNet, ChangeFormer, and AMT-Net. Among the comparison models, DTCDSCN and Bi-SRNet are multi-task networks, while the others are single-task networks. These comparison models have publicly available official or unofficial implementations.

[0080] It should be pointed out that in terms of details, MCTNet and benchmark models were implemented using the PyTorch library, and RTX3090 GPU was used for training and evaluation. In the experiment, the size of the input image was standardized: WHU-CD was 256×256 pixels, SECOND and HRSCD were 512×512 pixels, and a fixed batch size of 8 was used. The AdamW optimizer was used for optimization, with an initial learning rate of 1e-4 and a weight decay coefficient of 0.01. For the semantic segmentation task, the cross entropy loss function was used. The Transformer module contains 4 encoders and 4 decoders. In the spatiotemporal feature learning module (SFL) stage, the 3D convolution kernel size was set to 3×3×3. During training, data enhancement including random rotation and vertical / horizontal flipping was applied. Let the visual token length l be 4. The model was trained for 100 epochs.

[0081] 4. Comparison results

[0082] 1) Comparison results for binary change detection: WHU-CD dataset. As shown in Table 1, MCTNet achieves new SOTA results on this dataset, outperforming the comparison algorithms.

[0083] Table 1 Comparison results of BCD tasks on the WHU-CD dataset (100%)

[0084]

[0085] Specifically, MCTNet achieved the highest recall of 95.24%, the best F1 score of 94.35%, and the highest IoU of 89.30%. It also achieved the second-highest precision of 93.47%. The next best performing model on this dataset is Bi-SRNet. It achieved excellent results with 92.58% precision, 94.39% recall, 93.48% F1 score, and 87.76% IoU. Although slightly lower than MCTNet, Bi-SRNet still performed well on key evaluation metrics and ranked second overall. Compared to Bi-SRNet, MCT-Net improved 0.89% precision, 0.85% recall, 0.87% F1 score, and 1.54% IoU. The single-task twin CNN-Transformer network AMTNet achieved the third best overall performance. The performance improvement of MCTNet and Bi-SRNet compared to AMTNet is likely due to the use of a multi-task architecture.

[0086] It should be noted that the models in the prior art other than the invention in Table 1 are:

[0087] DTCDSCN comes from paper: 25 Y. Liu, C. Pang, Z. Zhan, X. Zhang, and X. Yang, "Building change detection for remote sensing images using a dual-taskconstrained deep siamese convolutional network model," IEEE Geosci. Remote Sens. Lett. , vol. 18, no. 5, pp. 811–815, 2020.

[0088] DSIFN / IFN comes from the paper: C. Zhang, P. Yue, D. Tapete, L. Jiang, B.Shangguan, L. Huang, and G. Liu, “A deeply supervised image fusion network for change detection in high resolution bi-temporal remote sensing images,” I EEE Trans. Geosci. Remote Sens. , vol. 166, pp. 183–200, 2020.

[0089] SNUNet Directory:S. Fang, K. Li, J. Shao, and Z. Li, “SNUNet-CD: Addensely connected construction network for change detection of vhr images,” 1999 . IEEE Geosci. Remote Sens. Lett. , vol. 19, pp. 101-1 1–5, 2021.

[0090] MFPNet Configuration Guide:J. https: / / doi.org / 10.1103 / PhysRevLett.93.111011 , Google Scholar Crossref , CAS 31. Xu, C. Luo, X. Chen, S. Wei, and Y. Luo. Remote Sens. , vol. 13, no. 15, pp. 3053–3056,

[0091] BIT switchboard:H. Google Scholar Crossref , CAS 4. Chen, Z. Qi, and Z. Shi. IEEE Trans. Geosci. Remote Sens. , vol. 60, pp. 1–14,

[0092] ChangeFormerReferences:WGC Bandara and VM Patel, “A transformer-based Siamese network for change detection,” in IGARSS , 2022, pp. 207–210.

[0093] Bi-SRNet Configuration Guide:L. http: / / dx.doi.org / 10.1037 / 0033-295X.111.2.111 Ding, H. Guo, S. Liu, L. Mou, J. Zhang, and L.Bruzzone. IEEE Trans. Geosci. Remote Sens. , vol. 60, pp. 1–14, 2022.

[0094] MSCANet comes from the paper: M. Liu, Z. Chai, H. Deng, and R. Liu, “A CNN-transformer network with multi-scale context aggregation for fine-grainedcropland change detection,” IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. ,pp. 4297–4301, 2022.

[0095] AMTNet comes from the paper: W. Liu, Y. Lin, W. Liu, Y. Yu, and J. Li, "Anattention-based multiscale transformer network for remote sensing imagechange detection," ISPRS J. Photogramm. Remote Sens. , vol. 202, pp. 599–609, 2023.

[0096] 2) Comparison results for binary change detection: SECOND dataset.

[0097] Table 2 Comparison results of BCD tasks on the SECOND dataset (100%)

[0098]

[0099] As shown in Table 2, on the BCD task on the SECOND dataset, MCTNet achieved the best overall result with a recall of 66.75%, an F1 score of 70.10%, and an IoU of 53.96%. The second place is Bi-SRNet, which achieved good results with a precision of 65.07%, a recall of 68.35%, an F1 score of 66.67%, and an IoU of 51.92%. Compared with Bi-SRNet, MCTNet improved by 1.82% in precision, 1.68% in recall, 1.75% in F1 score, and 2.04% in IoU. On this dataset, the CNN-based model MFPNet achieved the third best overall result. The outstanding performance of MFPNet is due to its complex architecture, which combines multi-scale features and attention modules.

[0100] 3) Comparison results for binary change detection: HRSCD dataset.

[0101] Table 3 Comparison results of BCD tasks on HRSCD dataset (100%)

[0102]

[0103] As shown in Table 3, MCTNet performs well on the BCD task on HRSCD and achieves the highest overall result. Its precision is 77.43%, recall is 72.40%, F1 score is 74.83%, and IoU is 59.78%. AMTNet, a CNN-transformer network, achieves the second best overall result on this dataset with precision of 72.75%, recall of 74.21%, F1 score of 73.47%, and IoU of 58.07%. Its robust performance is due to its complex architecture, which combines ConvNets, transformers, multi-scale, and attention mechanisms to effectively capture spatial dependencies. Compared with AMTNet, MCTNet improves 4.68% precision, 1.36% F1 score, and 1.71% IoU. The third place is Bi-SRNet, which also achieved good results, with a precision of 75.53%, a recall of 71.07%, an F1 score of 73.23%, and an IoU of 57.76%. In addition, Bi-SRNet also achieved the third best overall result on this dataset.

[0104] 4) Comparison results for semantic change detection: WHU-CD dataset.

[0105] WHU-CD. The WHU-CD dataset contains only two semantic classes: background and building. As shown in Table 4, the performance of semantic segmentation is compared by evaluating precision, recall, F1 score, and IoU.

[0106] Table 4 Comparison results of semantic change detection on the WHU-CD dataset (100%)

[0107]

[0108] As can be seen from Table 4, MTCNet achieves the best performance on this dataset. Bi-SRNet and DTCDSCN achieve the second and third best performance in overall performance, respectively. On this dataset, the performance gap between MTCNet and Bi-SRNet is small. For the building segmentation task, the CNN-based DTCDSCN model is significantly lower than the two CNN-Transformer hybrid networks in terms of F1 score and IoU. As shown in Table 4, MTCNe achieves an accuracy of 96.51%, a recall of 95.83%, an F1 score of 96.17%, and an IoU of 92.61%. The IoU of Bi-SRNet and MTCNet on this dataset has exceeded 90%, indicating that the performance is close to saturation.

[0109] 5) Comparison results for semantic change detection: SECOND dataset.

[0110] The SECOND dataset is more challenging for semantic segmentation than the WHU-CD dataset because it requires the identification of six different semantic categories. It is worth noting that the dataset is highly class-imbalanced, with more than 80% of the samples belonging to the ground, low vegetation, and building classes. Table 5 provides a comparative analysis of the three SCD methods on each category.

[0111] Table 5 Comparison results of semantic change detection on the SECOND dataset (100%)

[0112]

[0113] As can be seen from Table 5, MCTNet shows superior overall performance in terms of precision, recall, F1 score, and IoU. Especially for the water class, MCTNet outperforms Bi-SRNet and DTCDSCN in precision, recall, F1 score, and IoU. The four evaluation indicators in Table 5 show that all three SCD models show strong capabilities in identifying ground, low vegetation, and buildings.

[0114] 6) Comparison results for semantic change detection: HRSCD dataset.

[0115] Table 6 shows the semantic segmentation comparison results on the HRSCD dataset.

[0116] Table 6 Comparison results of semantic change detection on the HRSCD dataset (100%)

[0117]

[0118] From Table 6, we can see that MCTNet outperforms its opponents in all four evaluation metrics on this dataset, across all categories, except the accuracy on water areas.

[0119] Table 7 Overall comparison results of semantic segmentation on three datasets (100%)

[0120]

[0121] Table 7 compares the overall results of semantic segmentation on the three datasets. It can be seen from Table 7 that on the WHU-CD dataset, MTCNet achieves the most superior semantic segmentation results among all SCD methods, as evidenced by indicators including mIoU, AP, OA, and Kappa. Table 7 also shows that MTCNet achieves the most superior semantic segmentation results among all SCD methods, including four indicators including mIoU, AP, OA, and Kappa. In addition, Table 7 shows that MTCNet achieves the most superior semantic segmentation results among all SCD methods on the HRSCD dataset, including four indicators including mIoU, AP, OA, and Kappa.

[0122] 7) Model efficiency

[0123] The efficiency of the model is evaluated by evaluating three key metrics: floating point operations (FLOPs), parameters (Params), and frames per second (FPS).

[0124] Table 8 Comparative analysis of efficiency under different network input scales

[0125]

[0126] Table 8 shows three indicators: FLOPs (floating point operations) and Params (parameters) for two image input sizes of 256×256 pixels and 512×512 pixels. Among the Transformer-based networks, ChangeFormer has the highest computational complexity and parameter count due to its layered Transformer encoder. With an input image size of 512×512 pixels, MCTNet has 75.48G FLOPs and 24.90M parameters. Using an input image of 256×256 pixels further reduces the FLOPs and parameter count of MCTNet to 18.87G and 24.90M, respectively. In terms of processing speed, MCTNet outperforms the multi-task models DTCDSCN and Bi-SRNet. Table 8 shows that MCTNet achieves SOTA SCD performance while maintaining low FLOPs and Params, and the processing speed is not significantly reduced.

[0127] 8) Ablation studies

[0128] The present invention conducts ablation experiments to evaluate the impact of four key components in MCTNet: Transformer module, multi-scale feature fusion, SFL module and multi-task learning. For the semantic segmentation task, cross entropy loss and weighted cross entropy loss are used on the WHU-CD and SECOND datasets, respectively.

[0129] To evaluate the importance of each module, a series of experiments were conducted to remove individual components from the network architecture and evaluate their performance. Specifically, to evaluate the role of the Transformer module, the network was tested with this module removed. Similarly, to evaluate the importance of the multi-scale feature fusion strategy, the network was tested with the Transformer module removed. arrive For the SFL module, this policy was removed and replaced with arrive The feature maps of are directly concatenated along the channel dimension. Next, we ensure that the BCD and semantic segmentation heads maintain the same structure, except that the dimensions of the input and output channels are different. Finally, in order to measure the effectiveness of multi-task learning, a single type of task head is retained at the output layer.

[0130] Table 9 Ablation experiment results of BCD task (%)

[0131]

[0132] Table 9 shows the ablation results of the BCD task. On WHU-CD, the Transformer module, multi-scale mechanism, SFL module, and multi-task learning improve the F1 score by 1.07%, 1.52%, 1.39%, and 2.57%, respectively. They also improve the IoU by 1.89%, 2.69%, 2.46%, and 4.49%, respectively. On the SECOND dataset, these four key components all improve the IoU and F1 score to some extent. However, multi-task learning has a smaller effect on SECOND, which may be due to the lower semantic segmentation performance.

[0133] Table 10 Ablation experiment results of semantic segmentation task (%)

[0134]

[0135] Table 10 shows the ablation results for the semantic segmentation task. High performance is observed in all configurations on the WHU-CD dataset. The impact of removing any component is very small due to the saturation effect. However, on the SECOND dataset, the performance drops after removing the Transformer or multi-scale feature fusion. In contrast, removing the SFL module leads to the least performance drop because it is specially designed for BCD and is part of the BCD head.

[0136] In summary, according to the network model for semantic change detection of dual-temporal remote sensing images provided by the present invention, the dual-temporal twin network can simultaneously model two tasks, namely semantic segmentation and binary change detection. The dual-temporal twin network uses a CNN backbone network to extract multi-scale feature maps from the input dual-temporal remote sensing image pairs, which can capture visual information at different spatial resolutions, and then convert the multi-scale feature maps into visual tags. The spatial attention module is used to embed the spatial position information into the multi-scale feature maps, and the long-distance dependencies between the visual tags are captured through the Transformer module. Subsequently, the prediction outputs of semantic segmentation and binary change detection are generated through a multi-task head. The multi-task head can effectively utilize the information from T The multi-scale features extracted from the ransformer block enable the model to adapt to different subtasks in a targeted manner. In order to enhance the feature representation of the binary change detection task, the temporal symmetry features are learned through the spatiotemporal feature learning module to ensure that the prediction results of the binary change detection task remain consistent when the order of the two images in the image pair is swapped. The network model can fully explore the correlation between binary change detection and semantic segmentation, so that the two tasks can promote each other and achieve high-performance semantic change detection. Experiments on the remote sensing image semantic change detection datasets WHU-CD, SECOND and HRSCD have confirmed that the network model is superior to the existing algorithms in the semantic change detection task.

[0137] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0138] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A network model for semantic change detection in dual-temporal remote sensing images, characterized in that: It includes a dual-phase twin network, a Transformer module, a multi-task head and a spatiotemporal feature learning module, wherein the Transformer module has an encoder and a decoder; The dual-phase twin network uses a CNN backbone network to extract a multi-scale feature map from an input dual-phase remote sensing image pair and converts the multi-scale feature map into a visual tag. The dual-phase twin network includes two CNN backbone networks. The CNN backbone network uses a residual network ResNet. Weights are shared between the two CNN backbone networks. A spatial attention module is used in the dual-phase twin network to embed spatial position information into the multi-scale feature map, and the multi-scale feature map is fused through sampling and pixel-level addition operations. The Transformer module is used to capture the long-distance dependency between visual markers to obtain an output feature map of the Transformer module; The multi-task head is used to generate prediction outputs for semantic segmentation and binary change detection based on the output feature map of the Transformer module; The spatiotemporal feature learning module is used for a binary change detection task, so that the result of the first binary change detection is consistent with the result of the second binary change detection, wherein the images in the dual-phase remote sensing image pair are arranged in chronological order, and the binary change detection result obtained is the result of the first binary change detection, and the images in the dual-phase remote sensing image pair are arranged in reverse chronological order, and the binary change detection result obtained is the result of the second binary change detection; The CNN backbone network includes a 7×7 convolutional layer and four residual blocks, wherein the residual block Res3 and the residual block Res4 perform 2x downsampling; For a dual-temporal remote sensing image pair with an input size of 3×H×W , W and H represent the width and height of the input image respectively, and the CNN backbone network extracts and images Three feature maps of different scales are extracted from each branch. Then, the feature maps are processed by the spatial attention module. Finally, for each phase branch, the feature map The other two feature maps of the same phase branch are fused by sampling and pixel-level addition to output the feature map ; In the dual-phase twin network, the feature map is first Apply a 1×1 convolution followed by a softmax layer to obtain m A spatial attention map of size h×w , where h and w represent the dimension corresponding to the height of the feature map and the dimension corresponding to the width of the feature map, respectively. Represents the kth column in a spatial attention map corresponding to the phase branch of phase i and scale j. Then, the spatial attention map is used to Apply weighted average pooling operation to transform the feature map and spatial attention map The sizes of are reshaped into c×hw and hw×1 respectively, where c is the number of channels of the feature map, and the feature map is centered using the spatial attention map. Applying the weighted average pooling operation satisfies the following formula: ; in, Indicates the visual mark corresponding to the phase branch of phase i and scale j The kth column in ; Last pair Splice to get the visual mark corresponding to the phase branch of phase i and scale j ; The Transformer module uses convolution operation to transform the feature map Convert to size m Visual marker set ; In visual marking Add a learnable positional encoding to The encoder takes the tokenized feature map as input and generates an encoded output feature map. ; The encoder consists of N e Each layer consists of a multi-head self-attention module and a feedforward neural network module. After the tokenized feature map is input into the encoder, l -1st floor to l The layers need to be processed by the multi-head self-attention module and the feedforward neural network module in sequence. In addition, layer normalization is used to normalize the inputs processed by the multi-head self-attention module and the feedforward neural network module, and residual connections are used for the outputs of the two modules; The encoder l After the -1 layer is layer-normalized, the l -1 layer corresponding feature map is passed to l In the multi-head self-attention module of the layer, the input features are mapped to multiple feature subspaces through N independent attention heads in parallel, where the N independent attention heads do not share weights, and each attention head includes a conversion layer and a self-attention layer. First, the input features are mapped into a set of key vectors, value vectors, and query vectors through the conversion layer; then the attention matrix is ​​calculated based on the key vector, value vector, and query vector to obtain the output features of each attention head in the multi-head self-attention module, and finally the output features of each attention head are spliced, and the splicing result is linearly projected to obtain the output features of the multi-head self-attention module; The conversion layer is used to convert the l -1 layer corresponding feature map Mapping to key vector , value vector and query vector , for the l The nth attention head of the layer, the multi-head self-attention module is about The linear transformation of is expressed as: ; ; ; in, , , are the linear matrices corresponding to the key vector, value vector, and query vector respectively; The output feature of the self-attention layer is obtained by weighted summing the value vector and the attention weight normalized by softmax, where l The nth attention head in the layer satisfies the following condition: ; in, is the attention matrix obtained by calculating the attention weights between each pair of visual markers, is a function that normalizes the attention matrix along the row dimension, T represents the transpose operation, is the scaling factor of the scaled dot-product attention mechanism; Getting the attention matrix After that, the output features of the nth attention head are calculated using the attention matrix of the two time branches to capture the cross-time correlation. l In the two phase branches of the layer, the output features of the nth attention head are expressed as: ; in, , They represent the output features of the nth attention head corresponding to phase 1 and the output features of the nth attention head corresponding to phase 2, respectively. , They represent the attention matrix corresponding to phase 1 and the attention matrix corresponding to phase 2 respectively. , Respectively represent the value vector corresponding to phase 1 and the value vector corresponding to phase 2; Then concatenate and project the output features of the N attention heads to get l Output features of the multi-head self-attention module of the layer , the expression is as follows: ; in, concat Represents a splicing operation, represents the output feature of the first attention head corresponding to the i-th time, represents the output feature of the second attention head corresponding to the i-th time, represents the output feature of the Nth attention head corresponding to the i-th time, represents the projection matrix; Finally, the output features of the multi-head self-attention module are passed to the feedforward neural network module, which includes two linear layers with a GELU activation function between the two linear layers; The decoder converts the feature map , and feature maps with trainable positional encodings As input, the decoder adds a feature map with trainable positional encodings Mapped into the query vector, and Mapped into key vectors and value vectors, adding trainable positional encoded feature maps After being processed by the Transformer module, the output feature map of the Transformer module is obtained ; The multi-task head includes two semantic segmentation heads and a binary change detection head, each of the multi-task heads includes three 2x upsampling blocks, each upsampling block uses nearest neighbor upsampling, and two 3×3 convolutional layers are applied before the two upsampling blocks; the binary change detection head includes a spatiotemporal feature learning module, the semantic segmentation head does not include a spatiotemporal feature learning module, the number of channels of the prediction output of the semantic segmentation head is two, corresponding to two categories of whether or not to change, and the number of channels of the prediction output of the binary change detection head is equal to the number of predefined semantic categories; In the spatiotemporal feature learning module, along the channel dimension and Connect them to get two blocks of size 2c×h×w and , the expression is: ; ; in, is the output feature map of the Transformer module corresponding to phase 1, is the output feature map of the Transformer module corresponding to phase 2, is the new feature map corresponding to phase 1, is the new feature map corresponding to phase 2; Then and The size of is reshaped from 2c×h×w to 2×c×h×w, thus obtaining two 4D feature maps; Finally, a 3D convolution operation of size k×k×k is applied to each of the two 4D feature maps. Then, the two spatiotemporal features are fused together using matrix dot multiplication to fuse the features. , the expression is as follows: ; in, Conv3d represents a 3D convolution operation, Represents matrix dot product; The total loss of the network model for semantic change detection of dual-temporal remote sensing images includes two semantic segmentation losses and one binary change detection loss, and the semantic segmentation loss and the binary change detection loss are modeled using multi-category cross entropy loss and binary cross entropy loss respectively; Among them, the expressions of the two semantic segmentation losses are: ; ; in, , Represent the semantic segmentation loss relative to phase 1 and phase 2, respectively. represents the number of pixels in the training set, CE represents the cross entropy loss function, , They are the true value labels of the d-th pixel in the semantic segmentation task, Indicates that the d-th pixel corresponds to the branch of phase 1 relative to The predicted probability of Indicates that the dth pixel corresponds to the branch of phase 2 relative to The predicted probability of The expression of binary change detection loss is: ; in, Represents the loss between the predicted result and the true value of binary change detection, and Respectively represent the true value and prediction result corresponding to the d-th pixel; The total loss of the network model for semantic change detection in bi-temporal remote sensing images L The expression is: ; in, is the weight of semantic segmentation loss.

Citation Information

Patent Citations

  • Remote sensing image change detection method based on multi-scale semantic marker Transform network

    CN115393317A

  • High-resolution remote sensing image semantic change detection method based on semi-supervised semantic segmentation contrast learning

    CN116310812A