Lightweight image segmentation method based on multi-scale channel type cross attention feature fusion

Through the multi-scale channel-type cross-attention feature fusion method, combined with star window self-attention and channel cross-fusion Transformer, the problem of large calculation amount in medical image segmentation is solved, efficient image segmentation is achieved, and the segmentation accuracy and Computational efficiency.

CN118710658APending Publication Date: 2024-09-27ANHUI UNIV OF SCI & TECH
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410637307.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing medical image segmentation models suffer from the problem of excessive calculations, which affects segmentation accuracy, especially in the connection of image context information and attention calculation.

Method used

A lightweight image segmentation method using multi-scale channel-type cross-attention feature fusion, through the star window self-attention mechanism and channel cross-fusion Transformer, combined with the SK Attention module, reduces the amount of calculation and improves segmentation accuracy.

Benefits of technology

While keeping the segmentation accuracy unchanged, the amount of calculation is significantly reduced, the efficiency and accuracy of image segmentation are improved, and the computational overhead of the model is controlled.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710658A
    Figure CN118710658A
Patent Text Reader

Abstract

The invention provides a lightweight image segmentation method based on multi-scale channel type cross attention feature fusion. Comprising the following steps: S1, sequentially performing rotation, overturning and homogenized data preprocessing on a medical image; s2, the image passes through a CNN-based continuous down-sampling encoder, a star window self-attention mechanism is added, and feature maps T1, T2, T3 and T4 of different scales are obtained; s3, obtaining four feature maps O1, O2, O3 and O4 after feature fusion after the feature maps of different scales are subjected to a jump stage of channel cross fusion Transform; and S4, after the feature map and the feature map output in the jumping stage are spliced, the spliced feature map and the spliced feature map pass through a CNN-based feature decoder and an SK Attention module at the same time, and a segmented picture is obtained. According to the method, the correlation between global elements with different scale features can be calculated by using the feature channel type cross fusion Transform, the star window self-attention mechanism can grasp the image information globally on the basis of effectively reducing the calculation amount, and the SK Attention can effectively enhance the key information, so that the segmentation precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer vision, and in particular relates to a lightweight image segmentation method of multi-scale channel-type cross-attention feature fusion. Background Art

[0002] With the continuous development of deep learning technology, the field of computer vision has penetrated into all industries of life. In clinical disease diagnosis, the use of computer vision can assist doctors in analyzing the condition more accurately. Due to the uncertainty of the shape and size of the lesion area, the low contrast between some lesion areas and the background, and other interferences, the accuracy of segmentation will be affected. Therefore, it is of profound significance to develop a more accurate image segmentation model.

[0003] In the field of medical image segmentation, the U-net network proposed by Ronneberger et al., with its encoder-decoder structure, achieved the first success in medical image segmentation and attracted great attention in the following years. Subsequently, other networks with encoder-decoder structures (such as Unet++, Unet3+, ResUNet++, etc.) were proposed. As an example to solve the limitation of CNN in obtaining global context information in feature extraction, Transformer is used in various computer vision tasks, and medical image segmentation also benefits from it.

[0004] In the research of medical image segmentation in recent years, there have been great breakthroughs. In 2022, Wu Huisi et al. proposed that the PAT-Net network performed significantly in dermoscopic segmentation. The model is a dual encoder of CNN and Transformer, with three feature adaptation modules embedded in the skip connection (the basic composition of FAM is a 3×3 convolution and a 1×1 convolution jump connection), and a squeeze and excitation (Squeeze & Excitation) module is added before the decoder, and the decoder is composed of convolutional layers. The advantage of this model is that the dual encoder effectively captures long-range dependencies and global context information. At the same time, it has a memory-efficient feature adaptation module, which enhances the feature fusion between adjacent level features by activating effective channels and suppressing irrelevant background noise. In the same year, Feng Kaili et al. from Hebei University proposed SLT-Net, which uses CSwinUnet as an encoder and decoder to model long-distance dependencies between features, and uses multi-scale context transformers (MCT) as jump connections to realize information exchange between jump connections across levels in the channel dimension. Due to the ability of the self-attention mechanism in long-distance information processing, it makes up for the shortcomings of limited receptive field in convolution operations and improves the performance and screening of the network in the channel and spatial dimensions. Although the above image segmentation models show excellent performance in segmentation accuracy, the amount of calculation is too large.

