Multi-modal semi-supervised multi-organ segmentation method and device based on text guidance

By introducing a multimodal semi-supervised method of text-guided in medical image segmentation, the high cost of data acquisition and pseudo-label noise in the prior art is solved, the model's ability to identify organ boundaries and segmentation quality is improved, and the small targets are enhanced and a few categories of segmentation capabilities, achieving efficient data utilization.

CN118898720AInactive Publication Date: 2024-11-05HANGZHOU INST FOR ADVANCED STUDY UCAS

Patent Information

Application Number
CN202411384838.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2024-11-05
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In medical image segmentation, existing multimodal learning methods such as CLIP are time-consuming and computationally intensive in data acquisition and processing, and cross-pseudo-supervised methods rely on model initialization and data perturbation strategies that are unstable, making it difficult to process data with unbalanced categories , resulting in pseudo-label noise and performance instability.

Method used

Using a multimodal semi-supervised method based on text guidance, the embedded encoding of organ category features is generated through text encoder, and a parallel segmentation model is constructed for cross-semi-supervised training. The model parameters are optimized using supervision losses and cross-semi-supervised losses to reduce large-scale annotations. Data dependence enhances the model's ability to segment small goals and a few categories.

Benefits of technology

Improve the model's ability to identify organ boundaries, enhance the accuracy of pseudo-labels, improve the robustness and segmentation quality of the model, reduce the dependence on large-scale annotation data, and improve data utilization efficiency, especially in category imbalance Excellent in segmentation with small targets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898720A_ABST
    Figure CN118898720A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-modal semi-supervised multi-organ segmentation method and device based on text guidance, and the method comprises the steps: employing a text encoder to generate a class feature embedded code for each class of organs based on text description in advance, and preparing an image set; two parallel segmentation models with different initial parameters are constructed, classification feature embedded codes of each image and each organ in the image set pass through each segmentation model to generate a segmentation weight of each organ, and a prediction probability graph of each type of organs is calculated by using the segmentation weight; constructing supervised loss for the prediction probability graph of each type of organs based on labels, generating pseudo labels based on the prediction probability graphs, constructing cross semi-supervised loss between the two segmentation models based on the pseudo labels, and optimizing parameters of the two segmentation models by using the supervised loss and the cross semi-supervised loss; a parameter-optimized segmentation model is utilized to perform multi-organ segmentation, so that the recognition capability of the model on the organ boundary can be enhanced, and the robustness and segmentation quality of the model are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent medical technology, and in particular relates to a text-guided multi-modal semi-supervised multi-organ segmentation method and device. Background Art

[0002] In the field of medical image analysis, multi-organ segmentation technology is crucial for disease detection, diagnosis, and treatment planning. However, automated segmentation technology faces major challenges due to the complexity of organ morphology and fuzzy boundaries, especially in abdominal datasets. For example, even the segmentation of larger organs such as the stomach is often less than satisfactory in accuracy. In addition, acquiring large-scale annotated data in medical imaging is expensive and time-consuming, and expert-level voxel-level annotation may take nearly an hour, which limits the number and diversity of CT scans. These limitations have prompted people to explore semi-supervised learning (SSL) to reduce the reliance on large amounts of annotations.

[0003] Semi-supervised learning minimizes the labeling requirements by integrating a small amount of labeled data with a large amount of unlabeled data, but it is still challenging to maintain high performance with limited data. Current SSL methods, such as pseudo-label generation and contrastive learning, although they utilize unlabeled data, still have limitations in multi-organ segmentation. Simple pseudo-labels may introduce label noise and affect training results. In addition, existing methods also face problems such as class imbalance and small object segmentation.

[0004] Multimodal learning significantly improves the model's understanding ability by integrating image and text information. In vision-language models, combining image content with text descriptions can improve semantic understanding. The contrastive language-image pre-training model CLIP is a model in this field. It learns cross-modal representations by aligning large-scale image-text pairs and performs well in a variety of tasks. If it is directly applied to the field of medical images, there are the following shortcomings: CLIP requires a large number of image-text pairs for pre-training, which may be very time-consuming and expensive in data acquisition and processing; the features obtained by CLIP on natural images may not be fully applicable to medical images because medical images have unique properties; CLIP models usually require a lot of computing resources for training and reasoning, which may limit its application in resource-constrained environments.

