A multi-source image block matching method based on dual-branch parallel deep interactive collaboration
Through a dual-branch parallel deep interaction multi-source image block matching method, the multi-scale channel attention and spatial correlation feature enhancement modules are used to extract cross-modal features and predict matching results, solving the problem of low accuracy in multi-source image processing. Achieved higher matching precision and accuracy.
Patent Information
- Application Number
- CN202310216711.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-03-08
AI Technical Summary
Existing image matching methods have low accuracy problems in multi-source image processing, especially the difficulty in measuring feature similarity due to inconsistent information representation and appearance differences between multi-source images, and existing methods fail to fully utilize the deep feature details of the network and semantic information.
A multi-source image block matching method based on dual-branch parallel deep interaction is adopted, including a four-branch multi-modal feature extraction module, a multi-scale channel attention module, a spatial correlation feature enhancement module and a deep interactive fusion and prediction module. Through the twin sub-network It extracts cross-modal features with the pseudo-twin subnetwork, combines the Transformer encoder and channel attention mechanism to learn the correlation and cross-domain consistency features between images, and finally predicts the matching results through the fully connected layer.
It improves the precision and robustness of multi-source image matching, can capture the differences between images more accurately, eliminates the interference of modality, shadow and seasonal changes, improves the matching precision and accuracy, and outperforms other methods.
Smart Images

