Semi-supervised medical image segmentation method based on mutual competition double-flow network
Through the competing dual-stream network architecture and pseudo-supervised correction strategy, the problem that the mean teacher model is prone to cognitive bias and data distribution mismatch is solved, the accuracy and robustness of semi-supervised medical image segmentation are improved, and the quality of pseudo-labels is optimized. .
Patent Information
- Application Number
- CN202410681152.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-29
AI Technical Summary
In existing semi-supervised medical image segmentation technology, the mean teacher model is prone to cognitive bias, and fails to effectively solve the problems of mismatched distribution of labeled and unlabeled data and the influence of pseudo-label noise.
Using a competing dual-stream network architecture, combined with a single image pair bidirectional copy-paste method and a pseudo-supervised correction strategy, the model is optimized through supervised and unsupervised losses to reduce model coupling and improve pseudo-label quality.
Increase model diversity, simplify data distribution alignment, optimize the pseudo-supervision process, improve the accuracy and robustness of segmentation models, and reduce the impact of noise.
Smart Images

Figure CN118570471A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a semi-supervised medical image segmentation method based on a competitive dual-stream network. Background Art
[0002] Semi-supervised medical image segmentation aims to accurately identify anatomical structures such as organs and lesions from medical images by using a small amount of labeled data and a large amount of unlabeled data for model training and optimization, thereby significantly reducing the dependence on large-scale labeled data. This technology has wide application value in computer-aided diagnosis, radiotherapy and other fields. However, due to the small number of labeled images, uneven quality of medical images, and the distribution mismatch between a small amount of labeled data and a large amount of unlabeled data, semi-supervised medical image segmentation remains a challenging task.
[0003] In order to meet the above challenges, researchers have proposed a large number of medical image segmentation methods based on semi-supervised learning. Among them, pseudo-label-based semi-supervised learning methods and consistency regularization-based semi-supervised learning methods have received widespread attention due to their high efficiency and excellent generalization ability.
[0004] The core idea of the semi-supervised learning method based on pseudo-labels is to use the segmentation model trained by a small amount of labeled data to assign pseudo-labels to unlabeled data, and then use the pseudo-labels together with the labeled images to update the segmentation model. Yao et al. proposed a confidence-aware cross-pseudo-supervised network to improve the quality of pseudo-labels by measuring the variance between the original image samples and the image samples enhanced by Fourier transform. Lu et al. proposed to use the uncertainty assessment module to generate a reliability map, and then use the reliability map to post-process and correct the pseudo-labels. Gao et al. proposed a correlation-aware mutual learning framework to implement cross-pseudo-supervision between the original network and the auxiliary network to produce high-quality pseudo-labels. Thompson et al. refined the pseudo-labels by introducing superpixel maps calculated by a simple linear iterative clustering algorithm for the segmentation of irregularly shaped targets. However, the quality of pseudo-labels in this type of method is the main constraint of the pseudo-label strategy. The potential noise in the pseudo-labels will affect the performance of the segmentation model and the effectiveness of the pseudo-supervised method.
[0005] The core idea of the semi-supervised learning method based on consistency regularization is to enhance the robustness and stability of the model by encouraging the model to produce similar outputs on similar inputs. Among them, the Mean Teacher (MT) model has been widely used. It is a typical dual-model consistency learning structure. The parameters of the student model are obtained through training, and the parameters of the teacher model are updated by exponential moving average (EMA). At present, a large number of studies have been innovated and expanded around the MT architecture. Shi et al. proposed an improved model that can distinguish between certain and uncertain regions. In this model, the student network processes different regions with different weights according to the guidance of the teacher network. Wang et al. introduced three uncertainty assessments to promote the student model to obtain more reliable information from the teacher model. Hu et al. proposed an attention-based consistency learning method, which aims to align the attention maps generated by the student and teacher models. However, these methods fail to fully consider the inherent limitations of the MT architecture: when the EMA parameter update method is used, the teacher and student models are tightly coupled, and over-emphasizing the consistency prediction between the models will cause the model to fall into cognitive bias and cannot be corrected, thereby producing incorrect prediction results.
[0006] Based on the above analysis, although the existing semi-supervised medical image segmentation technology has achieved certain results, its performance is still constrained by the following key factors: (1) The mean teacher model is limited by its inherent structure. Specifically, the teacher model is updated according to the student network in an exponential moving average (EMA) manner, which will lead to a tight coupling between the teacher and student models and the overall model is prone to cognitive bias. (2) There is still a lack of effective strategies to solve the distribution mismatch problem between a small number of labeled images and a large number of unlabeled images. (3) The potential noise implicit in the pseudo-label reduces the performance of the segmentation model and affects the effectiveness of the pseudo-supervised method. The existing technology requires a semi-supervised medical image segmentation method that can effectively prevent the model from falling into cognitive bias, reduce the distribution difference between labeled data and unlabeled data, and optimize the quality of pseudo-labels. To this end, a semi-supervised medical image segmentation method based on a competitive two-stream network is proposed. Summary of the invention
[0007] The technical problem to be solved by the present invention is: how to solve the above-mentioned problems existing in the prior art, and provides a semi-supervised medical image segmentation method based on a competitive two-stream network, which integrates a single image pair bidirectional copy and paste method and a pseudo-supervised correction strategy into a competitive two-stream network architecture.
[0008] The present invention solves the above technical problems through the following technical solutions, and the present invention comprises the following steps:
[0009] S1: The original input data containing labeled images and unlabeled images are fed into the competitive two-stream network for training. The Winner net is determined by calculating the Dice score for the labeled images. The Winner net is used to generate pseudo labels for the unlabeled images. The loss generated by the Winner net and the Loser net in the supervised training process and the unsupervised loss between the Loser net's prediction results for the unlabeled images and the pseudo labels are calculated.
[0010] S2: Send the mixed image obtained by bidirectional copy-paste operation of labeled image and unlabeled image into Winner net to obtain the prediction result, and supervise the prediction result with the mixed label obtained by bidirectional copy-paste operation of real label and pseudo label to optimize the training of Winner net;
[0011] S3: The enhanced view of the mixed image is fed into the Winner net, and pseudo-supervised correction is performed between the original view of the mixed image and its enhanced view to further train the Winner net network;
[0012] S4: Repeat steps S1 to S3 until the model converges to obtain a trained medical image segmentation model based on a competitive dual-stream network, and use the medical image segmentation model to segment the image to be processed to obtain a segmentation result.
[0013] Furthermore, in step S1, the original input data including labeled images and unlabeled images is a training data set, denoted as D, including N l labeled images and N u There are N unlabeled images, l <<N u , the training data set D is divided into two subsets: D = D l ∪D u , where the labeled dataset is represented as The unlabeled dataset is represented as
[0014] Furthermore, in step S1, the competing dual-stream network includes two branches, namely Network-A and Network-B, the network that wins the competition is called Winner net, and the network that fails the competition is called Loser net.
[0015] Furthermore, in step S1, the supervised loss generated by the winner of the competition in supervised learning is as follows:
[0016] L s =L ce (y l , Yl )+L dice (y l , Y l )
[0017] in, Represents the segmentation result of the competitive two-stream network model on the labeled image. and Respectively represent the prediction results of Network-A and Network-B for labeled data, Y l Indicates label information, L ce is the cross entropy loss, L dice Denotes Dice loss.
[0018] Furthermore, in the step S1, the supervised loss generated by the Loser net that failed the competition in the supervised learning and the unsupervised loss between the prediction result of the Loser net on the unlabeled data and the pseudo-label generated by the Winner net are calculated, and the formula is as follows:
[0019]
[0020] Among them, y u Represents the prediction result of Loser net for unlabeled images, Y u represents the pseudo label generated by Winner net, L s is the supervised loss for labeled images, is the unsupervised loss between the prediction results of Loser net and the generated pseudo-labels, and α is used to balance the two loss terms.
[0021] Furthermore, in step S2, the specific processing process is as follows:
[0022] S21: Randomly select a labeled image x l and an unlabeled image x u , by copying and pasting in both the outward and inward directions to obtain the mixed image x out and x in ; Among them, from x l Randomly cut and paste to x u Generate a mixed image x out The process is called outward copy and paste. l The cropped patch is used as the foreground, x u The cropped patch is used as the background. u Randomly cut and paste to x l On the other hand, generate another mixed image x in The process is called inward copy and paste.u The cropped patch is used as the foreground, x l The cropped patch is used as the background; the specific processing formula is as follows:
[0023] x out =x u ⊙M+x l ⊙(1-M)
[0024] x in x l ⊙M+x u ⊙(1-M)
[0025] Where M∈{0,1} W×H×L Represented by a labeled image x l The generated zero-centered mask, ⊙ represents the element-wise multiplication operation;
[0026] S22: Use the same method as step S21 to copy and paste the pseudo labels of the unlabeled image and the real labels of the labeled image in both directions to obtain the supervision signal Y out With Y in :
[0027] Y out =Y u ⊙M+Y l ⊙(1-M)
[0028] Y in =Y l ⊙M+Y u ⊙(1-M);
[0029] S23: Calculate the loss L caused by the bidirectional copy-paste process of a single image cps , use Y in With Y out Supervise Winner net for two synthetic images x respectively in and x out The prediction result y in and out , and use β to control the contribution of unlabeled image voxels to the loss function. The formula of the loss function is as follows:
[0030] L cps =L seg (y in , Y in )☉M+βL seg (y in , Y in )☉(1-M)+L seg (y out , Y out )☉(1-M)+βL seg(y out , Y out )☉M
[0031] Among them, L cps represents the total loss in the process of bidirectional copy-paste of a single image, L seg It is a linear combination of Dice loss and cross entropy loss, and the hyperparameter β is used to adjust the weight of unlabeled image voxels in the loss function.
[0032] Furthermore, in step S3, the specific processing process is as follows:
[0033] S31: Use image enhancement methods to mix image x in and x out Generate Enhanced View and
[0034] S32: Pseudo-supervised learning is performed between the original view and the enhanced view of the mixed image, where the pseudo-supervised loss L p is defined as follows:
[0035]
[0036] Among them, z represents logit, that is, x∈{x in , x out} is the output before the softmax activation layer, T represents the temperature hyperparameter, σ represents the softmax function, y∈{y in ,y out}and Respectively represent the prediction results of Winner net for the original view and the prediction results of the enhanced view;
[0037] S33: Use KL divergence to evaluate the uncertainty of Winner net prediction and the pseudo-supervisory loss L calculated in step S32 p Make corrections;
[0038] S34: Calculate the overall loss of Winner net in the whole process:
[0039] L winner =L s +L scp +L pr
[0040] Among them, L s represents the supervised loss generated by the competitive phase of the two-stream network with labeled images, L cps represents the supervised loss of a single image for the bidirectional copy-paste process, L pr represents the pseudo-supervisory correction loss;
[0041] S35: Calculate the overall loss function, which includes the overall loss generated by Winner net and Loser net in the whole process:
[0042] L total =L winner +L loser .
[0043] Furthermore, in step S31, the image enhancement method includes random intensity scaling, random intensity shifting and Gaussian noise.
[0044] Furthermore, in step S33, using the uncertainty estimation is the pseudo-supervision loss L p Adaptive voxel weighting is introduced so that voxels with higher confidence have higher weights and voxels with lower confidence have lower weights. The specific processing formula is as follows:
[0045]
[0046] Compared with the prior art, the present invention has the following advantages:
[0047] (1) Increase model diversity and prevent models from falling into cognitive bias
[0048] Most of the current semi-supervised medical image segmentation methods are based on the MT structure. However, the sharing of teacher-student model parameters in this structure reduces the variability of the model. In addition, the teacher and student models are tightly coupled, and the performance of the teacher network is constrained by the student network. The model as a whole is prone to cognitive bias and cannot be corrected. The method proposed in this invention replaces the original MT model structure with a competitive dual-stream network segmentation framework, and breaks the cognitive bias of the model by encouraging two networks with different structures and similar performance to learn from each other and compete with each other.
[0049] (2) Simplify the generation process of mixed images and better align data distribution
[0050] Current data augmentation methods based on copy-paste mainly apply copy-paste technology in unlabeled data sets, or only copy part of the area from labeled data to other data, ignoring the design of consistent learning strategies for labeled and unlabeled data, so it is difficult to make up for the distribution difference between labeled and unlabeled data. The present invention designs a single-image-to-bidirectional copy-paste technology, simplifies the generation process of mixed images, and promotes distribution alignment by designing consistent learning strategies for labeled and unlabeled images.
[0051] (3) Optimize the pseudo-supervision process to further improve the quality of pseudo-labels
[0052] Existing research on the optimization of the pseudo-supervision process is still insufficient and fails to take into account the impact of potential noise in the pseudo-supervision process on model performance. The present invention utilizes a pseudo-supervision correction mechanism to perform pseudo-supervision correction between the hybrid image and its enhanced view. Specifically, an uncertainty estimation strategy is used to introduce adaptive voxel weighting for the original pseudo-supervision loss to reduce the model's sensitivity to noise, thereby effectively alleviating the impact of potential noise on the model segmentation performance in the pseudo-supervision stage and improving the quality of pseudo labels. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a flow chart of a semi-supervised medical image segmentation method based on a competitive dual-stream network in Embodiment 2 of the present invention;
[0054] Figure 2 It is a framework diagram of a semi-supervised medical image segmentation method based on a competitive dual-stream network in Embodiment 3 of the present invention;
[0055] Figure 3a is a structural diagram of the Mean Teacher model in the third embodiment of the present invention;
[0056] Figure 3b is a structural diagram of a competing dual-flow network model in Embodiment 3 of the present invention;
[0057] Figure 4 Schematic diagram of the workflow of the pseudo-label-based semi-supervised learning method in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0058] The following is a detailed description of an embodiment of the present invention. This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation method and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiment.
[0059] Embodiment 1
[0060] This embodiment provides a technical solution: a semi-supervised medical image segmentation method based on a competitive two-stream network, which embeds a single image pair bidirectional copy-paste strategy and a pseudo-supervisory correction module into the competitive two-stream network architecture. The core steps are as follows:
[0061] Step 1: The original input data containing labeled images and unlabeled images are fed into the competitive two-stream network for training. The Winner net is determined by calculating the Dice score for the labeled images. The Winner net is used to generate pseudo labels for the unlabeled images. The loss generated by the Winner net and the Loser net in the supervised training process and the unsupervised loss between the Losernet's prediction results for the unlabeled images and the pseudo labels are calculated.
[0062] Step 2: Send the mixed image obtained by bidirectional copy and paste of labeled images and unlabeled images into Winner net to obtain the prediction result, and supervise the prediction result with the mixed label obtained by bidirectional copy and paste of real labels and pseudo labels to optimize the training of Winner net.
[0063] Step 3: The enhanced view of the mixed image is fed into the Winner net, and pseudo-supervised correction is performed between the original view of the mixed image and its enhanced view to further train the Winner net network.
[0064] Step 4: Repeat steps 1-3 until the model converges to obtain a trained medical image segmentation model based on a competitive two-stream network. Use the medical image segmentation model to segment the image to be processed to obtain a segmentation result.
[0065] Compared with the prior art, the present invention has the following technical features:
[0066] The core technology of the present invention is a semi-supervised medical image segmentation method based on a competitive two-stream network. By integrating the single-image bidirectional copy-paste method and the pseudo-supervisory correction strategy into the competitive two-stream network architecture, the diversity of the model is increased, and the problem of tight coupling of the teacher-student model in the MT model and the model's susceptibility to cognitive bias is effectively solved. Compared with the prior art, the present invention performs better in terms of consistency between the segmentation results and the true labels, especially in edge areas prone to misidentification or omission. The present invention can accurately segment the details of the target organ.
[0067] The present invention designs a single image pair bidirectional copy and paste method to simplify the generation process of mixed images. In addition, the method can also reduce the distribution difference between labeled data and unlabeled data by learning common semantic information in both inward and outward directions, thereby improving the accuracy of model segmentation. This method provides a new idea for alleviating the distribution difference between labeled data and unlabeled data in actual clinical scenarios.
[0068] The method proposed in the present invention evaluates the uncertainty of model prediction through KL divergence, and uses the uncertainty estimate to correct the pseudo-supervision loss between the original view of the mixed image and its enhanced view, and introduces adaptive voxel weighting for the pseudo-supervision loss, so that voxels with higher confidence have higher weights, and voxels with lower confidence have lower weights, which reduces the impact of label noise on model performance and improves the accuracy of model segmentation, which plays a positive role in the promotion of model application.
[0069] The present invention adopts a semi-supervised learning method, which significantly reduces the reliance on large-scale labeled data and reduces the labor and time costs of medical image annotation by using a small amount of labeled data and a large amount of unlabeled data for model training and optimization. In addition, a small amount of labeled data and a large amount of unlabeled data are more in line with actual clinical scenarios, which is of great value for large-scale deployment of computer-aided medical diagnosis systems in practical applications.
[0070] Embodiment 2
[0071] like Figure 1 As shown, this embodiment provides a semi-supervised medical image segmentation method based on a competitive two-stream network, and its specific steps are:
[0072] Step 1: Let the training data set be D, which includes N l labeled images and N u Unlabeled images (N l <<N u ). The dataset D can be divided into two subsets: D = D l ∪D u , where the labeled dataset is represented as The unlabeled dataset is represented as The competitive dual-stream network consists of two branches, Network-A and Network-B. The network that wins the competition is called Winner net, and the network that fails the competition is called Loser net.
[0073] Step 2: Send the labeled images to the competitive two-stream network (Network-A and Network-B) for supervised learning, and use the Dice score to evaluate the segmentation performance of the two branch networks in the competitive two-stream network.
[0074] Step 3: Use the network that wins the Dice score competition in step 2 as a pseudo-label generator to generate pseudo-labels for unlabeled images.
[0075] Step 4: Calculate the supervised loss generated by the winner net in step 2. The formula is as follows:
[0076] L s =L ce (y l , Y l )+L dice (y l , Y l )
[0077] in, Represents the segmentation result of the competitive two-stream network model on the labeled image. and Respectively represent the prediction results of Network-A and Network-B for labeled data, Y l Indicates label information, L ce is the cross entropy loss, L dice Denotes Dice loss.
[0078] Step 5: Calculate the supervised loss generated by the Loser net that failed the competition in step 2 and the unsupervised loss between the prediction result of the Loser net on the unlabeled data in step 3 and the pseudo-label generated by the Winner net. This loss includes the supervised loss L of the labeled image s , and the unsupervised loss between the predicted output of the Loser net and the generated pseudo-labels The formula is as follows:
[0079]
[0080] Among them, y u Represents the segmentation result of Loser net for unlabeled images, Y u represents the pseudo label generated by Wnner net, and α is used to balance the two loss terms.
[0081] Step 6: Randomly select a labeled image x l and an unlabeled image x u , by copying and pasting in both the outward and inward directions to obtain the mixed image x out and x in ; Among them, from x l (Foreground) Randomly crop and paste to x u (background) to generate a mixed image x out The process of copying and pasting is called outward; accordingly, u (Foreground) Randomly crop and paste to x l (background), generate another mixed image x in The process is called inward copy and paste. The specific formula is as follows:
[0082] x out =x u ⊙M+x l ⊙(1-M)
[0083] x in =x l ⊙M+x u ⊙(1-M)
[0084] Where M∈{0,1} W×H×L Represented by a labeled image x lThe resulting zero-centered mask can be used to indicate whether the voxel is from the foreground (0) or the background (1). ⊙ represents the element-wise multiplication operation.
[0085] Step 7: Use the same method as step 6 to copy and paste the pseudo labels of the unlabeled images and the real labels of the labeled images in both directions to obtain the supervision signal Y out With Y in :
[0086] Y out =Y u ⊙M+Y l ⊙(1-M)
[0087] Y in =Y l ⊙M+Y u ⊙(1-M)
[0088] Step 8: Calculate the loss L caused by the single image bidirectional copy and paste process cps Use Y in With Y out Supervise Winner net for two synthetic images x respectively in and x out The prediction result y in and out , and use β to control the contribution of unlabeled image voxels to the loss function. The formula of the loss function is expressed as follows:
[0089] L cps =L seg (y in , Y in )☉M+βL seg (y in , Y in )☉(1-M)+L seg (y out , Y out )☉(1-M)+βL seg (y out , Y out )☉M
[0090] Among them, L cps represents the total loss in the process of bidirectional copy-paste of a single image, L seg It is a linear combination of Dice loss and cross entropy loss. The hyperparameter β is used to adjust the weight of unlabeled image voxels in the loss function.
[0091] Step 9: Use random intensity scaling, random intensity shifting, and Gaussian noise to enhance the mixed image x. in and x out Generate Enhanced View and To simulate the variance of medical images.
[0092] Step 10: Perform pseudo-supervisory learning between the original view and the enhanced view of the hybrid image to help WinnerNet learn more robust feature representations, where the pseudo-supervisory loss L p is defined as follows:
[0093]
[0094] Among them, z represents logit, that is, x∈{x in , x out} is the output before the softmax activation layer, T represents the temperature hyperparameter, and σ represents the softmax function. y∈{y in ,y out}and They represent the prediction results of Winner net for the original view and the enhanced view respectively.
[0095] Step 11: Use KL divergence to evaluate the uncertainty of Winner net prediction and correct the pseudo-supervision loss calculated in step 10. is the pseudo-supervision loss L p Adaptive voxel weighting is introduced so that voxels with higher confidence have higher weights and voxels with lower confidence have lower weights, thereby reducing the impact of label noise on the performance of Winner Net. The formula is expressed as follows:
[0096]
[0097] Step 12. Calculate the overall loss of Winner net in the whole process:
[0098] L winner =L s +L scp +L pr
[0099] Among them, L s represents the supervised loss generated by the competitive phase of the two-stream network with labeled images, L cps represents the supervised loss of a single image for the bidirectional copy-paste process, L pr represents the pseudo-supervised correction loss.
[0100] Step 13. Calculate the overall loss function, which mainly includes the overall loss generated by Winner net and Loser net in the whole process:
[0101] L total =Lwinner +L loser
[0102] Step 14: Repeat steps 2-13 until the competing dual-stream network model converges.
[0103] Embodiment 3
[0104] like Figure 2 As shown, the framework diagram of the semi-supervised medical image segmentation method based on the competitive two-stream network of the present invention is repeated in the following three steps: (a) the original data is input into the competitive two-stream network, the Winner net is selected according to the prediction results of the labeled data, and then the Winner net is used to generate pseudo labels for the unlabeled data. (b) the mixed image is input into the Winner net, and the Winnernet is optimized using the labels corresponding to the original labeled images and the pseudo labels of the unlabeled images. (c) pseudo-supervised correction is performed between the mixed image and its enhanced view to further optimize the Winner net until the model converges. Finally, the above model is used to segment the image to be processed to obtain the segmentation result.
[0105] like Figure 3a , Figure 3b As shown, Figure 3a Represents the Mean Teacher model structure, Figure 3b Represents the structure of the competitive dual-stream network model. The present invention uses the competitive dual-stream network model to replace the Mean Teacher model structure. The two networks in the competitive dual-stream network model have different structures but similar performances. By encouraging the two networks to learn from each other and compete with each other, the diversity of the model can be increased and the model can be prevented from falling into cognitive bias.
[0106] like Figure 4 The figure shows the workflow of the semi-supervised learning method based on pseudo labels. The main idea of the pseudo label method is to first use the labeled data to pre-train the model, then use the trained model to generate pseudo labels for the unlabeled data, and finally use these pseudo labels and existing labels to form new training data to train the model. In this process, the quality of the pseudo labels is the main constraint of the pseudo label strategy, so the present invention intends to use Figure 2 The pseudo-supervisory correction loss L in pr , a pseudo-supervised correction is performed between the hybrid image and its enhanced view to reduce the impact of potential noise on the model segmentation performance in the pseudo-supervised stage and improve the quality of pseudo-labels.
[0107] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A semi-supervised medical image segmentation method based on competitive two-stream network, It is characterized in that The following steps are involved: S1: The original input data containing labeled images and unlabeled images are fed into the competitive two-stream network for training. The Winner net is determined by calculating the Dice score for the labeled images. The Winner net is used to generate pseudo labels for the unlabeled images. The loss generated by the Winnernet and Losernet in the supervised training process and the unsupervised loss between the prediction results of the Losernet for the unlabeled images and the pseudo labels are calculated. S2: Send the mixed image obtained by bidirectional copy-paste operation of labeled images and unlabeled images to WinnerNet to obtain the prediction result, and use the mixed label obtained by bidirectional copy-paste operation of real labels and pseudo labels to supervise the prediction result to optimize the training of Winner Net; S3: The enhanced view of the mixed image is fed into the Winner net, and pseudo-supervised correction is performed between the original view of the mixed image and its enhanced view to further train the Winner net network; S4: Repeat steps S1 to S3 until the model converges to obtain a trained medical image segmentation model based on a competitive dual-stream network, and use the medical image segmentation model to segment the image to be processed to obtain a segmentation result.
2. According to claim 1, a semi-supervised medical image segmentation method based on a competitive two-stream network, Features: In step S1, the original input data including labeled images and unlabeled images is a training data set, denoted as D, including N l labeled images and N u There are N unlabeled images, l N u , the training data set D is divided into two subsets: D = D l ∪D u , where the labeled dataset is represented as The unlabeled dataset is represented as 3. According to claim 1, a semi-supervised medical image segmentation method based on a competitive two-stream network, Features: In step S1, the competing dual-stream network includes two branches, namely Network-A and Network-B. The network that wins the competition is called Winner net, and the network that fails the competition is called Loser net.
4. According to claim 1, a semi-supervised medical image segmentation method based on a competitive two-stream network, Features: In step S1, the supervised loss generated by the winner net in the supervised learning is as follows: L s =L ce (and l ,AND l )+L dice (and l ,AND l ) in, Represents the segmentation result of the competitive two-stream network model on the labeled image. and Respectively represent the prediction results of Network-A and Network-B for labeled data, Y l Indicates label information, L ce is the cross entropy loss, L dice Denotes Dice loss.
5. According to claim 4, a semi-supervised medical image segmentation method based on a competitive two-stream network, Features: In step S1, the supervised loss generated by the Loser net that failed the competition in the supervised learning and the unsupervised loss between the prediction result of the Losernet on the unlabeled data and the pseudo-label generated by the Winner net are calculated, and the formula is as follows: Among them, y u Represents the prediction result of Loser net for unlabeled images, Y u represents the pseudo label generated by Winner net, L s is the supervised loss for labeled images, is the unsupervised loss between the prediction results of Losernet and the generated pseudo-labels, and α is used to balance the two loss terms.
6. According to claim 5, a semi-supervised medical image segmentation method based on a competitive two-stream network, Features: In step S2, the specific processing process is as follows: S21: Randomly select a labeled image x l and an unlabeled image x u , by copying and pasting in both the outward and inward directions to obtain the mixed image x out and x in ; Among them, from x l Randomly cut and paste to x u Generate a mixed image x out The process is called outward copy and paste. l The cropped patch is used as the foreground, x u The cropped patch is used as the background. u Randomly cut and paste to x l On the other hand, generate another mixed image x in The process is called inward copy and paste. u The cropped patch is used as the foreground, x l The cropped patch is used as the background; the specific processing formula is as follows: x out =x u ⊙M+x l ⊙(1-M) x in =x l ⊙M+x u ⊙(1-M) Where M∈{0,1} W×H×L Represented by a labeled image x l The generated zero-centered mask, ⊙ represents the element-wise multiplication operation; S22: Use the same method as step S21 to copy and paste the pseudo labels of the unlabeled image and the real labels of the labeled image in both directions to obtain the supervision signal Y out With Y in : AND out =And u ⊙M+Y l ⊙(1-M) AND in =And l ⊙M+Y u ⊙(1-M); S23: Calculate the loss L caused by the bidirectional copy-paste process of a single image eps , use Y in With Y out Supervise Winnernet for two synthetic images x respectively in and x out The prediction result y in and out , and use β to control the contribution of unlabeled image voxels to the loss function. The formula of the loss function is as follows: L cps =L seg (and in ,AND in )⊙M+βL seg (and in ,AND in )⊙(1-M)+L seg (and out ,AND out )⊙(1-M)+βL seg (and out ,AND out )⊙M Among them, L cps represents the total loss in the process of bidirectional copy-paste of a single image, L seg It is a linear combination of Dice loss and cross entropy loss, and the hyperparameter β is used to adjust the weight of unlabeled image voxels in the loss function.
7. The method for semi-supervised medical image segmentation based on a competitive two-stream network according to claim 6, Features: In step S3, the specific processing process is as follows: S31: Use image enhancement methods to mix image x in and x out Generate Enhanced View and S32: Pseudo-supervised learning is performed between the original view and the enhanced view of the mixed image, where the pseudo-supervised loss L p is defined as follows: Among them, z represents logit, that is, x∈{x in , x out } is the output before the softmax activation layer, T represents the temperature hyperparameter, σ represents the softmax function, y∈{y in ,y out }and Respectively represent the prediction results of Winner net for the original view and the prediction results of the enhanced view; S33: Use KL divergence to evaluate the uncertainty of WinnerNet prediction and the pseudo-supervisory loss L calculated in step S32 p Make corrections; S34: Calculate the overall loss of Winner net in the whole process: L winner =L s +L scp +L pr Among them, L s represents the supervised loss generated by the competitive phase of the two-stream network with labeled images, L cps represents the supervised loss of a single image for the bidirectional copy-paste process, L pr represents the pseudo-supervisory correction loss; S35: Calculate the overall loss function, which includes the overall loss generated by Winnernet and Losernet in the whole process: L total =L winner +L loser .
8. The method for semi-supervised medical image segmentation based on a competitive two-stream network according to claim 7, Features: In the step S31, the image enhancement method includes random intensity scaling, random intensity shifting and Gaussian noise.
9. The semi-supervised medical image segmentation method based on a competitive two-stream network according to claim 7, Features: In step S33, using the uncertainty estimation is the pseudo-supervision loss L p Adaptive voxel weighting is introduced so that voxels with higher confidence have higher weights and voxels with lower confidence have lower weights. The specific processing formula is as follows:
Citation Information
Patent Citations
Bidirectional copying and pasting semi-supervised medical image segmentation method
CN116468746A
3D medical image segmentation method based on multidimensional and global and local combination
CN117830324A
Semi-supervised medical image segmentation method for improving confidence coefficient of pseudo tag by using pixel weight
CN117994259A
Mutual learning-based semi-supervised medical image segmentation method and system
WO2023116635A1
Cited By
Semi-supervised medical image segmentation method and system based on dual-network adaptive pseudo label generation
CN119887805A
A semi-supervised medical image segmentation method and system based on dual-network adaptive pseudo-label generation
CN119887805B
Mutual guidance type semi-supervised medical image segmentation method capable of resisting knowledge forgetting
CN121074405A
An anti-knowledge forgetting mutual guidance type semi-supervised medical image segmentation method
CN121074405B
Hybrid enhanced medical image segmentation method and system based on uncertainty perception
CN121937713A
