A small-target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy
By combining the feature extraction of ResNet50 and CNN/Transformer, using progressive decoding strategy and super-resolution reconstruction, the problem of low accuracy of segmentation of small target colorectal polyps in the existing technology is solved, and higher segmentation accuracy and detailed information are achieved. Capturing ability.
Patent Information
- Application Number
- CN202410352778.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-03-26
AI Technical Summary
Existing medical image segmentation technology is difficult to effectively capture global contextual semantic information and detailed features when faced with small target colorectal polyps, resulting in low segmentation accuracy, especially when the imaging quality is low.
A small-target colorectal polyp segmentation method that combines multi-task collaboration and progressive parsing strategies is adopted. Features are extracted through the ResNet50 backbone network, and CNN and Transformer are combined for feature encoding. Super-resolution reconstruction and fine semantic segmentation networks are used for progressive decoding. Fusion of features from different tasks to improve segmentation accuracy.
It significantly improves the segmentation accuracy and recognition ability of small target polyps, enhances the sensitivity to detailed information, has higher segmentation accuracy and reliability, and has important clinical significance.
Smart Images

Figure CN118196416B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical image processing, and in particular to a small-target colorectal polyp segmentation method that integrates multi-task collaboration and progressive parsing strategies. Background Art
[0002] According to the research results of the World Health Organization, colorectal cancer has become the third most common cancer in the world. Although colonoscopy is one of the most commonly used methods for colorectal cancer screening, it has the disadvantages of being expensive and having a high rate of missed detection. In traditional colonoscopy, the accuracy of the detection depends largely on the experience level of the endoscopist, which limits the widespread application of this examination method. With the continuous development of deep learning technology, medical image segmentation has gradually become a hot research topic in the field of computer vision.
[0003] In recent years, many methods have emerged in the field of medical image segmentation, aiming to assist doctors in improving their work efficiency and have achieved remarkable results in sub-fields such as polyp segmentation. Architectures based on convolutional neural networks (CNNs), such as Unet, NestedUnet, and AttentionUnet, have shown excellent performance. These methods make full use of the characteristics of convolution to pass low-level, fine-grained features from the encoder to the decoder through skip connections, and fuse them with high-level, coarse-grained multi-layer semantic features to improve the accuracy of image segmentation. Although these CNN-based methods perform well in feature extraction, they are difficult to effectively establish global long-range dependencies due to the limitations of the convolution receptive field, making it difficult to capture global contextual semantic information that is critical to detection tasks. To overcome this limitation, many studies in recent years have introduced Transformers into the field of medical images, such as TransUnet, TransResU-Net, and IB-TransUNet. Thanks to the advantage of Transformers in using self-attention mechanisms to achieve global information modeling, these methods that cleverly combine the advantages of CNN and Transformers have significantly improved image segmentation performance.
[0004] However, existing technologies also have certain limitations when facing small polyps that are highly similar to surrounding tissues, have different shapes and colors, and often have low imaging quality. In addition, the input of current mainstream methods is a single low-resolution image, which further exacerbates the segmentation accuracy of small polyps. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] In view of the shortcomings of the existing technology, the present invention provides a small target colorectal polyp segmentation method that integrates multi-task collaboration and progressive parsing strategy, which has the advantages of accurate recognition and solves the above-mentioned technical problems.
[0007] (II) Technical solution
[0008] To achieve the above object, the present invention provides the following technical solution: a small target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy, comprising the following steps:
[0009] S1. Input polyp images, including training data and test data, and unify the resolution of the training data of the polyp images, fix the resolution to 256*256, filter the test data of the polyp images, filter out test images with a ratio less than 5%, and fix their resolution to 256*256 to obtain small target polyp images;
[0010] S2. Input the unified polyp image training data into the backbone network composed of ResNet50 for feature extraction, and transmit the [8, 3, 256, 256] latitude data into the backbone network composed of ResNet50 to obtain the final feature F of [8, 1024, 16, 16] backbone ;
[0011] S3, the feature F extracted by the backbone network backbone Input into CNN and Transformer feature encoder for feature encoding to obtain global feature F global and local features F local , and the obtained global feature F global and local features F local Concatenate to get the final encoding feature F encoder ;
[0012] S4, the final encoding feature F encoder Input into the coarse semantic segmentation network for coarse segmentation decoding, and pass through the segmentation head to obtain the coarse segmentation mask, including the coarse segmentation decoding feature F coarse and the rough segmentation prediction map P coarse ;
[0013] S5, the final encoding feature F encoder Input into the super-resolution reconstruction network for super-resolution decoding to obtain the super-resolution decoding feature F SR , and the super-resolution decoding feature F SR and the coarse segmentation decoding feature F coarse After fusion, the super-resolution fusion decoding feature F is obtained fusion1 , and then get the high-resolution prediction image through super-resolution;
[0014] S6. The final encoding feature F encoder Input into the fine semantic segmentation network for fine segmentation decoding to obtain the fine segmentation decoding feature F refinement, and the fine segmentation decoding feature F refinement Fusion decoding feature F with super-resolution fusion1 Fusion obtains the final fusion feature F fusion2 , and output a fine binary segmentation prediction map.
[0015] As a preferred technical solution of the present invention, the specific expression for screening the test data of polyp images in step S1 and screening out the test images with a ratio less than 5% is as follows:
[0016]
[0017] Among them, R small Indicates the polyp ratio, p mask represents the target mask pixel, p image represents the input image pixel, N represents the sum of all elements, It means to sum all elements.
[0018] As a preferred technical solution of the present invention, the final feature F is obtained in step S2 backbone The specific construction process includes:
[0019] S2.1. The training data of latitude [8, 3, 256, 256] is converted into a tensor of latitude [8, 64, 128, 128] after the first layer of convolution, batch normalization, and relu activation.
[0020] S2.2, after the second layer of maximum pooling and other operations, it becomes a tensor of latitude [8,256,64,64];
[0021] S2.3, after the third layer, becomes a tensor of latitude [8,512,32,32];
[0022] S2.4, after the fourth layer, the final feature F becomes [8,1024,16,16] backbone .
[0023] As a preferred technical solution of the present invention, the specific process in step S3 is: the final feature F in step S2 backbone After 5 convolutions, batch normalization, and relu activation, the local feature F of [8, 256, 16, 16] is obtained. local ; The final feature F in step S2 backbone After passing through a Transformer with 4 attention heads and 4 layers, a global feature F of [8, 256, 16, 16] is generated. global , and then the local feature F local and the global feature F global Concatenate to get the final encoding feature F encoder, the specific splicing expression is as follows:
[0024] F encoder =Concat(F local ·F global )
[0025] Among them, Concat(F local ·F global ) represents the local feature F local and the global feature F global splicing, F encoder Represents the final encoded features.
[0026] As a preferred technical solution of the present invention, the final encoding feature F encoder Four layers of decoding are performed to obtain decoding features with dimensions of [8, 256, 32, 32], [8, 128, 64, 64], [8, 64, 128, 128], and [8, 32, 256, 256]. The structure of each decoding layer is the same, including an upsampling operation with an upsampling factor of 2, ResidualBlock, relu activation, and skip connection. Finally, the decoding features of [8, 32, 256, 256] are converted into a coarse binary segmentation prediction map of [8, 1, 256, 256] through convolution and Sigmod activation of the segmentation head, and the coarse segmentation decoding feature F is obtained. coarse and the rough segmentation prediction map P coarse , the specific calculation formula is as follows:
[0027] F coarse =rrelu(residual(upsmaple( Fencoder ))) ×4
[0028] P coarse =sigmod(conv 1×1 (F coarse ))
[0029] Among them, sigmod represents the activation function, conv 1×1 represents 1*1 convolution, relu represents relu activation, residual represents ResidualBlock operation, upsample represents upsampling operation, F encoder represents the final encoding feature, and ×4 represents four-layer decoding.
[0030] As a preferred technical solution of the present invention, step S5 comprises the following steps:
[0031] S5.1. Final encoding feature F encoderThe same four-layer decoding is performed to obtain decoding features of dimensions [8, 256, 32, 32], [8, 128, 64, 64], [8, 64, 128, 128], and [8, 32, 256, 256], respectively. The structure of each decoding layer is the same, including an upsampling operation with an upsampling factor of 2, ResidualBlock, relu activation, and skip connection, and finally the super-resolution decoding feature F of [8, 32, 256, 256] is obtained. SR ;
[0032] S5.2. Introducing the coarse segmentation decoding feature F before super-resolution reconstruction coarse , the super-resolution decoding feature F SR and the coarse segmentation decoding feature F coarse Fusion, the super-resolution decoding feature F of [8,32,256,256] SR The coarse segmentation decoding feature F of [8,32,256,256] coarse After splicing according to the number of channels, convolution and relu activation are performed, and then they are input into 3*3 dilated convolutions with dilation rates of 1, 2, and 4 for convolution operations. Then the results are spliced according to the number of channels and sent to the channel attention for attention operation. Finally, 1*1 convolution compression latitude and activation are performed to obtain the super-resolution fusion decoding feature F fusion1 , the specific expression is as follows:
[0033] F fusion1
[0034] = relu(conv 1×1 (atten(conv dilation=1,2,4 (relu(conv 1×1 (Cocat(F SR ·F coarse )))))))
[0035] Among them, F fusion1 Represents super-resolution fusion decoding features, conv 1×1 represents 1*1 convolution, relu represents relu activation, atten represents channel attention, conv dilation=1,2,4 Indicates the 3*3 dilated convolution operation with dilation rates of 1, 2, and 4, Concat(F SR ·F coarse ) represents the super-resolution decoding feature F SR and the coarse segmentation decoding feature F coarse To splice;
[0036] S5.3, the obtained super-resolution fusion decoding feature F fusion1After super-resolution reconstruction, it is converted into a high-resolution prediction image of [8, 3, 256, 256].
[0037] As a preferred technical solution of the present invention, step S6 comprises the following steps:
[0038] S6.1. Final encoding feature F encoder The input is sent to the fine semantic segmentation network for fine segmentation decoding. The decoding is four-layer decoding, and the decoding features of dimensions [8, 256, 32, 32], [8, 128, 64, 64], [8, 64, 128, 128], and [8, 32, 256, 256] are obtained respectively. The structure of each decoding layer is the same, including upsampling operation with an upsampling factor of 2, ResidualBlock, relu activation, and skip connection. The specific calculation formula is as follows:
[0039] F refinement =relu(residual(rpsmaple(Fencoder))) ×4
[0040] Among them, conv 1×1 represents 1*1 convolution, relu represents relu activation, residual represents ResidualBlock operation, upsmaple represents upsampling operation, F encoder represents the final encoding feature, and ×4 represents four-layer decoding;
[0041] S6.2. Introducing super-resolution fusion decoding feature F before segmentation head reconstruction fusion1 , the fine segmentation decoding feature F of [8,32,256,256] refinement The super-resolution fusion decoding feature F of [8,32,256,256] fusion1 After splicing according to the number of channels, convolution and relu activation are performed, and then they are input into 3*3 dilated convolutions with dilation rates of 1, 2, and 4 for convolution operations. Then the results are spliced according to the number of channels and sent to the channel attention for attention operation. Finally, 1*1 convolution is performed to compress the latitude and activate to obtain the final fusion feature F fusion2 , the specific expression is as follows:
[0042] F fusion2
[0043] = relu(conv 1×1 (atten(conv dilation=1,2,4 (relu(conv 1×1 (Concat(F fusion1 ·F refinement )))))))
[0044] Among them, F fusion1 Represents super-resolution fusion decoding features, conv 1×1 represents 1*1 convolution, relu represents relu activation, atten represents channel attention, conv dilation=1,2,4 represents the 3*3 dilated convolution operation with dilation rates of 1, 2, and 4, F refinement Represents the fine segmentation decoding features, Concat(F fusion1 ·F refinement ) indicates the refinement and F fusion1 To splice;
[0045] S6.3, the final fusion feature F fusion2 After the convolution and Sigmod activation of the segmentation head, it becomes a fine binary segmentation prediction map of [8, 1, 256, 256].
[0046] Compared with the prior art, the present invention provides a small target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy, which has the following beneficial effects:
[0047] 1. The present invention combines super-resolution reconstruction strategies to improve the efficiency of global and local information modeling of small target polyps while transferring the ability of super-resolution task modeling detail information to the segmentation task, thereby improving the ability of the semantic segmentation network to focus on smaller lesion structures in polyp images, and realizing the recognition and accurate segmentation of small target polyps. The method proposed in the present invention uses a global feature extraction module composed of a local feature extraction module Transformer composed of a convolutional neural network to extract comprehensive small target polyp features; at the same time, in order to address the problem that the semantic segmentation network has poor focusing ability on small target polyps, a progressive decoding strategy of first coarse segmentation, then super-resolution, and finally fine segmentation is adopted to further improve the expression ability of semantic features, and the feature interaction between different tasks is strengthened through a feature fusion module to improve the sensitivity to the detail information of small target polyps. Compared with the existing mainstream baseline model, the progressive small target colorectal polyp segmentation method based on super-resolution task assistance proposed in the present invention has higher segmentation accuracy and reliability, and has important clinical significance and positive application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a schematic diagram of the process of the present invention.
[0049] Figure 2 This is a detailed structural diagram of the present invention.
[0050] Figure 3 This is a detailed structural diagram of the feature fusion module of the present invention.
[0051] Figure 4This is an example diagram of small target test data screening in the present invention.
[0052] Figure 5 The results of the present invention are shown in FIG. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] See also Figure 1 , a small target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy, comprising the following steps:
[0055] S1. Input polyp images, including training data and test data, and unify the resolution of the training data of the polyp images, fix the resolution to 256*256, filter the test data of the polyp images, filter out test images with a ratio less than 5%, and fix their resolution to 256*256 to obtain small target polyp images;
[0056] S2. Input the unified polyp image training data into the backbone network composed of ResNet50 for feature extraction, and transmit the [8, 3, 256, 256] latitude data into the backbone network composed of ResNet50 to obtain the final feature F of [8, 1024, 16, 16] backbone ;
[0057] S3, the feature F extracted by the backbone network backbone Input into CNN and Transformer feature encoder for feature encoding to obtain global feature F global and local features F local , and the obtained global feature F global and local features F local Concatenate to get the final encoding feature F encoder ;
[0058] S4, the final encoding feature F encoder Input into the coarse semantic segmentation network for coarse segmentation decoding, and pass through the segmentation head to obtain the coarse segmentation mask, including the coarse segmentation decoding feature F coarse and the rough segmentation prediction map P coarse ;
[0059] S5, the final encoding feature F encoderInput into the super-resolution reconstruction network for super-resolution decoding to obtain the super-resolution decoding feature F SR , and the super-resolution decoding feature F SR and the coarse segmentation decoding feature F coarse After fusion, the super-resolution fusion decoding feature F is obtained fusion1 , and then get the high-resolution prediction image through super-resolution;
[0060] S6. The final encoding feature F encoder Input into the fine semantic segmentation network for fine segmentation decoding to obtain the fine segmentation decoding feature F refinement , and the fine segmentation decoding feature F refinement Fusion decoding feature F with super-resolution fusion1 Fusion obtains the final fusion feature F fudion2 , and output a fine binary segmentation prediction map.
[0061] Furthermore, in step S1, the test data of polyp images are screened, and the specific expression for screening out the test images with a ratio less than 5% is as follows:
[0062]
[0063] Among them, R small Indicates the polyp ratio, p mask represents the target mask pixel, p image represents the input image pixel, N represents the sum of all elements, It means to sum all elements.
[0064] Furthermore, the final feature F is obtained in step S2 backbone The specific construction process includes:
[0065] S2.1. The training data of latitude [8, 3, 256, 256] is converted into a tensor of latitude [8, 64, 128, 128] after the first layer of convolution, batch normalization, and relu activation.
[0066] S2.2, after the second layer of maximum pooling and other operations, it becomes a tensor of latitude [8,256,64,64];
[0067] S2.3, after the third layer, becomes a tensor of latitude [8,512,32,32];
[0068] S2.4, after the fourth layer, the final feature F becomes [8,1024,16,16] backbone .
[0069] Furthermore, the specific process in step S3 is: the final feature F in step S2 backboneAfter 5 convolutions, batch normalization, and relu activation, the local feature F of [8, 256, 16, 16] is obtained. local ; The final feature F in step S2 backbone After passing through a Transformer with 4 attention heads and 4 layers, a global feature F of [8, 256, 16, 16] is generated. global , and then the local feature F local and the global feature F global Concatenate to get the final encoding feature F encoder , the specific splicing expression is as follows:
[0070] F local =Encoder cnn (X i )
[0071] F global =Encoder transformer (X i )
[0072] F encoder =Concat(F local ·F global )
[0073] Among them, Concat(F local ·F global ) represents the local feature F local and the global feature F global splicing, F encoder represents the final encoding feature, X i Represents the final feature F backbone The input image is Encoder, which represents the feature encoding operation.
[0074] Furthermore, in step S4, the final encoding feature F encoder Four layers of decoding are performed to obtain decoding features with dimensions of [8, 256, 32, 32], [8, 128, 64, 64], [8, 64, 128, 128], and [8, 32, 256, 256]. The structure of each decoding layer is the same, including an upsampling operation with an upsampling factor of 2, ResidualBlock, relu activation, and skip connection. Finally, the decoding features of [8, 32, 256, 256] are converted into a coarse binary segmentation prediction map of [8, 1, 256, 256] through convolution and Sigmod activation of the segmentation head, and the coarse segmentation decoding feature F is obtained. coarse and the rough segmentation prediction map P coarse , the specific calculation formula is as follows:
[0075] F coarse=relu(residual(upsmaple(F encoder ))) ×4
[0076] P coarse =sigmoid(conv 1×1 (F coarse ))
[0077] Among them, sigmod represents the activation function, conv 1×1 represents 1*1 convolution, relu represents relu activation, residual represents ResidualBlock operation, upsmaple represents upsampling operation, F encoder represents the final encoding feature, and ×4 represents four-layer decoding.
[0078] In order to effectively utilize label supervision network training, a combination of cross entropy loss and Dice loss is used in this step. The specific loss function is:
[0079] L coarse =L bce (P coarse ,Y)+L dice (P coarse ,Y)
[0080] Where L bce ,L dice , Y represents cross entropy loss, Dice loss, and segmentation label respectively
[0081] Further, step S5 includes the following steps:
[0082] S5.1. Final encoding feature F encoder The same four-layer decoding is performed to obtain decoding features of dimensions [8, 256, 32, 32], [8, 128, 64, 64], [8, 64, 128, 128], and [8, 32, 256, 256], respectively. The structure of each decoding layer is the same, including an upsampling operation with an upsampling factor of 2, ResidualBlock, relu activation, and skip connection, and finally the super-resolution decoding feature F of [8, 32, 256, 256] is obtained. SR ;
[0083] S5.2. Introducing the coarse segmentation decoding feature F before super-resolution reconstruction coarse , the super-resolution decoding feature F SR and the coarse segmentation decoding feature F coarse Fusion, the super-resolution decoding feature F of [8,32,256,256] SR The coarse segmentation decoding feature F of [8,32,256,256]coarse After splicing according to the number of channels, convolution and relu activation are performed, and then they are input into 3*3 dilated convolutions with dilation rates of 1, 2, and 4 for convolution operations. Then the results are spliced according to the number of channels and sent to the channel attention for attention operation. Finally, 1*1 convolution compression latitude and activation are performed to obtain the super-resolution fusion decoding feature F fusion1 , the specific expression is as follows:
[0084] F fusion1
[0085] = relu(conv 1×1 (atten(conv dilation=1,2,4 (relu(conv 1×1 (Concat(F SR ·F coarse )))))))
[0086] Among them, F fusion1 Represents super-resolution fusion decoding features, conv 1×1 represents 1*1 convolution, relu represents relu activation, atten represents channel attention, conv dilation=1,2,4 Indicates the 3*3 dilated convolution operation with dilation rates of 1, 2, and 4, Concat(F SR ·F coarse ) represents the super-resolution decoding feature F SR and the coarse segmentation decoding feature F coarse To splice;
[0087] S5.3, the obtained super-resolution fusion decoding feature F fusion1 After super-resolution reconstruction, it is converted into a high-resolution prediction image of [8, 3, 256, 256].
[0088] In order to effectively utilize paired high-resolution label supervised reconstruction, a similarity loss is used in this step, which is calculated as:
[0089] O sr =SR(F fusiuon1 )
[0090]
[0091] Among them, sr ,SR,X HR Represent the super-resolution prediction output, super-resolution reconstruction operation and high-resolution target image respectively, and N is the sum of all elements
[0092] Further, step S6 includes the following steps:
[0093] S6.1. Final encoding feature Fencoder The input is sent to the fine semantic segmentation network for fine segmentation decoding. The decoding is four-layer decoding, and the decoding features of dimensions [8, 256, 32, 32], [8, 128, 64, 64], [8, 64, 128, 128], and [8, 32, 256, 256] are obtained respectively. The structure of each decoding layer is the same, including upsampling operation with an upsampling factor of 2, ResidualBlock, relu activation, and skip connection. The specific calculation formula is as follows:
[0094] F refinement =relu(residual(upsmaple(F encoder ))) ×4
[0095] Among them, conv 1×1 represents 1*1 convolution, relu represents relu activation, residual represents ResidualBlock operation, upsmaple represents upsampling operation, F encoder represents the final encoding feature, and ×4 represents four-layer decoding;
[0096] S6.2. Introducing super-resolution fusion decoding feature F before segmentation head reconstruction fusion1 , the fine segmentation decoding feature F of [8,32,256,256] refinement The super-resolution fusion decoding feature F of [8,32,256,256] fusion1 After splicing according to the number of channels, convolution and relu activation are performed, and then they are input into 3*3 dilated convolutions with dilation rates of 1, 2, and 4 for convolution operations. Then the results are spliced according to the number of channels and sent to the channel attention for attention operation. Finally, 1*1 convolution is performed to compress the latitude and activate to obtain the final fusion feature F fusion2 , the specific expression is as follows:
[0097] F fusion2
[0098] = relu(conv 1×1 (atten(convdilation =1,2,4 (relu(conv 1×1 (Concat(F fusion1 ·F refinement )))))))
[0099] Among them, F fusion1 Represents super-resolution fusion decoding features, conv 1×1 represents 1*1 convolution, relu represents relu activation, atten represents channel attention, conv dilation=1,2,4represents the 3*3 dilated convolution operation with dilation rates of 1, 2, and 4, F refinement Represents the fine segmentation decoding features, Concat(F fusion1 ·F refinement ) indicates the refinement and F fusion1 To splice;
[0100] S6.3, the final fusion feature F fusion2 After the convolution and Sigmod activation of the segmentation head, it becomes a fine binary segmentation prediction map of [8, 1, 256, 256].
[0101] In order to effectively utilize the label supervision segmentation network training, in this step, the same cross entropy loss and Dice loss as the rough segmentation stage are combined. The specific calculation formula is:
[0102] P refinement =sigmod(conv 1×1 (F fusion2 ))
[0103] L refinement =L bce (P refinement ,Y)+L dice (P refinement ,Y)
[0104] Where L bce ,L dice ,P refinement ,Y represent cross entropy loss, Dice loss, fine segmentation prediction map, and segmentation label respectively.
[0105] In addition, the polyp segmentation network proposed in the present invention adopts the commonly used 8:1:1 division method to divide the data set into a training set, a validation set and a test set, and sets the batchsize in the network to 8, the epoch to 200, the learning rate to 0.0001, and adopts an early stopping strategy. Here, the evaluation indicators used in the present invention are: mDice, mIou, Precision, Recall and Accuracy, and the larger the mean, the better the performance.
[0106] The small target polyp segmentation method proposed in this paper is compared with other classic polyp segmentation networks U-Net, PraNet, and CaraNet. The test results on the test data set are as follows: Figure 5 As shown. Figure 5 It can be seen from the figure that the small target polyp segmentation method of the present invention performs best.
[0107] The present invention adopts three progressive decoders, which have the same structure but each has its own dedicated task head. The decoder structure includes convolution, upsampling blocks and residual blocks to extract and integrate multi-level information in the image. The semantic segmentation head converts the feature map into a probability map through convolution and Sigmod activation function to achieve preliminary segmentation of polyps. The super-resolution reconstruction head uses convolution, interpolation and Sigmod activation function to improve the resolution of the image, thereby revealing more detailed information. The present invention proposes an innovative super-resolution auxiliary processing strategy to address the problem that the structure of the diseased polyps in the existing polyp images is small and the detailed information is difficult to mine. Through this strategy, the ability of the super-resolution task to model detailed information is effectively transferred to the segmentation task, significantly improving the accuracy of the segmentation. At the same time, the present invention also adopts a progressive segmentation strategy, first establishing the basic semantic information of the small target polyps, and then gradually and finely mining the detailed information, and finally achieving the accurate segmentation of the small target polyps, which has important clinical significance and positive application prospects.
[0108] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A small-target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy, characterized by: The following steps are involved: S1. Input polyp images, including training data and test data, and unify the resolution of the training data of the polyp images, fix the resolution to 256*256, filter the test data of the polyp images, filter out test images with a ratio less than 5%, and fix their resolution to 256*256 to obtain small target polyp images; S2. Input the unified polyp image training data into the backbone network composed of ResNet50 for feature extraction, and transmit the [8, 3, 256, 256] latitude data into the backbone network composed of ResNet50 to obtain the final feature F of [8, 1024, 16, 16] backbone ; S3, the feature F extracted by the backbone network backbone Input into CNN and Transformer feature encoder for feature encoding to obtain global feature F global and local features F local , and the obtained global feature F golbal and local features F local Concatenate to get the final encoding feature F encoder ; S4, the final encoding feature F encoder Input into the coarse semantic segmentation network for coarse segmentation decoding, and pass through the segmentation head to obtain the coarse segmentation mask, including the coarse segmentation decoding feature F coarse and the rough segmentation prediction map P coarse ; S5, the final encoding feature F encoder Input into the super-resolution reconstruction network for super-resolution decoding to obtain the super-resolution decoding feature F SR , and the super-resolution decoding feature F SR and the coarse segmentation decoding feature F coarse After fusion, the super-resolution fusion decoding feature F is obtained fusion1 , and then get the high-resolution prediction image through super-resolution; S6. The final encoding feature F encoder Input into the fine semantic segmentation network for fine segmentation decoding to obtain the fine segmentation decoding feature F refinement , and the fine segmentation decoding feature F refinement Fusion decoding feature F with super-resolution fusion1 Fusion obtains the final fusion feature F fusion2 , and output a fine binary segmentation prediction map.
2. According to claim 1, a small target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy is characterized by: In step S1, the test data of polyp images are screened, and the specific expression for screening out the test images with a ratio less than 5% is as follows: Among them, R small Indicates the polyp ratio, p mask represents the target mask pixel, p image represents the input image pixel, N represents the sum of all elements, It means to sum all elements.
3. According to claim 1, a small target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy is characterized by: The final feature F is obtained in step S2 backbone The specific construction process includes: S2.
1. The training data of latitude [8, 3, 256, 256] is converted into a tensor of latitude [8, 64, 128, 128] after the first layer of convolution, batch normalization, and relu activation. S2.2, after the second layer of maximum pooling and other operations, it becomes a tensor of latitude [8, 256, 64, 64]; S2.3, after the third layer, it becomes a tensor of latitude [8, 512, 32, 32]; S2.4, after the fourth layer, the final feature F becomes [8, 1024, 16, 16] backbone .
4. According to claim 1, a small target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy is characterized by: The final encoding feature F is obtained in step S3 encoder The specific process is: the final feature F in step S2 backbone After 5 convolutions, batch normalization, and relu activation, the local feature F of [8, 256, 16, 16] is obtained. local ; The final feature F in step S2 backbone After passing through a Transformer with 4 attention heads and 4 layers, a global feature F of [8, 256, 16, 16] is generated. global , and then the local feature F locak and the global feature F global Concatenate to get the final encoding feature F encoder , the specific splicing expression is as follows: F encoder =Concat(F local ·F global ) Among them, Concat(F local ·F global ) represents the local feature F local and the global feature F global splicing, F encoder Represents the final encoded features.
5. According to claim 1, a small target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy is characterized by: In step S4, the final encoding feature F encoder Four layers of decoding are performed to obtain decoding features with dimensions of [8, 256, 32, 32], [8, 128, 64, 64], [8, 64, 128, 128], and [8, 32, 256, 256]. The structure of each decoding layer is the same, including an upsampling operation with an upsampling factor of 2, ResidualBlock, relu activation, and skip connection. Finally, the decoding features of [8, 32, 256, 256] are converted into a coarse binary segmentation prediction map of [8, 1, 256, 256] through convolution and Sigmod activation of the segmentation head, and the coarse segmentation decoding feature F is obtained. coarse and the rough segmentation prediction map P coarse , the specific calculation formula is as follows: F coarse =relu(residual(upsmaple(F encoder ))) ×4 P coarse =sigmod(conv 1×1 (F coarse )) Among them, sigmod represents the activation function, conv 1×1 represents 1*1 convolution, relu represents relu activation, residual represents ResidualBlock operation, upsmaple represents upsampling operation, F encoder represents the final encoding feature, and ×4 represents four-layer decoding.
6. According to claim 5, a small target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy is characterized by: The step S5 comprises the following steps: S5.
1. Final encoding feature F encoder The same four-layer decoding is performed to obtain decoding features of dimensions [8, 256, 32, 32], [8, 128, 64, 64], [8, 64, 128, 128], and [8, 32, 256, 256], respectively. The structure of each decoding layer is the same, including an upsampling operation with an upsampling factor of 2, ResidualBlock, relu activation, and skip connection, and finally the super-resolution decoding feature F of [8, 32, 256, 256] is obtained. SR ; S5.
2. Introducing the coarse segmentation decoding feature F before super-resolution reconstruction coarse , the super-resolution decoding feature F SR and the coarse segmentation decoding feature F coarse Fusion, the super-resolution decoding feature F of [8, 32, 256, 256] SR The coarse segmentation decoding feature F with [8, 32, 256, 256] coarse After splicing according to the number of channels, convolution and relu activation are performed, and then they are input into 3*3 dilated convolutions with dilation rates of 1, 2, and 4 for convolution operations. Then the results are spliced according to the number of channels and sent to the channel attention for attention operation. Finally, 1*1 convolution compression latitude and activation are performed to obtain the super-resolution fusion decoding feature F fusion1 , the specific expression is as follows: F fusion1 =relu(conv 1×1 (atten(conv dilation =1, 2, 4(return(conv 1×1 (Concat(F SR ·F coarse ))))))) Among them, F fusion1 Represents super-resolution fusion decoding features, conv 1×1 represents 1*1 convolution, relu represents relu activation, atten represents channel attention, Conv dilation=1,2,4 Indicates the 3*3 dilated convolution operation with dilation rates of 1, 2, and 4, Concat(F SR ·F coarse ) represents the super-resolution decoding feature F SR and the coarse segmentation decoding feature F coarse To splice; S5.3, the obtained super-resolution fusion decoding feature F fusion1 After super-resolution reconstruction, it is reconstructed into a high-resolution prediction image of [8, 3, 256, 256].
7. The small target colorectal polyp segmentation method integrating multi-task collaboration and progressive parsing strategy according to claim 6 is characterized by: The step S6 comprises the following steps: S6.
1. Final encoding feature F encoder The data is input into the fine semantic segmentation network for fine segmentation decoding. The decoding is four-layer decoding, and the decoding features of dimensions [8, 256, 32, 32], [8, 128, 64, 64], [8, 64, 128, 128], and [8, 32, 256, 256] are obtained respectively. The structure of each decoding layer is the same, including an upsampling operation with an upsampling factor of 2, ResidualBlock, relu activation, and skip connection. The specific calculation formula is as follows: F refinement =relu(residual(upsmaple(F encoder ))) ×4 Among them, conv 1×1 represents 1*1 convolution, relu represents relu activation, residual represents ResidualBlock operation, upsmaple represents upsampling operation, F encoder represents the final encoding feature, and ×4 represents four-layer decoding; S6.
2. Introducing super-resolution fusion decoding feature F before segmentation head reconstruction fusion1 , the fine segmentation decoding feature F of [8, 32, 256, 256] refinement The super-resolution fusion decoding feature F with [8, 32, 256, 256] fusion1 After splicing according to the number of channels, convolution and relu activation are performed, and then they are input into 3*3 dilated convolutions with dilation rates of 1, 2, and 4 for convolution operations. Then the results are spliced according to the number of channels and sent to the channel attention for attention operation. Finally, 1*1 convolution is performed to compress the latitude and activate to obtain the final fusion feature F fusion2 , the specific expression is as follows: F fusion2 =relu(conv 1×1 (atten(conv dilation=1,2,4 (return(conv 1×1 (Concat(F fusion1 ·F refinement ))))))) Among them, F fusion1 Represents super-resolution fusion decoding features, conv 1×1 represents 1*1 convolution, relu represents relu activation, atten represents channel attention, conv dilation=1,2,4 represents the 3*3 dilated convolution operation with dilation rates of 1, 2, and 4, F refinement Represents the fine segmentation decoding features, Concat(F fusion1 ·F refinement ) indicates the refinement and F fusion1 To splice; S6.3, the final fusion feature F fusion2 After the convolution and Sigmod activation of the segmentation head, it becomes a fine binary segmentation prediction map of [8, 1, 256, 256].
Citation Information
Patent Citations
CNN and Transform fusion-based colonoscope polyp image segmentation method
CN115018824A
Medical image segmentation method based on multi-stage aggregation
CN116385454A
