Mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception

Through the heterogeneous sensing and mutual learning mechanism, it solves the problem of insufficient attention to cognitive uncertainty in semi-supervised learning, significantly improves the accuracy and robustness of medical image segmentation, adapts to the data enhancement needs of different fields, and achieves Efficient medical image segmentation.

CN118762175AActive Publication Date: 2024-10-11TIANJIN UNIV

Patent Information

Application Number
CN202410734818.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-11
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

Existing semi-supervised learning methods fail to pay sufficient attention to cognitive uncertainty when processing medical images, causing noise labels to affect the accuracy of segmentation results. They are also limited to data enhancement schemes in specific fields and are difficult to adapt to different types of medical image segmentation. Task.

Method used

A mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception is adopted. By constructing an uncertainty perception evaluation model, a multi-view comparison reconstruction model and a mutual consistency learning network model, pseudo-labeling strategies, cross-pseudo-supervision and distillation methods are used. , optimizing the model’s prediction consistency for uncertainty areas and the identification of wrong prediction areas.

Benefits of technology

It significantly improves the accuracy and robustness of medical image segmentation, reduces the cost of manual annotation, enhances the adaptability and versatility of the model, can effectively utilize unlabeled data, and improves the reliability and stability of segmentation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762175A_ABST
    Figure CN118762175A_ABST
Patent Text Reader

Abstract

The invention discloses a mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception, and aims to fully mine and utilize unmarked data so as to improve the segmentation performance. Firstly, an uncertain sensing model is embedded, a potential error prediction area is evaluated in real time in a single-step forward propagation process, and the understanding and judging capability of the model on an uncertain area is improved in a mode of constructing a difference mask and optimizing and correcting a loss function. Secondly, the algorithm designs a multi-view comparison reconstruction model, and the module comprises two groups of sub-networks with different structures; and the two groups of subnets are used for accurately positioning and emphatically optimizing areas which possibly have error segmentation by comparing the difference between respective prediction results. And finally, constructing a mutual consistency learning network model, including entropy increase guidance, cross pseudo supervision and refined direction consistency optimization for a fuzzy region and a decision boundary, thereby effectively utilizing a large amount of information contained in the unmarked data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning of computer vision processing, and in particular to a mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception. Background Art

[0002] With the in-depth application of deep learning in the field of medical image segmentation, deep learning-based methods have made significant progress. However, in practical applications, the fine annotation of medical images is a difficult and time-consuming task, which limits the effective use of a large amount of unlabeled data resources. To overcome this bottleneck, semi-supervised segmentation technology is widely used. It can improve model performance with the help of unlabeled data. However, the labels generated by semi-supervised learning may be noisy, which affects the accuracy of the final segmentation results. To address this problem, consistency regularization methods have emerged. This method integrates data enhancement strategies into semi-supervised learning to ensure that even after various enhancements are performed on unlabeled samples, the model prediction remains internally consistent, thereby improving the segmentation effect. However, existing consistency regularization methods are often limited to data enhancement schemes customized for specific fields. For example, when solving the problem caused by the scarcity of labeled samples in medical image segmentation, existing methods attempt to use unlabeled data for joint training to cope with insufficient data. However, these methods rely too much on the consistency constraint mechanism of prediction between models and fail to fully pay attention to and deal with the key issue of cognitive uncertainty. Summary of the invention

