Semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning

By adopting mutual correction and pixel-level contrast learning methods in medical image segmentation, and using two sub-networks to calculate multiple losses and uncertainty estimates, the problems of confirmation bias and insufficient feature optimization are solved, and the accuracy of medical image segmentation is significantly improved. and model generalization ability.

CN118587438AActive Publication Date: 2024-09-03TONGJI UNIV

Patent Information

Application Number
CN202410687511.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-03
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

Existing semi-supervised methods for medical image segmentation fail to effectively solve the problems of confirmation bias and insufficient optimization of pixel-level contrast learning, especially in multi-classification situations and potential error handling in unlabeled data prediction.

Method used

A semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning is used to calculate the supervised loss, cross-pseudo-supervised loss, correction loss and comprehensive contrast loss through two pre-trained sub-networks, and is generated using uncertainty estimation and anchor point sampling. Prototype, optimize pseudo-label quality and improve feature representation.

Benefits of technology

It effectively alleviates the inherent confirmation bias problem of semi-supervision, improves pseudo-label quality and model generalization ability, and improves the overall performance and feature optimization effect of medical image segmentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587438A
    Figure CN118587438A
Patent Text Reader

Abstract

The invention relates to a semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning, and the method comprises the steps: constructing a cross pseudo-supervised segmentation frame composed of two differentiated sub-networks, and calculating supervision loss and cross pseudo-supervised loss for labeled data and unlabeled data for training; aiming at prediction inconsistent areas output by the two sub-networks, constructing a correction loss module to correct potential errors; and constructing a pixel-level contrast learning module to optimize the feature representation of the pixels in the low-uncertainty region. Compared with the prior art, the correction module effectively relieves the problem of confirmation deviation existing in semi-supervised medical image segmentation and improves the quality of pseudo labels, the contrast learning module models the relation between pixels and optimizes feature representation while controlling computing resource consumption, and finally the segmentation accuracy of the medical image is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical image processing, and in particular to a semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning. Background Art

[0002] Accurate segmentation of medical images is one of the key research areas in computer-aided diagnosis. In recent years, the emergence of deep learning models has greatly improved the performance of medical image segmentation. However, these high-performance deep learning models are highly dependent on a large number of high-quality annotated datasets. At the same time, accurate pixel-level annotation of medical images is time-consuming, labor-intensive, and requires a lot of expertise.

[0003] Existing semi-supervised methods for medical image segmentation can be roughly divided into methods based on pseudo-label self-training, collaborative training, and consistency regularization. In the implementation of these methods, how to deal with the inherent confirmation bias problem of semi-supervised learning cannot be ignored. Some methods use threshold methods or uncertainty estimation to exclude supervisory signals from unreliable pseudo-labels, and some methods introduce additional correction losses for inconsistent prediction areas of labeled data to correct potential errors. However, these methods do not consider multi-classification or ignore how to deal with potential errors in unlabeled data prediction.

[0004] In addition, in pixel-level contrastive learning, the presence of noisy pseudo-labels may cause the pseudo-label-based pixel-level contrastive learning to optimize feature representation in the wrong direction, which is the noise sampling problem. Although some recent methods use uncertainty estimation to exclude pixels in high uncertainty areas, which alleviates the problem of noise sampling to a certain extent, this may still result in some pixel features never being optimized, limiting the benefits of the contrastive learning module on the overall model segmentation performance.

[0005] In summary, there is currently a lack of a semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning to solve or partially solve the aforementioned problems. Summary of the invention

[0006] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning, so as to alleviate the confirmation bias problem inherent in semi-supervision and the insufficient optimization problem of pixel-level contrast learning based on pseudo-labels.

[0007] The purpose of the present invention can be achieved by the following technical solutions:

[0008] The present invention provides a semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning, which uses a pre-trained semi-supervised medical image segmentation model including two sub-networks to segment a given medical image. The training process of the semi-supervised medical image segmentation model includes the following steps:

[0009] Obtaining labeled data and unlabeled data as input of the semi-supervised medical image segmentation model, obtaining predictions and pseudo labels, and calculating supervision loss and cross pseudo-supervision loss;

[0010] For the predictions and pseudo-labels corresponding to the labeled data and the unlabeled data, respectively, calculating the prediction inconsistency region of the category or pseudo-label, and calculating the correction loss in the prediction inconsistency region;

