Adaptive cascade decoder for segmenting challenging regions in medical images

By introducing an adaptive cascade decoder into the medical image segmentation model and dynamically adjusting the convolution kernel parameters and feature representation, the problem of low segmentation accuracy in challenging areas of the existing model is solved, and the segmentation effect of organ edge features is significantly improved. and model robustness.

CN118644499APending Publication Date: 2024-09-13HARBIN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410702041.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-01
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Existing medical image segmentation models have low accuracy in challenging areas, especially the inability to effectively capture the local and global dependencies between pixels, resulting in difficulty in refining organ edge features.

Method used

An adaptive cascade decoder based on CNN-Transformer is proposed. The MSC module is used to reduce the feature map thickness and combined with the ADA module to dynamically adjust the convolution kernel parameters to enhance feature representation capabilities. It combines cross-entropy and DICE loss for multi-stage feature aggregation.

Benefits of technology

It significantly improves the segmentation accuracy of challenging areas, especially in the segmentation tasks of the heart and pancreas, improves the Dice coefficient and other evaluation indicators, highlights organ edge features, and suppresses background information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004871246040000031
    Figure HDA0004871246040000031
  • Figure HDA0004871246040000022
    Figure HDA0004871246040000022
  • Figure HDA0004871246040000021
    Figure HDA0004871246040000021
Patent Text Reader

Abstract

Medical image segmentation is one of key steps for diagnosing various diseases and making treatment plans. The method is helpful for detecting and positioning the lesion area in the image, can quickly identify the potential existence of the lesion areas such as tumors and canceration, and helps doctors to quickly and accurately diagnose. As recognized challenging areas, heart, pancreas and the like are always difficult to segment medical images due to similarity of shapes, positions and surrounding tissues of the challenging areas. The invention discloses a model based on CNN (convolutional neural network)-Transform mixing. A specific adaptive cascade decoder of the model can dynamically adjust parameters of the model according to different targets; the MSC module can inhibit a background area to highlight a target organ; the ADA module overcomes the problems of low contrast and fuzzy edge in the medical image; the multi-stage feature fusion solves the problem of single semantic information of the final prediction map. The accuracy of the model is tested by using a DICE index, and an evaluation result shows that the model provided by the invention shows excellent performance on ACDC and Synapse multi-organ data sets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of medical image segmentation, and mainly improves the accuracy of challenging organs. Specifically, it is a model T-ACD improved based on CNN-Transformer hybrid structure, which can be applied to the field of medical image segmentation. Background Art

[0002] Medical image segmentation is a pixel-level task that separates lesions or organs in a given medical image, which helps doctors identify the lesion area. For patients, it can be discovered and treated as early as possible to avoid missing the best treatment period. Convolutional neural networks (CNNs) have been widely used in medical image segmentation tasks. Specifically, UNet began to be applied to medical image segmentation in 2015. UNet has shown remarkable performance in medical image segmentation due to its high-resolution segmentation map generated by jumping multi-stage features. Because UNet has a complex encoder-decoder architecture, some variants of UNet have emerged, such as UNet++, UNet3+, DC-UNet, etc., which have strong performance in medical image segmentation. Most modern segmentation systems either include UNet or one of its variants in their structure. Although CNN-based methods have achieved certain achievements, during the convolution operation, the value of the current pixel is affected by the values ​​of the pixels around the pixel, which is limited in learning the dependencies between pixels. To overcome this limitation, some people have added attention modules to their architecture to enhance the feature map, which can better perform pixel-level segmentation of medical images. Although these attention-based methods have achieved certain improvements in performance, they still fail to capture sufficient dependencies.

[0003] The emergence of Vision Transformer overcomes the above limitations in capturing dependencies, especially in medical image segmentation. Transformer was first applied to natural language processing (NLP) problems. The core idea behind it is to apply the self-attention mechanism to learn the correlation between input tags, so as to capture long-term dependencies. With the success of Transformer in NLP, Vision Transformer divides the image into non-overlapping patches, which are input into the Transformer module in the form of position embedding. Vision Transformer has achieved outstanding results in the field of image segmentation, especially in the segmentation of medical images. However, the self-attention mechanism used in Transformer limits the ability to learn local relationships between pixels.