[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception.

[0004] The objective of the present invention is achieved through the following technical solutions:

[0005] A mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception includes:

[0006] S1. Construct uncertainty perception assessment model; specifically include:

[0007] S101. Design a computational unit containing four classifiers that share the same encoder but use different loss functions, including cross entropy loss, focal loss, Dice loss, and IoU loss.

[0008] S102. The classifier is used to predict each voxel to obtain a certain region and an uncertainty region, and a weight map with cognitive uncertainty is generated to reduce additional computational costs.

[0009] S103. For the deterministic region, use the pseudo label strategy and calculate the corresponding pseudo label loss The student network and the teacher network are used to predict the uncertainty area, and the consistency loss between the student network and the teacher network prediction is obtained.

[0010] S104. Define the total unsupervised loss function Obtain an uncertainty-aware evaluation model, and combine the pseudo-label loss and consistency loss to optimize the uncertainty-aware evaluation model's prediction of the uncertainty region;

[0011] S2. Construct a multi-view contrast reconstruction model, including:

[0012] S201. Perform binary XOR operation on the outputs of the student network and the teacher network to obtain the difference mask M diff ;

[0013] S202. Use difference mask M diff To extract the potential misprediction region of each voxel and calculate the corrected loss function of the potential misprediction region

[0014] S203. Comprehensive basic segmentation loss and modified loss function Get the multi-view contrast reconstruction model and define the supervised learning loss of the multi-view contrast reconstruction model To improve the performance of the multi-view contrast reconstruction model.

[0015] S3. Build and optimize the mutual consistency learning network model, including:

[0016] S301. Using the cross pseudo-supervision method, calculate the inter-class similarity penalty loss between the student network and the teacher network and cross pseudo-supervision loss To supervise teachers and students’ online learning;

[0017] S302. Use distillation method to calculate the bidirectional KL loss of student network and teacher network And the distillation loss obtained by Dice loss To promote information exchange between student networks and teacher networks;

[0018] S303. Define confidence-based entropy loss Combine cross pseudo-supervision loss, bidirectional KL loss, and distillation loss to optimize the prediction consistency between the student network and the teacher network;

[0019] S304. By decoupling the inconsistent parts of the prediction results of the student network and the teacher network into unreliable data and guidance data, the directional consistency loss of the student network and the teacher network is calculated And optimize the consistency loss across pixel space A mutual consistency learning network model is obtained, and the prediction accuracy of the mutual consistency learning network model for pixels around the decision boundary is improved.

[0020] The comprehensive uncertainty perception evaluation model, multi-perspective comparative reconstruction model and mutual consistency learning network model are used to mine the uncertainty knowledge of the input data of the student network and the teacher network.

[0021] Furthermore, the total unsupervised loss function in step S104 is Combining pseudo-label loss and consistency loss:

[0022]

[0023] Among them, M c is a binary mask of the region, where voxels with value 1 correspond to the special part, and J is a tensor of all 1s. is a hyperparameter for adjusting the consistency regularization strength, ⊙ represents the element-by-element multiplication operation, and the Mean(·) function is used to calculate the average value of non-zero elements to obtain a scalar result; is the pseudo label loss.

[0024] Furthermore, in step S201, the softmax output of the unlabeled data part of the student network and the teacher network is Perform binary XOR operation, difference mask M diff The calculation formula is as follows:

[0025]

[0026] Among them, BINA(·) represents the binarization function, is an XOR operation;

[0027] Extract the wrong prediction area; use the difference mask M diff To extract the wrong prediction area and calculate the corrected loss function

[0028]

[0029] in, represents the true value of the labeled data, MASK(·) represents the difference mask M extracted diff The predicted value is marked, Indicates potential misprediction areas.

[0030] Furthermore, in step S203, supervised learning loss The calculation formula is as follows:

[0031]

[0032] in, Indicates the true value of the labeled data, Y L Represents the network prediction results of labeled data, Represents the potential misprediction area, β is used to balance the importance of reconstruction loss and other segmentation loss terms; Dice loss and cross entropy CE loss together constitute the basic segmentation loss, and the modified loss function It helps to improve the ability of the multi-view contrast reconstruction model to identify potential incorrect predictions.

[0033] Furthermore, the inter-class similarity penalty loss in step S3 The calculation formula is as follows:

[0034]

[0035] in, Represents the i-th data in the data set, is the cross entropy loss function, p 1i and p 2i Represent the prediction results of the student network and the teacher network respectively, and represents the true value label, and W×H×D are the width, height and depth of the input image respectively;

[0036] By applying a cross pseudo-supervision loss in both directions To improve the learning effect of student network and teacher network on unlabeled data;

[0037] Calculate the bidirectional KL loss and distillation loss; for the student network and the teacher network They are at the same pixel x i The original prediction on Probability distribution Calculated by the softmax function:

[0038]

[0039] Calculate the bidirectional KL loss And the distillation loss obtained by Dice loss

[0040]

[0041]

[0042] Among them, p1 and p2 represent the posterior probability predictions of the student and teacher networks respectively; Dice loss is used instead of bidirectional KL divergence loss to alleviate the class imbalance problem and form distillation loss, where T represents the parameter temperature setting;

[0043] Defining confidence-based entropy loss

[0044]

[0045] By decoupling the inconsistent parts of the prediction results of the student network and the teacher network into unreliable data and guidance data, the direction consistency loss is calculated

[0046]

[0047] Among them, sp is the sharpening operation, and the sp obtained by the sharpening operation 1 and sp 2 Compare and get the high confidence part (hsp 1 , hsp 2 ) and the low confidence part (lsp 1 , lsp 2 ); only apply the mean square error L2 loss as the optimization target to the low confidence part, and detach does not back propagate the gradient to the high confidence part;

[0048] Optimizing consistency loss across pixel space To improve the prediction accuracy of the mutual consistency learning network model for pixels around the decision boundary;

[0049]

[0050] Among them, PL1 and PL2 represent the corresponding pseudo labels, f1(x i ) and f2(x i ) represents the predicted output results of the student and teacher networks, and CE represents the cross entropy loss.

[0051] The present invention also provides a mutual learning semi-supervised 3D medical image segmentation system based on heterogeneous perception, comprising:

[0052] Uncertainty perception and evaluation module, which is used to evaluate potential misprediction areas in real time during the single-step forward propagation process, and improve the understanding and judgment of uncertain areas by constructing difference masks and optimizing the correction loss function;

[0053] The multi-view contrast reconstruction module includes two groups of sub-networks with different structures. These two groups of sub-networks locate and optimize the areas that may have mis-segmentation by comparing the differences between their respective prediction results.

[0054] The mutual consistency learning module is based on entropy loss, cross pseudo-supervision loss, bidirectional KL loss and distillation loss to optimize the prediction consistency between the student network and the teacher network.

[0055] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception are implemented.

[0056] The present invention also provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception are implemented.

[0057] Compared with the prior art, the present invention effectively solves the problem that the existing semi-supervised learning method does not pay enough attention to cognitive uncertainty when processing unlabeled data by introducing heterogeneous perception and mutual learning mechanism, thereby significantly improving the accuracy and robustness of medical image segmentation. The specific beneficial effects brought by the technical solution of the present invention are as follows:

[0058] 1. Improve segmentation accuracy: By introducing a heterogeneous perception mechanism, the present invention can effectively identify and process noise labels in the data, significantly reduce the segmentation error caused by noise labels, and improve segmentation accuracy.

[0059] 2. Enhance model robustness: Utilizing the mutual learning mechanism, the present invention exchanges information and supervises each other between different models, thereby enhancing the model's adaptability to different types of data and improving the robustness of the overall model.

[0060] 3. Make full use of unlabeled data: The semi-supervised learning algorithm of the present invention can effectively utilize a large amount of unlabeled data, and further improves the performance of the model when processing unlabeled data through consistency regularization and data enhancement strategies.

[0061] 4. Reduce the cost of manual labeling: Since the algorithm can effectively learn on unlabeled data, it reduces the need for a large amount of finely labeled data, thereby greatly reducing the cost and time investment of manual labeling.

[0062] 5. Improve model consistency: Through the consistency regularization method, the model prediction remains inherently consistent even after various enhancements to the unlabeled samples, improving the reliability and stability of the segmentation results.

[0063] 6. Adaptation to data enhancement in different fields: The method of the present invention is no longer limited to data enhancement schemes customized for specific fields. It has strong versatility and adaptability and can be widely used in different types of medical image segmentation tasks.

[0064] Based on the above technical means, the present invention significantly improves the segmentation effect while solving the problem caused by the scarcity of labeled samples in medical image segmentation, and provides a more efficient and reliable solution for medical image analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 The figure is a flow chart of the method of the present invention.

[0066] Figure 2 This is the overall framework diagram of the mutual learning semi-supervised medical image segmentation algorithm based on heterogeneous perception of the present invention. DETAILED DESCRIPTION

[0067] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0068] like Figure 1 As shown, the present invention provides a mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception, comprising:

[0069] S1. Construct uncertainty perception assessment model; specifically include:

[0070] S101. Design a computational unit containing four classifiers that share the same encoder but use different loss functions, including cross entropy loss, focal loss, Dice loss, and IoU loss.

[0071] S102. The classifier is used to predict each voxel to obtain a certain region and an uncertainty region, and a weight map with cognitive uncertainty is generated to reduce additional computational costs.

[0072] S103. For the deterministic region, use the pseudo label strategy and calculate the corresponding pseudo label loss The student network and the teacher network are used to predict the uncertainty area, and the consistency loss between the student network and the teacher network prediction is obtained.

[0073] S104. Define the total unsupervised loss function Obtain an uncertainty-aware evaluation model, and combine the pseudo-label loss and consistency loss to optimize the uncertainty-aware evaluation model's prediction of the uncertainty region;

[0074] S2. Construct a multi-view contrast reconstruction model, including:

[0075] S201. Perform binary XOR operation on the outputs of the student network and the teacher network to obtain the difference mask M diff ;

[0076] S202. Use difference mask M diff To extract the potential misprediction region of each voxel and calculate the corrected loss function of the potential misprediction region

[0077] S203. Comprehensive basic segmentation loss and modified loss function Get the multi-view contrast reconstruction model and define the supervised learning loss of the multi-view contrast reconstruction model To improve the performance of the multi-view contrast reconstruction model.

[0078] S3. Construct and optimize the mutual consistency learning network model, including:

[0079] S301. Using the cross pseudo-supervision method, calculate the inter-class similarity penalty loss between the student network and the teacher network and cross pseudo-supervision loss To supervise teachers and students’ online learning;

[0080] S302. Use distillation method to calculate the bidirectional KL loss of student network and teacher network And the distillation loss obtained by Dice loss To promote information exchange between student networks and teacher networks;

[0081] S303. Define confidence-based entropy loss Combine cross pseudo-supervision loss, bidirectional KL loss, and distillation loss to optimize the prediction consistency between the student network and the teacher network;

[0082] S304. By decoupling the inconsistent parts of the prediction results of the student network and the teacher network into unreliable data and guidance data, the directional consistency loss of the student network and the teacher network is calculated And optimize the consistency loss across pixel space A mutual consistency learning network model is obtained, and the prediction accuracy of the mutual consistency learning network model for pixels around the decision boundary is improved.

