Semi-supervised polyp segmentation method based on dynamic multi-scale perception

Through the dynamic multi-scale perceptual encoder and attention mechanism, combined with CNN and Transformer decoder, it solves the problems of polyp identification misdetection and poor boundary segmentation effect in the existing technology, and achieves efficient polyp segmentation with a small amount of annotated data, improving Improve the accuracy and robustness of medical image segmentation.

CN118552575APending Publication Date: 2024-08-27SHAANXI UNIV OF SCI & TECH
View PDF 0 Cites 10 Cited by

Patent Information

Application Number
CN202410599025.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing semi-supervised medical image segmentation methods have problems with false detection, missed detection and poor boundary segmentation when identifying polyps of different sizes and shapes. Especially when annotated data is limited, it is difficult to effectively improve feature expression capabilities.

Method used

A semi-supervised polyp segmentation method based on dynamic multi-scale perception is adopted to extract global and local information through the dynamic perception encoder, and the multi-scale information fusion module and dynamic multi-scale perception attention mechanism are used, combined with CNN and Transformer decoder, to achieve polyp shape and precise extraction and segmentation of boundary information.

Benefits of technology

With a small amount of annotated data, it can effectively identify polyps of different sizes and accurately depict the boundaries of various shapes, which improves the efficient segmentation performance of medical images and has broad clinical application prospects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552575A
    Figure CN118552575A
Patent Text Reader

Abstract

The invention discloses a semi-supervised polyp segmentation method based on dynamic multi-scale perception. The method comprises the following steps: step 1, constructing a network model DMPNet and initializing hyper-parameters; 2, inputting a medical image to be segmented into the network model DMPNet, respectively extracting global information and local information of the medical image to be segmented by the global branch and the local branch, and respectively outputting a global information feature map and a local information feature map; 3, a multi-scale information fusion module MIF fuses the global information feature map and the local information feature map to obtain a fused feature map; 4, a dynamic multi-scale perception attention mechanism DMPA extracts polyp shape and boundary information of the fused feature map; and 5, the CNN decoder and the Transform decoder respectively decode the feature maps output by the dynamic multi-scale perception attention mechanism DMPA, and the feature maps output by the CNN decoder and the Transform decoder are fused by using a segmentation head to obtain a segmentation result. According to the invention, polyps of different sizes can be effectively identified and boundaries of polyps of various shapes can be accurately described.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image processing, and in particular is a semi-supervised polyp segmentation method based on dynamic multi-scale perception. Background Art

[0002] At present, colon cancer has become the second most deadly cancer in the world, accounting for about 9.4% of the global cancer deaths. Most colon cancer cases are caused by polyps. Therefore, timely detection and removal of intestinal polyps in early examinations are of great significance for the prevention of colon cancer. However, the detection of polyps usually requires a lot of time and energy from doctors, and the test results are easily affected by the doctor's subjective judgment. Therefore, the study of accurate polyp segmentation methods has very important clinical application value.

[0003] With the development of deep learning technology, scholars have proposed many polyp segmentation methods based on deep learning. However, due to the large differences in size and shape between different polyps in colonoscopy images, and the low contrast between polyps and surrounding intestinal mucosal tissues, the network causes false detection or even missed detection of small-sized polyps, and the segmentation effect at the polyp boundary is poor, and the polyp target cannot be accurately segmented. In addition, due to the need to protect patient privacy and the fact that data labeling usually requires a lot of time and energy from experienced doctors, it is difficult to obtain a large amount of labeled data for network training. Therefore, in scenarios with limited or unlabeled data, it is crucial to improve the feature expression ability of deep learning models.

[0004] At present, the existing semi-supervised medical image segmentation methods usually use limited labeled data and a large amount of unlabeled data for joint training to reduce the dependence on a large number of precisely labeled samples. Common semi-supervised medical image segmentation methods can be mainly divided into two categories, namely the use of multi-branch structure and the introduction of attention mechanism.

[0005] In the semi-supervised scenario, by designing a multi-branch structure, the network can capture image features from different perspectives, enhance the model's expressiveness, and deal with the problem of unbalanced sample quantity, effectively improving the accuracy of polyp segmentation. For example, Duo-SegNet uses two U-Nets with the same structure to design a dual-branch network. By setting learnable perspective parameters in the two branches, the network can learn from different perspectives on the two branches and continuously update the perspective parameters by minimizing the segmentation loss. MMS processes labeled data and unlabeled data separately in the two branches, processes the processed labeled data through a classifier, and constructs spatial positive and negative pairs for the unlabeled data through a projector, and minimizes the difference in data at the same spatial position, maximizing the difference in different Differences in spatial position; UCMT has a three-branch structure as a whole, one of which is the teacher sub-network, and the other two branches are student sub-networks. The three branches use the same encoding and decoding structure. The network can not only explore complementary feature information, but also generate pseudo-labels from multiple dimensions, and improve the confidence of pseudo-labels by aggregating predictions from different branches, solving the problems of insufficient differences between sub-networks and low confidence of pseudo-labels in collaborative training; ACLNet improves the network's ability to capture global positioning, shape context, and local texture by generating and aligning affinity maps in two branches respectively; however, the above multi-branch structure networks often use the same network structure in each branch, which makes it difficult for the network to extract sufficient global and local information at the same time.

