A semi-supervised medical image segmentation method based on mutual correction of suspicious pixels
By constructing a semi-supervised medical image segmentation network model SPMC and using the CDPS and SPLAT modules to correct suspicious pixels and perform pseudo-supervised learning, the problems of existing technologies such as ignoring the internal complexity differences of images and lack of processing of challenging areas are solved, and high-accuracy segmentation of complex and ambiguous areas is achieved.
Patent Information
- Application Number
- CN202411369526.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2044-09-29
AI Technical Summary
The technical problems existing in the existing technology in medical image segmentation are difficult to solve. The technical problems that the existing technology has in processing the blurred boundaries of complex medical images are particularly ignoring the complexity differences between different regions within the image and lacking a separate processing mechanism for challenging regions.
A semi-supervised medical image segmentation method based on mutual correction of suspicious pixels is adopted. By constructing a semi-supervised medical image segmentation network model SPMC, the CDPS module is used to screen and identify co-trapped pixels for correction, and the SPLAT module is used to perform pseudo-supervised learning on suspicious pixels to improve the model's prediction accuracy for complex and fuzzy areas.
The model's prediction accuracy for complex and blurred areas in the image is improved, and the overall performance of the model in image segmentation tasks is improved, especially the segmentation effect in difficult areas.
Smart Images