[0083] The comprehensive uncertainty perception evaluation model, multi-perspective comparative reconstruction model and mutual consistency learning network model are used to mine the uncertainty knowledge of the input data of the student network and the teacher network.

[0084] Specifically, in the semi-supervised segmentation task, using epistemic uncertainty to guide learning, early studies usually rely on the Monte Carlo dropout method to generate uncertainty weight maps. However, this method requires multiple forward propagation calculations, which greatly increases the computational cost. To alleviate this burden, this embodiment uses an alternative: a set of classifiers using four shared encoders with different loss functions. Unlike the method that achieves diversity only through weighted cross entropy loss, the four types of classifiers in this embodiment share the underlying encoder structure, but use different loss functions, including cross entropy loss, focal loss, dice loss, and IoU loss. These differentiated loss functions guide the model to generate prediction results from different optimization angles during a single forward propagation process, thereby obtaining pixel-level and geometric-level epistemic uncertainty without increasing the amount of computation.

[0085] When processing the uncertainty-aware evaluation model, this embodiment treats the certain region and the uncertain region differently. The certain region is trained directly using pseudo labels, and the prediction consistency between the student network and the teacher network is strengthened for the uncertain region. Specifically, in the certain region, the pseudo label strategy is applied, and the resulting loss tensor is recorded as Its dimension is H×W×D. For the uncertainty area, the consistency loss is introduced The calculation formula is in represents the predicted value of the student network for the i-th voxel in the j-th category, and is the corresponding prediction value of the teacher network.

[0086] Combining the above analysis, the total unsupervised loss function based on uncertainty cognitive guidance is defined as follows:

[0087]

[0088] In this expression, M c A binary mask representing a specific region, where voxels with a value of 1 correspond to a specific part; J is an all-1 tensor; is a hyperparameter for adjusting the consistency regularization strength; ⊙ represents element-by-element multiplication operation; Mean(·) function is used to calculate the average value of non-zero elements to obtain a scalar result.

[0089] In summary, the improved scheme not only reduces the computational overhead, but also can effectively capture and utilize the cognitive uncertainty at the pixel and structure levels in the image, while ensuring that the pseudo-label information is fully utilized in the determined area and improving the consistency of the model prediction within the uncertainty area.

[0090] The multi-view contrast reconstruction model consists of two sub-networks (i.e., the student network and the teacher network) with comparable performance, respectively labeled as sub-network A (denoted by f A (·)) and subnetwork B (denoted as f B (·)). For the input dataset, the original labeled data (X L , Y L ) and unlabeled data X U Will be sent to these two sub-networks for processing at the same time:

[0091]

[0092]

[0093] In a binary classification scenario, if the same voxel is predicted differently by sub-networks A and B, at least one of the predictions is wrong. Therefore, this embodiment regards the areas where the prediction results of the two networks are inconsistent as potential wrong prediction areas, and guides the network to focus on these areas. According to the method in semi-supervised mutual correction learning, by calculating the softmax output of sub-networks A and B for the unlabeled data part The difference mask M is obtained by performing a binary XOR operation between diff , which is expressed as follows:

[0094]

[0095] Among them, BINA(·) represents the binarization function, This difference mask is then used to reveal potential mispredicted regions:

[0096]

[0097] in, represents the true value of the labeled data, MASK(·) represents the difference mask M extracted diff The predicted value is marked, Indicates potential misprediction areas.

[0098] In order to further optimize the multi-view contrast reconstruction model's recognition of possible misprediction areas, a modified loss function is introduced

[0099]

[0100] Here, MSE(·) represents the mean square error loss function, and The true labels corresponding to those regions, Indicates potential misprediction areas.

[0101] Finally, the entire supervised learning loss includes the basic segmentation loss and the correction loss, which is as follows:

[0102]

[0103] in, Indicates the true value of the labeled data, Y L Represents the network prediction results of labeled data, represents the potential misprediction area, and the hyperparameter β is used to balance the importance of reconstruction loss and other segmentation loss terms. Dice loss and cross entropy loss together constitute the basic segmentation loss, while the correction loss helps to improve the multi-view contrast reconstruction model's ability to identify potential mispredictions.

[0104] In the process of mutual consistency learning network model training, this embodiment guides the network to extract more valuable information from the input data by gradually increasing entropy. In cross pseudo supervision, the hard pseudo segmentation map is used as a guiding signal to supervise the learning of other segmentation networks. Inter-class similarity penalty loss The calculation is as follows:

[0105]

[0106] in, Represents the lth data in the data set, is the cross entropy loss function, p 1i and p 2i Represents the prediction result of the network, and represents the true value label, and W×H×D are the width, height and depth of the input image respectively;

[0107] The cross pseudo-supervision is bidirectional, i.e., the pixel-level single label map Y1 of one network f(θ1) is used to supervise the pixel-level confidence map P2 of another network f(θ2), and vice versa.