[0004] PVTv2 and SegFormer attempt to overcome this limitation by embedding convolutional layers in the Transformer. Although these models can partially learn local relationships between pixels, their discriminative ability is limited and there is a disadvantage of not properly aggregating multi-stage features generated by hierarchical encoders. Recently, a novel cascade attention decoder (CASCADE) was proposed. CASCADE refines features by introducing a convolutional attention module. Although it captures the local and global contextual connections between pixels, the segmentation effects of different targets are different because all convolution kernels in the decoder use fixed parameters, which leads to the inability to refine the edge features of the target in the segmentation of local lesions or organs. Considering this problem, this paper proposes an adaptive cascade decoder that can make full use of the hierarchical representation of the Vision Transformer, match convolution kernels of different sizes to pixels at different stages, and refine the features between pixels. It also aggregates the output features of multiple stages to better connect the local to global detail features. Summary of the invention

[0005] The technical problem solved by the present invention is: to address the problem of low accuracy in segmentation of challenging regions, an adaptive cascade decoder based on CNN-Transformer is proposed, which adaptively adjusts a set of parameters for each target and dynamically adjusts the size of the receptive field. While the introduction of the ADA module solves the problems of low contrast and blurred edges in medical images, the MSC module suppresses irrelevant background information, thereby highlighting the target organ, and achieves excellent results in the segmentation of challenging regions. Taking the heart and pancreas as examples, the accuracy has been improved.

[0006] The technical solution of the present invention is: an adaptive cascade decoder based on CNN-Transformer, the steps are as follows: (1) Preprocess the input medical images. We use random inversion and rotation for data augmentation. (2) The image is input into the CNN-Transformer hybrid encoder and feature extraction is performed through a 3-layer convolutional neural network and a 12-layer Vision Transformer. (3) The extracted features are processed by the MSC module, which reduces the thickness of the feature map while extracting features at a deeper level. The dynamic convolution of the ADA module is then used to adaptively adjust parameters to overcome the problem of edge blur and merge with the features processed by the MSC module. (4) A linear combination of cross entropy loss and DICE loss is used to add the weights of the output feature maps of each stage and obtain the final prediction map through a softmax classifier.

[0007] Furthermore, in the data preprocessing stage, the image is first rotated by a random method, then the image is flipped according to a set axis, and then the image is fine-tuned and rotated by a nearest neighbor interpolation method to enhance the diversity of the data and finally generate a variety of training images.

[0008] Furthermore, in the encoder stage, a hybrid CNN-Transformer is used instead of traditional convolution, which not only overcomes the disadvantage that traditional convolutional neural networks cannot capture pixel dependencies, but also improves the connection between local and global. The encoder is composed of RestNetV2 in the CNN stage. A major improvement of ResNetV2 is the introduction of a pre-activation structure. Unlike the original ResNet, which first performs convolution and then activation in the residual block, ResNetV2 first performs BN and ReLU operations on the input and then convolution. This improvement allows each layer to be close to the identity mapping, making the training of deep networks more stable. The image processed by RestNetV2 is divided into small blocks, and each image block is flattened and sent to a linear embedding layer to be converted into a vector. All embedded vectors are then arranged in order to form a sequence. By adding position encoding to provide position information for the embedded vector of each image block, the relative position between blocks in the image can be considered. Finally, the processed image is input into the Vision Transformer. Each Transformer block includes two components: a multi-head attention mechanism and a position feedforward network. The multi-head attention mechanism computes a weighted representation for each element in the sequence, and these weights are based on the relationship between the element and other elements in the sequence. The positional feed-forward network consists of two linear layers with a ReLU activation function in between. Each component is followed by a residual connection and then a BN.

[0009] Furthermore, in the decoder stage, we propose an adaptive cascade decoder to overcome the drawbacks of fixed convolution kernels when processing different images and reduce the amount of computation. The cascade decoder consists of multi-scale convolution (MSC) for refined feature extraction and adaptive attention (ADA) for improving feature representation capabilities. MSC is used for skip connections and consists of attention gate (AG) and recursive connection structure (RC). In AG, a and b correspond to the output of the next layer and the output of the skip connection, respectively, and 1×1 convolution and BN are performed respectively. The outputs of the two are then added together, and after ReLU activation, 1×1 convolution, BN and Sigmoid activation, a weight information is generated, and finally this weight is multiplied with the original input a. RC consists of four branches, namely 1×1 convolution, 3×3 convolution, 5×5 convolution and 3×3 pooling. In order to reduce the amount of computation, we use 1×1 convolution for calculation reduction before 3×3 convolution and 5×5 convolution. Half of the number of channels of the feature map after AG processing is input into the branch of 1×1 convolution, and one quarter of the number of channels of the feature map is input into the branches of 3×3 convolution and 5×5 convolution respectively. Since the above three branches increase the thickness of the feature map, the entire feature map is subjected to 3×3 pooling to reduce the thickness of the feature map. Finally, the number of channels output by the four branches is added and then passed into ADA. ADA consists of spatial attention and channel attention. The feature map is first reduced in dimension by 1×1 convolution, then increased in dimension by 1×1 convolution, and then activated by BN and Sigmoid to achieve the purpose of improving spatial features. In terms of channel attention, the spatial dimension of the input feature map is first compressed by average pooling. Traditional channel attention will send the compressed feature map to two fully connected networks, and the fully connected layer will increase the complexity of the model and may cause parameter explosion. In order to overcome the above shortcomings, we use one-dimensional convolution with adaptive kernel size to replace the fully connected layer, achieving better performance with lower model complexity. Adaptive convolution is used to dynamically adjust a set of parameters for each sample, which can reduce the risk of overfitting while improving the feature representation ability of the network.