[0006] The attention mechanism enables the network to focus on the lesion area, effectively improving the network's ability to capture detail information and shape information, and improving the network's segmentation accuracy. Scholars have proposed many medical image segmentation networks by introducing the attention mechanism. For example, CANet designs an attention mechanism in the discriminator to keep the predicted Level Set Map consistent on labeled data and unlabeled data, thereby standardizing the network's learning of unlabeled data; in addition, the discriminator is used to increase the weight of the effective feature map, so that the network can learn more useful shape prior knowledge. 2SC represents the pixel-level relationship between each pair of images based on the features generated by the encoder, and uses this relationship to create an attention map to highlight the areas of the two images with the same semantics but different positions, and imposes consistency constraints on the obtained attention map to filter out low-confidence areas and merge them with the original features to strengthen feature representation; PF-Net designs a multi-scale dense guided attention mechanism to process lesions of different positions and sizes, and improves the network's spatial perception ability through a multi-scale attention mechanism. The dense attention mechanism makes full use of multi-scale contextual information to make the network pay more attention to the lesion area; PolypMixNet proposes a polyp mixed perception mechanism that can effectively alleviate the problem of category imbalance and use unlabeled information to produce more accurate decision boundaries. The attention mechanism used by the above network makes the network pay more attention to the prominent key features in the image, but ignores local information that is crucial to segmentation accuracy, such as boundary information and shape information. Summary of the invention

[0007] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a semi-supervised polyp segmentation method based on dynamic multi-scale perception, which can effectively identify polyps of different sizes and accurately depict the boundaries of polyps of various shapes with only a small amount of labeled data, thereby achieving excellent segmentation results.

[0008] In order to achieve the above object, the present invention adopts the following technical solutions:

[0009] A semi-supervised polyp segmentation method based on dynamic multi-scale perception includes the following steps:

[0010] Step 1: Construct a semi-supervised polyp segmentation network model DMPNet based on dynamic multi-scale perception and initialize hyperparameters;

[0011] The network model DMPNet includes a dynamic perception encoder DPE, a CNN decoder, a Transformer decoder and a segmentation head, wherein: the dynamic perception encoder DPE includes a global branch for extracting global information and a local branch for extracting local information, a multi-scale information fusion module MIF for fusing the global information feature map and the local information feature map, and a dynamic multi-scale perception attention mechanism DMPA for extracting polyp shape and boundary information;

[0012] Step 2: Input the medical image to be segmented into the network model DMPNet, the global branch extracts the global information of the medical image to be segmented, and the local branch extracts the local information of the medical image to be segmented, thereby outputting a global information feature map and a local information feature map;

[0013] Step 3, the multi-scale information fusion module MIF fuses the global information feature map and the local information feature map to obtain a fused feature map;

[0014] Step 4: Dynamic multi-scale perception attention mechanism DMPA extracts the polyp shape and boundary information of the fused feature map;

[0015] Step 5: The CNN decoder and the Transformer decoder decode the feature maps output by the dynamic multi-scale perception attention mechanism DMPA respectively, and use the segmentation head to fuse the feature maps output by the CNN decoder and the Transformer decoder to obtain the segmentation result.

[0016] Furthermore, the process of initializing the hyperparameters in step 1 is: setting the training batch size to 8, the number of training iterations to 6000, and the initial learning rate to 0.001.

[0017] Furthermore, the process of extracting global information of the medical image to be segmented by the global branch in step 2 is as follows: the medical image to be segmented of size H×W×3 is divided into several patches of size H / 4×W / 4×C through the Patch Partition operation, the linear embedding layer maps the patch to the feature space and inputs it into the Global block, the Global block extracts features from the patch, and transmits the extracted features to the multi-scale information fusion module MIF and the next Global block, and the extracted features are downsampled by Patch Merging before being transmitted to the next Global block.

[0018] Furthermore, the process of feature extraction of the patch by the global block is as follows: first, the patch mapped to the feature space is normalized using the layer norm and sent to the WMSA, and then passed through the linear layer with the GELU activation function, and the information lost in the feature extraction is supplemented by the residual connection, which is expressed as:

[0019] f g =GELU(Conv 1×1 (WMSA(LN(Input))))+Input

[0020] In the formula, f g Represents the extracted global information feature map; GELU represents the GELU activation function; Conv 1×1 represents a convolution operation with a convolution kernel size of 1×1; LN represents the Layer Norm layer; Input represents the medical image to be segmented.