[0005] For the above problems, this medical image segmentation model uses feature channel cross-fusion Transformer to calculate the correlation between global elements of features of different scales. The star window self-attention mechanism can grasp the image information from a global perspective while effectively reducing the amount of calculation. SK Attention can effectively enhance key information, thereby improving segmentation accuracy. When the segmentation accuracy does not change much, the amount of calculation is reduced. Summary of the invention

[0006] In order to solve the problem of insufficient connection with image context information and huge amount of attention calculation in traditional medical image segmentation, a lightweight image segmentation method with multi-scale channel-type cross-attention feature fusion is provided. The present invention adopts the following technical solutions:

[0007] .The present invention provides a lightweight image segmentation method with multi-scale channel-type cross-attention feature fusion, which is characterized in that it includes the following steps: step S1, the medical image is rotated, flipped and homogenized data preprocessed in sequence; step S2, the image is passed through an encoder based on CNN for continuous downsampling, and a star window self-attention mechanism is added to obtain feature maps T1, T2, T3, and T4 of different scales; step S3, the feature maps of different scales are passed through the jump stage of the channel cross-fusion Transformer to obtain four feature fused feature maps O1, O2, O3, and O4; step S4, the feature map and the feature fused feature maps O1, O2, O3, and O4 are spliced ​​and passed through a feature decoder based on CNN, and at the same time, the SK Attention module; after feature decoding, the segmented image is finally obtained.

[0008] The present invention provides a lightweight image segmentation method with multi-scale channel-type cross-attention feature fusion, and can also have such technical features: a CNN-based continuous downsampling encoder, which contains a star window self-attention mechanism.

[0009] The encoder uses ResNet-50 as the backbone of the CNN branch. The size of the original image is 448×448. After four downsamplings, four feature maps of different sizes are obtained, namely 224×224 (T1), 112×112 (T2), 56×56, and 28×28. Among them, the 56×56 and 28×28 feature maps are obtained through the star window self-attention mechanism to obtain T3 and T4. In the star window self-attention mechanism, the calculation formula in the star window self-attention mechanism is:

[0010]

[0011]

[0012] In the above formula, the input feature map is Zl-1 , through the output of LayerNorm layer and Start-Shaped Window Self-Attention and Z l-1 Adding the features together Then, the LayerNorm layer and the multi-layer perceptron (MLP) layer are used to obtain Add together to get Z l Start-Shaped Window Self-Attention (SSW-MSA) is an MSA layer with a moving window. The attention calculation formula is:

[0013]

[0014] In the above formula, Q, K, and V are obtained by multiplying the input features by three matrices respectively. Q represents the information to be queried, K represents the queried information, V represents the value obtained by the query, d represents the number of feature division areas and the channel dimension, and the value in B comes from the bias matrix.

[0015] SSW-MSA divides the feature map into h 1 …h k / 4 ,h k / 4+1 …h k / 4 ,h k / 2+1 …h3 k / 4 ,h 3k / 4+1 …h k Four groups, where hi, i=1,2,3…k represents the channel feature map of the i-th layer of the feature map, and k represents the channel dimension of the feature map. The first group performs attention calculation on the middle vertical bar, the second group performs attention calculation on the left diagonal stripes, the third group performs attention calculation on the left diagonal stripes, and the fourth group performs attention calculation on the middle horizontal bar; at the end of the calculation, the results of the four groups of parallel calculations are output in series. The sample medical image is encoded four times by the encoder to output sample image features of four different scales. The channel dimensions of the four groups of sample image features are 64, 128, 256, and 512, respectively, and their feature scales are 224, 112, 56, and 28, respectively. The four different scales of sample image feature maps that have passed through different encoding layers are marked as T i , i=1,2,3,4.

[0016] The lightweight image segmentation method of multi-scale channel-type cross-attention feature fusion provided by the present invention may also have such a technical feature that in step S3, the four image features obtained by fusion of four features after the feature maps of different scales are subjected to the jump stage of the channel cross-fusion Transformer are marked as O i, i = 1, 2, 3, 4. The jump phase of the channel cross-fusion Transformer includes three steps: multi-scale feature embedding, multi-head channel cross-attention calculation, and multi-layer perceptron (MLP). i , i = 1, 2, 3, 4, first concatenate the feature maps according to their channel sizes, and the calculation formula is as follows:

[0017] Qi=TiW Qi

[0018] K=T ∑ W K

[0019] V=T ∑ W K

[0020] In the above formula, Qi represents the information to be queried, K represents the queried information, V represents the value obtained by the query, Qi, i = 1, 2, 3, 4, K, V perform multi-head attention calculation, and the calculation formula is as follows:

[0021]

[0022] In the above formula, CAi, i = 1, 2, 3, 4 represents the calculated single channel cross attention, Ψ(.) represents the instance normalization function, Represents the softmax function, and the multi-head attention calculation formula is as follows:

[0023]

[0024] In the above formula, N represents the number of heads in the multi-head attention calculation; MCAi, i=1,2,34 represents the result after multi-head attention calculation.

[0025] Finally, the final feature map is obtained through the LayerNorm layer and the multi-layer perceptron (MLP) layer. The formula is as follows:

[0026] O i =MCA i +MLP(LN(Q i +MCA i ))

[0027] In the above formula, Oi, i=1, 2, 3, 4 represents the output of the jump stage.

[0028] The lightweight image segmentation method of multi-scale channel-type cross-attention feature fusion provided by the present invention may also have such a technical feature. In step S4, in SK Attention, SK is the abbreviation of Selective Kernel, which means selecting and fusing convolution kernels of different scales. SK Attention consists of three parts: Split, Fuse and Select. The C×H×W feature map is input into the SK Attention module. In the Split part, 3×3 and 5×5 convolution operations are performed on the input image respectively to obtain two feature maps U1 and U2, and the two features are added to obtain the feature map U. In the Fuse part, the feature map U is first globally average pooled to obtain a C×1×1 feature vector Sc, and then the feature map Z is obtained through Batch Normalization and ReLU activation function, and finally normalized by softmax to generate the weight feature vector a and feature vector b of each channel. Finally, the Select part dynamically selects and fuses different scale features for the scale weights generated by the Fuse operation. The calculation formula is as follows:

[0029] U=U1+U2

[0030]

[0031] Z = ReLU(BN(Sc))

[0032]

[0033] In the above formula, U1, U2, U represent feature maps, Sc represents the feature vector after global average pooling, and BG represents the abbreviation of BatchNormalization. Represents the softmax function. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is a flowchart of the steps of a lightweight image segmentation method with multi-scale channel-type cross-attention feature fusion in an embodiment of the present invention.

[0035] Figure 2 4 is a model architecture diagram of a medical image segmentation network in an embodiment of the present invention.

[0036] Figure 3 Schematic diagram of the structure of the star window self-attention mechanism in an embodiment of the present invention.

[0037] Figure 4 Schematic diagram of the structure of the attention calculation area of ​​the star window self-attention mechanism in an embodiment of the present invention.

[0038] Figure 5Schematic diagram of the structure of the channel cross-fusion Transformer module in an embodiment of the present invention.

[0039] Figure 6 Schematic diagram of the SK Attention structure in an embodiment of the present invention. Specific implementation methods

[0041] In order to make the purpose, technical solution, creative features and advantages of the present invention more clear, the following is a further detailed description of a lightweight image segmentation method of multi-scale channel cross-attention feature fusion of the present invention in combination with experimental examples and drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0042] <Example>

[0043] Figure 1 is a flowchart of the steps of a lightweight image segmentation method for multi-scale channel-type cross-attention feature fusion in an embodiment of the present invention, Figure 2 4 is a model architecture diagram of the medical segmentation network in an embodiment of the present invention.

[0044] like Figure 1 and Figure 2 As shown in FIG. 1 , the lightweight image segmentation method of multi-scale channel-type cross-attention feature fusion includes the following steps:

[0045] Step S1, the medical image is rotated, flipped and homogenized for data preprocessing in sequence.

[0046] In step S2, the image is passed through a CNN-based continuous downsampling encoder, and a star window self-attention mechanism is added to obtain feature maps T1, T2, T3, and T4 of different scales.

[0047] In the embodiment, the encoder uses ResNet-50 as the CNN branch backbone. The size of the original image is 448×448. After four downsamplings, four feature maps of different sizes are obtained, namely 224×224 (T1), 112×112 (T2), 56×56, and 28×28. The 56×56 and 28×28 feature maps are obtained through the star window self-attention mechanism to obtain T3 and T4. In the star window self-attention, the model is as follows Figure 3 As shown, the calculation formula in the star window self-attention mechanism is:

[0048]

[0049]

[0050] In the above formula, the input feature map is Z l-1, through the output of LayerNorm layer and Start-Shaped Window Self-Attention and Z l-1 Adding the features together Then, the LayerNorm layer and the multi-layer perceptron (MLP) layer are used to obtain Add together to get Z l Start-Shaped Window Self-Attention (SSW-MSA) is an MSA layer with a moving window. The attention calculation formula is:

[0051]

[0052] In the above formula, Q, K, and V are obtained by multiplying the input features by three matrices respectively. Q represents the information to be queried, K represents the queried information, V represents the value obtained by the query, d represents the number of feature division areas and the channel dimension, and the value in B comes from the bias matrix.

[0053] SSW-MSA divides the feature map into h 1 …h k / 4 ,h k / 4+1 …h k / 4 ,h k / 2+1 …h3 k / 4 ,h 3k / 4+1 …h k Four groups, such as Figure 4 As shown, hi, i = 1, 2, 3…k represents the i-th channel feature map of the feature map, and k represents the channel dimension of the feature map. The first group performs attention calculations on the middle vertical bar, the second group performs attention calculations on the left diagonal stripes, the third group performs attention calculations on the left diagonal stripes, and the fourth group performs attention calculations on the middle horizontal bar; at the end of the calculation, the results of the four groups of parallel calculations are output in series. The sample medical image is encoded four times by the encoder to output sample image features of four different scales. The channel dimensions of the four groups of sample image features are 64, 128, 256, and 512, respectively, and their feature scales are 224, 112, 56, and 28, respectively. The four different scales of sample image feature maps that have passed through different encoding layers are marked as T i , i=1,2,3,4.

[0054] The star-shaped window self-attention mechanism in the encoder effectively expands the attention area while controlling the computational overhead, achieving the effect of global attention.

[0055] In step S3, the feature maps of different scales are subjected to the jump stage of the channel cross-fusion Transformer to obtain four image features after fusion of four features, which are marked as O i, i = 1, 2, 3, 4. The jump phase of the channel cross-fusion Transformer includes three steps: multi-scale feature embedding, multi-head channel cross-attention calculation and multi-layer perceptron (MLP), such as Figure 5 As shown, where T i , i = 1, 2, 3, 4, first concatenate the feature maps according to their channel sizes, and the calculation formula is as follows:

[0056] Qi=TiW Qi

[0057] K=T ∑ W K

[0058] V=T ∑ W K

[0059] In the above formula, Qi represents the information to be queried, K represents the queried information, V represents the value obtained by the query, Qi, i = 1, 2, 3, 4, K, V perform multi-head attention calculation, and the calculation formula is as follows:

[0060]

[0061] In the above formula, CAi, i = 1, 2, 3, 4 represents the calculated single channel cross attention, Ψ(.) represents the instance normalization function, Represents the softmax function, and the multi-head attention calculation formula is as follows:

[0062]

[0063] In the above formula, N represents the number of heads in the multi-head attention calculation; MCAi, i=1,2,34 represents the result after multi-head attention calculation.

[0064] Finally, the final feature map is obtained through the LayerNorm layer and the multi-layer perceptron (MLP) layer. The formula is as follows:

[0065] O i =MCA i +MLP(LN(Q i +MCA i ))

[0066] In the above formula, Oi, i=1, 2, 3, 4 represents the output of the jump stage.

[0067] The transformer in the channel cross-fusion Transformer module can calculate the correlation between global elements and enhance the network's understanding of global information, thereby improving the network's overall recognition ability of foreground information.

[0068] In step S4, in SK Attention, SK is the abbreviation of Selective Kernel, which means to select and fuse convolution kernels of different sizes. SK Attention consists of three parts: Split, Fuse and Select. Figure 6 As shown. The C×H×W feature map is input into the SK Attention module. In the Split part, the input image is subjected to 3×3 and 5×5 convolution operations respectively to obtain two feature maps U1 and U2. The two features are added to obtain the feature map U. In the Fuse part, the feature map U is first subjected to global average pooling to obtain a C×1×1 feature vector Sc. Then, the feature map Z is obtained through Batch Normalization and ReLU activation function. Finally, it is normalized through softmax to generate the weight feature vector a and feature vector b of each channel. Finally, the Select part dynamically selects and fuses different scale features for the scale weights generated by the Fuse operation. The calculation formula is as follows:

[0069] U=U1+U2

[0070]

[0071] Z = ReLU(BN(Sc))

[0072]

[0073] In the above formula, U1, U2, U represent feature maps, Sc represents the feature vector after global average pooling, and BG represents the abbreviation of BatchNormalization. Represents the softmax function.

[0074] The sample graph of medical image segmentation is input into the model of a lightweight image segmentation method of the present invention with multi-scale channel cross-attention feature fusion. The star-shaped window self-attention mechanism effectively expands the attention area while controlling the computational overhead to achieve the effect of global attention. The transformer in the channel cross-fusion Transformer module can calculate the correlation between global elements and enhance the network's understanding of global information, thereby improving the network's overall recognition ability of foreground information. SK Attention can better strengthen related channels and reduce the impact of background channel information. This improves the accuracy of segmentation and controls the amount of model calculation.

[0075] The workstation processor used in the experiment is Intel Core i7-11700K 3.6GHz, 32GB memory, NVIDA GeForce RTX 3090 24GB video memory, operating system is Windows 10, and the software environment is PyCharm 2022, Pytorch 2.0, Python 3.9, CUDA 11.8. At the beginning of the training, the image size is unified to 448×448, and the data in the following table is obtained.

[0076] Table 1: Comparative experimental results of this experiment in the ISIC2018 skin disease dataset

[0077]

[0078] The above table uses three indicators to estimate the accuracy of the experiment, namely, similarity coefficient (Dice coefficient, Dice), intersection over Union (IoU), and single round iteration time (TrainTime). The calculation method is as follows:

[0079]

[0080]

[0081] In the above formula, TP represents the number of target pixels correctly predicted, TN represents the number of background pixels correctly predicted, FP represents the number of background pixels incorrectly predicted as targets, and FN represents the number of target pixels incorrectly predicted as background. The similarity coefficient (Dice) is a measure of the similarity between the network segmentation result and the standard classification image. The intersection over union (IoU) is the overlap area between the predicted segmentation and the standard segmentation, divided by the merged area between the predicted segmentation and the standard segmentation.

[0082] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-restrictive in all respects, and the scope of the invention / utility model is defined by the appended claims rather than the above description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention / utility model. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

[0083] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A lightweight image segmentation method based on multi-scale channel-type cross-attention feature fusion, characterized in that: The medical segmentation method comprises the following steps: Step S1, the medical image is rotated, flipped and homogenized in sequence for data preprocessing; Step S2, the image is passed through a CNN-based continuous downsampling encoder, and a star window self-attention mechanism is added to obtain feature maps T1, T2, T3, and T4 of different scales; Step S3, the feature maps of different scales are subjected to the jump stage of the channel cross-fusion Transformer to obtain four feature fused feature maps O1, O2, O3, and O4; Step S4, the feature map and the feature maps O1, O2, O3, and O4 after feature fusion are concatenated and passed through a CNN-based feature decoder and an SK Attention module; After feature decoding, the segmented image is finally obtained.

