Semi-supervised learning method and apparatus based on model framework

By combining the Mean-Teacher model and the semi-supervised learning method of contrastive learning in medical image segmentation, the problems of difficulty in annotating data and poor algorithm robustness are solved, achieving higher segmentation accuracy and robustness, and reducing the need for annotation Data dependence.

WO2024221231A1PCT designated stage expired Publication Date: 2024-10-31SHENZHEN INST OF ADVANCED TECH CHINESE ACAD OF SCI

Patent Information

Application Number
PCT/CN2023/090635
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Data annotation in medical image segmentation is difficult and relies on expert experience, resulting in low segmentation accuracy and poor algorithm robustness.

Method used

Design a semi-supervised learning method based on the model framework, combining the Mean-Teacher model and contrastive learning, through the student-teacher model and projector network, using Dice loss, cross-entropy loss and mean square error loss to optimize the network to increase consistency and Contrast loss to improve segmentation accuracy.

Benefits of technology

It effectively improves the accuracy and robustness of medical image segmentation, reduces dependence on annotation data, and obtains more accurate segmentation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023090635_31102024_PF_FP_ABST
    Figure CN2023090635_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to a semi-supervised learning method and apparatus based on a model framework. The method and apparatus comprise: providing an overall network framework, wherein the overall network framework comprises a student model, a teacher model, a projector network, and an output layer network; inputting medical images into the student model and the teacher model, and obtaining projected feature representations from the outputs of the student model and the teacher model by means of the projector network; inputting the projected feature representations into the output layer network to obtain a final segmentation result of the student model and the teacher model; and designing a network loss function, and training the overall network framework by using the network loss function. In the present invention, a Mean-Teacher model is used, and contrastive learning as a loss function is added into a teacher-student model, so that the accuracy of consistency learning is further improved, the segmentation accuracy is thus improved, and a more accurate segmentation result is finally obtained.
Need to check novelty before this filing date? Find Prior Art

Description

A semi-supervised learning method and device based on model framework Technical Field

[0001] The present invention relates to the field of medical image segmentation, and in particular to a semi-supervised learning method and device based on a model framework. Background Art

[0002] Left atrial structure provides clinicians with crucial information for diagnosing and treating atrial fibrillation, the most common heart rhythm disorder. Medical image segmentation is fundamental to a variety of medical image applications, such as cancer staging, treatment planning, radiomics analysis, and personalized healthcare. Within segmentation tasks, tumor target delineation is a critical step in cancer treatment. Its goal is to maximize the concentration of the radioactive agent within the target volume, minimizing or even eliminating damage to surrounding normal tissues and organs. However, manual tumor target delineation is a time-consuming and labor-intensive process, and the accuracy of manual annotation relies heavily on the oncologist's experience and knowledge. Variations between oncologists can lead to discrepancies in annotations for the same tumor. Supervised 3D medical image segmentation methods have achieved great success, but their reliance on large amounts of labeled data significantly limits their applicability. Semi-supervised segmentation methods address this issue by utilizing large amounts of unlabeled data with smaller amounts of labeled data. Currently, the most successful semi-supervised learning methods are based on consistency learning, minimizing the distance between model responses obtained from perturbed views of unlabeled data. Furthermore, contrastive learning has been demonstrated as an effective unsupervised learning method. Therefore, researching and developing a semi-supervised segmentation method for medical images based on contrastive learning can minimize the dependence on labeled data while ensuring the accuracy of segmentation, which has important scientific significance and application prospects in the field of medical diagnosis.

[0003] In 2019, Lequan Yu et al. published an article titled "Uncertainty-aware Self-ensembling Model for Semi-supervised 3D Left Atrium Segmentation" at the MICCAI conference. This method combines the Mean-Teacher model with Monte Carlo simulation to propose an uncertainty-based semi-supervised learning framework. The student model gradually learns from meaningful and reliable targets by leveraging the uncertainty information of the teacher model. In addition to generating target outputs, the teacher model also estimates the uncertainty of each target prediction through Monte Carlo Dropout. Guided by the estimated uncertainty, unreliable predictions are filtered out when calculating the consistency loss, retaining only reliable predictions (low uncertainty). As a result, the student model is optimized and receives more reliable supervision, which in turn encourages the teacher model to generate higher-quality targets.

[0004] Ting Chen et al. published "SimCLR: A Simple Framework for Contrastive Learning of Visual Representations" at ICML in 2020. This paper proposed a novel self-supervised contrastive learning method. The SimCLR learning framework consists of four main components: a random data augmentation module, a feature encoding module, a feature projection module, and a contrastive loss module. Its core idea is to learn representations by maximizing the consistency between different augmented views of the same data example.