[0005] Cross Pseudo Supervision (CPS) is a semi-supervised learning method that is mainly used to improve model performance in medical image segmentation tasks. CPS generates pseudo labels by leveraging unlabeled data and uses these pseudo labels to train models. Specifically, CPS uses two or more models that provide pseudo labels to each other during training. Each student model uses its own parameters to predict unlabeled data and uses these predictions as training labels for the other model. The key to this method is to improve the quality of pseudo labels through mutual learning and consistency loss between models. However, there are also the following shortcomings: the accuracy of pseudo labels directly affects the training effect of the model. If the prediction of the initial model is inaccurate, the generated pseudo labels may introduce noise, thereby affecting the performance of the final model; CPS depends on the initialization of the model and the data perturbation strategy. Inappropriate initialization or perturbation may cause unstable model performance or difficulty in convergence; when dealing with data with imbalanced categories, CPS may have difficulty generating high-quality pseudo labels because the model may be biased towards the majority class and ignore the minority class. Summary of the invention

[0006] In view of the above, the object of the present invention is to provide a text-guided multimodal semi-supervised multi-organ segmentation method and device, aiming to solve at least one of the above-mentioned technical problems existing in multi-organ segmentation using multimodal learning and cross-pseudo-supervision.

[0007] To achieve the above-mentioned object of the invention, an embodiment provides a text-guided multi-modal semi-supervised multi-organ segmentation method, comprising the following steps: Prepare an image set containing labeled multi-organ images and unlabeled multi-organ images, and use a text encoder to pre-generate a text-guided category feature embedding encoding for each type of organ based on a medical prompt text description; Two parallel segmentation models with different initial parameters are constructed. Each segmentation model includes an image encoder, an image decoder, an organ segmentation parameter generation module, and a segmentation head. Each image in the image set is passed through the image encoder of each segmentation model to obtain a coding feature. The coding feature is then passed through the image decoder to obtain a decoding feature. The coding feature is embedded in the coding with the category feature of each organ and fused through the organ segmentation parameter generation module to generate the segmentation weight of each organ. The segmentation weight is assigned to the segmentation head. The segmentation head uses the assigned segmentation weight to calculate the predicted probability map of each type of organ based on the decoding feature as the segmentation result. A supervised loss is constructed based on the predicted probability map of each organ type, a pseudo label is generated based on the predicted probability map, and a cross semi-supervised loss is constructed between the two segmentation models based on the pseudo label, and the supervised loss and the cross semi-supervised loss are used to optimize the parameters of the two segmentation models; Multi-organ segmentation using a segmentation model with optimized parameters.

[0008] Preferably, the method of using a text encoder to generate a text-guided category feature embedding code for each organ type based on a medical prompt text description in advance comprises: The medical prompt text description with organ categories is input into the text encoder to generate the category feature embedding code of each organ type, which is expressed as ,in, F is the feature code, subscript t Represents from text encoder, subscript k Represents organ class.

[0009] Preferably, the organ segmentation parameter generation module includes global average pooling, 3D convolution layer, and multi-layer perceptron; The encoded features output by the image encoder are globally averaged pooled to reduce the spatial dimension and then concatenated with the pre-generated category feature embedding code of each organ to obtain the concatenated features. The concatenated features are passed through a 3D convolutional layer to obtain the fused features. The fused features are passed through a multi-layer perceptron to generate the segmentation weights of each organ.

[0010] Preferably, the supervised loss is constructed based on the predicted probability map of each organ type labeled as : ;

[0011] Among them, the subscript Indicates the image index. The subscripts 1 and 2 are used to distinguish the two segmentation models. The superscript l Indicates that there is a label. represents a set of labeled images, Indicates the number of labeled images in the labeled image set, Labels representing labeled images Predicted probability plot of a segmentation model with labeled images The supervision loss between Labels representing labeled images Prediction probability map of another segmentation model with labeled images The supervision loss between , the supervision loss of each segmentation model includes Dice loss and binary cross entropy loss.

[0012] Preferably, the pseudo label is generated based on the predicted probability map, expressed as and : ; ; Among them, the superscript uIndicates no label, superscript k represents the organ type index, Indicates i unlabeled images in a segmentation model for the k Prediction probability plot of organoids, Indicates i unlabeled images are used in another segmentation model for i Prediction probability plot of organoids, It means taking the maximum probability in the prediction probability map, Indicates based on The pseudo labels produced, Indicates based on Generated pseudo labels.

