Lightweight change detection system and detection method based on kernel warehouse mobile network
By designing a lightweight change detection system based on the kernel warehouse mobile network in change detection, using the twin structure and feature fusion module, the problems of large parameter volume and high calculation volume in the existing methods are solved, and high accuracy and low parameter volume are achieved. , The detection effect with low calculation amount improves the practicality of detection.
Patent Information
- Application Number
- CN202410760955.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-20
AI Technical Summary
Existing change detection methods have a large number of model parameters and a high amount of calculations, resulting in low efficiency in mobile applications, and it is difficult to achieve both lightweight networks and high detection accuracy, resulting in unsatisfactory detection results.
A lightweight change detection system based on the kernel warehouse mobile network is designed. It adopts a twin structure encoder, a bidirectional feature enhancement module, a bi-temporal feature fusion module and a symmetric decoder. Through bidirectional feature flow and content similarity-based Feature mixing blocks extract multi-scale and long-term features to achieve change detection with high precision, small number of parameters, and low computational complexity.
It achieves change detection with high precision, small number of parameters, and low calculation amount, making it possible to achieve both lightweight network and high detection accuracy to a certain extent. The detection effect is more ideal and practical, and the amount of parameters and calculation amount are far less than other excellent ones. method.
Smart Images

Figure CN118675028A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of remote sensing image change detection, and in particular to a lightweight change detection system and detection method based on a kernel warehouse mobile network. Background Art
[0002] Remote sensing image change detection technology has great research significance and is widely used in urban planning, disaster assessment, ecosystem monitoring, land use change detection and other fields. Automatic change detection technology can save a lot of labor and time costs, thus greatly promoting the development of these applications.
[0003] At present, convolutional neural network (CNN) is one of the mainstream methods in the field of change detection. CNN has inherent local features and can effectively extract local features from images. Another is Transformer, which was proposed by Vaswani et al. in 2017. In the field of computer vision, Transformer performs as well as CNN or even better. Transformer is currently one of the most commonly used methods in the field of change detection.
[0004] Although the above existing methods and other methods have achieved satisfactory results, they still have some problems to be solved: one of the most challenging problems is the large number of model parameters and high computational complexity, which hinders the application and promotion of these methods in reality, especially in mobile applications. Now some lightweight change detection networks have been proposed, but lightweight networks and high detection accuracy are often incompatible, so the detection effect is not ideal. Summary of the invention
[0005] The purpose of the present invention is to provide a lightweight change detection system and detection method based on a kernel warehouse mobile network, which can achieve high-precision, low-parameter, and low-computation change detection, so that lightweight networks and high detection accuracy can be achieved to a certain extent, and the detection effect is more ideal and more practical.
[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0007] A lightweight change detection system based on a kernel warehouse mobile network includes a twin-structured encoder, a bidirectional feature enhancement module, a bi-temporal feature fusion module, and a decoder symmetrical to the encoder, wherein the encoder is composed of a four-layer lightweight network, the decoder has a four-layer structure, and each layer includes a convolution block, a feature mixing block based on content similarity, and a multi-feature fusion block except the fourth layer, the bi-temporal feature fusion module is used to fuse bi-temporal features, and the bidirectional feature enhancement module is used to extract features of context-awareness.
[0008] Furthermore, the first, second and third stages of the decoder are composed of a multi-feature fusion block (MFF block), a convolution block (Conv block) and a content similarity-based feature mixing block (CFM block), and the fourth stage is composed of a Conv block and a CFM block.
[0009] The detection method of the lightweight change detection system based on the kernel warehouse mobile network includes the following steps:
[0010] S1. The encoder input consists of a pair of dual-phase images X1 and X2, and the encoder will perform feature extraction. For each input image, the network will generate a set of multi-scale features X t,1 , X t,2 , X t,3 and X t,4 , where t∈{1,2};
[0011] S2. Process the feature X generated by the encoder in step S1 through the bidirectional feature enhancement module t,1 , X t,2 , X t,3 and X t,4 , we get {C 1,1 , C 1,2 , C 1,2 , C 1,4} and {C 2,1 , C 2,2 , C 2,3 , C 2,4}These two sets of output;
[0012] S3. The two sets of output features obtained in step S3 are merged by the dual-phase feature fusion module to finally obtain the fused feature C. i ;
[0013] S4. Decoding is performed by the decoder.
[0014] Furthermore, the step S2 is specifically as follows: first, the features of each scale are input into two convolutional layers and processed respectively. The specific process is as follows:
[0015] f t,i =Conv1×1(X t,i )
[0016] s t,i =Conv3×3(X t,i )
[0017] Where i∈{1,2,3,4} represents the stage index, Conv1×1 represents a convolutional layer with a kernel size of 1×1, and Conv3×3 represents a convolutional layer with a kernel size of 3×3, and f t,i andt,i Represent the outputs of the two convolutional layers respectively;
[0018] Then, the feature s is matched through the upward and downward feature flows respectively. t,1 ,s t,2 ,s t,3 and t,4 In addition to the initial features, each feature flow brings new information to the features of each stage. The upward feature flow transmits comprehensive semantic information to the underlying features, while the downward feature flow transmits local detail information to the high-level features. The feature calculation of the upward feature flow is as follows:
[0019]
[0020] In the formula, US is the upsampling operation, which is implemented using the bilinear interpolation method. Concat refers to the feature concatenation operation along the channel dimension. The feature calculation of the downward feature flow is as follows:
[0021]
[0022] Among them, DS is a downsampling operation, which is implemented by the maximum pooling method. After processing the features of each layer through the bidirectional feature flow, the bidirectional feature enhancement module will fuse the features obtained by the two feature flows. and The specific processing is as follows:
[0023]
[0024] Finally, the bidirectional feature enhancement module uses residual connections to transform the feature f t,i Point by point with p t,i Add them together, the specific calculation formula is as follows:
[0025] C t,i =f t,i +p t,i
[0026] C t,1 , C t,2 , C t,3 and C t,4 This is the final output of the bidirectional feature enhancement module.
[0027] Furthermore, the step S3 is specifically as follows: calculating C 1,i and C 2,i After obtaining the difference feature of the dual-phase feature, the dual-phase feature fusion module further processes the difference feature using two convolutional layers, and finally obtains the fused feature C i .
[0028] Furthermore, the step S4 specifically includes: an operation process of a multi-feature fusion block, an operation process of a convolution block, and an operation process of a feature mixing block based on content similarity;
[0029] The multi-feature fusion block of the decoder: The input contains two features: one is the feature C generated by the corresponding stage of the dual-phase feature fusion module i , and the other is the feature generated and upsampled in the (i+1) stage
[0030] C i First, after 3×3 convolution processing, It is also processed by 3×3 convolution and 1×1 convolution respectively. The specific operations are:
[0031] df1 i =Conv3×3(C i )
[0032]
[0033] After the convolution process is completed, the channel concatenation operation is used to obtain the feature df1 i and Merge them together, and then use 3×3 convolution to reduce the number of feature channels.
[0034]
[0035] The fused features are added to In the example, the added feature df i is the output of the multi-feature fusion block,
[0036]
[0037] Furthermore, the convolutional block of the decoder is used to extract local features, which is mainly composed of two convolutional layers and a residual connection. The specific implementation formula of the convolutional block is as follows:
[0038] dc1 i =Conv3×3(df i )
[0039] dc2 i =Conv3×3(dc1 i )
[0040] dc i =dc1 i +dc2 i .
[0041] Furthermore, the decoder's feature hybrid block based on content similarity can extract long-term features, which is complementary to the convolution block. The workflow of the feature hybrid block based on content similarity is as follows:
[0042] First, the feature hybrid block based on content similarity uses the similarity prediction module to find the k tokens N(dc i )∈R B×H×W×k At the same time, the feature mixing block based on content similarity uses a 1×1 convolution to perform feature dc i To process,
[0043] dm1 i =Conv1×1(dc i )
[0044] Next, the content similarity-based feature mixing block uses a feature mixing module according to N(dc i ) Update feature dm1 i , the feature mixing module is based on N(dc i ) form a new feature dm2 i ∈R (B×H×W)×C×k , and use a one-dimensional convolution with a kernel size of k to process the feature dm2 i ,
[0045] dm3 i =Conv1Dk(dm2 i )
[0046] Then, the feature hybrid block based on content similarity uses a concatenation operation to merge the updated feature dm3 i With DC i The features are merged together in the channel dimension and further processed using a 1×1 convolution.
[0047] dm4 i =Conv3×3(Concat(dm3 i ,dc i ))
[0048] Finally, the feature mixing block based on content similarity uses a residual connection to connect dm4 i With DC i Perform point-by-point addition operations.
[0049] dm i =dm4 i +dc i
[0050] dm i It is the final output of the feature mixed block based on content similarity.
[0051] Compared with the prior art, the beneficial effects of the present invention are:
[0052] The present invention proposes a lightweight change detection network, which is mainly based on a mobile network, and replaces the static convolution in the mobile network with a kernel warehouse convolution; a bidirectional feature enhancement module is also set up, which includes two feature flows, one of which flows from the high layer to the low layer of the network, so that the features of each layer can perceive the semantic information of the higher layer, and the other flows from the low layer to the high layer of the network, so that the features of each layer can perceive the detailed information of the lower layer; a feature mixing block based on content similarity is designed, which searches for tokens with similar contents for each token within the global space according to the similarity between image tokens, and then updates the contents of the tokens using these similar tokens, and the block can establish associations between similar tokens without being restricted by spatial distance, so the block has the ability to extract long-term features, so that the present invention can realize change detection with high precision, small parameter amount and low calculation amount, so that the lightweight network and high detection accuracy can be achieved to a certain extent, and the detection effect is more ideal and more practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Attached Figure 1 It is the overall network framework diagram of the present invention.
[0054] Attached Figure 2 It is a diagram of the encoder network structure of the present invention.
[0055] Attached Figure 3 It is a schematic diagram of the bidirectional feature enhancement module of the present invention.
[0056] Attached Figure 4 It is a schematic diagram of the dual-phase feature fusion module of the present invention.
[0057] Attached Figure 5 It is a decoder network structure diagram of the present invention.
[0058] Attached Figure 6 It is a principle diagram of the feature mixing block based on content similarity of the present invention. DETAILED DESCRIPTION
[0059] 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.
[0060] Embodiment 1: A lightweight change detection system based on a kernel warehouse mobile network (CLLNET), as shown in the attached Figure 1As shown, it includes a twin structure encoder, a bidirectional feature enhancement module (BFEM), a dual-time feature fusion module (DTFFM), and a decoder symmetrical to the encoder, as shown in the attached Figure 2 As shown in the figure, the encoder consists of a four-layer lightweight network. Figure 5 As shown in the figure, (a) the overall structure of the decoder, (b) the convolution block, and (c) the multi-feature fusion block. The decoder has a four-layer structure. The first, second, and third stages of the decoder are composed of a multi-feature fusion block (MFF block), a convolution block (Conv block), and a feature mixing block based on content similarity (CFM block). The fourth stage is composed of a Conv block and a CFM block. The decoder uses the Conv block to extract detail information in a local area, and uses the CFM block to extract feature associations in a global range. The two blocks are complementary to each other. Figure 4 As shown in the figure, the dual-phase feature fusion module is used to fuse the dual-phase features, and the bidirectional feature enhancement module is as shown in the figure. Figure 3 As shown in the figure, (a), (c), and (d) are the three steps of BFEM, and (b) is the implementation process of ConcatConv. The bidirectional feature enhancement module has context-awareness, and its function is to enable each layer of features to capture both detail information from low-level features and semantic information from high-level features.
[0061] Convolutional blocks can effectively extract local features of images, which is crucial for accurately modeling the changing regions. However, the receptive field of convolutional blocks is limited to the surrounding area of each token, and it cannot establish connections between tokens that are far apart from each other. Figure 6 As shown, the present invention proposes a content similarity-based feature hybrid block (CFM block), which updates each token according to the similarity between tokens, similar to graph convolution and Transformer. The CFM block complements the convolution block in function and can extract long-term features.
[0062] Embodiment 2: A detection method of a lightweight change detection system based on a kernel warehouse mobile network comprises the following steps:
[0063] S1. The encoder input consists of a pair of dual-phase images X1 and X2, and the encoder will perform feature extraction. For each input image, the network will generate a set of multi-scale features X t,1 , X t,2 , X t,3 and X t,4 , where t∈{1,2};
[0064] S2. Process the feature X generated by the encoder in step S1 through the bidirectional feature enhancement module t,1 , X t,2 , X t,3and X t,4 , we get {C 1,1 , C 1,2 , C 1,3 , C 1,4} and {C 2,1 , C 2,2 , C 2,3 , C 2,4 The two sets of outputs are as follows: First, the features of each scale are input into two convolutional layers and processed separately. The specific process is as follows:
[0065] f t,i =Conv1×1(X t,i )
[0066] s t,i =Conv3×3(X t,i )
[0067] Where i∈{1,2,3,4} represents the stage index, Conv1×1 represents a convolutional layer with a kernel size of 1×1, and Conv3×3 represents a convolutional layer with a kernel size of 3×3, and f t,i and t,i Represent the outputs of the two convolutional layers respectively;
[0068] Then, the feature s is matched through the upward and downward feature flows respectively. t,1 ,s t,2 ,s t,3 and t,4 In addition to the initial features, each feature flow brings new information to the features of each stage. The upward feature flow transmits comprehensive semantic information to the underlying features, while the downward feature flow transmits local detail information to the high-level features. The feature calculation of the upward feature flow is as follows:
[0069]
[0070] In the formula, US is the upsampling operation, which is implemented using the bilinear interpolation method. Concat refers to the feature concatenation operation along the channel dimension. The feature calculation of the downward feature flow is as follows:
[0071]
[0072] Among them, DS is a downsampling operation, which is implemented by the maximum pooling method. After processing the features of each layer through the bidirectional feature flow, the bidirectional feature enhancement module will fuse the features obtained by the two feature flows. and The specific processing is as follows:
[0073]
[0074] Finally, the bidirectional feature enhancement module uses residual connections to transform the feature f t,i Point by point with p t,i Add them together, the specific calculation formula is as follows:
[0075] C t,i =f t,i +p t,i
[0076] C t,1 , C t,2 , C t,3 and C t,4 This is the final output of the bidirectional feature enhancement module;
[0077] S3. The two sets of output features obtained in step S3 are merged by the dual-phase feature fusion module to finally obtain the fused feature C. i , specifically: Calculate C 1,i and C 2,i After obtaining the difference feature of the dual-phase feature, the dual-phase feature fusion module further processes the difference feature using two convolutional layers, and finally obtains the fused feature C i ;
[0078] S4. Decoding by the decoder, specifically including: the operation process of multi-feature fusion block, the operation process of convolution block, and the operation process of feature mixing block based on content similarity;
[0079] The multi-feature fusion module of the decoder: The input contains two features: one is the feature C generated in the corresponding stage of DTFFM i , and the other is the feature generated and upsampled in the (i+1) stage These two features first need to be merged using the multi-feature fusion module. Introducing feature C i The purpose is to compensate for some detailed information lost due to multiple downsampling operations;
[0080] C i First, after 3×3 convolution processing, It is also processed by 3×3 convolution and 1×1 convolution respectively. The specific operations are:
[0081] df1 i =Conv3×3(C i )
[0082]
[0083] After the convolution process is completed, the channel concatenation operation is used to obtain the feature df1 i and Merge them together, and then use 3×3 convolution to reduce the number of feature channels.
[0084]
[0085] The fused features are added to In the example, the added feature df i is the output of the multi-feature fusion block,
[0086]
[0087] The convolutional block of the decoder is used to extract local features. It mainly consists of two convolutional layers and a residual connection. The specific implementation formula of the convolutional block is as follows:
[0088] dc1 i =Conv3×3(df i )
[0089] dc2 i =Conv3×3(dc1 i )
[0090] dc i =dc1 i +dc2 i .
[0091] The decoder's feature mixture block based on content similarity can extract long-term features and complement the convolution block. The workflow of the feature mixture block based on content similarity is as follows:
[0092] First, the feature hybrid block based on content similarity uses the similarity prediction module to find the k tokens N(dc i )∈R B×H×W×k At the same time, the feature mixing block based on content similarity uses a 1×1 convolution to perform feature dc i To process,
[0093] dm1 i =Conv1×1(dc i )
[0094] Next, the content similarity-based feature mixing block uses a feature mixing module according to N(dc i ) Update feature dm1 i , the feature mixing module is based on N(dc i ) form a new feature dm2 i ∈R (B×H×W)×C×k , and use a one-dimensional convolution with a kernel size of k to process the feature dm2 i ,
[0095] dm3 i =Conv1Dk(dm2 i )
[0096] Then, the feature hybrid block based on content similarity uses a concatenation operation to merge the updated feature dm3 i With DC i The features are merged together in the channel dimension and further processed using a 1×1 convolution.
[0097] dm4 i =Conv3×3(Concat(dm3 i ,dc i ))
[0098] Finally, the feature mixing block based on content similarity uses a residual connection to connect dm4 i With DC i Perform point-by-point addition operations.
[0099] dm i =dm4 i +dc i
[0100] dm i It is the final output of the feature mixed block based on content similarity.
[0101] Example 3: Evaluation criteria
[0102] The LEVIR-CD dataset contains 637 sets of images from Google Earth API. These images, which focus on building changes, were taken in Texas, USA from 2002 to 2018. They are of size 1024×1024 and have a spatial resolution of 0.5m / pixel. In the experiment, we divide them into three subsets: training set, test set, and validation set. The number of images in these subsets is 445, 128, and 64, respectively.
[0103] The SYSU-CD dataset contains 20,000 sets of 256×256 aerial images. These photos were taken from 2007 to 2014. Its spatial resolution is 0.5m / pixel. In specific applications, they are divided into training set, test set and validation set, with the number of images being 12,000, 4,000 and 4,000 respectively. This dataset marks multiple types of changes, including building changes, vegetation changes, road changes and marine construction changes.
[0104] In the experiment, we used 5 evaluation indicators to evaluate the change detection method. They are: precision, recall, overall accuracy (OA), F1 score and intersection over union (IoU). Among them, the latter two are more important indicators. Before calculating these indicators, we first need to calculate TP (true positive number), TN (true negative number), FP (false positive number) and FN (false negative number). Then, calculate them according to the following formula:
[0105] precision=TP / (TP+FP〕
[0106] recall=TPTP+FN)
[0107]
[0108] Through experiments on two datasets, LEVIR-CD and SYSU-CD, the F1 value of the detection system (CLLNET) of the present invention is at least 1.43% and 2.96% higher than other change detection methods. The number of parameters and the amount of computation of CLLNET are also far less than other excellent change detection methods. The number of parameters of CLLNET is about 1 / 4 of that of the second best method DARNet, and the amount of computation is about 1 / 12 of that of DARNet.
[0109]
[0110]
[0111] In summary, the present invention can achieve change detection with high precision, few parameters and low computational complexity, so that lightweight network and high detection accuracy can be achieved to a certain extent, and the detection effect is more ideal and more practical.
Claims
1. A lightweight change detection system based on a kernel warehouse mobile network, characterized by: The invention comprises an encoder with a twin structure, a bidirectional feature enhancement module, a bi-temporal feature fusion module, and a decoder symmetrical to the encoder. The encoder is composed of a four-layer lightweight network. The decoder has a four-layer structure, and each layer comprises a convolution block, a feature mixing block based on content similarity, and a multi-feature fusion block except the fourth layer. The bi-temporal feature fusion module is used to fuse bi-temporal features, and the bi-directional feature enhancement module is used to extract features of context-awareness.
2. The lightweight change detection system based on kernel warehouse mobile network according to claim 1 is characterized by: The first, second and third stages of the decoder are composed of a multi-feature fusion block (MFF block), a convolution block (Conv block) and a content similarity-based feature mixing block (CFM block), and the fourth stage is composed of a Conv block and a CFM block.
3. The detection method of the lightweight change detection system based on the kernel warehouse mobile network according to claim 1 or 2 is characterized in that: The following steps are involved: S1. The encoder input consists of a pair of dual-phase images X1 and X2, and the encoder will perform feature extraction. For each input image, the network will generate a set of multi-scale features X t,1 , X t,2 , X t,3 and X t,4 , where t∈{1,2}; S2. Process the feature X generated by the encoder in step S1 through the bidirectional feature enhancement module t,1 , X t,2 , X t,3 and X t,4 , we get {C 1,1 , C 1,2 , C 1,3 , C 1,4 } and {C 2,1 , C 2,2 , C 2,3 , C 2,4 }These two sets of output; S3. The two sets of output features obtained in step S3 are merged by the dual-phase feature fusion module to finally obtain the fused feature C. i ; S4. Decoding is performed by the decoder.
4. The detection method of the lightweight change detection system based on the kernel warehouse mobile network according to claim 3 is characterized by: The step S2 is specifically as follows: first, the features of each scale are input into two convolutional layers and processed respectively. The specific process is as follows: f t,i =Conv1×1(X t,i ) s t,i =Conv3×3(X t,i ) Where i∈{1,2,3,4} represents the stage index, Conv1×1 represents a convolutional layer with a kernel size of 1×1, and Conv3×3 represents a convolutional layer with a kernel size of 3×3, and f t,i and t,i Represent the outputs of the two convolutional layers respectively; Then, the feature s is matched through the upward and downward feature flows respectively. t,1 ,s t,2 ,s t,3 and t,4 In addition to the initial features, each feature flow brings new information to the features of each stage. The upward feature flow transmits comprehensive semantic information to the underlying features, while the downward feature flow transmits local detail information to the high-level features. The characteristic calculation for the upward characteristic flow direction is as follows: In the formula, US is the upsampling operation, which is implemented using the bilinear interpolation method. Concat refers to the feature concatenation operation along the channel dimension. The feature calculation of the downward feature flow is as follows: Among them, DS is a downsampling operation, which is implemented by the maximum pooling method. After processing the features of each layer through the bidirectional feature flow, the bidirectional feature enhancement module will fuse the features obtained by the two feature flows. and The specific processing is as follows: Finally, the bidirectional feature enhancement module uses residual connections to transform the feature f t,i Point by point with p t,i Add them together, the specific calculation formula is as follows: C t,i =f t,i +p t,i C t,1 , C t,2 , C t,3 and C t,4 This is the final output of the bidirectional feature enhancement module.
5. The detection method of the lightweight change detection system based on the kernel warehouse mobile network according to claim 1 is characterized by: The step S3 is specifically as follows: calculating C 1,i and C 2,i After obtaining the difference feature of the dual-phase feature, the dual-phase feature fusion module further processes the difference feature using two convolutional layers, and finally obtains the fused feature C i .
6. The detection method of the lightweight change detection system based on the kernel warehouse mobile network according to claim 1 is characterized by: The step S4 specifically includes: the operation process of the multi-feature fusion block, the operation process of the convolution block, and the operation process of the feature mixing block based on content similarity; The multi-feature fusion block of the decoder: The input contains two features: one is the feature C generated by the corresponding stage of the dual-phase feature fusion module i , and the other is the feature generated and upsampled in the (i+1) stage C i First, after 3×3 convolution processing, It is also processed by 3×3 convolution and 1×1 convolution respectively. The specific operations are: df1 i =Conv3×3(C i ) After the convolution process is completed, the channel concatenation operation is used to obtain the feature df1 i and Merge them together, and then use 3×3 convolution to reduce the number of feature channels. The fused features are added to In the example, the added feature df i is the output of the multi-feature fusion block, 7. The detection method of the lightweight change detection system based on the kernel warehouse mobile network according to claim 6 is characterized by: The convolutional block of the decoder is used to extract local features. It is mainly composed of two convolutional layers and a residual connection. The specific implementation formula of the convolutional block is as follows: dc1 i =Conv3×3(df i ) dc2 i =Conv3×3(dc1 i ) dc i =dc1 i +dc2 i 。 8. The detection method of the lightweight change detection system based on the kernel warehouse mobile network according to claim 6 is characterized by: The decoder's feature mixture block based on content similarity can extract long-term features and complement the convolution block. The workflow of the feature mixture block based on content similarity is as follows: First, the feature hybrid block based on content similarity uses the similarity prediction module to find the k tokens N(dc i )∈R B×H×W×k At the same time, the feature mixing block based on content similarity uses a 1×1 convolution to perform feature dc i To process, dm1 i =Conv1×1(dc i ) Next, the content similarity-based feature mixing block uses a feature mixing module according to N(dc i ) Update feature dm1 i , the feature mixing module is based on N(dc i ) form a new feature dm2 i ∈R (B×H×W)×C×k , and use a one-dimensional convolution with a kernel size of k to process the feature dm2 i , <h2 style=";text-align:left;direction:ltr">dm3<h2 style=";text-align:left;direction:ltr"> i <h2 style=";text-align:left;direction:ltr"> = Conv1Dk(dm2<h2 style=";text-align:left;direction:ltr"> i <h2 style=";text-align:left;direction:ltr"> ) Then, the feature hybrid block based on content similarity uses a concatenation operation to merge the updated feature dm3 i With DC i The features are merged together in the channel dimension and further processed using a 1×1 convolution. dm4 i =Conv3×3(Concat(dm3 i ,dc i )) Finally, the feature mixing block based on content similarity uses a residual connection to connect dm4 i With DC i Perform point-by-point addition operations. dm i =dm4 i +dc i dm i It is the final output of the feature mixed block based on content similarity.