[0021] Furthermore, the process of extracting local information of the medical image to be segmented by the local branch in step 2 is: using a convolution operation with a convolution kernel size of 4×4 and a step size of 4 to downsample the medical image to be segmented with a size of H×W×3 to H / 4×W / 4×C, and the downsampled feature map is input into the Local block through the Layer Norm layer, and the features are extracted using the Local block. Before the extracted features are transmitted to the next Local block, they are downsampled using a convolution operation with a convolution kernel size of 2 and a step size of 2.

[0022] Furthermore, the process of extracting features by the Local block is as follows: first, a 3×3 depth-separable convolution is used to process the downsampled feature map, and then a Layer Norm layer and a GELU activation function are used to perform cross-channel information interaction in the linear layer, and then the residual connection is used to supplement the information lost in feature extraction, which can be expressed as:

[0023] f l =GELU(Conv 1×1 (LN(Conv 3×3 (Input))))+Input

[0024] In the formula, f l Represents the local information feature map.

[0025] Furthermore, in step 3, the process of the multi-scale information fusion module MIF fusing the global information feature map and the local information feature map is as follows:

[0026] Step 3.1: First, downsample the feature map transmitted by the previous layer of dynamic multi-scale perception attention mechanism DMPA, and then splice the downsampled feature map, the global information feature map and the local information feature map to complete the preliminary fusion. Then, the preliminary fusion result is reduced in dimension using a convolution operation with a convolution kernel of 1×1 and a step size of 1 to obtain the preliminary fused feature map f c1 , expressed as:

[0027] f c1 =Conv 1×1 (Concat(Conv 3×3 (f l ),AvgPool(f DMPA ),Conv 3×3 (f g )))

[0028] In the formula, f DMPA Represents the feature map transmitted by the dynamic multi-scale perception attention mechanism DMPA; Conv 1×1represents a 1×1 convolution operation; AvgPool represents average pooling; Concat represents a concatenation operation; f l represents the local information feature map; f g Table global information feature map;

[0029] Step 3.2: Perform maximum and average operations on the global information feature map, perform initial fusion on the feature map obtained by the maximum and average operations, and fuse the feature map after the initial fusion with the original global information feature map again through dot multiplication to obtain the processed global feature map f gb , expressed as:

[0030] f gb =Concat(Max(f g ),Mean(f g ))×f g

[0031] In the formula, Max represents the maximum value; Mean represents the average value;

[0032] Step 3.3: Perform average pooling and maximum pooling operations on the local information feature map, respectively, and perform initial fusion by adding the feature maps obtained by the average pooling operation and the maximum pooling operation. The initially fused feature map is fused again with the original local information feature map by dot multiplication to obtain the processed local feature map f lb , expressed as:

[0033] f lb =(MaxPool(f l )+AvgPool(f l ))×f l

[0034] In the formula, MaxPool represents maximum pooling;

[0035] Step 3.4: The initially fused feature map f c1 , processed global feature map f gb And the processed local feature map f lb The fusion result is spliced ​​and the final fusion is completed. The fusion result is reduced in dimension using a 1×1 convolution operation to obtain the fused feature map f c2 , expressed as:

[0036] f c2 =Conv 1×1 (Concat(f c1 ,f gb ,f lb )).

[0037] Furthermore, the process of extracting the polyp shape and boundary information of the fused feature map by the dynamic multi-scale perception attention mechanism DMPA in step 4 is as follows:

[0038] Step 4.1, use a convolution of size 3×3 to preliminarily process the fused feature map. The preliminarily processed feature map is sent to a deformable convolution with a convolution kernel size of 5×5 and a dilation rate of 1 and a deformable convolution with a convolution kernel size of 7×7 and a dilation rate of 3 for feature extraction through the GELU activation function;

[0039] Step 4.2: The feature maps output by the two deformable convolutions are fused by splicing, and the fusion result is reduced in dimension using a 3×3 convolution.

[0040] Step 4.3: Supplement the detailed information of the feature map through residual connection and output the feature map f.

[0041] Furthermore, the feature map f is expressed as:

[0042] f=Conv 3×3 (f E )+f c2

[0043] f E =Concat(DeConv 5,1 (f c2 ),DeConv 7,3 (f c2 ))

[0044] In the formula, DeConv 5,1 DeConv represents a deformable convolution with a kernel size of 5×5 and a dilation rate of 1. 7,3 Represents a deformable convolution with a kernel size of 7×7 and a dilation rate of 3.

[0045] Furthermore, the specific process of step 5 is as follows:

[0046] Step 5.1, use CNN decoder to decode the local information of the feature map output by the dynamic multi-scale perception attention mechanism DMPA; use Transformer decoding to decode the global information of the feature map output by the dynamic multi-scale perception attention mechanism DMPA;