[0010] Furthermore, in the feature fusion stage, our encoder has four stages, and a feature map is output by the dynamic decoder module corresponding to each stage, so that we can get four different feature maps in total. They are from shallow to deep, from local to global in semantic information. We add the weights of the four feature maps, so that we can get a final prediction map with the richest semantic information. Finally, multi-class segmentation is performed through the Softmax activation function to obtain the final prediction map. We calculate the loss value of each stage separately, compare the feature map obtained in each stage with the true label, and use a linear combination of cross entropy loss and Dice loss. This combination can make full use of the advantages of both, flexibly adjust the weights, improve the accuracy and discrimination of the model, and maintain the robustness of the model.

[0011] Compared with the existing technology, the beneficial effect of the present invention is that the adaptive cascade decoder based on CNN-Transformer proposed in the present invention can highlight the edge features of lesions or organs while reducing parameters, and suppress the background area to highlight the organs to be segmented. It has a significant effect on the segmentation of challenging areas, solving the problem of difficulty in improving the accuracy of challenging areas for a long time. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to make the technical solution of the present invention clear, some drawings will be selected below to illustrate the present invention. The following drawings are only some examples of the present invention; users can obtain other similar drawings based on the drawings. Among them: Figure 1 Flowchart for medical image segmentation based on the T-ACD model. Figure 2 Figure 2 is a schematic diagram of the structure of the T-ACD backbone network. Figure 3 This is the network structure diagram of the ResNetV2 module. Figure 4 This is the network structure diagram of the Vision Transformer module. Figure 5 This is the network structure diagram of the MSC module. Figure 6 This is the network structure diagram of the ADA module. DETAILED DESCRIPTION

[0013] like Figure 1 As shown in the figure, the process of medical image segmentation on the T-ACD model includes the following steps: (1) Random inversion and rotation for data augmentation. (2) CNN-Transformer hybrid encoder for feature extraction. (3) The adaptive cascade decoder suppresses the background area and enhances the features of the challenging area. (4) Model verification is carried out through evaluation indicators.

[0014] In step (1) above, the data augmentation method is as follows: First, we randomly rotate and flip the image to enhance the diversity of the data. A random 90-degree rotation is used, combined with a flip along a specific axis. Then, the image is fine-tuned and rotated using a random angle between -20 and 20 degrees. This rotation uses the nearest neighbor interpolation method to ensure the clarity of the image. Through this series of data augmentation techniques, we can obtain a set of more diverse and adaptable images.

[0015] In the above step (2), the method for constructing the CNN-Transformer hybrid encoder is as follows: the encoder of T-ACD consists of a convolutional neural network and a Vision Transformer. The convolutional neural network part consists of a three-layer ResNetV2 module, and the Vision Transformer part consists of twelve Transformer blocks. The input 224×224 image is processed by ResNetV2 and divided into 16×16 small blocks, resulting in 14×14 blocks. Each block is flattened and passed through a linear embedding layer to obtain a fixed-size vector, which is then passed into multiple Transformer encoder blocks.

[0016] The ResNetV2 module uses a pre-activation structure instead of a traditional convolutional module, which is normalized and activated at the beginning of each residual block. ResNetV2 has multiple residual blocks, each of which has a structure of BN and ReLu, followed by convolution. The advantage of ResNetV2 is that it can perform backpropagation more efficiently and avoid the problem of gradient disappearance. By stacking different ResNetV2 modules, the fusion and learning of deep features are achieved.

[0017] The core part of the Vision Transformer module is the Transformer encoder, which is composed of twelve identical layers stacked together. After being processed by ResNetV2, the resulting embedding vector first passes through a layer of Layer Norm, and then through the multi-head attention mechanism (MSA), so that each block can focus on other blocks in the image. This allows the model to capture features and contextual information of various scales. Then it passes through Layer Norm again to improve the stability of training, and finally through the feedforward neural network (MLP), each block is operated independently for further processing of the information of each block. To prevent the gradient from disappearing and speed up the convergence of the network, each sublayer is connected with a residual connection.