[0108] For students and faculty networking They are at the same pixel x i The original prediction on Probability distribution Calculated by the softmax function:

[0109]

[0110] Naturally, the bidirectional KL loss in mutual learning can be introduced:

[0111]

[0112] Among them, p1 and p2 represent the posterior probability predictions of their respective networks.

[0113] However, KL divergence loss is difficult to handle the class imbalance problem between foreground and background pixels. Therefore, Dice loss is used instead of bidirectional KL divergence loss to alleviate this problem, thus forming distillation loss:

[0114]

[0115] Among them, the temperature parameter T is set greater than 1 to expand the deep knowledge distillation, and the distillation probability is calculated:

[0116]

[0117] As the temperature parameter T increases, the network is able to exchange richer information through high entropy probability, especially in fuzzy areas. The distillation process makes the output p j,T Becoming a soft label helps reduce cognitive bias during training.

[0118] Then, this part of the unsupervised loss joint training can obtain the confidence-based entropy loss, which can be defined as:

[0119]

[0120] Finally, this embodiment decouples the inconsistent part into unreliable data that may appear at the decision boundary and guided data that is more likely to be near the high-density area. These two parts share the same index information, but the guided data has a higher confidence than the unreliable data. According to the smoothing assumption, it is believed that the outputs of the two should be consistent and close to the high-density area. Therefore, we should focus on optimizing the pixels around the decision boundary to make them closer to the high-density area. First, the confidence of these pixels is improved by sharpening operation, and the formula is as follows:

[0121]

[0122] Where f(x i ) represents the model output, T∈(0,1) is the sharpening temperature, and T=0.5 is set in the experiment.

[0123] The sp obtained by the sharpening operation 1 and sp 2 Compare and get the high confidence part (hsp 1 , hsp 2 ) and the low confidence part (lsp 1 , lsp 2 ). Only the L2 loss is applied to the low confidence part as the optimization target, and detach means that the gradient is not back-propagated to the high confidence part. Therefore, the directional consistency loss can be expressed as:

[0124]

[0125] At the same time, a cross-pseudo-supervision method is used to optimize the consistency loss across pixel spaces. PL1 and PL2 represent the corresponding pseudo-labels:

[0126]

[0127] Among them, f1(x i ) and f2(x i ) represents the predicted output results of the student and teacher networks, and CE represents the cross entropy loss.

[0128] See also Figure 2 ,The overall framework of this embodiment is divided into three parts.

[0129] First, the method of the present invention embeds an uncertainty perception evaluation model to evaluate potential misprediction areas in real time during a single-step forward propagation process, and improves the model's ability to understand and judge uncertain areas by constructing difference masks and optimizing the correction loss function. Secondly, this method designs a multi-perspective contrast reconstruction model, which contains two groups of sub-networks with different structures. These two groups of sub-networks accurately locate and focus on optimizing areas that may be mis-segmented by comparing the differences between their respective prediction results. Finally, the mutual consistency learning network model adopts a series of strategies, including entropy increase guidance, cross pseudo-supervision, and refined directional consistency optimization for fuzzy areas and decision boundaries, thereby effectively utilizing the large amount of information contained in unlabeled data.

[0130] Specifically, in the training phase, the batch size of the left atrium and brain tumor datasets is set to 4, each batch contains two labeled data and two unlabeled data, and data enhancement strategies such as random flipping and rotation are used to reduce the overfitting problem. For 3D data, this embodiment uses VNet as the basic network architecture, inserts a dropout layer between the encoder and decoder, and sets the dropout rate to 0.5. Hyperparameters Following the time-dependent Gaussian warm-up function, the formula is expressed as where t i represents the current training iteration number, t max is the maximum number of iterations.

[0131] On the 2D dataset, the samples are also standardized to zero mean and unit variance, and random rotation and flipping are used to enhance data diversity. Randomly extract image patches of size 256×256 for training, and the batch size is set to 24, with 12 labeled samples and 12 unlabeled samples in each batch. In the test phase, the scans are resized to 256×256 as input and enlarged to the original size to obtain the final segmentation results. The 2D model is built based on UNet. All settings on the ACDC dataset follow the public benchmark. To ensure fair comparison, all comparison and ablation experiments use the same experimental configuration. During training, the SGD optimizer with an initial learning rate of 0.01 is used with a multi-learning rate strategy to update the weights.

[0132] In order to evaluate the semi-supervised learning method proposed in this chapter, this example selected three open source datasets for experimental verification: the left atrium dataset, the brain tumor dataset, and the Automatic Cardiac Diagnosis Challenge (ACDC) dataset.

[0133] For the left atrium dataset, it contains 100 3D gadolinium-enhanced MRI images with a voxel resolution of 0.625×0.625×0.625mm 3 , with corresponding precise annotations. The dataset is divided into five groups, each with 20 cases. The preprocessing stage includes normalizing all volumes to zero mean and unit variance, and expanding the edges for target cropping. During training, it is randomly cropped into 112×112×80 as model input; during the inference stage, the same size sliding window is used to generate segmentation results with a step size of 18×18×4.