[0013] Preferably, the cross semi-supervised loss between the two segmentation models is constructed based on pseudo labels, expressed as and : ; in, and They represent the cross semi-supervised losses of the two segmentation models, K represents the total number of organ categories, represents the set of unlabeled images, Represents the number of unlabeled images in the unlabeled image set.

[0014] Preferably, when using supervised loss and cross-semi-supervised loss to optimize the parameters of the two segmentation models, the stochastic gradient descent method is used to optimize the parameters of the segmentation model, and the CPS weight increasing function is introduced to gradually increase the proportion of the cross-semi-supervised loss to further optimize the parameters of the segmentation model.

[0015] To achieve the above-mentioned object of the invention, an embodiment of the present invention further provides a text-guided multi-modal semi-supervised multi-organ segmentation device, comprising: A preprocessing unit, which is used to prepare an image set including labeled multi-organ images and unlabeled multi-organ images, and use a text encoder to generate a text-guided category feature embedding code for each type of organ based on a text description in advance; A model construction unit, which is used to construct two parallel segmentation models with different initial parameters, each segmentation model includes an image encoder, an image decoder, an organ segmentation parameter generation module, and a segmentation head. Each image in the image set is passed through the image encoder of each segmentation model to obtain a coding feature, and the coding feature is then passed through the image decoder to obtain a decoding feature. The coding feature is embedded in the coding with the category feature of each organ and fused through the organ segmentation parameter generation module to generate a segmentation weight for each organ, and the segmentation weight is assigned to the segmentation head. The segmentation head uses the assigned segmentation weight to calculate the prediction probability map of each type of organ based on the decoding feature; A parameter optimization unit, which is used to construct a supervised loss based on a predicted probability map of each organ type with a label, generate a pseudo label based on the predicted probability map, and construct a cross semi-supervised loss between two segmentation models based on the pseudo label, and optimize the two segmentation model parameters using the supervised loss and the cross semi-supervised loss; The organ segmentation unit is used to perform multi-organ segmentation using a segmentation model with optimized parameters.

[0016] To achieve the above-mentioned purpose of the invention, an embodiment also provides a computing device, including a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the above-mentioned text-guided multimodal semi-supervised multi-organ segmentation method.

[0017] To achieve the above-mentioned purpose of the invention, an embodiment further provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the above-mentioned text-guided multi-modal semi-supervised multi-organ segmentation method.

[0018] Compared with the prior art, the present invention has the following beneficial effects: The present invention pre-calculates the text description of each type of organ to generate a category feature embedding code as a text guide, and uses the category feature embedding code to guide the generation of segmentation weights for each type of organ, which can enhance the model's ability to recognize organ boundaries and improve the accuracy of pseudo labels, thereby improving the robustness and segmentation quality of the model. At the same time, pseudo labels are generated based on predicted probability maps, and semi-supervised training is performed based on pseudo labels, reducing dependence on large-scale labeled data and improving data utilization efficiency. Furthermore, multimodal fusion segmentation is performed based on text and images for each type of organ to enhance the segmentation ability of small targets and a small number of categories. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 is a flowchart of a text-guided multi-modal semi-supervised multi-organ segmentation method provided by an embodiment; Figure 2 is a schematic diagram of the structure of a segmentation model provided in an embodiment; Figure 3 It is a structural schematic diagram of a text-guided multi-modal semi-supervised multi-organ segmentation device provided in an embodiment. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the scope of protection of the present invention.

[0022] The inventive concept of the present invention is: the present invention provides a text-guided multi-modal semi-supervised multi-organ segmentation method and device, which integrates text knowledge into the cross pseudo-supervision (CPS) framework to improve the segmentation model's ability to focus on relevant features in medical images and reduce dependence on pixel-level annotations. Specifically, the technical problems existing in the existing medical image segmentation technology and the solutions adopted include: 1. Complexity of organ morphology and fuzzy boundaries: Existing technologies often have difficulty in accurately segmenting organs with complex morphology and fuzzy boundaries, especially in abdominal CT scans. The technical solution of the present invention enhances the model's ability to recognize organ boundaries by introducing text information to assist image analysis.

[0023] 2. High cost and time consumption of large-scale annotated data acquisition: Accurate annotation of medical images requires professional knowledge and a lot of time, which limits the amount and diversity of data available for training. The technical solution of the present invention adopts a semi-supervised learning method to reduce the dependence on large-scale annotated data and improve data utilization efficiency.