Figure CN119379710B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer vision, and in particular is a semi-supervised medical image segmentation method based on mutual correction of suspicious pixels. Background Art
[0002] Medical image segmentation aims to accurately identify and separate anatomical structures such as organs and tumors in original images, providing reliable auxiliary information for clinical diagnosis and treatment. It can help doctors diagnose diseases more accurately, plan treatment plans, and monitor treatment effects. With the continuous advancement of deep learning technology, various network structures based on convolutional neural networks have been proposed one after another, and have achieved remarkable results in the field of automated image segmentation. However, image segmentation methods based on fully supervised learning rely on a large amount of labeled data. Due to the particularity of medical images, public data sets are relatively scarce, and the labeling of medical images requires doctors with professional knowledge. The labeling process is time-consuming and labor-intensive, making it difficult to promote on a large scale.
[0003] In contrast, semi-supervised learning can perform model training based on a small amount of labeled data and a large amount of unlabeled data, achieving segmentation results comparable to or even better than fully supervised learning. The semi-supervised learning method not only significantly reduces the dependence on large amounts of labeled data and alleviates the labeling burden on doctors, but can also efficiently solve complex clinical segmentation tasks and promote the further development of medical image analysis technology. The application of semi-supervised learning in medical image segmentation has laid a solid technical foundation for precision medicine and intelligent diagnosis, and provided new research directions and solutions.
[0004] Common semi-supervised learning methods can be divided into five categories: generative adversarial methods, contrastive learning, consistency regularization, pseudo-labeling methods, and hybrid methods. The consistency regularization and pseudo-labeling methods are the most widely used. Consistency regularization is based on the smoothness assumption. The core idea is that the model should produce similar results when predicting different perspectives of the same image. According to the way of introducing perturbations, consistency regularization can be divided into data perturbations, feature perturbations, and model perturbations. Data perturbations increase diversity by transforming the input image. For example, Yun et al. proposed to enhance the diversity of training samples by mixing different images, but this data augmentation method is only effective for labeled or unlabeled data. Internal operations ignore the problem of mismatch in empirical distributions between the two; feature perturbation introduces transformations on the feature maps of the segmentation network. For example, Ouali et al. add noise or perform random occlusion in the feature space to enable the main decoder and auxiliary decoder to generate consistent predictions under different perturbations. However, this method relies on multiple auxiliary decoders, which increases the complexity of the model; model perturbation is achieved by transforming the network structure or parameters. For example, Chen et al. train two networks with the same structure but different initialization parameters to force them to generate consistent predictions for the same image. However, this method does not fully consider the potential impact of noise on model performance.
[0005] The pseudo-labeling method is based on the clustering hypothesis. Its core idea is to first train the model with labeled data, then use the trained model to generate pseudo-labels for unlabeled data, expand the dataset and retrain the model. Since the quality of pseudo-labels is crucial to the training of semi-supervised learning, Lee et al. proposed to only select predictions with higher confidence as pseudo-labels for unlabeled data to expand the dataset. In order to further simplify the model and improve the generalization ability, Yang et al. selectively used reliable images with higher overall prediction stability for retraining. In addition, there are some methods that combine pseudo-labels with consistency regularization. For example, Sohn et al. encouraged the model's prediction results on strongly enhanced data to be consistent with the high-confidence pseudo-labels generated by weakly enhanced data. In semi-supervised learning, model uncertainty analysis helps to make full use of the information in the pseudo-labels. A commonly used uncertainty estimation method is Monte Carlo Dropout. This method estimates uncertainty by applying Dropout multiple times in the inference stage and using the variance of the generated prediction results. For example, Yu et al. estimated uncertainty through Monte Carlo Dropout and only used pixels with lower uncertainty for model training to improve performance. Although these methods can improve the quality of pseudo-labels by using pixels with higher confidence or lower uncertainty, pixels with lower confidence or higher uncertainty still contain a lot of valuable information, and direct filtering may lead to waste of information.
[0006] Due to the complex anatomical structure of medical images and the relatively blurred boundaries of tissues and organs, they are easily affected by artifacts during the imaging process. Therefore, there are significant differences in the difficulty of prediction in different areas of the image. If the areas where prediction is more difficult are not processed separately, the prediction accuracy of the difficult areas will be seriously affected. Therefore, mainstream semi-supervised learning methods face two major challenges when processing complex medical images: first, they usually ignore the complexity differences between different regions within the image; second, there is a lack of a mechanism to separately process challenging areas in the image. Summary of the Invention
[0007] In view of the shortcomings of the existing technology, the purpose of the present invention is to provide a semi-supervised medical image segmentation method based on mutual correction of suspicious pixels, which improves the prediction accuracy of complex and fuzzy difficult areas in the image.
[0008] In order to achieve the above object, the present invention adopts the following technical solutions:
[0009] A semi-supervised medical image segmentation method based on mutual correction of suspicious pixels comprises the following steps:
[0010] Step 1: Crop medical images from medical image datasets from different sources and divide them into training sets, test sets, and validation sets;
[0011] Step 2: Construct a semi-supervised medical image segmentation network model SPMC;
[0012] The network model SPMC includes network A, network B, CDPS module and SPLAT module. Network A and network B are both Vnet or Unet networks. Network A and network B use the same encoder E, and network A and network B use decoders D with different upsampling methods. a and D b ;
[0013] Step 3: Train the network model SPMC
[0014] Step 3.1, initialize the parameters of the network model SPMC;
[0015] Step 3.2: Input the training set into network A and network B respectively, and output the corresponding feature maps through encoder E. The feature map output by encoder E of network A is directly input into decoder D. a , output the prediction results of the labeled data And the prediction results of unlabeled data Add random noise perturbation to the feature map F output by the encoder E of network B to obtain a feature map containing perturbation The feature map containing the perturbation Input decoder D b, output the prediction results of the labeled data And the prediction results of unlabeled data
[0016] Step 3.3: Screening using the CDPS module and Identify the common pixels that are difficult for both network A and network B to accurately predict, and correct the common pixels with reference to the existing label Y; use the SPLAT module to filter and Use the trusted pixels generated by network A to pseudo-supervise the suspicious pixels in network B, thereby improving the utilization efficiency of unlabeled data and the generalization ability of the model;
[0017] Step 3.4. Calculate the total loss
[0018] Step 3.5: Update the parameters of the network model;
[0019] Step 4: Use the validation set to evaluate the performance of the network model SPMC and optimize the parameters;
[0020] Step 5: Input the medical image to be segmented into the trained network model SPMC and output the segmentation result.
[0021] Furthermore, the medical image datasets from different sources in step 1 include a left atrium dataset LA, a brain tumor segmentation dataset BraTS, and an automatic cardiac challenge dataset ACDC.
[0022] Furthermore, in step 2, when the medical image dataset is LA and BraTS, network A and network B are both Vnet networks; when the medical image dataset is ACDC, network A and network B are both Unet networks.
[0023] Furthermore, the parameters of the network model SPMC in step 3.1 are initialized by selecting the SGD optimizer to train the network model SPMC, setting the weight decay factor to 10 -4 , the momentum is set to 0.9, and the initial learning rate is set to 10 -2 , the number of iterations is set to 30k;
[0024] When the medical image dataset is LA, the batch size is set to 8; when the medical image dataset is BraTS, the batch size is set to 4; when the medical image dataset is ACDC, the batch size is set to 16.
[0025] Furthermore, in step 3.3, the CDPS module is used to screen and Identify the common pixels that are difficult for both network A and network B to accurately predict, and refer to the existing label Y to correct the common pixels. The specific process is as follows:
[0026] Step 3.3.1.1. Calculation and Confidence distribution, use threshold τ to filter out reliable pixels with high confidence, retain suspicious pixels with low confidence, and generate corresponding masks and Respectively expressed as:
[0027]
[0028] Where, is the indicator function;
[0029] Step 3.3.1.2, take and The intersection of network A and network B is obtained to obtain the mask containing the interaction information of network A and network B. Expressed as:
[0030]
[0031] Step 3.3.1.3, use Screening and Co-trapped pixels in and Expressed as:
[0032]
[0033] In the formula, ⊙ represents the product operation of the corresponding position elements one by one;
[0034] Step 3.3.1.4: To obtain the correct supervision signal, use Screen out the pixels with the label Y and The corresponding label Y cdp , expressed as:
[0035]
[0036] Step 3.3.1.5. Use mean square error loss Common pixels and Make corrections so that Network A and Network B focus on labeled data and The unpredictable areas in the , and provide correct guidance, are expressed as:
[0037]
[0038] Where MSE() is the mean square error loss function.
[0039] Furthermore, in step 3.3, the SPLAT module was used to screen and The process of using the trusted pixels in network A to pseudo-supervise the suspicious pixels in network B is:
[0040] Step 3.3.2.1, use the probability sharpening function to and Converted into soft pseudo labels SPL a and SPL b ,make and The probability distribution difference is more obvious, and the probability sharpening function is expressed as:
[0041]
[0042] Where T is the hyperparameter that controls the output distribution of the model, and P represents or
[0043] Step 3.3.2.2: Use threshold τ to filter out and Trusted pixels and soft pseudo labels SPL a and SPL b The suspicious pixels in , get different masks, take the intersection of different masks, and get and Expressed as:
[0044]
[0045] Step 3.3.2.3. Use Corrected Pseudo-Supervision Loss For unlabeled data and The suspicious pixels are guided by:
[0046]
[0047] Where MSE() is the mean square error loss function, and ⊙ represents the product operation of the corresponding position elements one by one.
[0048] Furthermore, the value of T in step 3.3.2.1 is 0.1.
[0049] Furthermore, when the medical image dataset is LA and ACDC, the value of τ is 0.7; when the medical image dataset is BraTS, the value of τ is 0.65.
[0050] Furthermore, the total loss in step 3.4 is Expressed as:
[0051]
[0052] Where, and Respectively expressed as:
[0053]
[0054] Where, is the cross entropy loss, For the loss of Days, is the mean square error loss, and They are and The corresponding corrected pseudo-supervision loss, represents the supervision loss, represents the unsupervised loss, β is a hyperparameter, λ is a Gaussian warm-up function that varies with time, and PL b and PL a are the generated pseudo labels, which are expressed as:
[0055]
[0056] The λ is expressed as:
[0057]
[0058] Where t represents the current number of iterations, t max Indicates the maximum number of iterations.
[0059] Furthermore, the value of β is 0.5.
[0060] Compared with the prior art, the present invention has the following technical effects:
[0061] The present invention introduces a regional complexity assessment and screening mechanism to enable the network to focus on challenging image regions, thereby improving the overall performance of the model in image segmentation tasks. Specifically, on the one hand, by introducing the CDPS strategy, it aims to solve the problem of inaccurate predictions caused by insufficient model learning of challenging regions. Unlike mainstream methods that treat all pixels in the image equally, CDPS extracts suspicious pixels with high uncertainty in the prediction results of the two networks separately. By screening out suspicious pixels that exist in both prediction results, namely co-encountered pixels, the network is guided to focus on these co-encountered pixels and correct them, thereby improving the accuracy of the model's predictions for complex and fuzzy regions. On the other hand, the SPLAT strategy aims to address the potential impact of noise in pseudo-labels. Unlike mainstream methods that only use credible pixels with low uncertainty as pseudo-labels for pseudo-supervised learning, SPLAT also mines information on suspicious pixels with high uncertainty. In order to make full use of these suspicious pixels, SPLAT uses credible pixels in the predictions of network A to perform selective pseudo-supervised learning on suspicious pixels in the predictions of network B. At the same time, it introduces the idea of soft pseudo-labels to enhance the stability of credible pixels and provide auxiliary teaching signals for the network, effectively improving the model's learning efficiency for unlabeled data, further improving the quality of pseudo-labels, and indirectly improving the prediction accuracy of complex and blurred difficult areas in the image. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 : Flow chart of the present invention;
[0063] Figure 2 : Flow chart of the CDPS module of the present invention;
[0064] Figure 3 : Flow chart of the SPLAT module of the present invention;
[0065] Figure 4 :Visual comparison of segmentation results of different methods on the left atrium dataset;
[0066] Figure 5 : Visual comparison of segmentation results of different methods on brain tumor segmentation dataset. DETAILED DESCRIPTION
[0067] The specific contents of the present invention are further explained in detail below with reference to the embodiments.
[0068] like Figure 1 As shown in FIG, a semi-supervised medical image segmentation method based on mutual correction of suspicious pixels includes the following steps:
[0069] Step 1: Randomly crop medical images from medical image datasets from different sources and divide them into training sets, test sets, and validation sets;
[0070] The medical image datasets from different sources include the left atrium dataset LA, the brain tumor segmentation dataset BraTS, and the automatic cardiac challenge dataset ACDC, wherein: the left atrium dataset LA consists of 100 three-dimensional gadolinium-enhanced magnetic resonance imaging scan images and their labels, with an isotropic resolution of 0.65mm×0.65mm×0.65mm, 80 samples for training, and 20 samples for validation. During the training process, the image data is randomly cropped to 112×112×80 as the input of the network; the brain tumor segmentation dataset BraTS consists of preoperative magnetic resonance imaging scan images and their labels of 335 patients with gliomas, including 259 high-grade gliomas HGG and 76 low-grade gliomas LGG. The magnetic resonance imaging scan of each patient includes Four modes: T1, T1Gd, T2 and T2-FLAIR, and the labels are checked pixel by pixel by experts, of which 250 samples are used for training, 25 samples are used for validation, and 60 samples are used for testing. During the training process, the data is randomly cropped to 96×96×96 as the input of the network, and a sliding window with a step size of 64×64×64 is used in the inference stage; the automatic heart challenge dataset ACDC consists of cardiac dynamic magnetic resonance imaging scans of 100 patients and their labels. These labels include background, right ventricle, left ventricle and myocardium. 70 samples are used for training, 10 samples are used for validation, and 20 samples are used for testing. During the training process, the 3D scans of the dataset are converted into 2D slices, and the size of all slices is adjusted to 256×256 as the network input;
[0071] Step 2: Construct a semi-supervised medical image segmentation network model SPMC;
[0072] like Figure 1 As shown, the network model SPMC includes network A, network B, Figure 3 The CDPS modules shown and Figure 4 The SPLAT module shown in the figure, when the medical image dataset is LA and BraTS, network A and network B are both Vnet, when the medical image dataset is ACDC, network A and network B are both Unet networks; network A and network B use the same encoder E, network A and network B use decoders D with different upsampling methods a and D b ;
[0073] Step 3: Train the network model SPMC
[0074] Step 3.1, initialize the parameters of the network model SPMC;
[0075] Use SGD optimizer to train the network model SPMC and set the weight decay factor to 10 -4 , the momentum is set to 0.9, and the initial learning rate is set to 10 -2 , the number of iterations is set to 30k;
[0076] When the medical image dataset is LA, the batch size is set to 8, and each batch includes 4 labeled data and 4 unlabeled data; when the medical image dataset is BraTS, the batch size is set to 4, and each batch includes 2 labeled data and 2 unlabeled data; when the medical image dataset is ACDC, the batch size is set to 16, and each batch includes 8 labeled data and 8 unlabeled data;
[0077] Step 3.2: Input the training set into network A and network B respectively, and output the corresponding feature maps through encoder E. The feature map output by encoder E of network A is directly input into decoder D. a , output the prediction results of the labeled data And the prediction results of unlabeled data Add random noise perturbation to the feature map F output by the encoder E of network B to obtain a feature map containing perturbation The feature map containing the perturbation Input decoder D b , output the prediction results of the labeled data And the prediction results of unlabeled data
[0078] Step 3.3: Since the distribution of suspicious pixels in the prediction results of two different networks is usually different, the prediction results after feature perturbation usually contain more suspicious pixels. When both networks have difficulty predicting pixels at the same position, it is necessary to perform additional learning on them. The common pixels are areas that are difficult for both networks to self-correct, so more accurate supervision signals are needed to correct them, such as Figure 2 As shown, the CDPS module is used to screen and Identify the common pixels that are difficult for both network A and network B to accurately predict, and correct them with reference to the existing label Y. The specific process is as follows:
[0079] Step 3.3.1.1. Calculation and Confidence distribution, use threshold τ to filter out reliable pixels with high confidence, retain suspicious pixels with low confidence, and generate corresponding masks and Respectively expressed as:
[0080]
[0081] Where, is the indicator function. When the medical image dataset is LA and ACDC, the value of τ is 0.7; when the medical image dataset is BraTS, the value of τ is 0.65;
[0082] Step 3.3.1.2, take and The intersection of network A and network B is obtained to obtain the mask containing the interaction information of network A and network B. Expressed as:
[0083]
[0084] Step 3.3.1.3, use Screening and Co-trapped pixels in and Expressed as:
[0085]
[0086] In the formula, ⊙ represents the product operation of the corresponding position elements one by one;
[0087] Step 3.3.1.4: To obtain the correct supervision signal, use Screen out the pixels with the label Y and The corresponding label Y cdp , expressed as:
[0088]
[0089] Step 3.3.1.5. Use mean square error loss Common pixels and Make corrections so that Network A and Network B focus on labeled data and The unpredictable areas in the , and provide correct guidance, are expressed as:
[0090]
[0091]
[0092] Where, MSE() is the mean square error loss function;
[0093] like Figure 3 As shown, the SPLAT module was used to screen and Use the trusted pixels in network A to pseudo-supervise the suspicious pixels in network B and fully exploit their predictions and The difference between the two networks is used to encourage suspicious pixels in the prediction results of each network to learn only from the credible pixels at the corresponding position of the other network, and the idea of soft pseudo-label is introduced to provide more reliable supervision signals for suspicious pixels in the network prediction results. In this way, high-quality interactive learning is achieved between the two networks, thereby improving the generation quality of pseudo-labels and reducing the noise interference caused by pseudo-labels, thereby improving the utilization efficiency of unlabeled data and the generalization ability of the model. The specific process is as follows:
[0094] Step 3.3.2.1, use the probability sharpening function to and Converted into soft pseudo labels SPL a and SPL b ,make and The probability distribution difference is more obvious, making the pixels with high confidence become more "confident". The probability sharpening function is expressed as:
[0095]
[0096] Where T is a hyperparameter that controls the output distribution of the model, and its value is 0.1. P represents or
[0097] Step 3.3.2.2: Use thresholds to filter out or Trusted pixels and soft pseudo labels SPL a and SPL b The suspicious pixels in , get different masks, take the intersection of different masks, and get and Expressed as:
[0098]
[0099] Step 3.3.2.3. Use Corrected Pseudo-Supervision Loss For unlabeled data and The suspicious pixels in the network are used as guidance to correct the deviation of the two networks themselves, which is expressed as:
[0100]
[0101] Where MSE() is the mean square error loss function, ⊙ represents the product operation of the corresponding position elements one by one;
[0102] Step 3.4. Calculate the total loss Expressed as:
[0103]
[0104] Where, and Respectively expressed as:
[0105]
[0106] Where, is the cross entropy loss, For the loss of Days, is the mean square error loss, and They are and The corresponding corrected pseudo-supervision loss, represents the supervision loss, represents the unsupervised loss, β is a hyperparameter with a value of 0.5, which is used to balance the mean square error loss / corrected pseudo-supervised loss and other losses, λ is a Gaussian warm-up function that changes over time and is used to balance the supervised loss and unsupervised loss, PL b and PL a are the generated pseudo labels, which are expressed as:
[0107]
[0108] The λ is expressed as:
[0109]
[0110] Where t represents the current number of iterations, t max Indicates the maximum number of iterations;
[0111] Step 3.5: Update the parameters of the network model;
[0112] Step 4: Use the validation set to evaluate the performance of the network model SPMC and optimize the parameters;
[0113] Step 5: Input the medical image to be segmented into the trained network model SPMC and output the segmentation result.
[0114] This embodiment is implemented using the Pytorch 1.7 framework and NVIDIA (GeForce RTX 3090 GPU. Four indicators, Dice, Jaccard, 95HD, and ASD, are used to evaluate the performance of the network model SPMC. These four indicators are divided into two categories: region-sensitive indicators and edge-sensitive indicators. Region-sensitive indicators include Dice similarity coefficient (Dice) and Jaccard similarity coefficient (Jaccard), which are used to measure the degree of overlap between two sample areas. Therefore, the higher the value, the better the segmentation effect. Edge-sensitive indicators include 95% Hausdorff distance (95HD) and average surface distance (ASD). 95HD represents the maximum distance between the closest points of two samples, and ASD represents the average distance between the surface points of two samples. Therefore, the lower the values of 95HD and ASD, the better the segmentation effect.
[0115] On the LA dataset, the performance of the image segmentation method proposed in this embodiment is compared with the existing methods MT, DTC, CPS, MC-Net, URPC, SS-Net, MCF, AC-MT, and UG-MCL. For a fair comparison, network A is used for inference. The results are shown in Table 1. At the same time, the indicators obtained by using V-Net trained with 10%, 20%, and 100% of the labeled data are used as the baseline and upper limit of the reference performance. It can be observed from Table 1 that compared with the baseline model, the four evaluation indicators of the network model SPMC of this embodiment have been significantly improved. Specifically, when using 10% labeled data and 90% unlabeled data for training, Dice increased from 76.51% to 90.33%; when using 20% labeled data and 80% unlabeled data for training, Dice increased from 84.78% to 91.07%, close to the upper limit of 91.55% for fully supervised learning (i.e., using 100% labeled data to train V-Net); in addition, compared with the most advanced methods, the network model SPMC of this embodiment still maintains the best performance in the two training settings, especially when using 10% labeled data for training, the Dice is improved by 2.69% compared with the suboptimal method (AC-MT), and has higher segmentation accuracy.
[0116] from Figure 4 It can be seen that the network model SPMC of this embodiment can more finely segment the branches or edge areas of the left atrium that are difficult to segment, as shown in the circled part in the figure.
[0117] Table 1 Comparison of segmentation results of different methods on the left atrium dataset
[0118]
[0119] To further verify the generalization ability of the network model SPMC of this embodiment on different datasets, the performance of the image segmentation method proposed in this embodiment is compared with the existing methods MT, DTC, CPS, MC-Net, URPC, SS-Net, MCF, AC-MT, and UG-MCL on the BraTS dataset. The results are shown in Table 2.
[0120] Table 2 Comparison of segmentation results of different methods on brain tumor segmentation dataset
[0121]
[0122] Compared to the LA dataset, brain tumor segmentation is more challenging, but the network model SPMC of this embodiment still performs well. As shown in Table 2, when only 10% of the labeled data and 90% of the unlabeled data are used for training, the Dice score is improved by 4.65% compared to the baseline model. In addition, compared with the most advanced methods, the network model SPMC of this embodiment still has an advantage, and the Dice score is improved by 1.03% compared to the second-best method (UG-MCL).
[0123] from Figure 5 It can be seen that the segmentation effect of the network model SPMC in this embodiment is closer to the true label, especially the edge segmentation of the tumor is more complete.
[0124] In addition to segmentation experiments on binary classification datasets such as LA and BraTS, the performance of the proposed image segmentation method was also compared with existing methods MT, DTC, CPS, MC-Net, URPC, SS-Net, MCF, AC-MT, and UG-MCL on the four-category dataset ACDC. The results are shown in Table 3. When trained with 10% labeled data and 90% unlabeled data, the network model SPMC of this embodiment improves Dice by 7.04% compared to the baseline model. When the amount of labeled data is increased to 20%, the Dice improves by 4.59%. Compared with state-of-the-art methods, the network model SPMC of this embodiment maintains optimal performance on multiple organ segmentation tasks. When trained with 10% and 20% labeled data, the network model SPMC of this embodiment achieves Dice improvements of 1.68% and 1.02% compared to its corresponding suboptimal methods (SS-Net and UG-MCL), respectively.
[0125] Table 3 Comparison of segmentation results of different methods on the automatic heart challenge dataset
[0126]
Claims
1. A semi-supervised medical image segmentation method based on mutual correction of suspicious pixels, characterized in that: The steps include: Step 1: Crop medical images from medical image datasets from different sources and divide them into training sets, test sets, and validation sets; Step 2: Construct a semi-supervised medical image segmentation network model SPMC; The network model SPMC includes network A, network B, CDPS module and SPLAT module. Network A and network B are both Vnet or Unet networks. Network A and network B use the same encoder E, and network A and network B use decoders D with different upsampling methods. a and D b ; Step 3: Train the network model SPMC Step 3.1, initialize the parameters of the network model SPMC; Step 3.2: Input the training set into network A and network B respectively, and output the corresponding feature maps through encoder E. The feature map output by encoder E of network A is directly input into decoder D. a , output the prediction results of the labeled data And the prediction results of unlabeled data Add random noise perturbation to the feature map F output by the encoder E of network B to obtain a feature map containing perturbation The feature map containing the perturbation Input decoder D b , output the prediction results of the labeled data And the prediction results of unlabeled data Step 3.3: Screening using the CDPS module and Identify the common pixels that are difficult for both network A and network B to accurately predict, and correct them with reference to the existing label Y; Screening using the SPLAT module and Use the trusted pixels generated by network A to pseudo-supervise the suspicious pixels in network B, thereby improving the utilization efficiency of unlabeled data and the generalization ability of the model; In step 3.3, the CDPS module is used to screen and Identify the common pixels that are difficult for both network A and network B to accurately predict, and refer to the existing label Y to correct the common pixels. The specific process is as follows: Step 3.3.1.
1. Calculation and Confidence distribution, use threshold τ to filter out reliable pixels with high confidence, retain suspicious pixels with low confidence, and generate corresponding masks and Respectively expressed as: Where, is the indicator function; Step 3.3.1.2, take and The intersection of network A and network B is obtained to obtain the mask containing the interaction information of network A and network B. Expressed as: Step 3.3.1.3, use Screening and Co-trapped pixels in and Expressed as: In the formula, ⊙ represents the product operation of the corresponding position elements one by one; Step 3.3.1.4: To obtain the correct supervision signal, use Screen out the pixels with the label Y and The corresponding label Y cdp , expressed as: Step 3.3.1.
5. Use mean square error loss Common pixels and Make corrections so that Network A and Network B focus on labeled data and The unpredictable areas in the , and provide correct guidance, are expressed as: Where, MSE() is the mean square error loss function; In step 3.3, the SPLAT module was used to screen and The process of using the trusted pixels in network A to pseudo-supervise the suspicious pixels in network B is: Step 3.3.2.1, use the probability sharpening function to and Converted into soft pseudo labels SPL a and SPL b ,make and The probability distribution difference is more obvious, and the probability sharpening function is expressed as: Where T is the hyperparameter that controls the output distribution of the model, and P represents or Step 3.3.2.2: Use threshold τ to filter out and Trusted pixels and soft pseudo labels SPL a and SPL b The suspicious pixels in , get different masks, take the intersection of different masks, and get and Expressed as: Step 3.3.2.
3. Use Corrected Pseudo-Supervision Loss For unlabeled data and The suspicious pixels are guided by: Where MSE() is the mean square error loss function, ⊙ represents the product operation of the corresponding position elements one by one; Step 3.
4. Calculate the total loss Step 3.5: Update the parameters of the network model; Step 4: Use the validation set to evaluate the performance of the network model SPMC and optimize the parameters; Step 5: Input the medical image to be segmented into the trained network model SPMC and output the segmentation result.
2. The semi-supervised medical image segmentation method based on mutual correction of suspicious pixels according to claim 1, characterized in that: The medical image datasets from different sources in step 1 include the left atrium dataset LA, the brain tumor segmentation dataset BraTS, and the automatic cardiac challenge dataset ACDC.
3. The semi-supervised medical image segmentation method based on mutual correction of suspicious pixels according to claim 2, characterized in that: In step 2, when the medical image dataset is LA and BraTS, network A and network B are both Vnet networks; when the medical image dataset is ACDC, network A and network B are both Unet networks.
4. The semi-supervised medical image segmentation method based on mutual correction of suspicious pixels according to claim 2 or 3, characterized in that: Initializing the parameters of the network model SPMC in step 3.1 includes: selecting the SGD optimizer to train the network model SPMC, setting the weight decay factor to 10 -4 , the momentum is set to 0.9, and the initial learning rate is set to 10 -2 , the number of iterations is set to 30k; When the medical image dataset is LA, the batch size is set to 8; when the medical image dataset is BraTS, the batch size is set to 4; when the medical image dataset is ACDC, the batch size is set to 16.
5. The semi-supervised medical image segmentation method based on mutual correction of suspicious pixels according to claim 1, characterized in that: The value of T in step 3.3.2.1 is 0.
1.
6. The semi-supervised medical image segmentation method based on mutual correction of suspicious pixels according to claim 1, characterized in that: When the medical image dataset is LA and ACDC, the value of τ is 0.7; when the medical image dataset is BraTS, the value of τ is 0.
65.
7. The semi-supervised medical image segmentation method based on mutual correction of suspicious pixels according to claim 1, characterized in that: The total loss in step 3.4 Expressed as: Where, and Respectively expressed as: Where, is the cross entropy loss, For the loss of Days, is the mean square error loss, and They are and The corresponding corrected pseudo-supervision loss, represents the supervision loss, represents the unsupervised loss, β is a hyperparameter, λ is a Gaussian warm-up function that varies with time, and PL b and PL a are the generated pseudo labels, which are expressed as: The λ is expressed as: Where t represents the current number of iterations, t max Indicates the maximum number of iterations.
8. The semi-supervised medical image segmentation method based on mutual correction of suspicious pixels according to claim 7, characterized in that: The value of β is 0.5.
Citation Information
Patent Citations
Semi-supervised medical image segmentation method based on heterogeneous cross pseudo-supervised network
CN115359029A
Self-supervised video target segmentation method and system based on foreground target dense feature enhancement
CN118447429A