[0005] In summary, the existing technology has the following technical defects:

[0006] 1. Medical image data annotation is difficult, time-consuming and labor-intensive;

[0007] 2. Manually labeled data relies on expert experience and knowledge, and there are differences between different experts;

[0008] 3. Since most algorithms are designed based on a few parts, the algorithm has poor robustness.

[0009] Summary of the Invention

[0010] The embodiments of the present invention provide a semi-supervised learning method and device based on a model framework to ultimately obtain more accurate medical image segmentation results.

[0011] According to one embodiment of the present invention, a semi-supervised learning method based on a model framework is provided, comprising the following steps:

[0012] S101: Setting up the overall network framework, which includes a student model, a teacher model, a projector network, and an output layer network;

[0013] S102: Input the medical image into the student model and the teacher model, and pass the output of the student model and the teacher model through the projector network to obtain a projection feature representation;

[0014] S103: Input the projected feature representation into the output layer network to obtain the final segmentation results of the student model and the teacher model;

[0015] S104: Design a network loss function and use the network loss function to train the overall network framework.

[0016] Furthermore, both the student model and the teacher model use V-Net as the backbone network. The network encoder and decoder each contain 4 convolution-pooling layers. The convolution kernel of the convolution layer is 3x3x3, and the convolution kernel of the pooling layer is 2x2x2. The output channels are 16, 32, 64, 128, 128, 64, 32, and 16 respectively, and the activation function uses ReLU.

[0017] Furthermore, the projector network contains two convolutional layers, the output channels of the first convolutional layer are 16, the output channels of the second convolutional layer are 8, and the convolution kernel size is 3x3x3.

[0018] Furthermore, the output layer network is a convolutional layer, the input is the output of V-Net, the number of channels is 16, the output channel of the output layer network is 2, and the convolution kernel size is 1x1x1.

[0019] Furthermore, the network loss function is divided into four parts, which is the sum of the student model supervised loss, the student-teacher model consistency loss, the student-teacher model cross loss, and the student-teacher model contrast loss.

[0020] Furthermore, for the supervised loss of the student model, given the training dataset D = {(x1,y1),(x2,y2),…,(x N ,y N )}, where x={x1,x2,…,x N}Network input image, y={y1,y2,…,y N} is an image labeled from a doctor, N is the total number of training samples; the student supervision loss uses Dice loss and cross entropy loss, expressed as:

[0021] in Represents the prediction result of the student model for labeled data, and ε is a small constant.

[0022] Furthermore, the consistency loss and cross loss of the student model and the teacher model both use mean square error loss, which is expressed as:

[0023] y 1i and are the output results of the student model and the teacher model respectively.

[0024] Furthermore, the contrast loss between the student model and the teacher model is expressed as:

[0025] in is an indicative function whose value is 1 if and only if k≠i, otherwise it is 0; τ is a constant; is a cosine similarity function; z i and z j They are the projection output results of the student model and the teacher model respectively.

[0026] Furthermore, the Adam optimizer is used to optimize the loss function.

[0027] According to another embodiment of the present invention, a semi-supervised learning apparatus based on a model framework is provided, comprising:

[0028] The framework setting unit is used to set the overall network framework, which includes the student model, teacher model, projector network and output layer network;

[0029] A projection feature representation acquisition unit is used to input the medical image into the student model and the teacher model, and pass the output of the student model and the teacher model through the projector network to obtain the projection feature representation;

[0030] The final segmentation result acquisition unit is used to input the projection feature representation into the output layer network to obtain the final segmentation results of the student model and the teacher model;

[0031] The network loss function design unit is used to design the network loss function and use the network loss function to train the entire network framework.

[0032] A storage medium storing a program file capable of implementing any of the above-mentioned semi-supervised learning methods based on the model framework.

[0033] A processor is used to run a program, wherein when the program is run, any one of the above-mentioned semi-supervised learning methods based on the model framework is executed.

[0034] The semi-supervised learning method and device based on the model framework in the embodiment of the present invention takes into account self-supervised learning and contrastive learning methods, and designs a semi-supervised learning framework. Combined with the Mean-Teacher model, contrastive learning is added as a loss function to the teacher-student model to further increase the accuracy of consistency learning, thereby improving the segmentation accuracy performance. The present invention ultimately obtains more accurate segmentation results. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] FIG1 is a diagram showing a semi-supervised segmentation network framework based on contrastive learning according to the present invention;