[0011] Based on the predicted mean of the two sub-networks, the low-uncertainty pseudo-labels are screened through uncertainty estimation, and the comprehensive contrast loss between the anchor and the prototype is calculated through anchor sampling and prototype generation;

[0012] Based on the supervised loss, cross pseudo-supervised loss, correction loss and comprehensive contrast loss, the training of the semi-supervised medical image segmentation model is achieved.

[0013] As a preferred technical solution, for the labeled data, the process of calculating the correction loss in the prediction inconsistent region includes the following steps:

[0014] Select the mask of the foreground category corresponding to the two pseudo labels predicted by the model, and obtain the predicted inconsistent area of ​​the foreground category through XOR operation;

[0015] The mean square error between the predicted and true label corresponding masks is calculated in the predicted inconsistent area as the correction loss.

[0016] As a preferred technical solution, for the labeled data, the correction loss in the prediction inconsistent area is calculated. The calculation is done using the following formula:

[0017]

[0018] in, Represent the two predicted pseudo labels, represents the exclusive OR operation, represents the prediction of the i-th subnetwork with prediction category c, i=1,2 represents the first or second subnetwork, MSE represents the mean square error loss, Represents the true mask corresponding to the inconsistent region predicted by category c.

[0019] As a preferred technical solution, for the unlabeled data, the process of calculating the correction loss in the prediction inconsistent region includes the following steps:

[0020] Determine the inconsistent area of ​​the pseudo-label, and calculate the combined loss of the forward cross entropy and the reverse cross entropy between the current sub-network pseudo-label and the prediction of another sub-network in the predicted inconsistent area as the correction loss.

[0021] As a preferred technical solution, for the unlabeled data, the correction loss in the prediction inconsistent area is calculated. The calculation is done using the following formula:

[0022]

[0023] in, Label the prediction of the current subnetwork for the i-th pixel, represents the pseudo label obtained by another sub-network, w i represents the confidence of the predicted pseudo label of the i-th pixel by the current sub-network, and m represents the number of pixels in the inconsistent prediction area.

[0024] As a preferred technical solution, the process of screening low-uncertainty pseudo labels based on the predicted mean of the two sub-networks through uncertainty estimation includes the following steps:

[0025] Based on the mean of the predictions of the two sub-networks, the Argmax operation is used to obtain a new pseudo-label, and then the entropy of the mean prediction is calculated as the uncertainty estimate. A dynamically growing threshold is used to distinguish between high uncertainty areas and uncertainty areas, and pseudo-labels with high uncertainty are excluded.

[0026] As a preferred technical solution, the anchor point sampling and prototype generation process includes the following steps:

[0027] Based on the filtered low-uncertainty pseudo-labels, downsampling is performed to match the size of the sample feature map. Each pixel feature corresponds to a pseudo-label. For each category that appears in the pseudo-label map, a pixel feature is sampled from the corresponding feature map as an anchor point for each category.

[0028] Based on the filtered low-uncertainty pseudo-labels and sample feature maps, the prototype is calculated for each category appearing in the pseudo-label map through masked mean pooling operation, and the calculated prototype is stored in a first-in-first-out memory queue.

[0029] As a preferred technical solution, the calculation process of the comprehensive contrast loss between the anchor point and the prototype includes the following steps:

[0030] Calculate the first comparison loss between each anchor point and all prototypes in the memory queue;

[0031] For each pixel in the low uncertainty area, each pixel is sampled once and added to the anchor point, a confidence-weighted global prototype is calculated on the sample set of the current training batch, and a second contrast loss between each anchor point and the global prototype is calculated;

[0032] The comprehensive contrast loss is obtained based on the first contrast loss and the second contrast loss.

[0033] As a preferred technical solution, the first contrast loss The calculation is done using the following formula:

[0034]

[0035] Among them, A1 represents the number of sampled anchor points, P i and N i They represent the positive and negative sample sets corresponding to anchor point i, respectively. Represent positive samples and negative samples respectively, v i represents the sampling anchor point, τ = 0.1 represents the temperature coefficient used to control the penalty intensity for difficult negative samples, and cos(,) represents the cosine similarity operator.

[0036] As a preferred technical solution, the second contrast loss The calculation is done using the following formula:

[0037]