Figure CN116597177B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image processing and relates to a multi-source image block matching method based on dual-branch parallel depth interaction. Background Art
[0002] In recent years, the types and number of sensors have increased rapidly. Multi-source images have strong differences and complementarities, which help people obtain a more complete description of the current target or scene. Multi-source images are also widely used in target detection and tracking, military exploration, medical detection, security monitoring and other fields. Therefore, the research on multi-source image processing has important theoretical and practical significance.
[0003] Due to the different principles and usage environments of various imaging sensors, there are differences between multi-source images. Therefore, in the process of multi-source image processing, the first problem that should be solved is how to match images from different sensors to provide technical support for subsequent processing. As an important part of image processing, image matching technology is the basis of many complex image processing. The success or failure of matching determines the quality of the next image processing results. This also makes image matching technology one of the image processing technologies that has developed rapidly in recent years. Most of the existing image automatic matching technologies are aimed at single-source images, mainly visible light images. However, for multi-source images with inconsistent information representation, using single-source image matching technology to match them will lead to a significant decrease in matching accuracy and robustness. Therefore, studying automatic matching technology for multi-source images is of great significance for multi-source image processing.
[0004] The difficulty of multi-source image matching lies in the inconsistency and instability of the representation of information between different source images. Existing feature-based multi-source image matching algorithms focus on how to solve the problem of inconsistent information representation. Due to the large number of sensor types and the large differences in the characteristics of images generated by each sensor, it is still difficult to find a feature description that can be applied to most applications. For example, it is difficult to correctly describe the features of infrared images and visible light images for features designed for a single band of hyperspectral images and visible light images. In addition, due to the instability of information representation, it is difficult to guarantee high accuracy for improved features for specific sensors. For example, infrared sensors are sensitive to temperature, which may lead to different information captured by sensors at different times / seasons. When using a certain feature for description, it is impossible to describe the same-name points consistently. Therefore, how to coordinate multiple methods and reasonably utilize the advantages of each method is of great theoretical and practical significance for improving the robustness of multi-source image matching.
[0005] Traditional methods based on manually designed descriptors rely heavily on human prior knowledge and are difficult to effectively capture the potential pattern information in the data. Therefore, in recent years, image matching methods based on deep learning have gradually become a research hotspot. These methods automatically match by learning the features of images, avoiding the limitations of traditional methods.
[0006] Image matching methods based on deep learning can be divided into two categories: descriptor learning methods and metric learning methods. Descriptor learning methods use convolutional neural networks to extract high-level features from images, match images based on feature distances (such as L2 distance, etc.), and determine that the matching pair is correct if the matching distance is less than a pre-selected threshold. Metric learning methods mainly use original image pairs or generated feature descriptors as input, learn the similarity metric relationship between image blocks, convert the matching task into a binary classification task, and output the matching labels of image block pairs. This method does not require the design of metric criteria, and the channel end-to-end network structure directly learns the mapping from image block pairs to matching labels. In 2017, Kumar et al. proposed the use of twin networks and triplet networks in the paper "Learning local image descriptors with deep siamese and triplet convolutionalnetworks by minimising global loss functions[C] / / Proceedings of the IEEEconference on computer vision and pattern recognition.2016:5385.", and introduced global losses to minimize the average distance between matching pairs and maximize the average distance between mismatching pairs to improve image matching performance. In 2018, Yuki et al. first proposed an end-to-end image matching network LF-Net in the paper "Learning local features from images[J].Advances in neural information processing systems,2018,31." The entire network learns the key point position, scale, direction and feature descriptor respectively through a multi-scale fully convolutional network and a key point description network. In 2019, Shen et al. improved the feature detection network in the paper "Rf-net: An end-to-end image matching network based on receptive field[C] / / Proceedings ofthe IEEE / CVF Conference on Computer Vision and Pattern Recognition.2019:8132-8140". When extracting the response distribution of feature points, the feature detection accuracy is improved through the multi-scale receptive field, and a new loss function neighbor mask is introduced to improve the matching performance.
[0007] However, there are still some problems with the accuracy of the results of image matching methods based on deep learning: 1. Due to the large appearance differences between multi-source images, different scale features of the same image pair may have different similarities, and existing methods are difficult to accurately measure image similarity. 2. In the feature extraction process, existing methods pay more attention to the spatial information learned by the shallow layer of the network, and do not fully utilize the feature details and semantic information retained by the middle and deep layers of the network. As a result, the deep layer of the network cannot perform effective feature interaction learning. Therefore, it is very necessary to design a high-precision image matching network. Summary of the invention
[0008] Technical issues to be solved
[0009] In view of the problem of low accuracy of results of existing image matching methods, the present invention provides a multi-source image block matching method based on dual-branch parallel deep interaction.
[0010] Technical Solution
[0011] A multi-source image block matching model based on dual-branch parallel deep interaction, characterized by comprising a four-branch multimodal feature extraction module, a multi-scale channel attention module, a spatial correlation feature enhancement module and a deep interaction fusion and prediction module;
[0012] The four-branch multimodal feature extraction module inputs two image block pairs T1 and T2 of different modalities into the twin network and pseudo-twin network to extract features, where the twin network represents two branches with shared parameters and the same structure, and the pseudo-twin network represents branches with the same structure but no shared parameters; then the two vectors with high-level semantic information learned from the same modality image in different subnetworks are stacked along the channel to obtain the feature vector F m1 、F m2 ;
[0013] The multi-scale channel attention module refers to the feature F output by the four-branch multimodal feature extraction module m1 、F m2 Stack along the channel, and then obtain four sets of feature vectors of different scales F0, F1, F2, F3 through 3×3, 5×5, 7×7, 9×9 convolution kernels. Each scale performs channel attention SE in turn and multiplies it element by element with itself to obtain feature vectors F0′, F1′, F2′, F3′. Then F0′, F1′, F2′, F3′ are stacked along the channel dimension. The stacked feature vectors are input into the Transformer encoder module. The obtained feature representation is added to itself by residual to obtain the feature vector F msa As output;
[0014] The spatial correlation feature enhancement module extracts the feature F output by the four-branch multimodal feature extraction module.m1 、F m2 Perform correlation operations to learn the correlation between the two; then, use the encoder structure of the Transformer module to establish long-range dependencies and obtain global context information. The obtained feature representation is added to itself in a residual manner to obtain the feature vector F psa As output;
[0015] The deep interactive fusion and prediction module transforms the feature vector F psa With F msa It is sent to the spatial correlation feature enhancement module and the multi-scale channel attention module, and finally three fully connected layers are used to predict the final result of the network.
[0016] A multi-source image block matching method based on dual-branch parallel deep interaction, characterized by the following steps:
[0017] Step 1: Input the image block pairs T1 and T2 of different modalities into the twin network and pseudo twin network respectively to extract features. Then, stack the two high-level semantic information vectors learned from the same modality image in different sub-networks along the channel to obtain the feature vector F m1 、F m2 ;
[0018] Step 2: The feature F output by the four-branch multimodal feature extraction module m1 、F m2 After the channels are stacked, the feature map F is obtained u , the new feature map F u The resolution is denoted as H u ×W u , where H u =H input , W u =W input , H input With W input is the resolution size of the input image pair T; u After 3×3, 5×5, 7×7, and 9×9 convolutions, we get new feature vectors F0, F1, F2, and F3. The resolution of each feature vector is denoted as H. s ×W s , the number of channels is recorded as C s , H s =H u / 4,W s =W u / 4,C s =C u / 4, where H u With W u For feature F u The resolution size, C uFor feature F u The number of channels; then, after performing channel attention SE at each scale in turn, it is multiplied element by element with itself to obtain feature vectors F0′, F1′, F2′, F3′, F0′, F1′, F2′, F3′ are stacked along the channel dimension, and the stacked feature vectors are input into the Transformer encoder module. The feature information of different scales is fused through the two multi-head attention modules in the Transformer module, and the obtained feature vector is added to itself in the form of residual to obtain the feature vector F msa As output;
[0019] Step 3: Extract the features F from the four-branch multimodal feature extraction module m1 、F m2 Input to the spatial correlation feature enhancement module, using the feature map F m1 With F m2 Perform relevant operations to learn the correlation between the two; then, use the encoder structure of the Transformer module to establish long-range dependencies and obtain global context information, and the obtained feature representation is added to itself in the form of residual to obtain F psa As output;
[0020] Step 4: Enhance the feature F output by the spatial correlation feature module psa The feature F output by the multi-scale channel attention module msa The image is sent to the spatial correlation feature enhancement module and the multi-scale channel attention module again. The obtained feature vectors are stacked along the channel dimension to generate the final feature descriptor, which promotes the flow of information between the modalities and enables the images between the two modalities to transmit cross-domain consistent features to each other. Finally, three fully connected layers are used to predict the final result of the network.
[0021] Step 5: When training the network, use the predicted results and the actual matching labels to calculate the cross entropy loss, and then perform back propagation. Repeat the iteration until the number of iterations reaches the set initial value, and then the training is considered complete.
[0022] A further technical solution of the present invention: in step 4, the sizes of the three fully connected layers are 512, 128, and 2 respectively.
[0023] A computer system, characterized in that it comprises: one or more processors, and a computer-readable storage medium for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned method.
[0024] A computer-readable storage medium, characterized in that it stores computer-executable instructions, which are used to implement the above method when executed.
[0025] Beneficial Effects
[0026] The present invention provides a multi-source image block matching method based on dual-branch parallel deep interaction, designs a high-precision multi-source image block matching network model, and uses a four-branch network composed of twins and pseudo-twins to extract common features and private features between cross-modal images. A scale channel attention module is used to encode features of different scales separately, and each scale extracts cross-modal consistency features through channel attention; at the same time, a spatial correlation feature enhancement module is designed to learn the correlation of features between different modalities. Finally, a deep interactive fusion and prediction module is used to fuse spatial and channel features and predict matching results. The average FPR95 of the SCCA-Net of the present invention can reach 3.95 on the VL-CMIM dataset, and its performance is far superior to other methods.
[0027] 1) The invention can extract common features and private features from multi-source images, eliminating the influence of interference factors such as modality, shadows, seasonal changes, etc. This means that the invention can more accurately capture the differences between images, thereby improving matching accuracy;
[0028] 2) The matching results obtained by the invention are more accurate. Compared with the prior art, the invention can effectively solve some difficult-to-match image blocks, thereby improving the matching precision and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings are only for the purpose of illustrating particular embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like components throughout the drawings.
[0030] Figure 1 It is a network structure diagram of the method of the embodiment of the present invention.
[0031] Figure 2 It is a structural diagram of a multi-scale channel attention module in a network model of an embodiment of the present invention.
[0032] Figure 3 It is a structural diagram of the spatial correlation module in the method model of the embodiment of the present invention.
[0033] Figure 4 It is a schematic diagram of the structure of the deep interactive fusion and prediction module in the method model of an embodiment of the present invention.
[0034] Figure 5 It is the structure diagram of the channel attention SE of the present invention. DETAILED DESCRIPTION
[0035] 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 and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0036] The present invention provides a multi-source image block matching method based on dual-branch parallel deep interaction. A high-precision multi-source image block matching network model is designed for this method. The model includes four parts: a four-branch multimodal feature extraction module, a multi-scale channel attention module, a spatial correlation feature enhancement module, and a deep interaction fusion and prediction module.
[0037] The four-branch multimodal feature extraction module inputs two image blocks of different modalities T1 and T2 into the twin network and pseudo twin network to extract features, where the twin network represents two branches with the same structure and sharing parameters, and the pseudo twin network represents branches with the same structure but not sharing parameters. Then, the two vectors with high-level semantic information learned from the same modality image in different subnetworks are stacked along the channel to obtain the feature vector F m1 、F m2 ;
[0038] The multi-scale channel attention module refers to the feature F output by the four-branch multimodal feature extraction module m1 、F m2 Stack along the channel, and then obtain four sets of feature vectors of different scales F0, F1, F2, F3 through 3×3, 5×5, 7×7, 9×9 convolution kernels. Each scale performs channel attention SE in turn and multiplies it element by element with itself to obtain feature vectors F0′, F1′, F2′, F3′. Then F0′, F1′, F2′, F3′ are stacked along the channel dimension. The stacked feature vectors are input into the Transformer encoder module. The obtained feature representation is added to itself by residual to obtain the feature vector F msa As output;
[0039] The spatial correlation feature enhancement module extracts the feature F output by the four-branch multimodal feature extraction module. m1 、F m2 Perform correlation operations to learn the correlation between the two. Then, use the encoder structure of the Transformer module to establish long-range dependencies and obtain global context information. The obtained feature representation is added to itself in a residual manner to obtain the feature vector F. psa As output;
[0040] The deep interactive fusion and prediction module transforms the feature vector Fpsa With F msa It is sent to the spatial correlation feature enhancement module and the multi-scale channel attention module, and finally three fully connected layer operations (sizes are 512, 128, and 2 respectively) are used to predict the final result of the network.
[0041] The method of the present invention comprises the following steps, which are specifically as follows:
[0042] S1, two images T1 and T2 of different modalities are input into the twin network and pseudo twin network modules for multiple feature extractions. The input images of each branch are sequentially passed through convolution module 1, pooling layer 1, convolution module 2, convolution module 3, pooling layer 3, and convolution module 4. Convolution module 1 consists of 2 convolution layers, each of which contains 32 3×3 convolution kernels, and the step size of the convolution is 1. Pooling layer 1 is a maximum pooling operation with a step size of 2 and a convolution kernel size of 3×3. Convolution module 2 also consists of 2 convolution layers, each of which contains 64 3×3 convolution kernels, and the step size of the convolution is 1. Convolution module 3 consists of 1 convolution layer, each of which contains 128 3×3 convolution kernels, and the step size of the convolution is 1. Pooling layer 2 is a maximum pooling operation with a step size of 2 and a convolution kernel size of 3×3. Convolution module 4 consists of 2 convolutional layers, each of which contains 128 3×3 convolution kernels, and the convolution step size is 1. The first three convolutional layers are followed by instance normalization layers and batch normalization layers to reduce feature differences caused by illumination changes and different imaging mechanisms, and the last four convolutional layers are followed by batch normalization layers.
[0043] Then, the two vectors with high-level semantic information learned in different sub-networks for the same modality image are stacked along the channel dimension to obtain the feature vector F m1 、F m2 .
[0044] S2, the feature F output by the four-branch multimodal feature extraction module m1 、F m2 After the channels are stacked, the feature map F is obtained u , the new feature map F u The resolution is denoted as H u ×W u , where H u =H input , W u =W input , H input With W input is the resolution of the input image pair T. u After 3×3, 5×5, 7×7, and 9×9 convolutions, we get new feature vectors F0, F1, F2, and F3. The resolution of each feature vector is denoted as H. s ×W s, the number of channels is recorded as C s , H s =H u / 4,W s =W u / 4,C s =C u / 4, where H u With W u For feature F u The resolution size, C u For feature F u The number of channels. Subsequently, the channel attention SE (Squeeze-and-Excitation) is performed on each scale and then multiplied element by element with itself to obtain the feature vectors F0′, F1′, F2′, F3′. F0′, F1′, F2′, F3′ are stacked along the channel dimension. The stacked feature vectors are input into the Transformer encoder module. The feature information of different scales is fused through the two multi-head attention modules in the Transformer module. The obtained feature vector is added to itself in the form of residual to obtain the feature vector F msa , F msa Calculated by the following formula:
[0045] [F0, F1, F2, F3] = α(f 3×3 (F u ),f 5×5 (F u ),f 7×7 (F u ),f 9×9 (F u ))
[0046]
[0047] F msa =TF(Concat((F0)′,(F1)′,(F2)′,(F3)′))+Concat((F0)′,(F1)′,(F2)′,(F3)′)
[0048] Among them, f n×n represents the n×n convolution operation on the feature vector, α represents the Sigmoid activation function, and F m represents four different scale features, m takes 0, 1, 2, 3, i.e. F0, F1, F2, F3; SE represents channel attention, represents element-by-element multiplication, Concat represents concatenation along the channel dimension, and TF represents the Transformer encoder module.
[0049] S3, the spatial correlation feature enhancement module first uses the feature vector Fm1 With F m2 Perform correlation operations to learn the correlation between the two. In this process, the correlation layer can fuse the information in different feature vectors to obtain richer feature information. The calculation of the correlation layer is similar to that of the convolution layer, except that the convolution layer can learn the feature weights, while the correlation layer multiplies and sums the hidden layer outputs obtained from the two branches. The Transformer encoder module adopts a self-attention mechanism, which enables the model to calculate in parallel and obtain global information. Finally, the global context information is captured through a multi-layer self-attention mechanism to obtain a new feature vector. The obtained feature vector is added to itself in the form of a residual to obtain the feature vector F psa , F psa Calculated by the following formula:
[0050]
[0051] F psa =TF(F c )+F c
[0052] Among them, f1 and f2 are the features input to the relevant layer. Specifically, in this module, f1 represents F m1 , f2 represents F m2 , x1, x2 represent the coordinate points in the two feature vectors; o represents the area to be compared; k represents the range of the area to be compared, which is set to 3; F c Represents the features calculated by the relevant layer; represents element-wise multiplication, and TF represents the Transformer encoder module.
[0053] S4, the deep interactive fusion and prediction module transforms the feature vector F psa With F msa The information is sent to the spatial correlation feature enhancement module and the multi-scale channel attention module to promote the deep interaction of information between different modalities in the deep layer of the network, so that the model can extract more discriminative features and improve the accuracy of multi-source image matching. Finally, three fully connected layer operations (sizes are 512, 128, and 2, respectively) are used to predict the final result of the network.
[0054] S5, when training the network, the cross entropy loss is calculated using the predicted results (match or mismatch) and the actual matching labels, and then back propagation is performed, and the iteration is repeated until the number of iterations reaches the set initial value, and the training is considered to be completed. Specific embodiment:
[0056] like Figure 1As shown in Figure 1, in order to solve the problem of insufficient precision of the current multi-source image matching results, the present invention designs a model of a multi-source image block matching method based on dual-branch parallel deep interaction. It includes four parts: a four-branch multimodal feature extraction module, a multi-scale channel attention module, a spatial correlation feature enhancement module, and a deep interaction fusion and prediction module, as shown in Figure 1. Figure 1 , 2 , 4. The specific method comprises the following steps:
[0057] S1, input the image blocks T1 and T2 of different modalities into the twin network and pseudo twin network for feature extraction, and stack the two high-level semantic information vectors learned from the same modality image in different sub-networks along the channel dimension to obtain the feature vector F m1 、F m2 ;
[0058] S2, the feature F output by the four-branch multimodal feature extraction module m1 、F m2 After channel stacking, we get feature F u , F u After 3×3, 5×5, 7×7, and 9×9 convolutions, we get new feature vectors F0, F1, F2, and F3. The resolution of each feature vector is denoted as H. s ×W s , the number of channels is recorded as C s , H s =H u / 4,W s =W u / 4,C s =C u / 4, where H u With W u For feature F u The resolution size, C u For feature F u Then, after performing channel attention SE at each scale, it is multiplied element by element with itself to obtain feature vectors F0′, F1′, F2′, F3′, F0′, F1′, F2′, F3′ are stacked along the channel dimension, and the stacked feature vectors are input into the Transformer encoder module. The feature information of different scales is fused through the two multi-head attention modules in the Transformer module, and the obtained feature vector is added to itself in the form of residual to obtain the feature vector F msa As output;
[0059] S3, the features F extracted by the twin network and the pseudo twin network m1 、F m2 Input to the spatial correlation feature enhancement module, using the feature vector Fm1 With F m2 Then, the encoder structure of the Transformer module is used to establish long-range dependencies and obtain global context information. The feature vector obtained is added to itself in the form of residual to obtain the feature vector F psa As output;
[0060] S4, the feature vector F psa With F msa It is then sent to the spatial correlation feature enhancement module and the multi-scale channel attention module to promote the flow of information between the modalities, so that the images between the two modalities can transmit cross-domain consistency features to each other. Finally, three fully connected layers with sizes of 512, 128, and 2 are used to predict the final result of the network.
[0061] In this embodiment, the execution network of S1-4 is referred to as SCCA-Net. The execution process of S1-S4 will be further described in detail below in combination with the structure of SCCA-Net.
[0062] In this embodiment, S1 inputs the multi-source image blocks T1 and T2 into the twin network and the pseudo twin network to learn the common features and private features of the image, wherein the twin network refers to the two branches sharing parameters, and the pseudo twin network refers to the two branches not sharing parameters. The four branches have the same structure, and the input image of each branch passes through convolution module 1, pooling layer 1, convolution module 2, convolution module 3, pooling layer 3, and convolution module 4 in turn. Convolution module 1 consists of 2 convolution layers, each of which contains 32 3×3 convolution kernels, and the step size of the convolution is 1. Pooling layer 1 is a maximum pooling operation with a step size of 2 and a convolution kernel size of 3×3. Convolution module 2 also consists of 2 convolution layers, each of which contains 64 3×3 convolution kernels, and the step size of the convolution is 1. Convolution module 3 consists of 1 convolution layer, each of which contains 128 3×3 convolution kernels, and the step size of the convolution is 1. Pooling layer 2 is a maximum pooling operation with a stride of 2 and a convolution kernel size of 3×3. Convolution module 4 consists of 2 convolution layers, each of which contains 128 3×3 convolution kernels, and the convolution stride is 1. The first three convolution layers are followed by instance normalization layers and batch normalization layers to reduce feature differences caused by illumination changes and different imaging mechanisms, and the last four convolution layers are followed by batch normalization layers.
[0063] The high-level semantic information vectors learned in different sub-networks for the same modality image are stacked along the channel to obtain the feature vector F m1 、F m2 ;
[0064] See also Figure 1In this embodiment S2, the feature F output by the four-branch multimodal feature extraction module is m1 、F m2 After the channels are stacked, the feature map F is obtained u , the new feature map F u The resolution is denoted as H u ×W u , where H u =H input , W u =W input , H input With W input is the resolution of the input image pair T. u After 3×3, 5×5, 7×7, and 9×9 convolutions, we get new feature vectors F0, F1, F2, and F3. The resolution of each feature vector is denoted as H. s ×W s , the number of channels is recorded as C s , H s =H u / 4,W s =W u / 4,C s =C u / 4, where H u With W u For feature F u The resolution size, C u For feature F u Then, after performing channel attention SE at each scale, it is multiplied element by element with itself to obtain feature vectors F0′, F1′, F2′, F3′, F0′, F1′, F2′, F3′ are stacked along the channel dimension, and the stacked feature vectors are input into the Transformer encoder module. The feature information of different scales is fused through the two multi-head attention modules in the Transformer module, and the obtained feature vector is added to itself in the form of residual to obtain the feature vector F msa As output;
[0065] In this embodiment, see Figure 5 , channel attention (SE) can encode and output each set of channel-level correlations to obtain the correlation between feature vectors. This module contains global average pooling, fully connected layer, ReLU activation function, fully connected layer and Sigmoid activation function. The dimension size of network input and output remains unchanged.
[0066] In this embodiment, see Figure 3 , S3 extracts the features F extracted by the twin network and the pseudo twin network m1 、F m2 Input to the spatial correlation feature enhancement module, using the feature vector Fm1 With F m2 Then, the encoder structure of the Transformer module is used to establish long-range dependencies and obtain global context information. The feature vector obtained is added to itself in the form of residual to obtain the feature vector F psa As output;
[0067] In this embodiment, participating Figure 4 , the feature vector F output by the spatial correlation feature enhancement module psa The feature vector F output by the multi-scale channel attention module msa It is sent to the multi-scale channel attention module and the spatial correlation feature enhancement module again, and finally three fully connected layers with sizes of 512, 128, and 2 are used to predict the final result of the network.
[0068] In order to verify the effectiveness of the SCCA-Net network, this embodiment uses the dataset VL-CMIM (visible light-thermal infrared) to train and test the network framework, and compares it with other methods. VL-CMIM is the first large-scale visible light and thermal infrared image block matching dataset to date. It contains six categories, with more than 2.9 million pairs of image block data. The six categories are: planets, buildings, villages, fields, streets, and lakes. This embodiment uses the village category for training and other categories for testing. The size of all image blocks is 64×64 pixels.
[0069] The algorithm proposed in this embodiment is compared with 9 mainstream multi-source image matching methods, and the specific results are shown in Table 1. The evaluation index is FPR95, which specifically refers to the false positive rate (FPR95) when the true positive rate (positive recall rate) is equal to 95%, and is used to quantitatively evaluate the matching performance of the network. The lower the index, the better the performance.
[0070] Table 1 shows the image block matching results of the method of the embodiment of the present invention and other existing methods.
[0071]
[0072] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should be included in the protection scope of the present invention.
Claims
1. A multi-source image block matching model based on dual-branch parallel deep interaction, characterized in that It includes a four-branch multimodal feature extraction module, a multi-scale channel attention module, a spatial correlation feature enhancement module, and a deep interaction fusion and prediction module; The four-branch multimodal feature extraction module inputs two image block pairs T1 and T2 of different modalities into the twin network and the pseudo-twin network to extract features, wherein the twin network represents two branches with shared parameters and the same structure, and the pseudo-twin network represents branches with the same structure but no shared parameters; Then, the two vectors with high-level semantic information learned in different sub-networks for the same modality image are stacked along the channel to obtain the feature vector F m1 、F m2 ; The multi-scale channel attention module refers to the feature F output by the four-branch multimodal feature extraction module m1 、F m2 Stack along the channel, and then use 3×3, 5×5, 7×7, 9×9 convolution kernels to obtain four sets of feature vectors of different scales F0, F1, F2, F3. Each scale performs channel attention SE in turn and multiplies it element by element with itself to obtain feature vector F0 ′ , F1 ′ , F2 ′ , F3 ′ , followed by F0 ′ , F1 ′ , F2 ′ , F3 ′ The stacked feature vector is input into the Transformer encoder module, and the obtained feature representation is added to itself in the form of residual to obtain the feature vector F. msa As output; The spatial correlation feature enhancement module extracts the feature F output by the four-branch multimodal feature extraction module. m1 、F m2 Perform correlation operations to learn the correlation between the two; then, use the encoder structure of the Transformer module to establish long-range dependencies and obtain global context information. The obtained feature representation is added to itself in a residual manner to obtain the feature vector F psa As output; The deep interactive fusion and prediction module transforms the feature vector F psa With F msa It is sent to the spatial correlation feature enhancement module and the multi-scale channel attention module, and finally three fully connected layers are used to predict the final result of the network.
2. A multi-source image block matching method based on dual-branch parallel deep interaction implemented using the model described in claim 1, characterized in that Here are the steps: Step 1: Input the image block pairs T1 and T2 of different modalities into the twin network and pseudo twin network respectively to extract features. Then, stack the two high-level semantic information vectors learned from the same modality image in different sub-networks along the channel to obtain the feature vector F m1 、F m2 ; Step 2: The feature F output by the four-branch multimodal feature extraction module m1 、F m2 After the channels are stacked, the feature map F is obtained u , the new feature map F u The resolution is denoted as H u ×W u , where H u =H input , W u =W input , H input With W input is the resolution size of the input image pair T; u After 3×3, 5×5, 7×7, and 9×9 convolutions, we get new feature vectors F0, F1, F2, and F3. The resolution of each feature vector is denoted as H. s ×W s , the number of channels is recorded as C s , H s =H u / 4,W s =W u / 4,C s =C u / 4, where H u With W u For feature F u The resolution size, C u For feature F u The number of channels; then, after performing channel attention SE at each scale in turn, it is multiplied element by element with itself to obtain the feature vector F0 ′ , F1 ′ , F2 ′ , F3 ′ , F0 ′ , F1 ′ , F2 ′ , F3 ′ The stacked feature vector is input into the Transformer encoder module. The feature information of different scales is fused through two multi-head attention modules in the Transformer module. The feature vector obtained is added to itself in the form of residual to obtain the feature vector F. msa As output; Step 3: Extract the features F from the four-branch multimodal feature extraction module m1 、F m2 Input to the spatial correlation feature enhancement module, using the feature map F m1 With F m2 Perform relevant operations to learn the correlation between the two; then, use the encoder structure of the Transformer module to establish long-range dependencies and obtain global context information, and the obtained feature representation is added to itself in the form of residual to obtain F psa As output; Step 4: Enhance the feature F output by the spatial correlation feature module psa The feature F output by the multi-scale channel attention module msa The image is sent to the spatial correlation feature enhancement module and the multi-scale channel attention module again. The obtained feature vectors are stacked along the channel dimension to generate the final feature descriptor, which promotes the flow of information between the modalities and enables the images between the two modalities to transmit cross-domain consistent features to each other. Finally, three fully connected layers are used to predict the final result of the network. Step 5: When training the network, use the predicted results and the actual matching labels to calculate the cross entropy loss, and then perform back propagation. Repeat the iteration until the number of iterations reaches the set initial value, and then the training is considered complete.
3. According to claim 2, the multi-source image block matching method based on dual-branch parallel depth interaction is characterized in that The sizes of the three fully connected layers in step 4 are 512, 128, and 2 respectively.
4. A computer system, characterized in that include: One or more processors, and a computer-readable storage medium for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method of claim 2.
5. A computer-readable storage medium, characterized in that Computer executable instructions are stored, and when the instructions are executed, they are used to implement the method of claim 2.
Citation Information
Patent Citations
Remote sensing image change detection method based on twinborn multi-scale difference feature fusion
CN113420662A
SAR image change detection method based on multi-scale differential feature attention mechanism
CN114926746A