[0134] The brain tumor dataset comes from the 2019 Multimodal Brain Tumor Segmentation Challenge, which contains 335 scan samples and annotations from glioma patients, with a uniform resolution of 1×1×1mm. 3 According to previous research, 250 scans were randomly divided for training, 25 for validation, and the remaining 60 for testing. During training, the images were randomly cropped into 96×96×96 as input images. Among them, 10% (i.e. 25 scans) and 20% (i.e. 50 scans) of labeled data were used, and the rest were unlabeled data.

[0135] The ACDC dataset is obtained from real clinical examinations at Dijon University Hospital and contains cardiac MRI samples of 100 patients. Fixed data segmentation is performed at the patient level, with 70 patients in the training set, 10 in the validation set, and 20 in the test set. Unlike the previous two 3D binary segmentation tasks, the ACDC dataset is expanded to a 2D multi-class segmentation task, aiming to segment the three structures of the myocardium, left ventricle, and right ventricle from 2D MRI slices.

[0136] Finally, four indicators, namely Dice coefficient, Iaccard index, average surface distance (ASD) and 95% Hausdorff distance (95HD), were used for quantitative evaluation. In addition, the model complexity was calculated, including the number of parameters (Para) and the amount of multiplication and accumulation operations (MAC).

[0137] From the data analysis in Table 1, it can be seen that all methods have been improved after the introduction of unlabeled data, but UA-MT has the smallest gain and shows a large standard deviation and poor stability. In contrast, AC-MT has achieved the best results in Dice coefficient and Jaccard index, and its performance is stable; while MC-Net+ is significantly better than other comparison methods in the two edge sensitivity indicators of 95HD and average surface distance (ASD), showing the advantages of cyclic pseudo-label mutual consistency learning in improving boundary segmentation. It is particularly worth noting that the model of this embodiment surpasses the current state-of-the-art methods in all evaluation indicators, especially in 95HD and ASD, which measure the accuracy of edge segmentation. Specifically, with only 10\% labeled data, compared with UA-MT, the model of this embodiment significantly reduces the 95HD index from 18.71 to 7.34, and ASD is also reduced from 4.63 to 1.66, which not only improves the segmentation accuracy, but also improves the overall stability.

[0138] Table 1 Quantitative comparison results on the left atrium dataset

[0139]

[0140]

[0141] In this example, a detailed performance comparison analysis of different methods is performed on the brain tumor dataset through Table 2. The table records the performance of various methods under the same labeling ratio (i.e., 10% or 25%, and 20% or 50% of the scanned images as training sets), where the values ​​in bold in the first three rows represent the best performance indicators achieved under the fully supervised setting. The framework of the present invention is quantitatively compared with a series of classic and latest semi-supervised methods, and significant improvements have been achieved in terms of regional segmentation accuracy and boundary fit.

[0142] When only 10% of the labeled data is used for training, although the AC-MT method temporarily leads other existing methods with a Dice similarity coefficient of 83.03%, the method of the present invention achieves a 1.67% Dice accuracy improvement on this basis, thus successfully surpassing AC-MT. As the annotation ratio increases to 20%, the performance of the model of the present invention on the test set further highlights its advantages. It is particularly worth mentioning that compared with other semi-supervised techniques and baseline models, the model of the present invention not only excels in overall segmentation accuracy, but also effectively reduces over-segmentation and under-segmentation phenomena, ensuring a more accurate and continuous tumor area segmentation effect.

[0143] The model of the present invention is further extended for two-dimensional multi-class segmentation tasks. The results in Table 3 are the average performance of the three segmentation targets of myocardium, left ventricle, and right ventricle on the ACDC dataset. The results show that compared with other methods, the model of the present invention obtains the highest Dice, Jaccard, 95HD, and ASD in each semi-supervised setting; by effectively utilizing unlabeled data, the model of the present invention produces an average Dice gain of almost 9.78\% or 3.47% compared to the fully supervised UNet model trained with 10% or 20% labeled data. It can be seen that whether trained with 10% or 20% labeled data, the model of the present invention has achieved a very large performance improvement in each category of 2D medical image segmentation.

[0144] In general, based on the results of the three datasets, the model of the present invention shows better performance than other SOTA methods in semi-supervised medical image segmentation. In addition, the model of the present invention does not rely on a specific backbone and can be applied to various medical tasks in 2D or 3D segmentation.

[0145] Table 2 Quantitative comparison results on brain tumor dataset

[0146]

[0147] Table 3 Quantitative comparison results on the cardiac automatic diagnosis dataset

[0148]

[0149]

[0150] Experimental results show that on three public medical image datasets of left atrium, brain tumor and cardiac automatic diagnosis, under the condition of limited labeled data, the algorithm proposed in this invention shows obvious performance improvement compared with the existing semi-supervised learning method, especially in terms of edge segmentation accuracy. Specifically, on the left atrium dataset using only 20% labeled data, the method of this invention achieves a low difference level of 5.98 on the 95HD index and a low error level of 1.52 on the ASD index.