[0038] Among them, for unlabeled data, r c,i Indicates the confidence of the category c to which the i-th pixel belongs. For labeled data, r c,i =1,v i represents the projection feature of the i-th pixel, Ω c represents the set of pixels with all predicted pseudo labels c in the low uncertainty region, A2 represents the number of pixels in the low uncertainty region, represents the set of C prototypes calculated under the current training batch, v i represents the sampling anchor point, Indicates P ′ The corresponding pseudo label is Prototype.

[0039] Compared with the prior art, the present invention has at least one of the following beneficial effects:

[0040] (1) Alleviating the confirmation bias problem inherent in semi-supervised segmentation: The present invention calculates two correction losses for labeled data and unlabeled data respectively to correct the potential errors in the prediction inconsistent areas, effectively alleviating the confirmation bias problem existing in semi-supervised medical image segmentation, thereby improving the quality of pseudo-labels.

[0041] (2) Improving the problem of insufficient feature optimization in semi-supervised learning: The present invention obtains a relatively complete sample distribution and optimizes all low-uncertainty pixel features through two pixel-prototype comparative learning, effectively models the relationship between pixels, promotes the generation of features with category discriminability, and allows the decision boundary to pass through low-density areas, ultimately improving the overall performance of the segmentation model.

[0042] (3) Improving the generalization ability of the model: The present invention uses UNet decoder and SwinUNet decoder to build a cross-pseudo-supervision framework. The former emphasizes local modeling, while the latter captures long-range dependencies. It observes the same sample independently from different angles through different but mutually beneficial inductive biases, and naturally generates differentiated predictions. At the same time, the consistency constraints brought by cross-pseudo-supervision promote the robustness and generalization performance of the model.

[0043] (4) Optimizing the training process: The present invention uses a warm-up equation to control the weights of the supervision loss and the cross-pseudo-supervision loss. The weight of the cross-pseudo-supervision loss is continuously increased with the iteration of training, thereby preventing the risk of incorrect fitting caused by excessive reliance on erroneous pseudo-labels in the early stage of training, and promoting the model to smoothly adapt to different loss terms, thereby improving the generalization ability of the model and enabling it to learn more robust feature representations. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic diagram of a process of a semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning in an embodiment;

[0045] Figure 2 Schematic diagram of a semi-supervised medical image segmentation model in an embodiment. DETAILED DESCRIPTION

[0046] 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 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 should fall within the scope of protection of the present invention.

[0047] Example 1

[0048] In response to the problems existing in the aforementioned prior art, this embodiment provides a semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning. From the two aspects of alleviating the confirmation bias problem and improving pixel-level contrast learning, an improved correction module and contrast learning module are designed, and a cross-pseudo-supervised segmentation framework is built based on this, so as to effectively alleviate the confirmation bias problem inherent in semi-supervision and improve the current situation of insufficient optimization of pixel-level contrast learning.

[0049] See also Figure 1 , the method comprises the following steps:

[0050] S1. Construct a segmentation model consisting of a ResNet50 encoder initialized with ImageNet pre-trained weights, a randomly initialized UNet decoder based on convolution operations, and a SwinUnet decoder based on an attention mechanism. The two decoders correspond to two sub-networks respectively. Feed the training data containing labeled data and unlabeled data into the segmentation model to obtain predictions and corresponding pseudo-labels, and calculate the supervision loss and cross-pseudo-supervision loss for training.

[0051] Specifically, step S1 includes the following steps:

[0052] S11. Construct a ResNet50 encoder initialized by ImageNet pre-trained weights, a randomly initialized UNet decoder based on convolution operations, and a SwinUnet decoder based on attention mechanism. The two decoders correspond to two self-networks to form a semi-supervised medical image segmentation model.

[0053] S12. Normalize all data to [0,1], divide the dataset into training set, validation set and test set, perform data augmentation including random flipping and random rotation on the training data, randomly sample small batches of 2D medical images from the training set, set the batch size to 16, including 8 labeled data and 8 unlabeled data, feed them into the segmentation model, and get the predictions. and the corresponding pseudo labels

[0054] S13. For labeled data, the predictions of the two sub-networks and the true labels are calculated cross entropy and Dice loss As a supervision loss The definition is as follows:

[0055]

[0056] in, Represents the network's output prediction for labeled data, and Y represents the corresponding true label.

[0057] S14. For unlabeled data, the pseudo-label of the current sub-network and the prediction of another sub-network are used to calculate the cross entropy and Dice loss, and the loss is calculated again after exchanging positions. The sum is taken as the cross pseudo-supervision loss The calculation is as follows:

[0058]

[0059] in, represents the output prediction of the i-th subnetwork for unlabeled data, represents the output pseudo label of the i-th sub-network for unlabeled data, It is a combination of cross entropy and Dice loss.

[0060] S2. Construct a correction module for prediction inconsistent areas, and take areas with different pseudo-labels as prediction inconsistent areas. For labeled data and unlabeled data, use the supervision loss from the true label, the forward cross entropy from the pseudo-label, and the reverse cross entropy combined loss to correct potential errors.

[0061] Specifically, step S2 includes the following sub-steps:

[0062] S21. For labeled data, take out the masks corresponding to each foreground category in the two pseudo labels predicted by the model, perform XOR operation to obtain the prediction inconsistent area of ​​the category, calculate the mean square error between the network prediction and the mask corresponding to the true label in the prediction inconsistent area as the correction loss to correct potential errors, and finally sum the correction losses of each category. The formula is as follows:

[0063]

[0064] Among them, MSE represents the mean square error loss, Indicates the true mask corresponding to the inconsistent region predicted by category c, Represent the two predicted pseudo labels, represents the exclusive OR operation, represents the prediction of the i-th subnetwork with predicted category c.

[0065] S22. For unlabeled data, directly determine the inconsistent area of ​​the pseudo-label, and calculate the combined loss of the forward cross entropy and the reverse cross entropy between the current sub-network pseudo-label and the prediction of another sub-network in the inconsistent prediction area as the correction loss. The calculation formula is as follows:

[0066]

[0067] in, Label the prediction of the current subnetwork for the i-th pixel, represents the pseudo label obtained by another sub-network, w i represents the confidence of the predicted pseudo label of the i-th pixel by the current subnetwork, and m represents the number of pixels in the inconsistent prediction area. Truncate first The minimum value is 1e-4.

[0068] S3. Construct an uncertainty-based pixel-level contrastive learning module, calculate the entropy of the mean predicted by the two sub-networks as uncertainty, which is used to exclude pseudo-labels in high-uncertainty areas, perform anchor sampling and prototype generation only in low-uncertainty areas, and calculate the contrast loss for each anchor point and all prototypes to model the association between pixels and optimize feature representation.

[0069] Specifically, step S3 includes the following steps:

[0070] S31, calculate the mean of the two predictions, use the Argmax operation to get a new single pseudo-label different from that in S1, and then calculate the entropy of the mean prediction as the uncertainty estimate, use a dynamically growing threshold to distinguish between high uncertainty areas and uncertainty areas, and exclude pseudo-labels with high uncertainty. Pseudo-labels after uncertainty filtering The calculation is as follows:

[0071]

[0072] Among them, ∈=1e-16 prevents the occurrence of log(0), and the real label is directly used for labeled data.

[0073] The single pseudo-label in this step is obtained by taking the Argmax of the mean of the two predictions. The cross-pseudo-supervision loss in S1 or the pseudo-label in the correction module is obtained by taking the Argmax of a single prediction, and each sub-network has one.

[0074] S32. Sample an anchor point for each category appearing in each image based on the filtered pseudo-label and add it to the anchor point set. At the same time, use the masked mean pooling operation to calculate the prototype for each category appearing in each image and store it in a first-in-first-out memory queue. Calculate the contrast loss between each anchor point and all prototypes in the memory queue, and finally sum them up. The calculation formula is as follows:

[0075]

[0076]

[0077] Among them, A1 represents the number of all sampled anchor points, P i and N i Respectively represent the positive and negative sample sets corresponding to the anchor points, Represent positive samples and negative samples respectively, v i represents the sampling anchor point, τ = 0.1 represents the temperature coefficient used to control the penalty intensity for difficult negative samples, and cos(,) represents the cosine similarity operator.

[0078] In step S32, only one pixel feature is sampled as an anchor point for each category, and in step S33, all pixel features belonging to the category are sampled as anchor points for each category. Therefore, there are more anchor points in step S33 and they include the anchor points in step S32.

[0079] S33, sample all pixels in the low uncertainty area once as anchor points, and calculate the confidence-weighted global prototype on the sample set of the current training batch to obtain global context information. Calculate the contrast loss between each anchor point and the global prototype, and finally sum them up. The calculation formula is as follows:

[0080]

[0081]