[0024] 3. Label noise problem in pseudo-label generation: In semi-supervised learning, the inaccuracy of pseudo-labels may affect the model training effect. The technical solution of the present invention improves the accuracy of pseudo-labels through a text-guided strategy, thereby improving the robustness and segmentation quality of the model.

[0025] 4. Category imbalance and small target segmentation problem: The size and frequency differences of different organs in medical images may lead to insufficient recognition of small organs or minority categories by the model. The technical solution of the present invention enhances the segmentation ability of small targets and minority categories through a multimodal fusion strategy.

[0026] like Figure 1 As shown, the embodiment provides a text-guided multi-modal semi-supervised multi-organ segmentation method, comprising the following steps: S1, prepare an image set containing labeled multi-organ images and unlabeled multi-organ images, and use a text encoder to pre-generate a text-guided category feature embedding code for each organ based on the medical prompt text description.

[0027] In the embodiment, preparing an image set including labeled multi-organ images and unlabeled multi-organ images specifically includes: 1. Dataset selection. You can choose FLARE2022 and AMOS as image sets for training and evaluation. The FLARE2022 dataset contains 13 organ types: liver (Liv), spleen (Spl), pancreas (Pan), right kidney (R. Kidney), left kidney (L. Kidney), stomach (Sto), gallbladder (Gal), esophagus (Eso), aorta (Aor), inferior vena cava (IVC), right adrenal gland (RAG), left adrenal gland (LAG) and duodenum (Duo). In addition to these 13 organ types, the AMOS dataset also contains bladder (Bl) and prostate / uterus (P / U).

[0028] 2. Image set division. The labeled images in the FLARE2022 image set are divided into training set, validation set and test set in a ratio of 6:2:2. The unlabeled images in the FLARE2022 image set are added to the training set to form two different training sets. The proportions of labeled images in the two training sets are 50% and 10%, respectively. The AMOS image set is also divided into training set, validation set and test set in a ratio of 6:2:2. The unlabeled images in the AMOS image set are added to the training set to form two different training sets. At this time, the proportions of labeled images in the two training sets are set to 10% and 50%. Each training set contains a labeled image set and an unlabeled image set, which can be used to train the segmentation model and optimize the model parameters.

[0029] 3. Data preprocessing. Standardize the CT scanning direction to the left posterior inferior (LPI) direction; crop the voxel value to the range of [–325, 325] Hounsfield units (HU) to enhance the contrast of foreground organs and suppress background interference; standardize the voxel spacing to [1.25, 1.25, 2.5] to ensure image consistency; implement MinMax normalization processing, the formula is ,in and Represents pixels The 0.5th and 99.5th percentiles.

[0030] In the embodiment, a text encoder is used in advance to generate a text-guided category feature embedding code for each organ type based on the medical prompt text description, and the category feature embedding code is pre-calculated and stored in order to provide consistent semantic guidance during training and reasoning without adding significant computational overhead. Specifically, the pre-trained CLIP text encoder "ViT-B / 32" can be used as the backbone of text extraction, and the medical prompt text description with the organ category is input into the text encoder such as ViT-B / 32, and the category feature embedding code of each organ type is obtained after calculation, wherein the medical prompt text description with the organ category can be expressed as "a computed tomography scan of [CLS]", [CLS] represents the organ category, and the category feature embedding code is expressed as , F is the feature code, subscript t Represents from text encoder, subscript k Represents organ class.

[0031] S2, builds two parallel segmentation models with different initial parameters. The segmentation models generate prediction probability maps based on image pairs.

[0032] In the embodiment, two segmentation models are constructed and Using parallel processing, and two segmentation models and Share the same structure but have different initialization parameters and .like Figure 2 As shown in the figure, each segmentation model includes an image encoder, an image decoder, an organ segmentation parameter generation module, and a segmentation head. Each image in the image set (labeled and unlabeled images) is encoded by the image encoder of each segmentation model. and ,in F Represents coding features, subscript v represents the feature from the visual branch, subscript 1 or 2 represents the feature from segmentation model 1 and segmentation model 2, encoding features and Then the image decoder of segmentation model 1 and segmentation model 2 is used to obtain the decoding features. and .