[0151] Preferably, this embodiment further provides a mutual learning semi-supervised 3D medical image segmentation system based on heterogeneous perception, comprising:

[0152] Uncertainty perception and evaluation module, which is used to evaluate potential misprediction areas in real time during the single-step forward propagation process, and improve the understanding and judgment of uncertain areas by constructing difference masks and optimizing the correction loss function;

[0153] The multi-view contrast reconstruction module includes two groups of sub-networks with different structures. These two groups of sub-networks locate and optimize the areas that may have mis-segmentation by comparing the differences between their respective prediction results.

[0154] The mutual consistency learning module is based on entropy loss, cross pseudo-supervision loss, bidirectional KL loss and distillation loss to optimize the prediction consistency between the student network and the teacher network.

[0155] Preferably, the embodiments of the present application also provide a specific implementation of an electronic device capable of implementing all steps in the heterogeneous perception-based mutual learning semi-supervised 3D medical image segmentation method in the above embodiment, and the electronic device specifically includes the following contents:

[0156] Processor, memory, communications interface and bus;

[0157] Among them, the processor, memory, and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between related devices such as server-side devices, metering devices, and user-side devices.

[0158] The processor is used to call the computer program in the memory, and when the processor executes the computer program, all the steps in the mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception in the above embodiment are implemented.

[0159] An embodiment of the present application also provides a computer-readable storage medium capable of implementing all steps of the mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception in the above embodiment. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, all steps of the mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception in the above embodiment are implemented.

[0160] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0161] Although the present application provides method operation steps such as embodiments or flow charts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).

[0162] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0163] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0164] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0165] The present invention is not limited to the embodiments described above. The above description of the specific embodiments is intended to describe and illustrate the technical solution of the present invention. The above specific embodiments are merely illustrative and not restrictive. Without departing from the scope of the present invention and the scope of protection of the claims, a person of ordinary skill in the art can also make many forms of specific changes under the guidance of the present invention, which all fall within the scope of protection of the present invention.

Claims

1. A mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception, characterized in that: include: S1. Construct uncertainty perception assessment model; specifically include: S101. Design a computational unit containing four classifiers that share the same encoder but use different loss functions, including cross entropy loss, focal loss, Dice loss, and IoU loss. S102. Predicting each voxel through the above classifier to obtain a certain region and an uncertain region, and generating a weight map with cognitive uncertainty to reduce additional computational costs; S103. For the deterministic region, use the pseudo label strategy and calculate the corresponding pseudo label loss The student network and the teacher network are used to predict the uncertainty area, and the consistency loss between the student network and the teacher network prediction is obtained. S104. Define the total unsupervised loss function Obtain an uncertainty-aware evaluation model, and combine the pseudo-label loss and consistency loss to optimize the uncertainty-aware evaluation model's prediction of the uncertainty region; S2. Construct a multi-view contrast reconstruction model, including: S201. Perform binary XOR operation on the outputs of the student network and the teacher network to obtain the difference mask M diff ; S202. Use difference mask M diff To extract the potential misprediction region of each voxel and calculate the corrected loss function of the potential misprediction region S203. Comprehensive basic segmentation loss and modified loss function Get the multi-view contrast reconstruction model and define the supervised learning loss of the multi-view contrast reconstruction model To improve the performance of multi-view contrast reconstruction model; S3. Build and optimize the mutual consistency learning network model, including: S301. Using the cross pseudo-supervision method, calculate the inter-class similarity penalty loss between the student network and the teacher network and cross pseudo-supervision loss To supervise teachers and students’ online learning; S302. Use distillation method to calculate the bidirectional KL loss of student network and teacher network And the distillation loss obtained by Dice loss To promote information exchange between student networks and teacher networks; S303. Define confidence-based entropy loss Combine cross pseudo-supervision loss, bidirectional KL loss, and distillation loss to optimize the prediction consistency between the student network and the teacher network; S304. By decoupling the inconsistent parts of the prediction results of the student network and the teacher network into unreliable data and guidance data, the directional consistency loss of the student network and the teacher network is calculated And optimize the consistency loss across pixel space Obtaining a mutual consistency learning network model and improving the prediction accuracy of the mutual consistency learning network model for pixels around the decision boundary; The comprehensive uncertainty perception evaluation model, multi-perspective comparative reconstruction model and mutual consistency learning network model are used to mine the uncertainty knowledge of the input data of the student network and the teacher network.

2. The method for mutual learning and semi-supervised 3D medical image segmentation based on heterogeneous perception according to claim 1, characterized in that: The total unsupervised loss function in step S104 Combining pseudo-label loss and consistency loss: Among them, M c is a binary mask of the region, where voxels with value 1 correspond to the special part, and J is a tensor of all 1s. is a hyperparameter for adjusting the consistency regularization strength, ⊙ represents the element-by-element multiplication operation, and the Mean(·) function is used to calculate the average value of non-zero elements to obtain a scalar result; is the pseudo label loss.