[0047] Step 5.2: Use the segmentation head to fuse the feature maps output by the CNN decoder and the Transformer decoder to obtain the segmentation result.

[0048] Compared with the prior art, the present invention has the following technical effects:

[0049] The present invention first utilizes the dual-branch structure of the dynamic perception encoder DPE to respectively extract the local information and the global information of the medical image to be segmented, and then utilizes the multi-scale information fusion module MIF to effectively fuse the global information and the local information extracted by the dynamic perception encoder DPE, and introduces the information extracted by the previous layer dynamic multi-scale perception attention mechanism DMPA into the fusion process to supplement the detail information in the feature map. The dynamic multi-scale perception attention mechanism DMPA can effectively adapt to polyp targets of different sizes and shapes, and extract rich polyp shapes and boundary information. Then, the global features and local features are decoded respectively by the decoder of the dual-branch structure, and the segmentation head fuses the feature maps decoded by the two branches to obtain the final segmentation result. Under the condition that only a small amount of annotated data is used for training, a small amount of annotated data can be fully utilized to effectively identify polyps of different sizes and accurately depict the boundaries of polyps of various shapes, thereby improving the efficient segmentation of medical images and having broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a schematic diagram of the structure of the network DMPNet of the present invention;

[0051] Figure 2 is a schematic diagram of the structure of a dynamic perception encoder of the present invention;

[0052] Figure 3 is a schematic structural diagram of a multi-scale information fusion module of the present invention;

[0053] Figure 4 is a schematic diagram of the structure of the dynamic multi-scale perception attention mechanism of the present invention;

[0054] Figure 5 It is the visualization result on the polyp segmentation dataset. DETAILED DESCRIPTION

[0055] The specific contents of the present invention are further explained in detail below in conjunction with embodiments.

[0056] A semi-supervised polyp segmentation method based on dynamic multi-scale perception includes the following steps:

[0057] Step 1: Build Figure 1 The semi-supervised polyp segmentation network model DMPNet based on dynamic multi-scale perception is shown, and the hyperparameters are initialized. The specific process is:

[0058] The training batch size is set to 8, the number of training iterations is set to 6000, and the Adam optimizer is used to train the network model DMPNet and update the parameters. The learning rate decay strategy is adopted during the training process, and the initial learning rate is set to 0.001;

[0059] The network model DMPNet includes a dynamic perception encoder DPE, a CNN decoder, a Transformer decoder and a segmentation head, wherein: Figure 2 As shown, the dynamic perception encoder DPE includes a global branch for extracting global information and a local branch for extracting local information, a multi-scale information fusion module MIF for fusing the global information feature map and the local information feature map, and a dynamic multi-scale perception attention mechanism DMPA for extracting polyp shape and boundary information. The structure of the multi-scale information fusion module MIF is shown in Figure 3 As shown in Figure 2, the structure of the multi-scale perception attention mechanism DMPA is as follows: Figure 4 Show;

[0060] Step 2: Input the medical image to be segmented Input into the network model DMPNet, the global branch of the dynamic perceptual encoder DPE extracts the global information of the medical image to be segmented, and the local branch of the dynamic perceptual encoder DPE extracts the local information of the medical image to be segmented, thereby outputting the global information feature map and the local information feature map respectively, where:

[0061] The process of extracting global information of the medical image to be segmented by the global branch is as follows: the medical image to be segmented of size H×W×3 is divided into several patches of size H / 4×W / 4×C by the Patch Partition operation, the linear embedding layer maps the patch to the feature space and inputs it into the Global block, the Global block extracts features from the patch, and transmits the extracted features to the multi-scale information fusion module MIF and the next Global block, and before the extracted features are transmitted to the next Global block, they are down-sampled by Patch Merging, thereby expanding the network receptive field;

[0062] In the process of feature extraction of Patch by the Global block, the Patch mapped to the feature space is first normalized using Layer Norm and sent to WMSA, and then passed through a linear layer with a GELU activation function, and the information lost in feature extraction is supplemented through a residual connection, which is expressed as:

[0063] f g =GELU(Conv 1×1 (WMSA(LN(Input))))+Input

[0064] In the formula, f g Represents the extracted global information feature map; GELU represents the GELU activation function; Conv 1×1Represents a convolution operation with a convolution kernel size of 1×1; LN represents the Layer Norm layer; Input represents the medical image to be segmented;

[0065] The process of extracting local information of the medical image to be segmented by the local branch is as follows: downsampling the medical image to be segmented of size H×W×3 to H / 4×W / 4×C by using a convolution operation with a convolution kernel size of 4×4 and a stride of 4, inputting the downsampled feature map into the Local block through the Layer Norm layer, extracting features by using the Local block, and transmitting the extracted features to the multi-scale information fusion module MIF and the next Local block, and before the extracted features are transmitted to the next Local block, downsampling them by using a convolution operation with a convolution kernel size of 2 and a stride of 2, thereby expanding the network receptive field;