[0033] Encoding features and Embedding encoding with the category features of each organ The organ segmentation parameter generation module of segmentation model 1 and segmentation model 2 is fused to form a fusion feature and , and based on and Generate segmentation weights for each organ in the two segmentation models and Specifically, the organ segmentation parameter generation module includes global average pooling, 3D convolution layer, and multi-layer perceptron; the encoding features output by the image encoder and After global average pooling (GAP) reduces the spatial dimension, the pre-generated category feature embedding encoding of each organ is obtained. Concatenate (Concat) to get the concatenated features, and pass the concatenated features through the 3D convolution layer (Conv3D) to get the fused features and , expressed as: ; ; Fusion Features and After passing through the multi-layer perceptron, the segmentation weights for each organ in segmentation model 1 and segmentation model 2 are generated and , and the split weight and Assign values ​​to the two segmentation heads in segmentation model 1 and segmentation model 2 respectively, and the two segmentation heads use the assigned segmentation weights and Based on decoding features and Calculate the predicted probability map for each organ type and As the segmentation result.

[0034] S3, constructs a supervised loss based on the predicted probability map of each organ type, generates pseudo labels based on the predicted probability map, and constructs a cross semi-supervised loss between the two segmentation models based on the pseudo labels, and uses the supervised loss and cross semi-supervised loss to optimize the parameters of the two segmentation models.

[0035] In the embodiment, a supervised loss is constructed based on the predicted probability map of each organ type, which is used to measure the performance of the segmentation model on labeled images, and is specifically expressed as : ; Among them, the subscript Indicates the image index. The subscripts 1 and 2 are used to distinguish the two segmentation models. The superscriptl Indicates that there is a label. represents a set of labeled images, Indicates the number of labeled images in the labeled image set, Labels representing labeled images Predicted probability plot of a segmentation model with labeled images The supervision loss between Table has labels for labeled images Prediction probability map of another segmentation model with labeled images The supervision loss between , the supervision loss of each segmentation model includes Dice loss and binary cross entropy loss.

[0036] Dice loss is used to measure the similarity between two labeled images and is expressed as : ; in, represents the predicted probability map output by the segmentation model, represents the true label, is a very small constant to prevent the denominator from being zero, N represents the number of labeled images, and i is the image index.

[0037] Binary cross entropy loss is used to measure the difference between the predicted probability value and the true label value, expressed as :

[0038] In the embodiment, a pseudo label is generated based on the predicted probability map, which is expressed as and : ; ; Among them, the superscript u Indicates no label, superscript k represents the organ type index, Indicates i unlabeled images in a segmentation model for the k Prediction probability plot of organoids, Indicates i unlabeled images are used in another segmentation model for i Prediction probability plot of organoids, It means taking the maximum probability in the prediction probability map, Indicates based on The pseudo labels produced, Indicates based on Generated pseudo labels.

[0039] Based on pseudo-label and Construct a cross-semi-supervised loss between the two segmentation models, which encourages them to produce similar predictions, expressed as and : ; in, and They represent the cross semi-supervised losses of the two segmentation models, K represents the total number of organ categories, represents the set of unlabeled images, Represents the number of unlabeled images in the unlabeled image set.

[0040] In the embodiment, the total loss function constructed based on the supervised loss and the cross semi-supervised loss is expressed as :

[0041] in, is a hyperparameter used to balance the contribution of the two parts of the loss.

[0042] Specifically, when the total loss function is used to optimize the parameters of the two segmentation models, the stochastic gradient descent method is used to optimize the parameters of segmentation model 1 and segmentation model 2 to stabilize the training process and improve the overall segmentation accuracy. The CPS weight increment function is also introduced during the training process to gradually increase the proportion of the cross semi-supervised loss. , such as setting it to 0.1 first, and using the CPS weight increment function during training to gradually increase The parameters of the two segmentation models are further optimized to improve the model performance.

[0043] Through the above training process, both labeled images and unlabeled images can be effectively utilized to improve the segmentation performance, especially when the number of labeled images is limited.

[0044] S4, Multi-organ segmentation using a segmentation model with optimized parameters.

[0045] In an embodiment, during segmentation inference, the image to be segmented is input into a segmentation model with optimized parameters, encoded by an image encoder to obtain encoded features, and decoded by an image decoder to obtain decoded features. The encoded features are embedded in the encoding with pre-calculated category features of each type of organ and input into an organ segmentation parameter generation module to generate segmentation weights. The segmentation weights are assigned to a segmentation head, and the segmentation head uses the assigned segmentation weights to calculate a predicted probability map of each type of organ based on the decoded features as the segmentation result.

