Dual-branch multi-scale dynamic local convolution attention method based on remote sensing change detection
Through the dual-branch multi-scale dynamic local convolution attention method, combined with dynamic multi-scale convolution and parallel decoding aggregator, the problem of loss of detail information and false changes in small change areas in remote sensing change detection is solved, achieving higher detection accuracy. stability and robustness.
Patent Information
- Application Number
- CN202410885477.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Existing remote sensing change detection methods are difficult to accurately capture the detailed information of small changed areas, and there are problems of spurious changes and sample imbalance, resulting in a decrease in detection accuracy and model precision.
The dual-branch multi-scale dynamic local convolution attention method is adopted, through the dynamic multi-scale convolution attention module and the parallel decoding aggregator module, combined with the multi-scale context aggregation and dynamic partial convolution attention mechanism, to extract and fuse image features, using loss The function performs deep supervision and generates change detection results.
It improves the accuracy and robustness of change detection in remote sensing images, can better distinguish subtle changes in the environment, reduces interference from false changes, and enhances the model's ability to detect small change areas.
Smart Images

Figure CN118736416A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of remote sensing change detection, and in particular to a dual-branch multi-scale dynamic local convolution attention method based on remote sensing change detection. Background Art
[0002] The purpose of remote sensing change detection (RSCD) is to detect the changed areas in a pair of remote sensing images taken at the same location at different times. It plays a very important role in urban road planning, landslide hazard assessment, land resource utilization, ecological environment protection and other fields. With the rapid development of society, the changed areas will become more and more complex, which brings huge challenges to change detection.
[0003] There are many change detection methods. Among them, traditional change detection methods can be divided into image transformation-based methods, image algebraic operation-based methods and post-classification-based methods. These methods are all based on hand-crafted features and use different classifiers, including decision trees, change vector analysis, support vector machines, and clustering methods to better distinguish the change areas. However, these classic methods show various limitations and cannot capture rich semantic feature information, resulting in low change detection accuracy; change detection methods based on convolutional neural networks often find it difficult to effectively capture global contextual information, thereby reducing the accuracy of change detection; change detection methods based on Transformer add a large number of parameters, a large amount of memory usage, and high floating-point operations per second.
[0004] Regarding the detection of small change areas, in dual-temporal remote sensing images, the types and sizes of changes that people pay attention to are different. Small change areas can be divided into sparse small change areas and dense small change areas. Compared with larger change areas, small change areas are smaller in size and the change features are not obvious enough. In the process of change monitoring, the detailed information of small change areas may be lost during feature extraction and change feature reconstruction, resulting in the omission of some smaller change areas during change detection. At the same time, there are also pseudo changes. First, in the process of acquiring multi-temporal remote sensing images, different imaging conditions such as changes in illumination angle or intensity, seasonal changes, and sensor models will affect the phenomenon of the same semantic object in a specific image pair. Secondly, due to different application scenarios, the definition of change is different. Some changes that occur under visual conditions may not be of concern to people in some application scenarios, such as changes in temporary objects such as cars. These irrelevant changes interfere with the detection of changes of interest, which are called pseudo changes. The imbalance of sample categories affects the change detection network. In the training process of remote sensing image change detection methods based on deep learning, a large amount of labeled data is required for training and optimizing the network model. In the real world, the number of changed areas is very small compared to the unchanged areas. This leads to the number of pixels in the unchanged areas of samples in the change detection dataset being much larger than the number of pixels in the changed areas, which is a category imbalance phenomenon. This category imbalance will cause the trained network to tend to favor a certain type of sample category that appears in large numbers, resulting in a decrease in model accuracy. Summary of the invention
[0005] The purpose of the present invention is to solve the problems existing in the prior art and to provide a dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection, which can accurately detect changes in captured remote sensing images.
[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0007] A dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection includes the following steps:
[0008] S1. Collect dual-temporal remote sensing images and create a remote sensing image dataset, ensuring that each dual-temporal remote sensing image has pixel-level annotations, dividing the remote sensing image dataset into a training set, a validation set, and a test set, and cutting the dual-temporal remote sensing images in the remote sensing image dataset into the same size;
[0009] S2. Construct a dual-branch multi-scale dynamic partial convolutional attention network architecture based on remote sensing change detection, including a feature extractor, a dynamic multi-scale convolutional attention module, a parallel decoding aggregator module and a loss function, wherein the dynamic multi-scale convolutional attention module is formed by combining the dynamic partial convolutional attention module and the multi-scale context aggregation module;
[0010] S3, using a pre-trained lightweight network to extract features from dual-temporal remote sensing images;
[0011] S4, input the extracted multi-layer features into the dynamic multi-scale convolutional attention module;
[0012] S5. Input the features obtained in the dynamic multi-scale convolutional attention module into the parallel decoding aggregator module, wherein the dilated convolution is used to expand the receptive field, and the multi-layer prediction map and loss function output by the parallel decoding aggregator module are used for deep supervision;
[0013] S6. Save the trained model weights and use the test set to test to obtain the change detection result of the test image.
[0014] Preferably, the operation process of the dual-branch multi-scale dynamic partial convolutional attention network architecture based on remote sensing change detection in step S2 is:
[0015] First, multi-level feature maps are extracted from dual-temporal remote sensing images in two parallel branches of pre-trained weight-sharing CNNs, where the sizes are 64×64, 32×32, 16×16, and 8×8;
[0016] Then, the multi-scale context aggregation module aggregates features between different layers, and uses cascade and absolute value subtraction in the dynamic partial convolution attention module to generate two parallel branches, allowing the two branches to simultaneously use dynamic convolution to generate queries, keys, and values;
[0017] Combined with the multi-scale context aggregation module, the dual-branch information is fully integrated to obtain different semantic change information;
[0018] Finally, a parallel decoding aggregator adopts multi-path feature processing and dilated convolution strategy to generate a prediction map by combining feature information from different layers of the network.
[0019] Preferably, in step S3, the lightweight network is Mobilenetv2, a convolutional layer with a step size of 2 is added to each layer of the backbone network, and the feature map of each level is downsampled to half of the previous level. By sending a pair of dual-phase T1 remote sensing images and T2 remote sensing images to the feature extractor Mobilenetv2, four layers of dual-phase feature maps are obtained, which are represented as
[0020] Preferably, the operation process of the multi-scale context aggregation module is as follows: using the T1 remote sensing image as the input of the network model, inputting the first three layers of the four layers of features obtained by feature extraction into the multi-scale context aggregation module, and then Downsample to and The same size, and then through a convolutional layer including the number of channels and Keep it consistent; similarly, first The number of channels is passed through a 3×3 convolutional layer and Keep it consistent, and then use double line interpolation to The resolution is upsampled to Consistent; then X1, X2 and X3 are combined by splicing, multi-level feature information is collected, and residual learning is used to retain the original feature information while enriching the context feature information;
[0021] The whole representation process can be expressed as:
[0022]
[0023] X=X2+Conv3×3(Conv3×3(Cat(X1,X2,X3)))
[0024] Among them, Mxpooling(·) represents the maximum pooling operation, Cat(·) represents the concatenation operation, Conv3×3 represents the 3×3 convolution, batch normalization and Relu activation function, and Interpolate represents the upsampling operation.
[0025] Preferably, a DSConv2d layer is introduced on the basis of the convolutional neural network to form a dynamic partial convolution attention module. The DSConv2d layer combines dynamic weight adjustment and includes selective convolution bias and convolution bias weight. In DSConv2d, the input channel is divided into several blocks according to the block size, and each block performs independent dynamic weight adjustment.
[0026] Preferably, the dynamic partial convolution attention module adopts a dual-branch strategy, and the operation process of the dynamic partial convolution attention module is:
[0027] First, the multi-layer feature maps extracted from the dual-phase T1 remote sensing image and T2 remote sensing image are spliced, and their differences are calculated at the same time to obtain F cat and F abs Feature map;
[0028] Then, input feature F cat and F abs Processed by DSConv2d to generate spatially correlated Q, K, and V are represented as:
[0029] Q = DSconv2d(F abs )
[0030] K = DSconv2d(F abs )
[0031] V = DSconv2d(F abs )
[0032] After generating Q and K through dynamic convolution, they are sent to the split channel module respectively;
[0033] Then a 3×3 convolution is performed on each separated feature map to extract unique feature information;
[0034] The two feature maps after convolution are concatenated and then further refined through two 1×1 convolutions;
[0035] The residual connection is used to enhance the learning process, and finally the refined features Q′ and K′ are generated;
[0036] The split channel module is represented as:
[0037] Q'=SCM(Q)
[0038] K′=SCM(K)
[0039] Among them, SCM stands for Separation Channel Module, which extracts more diverse feature information by convolving different channel parts separately;
[0040] Based on the resulting enhanced Q′ and K′, matrix multiplication is performed and then Softmax is applied to compute the attention weights, which are used to modulate V to produce the final feature output for change detection:
[0041] C = Softmax(Q′(K′ T )
[0042] =Softmax(Q′(K′ T )*V
[0043] =Softmax(Q′(K′ T )*V+F abs .
[0044] Preferably, the parallel decoding aggregator module adopts dual-branch decoding, in which one branch uses cascading and the other branch uses feature subtraction; the parallel decoding aggregator module aggregates four layers of feature maps in a bottom-up manner.
[0045] Preferably, the operation process of the parallel decoding aggregator module is:
[0046] First, two feature maps are input;
[0047] Then, bilinear interpolation is used to ensure that the feature sizes of the two feature maps are consistent;
[0048] Next, concatenate the two mappings as follows:
[0049]
[0050] Among them, Conv3×3 represents the combination of 3×3 convolution, batch normalization and REU activation function, and Up(·) is a bilinear upsampling operation;
[0051] The two feature maps are then cascaded, and another 3×3 convolution is used after the cascade to adjust the number of channels;
[0052] Subsequently, 3×3 convolution is used to adjust the number of channels after cascading, and the obtained features are divided into two branches: the first branch uses 3×3 convolution with a dilation rate of 3; the second branch uses parallel 3×3 convolution with dilation rates of 2 and 1;
[0053] Finally, these three feature layers are concatenated to obtain the final feature map.
[0054] Preferably, the loss function is:
[0055]
[0056] Where p represents the model’s predicted probability of change, y is the binary true label, and N is the number of pixels.
[0057] Compared with the prior art, the beneficial effects of the present invention are:
[0058] This paper proposes a change detection method based on Siamese convolutional neural network - Dual-branch Parallel Multi-scale Dynamic Partial Convolution Attention Network (DMDPCANet) for remote sensing change detection. This method can accurately detect changes in captured remote sensing images. The main contributions of this invention are as follows:
[0059] 1) The present invention provides a CNN-based remote sensing change detection network with dual-branch multi-scale dynamic partial convolutional attention, which can accurately detect semantic changes.
[0060] 2) The present invention provides a multi-scale context aggregation module (MCA), which can not only retain the original feature information but also supplement the information between other levels by aggregating the feature information between adjacent layers, so that the network of the present invention can ensure good detection effect during detection.
[0061] 3) This paper proposes a dynamic partial convolutional attention module (DPCATT) that effectively integrates the original input features with the features enhanced by the attention mechanism. This integration ensures that the model maintains high accuracy and robustness when performing remote sensing change detection tasks. By using attention weights to highlight important aspects of the input data, the model can better distinguish subtle changes in the environment.
[0062] 4) The present invention provides a multi-scale context aggregation module (PDA), which fuses features of different scales through upsampling and dilated convolution, effectively captures multi-layer information, uses a dual-branch input, one branch is a concatenated feature, and the other branch is a feature difference with subtractive features, both of which are fed into the PDA, using upsampling, multiple 3×3 convolutions and dilated convolutions, gradually upsampling from deep to shallow layers to the same size, and finally outputs a change map. In addition, a loss function is used to perform deep supervision on the multi-layer features in the output. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is the overall framework diagram of the present invention;
[0064] Figure 2 is a schematic diagram of the multi-scale context aggregation module;
[0065] Figure 3 is a schematic diagram of the dynamic partial convolution attention module;
[0066] Figure 4 is a schematic diagram of the parallel decoding aggregator module. DETAILED DESCRIPTION
[0067] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the application equally.
[0068] Embodiment: The present invention is a dual-branch multi-scale dynamic local convolution attention method based on remote sensing change detection, comprising the steps of:
[0069] S1. Collect dual-temporal remote sensing images and create a remote sensing image dataset. Ensure that each dual-temporal remote sensing image has pixel-level annotations. Divide the remote sensing image dataset into a training set, a validation set, and a test set for use at different stages. At the same time, cut the dual-temporal remote sensing images in the remote sensing image dataset into the same size, such as 256×256.
[0070] S2. Construct a dual-branch multi-scale dynamic partial convolutional attention network architecture based on remote sensing change detection, including a feature extractor, a dynamic multi-scale convolutional attention module, a parallel decoding aggregator module and a loss function, wherein the dynamic multi-scale convolutional attention module is formed by combining the dynamic partial convolutional attention module and the multi-scale context aggregation module;
[0071] S3. Use a pre-trained lightweight network to extract features from the dual-temporal remote sensing image, where the lightweight network can use Moblinetv2;
[0072] S4, the extracted multi-layer features are input into the dynamic multi-scale convolutional attention module (composed of the dynamic partial convolutional attention module (DPCATT) and the multi-scale context aggregation (MCA)), where the original features and the enhanced features are combined to capture rich detail information and obtain the feature information of the changed area;
[0073] S5. Input the features obtained in the dynamic multi-scale convolutional attention module into the parallel decoding aggregator module, wherein the dilated convolution is used to expand the receptive field, improve the feature information of some small change areas, and use the multi-layer prediction map and loss function output by the parallel decoding aggregator module for deep supervision to learn richer information;
[0074] S6. Save the trained model weights and use the test set to test to obtain the change detection result of the test image.
[0075] Next, the dual-branch multi-scale dynamic partial convolutional attention network architecture based on remote sensing change detection mentioned in the above steps, as well as the feature extractor (Mobilenetv2), dynamic multi-scale convolutional attention module (consisting of dynamic partial convolutional attention module (DPCATT) and multi-scale context aggregation (MCA)), parallel decoding aggregator module (PDA) and loss function are introduced in detail.
[0076] 1) Dual-branch multi-scale dynamic partial convolutional attention network architecture based on remote sensing change detection
[0077] The overall structure of DMDPCANet is shown in the attached Figure 1 As shown in the figure, a pre-trained neural network is used to extract multi-layer features from the bi-temporal image. The dynamic partial convolutional attention module (DPCATT) and the multi-scale context aggregation (MCA) are combined to form the dynamic multi-scale convolutional attention module (DMCA), which captures different semantic information of the changes. The parallel decoding aggregator (PDA) consists of upsampling and dilated convolutions to generate multi-layer prediction images. The loss function is used to perform deep supervision on the multi-layer predictions. Finally, the final output prediction images from the two branches are combined to generate the change map.
[0078] The dual-branch multi-scale dynamic partial convolutional attention network for remote sensing change detection is a dual-branch attention network that combines global and local contextual information.
[0079] Specifically, it includes feature extractor, multi-scale feature fusion (MCA), dynamic partial convolutional attention (DPCATT), parallel decoding aggregator (PDA), and uses binary cross entropy loss function to perform deep supervision (DS) on the output multi-level prediction map, and finally generates a change map. First, the dual-temporal remote sensing image extracts multi-level feature maps in two parallel branches (Mobilenetv2) of pre-trained weight-sharing CNN, with sizes of 64×64, 32×32, 16×16, and 8×8. Then, the multi-scale context aggregation module enhances the network's sensitivity and recognition ability to small change areas in remote sensing images by aggregating features between different layers, improving the representation and discrimination of features and suppressing irrelevant interference. In the DPCATT module, cascading and absolute value subtraction are used to generate two parallel branches. Drawing on the concept of self-attention mechanism, the two branches simultaneously use dynamic convolution to generate queries, keys, and values, extracting richer and more meaningful spatial relationships and context information, and enhancing the model's ability to capture subtle changes. Finally, the multi-scale context aggregation module is combined to fully integrate the dual-branch information and obtain different semantic change information, which significantly improves the robustness and adaptability of the model in complex remote sensing scenes. Finally, a parallel decoding aggregator is used to adopt multi-path feature processing and dilated convolution strategies to generate a prediction map by combining feature information from different layers of the network. In general, the DMDPCANet network of the present invention significantly improves the change detection accuracy of the model by fusing the interactive information between the dual-phase images.
[0080] The specific implementation is as follows:
[0081] First, in order to effectively process high-resolution dual-temporal remote sensing images, the present invention uses a lightweight network (Mobilenetv2) to extract dual-temporal feature maps to capture the key visual features of each time point. By comparing the feature maps of two time points, the model of the present invention accurately and effectively distinguishes between changed and unchanged areas, and performs precise quantitative analysis of these changed areas.
[0082] Considering the complexity of the change detection scenario, the present invention removes the global average pooling (GAP) layer and the final fully connected layer from the backbone network to solve this task more effectively. A convolutional layer with a stride of 2 is added to each layer of the backbone to downsample the feature map of each level to half of the previous level. By feeding a pair of dual-phase T1 remote sensing images and T2 remote sensing images into the feature extractor (Mobilenetv2), the present invention obtains four layers of dual-phase feature maps, which are represented as Compared with other CNN backbones, Mobilenetv2 uses depth-separable convolution, which significantly reduces the parameters and computational complexity of the model. This design allows Mobilenetv2 to run efficiently in resource-constrained environments while maintaining strong feature extraction capabilities and processing speed.
[0083] 2) Multi-scale context aggregation
[0084] The Multi-scale Context Aggregation (MCA) module is Figure 2 As shown, it is generally believed that deep features include rich semantic information, while shallow features include object detail information and texture information. Therefore, the present invention considers combining the extracted multi-level features to enhance the representation ability of the features.
[0085] The present invention uses the remote sensing image of T1 as the input of the network model, inputs the first three layers of the four layers of features obtained by feature extraction into the MCA module, and then Downsample to and The same size, and then through a convolutional layer including the number of channels and Keep it consistent. The number of channels is passed through a 3×3 convolutional layer and Keep it consistent, and then use double line interpolation to The resolution is upsampled to Then X1, X2 and X3 are combined by splicing to collect multi-level feature information, and then residual learning is used to retain the original feature information while enriching the context feature information. The entire representation process can be expressed as:
[0086]
[0087] X=X2+Conv3×3(Conv3×3(Cat(X1,X2,X3)))
[0088] Among them, Mxpooling(·) represents the maximum pooling operation, Cat(·) represents the concatenation operation, Conv3×3 represents the 3×3 convolution, batch normalization and Relu activation function, and Interpolate represents the upsampling operation.
[0089] 3) Dynamic Partial Convolution Attention Module
[0090] Dynamic Partial Convolutional Attention Module (DPCATT) Figure 3As shown. In deep learning, convolutional neural networks (CNNs) extract multi-scale features from images through stacked convolutional layers. However, standard convolution operations are computationally intensive and have many parameters, especially when processing high-resolution images and large data sets. In order to improve the efficiency of convolution operations while maintaining strong feature extraction capabilities, the present invention introduces an enhanced convolution layer, called DSConv2d. This layer combines dynamic weight adjustment and includes selective convolution bias (KDSBias) and convolution bias weight (CDS). DSConv2d can be used in various complex neural network structures, especially in the attention mechanism of query layer, key layer and value layer. By introducing dynamic weight adjustment and selective convolution bias, DSConv2d significantly improves the performance of the model in processing complex scenes. The block size parameter defines the size of the blocks into which the input channel is divided during the dynamic weight adjustment process. In DSConv2d, the input channel is divided into several blocks according to the block size, and each block undergoes independent dynamic weight adjustment. This block-based processing allows for more refined control of the convolution operation, thereby increasing the flexibility and feature capture capability of the model.
[0091] It is well known that concatenation and absolute difference produce different feature information in dual-branch representation. In order to enrich the feature information of each layer, the present invention adopts a dual-branch strategy. The present invention uses a dynamic partial convolution attention module (DPCATT), and the present invention captures the boundary, semantic and texture information of each layer.
[0092] like Figure 3 The present invention splices the multi-layer feature maps extracted from the remote sensing dual-phase T1 and T2 images and simultaneously calculates their differences to obtain F cat and F abs Feature map. This approach allows each branch to capture different feature information, which is then fused and fed into separate paths. Initially, the input feature F cat and F abs The processing by DSConv2d to generate spatially correlated Q, K, and V can be expressed as:
[0093] Q = DSconv2d(F abs )
[0094] K = DSconv2d(F abs )
[0095] V = DSconv2d(F abs )
[0096] After Q and K are generated by dynamic convolution, they are fed into the split channel module (SCM) separately. SCM processes these components by using channel separation, which halves the number of channels in the original features. This method not only reduces the number of parameters but also reduces the computational complexity. Each separated feature map is then concatenated with a 3×3 convolution to extract unique feature information. The two feature maps after convolution are concatenated and then further refined by two 1×1 convolutions. In addition, residual connections are used to enhance the learning process, ultimately producing refined features Q' and K'. This approach ensures that the network captures feature representations of different ranges while maintaining efficiency. SCM can be expressed as:
[0097] Q'=SCM(Q)
[0098] K'=SCM(K)
[0099] Among them, SCM stands for Separation Channel Module, which extracts more diverse feature information by convolving different channel parts separately. Each part can focus on different types of functions and capture finer-grained details. According to the obtained enhanced Q and K, matrix multiplication is performed, and then Softmax is applied to calculate the attention weights. These weights are used to modulate V to produce the final feature output for change detection. In addition, the residual connection is used to merge the output features with the original features. This method enhances the model's ability to capture complex details and improves the overall feature representation.
[0100] C = Softmax(Q'(K' T )
[0101] =Softmax(Q′(K′ T )*V
[0102] =Softmax(Q'(K' T )*V+F abs .
[0103] The resulting feature maps effectively integrate the original input features with those enhanced by the attention mechanism. This integration ensures that the model maintains high accuracy and robustness when performing remote sensing change detection tasks. By leveraging attention weights to highlight important aspects of the input data, the model can better distinguish subtle changes in the environment, ultimately leading to more accurate and reliable change detection results.
[0104] 4) Parallel Decoding Aggregator
[0105] In order to better capture the temporal variation of features, the present invention designs a parallel decoding aggregator module, such as Figure 4The present invention retains dual-branch decoding: one branch uses cascading, while the other branch uses feature subtraction. This method fully utilizes the different semantic information carried by the features obtained by splicing and subtraction. The PDA module aggregates four layers of feature maps in a bottom-up manner to fully integrate the changing semantic information. First, the present invention uses and The feature mapping of the present invention is taken as an example. and Then, the present invention uses bilinear interpolation to ensure and Next, the present invention connects and The specific operations are as follows:
[0106]
[0107] Among them, Conv3×3 represents the combination of 3×3 convolution, batch normalization and REU activation function, and Up(·) is the bilinear upsampling operation.
[0108] Will and Cascade, and use another 3×3 convolution after cascading to adjust the number of channels. Subsequently, the present invention uses 3×3 convolution to adjust the number of channels after cascading. The resulting features are divided into two branches: the first branch uses 3×3 convolution with a dilation rate of 3; the second branch uses parallel 3×3 convolutions with dilation rates of 2 and 1. Finally, the three feature layers are connected to obtain the final feature map. Dilated convolutions are used because they can expand the receptive range of feature maps, reduce the possibility of missing small changes, and enable the model to pay more attention to changes.
[0109]
[0110] Out=Conv3×3(Concat(X1,X2,X3)))
[0111] 5) Loss Function
[0112] The cross entropy loss is introduced to enhance the DMDPCANet of the present invention. Ce is widely used to measure the difference between the predicted probability distribution and the actual distribution, making it ideal for classification tasks. In the context of change detection, this is defined as a binary classification problem at the pixel level, where each pixel must be classified as "changed" or "unchanged".
[0113]
[0114] In this equation, p represents the model's predicted probability of change, y is the binary true label (0 or 1), and N is the number of pixels. This loss function encourages the model to generate probability predictions close to the true label by minimizing the information entropy difference between the predicted probability and the true label.
Claims
1. A dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection, characterized in that: Includes steps: S1. Collect dual-temporal remote sensing images and create a remote sensing image dataset, ensuring that each dual-temporal remote sensing image has pixel-level annotations, dividing the remote sensing image dataset into a training set, a validation set, and a test set, and cutting the dual-temporal remote sensing images in the remote sensing image dataset into the same size; S2. Construct a dual-branch multi-scale dynamic partial convolutional attention network architecture based on remote sensing change detection. It includes a feature extractor, a dynamic multi-scale convolutional attention module, a parallel decoding aggregator module and a loss function, wherein the dynamic multi-scale convolutional attention module is formed by combining a dynamic partial convolutional attention module and a multi-scale context aggregation module; S3, using a pre-trained lightweight network to extract features from dual-temporal remote sensing images; S4, input the extracted multi-layer features into the dynamic multi-scale convolutional attention module; S5. Input the features obtained in the dynamic multi-scale convolutional attention module into the parallel decoding aggregator module, wherein the dilated convolution is used to expand the receptive field, and the multi-layer prediction map and loss function output by the parallel decoding aggregator module are used for deep supervision; S6. Save the trained model weights and use the test set to test to obtain the change detection result of the test image.
2. The dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection according to claim 1, characterized in that: The operation process of the dual-branch multi-scale dynamic partial convolutional attention network architecture based on remote sensing change detection in step S2 is: First, multi-level feature maps are extracted from dual-temporal remote sensing images in two parallel branches of pre-trained weight-sharing CNNs, where the sizes are 64×64, 32×32, 16×16, and 8×8; Then, the multi-scale context aggregation module aggregates features between different layers, and uses cascade and absolute value subtraction in the dynamic partial convolution attention module to generate two parallel branches, allowing the two branches to simultaneously use dynamic convolution to generate queries, keys, and values; Combined with the multi-scale context aggregation module, the dual-branch information is fully integrated to obtain different semantic change information; Finally, a parallel decoding aggregator adopts multi-path feature processing and dilated convolution strategy to generate a prediction map by combining feature information from different layers of the network.
3. The dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection according to claim 2, characterized in that: In step S3, the lightweight network is Mobilenetv2. A convolutional layer with a stride of 2 is added to each layer of the backbone network. The feature map of each level is downsampled to half of the previous level. A pair of dual-phase T1 remote sensing images and T2 remote sensing images are sent to the feature extractor Mobilenetv2 to obtain four layers of dual-phase feature maps, which are represented as 4. The dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection according to claim 3, characterized in that: The operation process of the multi-scale context aggregation module is as follows: the T1 remote sensing image is used as the input of the network model, the first three layers of the four layers of features obtained by feature extraction are input into the multi-scale context aggregation module, and then Downsample to and The same size, and then through a convolutional layer including the number of channels and Keep it consistent; similarly, first The number of channels is passed through a 3×3 convolutional layer and Keep it consistent, and then use double line interpolation to The resolution is upsampled to Consistent; then X1, X2 and X3 are combined by splicing, multi-level feature information is collected, and residual learning is used to retain the original feature information while enriching the context feature information; The whole representation process can be expressed as: X=X2+Conv3×3(Conv3×3(Cat(X1,X2,X3))) Among them, Mxpooling(·) represents the maximum pooling operation, Cat(·) represents the concatenation operation, Conv3×3 represents the 3×3 convolution, batch normalization and Relu activation function, and Interpolate represents the upsampling operation.
5. The dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection according to claim 4, characterized in that: Based on the convolutional neural network, the DSConv2d layer is introduced to form a dynamic partial convolution attention module. The DSConv2d layer combines dynamic weight adjustment and includes selective convolution bias and convolution bias weight. In DSConv2d, the input channel is divided into several blocks according to the block size, and each block performs independent dynamic weight adjustment.
6. The dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection according to claim 5, characterized in that: The dynamic partial convolution attention module adopts a dual-branch strategy. The operation process of the dynamic partial convolution attention module is: First, the multi-layer feature maps extracted from the dual-phase T1 remote sensing image and T2 remote sensing image are spliced, and their differences are calculated at the same time to obtain F cat and F abs Feature map; Then, input feature F cat and F abs Processed by DSConv2d to generate spatially correlated Q, K, and V are represented as: After generating Q and K through dynamic convolution, they are sent to the split channel module respectively; Then a 3×3 convolution is performed on each separated feature map to extract unique feature information; The two feature maps after convolution are concatenated and then further refined through two 1×1 convolutions; Utilize the residual connection to enhance the learning process and finally produce refined features Q' and K'; The split channel module is represented as: Q'=SCM(Q) K'=SCM(K) Among them, SCM stands for Separation Channel Module, which extracts more diverse feature information by convolving different channel parts separately; Based on the resulting enhanced Q' and K', matrix multiplication is performed and then Softmax is applied to compute the attention weights, which are used to modulate V to produce the final feature output for change detection:
7. The dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection according to claim 6, characterized in that: The parallel decoding aggregator module adopts dual-branch decoding, where one branch uses cascading and the other branch uses feature subtraction; the parallel decoding aggregator module aggregates four layers of feature maps in a bottom-up manner.
8. The dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection according to claim 7, characterized in that: The operation process of the parallel decoding aggregator module is: First, two feature maps are input; Then, bilinear interpolation is used to ensure that the feature sizes of the two feature maps are consistent; Next, concatenate the two mappings as follows: Among them, Conv3×3 represents the combination of 3×3 convolution, batch normalization and REU activation function, and Up(·) is a bilinear upsampling operation; The two feature maps are then cascaded, and another 3×3 convolution is used after the cascade to adjust the number of channels; Subsequently, 3×3 convolution is used to adjust the number of channels after cascading, and the obtained features are divided into two branches: the first branch uses 3×3 convolution with a dilation rate of 3; the second branch uses parallel 3×3 convolution with dilation rates of 2 and 1; Finally, these three feature layers are concatenated to obtain the final feature map.
9. The dual-branch multi-scale dynamic local convolutional attention method based on remote sensing change detection according to claim 8, characterized in that: The loss function is: Where p represents the model’s predicted probability of change, y is the binary true label, and N is the number of pixels.
Citation Information
Patent Citations
Image semantic segmentation method based on dynamic convolution attention
CN116129115A
Remote sensing image change detection method based on edge auxiliary self-adaption
CN116363516A
Method for extracting building change area in double-time-phase remote sensing image based on twinborn mixed attention mechanism and multi-scale feature fusion
CN118212532A
Medical image segmentation method based on u-net
US20220309674A1
Cited By
Lightweight remote sensing image change detection method based on binary neural network and large kernel stripe convolution
CN119672295A
Double-branch change detection method and system based on visual basic model
CN119785203A
Remote sensing image anti-cloud interference change detection method based on comparative learning
CN120014446A
Disaster response-oriented change detection method based on dual-time-phase characteristic interaction
CN120198431A
Remote sensing image change detection method and system based on multi-scale fusion lightweight network
CN120472318A