[0066] In the process of extracting features in the Local block, the downsampled feature map is first processed using a 3×3 depth-separable convolution, and then the Layer Norm layer and the GELU activation function are used to perform cross-channel information interaction in the linear layer. Then, the residual connection is used to supplement the information lost in the feature extraction, which is expressed as:

[0067] f l =GELU(Conv 1×1 (LN(Conv 3×3 (Input))))+Input

[0068] In the formula, f l Represents the local information feature map;

[0069] Step 3: Figure 3 As shown in Figure 1, the multi-scale information fusion module MIF fuses the global information feature map and the local information feature map to obtain the fused feature map. The process is as follows:

[0070] Step 3.1: First, downsample the feature map transmitted by the previous layer of dynamic multi-scale perception attention mechanism DMPA, and then splice the downsampled feature map, the global information feature map and the local information feature map to complete the preliminary fusion. Then, the preliminary fusion result is reduced in dimension using a convolution operation with a convolution kernel of 1×1 and a step size of 1 to obtain the preliminary fused feature map f c1 , expressed as:

[0071] f c1 =Conv 1×1 (Concat(Conv 3×3 (f l ),Avgpool(f DMPA ),Conv 3×3 (fg )))

[0072] In the formula, f DMPA Represents the feature map transmitted by the dynamic multi-scale perception attention mechanism DMPA; Conv 1×1 represents a 1×1 convolution operation; AvgPool represents average pooling; Concat represents a concatenation operation; f l represents the local information feature map; f g Table global information feature map;

[0073] Since the input of the multi-scale information fusion module MIF in the first stage only includes two feature maps transmitted by the global branch and the local branch, but the normal operation of the multi-scale information fusion module MIF requires three input feature maps, therefore, for the multi-scale information fusion module MIF in the first stage, the feature map transmitted by the previous layer of dynamic perception attention mechanism is set to an empty vector to ensure the normal operation of the multi-scale information fusion module MIF;

[0074] Step 3.2: Perform maximum and average operations on the global information feature map, perform initial fusion on the feature map obtained by the maximum and average operations, and fuse the feature map after the initial fusion with the original global information feature map again through dot multiplication to obtain the processed global feature map f gb , expressed as:

[0075] f gb =Concat(Max(f g ),Mean(f g ))×f g

[0076] In the formula, Max represents the maximum value; Mean represents the average value;

[0077] Step 3.3: Perform average pooling and maximum pooling operations on the local information feature map, respectively, and perform initial fusion by adding the feature maps obtained by the average pooling operation and the maximum pooling operation. The initially fused feature map is fused again with the original local information feature map by dot multiplication to obtain the processed local feature map f lb , expressed as:

[0078] f lb =(MaxPool(f l )+AvgPool(f l ))×f l

[0079] In the formula, MaxPool represents maximum pooling;

[0080] Step 3.4: The initially fused feature map fc1 , processed global feature map f gb And the processed local feature map f lb The fusion result is spliced ​​and the final fusion is completed. The fusion result is reduced in dimension using a 1×1 convolution operation to obtain the fused feature map f c2 , expressed as:

[0081] f c2 =Conv 1×1 (Concat(f c1 ,f gb ,f lb ))

[0082] Step 4: Figure 4 As shown in Figure 2, the dynamic multi-scale perceptual attention mechanism DMPA extracts the polyp shape and boundary information of the fused feature map. The process is as follows:

[0083] Step 4.1: Use a 3×3 convolution to fused feature map f c2 After preliminary processing, the feature map after preliminary processing is sent to the deformable convolution with a convolution kernel size of 5×5 and a dilation rate of 1 and the deformable convolution with a convolution kernel size of 7×7 and a dilation rate of 3 respectively through the GELU activation function for feature extraction;

[0084] Step 4.2: The feature maps output by the two deformable convolutions are fused by splicing, and the fusion result is reduced in dimension using a 3×3 convolution.

[0085] Step 4.3, supplement the detailed information of the feature map through residual connection and output the feature map f;

[0086] The dynamic output feature map f is expressed as:

[0087] f=Conv 3×3 (f E )+f c2

[0088] f E =Concat(DeConv 5,1 (f c2 ),DeConv 7,3 (f c2 ))

[0089] In the formula, DeConv 5,1 DeConv represents a deformable convolution with a kernel size of 5×5 and a dilation rate of 1. 7,3 Represents a deformable convolution with a kernel size of 7×7 and a dilation rate of 3;

[0090] Step 5: The CNN decoder and the Transformer decoder decode the feature maps output by the dynamic multi-scale perception attention mechanism DMPA respectively, and use the segmentation head to fuse the feature maps output by the CNN decoder and the Transformer decoder to obtain the segmentation result. The process is as follows:

[0091] Step 5.1, use CNN decoder to decode the local information of the feature map output by the dynamic multi-scale perception attention mechanism DMPA; use Transformer decoding to decode the global information of the feature map output by the dynamic multi-scale perception attention mechanism DMPA;

[0092] Step 5.2: Use the segmentation head to fuse the feature maps output by the CNN decoder and the Transformer decoder to obtain the segmentation result.

[0093] In order to verify the performance of the network model DMPNet proposed in this embodiment in the process of medical image segmentation, polyp images from five public data sets, including Kvasir, CVC-ClinicDB, CVC-300, CVC-ColonDB and ETIS, were used for network training and testing. The training data set contains 1,450 images, including 900 images from Kvasir-SEG and 550 images from CVC-ClinicDB.

[0094] In order to test the accuracy and superiority of the image segmentation method proposed in this embodiment, the following experiment is further illustrated. The verification environment used is: PU is Intel (R) Xeon (R) Gold 6326; memory is 50GB; GPU is a single Nvidia Geforce RTX 3090, video memory is 24GB, and it is carried out on the Ubuntu 16.04.3 operating system. The deep learning framework used in the network model of this embodiment is PyTorch 1.8.1.

[0095] The segmentation performance is evaluated by the following indicator parameters:

[0096]

[0097]

[0098] Where TP, FP and FN represent the number of true positive, true negative and false negative samples respectively; mIoU refers to the ratio of the predicted target to the true annotation, indicating the similarity or overlap of the two samples; mDice refers to the set similarity metric function, which is usually used to calculate the similarity of two samples. The value range of mDice and mIoU is [0,1]. The closer the value is to 1, the better the segmentation effect is.

[0099] The ablation experiment is used to verify the role of the dynamic perception encoder DPE, the multi-scale information fusion module MIF and the dynamic multi-scale perception attention mechanism DMPA in the DMPNet proposed in the embodiment. On the ETIS dataset, first, a separate ResNet and a dynamic perception encoder DPE are selected. Secondly, the multi-scale information fusion module MIF is added to the dynamic perception encoder DPE; thirdly, the dynamic multi-scale perception attention mechanism DMPA is added to ResNet and the dynamic perception encoder DPE respectively; then, the multi-scale information fusion module MIF and the dynamic multi-scale perception attention mechanism DMPA are added to the dynamic perception encoder DPE at the same time. The results of the ablation experiment are shown in Table 1.

[0100] Table 1 Ablation experiment results

[0101]

[0102] It can be seen from Table 1 that the dynamic perceptual encoder DPE, the dynamic multi-scale perceptual attention mechanism DMPA and the multi-scale information fusion module MIF all significantly improve the segmentation performance in the polyp segmentation task. At the same time, the dynamic perceptual encoder DPE with the multi-scale information fusion module MIF and the dynamic multi-scale perceptual attention mechanism DMPA has the best segmentation performance for medical images, with mDice and mloU reaching 0.6476 and 0.5605 respectively.

[0103] Tables 2, 3 and 4 are comparative experimental results of the DMPNet proposed in this embodiment and the most advanced semi-supervised segmentation networks UGPCL, PolypMix, Duo-SegNet, MT, UC-MT and MMS under different annotation ratios (5%, 12.5% ​​and 25%) on five polyp segmentation datasets, as follows:

[0104] Table 2 Comparative experiments with 5% annotation ratio on 5 polyp segmentation datasets

[0105]

[0106] As can be seen from Table 2, the segmentation performance of DMPNet on the five datasets is better than that of other networks. On the CVC-ColonDB dataset, DMPNet achieved the highest average Dice score of 0.6608 and the highest average IoU score of 0.5730. Compared with UCMT, which has the best segmentation effect among the comparison methods, DMPNet achieved an improvement of 2.2% and 2.1% in average Dice and average IoU, respectively.

[0107] Table 3 Comparative experiments with an annotation ratio of 12.5% ​​on 5 polyp segmentation datasets

[0108]

[0109] It can be seen from Table 3 that when the labeled data rate is set to 12.5%, DMPNet achieves the best segmentation results on the five datasets. On the CVC-ClinicDB dataset, compared with UGPCL, which has the best segmentation effect among the comparison methods, DMPNet achieves 2.6% and 3.2% improvements in average Dice and average IoU, respectively.

[0110] Table 4 Comparative experiments with an annotation ratio of 25% on 5 polyp segmentation datasets

[0111]

[0112] It can be seen from Table 4 that when the labeled data rate is set to 25%, DMPNet achieves the best segmentation results on the five datasets. On the ETIS dataset, DMPNet achieves the highest average Dice score of 0.6476 and the highest average IoU score of 0.5605. Compared with UCMT, which has the best segmentation effect among the comparison methods, DMPNet achieves 3.9% and 6.2% improvements in average Dice and average IoU, respectively.