2. According to claim 1, a lightweight image segmentation method with multi-scale channel-type cross-attention feature fusion is characterized by: In step S1, the medical image is rotated, flipped and homogenized for data preprocessing in sequence; In step S2, a CNN-based continuous downsampling encoder is used, which contains a star-shaped window self-attention mechanism; The encoder uses ResNet-50 as the CNN branch backbone. The size of the original image is 448×448. After four downsamplings, four feature maps of different sizes are obtained, namely 224×224 (T1), 112×112 (T2), 56×56, and 28×28. The 56×56 and 28×28 feature maps are obtained through the star window self-attention mechanism to obtain T3 and T4; In the star-shaped window self-attention, the calculation formula in the star-shaped window self-attention mechanism is: In the above formula, the input feature map is Z l-1 , through the output of LayerNorm layer and Start-Shaped Window Self-Attention and Z l-1 Adding the features together Then, the LayerNorm layer and the multi-layer perceptron (MLP) layer are used to obtain Add together to get Z l ; Start-Shaped Window Self-Attention (SSW-MSA) is an MSA layer with a moving window; The attention calculation formula is: In the above formula, Q, K, and V are obtained by multiplying the input features by three matrices respectively. Q represents the information to be queried, K represents the information being queried, and V represents the value obtained by the query; d represents the number of feature division regions and the channel dimension; the value in B comes from the bias matrix; The SSW-MSA divides the feature map into h1…h k / 4 ,h k / 4+1 …h k / 4 ,h k / 2+1 …h3 k / 4 ,h 3k / 4+1 …h k Four groups, where hi, i = 1, 2, 3 ... k represents the i-th channel feature map of the feature map, and k represents the channel dimension of the feature map; the first group performs attention calculation on the middle vertical bar, the second group performs attention calculation on the left diagonal stripes, the third group performs attention calculation on the left diagonal stripes, and the fourth group performs attention calculation on the middle horizontal bar; at the end of the calculation, the results of the four groups of parallel calculations are output in series; the sample medical image is encoded four times by the encoder to output sample image features of four different scales; The channel dimensions of the four groups of sample image features are 64, 128, 256, and 512, respectively, and their feature scales are 224, 112, 56, and 28, respectively; the sample image feature maps of four different scales after different times of coding layers are marked as T i , i=1, 2, 3, 4.

3. According to claim 1, a lightweight image segmentation method with multi-scale channel-type cross-attention feature fusion is characterized by: In step S3, the feature maps of different scales are subjected to the jump stage of the channel cross-fusion Transformer to obtain four image features after fusion of four features, which are marked as O. i , i=1, 2, 3, 4; the jump phase of the channel cross-fusion Transformer includes three steps: multi-scale feature embedding, multi-head channel cross-attention calculation and multi-layer perceptron (MLP); The T i , i = 1, 2, 3, 4, first concatenate the feature maps according to their channel sizes, and the calculation formula is as follows: Qi=TiW Qi K=T ∑ W K V=T ∑ W K In the above formula, Qi represents the information to be queried, K represents the queried information, V represents the value obtained by the query, Qi, i = 1, 2, 3, 4, K, V perform multi-head attention calculation, and the calculation formula is as follows: In the above formula, CAi, i = 1, 2, 3, 4 represents the calculated single channel cross attention, Ψ(.) represents the instance normalization function, Represents the softmax function, and the multi-head attention calculation formula is as follows: In the above formula, N represents the number of heads in the multi-head attention calculation; MCAi, i=1,2,34 represents the result after the multi-head attention calculation; Finally, the final feature map is obtained through the LayerNorm layer and the multi-layer perceptron (MLP) layer. The formula is as follows: O i =MCA i +MLP(LN(Q i +MCA i )) In the above formula, Oi, i=1, 2, 3, 4 represents the output of the jump stage.

4. According to claim 1, a lightweight image segmentation method with multi-scale channel-type cross-attention feature fusion is characterized by: In step S4, the SK Attention, SK is the abbreviation of Selective Kernel, which means selecting and fusing convolution kernels of different sizes; SK Attention consists of three parts: Split, Fuse and Select; The C×H×W feature map is input into the SK Attention module. In the Split part, the input image is subjected to 3×3 and 5×5 convolution operations respectively to obtain two feature maps U1 and U2. The two features are added to obtain the feature map U. In the Fuse part, the feature map U is first subjected to global average pooling to obtain a C×1×1 feature vector Sc, and then subjected to Batch Normalization and ReLU activation functions to obtain the feature map Z. Finally, it is normalized through softmax to generate the weight feature vector a and feature vector b for each channel. Finally, the Select part dynamically selects and fuses different scale features for the scale weights generated by the Fuse operation. The calculation formula in the above is as follows: U=U1+U2 Z = ReLU(BN(Sc)) In the above formula, U1, U2, U represent feature maps, Sc represents the feature vector after global average pooling, and BG represents the abbreviation of BatchNormalization. Represents the softmax function.

Citation Information

Cited By

  • Double-path medical image segmentation method and device based on multistage comprehensive attention

    CN119579887A

  • Medical image segmentation method based on CNN and lightweight Transform fusion

    CN120355920A

  • Image segmentation method based on space attention mechanism

    CN120374992A

  • Medical image segmentation method based on multi-scale window alignment iterative fusion

    CN121504958A

  • A medical image segmentation method based on multi-scale window alignment iterative fusion

    CN121504958B