[0082] Among them, r c,i Indicates the confidence of the category c to which the i-th pixel belongs. For labeled data, set r c,i =1,v i represents the projection feature of the i-th pixel, Ω c represents the set of all pixels with predicted pseudo-label c in the low uncertainty region, A2 represents the number of all pixels in the low uncertainty region, represents the C prototypes calculated in the current batch, v i represents the sampling anchor point, Indicates P ′ The corresponding pseudo label is Prototype.

[0083] Finally, all losses are summed up and calculated as follows:

[0084]

[0085] Where λ1 is the preheating equation

[0086] S4. Build a cross-pseudo-supervised segmentation framework based on all the above modules, perform training, and then predict any test data to obtain the predicted segmentation results.

[0087] To verify the effectiveness of this method, the gradient backpropagation method is used to update the overall segmentation model. When the training reaches the maximum number of times, the trained model is used to make predictions for any input image.

[0088] Table 1 shows the comparison of segmentation effects of the proposed method and the existing algorithms when the label ratio of the ACDC heart four-category dataset is 5% and 10% respectively (↑ indicates that the larger the value of the indicator, the better; ↓ indicates that the smaller the value of the indicator, the better).

[0089] Table 1 Comparison of segmentation effects between this method and existing algorithms

[0090]

[0091] From the comparison of various indicators in Table 1, it can be seen that when using only less labeled data, compared with the existing technology, this method corrects some errors in the pseudo-labels through the correction loss, forcing the model to focus on the challenge learning of fuzzy organ boundary areas, and improves the quality of pseudo-labels, so that the contrastive learning based on pseudo-labels can optimize more accurately classified pixel features, model pixel relationships and generate features with category discriminability, ultimately significantly improving the accuracy of medical image segmentation.

[0092] Compared with the existing methods, this method has the following beneficial effects:

[0093] (1) This method processes labeled data and unlabeled data respectively through two correction losses, corrects the potential errors in predicting inconsistent areas, effectively alleviates the confirmation bias problem in semi-supervised medical image segmentation, and thus improves the quality of pseudo-labels.

[0094] (2) This method obtains a more complete sample distribution and optimizes all low-uncertainty pixel features through two pixel-prototype contrast learning modules, effectively models the association between pixels, promotes the generation of features with category discriminability, makes the decision boundary pass through low-density areas, and ultimately improves the overall performance of the segmentation model.

[0095] Example 2

[0096] This embodiment provides an electronic device, including: one or more processors and a memory, wherein the memory stores one or more programs, and the one or more programs include instructions for executing the semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning as described in Example 1.

[0097] Example 3

[0098] This embodiment provides a computer-readable storage medium, characterized in that it includes one or more programs for execution by one or more processors of an electronic device, and the one or more programs include instructions for executing the semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning as described in Example 1.

[0099] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning, characterized in that: The given medical image is segmented using a pre-trained semi-supervised medical image segmentation model including two sub-networks. The training process of the semi-supervised medical image segmentation model includes the following steps: Obtaining labeled data and unlabeled data as input of the semi-supervised medical image segmentation model, obtaining predictions and pseudo labels, and calculating supervision loss and cross pseudo-supervision loss; For the predictions and pseudo-labels corresponding to the labeled data and the unlabeled data, respectively, calculating the prediction inconsistent region of the category or pseudo-label, and calculating the correction loss in the prediction inconsistent region; Based on the predicted mean of the two sub-networks, the low-uncertainty pseudo-labels are screened through uncertainty estimation, and the comprehensive contrast loss between the anchor and the prototype is calculated through anchor sampling and prototype generation; Based on the supervised loss, cross pseudo-supervised loss, correction loss and comprehensive contrast loss, the training of the semi-supervised medical image segmentation model is achieved.

2. A semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning according to claim 1, characterized in that: For the labeled data, the process of calculating the correction loss in the prediction inconsistent region includes the following steps: Select the mask of the foreground category corresponding to the two pseudo labels predicted by the model, and obtain the predicted inconsistent area of ​​the foreground category through XOR operation; The mean square error between the predicted and true label corresponding masks is calculated in the predicted inconsistent area as the correction loss.

3. The semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning according to claim 2, characterized in that: For the labeled data, calculate the correction loss in the prediction inconsistent area The calculation is done using the following formula: in, Represent the two predicted pseudo labels, represents the exclusive OR operation, represents the prediction of the i-th subnetwork with prediction category c, i=1,2 represents the first or second subnetwork, MSE represents the mean square error loss, Represents the true mask corresponding to the inconsistent region predicted by category c.