[0046] The above-mentioned embodiments provide a multi-organ segmentation method and aim to improve the effect of multi-organ segmentation. The method of the present invention combines the text-guided cross-pseudo-supervision (TG-CPS) strategy and parameterized multi-modal fusion, which can generate high-quality pseudo-labels and enhance the segmentation model's understanding of the anatomical structure in the image. The method of the present invention was also trained and tested on public data sets, and a number of experiments were designed to prove the innovation and effectiveness of the method of the present invention. The efficient use of data by the method of the present invention was illustrated by constructing different training sets to increase the proportion of unlabeled images. Other semi-supervised models were also compared, and the average Dice and Jaccard of different models were statistically calculated. The experimental results show that the method of the present invention is superior to other semi-supervised models. The main innovation of the present invention is to use text labels to solve the problems existing in the traditional single-modal segmentation model, such as category imbalance, much pseudo-label noise, small targets, etc. The ablation experiment of the present invention introducing this guide branch was carried out to verify the effectiveness of the innovation of the present invention. When training is based on only a single segmentation model during the training process, the average Dice value for all organs is 79.24±0.56, and the average Jaccard value is 67.99±0.56. When training is based on two segmentation models and two text-guided branches are introduced, the average Dice value for all organs is 81.63±0.10, and the average Jaccard value is 72.48±0.08. The experimental results show that the present method has a significant effect in enhancing the utilization of unlabeled data and improving the overall segmentation accuracy.

[0047] like Figure 3 As shown, the embodiment also provides a text-guided multi-modal semi-supervised multi-organ segmentation device 30, including a preprocessing unit 31, a model building unit 32, a parameter optimization unit 33, and an organ segmentation unit 34, wherein the preprocessing unit 31 is used to prepare an image set including labeled multi-organ images and unlabeled multi-organ images, and a text encoder is used to generate a text-guided category feature embedding code based on a text description for each type of organ in advance; the model building unit 32 is used to construct two parallel segmentation models with different initial parameters, and the segmentation model generates a prediction probability map based on the image pair; the parameter optimization unit 33 is used to construct a supervised loss based on the prediction probability map of each type of organ with a label, generate a pseudo-label based on the prediction probability map, and construct a cross-semi-supervised loss between the two segmentation models based on the pseudo-label, and use the supervised loss and the cross-semi-supervised loss to optimize the parameters of the two segmentation models; the organ segmentation unit 34 is used to perform multi-organ segmentation using a segmentation model with optimized parameters.

[0048] It should be noted that the text-guided multimodal semi-supervised multi-organ segmentation device provided in the above embodiment should be illustrated by the division of the above-mentioned functional units when performing text-guided multimodal semi-supervised multi-organ segmentation. The above-mentioned function allocation can be completed by different functional units as needed, that is, the internal structure of the terminal or server is divided into different functional units to complete all or part of the functions described above. In addition, the text-guided multimodal semi-supervised multi-organ segmentation device provided in the above embodiment belongs to the same concept as the text-guided multimodal semi-supervised multi-organ segmentation method embodiment. The specific implementation process is detailed in the text-guided multimodal semi-supervised multi-organ segmentation method embodiment, which will not be repeated here.

[0049] Based on the same inventive concept, an embodiment further provides a computing device, including a memory and one or more processors, wherein an executable code is stored in the memory, and when the one or more processors execute the executable code, the computing device is used to implement the above-mentioned text-guided multi-modal semi-supervised multi-organ segmentation method, which specifically includes the following steps: S1, prepare an image set containing labeled multi-organ images and unlabeled multi-organ images, and use a text encoder to generate a text-guided category feature embedding code for each type of organ based on the text description in advance; S2, build two parallel segmentation models with different initial parameters.