[0113] In summary, from Tables 2 to 4, we can see that DMPNet has stronger accuracy and versatility than the comparison methods, and can accurately segment the boundaries of polyps. Especially for some challenging segmentation targets, DMPNet can achieve more accurate segmentation results.

[0114] In order to intuitively compare the performance of different networks, Figure 5 The visualization segmentation results of DMPNet and several networks at a label rate of 5% are shown, where the first row is the original image, the second row is the segmentation map with the true value labeled, and the rest are the segmentation result maps of the network model DMPNet of this embodiment and the existing models. It can be clearly seen that DMPNet can achieve accurate segmentation of polyps of different sizes and shapes, and the segmentation results are closest to the labels. The existing network MMS has incomplete segmentation of polyp areas, MT has the problem of misdetecting the background as polyps, PolypMixNet's segmentation results have artifacts, UCMT and UGPCL have poor segmentation effects on details such as boundaries. It can be seen that DMPNet always shows robust segmentation capabilities on polyps of different sizes and types, and its adaptability and accuracy are better than other models; in addition, DMPNet has superior perception of the fuzzy edges of polyps and can more accurately segment the polyp target boundaries.

Claims

1. A semi-supervised polyp segmentation method based on dynamic multi-scale perception, It is characterized in that The steps include: Step 1: Construct a semi-supervised polyp segmentation network model DMPNet based on dynamic multi-scale perception and initialize hyperparameters; The network model DMPNet includes a dynamic perception encoder DPE, a CNN decoder, a Transformer decoder and a segmentation head, wherein: the dynamic perception encoder DPE includes a global branch for extracting global information and a local branch for extracting local information, a multi-scale information fusion module MIF for fusing the global information feature map and the local information feature map, and a dynamic multi-scale perception attention mechanism DMPA for extracting polyp shape and boundary information; Step 2: Input the medical image to be segmented into the network model DMPNet, the global branch extracts the global information of the medical image to be segmented, and the local branch extracts the local information of the medical image to be segmented, thereby outputting a global information feature map and a local information feature map; Step 3, the multi-scale information fusion module MIF fuses the global information feature map and the local information feature map to obtain a fused feature map; Step 4: Dynamic multi-scale perception attention mechanism DMPA extracts the polyp shape and boundary information of the fused feature map; Step 5: The CNN decoder and the Transformer decoder decode the feature maps output by the dynamic multi-scale perception attention mechanism DMPA respectively, and use the segmentation head to fuse the feature maps output by the CNN decoder and the Transformer decoder to obtain the segmentation result.

2. According to claim 1, the semi-supervised polyp segmentation method based on dynamic multi-scale perception, It is characterized in that The process of initializing the hyperparameters in step 1 is: setting the training batch size to 8, the number of training iterations to 6000, and the initial learning rate to 0.

001.

3. According to claim 1, the semi-supervised polyp segmentation method based on dynamic multi-scale perception, It is characterized in that The process of extracting the global information of the medical image to be segmented by the global branch in step 2 is as follows: the medical image to be segmented of size H×W×3 is divided into several patches of size H / 4×W / 4×C through the Patch Partition operation, the linear embedding layer maps the patch to the feature space and inputs it into the Global block, the Global block extracts features from the patch, and transmits the extracted features to the multi-scale information fusion module MIF and the next Global block, and before the extracted features are transmitted to the next Global block, they are down-sampled by Patch Merging.

4. According to claim 3, the semi-supervised polyp segmentation method based on dynamic multi-scale perception, It is characterized in that The process of feature extraction of Patch by the Global block is as follows: first, the Patch mapped to the feature space is normalized using Layer Norm and sent to WMSA, and then passed through a linear layer with a GELU activation function, and the information lost in feature extraction is supplemented through a residual connection, which is expressed as: f g =GELU(Conv 1×1 (WMSA(LN(Input))))+Input In the formula, f g Represents the extracted global information feature map; GELU represents the GELU activation function; Conv 1×1 represents a convolution operation with a convolution kernel size of 1×1; LN represents the Layer Norm layer; Input represents the medical image to be segmented.

5. According to claim 4, the semi-supervised polyp segmentation method based on dynamic multi-scale perception, It is characterized in that The process of extracting local information of the medical image to be segmented by the local branch in step 2 is: using a convolution operation with a convolution kernel size of 4×4 and a step size of 4 to downsample the medical image to be segmented with a size of H×W×3 to H / 4×W / 4×C, the downsampled feature map is input into the Local block through the Layer Norm layer, the Local block is used to extract features, and the extracted features are transmitted to the multi-scale information fusion module MIF and the next Local block, and before the extracted features are transmitted to the next Localblock, they are downsampled using a convolution operation with a convolution kernel size of 2 and a step size of 2.