[0036] FIG2 is an experimental verification diagram of the present invention. DETAILED DESCRIPTION

[0037] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0038] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0039] To address the issue of limited annotated data for medical image segmentation, this paper considers self-supervised learning and contrastive learning methods, and designs a semi-supervised learning framework. This framework, combined with the Mean-Teacher model, adds contrastive learning as a loss function to the teacher-student model, further increasing the accuracy of consistency learning and, consequently, improving segmentation accuracy. This paper proposes a semi-supervised learning method and device based on a model framework, combining consistency learning and contrastive learning, and utilizing mean squared error loss to alternately optimize model results, ultimately yielding more accurate segmentation results.

[0040] To achieve the above-mentioned purpose, the specific operation steps of the technical solution adopted by the present invention are as follows:

[0041] Step 1: Set up the overall network framework

[0042] The entire network adopts the teacher-student model framework, as shown in Figure 1. It mainly includes the student model, teacher model, projector network and output layer network.

[0043] Both the student model and the teacher model use V-Net as the backbone network. The network encoder and decoder each contain 4 convolution-pooling layers. The convolution kernel of the convolution layer is 3x3x3, and the convolution kernel of the pooling layer is 2x2x2. The output channels are 16, 32, 64, 128, 128, 64, 32, and 16 respectively, and the activation function uses ReLU.

[0044] Table 1 V-Net network parameter settings

[0045] Step 2: Set up the comparative projector network

[0046] First, the output of the student-teacher model is passed through the projector network to obtain the projected feature representation. The projector network consists of two convolutional layers. The first convolutional layer has 16 output channels, and the second convolutional layer has 8 output channels. The convolution kernel size of both layers is 3x3x3.

[0047] Step 3: Set up the output layer network

[0048] As shown in Figure 1, the output layer network is a convolutional layer, the input is the output of V-Net, the number of channels is 16, the output channel of the output layer network is 2, the convolution kernel size is 1x1x1, and the output is the final segmentation result of the student-teacher model.

[0049] Step 4: Design network loss function

[0050] The entire network loss function is divided into four parts: the student model labeled supervised loss, the student-teacher model consistency loss, the student-teacher model cross loss, and the student-teacher model contrast loss.

[0051] For the supervised loss of the student model, given a training dataset D = {(x1,y1),(x2,y2),…,(x N ,y N )}, where x={x1,x2,…,x N}Network input image, y={y1,y2,…,y N} is an image labeled from a doctor, and N is the total number of training samples. The student supervision loss uses Dice loss and cross entropy loss, expressed as:

[0052] in It represents the prediction result of the student model for the labeled data. ε is a small constant to avoid the denominator being 0. It is set to 0.001 in the experiment.

[0053] The consistency loss and cross loss of the student-teacher model both use mean squared error loss, expressed as:

[0054] y 1i and are the output results of the student model and the teacher model respectively.

[0055] The student-teacher model contrast loss is expressed as:

[0056] in is an indicative function that takes the value 1 if and only if k≠i, and 0 otherwise. τ is a constant set to 2. is a cosine similarity function. i and z j They are the projection output results of the student model and the teacher model respectively.

[0057] The final loss function of the network is the sum of the above four parts.

[0058] Step 5: For the overall network framework designed above, use the Adam optimizer to optimize the loss function.

[0059] Step 6: Train the network.

[0060] Compared with existing technologies, this invention offers the following advantages: By considering the consistency between the student and teacher models, the invention increases the cross-loss, allowing the two models to label each other and improving the accuracy of semi-supervised learning. Furthermore, by introducing an unsupervised learning mechanism, such as contrastive learning, into the network, with the assistance of partially labeled data, it further improves segmentation accuracy. This invention effectively improves the performance of network-based supervised segmentation, resulting in better segmentation results.

[0061] The present invention has been verified using MRI data, and has been proven to be feasible through experiments, simulations, and applications, with the experimental results shown in Figure 2. In addition to MRI data, the present invention can also be applied to medical image data of other modalities, such as CT and PET.

[0062] Example 2

[0063] A storage medium storing a program file capable of implementing any of the above-mentioned semi-supervised learning methods based on the model framework.

[0064] Example 3

[0065] A processor is used to run a program, wherein when the program is run, any one of the above-mentioned semi-supervised learning methods based on the model framework is executed.

