Change detection method and system based on feature interaction and space-time correlation
By introducing a dual encoder structure and feature fusion module into remote sensing image change detection, the problem of feature loss and noise interference in complex scenes is solved, achieving higher detection accuracy and detail retention, which is superior to existing technologies.
Patent Information
- Application Number
- CN202410793800.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Existing remote sensing image change detection methods have problems with feature loss and noise interference in complex scenes, and it is difficult to make full use of the spatiotemporal dependence of dual-temporal images, resulting in false detections and blurred boundaries in detection results.
Adopt a network model based on a dual encoder and dual decoder structure, introduce a hybrid effective channel module (MECM) and a spatial denoising attention module (SDAM), fuse feature information through the feature fusion upsampling module (FFUM), and use skip connections and channels Attention mechanism establishes spatiotemporal correlation to reduce the impact of noise and retain detailed information.
It improves the accuracy and detail retention of change detection, reduces the impact of noise on features, enhances image resolution and classification accuracy, and is better than existing methods in complex scenes.
Smart Images

Figure CN118608971A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of remote sensing image change detection, and in particular to a change detection method and system based on feature interaction and spatiotemporal correlation. Background Art
[0002] Remote sensing image change detection is a research topic that has attracted much attention in the field of remote sensing image processing. The core goal of change detection is to extract the location information of changes in the area by analyzing two or more remote sensing images taken at different times of the same area. This change information plays a vital role in disaster assessment, urban expansion, land change, and deforestation monitoring applications. In the early stages of remote sensing image change detection, manual interpretation methods were mainly used. However, with the continuous development of deep learning technology, more and more methods have been introduced into remote sensing image change detection. Significant progress has been made in using deep learning to solve the problem of remote sensing image change detection, thanks to the increasing number of high-resolution remote sensing images and aerial images currently available.
[0003] However, change detection based on high-resolution remote sensing images still faces some challenges. First, the changing targets in the changing scenes are more complex, which will affect the real changing targets to a certain extent. Secondly, due to the lighting and shadow factors in different positions, some interference noise will be introduced, which will cause more key information to be lost in the process of image feature extraction. In order to meet the above challenges, some studies have mentioned the use of feature interaction. Since the input of change detection is a dual-phase image, their features contain different semantic information, and the interaction between their features is crucial to the entire change detection process. At the same time, researchers have mentioned that shallow features usually contain more location and detail information, but their semantics are lower and there is more noise. In contrast, deep features usually have stronger semantic information, but poor perception of details.
[0004] Therefore, how to make full use of the dependency between deep features and shallow features of dual-phase images to reduce the loss of spatial detail information is an unresolved problem. In other words, in the change detection scenario, it is crucial to model the spatiotemporal dependency between two images. In order to complete the modeling of spatiotemporal dependencies, some researchers have introduced attention mechanisms into change detection methods. The introduction of attention mechanisms helps to alleviate the impact of inherent noise in remote sensing images to a certain extent. Common methods using attention mechanisms, for example, DASNet uses a dual attention mechanism to capture long-range dependencies to obtain more discriminative features. IFN reconstructs the change map by fusing the multi-level deep features of the original image with the image difference features through an attention module. MSPSNet effectively integrates multi-scale features using parallel convolutional structures and self-attention modules. SNUNet-CD alleviates the problem of loss of deep position detail information by integrating channel attention modules. Some researchers have proposed using multi-scale feature fusion to make up for the lost spatial information in deep features and the lack of rich semantic information in shallow features to complete this task. The idea of feature pyramid network is widely used in change detection tasks. For example, MFPF-Net uses layered re-fusion mode to improve the effective communication number of feature graphs and the full fusion of feature information in change detection. Although the above methods have alleviated the problems of false detection and blurred boundaries in the detection results to a certain extent, they still have some limitations when facing complex change scenes, especially for feature loss encountered in the feature extraction process.
[0005] Therefore, it is necessary to design a change detection model that can fully utilize the spatiotemporal dependencies between dual-temporal remote sensing images for modeling.
[0006] Glossary: DASNet, IFN, MSPSNet, SNUNet-CD, and MFPF-Net are methods proposed by some researchers in the change detection task. Summary of the invention
[0007] The purpose of the present invention is to provide a change detection method that can solve the above problems and achieve high accuracy. In order to achieve the above purpose, the technical solution adopted by the present invention is: a change detection method and system based on feature interaction and spatiotemporal correlation, comprising the following steps: S1, obtain a remote sensing change detection dataset. The dataset should include two or more images of the same location and contain change detection labels. The dataset is divided into training set, validation set and test set.
[0008] S2, builds a network model based on a dual encoder and dual decoder structure. The model uses the feature interaction and spatiotemporal correlation of dual-time images, proposes a hybrid effective channel module (MECM) and a spatial denoising attention module (SDAM), and uses a feature fusion upsampling module (FFUM) to fuse the outputs from the two, and then passes them down for training. The construction ideas and design details of the module include steps S21~S23: S21, first, the mixed effective channel module is mainly used to process feature interactions. Secondly, the spatial denoising attention module is mainly used in the process of modeling spatiotemporal dependencies. Finally, the above outputs are fused and upsampled. The implementation process can be expressed as: , Among them, subscript 1 represents the anterior phase, and subscript 2 represents the posterior phase. skip represents a skip connection, H represents the prediction head, P Indicates the prediction result; S22, based on the design of the spatial attention module, we proposed a spatial denoising attention module, and used this module as a feature optimization processing operation before the jump connection. We divide the input into two branches, horizontal and vertical. The main function of the vertical branch is to retain the original feature information so that it can be concatenated and element-wise multiplied with the horizontal branch. The horizontal branch first passes through the spatial attention module, which first concatenates the maximum pooling and average pooling of the features, then performs feature fusion and channel number adjustment through a 7×7 convolution, and obtains the attention mask through a Sigmoid activation function. The obtained Mask is then element-wise multiplied with the original feature, and then concatenated with the original feature map of the vertical branch. Finally, a 3×3 convolution is used for feature extraction, and a feature map of the same size as the original feature is obtained. The implementation process can be expressed by the formula: , in M is the feature mask generated by the spatial attention module, X' is the final output of this module. σ represents the Sigmoid activation function, Ci represents the i×i convolution operation, cat represents the concatenation operation, ⊙ represents the element-wise product operation, max represents the maximum pooling operation, avg Represents the average pooling operation, and the following rules are also used; S23, in order to connect the context information and retain more effective channel information when the dual-time features interact, we introduced a mixed effective channel module and added it after the encoding and decoding stages. In order to make full use of the feature information and channel correlation between the two sets of features, we use a 3×3 group convolution to mix the features obtained in the previous step, and then use a channel to pay attention to the weight of the important channels. Here, k×k convolution is used to enhance the channel information. The implementation process can be expressed as: , in represents the odd number closest to t, c is the number of channels, r and b default to 2 and 1, is the feature after the dual-phase image is superimposed, is the weighted feature.
[0009] S3, the feature fusion upsampling module receives the optimized features from SDAM and the effective channel features from MECM. The process first upsamples the latter to the same resolution as the former, and all of them use 2x upsampling. Then the features are fused, and finally the feature information is enhanced through several convolutional layers to obtain the final result. The implementation process can be expressed as: , in Up2 Indicates a 2x upsampling operation, F z From MECM, X' From SDAM.
[0010] S4, after the model training is completed, the best performing model is obtained, the dual-phase image is input into the model, the changed area is obtained and saved as a binary image.
[0011] Preferably, in acquiring the change detection dataset, a registered multi-temporal change detection dataset is used, and images with greater detection difficulty can be selected.
[0012] Preferably, the overall model architecture and modules of the change detection method based on feature interaction and spatiotemporal correlation should be combined strictly according to the described process.
[0013] Preferably, in the spatial attention denoising module, since the shallow feature map mainly contains local details and edge information of the image, it has relatively rich positioning information, but the shallow features usually contain more noise information, which will interfere with the extracted features and cause the loss of context information. In order to maintain the spatiotemporal dependency of features, we use skip connections for optimization.
[0014] Preferably, the hybrid effective channel module uses a channel attention mechanism, which helps to show the correlation between different channels. The importance of each feature channel is automatically obtained by network learning, and different weight coefficients are assigned to each channel to enhance key features and suppress less important features, thereby improving the ability of feature representation. In this method, this module is mainly used after feature extraction is completed. At this stage, the features extracted by the backbone are usually more, and by suppressing features that have little effect on comparison, the expression of complex targets can be enhanced, which helps to retain complex targets and provide accurate data for subsequent decoding operations; preferably, the feature mixing process in the hybrid effective channel module, since the two inputs are extracted through a twin network with shared weights, which means that they have the same semantics, the following rules are used to connect and mix:
[0015] Where c represents the number of channels of the feature map, and x and y represent the feature maps of the previous and next phases, respectively.
[0016] Preferably, in the process of model upsampling, the upsampling operation has two main advantages. On the one hand, it can improve the resolution of the image, making the image clearer and smoother, thereby improving the image quality; on the other hand, it can improve the classification accuracy and detail expression at the pixel level, which helps to enhance the neural network's perception of image details. Using jump connections can directly connect the underlying features with the high-level features, so that the detail information can be passed to the decoder, thereby improving the accuracy of the segmentation results and the ability to retain details; on the other hand, jump connections can also alleviate the problem of gradient propagation, making the network easier to optimize and the training effect better.
[0017] Preferably, the model training and testing process should be on multiple datasets to highlight the generalization ability of the method.
[0018] A change detection system based on feature interaction and spatiotemporal correlation, comprising: Data processing module: After obtaining the necessary change detection data set, it is processed to improve the generalization ability of the model. The processing process includes random flipping, translation, scaling, and cropping operations; Model training module: The training process includes setting hyperparameters, selecting data sets, and selecting and saving the optimal model. Hyperparameters include learning rate, batch size, number of training times, and selection of optimizer and loss function. Selecting and saving the optimal model means retaining the model with the best results during the training process for future use; Model usage module: First, you need to load the optimal model, then select the data to be processed, which requires at least two remote sensing images. Then generate the predicted results and save them locally; Application module: With the prediction results of the previous step, you can choose to import the results to the cloud and provide a data loading link for direct application in actual applications, making the calling process convenient; The system is divided into several modules according to functions, which makes the system easier to use and has clearer usage rules during the overall scheduling process.
[0019] Compared with the prior art, the advantages of the present invention are: 1. A spatial denoising attention module is proposed to effectively utilize the spatial information in the feature map, enhance the changing target and weaken the background noise, thereby reducing the impact of noise on the effective features; 2. A hybrid effective channel module is proposed, which can maintain low computational complexity when interacting with dual-phase features, pay more attention to channel features that are effective for change detection tasks, and reduce channel information redundancy; 3. The feature fusion upsampling strategy and skip connection method are used to associate spatiotemporal features and make full use of the spatiotemporal dependencies between dual-phase images.
[0020] In summary, the present invention is particularly suitable for situations where the change detection effect is poor due to the limitations of the image itself, such as a large amount of image feature noise information caused by fog, shadows and complex targets. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flow chart of the present invention; Figure 2 This is an example of the limitations of remote sensing images. Figure 3 Graph of the change detection model based on feature fusion and spatiotemporal correlation; Figure 4 Comparison chart before and after using the spatial denoising attention module; Figure 5 This is a comparison chart of the model's prediction results (green represents TP, yellow represents FN, red represents FP, and black represents TN). DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation methods described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0023] Embodiment 1: This embodiment provides a change detection method based on feature interaction and spatiotemporal correlation. Figures 1 to 4 , including the following steps: S1, obtain a remote sensing change detection dataset. The dataset should include two or more images of the same location and contain change detection labels. The dataset is divided into training set, validation set and test set. Use a registered multi-temporal change detection dataset, and select images that are more difficult to detect; S11, the registration method can be completed using open source tools or algorithms, and the images with greater detection difficulty include remote sensing images with heavy fog, shadows, and complex changing target conditions; S12, the data set division method can divide the training set, the validation set, and the test set into a ratio of 8:1:1.
[0024] S2, builds a network model based on a dual encoder and dual decoder structure. The model uses the feature interaction and spatiotemporal correlation of dual-time images, proposes a hybrid effective channel module (MECM) and a spatial denoising attention module (SDAM), and uses a feature fusion upsampling module (FFUM) to fuse the outputs from the two, and then passes them down for training. The construction ideas and design details of the module include steps S21~S23: S21, first, the mixed effective channel module is mainly used to process feature interactions. Secondly, the spatial denoising attention module is mainly used in the process of modeling spatiotemporal dependencies. Finally, the above outputs are fused and upsampled. The implementation process can be expressed as: , Among them, subscript 1 represents the anterior phase, and subscript 2 represents the posterior phase. skip represents a skip connection, H represents the prediction head, P Indicates the prediction result; Specific: The overall model architecture and each module should be assembled strictly according to the described process.
[0025] S22, in order to maintain the spatiotemporal dependencies on features, we use skip connections for optimization. Based on the design of the spatial attention module, we propose a spatial denoising attention module and use it as a feature optimization operation before the skip connection; Specific: We divide the input into two branches, horizontal and vertical. The main function of the vertical branch is to retain the original feature information so that it can be concatenated and element-wise multiplied with the horizontal branch. The horizontal branch first passes through the spatial attention module, which first concatenates the feature maximum pooling and average pooling, then performs feature fusion and channel number adjustment through a 7×7 convolution, and obtains the attention mask through a Sigmoid activation function. The obtained Mask is then element-wise multiplied with the original feature, and then concat-operated with the original feature map of the vertical branch. Finally, a 3×3 convolution is used for feature extraction, and a feature map of the same size as the original feature is obtained. The implementation process can be expressed by the formula: , in M is the feature mask generated by the spatial attention module, X' is the final output of this module. σ represents the Sigmoid activation function, Ci represents the i×i convolution operation, cat represents the concatenation operation, ⊙ represents the element-wise product operation, max represents the maximum pooling operation, avg Represents the average pooling operation, and the following rules are also used; S23, in order to connect context information and retain more effective channel information when dual-time features interact, we introduced a mixed effective channel module and used a channel attention mechanism, which helps to show the correlation between different channels. The importance of each feature channel is automatically obtained through network learning, and different weight coefficients are assigned to each channel to enhance key features and suppress less important features, thereby improving the ability of feature representation. In this method, this module is mainly used after feature extraction is completed. At this stage, the features extracted by the backbone are usually more. By suppressing features that have little effect on comparison, the expression of complex targets can be enhanced, which helps to retain complex targets and provide accurate data for subsequent decoding operations. And this module is added after the completion of the encoding and decoding stages respectively. In order to make full use of the feature information and channel correlation between the two groups of features, we use a 3×3 group convolution to mix the features obtained in the previous step, and then use a channel attention to weight the important channels. Here, k×k convolution is used to enhance channel information. The implementation process can be expressed by the formula: , in represents the odd number closest to t, c is the number of channels, r and b default to 2 and 1, is the feature after the dual-phase image is superimposed. is the weighted feature.
[0026] S3, the feature fusion upsampling module receives the optimized features from SDAM and the effective channel features from MECM. On the one hand, it can improve the resolution of the image, making the image clearer and smoother, thereby improving the image quality; on the other hand, it can improve the classification accuracy and detail expression at the pixel level, which helps to enhance the neural network's perception of image details. The use of jump connections can directly connect the underlying features with the high-level features, so that the detail information can be passed to the decoder, thereby improving the accuracy of the segmentation results and the ability to retain details; on the other hand, jump connections can also alleviate the problem of gradient propagation, making the network easier to optimize and the training effect better; Specific: The process first upsamples the latter to the same resolution as the former, and here all upsample by 2. Then feature fusion is performed, and finally several convolution layers are used to enhance feature information to obtain the final result. The implementation process can be expressed as: , in Up2 Indicates a 2x upsampling operation, F z From MECM, X' From SDAM.
[0027] S4, after the model training is completed, the best performing model is obtained, the dual-phase image is input into the model, the changed area is obtained and saved as a binary image.
[0028] Comparison with existing technologies on multiple data sets: Table 1 Quantitative results of the comparison experiment on LEVIR-CD and S2Looking
[0029] The results show that our method achieves the best F1 and IoU performance on the LEVIR-CD and S2Looking datasets, outperforming some current SOTA methods.
[0030] Embodiment 2: A change detection system based on feature interaction and spatiotemporal correlation, comprising: Data processing module: After obtaining the necessary change detection data set, it is processed to improve the generalization ability of the model. The processing process includes random flipping, translation, scaling, and cropping operations; Model training module: The training process includes setting hyperparameters, selecting data sets, and selecting and saving the optimal model. Hyperparameters include learning rate, batch size, number of training times, and selection of optimizer and loss function. Selecting and saving the optimal model means retaining the model with the best results during the training process for future use; Model usage module: First, you need to load the optimal model, then select the data to be processed, which requires at least two remote sensing images. Then generate the predicted results and save them locally; Application module: With the prediction results of the previous step, you can choose to import the results to the cloud and provide a data loading link for direct application in actual applications, making the calling process convenient; The system is divided into several modules according to functions, which makes the system easier to use and has clearer usage rules during the overall scheduling process.
[0031] 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, it is still possible to modify the technical solutions described in the above embodiments, or replace some of the technical features therein. Any modification, replacement and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A change detection method based on feature interaction and spatiotemporal correlation, characterized in that: The following steps are involved: S1, obtain a remote sensing change detection dataset, which should include two or more images of the same location and contain change detection labels, and divide the dataset into training set, validation set and test set; S2, build a network model based on a dual encoder and dual decoder structure. This model uses the feature interaction and spatiotemporal correlation of dual-time images, proposes a hybrid effective channel module and a spatial denoising attention module, and uses a feature fusion upsampling module to fuse the outputs from the two, and then passes them down for training. The construction ideas and design details of the module include steps S21~S23: S21, first, the mixed effective channel module is mainly used to process feature interactions. Secondly, the spatial denoising attention module is mainly used in the process of modeling spatiotemporal dependencies. Finally, the above outputs are fused and upsampled; S22, a spatial denoising attention module is proposed, which is designed based on the spatial attention module and is used as a feature optimization processing operation before the jump connection. The input is divided into two branches, horizontal and vertical. The main function of the vertical branch is to retain the original feature information so that it can be concatenated and element-wise multiplied with the horizontal branch. The horizontal branch first passes through the spatial attention module, which first concatenates the maximum pooling and average pooling of the features, then performs feature fusion and channel number adjustment through 7×7 convolution, and obtains the attention mask through the Sigmoid activation function. The obtained mask is then element-wise multiplied with the original feature, and then concat-operated with the original feature map of the vertical branch. Finally, a 3×3 convolution is used for feature extraction, and a feature map of the same size as the original feature is obtained; S23, a mixed effective channel module is proposed and added to the encoding and decoding stages respectively. This module can connect the context information and retain more effective channel information when the dual-time features interact. In order to make full use of the feature information and channel correlation between the two sets of features, a 3×3 group convolution is used to mix the features obtained in the previous step, and then a channel attention is used to weight the important channels to enhance the channel information; S3, the feature fusion upsampling module receives the optimized features from the spatial denoising attention module and the effective channel features from the mixed effective channel module. The process first upsamples the latter to the same resolution as the former, and all of them use 2x upsampling. Then feature fusion is performed, and finally several convolution layers are used to enhance the feature information to obtain the final result; S4, after the model training is completed, the best performing model is obtained, the dual-phase image is input into the model, the changed area is obtained and saved as a binary image.
2. The change detection method based on feature interaction and spatiotemporal correlation according to claim 1, characterized in that: In step S1, the registered multi-temporal change detection dataset is used, and images with greater detection difficulty can be selected.
3. The change detection method based on feature interaction and spatiotemporal correlation according to claim 1, characterized in that: In step S21, the overall architecture of the model and each module are combined strictly according to the described process.
4. The change detection method based on feature interaction and spatiotemporal correlation according to claim 1, characterized in that: In step S22, shallow features usually contain more noise information, which will interfere with the extracted features, resulting in the loss of context information and the inability to identify useful information in the subsequent detection process. Therefore, it is very necessary to denoise the shallow features. The shallow denoising attention module helps to connect the context features and locate the complex targets that are effective for the change detection task.
5. The change detection method based on feature interaction and spatiotemporal correlation according to claim 1, characterized in that: In step S23, a channel attention mechanism is used, which helps to show the correlation between different channels. The importance of each feature channel is automatically obtained through network learning, and different weight coefficients are assigned to each channel to enhance key features and suppress less important features, thereby improving the ability of feature representation.
6. The change detection method and system based on feature interaction and spatiotemporal correlation according to claim 1, characterized in that: In step S23, since the two inputs are extracted through a siamese network that shares weights, this means that they have the same semantics.
7. The change detection method based on feature interaction and spatiotemporal correlation according to claim 1, characterized in that: In step S3, the upsampling operation has two main advantages. On the one hand, it can improve the resolution of the image, making the image clearer and smoother, thereby improving the image quality; on the other hand, it can improve the classification accuracy and detail expression at the pixel level, which helps to enhance the neural network's perception of image details. Using jump connections can directly connect the underlying features with the high-level features, so that the detail information can be passed to the decoder, thereby improving the accuracy of the segmentation results and the ability to retain details. On the other hand, jump connections can also alleviate the problem of gradient propagation, making the network easier to optimize and the training effect better.
8. The change detection method based on feature interaction and spatiotemporal correlation according to claim 1, characterized in that: The model training and testing process should be conducted on multiple datasets to highlight the generalization ability of the method.
9. A change detection system based on feature interaction and spatiotemporal correlation, characterized in that: include: Data processing module: After obtaining the necessary change detection data set, it is processed to improve the generalization ability of the model. The processing process includes random flipping, translation, scaling, and cropping operations; Model training module: The training process includes setting hyperparameters, selecting data sets, and selecting and saving the optimal model. Hyperparameters include learning rate, batch size, number of training times, and selection of optimizer and loss function. Selecting and saving the optimal model means retaining the model with the best results during the training process for future use; Model usage module: First, you need to load the optimal model, then select the data to be processed, which requires at least two remote sensing images. Then generate the predicted results and save them locally; Application module: With the prediction results of the previous step, you can choose to import the results to the cloud and provide a data loading link for direct application in actual applications, making the calling process convenient.
Citation Information
Patent Citations
Remote-sensing image building change detection method
CN110705457A
Feature-output space double-alignment change detection method
CN113487546A
Feature enhancement network optimization method and system based on self-decoding
CN115018071A
High-resolution optical remote sensing image building change detection method
CN115471467A
Remote sensing image change detection method based on space-time attention enhancement
CN116524362A
Cited By
Remote sensing image change detection method based on spatial-temporal feature interaction and feature difference enhancement
CN120563861A