[0018] In the above step (3), the method of constructing an adaptive cascade decoder is as follows: the cascade decoder consists of a multi-scale convolution (MSC) for refined feature extraction and an adaptive attention (ADA) for improving feature representation capabilities. We have three MSCs for three skip connections and four ADAs for processing features from the encoder. In the MSC module, we first use AG to combine the upsampled features from the previous decoder with the features from the skip connection. Then, the RC module processes the fused features, which reduces the thickness of the feature map while extracting features at a deeper level. We then connect it with the upsampled features of the previous layer. After that, we use our ADA module to process the concatenated features. Finally, the feature map weights of the four stages are added together, so that a final prediction map with the richest semantic information can be obtained.

[0019] The MSC module consists of an AG module and an RC module. The AG module uses grid attention technology to eliminate the necessity of explicit external tissues and organs in cascaded convolutional neural networks. Specifically, the output of the next layer is convolved and BNed with the features from the encoder, and then the outputs of the two are added together. After ReLU activation, 1×1 convolution, BN and Sigmoid activation, the output is multiplied with the output of the next layer and input into the RC module. Through the four branch networks of 1×1 convolution, 3×3 convolution, 5×5 convolution and 3×3 pooling, the depth features are proposed while reducing the thickness of the feature map. Finally, the number of channels of the four branch outputs is added and passed into the ADA module.

[0020] The core component of the ADA module is dynamic convolution. The parameters of the dynamic convolution kernel are much smaller than those of the standard convolution, which can reduce a large number of parameters. The ADA module also overcomes the problem of low contrast and blurred edge features. The specific implementation is to first reduce the dimension of the feature map through 1×1 convolution, then increase the dimension through 1×1 convolution, and then activate it through BN and Sigmoid, and input it into the channel attention composed of dynamic convolution. First, the input image is compressed into a one-dimensional feature map through average pooling, and then processed by 1×1 convolution. Finally, four dynamic convolution kernels are used to replace the fully connected layer to realize the mapping of the learned features to the final output space. Through the sofmax activation function, four different weights are obtained from four different dynamic convolutions. Finally, the feature map is multiplied by four different weights to obtain four different feature maps. The channels of the four feature maps are added and output after 1×1 convolution.

[0021] In the above step (4), the method for implementing model evaluation is: using performance indicators such as Dice coefficient and HD(95) to quantitatively evaluate the performance of the proposed T-ACD. Compared with the current mainstream model TransUNet, T-ACD has improved the Dice coefficient of the heart segmentation by 5.17%, reaching the highest Dice coefficient of 92.02%. In the segmentation of multiple abdominal organs, the Dice coefficient and HD(95) reached 83.16% and 12.75, an increase of 5.91% and 22.24, and the Dice coefficient of the pancreas, which is more difficult to segment, was improved by 6.39%.

[0022] Dice is a similarity coefficient calculated between the true label and the predicted segmentation. The value of the Dice coefficient ranges from 0 to 1, where 1 indicates a perfect segmentation and 0 indicates a complete mismatch.

[0023] HD(95) is an indicator for evaluating the similarity between two non-empty point sets. The smaller the HD value, the smaller the maximum difference between the two point sets.

[0024] In summary, the present invention proposes a T-ACD model for segmenting challenging areas in medical images. This model combines an adaptive cascade decoder and dynamically adjusts the weights of the convolution kernel, which not only effectively avoids network overfitting and reduces parameters, but also highlights the edge features of lesions or organs. A novel structure multi-scale convolution MSC is proposed in the jump connection layer, which can not only suppress the background area to highlight the organ to be segmented, but also solve the problem of spatial feature loss in the process of feature propagation from the encoder to the decoder. T-ACD has a significant effect on the challenging segmentation tasks of organs such as the heart and pancreas. Compared with the current best model, T-ACD has achieved a huge improvement. Since the self-attention mechanism of the Vision Transformer needs to be calculated for every part of the entire image, the computation and memory requirements of the Vision Transformer on the image may be much higher than that of a regular convolutional neural network. The hybrid CNN-Transformer encoder we use has twelve layers of Vision Transformer, which makes the model more complex. Compared with some CNN architectures, the training of the Vision Transformer usually takes longer. Our future work includes using more datasets on challenging areas to verify that we can better extract edge features and suppress background information. Simplify the network structure and reduce the amount of calculation. This invention only proposes a model for medical image segmentation, but does not accurately diagnose the disease. In the future, we will need to judge the disease based on the morphology, size and edge features of the segmented organs, and provide specific diagnostic information for patients.