[0066] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0067] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0068] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the system embodiments described above are only exemplary. For example, the division of units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0069] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected to achieve the purpose of the present embodiment according to actual needs.

[0070] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0071] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program codes.

[0072] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.

Claims

1. A semi-supervised learning method based on a model framework, characterized in that: The following steps are involved: S101: Setting up the overall network framework, which includes a student model, a teacher model, a projector network, and an output layer network; S102: inputting the medical image into the student model and the teacher model, and passing the output of the student model and the teacher model through the projector network to obtain a projection feature representation; S103: Input the projected feature representation to the output layer network to obtain the final segmentation results of the student model and the teacher model; S104: Design a network loss function, and use the network loss function to train the overall network framework.

2. The semi-supervised learning method based on the model framework according to claim 1, characterized in that: Both the student model and the teacher model use V-Net as the backbone network. The network encoder and decoder contain 4 convolution-pooling layers respectively. The convolution kernel of the convolution layer is 3x3x3, and the convolution kernel of the pooling layer is 2x2x2. The output channels are 16, 32, 64, 128, 128, 64, 32, and 16 respectively, and the activation function uses ReLU.

3. The semi-supervised learning method based on the model framework according to claim 1, characterized in that: The projector network contains two convolutional layers. The output channels of the first convolutional layer are 16, and the output channels of the second convolutional layer are 8. The convolution kernel size is 3x3x3.

4. The semi-supervised learning method based on the model framework according to claim 1, characterized in that: The output layer network is a convolutional layer, the input is the output of V-Net, the number of channels is 16, the output channel of the output layer network is 2, and the convolution kernel size is 1x1x1.

5. The semi-supervised learning method based on the model framework according to claim 1, characterized in that: The network loss function is divided into four parts, which is the sum of the student model supervised loss, the student-teacher model consistency loss, the student-teacher model cross loss, and the student-teacher model contrast loss.

6. The semi-supervised learning method based on the model framework according to claim 5, characterized in that: For the supervised loss of the student model, given a training dataset D = {(x1,y1),(x2,y2),…,(x N ,y N )}, Where x={x1,x2,…,x N }Network input image, y={y1,y2,…,y N } is the image annotated by the doctor, N is the total number of training samples; the student supervision loss uses Dice loss and cross entropy loss, expressed as: in Represents the prediction result of the student model for labeled data, and ε is a small constant.

7. The semi-supervised learning method based on the model framework according to claim 5, characterized in that: The consistency loss and cross loss of the student model and the teacher model both use mean square error loss, expressed as: y 1i and are the output results of the student model and the teacher model respectively.

8. The semi-supervised learning method based on the model framework according to claim 5, characterized in that: The contrast loss between the student model and the teacher model is expressed as: in is an indicative function, whose value is 1 if and only if k≠i, otherwise it is 0; τ is a constant; is a cosine similarity function; z i and z j They are the projection output results of the student model and the teacher model respectively.

9. The semi-supervised learning method based on the model framework according to claim 1, characterized in that: The Adam optimizer is used to optimize the loss function.

10. A semi-supervised learning device based on a model framework, characterized in that: include: The framework setting unit is used to set the overall network framework, which includes the student model, the teacher model, the projector network and the output layer network; A projection feature representation acquisition unit is used to input the medical image into the student model and the teacher model, and obtain the projection feature representation by passing the output of the student model and the teacher model through the projector network; The final segmentation result acquisition unit is used to input the projection feature representation into the output layer network to obtain the final segmentation results of the student model and the teacher model; The network loss function design unit is used to design the network loss function and use the network loss function to train the overall network framework.

Citation Information

Patent Citations

  • Coronary angiography blood vessel image segmentation method based on semi-supervised average teacher model

    CN113256639A

  • Medical image segmentation method of semi-supervised convolutional neural network based on comparative learning

    CN114266739A

  • Semi-supervised medical image segmentation method and system based on mutual learning

    CN114418954A

  • Method and device for training neural network for image recognition

    CN114819050A

  • Uncertainty guided semi-supervised neural network training for image classification

    US20210216825A1

Cited By

  • Semi-supervised medical image segmentation method and device

    CN119693392A

  • Semi-supervised stomatological image segmentation method based on cross-frequency cooperative training

    CN119991691A

  • Convolutional neural network-oriented universal performance enhanced distillation method

    CN121413707A

  • Semi-supervised medical image segmentation method based on causal uncertainty decomposition

    CN121544591A

  • A semi-supervised medical image segmentation method based on causal uncertainty decomposition

    CN121544591B