[0050] Each segmentation model includes an image encoder, an image decoder, an organ segmentation parameter generation module, and a segmentation head. Each image in the image set is passed through the image encoder of each segmentation model to obtain a coding feature, and the coding feature is then passed through the image decoder to obtain a decoding feature. The coding feature is embedded in the coding with the category feature of each organ and fused through the organ segmentation parameter generation module to generate the segmentation weight of each organ, and the segmentation weight is assigned to the segmentation head. The segmentation head uses the assigned segmentation weight to calculate the predicted probability map of each type of organ based on the decoding feature. S3, constructing a supervised loss based on the predicted probability map of each organ type, generating a pseudo label based on the predicted probability map, and constructing a cross semi-supervised loss between the two segmentation models based on the pseudo label, and optimizing the parameters of the two segmentation models using the supervised loss and the cross semi-supervised loss; S4, Multi-organ segmentation using a segmentation model with optimized parameters.

[0051] The computing device provided in the embodiment, in addition to the processor and memory, also includes hardware required for other services such as internal bus, network interface, memory, etc. at the hardware level. The memory is a non-volatile memory, and the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the text-guided multi-modal semi-supervised multi-organ segmentation method described in S1-S4 above. Of course, in addition to the software implementation, the present invention does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0052] Based on the same inventive concept, an embodiment further provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned text-guided multi-modal semi-supervised multi-organ segmentation method is implemented, which specifically includes the following steps: S1, prepare an image set containing labeled multi-organ images and unlabeled multi-organ images, and use a text encoder to generate a text-guided category feature embedding code for each type of organ based on the text description in advance; S2, build two parallel segmentation models with different initial parameters.

[0053] Each segmentation model includes an image encoder, an image decoder, an organ segmentation parameter generation module, and a segmentation head. Each image in the image set is passed through the image encoder of each segmentation model to obtain a coding feature, and the coding feature is then passed through the image decoder to obtain a decoding feature. The coding feature is embedded in the coding with the category feature of each organ and fused through the organ segmentation parameter generation module to generate the segmentation weight of each organ, and the segmentation weight is assigned to the segmentation head. The segmentation head uses the assigned segmentation weight to calculate the predicted probability map of each type of organ based on the decoding feature. S3, constructing a supervised loss based on the predicted probability map of each organ type, generating a pseudo label based on the predicted probability map, and constructing a cross semi-supervised loss between the two segmentation models based on the pseudo label, and optimizing the parameters of the two segmentation models using the supervised loss and the cross semi-supervised loss; S4, Multi-organ segmentation using a segmentation model with optimized parameters.

[0054] In the embodiment, computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules or other data.

[0055] The specific implementation methods described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A text-guided multi-modal semi-supervised multi-organ segmentation method, characterized in that: The following steps are involved: Prepare an image set containing labeled multi-organ images and unlabeled multi-organ images, and use a text encoder to pre-generate a text-guided category feature embedding encoding for each type of organ based on a medical prompt text description; Two parallel segmentation models with different initial parameters are constructed. Each segmentation model includes an image encoder, an image decoder, an organ segmentation parameter generation module, and a segmentation head. Each image in the image set is passed through the image encoder of each segmentation model to obtain a coding feature. The coding feature is then passed through the image decoder to obtain a decoding feature. The coding feature is embedded in the coding with the category feature of each organ and fused through the organ segmentation parameter generation module to generate the segmentation weight of each organ. The segmentation weight is assigned to the segmentation head. The segmentation head uses the assigned segmentation weight to calculate the predicted probability map of each type of organ based on the decoding feature as the segmentation result. A supervised loss is constructed based on the predicted probability map of each organ type, a pseudo label is generated based on the predicted probability map, and a cross semi-supervised loss is constructed between the two segmentation models based on the pseudo label, and the supervised loss and the cross semi-supervised loss are used to optimize the parameters of the two segmentation models; Multi-organ segmentation using a segmentation model with optimized parameters.

2. The text-guided multi-modal semi-supervised multi-organ segmentation method according to claim 1, characterized in that: The method of using a text encoder to generate a text-guided category feature embedding code for each organ type based on a medical prompt text description in advance includes: The medical prompt text description with organ categories is input into the text encoder to generate the category feature embedding code of each organ type, which is expressed as ,in, F is the feature code, subscript t Represents from text encoder, subscript k Represents organ class.

3. The text-guided multi-modal semi-supervised multi-organ segmentation method according to claim 1, characterized in that: The organ segmentation parameter generation module includes global average pooling, 3D convolution layer, and multi-layer perceptron; The encoded features output by the image encoder are globally averaged pooled to reduce the spatial dimension and then concatenated with the pre-generated category feature embedding code of each organ to obtain the concatenated features. The concatenated features are passed through a 3D convolutional layer to obtain the fused features. The fused features are passed through a multi-layer perceptron to generate the segmentation weights of each organ.