[0025] The above is only one embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. T-ACD model based on CNN-Transformer, Its characteristics include the following steps: Step 1: Data preprocessing stage: Preprocess the input medical image. We use random inversion and rotation to perform data augmentation. Step 2: Encoder stage: The image is input into the CNN-Transformer hybrid encoder, and feature extraction is performed through the convolutional neural network and Vision Transformer, which not only improves the dependency between pixels but also strengthens the connection between local and global. Step 3: Decoder stage: The extracted features are passed through the MSC module, which extracts features at a deeper level while reducing the thickness of the feature map. The dynamic convolution of the ADA module is then used to adaptively adjust parameters to overcome the problem of edge blur and merge with the features processed by the MSC module; Step 4: Construction of T-ACD based on adaptive attention.

2. The CNN-Transformer based T-ACD model according to claim 1, characterized in that: In step 1, a random 90-degree rotation is used, combined with a selected specific axis for flipping. Subsequently, the image is fine-tuned and rotated using a random angle between -20 and 20 degrees. This rotation uses the nearest neighbor interpolation method to ensure the clarity of the image. Through this series of data augmentation techniques, we can obtain a set of more diverse and adaptable images.

3. The CNN-Transformer based T-ACD model according to claim 1, characterized in that: In step 2, a hybrid CNN-Transformer is used instead of traditional convolution, which not only overcomes the disadvantage that traditional convolutional neural networks cannot capture pixel dependencies, but also improves the connection between local and global. The encoder consists of three layers of RestNetV2 in the CNN stage. A major improvement of ResNetV2 is the introduction of a pre-activation structure. ResNetV2 first performs BN and ReLU operations on the input and then performs convolution. This improvement allows each layer to be close to the identity mapping, making the training of deep networks more stable. The image processed by RestNetV2 is divided into small blocks, and each image block is flattened and sent to a linear embedding layer to be converted into a vector. All embedded vectors are then arranged in order to form a sequence. Position information is provided for the embedded vector of each image block by adding position encoding, so that the relative positions between blocks in the image can be considered. Finally, the processed image is input into a twelve-layer Vision Transformer. Each Transformer block includes two components: a multi-head attention mechanism and a position feedforward network. The multi-head attention mechanism calculates a weighted representation for each element in the sequence, and these weights are based on the relationship between the element and other elements in the sequence. The position feed-forward network consists of two linear layers with a ReLU activation function between them. Each component is followed by a residual connection and then BN.

4. The CNN-Transformer based T-ACD model according to claim 1, characterized in that: In step 3, we propose an adaptive cascade decoder to overcome the drawbacks of fixed convolution kernels when processing different images and reduce the amount of calculation. In the adaptive cascade decoder, we add MSC to the skip connection. MSC consists of attention gate (AG) and recursive connection structure (RC). In AG, a and b correspond to the output of the next layer and the output of the skip connection respectively. They are 1×1 convolution and BN respectively. Then the outputs of the two are added together. After ReLU activation, 1×1 convolution, BN and Sigmoid activation, a weight information is generated. Finally, this weight is multiplied with the original input a. RC consists of four branches, namely 1×1 convolution, 3×3 convolution, 5×5 convolution and 3×3 pooling. In order to reduce the amount of calculation, we use 1×1 convolution before 3×3 convolution and 5×5 convolution for calculation reduction. Finally, the number of channels output by the four branches is added and passed to ADA. ADA consists of spatial attention and channel attention. In terms of channel attention, the spatial dimension of the input feature map is first compressed by average pooling, and then the fully connected layer is replaced by a one-dimensional convolution with adaptive kernel size, achieving better performance with lower model complexity. Adaptive convolution is used to dynamically adjust a set of parameters for each sample, which can reduce the risk of overfitting and improve the feature representation ability of the network.

5. The CNN-Transformer based T-ACD model according to claim 1, characterized in that: In step 4, the final model T-ACD is composed of a CNN-Transformer encoder and an adaptive cascade decoder block, wherein the CNN-Transformer encoder consists of a three-layer ResNetV2 and a twelve-layer Vision Transformer, and the adaptive cascade decoder consists of a multi-scale convolution module (MSC) and an adaptive attention module (ADA). We have three MSCs for three skip connections and four ADAs for processing features from the encoder. In the MSC module, we first use AG to combine the upsampled features from the previous decoder with the features from the skip connection. Then, the RC module processes the fused features and connects them with the upsampled features of the previous layer. After that, our ADA module is used to process the spliced ​​features. Finally, the weights of the feature maps of the four stages are added together, so that a final prediction map with the richest semantic information can be obtained.