6. The semi-supervised polyp segmentation method based on dynamic multi-scale perception according to claim 5, It is characterized in that The process of extracting features in the Local block is as follows: first, a 3×3 depth-separable convolution is used to process the downsampled feature map, then a Layer Norm layer and a GELU activation function are used to perform cross-channel information interaction in the linear layer, and then a residual connection is used to supplement the information lost in feature extraction, which can be expressed as: f l =GELU(Conv 1×1 (LN(Conv 3×3 (Input))))+Input In the formula, f l Represents the local information feature map.

7. The semi-supervised polyp segmentation method based on dynamic multi-scale perception according to claim 6, It is characterized in that The process of the multi-scale information fusion module MIF in step 3 fusing the global information feature map and the local information feature map is as follows: Step 3.1: First, downsample the feature map transmitted by the previous layer of dynamic multi-scale perception attention mechanism DMPA, and then splice the downsampled feature map, the global information feature map and the local information feature map to complete the preliminary fusion. Then, the preliminary fusion result is reduced in dimension using a convolution operation with a convolution kernel of 1×1 and a step size of 1 to obtain the preliminary fused feature map f c1 , expressed as: f c1 =Conv 1×1 (Concat(Conv 3×3 (f l ),Avgpool(f DMPA ),Conv 3×3 (f g ))) In the formula, f DMPA Represents the feature map transmitted by the dynamic multi-scale perception attention mechanism DMPA; Conv 1×1 represents a 1×1 convolution operation; AvgPool represents average pooling; Concat represents a concatenation operation; f l represents the local information feature map; f g Table global information feature map; Step 3.2: Perform maximum and average operations on the global information feature map, perform initial fusion on the feature map obtained by the maximum and average operations, and fuse the feature map after the initial fusion with the original global information feature map again through dot multiplication to obtain the processed global feature map f gb , expressed as: f gb =Concat(Max(f g ),Mean(f g ))×f g In the formula, Max represents the maximum value; Mean represents the average value; Step 3.3: Perform average pooling and maximum pooling operations on the local information feature map, respectively, and perform initial fusion by adding the feature maps obtained by the average pooling operation and the maximum pooling operation. The initially fused feature map is fused again with the original local information feature map by dot multiplication to obtain the processed local feature map f lb , expressed as: f lb =(MaxPool(f l )+AvgPool(f l ))×f l In the formula, MaxPool represents maximum pooling; Step 3.4: The initially fused feature map f c1 , processed global feature map f gb And the processed local feature map f lb The fusion result is spliced ​​and the final fusion is completed. The fusion result is reduced in dimension using a 1×1 convolution operation to obtain the fused feature map f c2 , expressed as: f c2 =Conv 1×1 (Concat(f c1 ,f gb ,f lb ))。 8. The semi-supervised polyp segmentation method based on dynamic multi-scale perception according to claim 7, It is characterized in that The process of extracting the polyp shape and boundary information of the fused feature map by the dynamic multi-scale perception attention mechanism DMPA in step 4 is as follows: Step 4.1, use a convolution of size 3×3 to preliminarily process the fused feature map. The preliminarily processed feature map is sent to a deformable convolution with a convolution kernel size of 5×5 and a dilation rate of 1 and a deformable convolution with a convolution kernel size of 7×7 and a dilation rate of 3 for feature extraction through the GELU activation function; Step 4.2: The feature maps output by the two deformable convolutions are fused by splicing, and the fusion result is reduced in dimension using a 3×3 convolution. Step 4.3: Supplement the detailed information of the feature map through residual connection and output the feature map f.

9. The semi-supervised polyp segmentation method based on dynamic multi-scale perception according to claim 8, It is characterized in that The feature map f is expressed as: f=Conv 3×3 (f E )+f c2 f E =Concat(DeConv 5,1 (f c2 ),DeConv 7,3 (f c2 )) In the formula, DeConv 5,1 DeConv represents a deformable convolution with a kernel size of 5×5 and a dilation rate of 1. 7,3 Represents a deformable convolution with a kernel size of 7×7 and a dilation rate of 3.

10. The semi-supervised polyp segmentation method based on dynamic multi-scale perception according to claim 1, It is characterized in that The specific process of step 5 is as follows: Step 5.1, use CNN decoder to decode the local information of the feature map output by the dynamic multi-scale perception attention mechanism DMPA; use Transformer decoding to decode the global information of the feature map output by the dynamic multi-scale perception attention mechanism DMPA; Step 5.2: Use the segmentation head to fuse the feature maps output by the CNN decoder and the Transformer decoder to obtain the segmentation result.

Citation Information

Cited By

  • Neural network with dynamic multi-scale feature fusion and channel scoring capabilities

    CN118887516A

  • Ultrasonic image segmentation method and system based on multistage feature extraction

    CN119693383A

  • Ultrasonic image segmentation method and system based on multi-level feature extraction

    CN119693383B

  • Carotid plaque segmentation method and device in ultrasonic image, equipment and medium

    CN120047463A

  • Semi-supervised medical image segmentation method based on enhanced self-attention features

    CN120219422A