3. The method for mutual learning and semi-supervised 3D medical image segmentation based on heterogeneous perception according to claim 1, characterized in that: In step S201, the softmax output of the unlabeled data part of the student network and the teacher network is Perform binary XOR operation, difference mask M diff The calculation formula is as follows: Among them, BINA(·) represents the binarization function, is an XOR operation; Extract the wrong prediction area; use the difference mask M diff To extract the wrong prediction area and calculate the corrected loss function in, represents the true value of the labeled data, MASK(·) represents the difference mask M extracted diff The predicted value is marked, Indicates potential misprediction areas.

4. The method for mutual learning semi-supervised 3D medical image segmentation based on heterogeneous perception according to claim 1, characterized in that: In step S203, supervised learning loss The calculation formula is as follows: in, Indicates the true value of the labeled data, Y L Represents the network prediction results of labeled data, Represents the potential misprediction area, β is used to balance the importance of reconstruction loss and other segmentation loss terms; Dice loss and cross entropy CE loss together constitute the basic segmentation loss, and the corrected loss function It helps to improve the ability of the multi-view contrast reconstruction model to identify potential incorrect predictions.

5. The method for mutual learning semi-supervised 3D medical image segmentation based on heterogeneous perception according to claim 1, characterized in that: Inter-class similarity penalty loss in step S3 The calculation formula is as follows: in, Represents the i-th data in the data set, is the cross entropy loss function, p 1i and p 2i Represent the prediction results of the student network and the teacher network respectively, and represents the true value label, and W×H×D are the width, height and depth of the input image respectively; By applying a cross pseudo-supervision loss in both directions To improve the learning effect of student network and teacher network on unlabeled data; Calculate the bidirectional KL loss and distillation loss; for the student network and the teacher network They are at the same pixel x i The original prediction on Probability distribution Calculated by the softmax function: Calculate the bidirectional KL loss And the distillation loss obtained by Dice loss Among them, p1 and p2 represent the posterior probability predictions of the student and teacher networks respectively; Dice loss is used instead of bidirectional KL divergence loss to alleviate the class imbalance problem and form distillation loss, where T represents the parameter temperature setting; Defining confidence-based entropy loss By decoupling the inconsistent parts of the prediction results of the student network and the teacher network into unreliable data and guidance data, the direction consistency loss is calculated Among them, sp is the sharpening operation, and the sp obtained by the sharpening operation 1 and sp 2 Compare and get the high confidence part (hsp 1 ,hsp 2 ) and the low confidence part (lsp 1 ,lsp 2 ); only apply the mean square error L2 loss as the optimization target to the low confidence part, and detach does not back propagate the gradient to the high confidence part; Optimizing consistency loss across pixel space To improve the prediction accuracy of the mutual consistency learning network model for pixels around the decision boundary; Among them, PL1 and PL2 represent the corresponding pseudo labels, f1(x i ) and f2(x i ) represents the predicted output results of the student and teacher networks, and CE represents the cross entropy loss.

6. A mutual learning semi-supervised 3D medical image segmentation system based on heterogeneous perception, characterized in that: include: Uncertainty perception and evaluation module, which is used to evaluate potential misprediction areas in real time during the single-step forward propagation process, and improve the understanding and judgment of uncertain areas by constructing difference masks and optimizing the correction loss function; The multi-view contrast reconstruction module includes two groups of sub-networks with different structures. These two groups of sub-networks locate and optimize the areas that may have mis-segmentation by comparing the differences between their respective prediction results. The mutual consistency learning module is based on entropy loss, cross pseudo-supervision loss, bidirectional KL loss and distillation loss to optimize the prediction consistency between the student network and the teacher network.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the mutual learning semi-supervised 3D medical image segmentation method based on heterogeneous perception described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Semi-supervised medical image segmentation method based on boundary perception

    CN116030044A

  • 3D medical image segmentation model establishment method based on mask modeling and application thereof

    CN116664588A

  • MR medical image colorectal cancer segmentation method and system based on semi-supervised learning

    CN117409201A

  • 3D medical image segmentation method based on multidimensional and global and local combination

    CN117830324A

  • Knowledge distillation with adaptive asymmetric label sharpening for semi-supervised fracture detection in chest x-rays

    US20220207718A1

Cited By

  • Semi-supervised segmentation method based on multi-mode teacher-student consistency learning

    CN119624997A

  • Semi-supervised medical image segmentation method and device

    CN119693392A

  • Tumor tissue segmentation method and system based on MR image, and storage medium

    CN120088281A

  • Medical image segmentation method based on uncertainty estimation and multistage distillation

    CN120259284A

  • A Medical Image Segmentation Method Based on Uncertainty Estimation and Multi-level Distillation

    CN120259284B