4. The semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning according to claim 1, characterized in that: For the unlabeled data, the process of calculating the correction loss in the prediction inconsistent region includes the following steps: Determine the inconsistent area of ​​the pseudo-label, and calculate the combined loss of the forward cross entropy and the reverse cross entropy between the current sub-network pseudo-label and the prediction of another sub-network in the predicted inconsistent area as the correction loss.

5. The semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning according to claim 4, characterized in that: For the unlabeled data, calculate the correction loss in the prediction inconsistent area The calculation is done using the following formula: in, Label the prediction of the current subnetwork for the i-th pixel, represents the pseudo label obtained by another sub-network, w i represents the confidence of the predicted pseudo label of the i-th pixel by the current sub-network, and m represents the number of pixels in the inconsistent prediction area.

6. The semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning according to claim 1, characterized in that: The process of screening low-uncertainty pseudo-labels based on the predicted mean of the two sub-networks through uncertainty estimation includes the following steps: Based on the mean of the predictions of the two sub-networks, the Argmax operation is used to obtain a new pseudo-label, and then the entropy of the mean prediction is calculated as the uncertainty estimate. A dynamically growing threshold is used to distinguish between high uncertainty areas and uncertainty areas, and pseudo-labels with high uncertainty are excluded.

7. The semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning according to claim 1, characterized in that: The anchor point sampling and prototype generation process includes the following steps: Based on the filtered low-uncertainty pseudo-labels, downsampling is performed to match the size of the sample feature map. Each pixel feature corresponds to a pseudo-label. For each category that appears in the pseudo-label map, a pixel feature is sampled from the corresponding feature map as an anchor point for each category. Based on the filtered low-uncertainty pseudo-labels and sample feature maps, the prototype is calculated for each category appearing in the pseudo-label map through masked mean pooling operation, and the calculated prototype is stored in a first-in-first-out memory queue.

8. The semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning according to claim 1, characterized in that: The calculation process of the comprehensive contrast loss between the anchor point and the prototype includes the following steps: Calculate the first comparison loss between each anchor point and all prototypes in the memory queue; For each pixel in the low uncertainty area, each pixel is sampled once and added to the anchor point, a confidence-weighted global prototype is calculated on the sample set of the current training batch, and a second contrast loss between each anchor point and the global prototype is calculated; The comprehensive contrast loss is obtained based on the first contrast loss and the second contrast loss.

9. The semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning according to claim 8, characterized in that: The first contrast loss The calculation is done using the following formula: Among them, A1 represents the number of sampled anchor points, P i and N i They represent the positive and negative sample sets corresponding to anchor point i, respectively. Represent positive samples and negative samples respectively, v i represents the sampling anchor point, τ represents the temperature coefficient, and cos(,) represents the cosine similarity operator.

10. The semi-supervised medical image segmentation method based on mutual correction and pixel-level contrast learning according to claim 8, characterized in that: The second contrast loss The calculation is done using the following formula: Among them, for unlabeled data, r c,i Indicates the confidence of the category c to which the i-th pixel belongs. For labeled data, r c,i =1,v i represents the projection feature of the i-th pixel, Ω c represents the set of pixels with all predicted pseudo labels c in the low uncertainty region, A2 represents the number of pixels in the low uncertainty region, represents the set of C prototypes calculated under the current training batch, v i represents the sampling anchor point, Indicates P ′ The corresponding pseudo label is Prototype.

Citation Information

Patent Citations

  • Cascade neural network structure-based brain glioma segmentation method

    CN114170244A

  • Semi-supervised medical image segmentation method and device based on dual-model interactive learning

    CN114332135A

  • Medical image segmentation method based on weak supervision

    CN117830332A

  • Mutual learning-based semi-supervised medical image segmentation method and system

    WO2023116635A1

Cited By

  • Intestinal ultrasound image semi-supervised segmentation method, system, equipment and medium

    CN118762039A

  • Medical image segmentation method and system based on reliable semi-supervised mutual learning

    CN118781139A

  • Medical image segmentation method and system based on basic model assisted semi-supervised learning

    CN119445120A

  • Contrast learning assisted semi-supervised image segmentation method and system for dual-region balance consistency learning

    CN119478414A

  • Semi-supervised medical image segmentation method and device based on anatomical connectivity

    CN119649037A