4. The text-guided multi-modal semi-supervised multi-organ segmentation method according to claim 1, characterized in that: The supervised loss is constructed based on the predicted probability map of each organ type, which is expressed as : ; Among them, the subscript Indicates the image index. The subscripts 1 and 2 are used to distinguish the two segmentation models. The superscript l Indicates that there is a label. represents a set of labeled images, Indicates the number of labeled images in the labeled image set, Labels representing labeled images Predicted probability plot of a segmentation model with labeled images The supervision loss between Labels representing labeled images Prediction probability map of another segmentation model with labeled images The supervision loss between , the supervision loss of each segmentation model includes Dice loss and binary cross entropy loss.

5. The text-guided multi-modal semi-supervised multi-organ segmentation method according to claim 1, characterized in that: The pseudo label is generated based on the predicted probability map, expressed as and : ; ; Among them, the subscript Indicates the image index. The subscripts 1 and 2 are used to distinguish the two segmentation models. The superscript u Indicates no label, superscript k represents the organ type index, Indicates i unlabeled images in a segmentation model for the k Prediction probability plot of organoids, Indicates i unlabeled images are used in another segmentation model for i Prediction probability plot of organoids, It means taking the maximum probability in the prediction probability map, Indicates based on The pseudo labels produced, Indicates based on Generated pseudo labels.

6. The text-guided multi-modal semi-supervised multi-organ segmentation method according to claim 5, characterized in that: The cross semi-supervised loss between the two segmentation models based on pseudo labels is expressed as and : ; in, and They represent the cross semi-supervised losses of the two segmentation models, K represents the total number of organ categories, represents the set of unlabeled images, Represents the number of unlabeled images in the unlabeled image set.

7. The text-guided multi-modal semi-supervised multi-organ segmentation method according to claim 1, characterized in that: When using supervised loss and cross-semi-supervised loss to optimize the parameters of the two segmentation models, the stochastic gradient descent method is used to optimize the parameters of the segmentation model. The CPS weight increasing function is also introduced to gradually increase the proportion of the cross-semi-supervised loss to further optimize the parameters of the segmentation model.

8. A text-guided multi-modal semi-supervised multi-organ segmentation device, characterized in that: include: A preprocessing unit, which is used to prepare an image set including labeled multi-organ images and unlabeled multi-organ images, and use a text encoder to generate a text-guided category feature embedding code for each type of organ based on a text description in advance; A model construction unit, which is used to construct two parallel segmentation models with different initial parameters, each segmentation model includes an image encoder, an image decoder, an organ segmentation parameter generation module, and a segmentation head. Each image in the image set is passed through the image encoder of each segmentation model to obtain a coding feature, and the coding feature is then passed through the image decoder to obtain a decoding feature. The coding feature is embedded in the coding with the category feature of each organ and fused through the organ segmentation parameter generation module to generate a segmentation weight for each organ, and the segmentation weight is assigned to the segmentation head. The segmentation head uses the assigned segmentation weight to calculate the prediction probability map of each type of organ based on the decoding feature; A parameter optimization unit, which is used to construct a supervised loss based on a predicted probability map of each organ type with a label, generate a pseudo label based on the predicted probability map, and construct a cross semi-supervised loss between two segmentation models based on the pseudo label, and optimize the two segmentation model parameters using the supervised loss and the cross semi-supervised loss; The organ segmentation unit is used to perform multi-organ segmentation using a segmentation model with optimized parameters.

9. A computing device comprising a memory and one or more processors, wherein the memory stores executable code, characterized in that: When the one or more processors execute the executable code, they are used to implement the text-guided multi-modal semi-supervised multi-organ segmentation method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, the text-guided multi-modal semi-supervised multi-organ segmentation method described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for training click rate prediction model and predicting click rate

    CN114240555A

  • Method and system for optimizing reinforcement learning based on human knowledge

    CN114611661A

  • Pseudo label cross consistency change detection method based on entropy screening

    CN115587964A

  • Method and system for predicting user participation demand side response willingness based on semi-supervised clustering

    CN116051121A

  • Semi-supervised 3D medical image segmentation method based on character assistance

    CN117611601A

Cited By

  • Medical image segmentation model training method and device, medium and equipment

    CN119810623A