Mode increment MRI (Magnetic Resonance Imaging) brain tumor image segmentation system based on prompt learning
Through the modality incremental MRI brain tumor image segmentation system based on cue learning, the modal feature extractor and dual knowledge distillation model are used to solve the problems of catastrophic forgetting of information and information isolation between modalities in MRI brain tumor segmentation, and improve The segmentation accuracy and model robustness achieve accurate segmentation of multi-modal images.
Patent Information
- Application Number
- CN202410878175.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-02
AI Technical Summary
The existing technology suffers from catastrophic forgetting of information and information isolation between modalities in MRI brain tumor segmentation, resulting in low segmentation accuracy and inability to fully utilize the data correlation between multi-modal images.
A modality incremental MRI brain tumor image segmentation system based on cue learning is designed, which adopts a segmentation network model of modal feature extractor and dual knowledge distillation, fuses image features through the modal feature extractor, and utilizes dual knowledge distillation loss. The function avoids the forgetting problem and improves the segmentation accuracy.
Effectively utilizing the data correlation between multi-modal MRI images improves the accuracy of brain tumor image segmentation, enhances the generalization and robustness of the model, and achieves accurate segmentation of multi-modal MRI brain tumor images.
Smart Images

Figure CN118710653A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of deep learning, and in particular relates to a modal incremental MRI brain tumor image segmentation system based on prompt learning. Background Art
[0002] In the diagnosis of brain tumors based on Magnetic Resonance Imaging (MRI), since different structures of brain tumors have different characteristics, patients need to locate and structurally divide brain tumors by taking MRI images of multiple modalities. At present, the task of brain tumor segmentation is mainly manually labeled by experts. Since the shape, structure and position of brain tumors are highly variable, and the contrast is poor in MRI imaging, it is easy to overlap with healthy brain tissue, so it is very difficult to accurately locate brain tumors and their structures. In recent years, the accuracy and stability of deep learning segmentation models have gradually improved, providing strong support for this type of medical image segmentation.
[0003] At present, most researchers use three-dimensional volume MRI for brain tumor segmentation research, which can fully obtain the overall structural information of the brain. At the same time, according to different imaging methods, brain tumor MRI can usually be divided into four modalities, namely T1 modality, T1ce modality, T2 modality, and Flair modality. The amount of information that can be expressed by a single-modality MRI image is limited, so multi-modal images are required to accurately segment the lesion area. In practical applications, the data obtained by the model is not necessarily a brain tumor MRI image containing all imaging methods of the patient, so the training of the model is continuous, that is, as clinical data accumulates, the system needs to seamlessly integrate this new information to improve the model performance. Compared with a single segmentation system, a continuous segmentation system reduces the requirements for data acquisition and storage, and has higher efficiency and maintainability. Therefore, a segmentation system based on continuous learning has become a medical image segmentation task with high clinical value.
[0004] Although the existing segmentation models based on continuous learning can effectively avoid catastrophic forgetting caused by data heterogeneity, in the MRI brain tumor segmentation task, the feature distributions between MRI images of different modalities are very different, and conventional continuous learning methods still have serious forgetting after continuous training; at the same time, due to the isolation of information between modalities, the existing continuous learning methods cannot fully utilize the data correlation between multimodal images to assist diagnosis, and ignore the correlation between case structural features. Therefore, the segmentation accuracy of the existing methods when applied to brain tumor image segmentation is still low. We need a brain tumor image segmentation model that can learn different modality features during continuous learning and can use the previously learned modality to assist the current modality segmentation task. Summary of the invention
[0005] The purpose of the present invention is to solve the problem of low accuracy of brain tumor image segmentation due to catastrophic forgetting of information and the inability to fully utilize the data correlation between multimodal MRI images in existing methods, and to propose a modality incremental MRI brain tumor image segmentation system based on prompt learning.
[0006] The technical solution adopted by the present invention to solve the above technical problems is:
[0007] A modality-incremental MRI brain tumor image segmentation system based on prompt learning, the system comprising a brain tumor MRI image acquisition module, an MRI image processing module, a first modality-incremental MRI brain tumor image segmentation model and a second modality-incremental MRI brain tumor image segmentation model;
[0008] The brain tumor MRI image acquisition module is used to respectively acquire the MRI image sub-datasets corresponding to each modality of the brain tumor;
[0009] The MRI image processing module is used to process the MRI images in the MRI image sub-datasets corresponding to each modality to obtain processed image slices corresponding to each modality;
[0010] The first modality incremental MRI brain tumor image segmentation model includes an input layer, a modality feature extractor module based on prompt learning, a segmentation network module based on dual knowledge distillation, and an output layer, and the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model have the same structure;
[0011] The first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model are trained based on processed image slices corresponding to each modality;
[0012] The trained first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model are used to process the brain tumor MRI images to be segmented to obtain image segmentation results of the brain tumor MRI images to be segmented.
[0013] Furthermore, the MRI image sub-datasets corresponding to each modality of the brain tumor are obtained respectively, specifically:
[0014] For each modality of brain tumor, the MRI image sub-dataset corresponding to the modality is obtained from the BraTS2020 dataset, where the total number of modalities T of brain tumor MRI images is 4.
[0015] Furthermore, the working process of the MRI image processing module is as follows:
[0016] For any MRI image, the modal image slices in the area with segmentation labels are retained by interception and cropping operations, and the shape of the processed image corresponding to the MRI image is (n, 192, 192), where n is the number of slices retained for the MRI image.
[0017] Furthermore, the structures of the modal feature extractor module based on prompt learning and the segmentation network module based on dual knowledge distillation are specifically as follows:
[0018] The cue-learning-based modality feature extractor module includes three convolutional layers with a stride of 1 and a convolution kernel size of 1×1, and one convolutional layer with a stride of 1 and a convolution kernel size of 3×3;
[0019] The segmentation network module based on dual knowledge distillation includes an encoding path, a decoding path and a classification layer, wherein:
[0020] The encoding path includes four encoders cascaded in sequence, each of which includes a maximum pooling layer and two convolutional layers;
[0021] The decoding path includes four decoders cascaded in sequence, each of which includes a convolutional layer and an upsampling layer.
[0022] Furthermore, the working process of the first modality incremental MRI brain tumor image segmentation model is:
[0023] The image x input from the input layer is used as the input of the modal feature extractor module based on prompt learning, and then the output x0 of the modal feature extractor module based on prompt learning is fused with the image x to obtain the fusion result x mixed :
[0024] x mixed =alpha*x0+(1-alpha)*x
[0025] Among them, alpha is an alpha mask randomly generated according to the dimension of the image shape;
[0026] Then the fusion result x mixed A Concat operation is performed with the image x, and the result of the Concat operation is used as the input of the segmentation network module based on dual knowledge distillation. Finally, the output of the segmentation network module based on dual knowledge distillation passes through the output layer, and the segmentation result of the input image x is output through the output layer.
[0027] Furthermore, the training process of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model is:
[0028] Step 1: training the first modality incremental MRI brain tumor image segmentation model using the processed image slices corresponding to the first modality to obtain the first modality incremental MRI brain tumor image segmentation model trained in the first stage;
[0029] Then, the parameters of the second modality incremental MRI brain tumor image segmentation model are initialized to the parameters of the first modality incremental MRI brain tumor image segmentation model trained in the first stage;
[0030] Step 2: Initialize the training phase t=2;
[0031] Step 3, freezing all parameters of the first modality incremental MRI brain tumor image segmentation model and parameters of the encoding path in the second modality incremental MRI brain tumor image segmentation model;
[0032] Step 4: using the processed image slices corresponding to the t-th modality as inputs of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model respectively;
[0033] Based on the output of the first modality incremental MRI brain tumor image segmentation model, the second modality incremental MRI brain tumor image segmentation model is trained to obtain the second modality incremental MRI brain tumor image segmentation model trained in the tth stage;
[0034] Step 5: updating the parameters of the first modality incremental MRI brain tumor image segmentation model to the parameters of the second modality incremental MRI brain tumor image segmentation model trained in the tth stage;
[0035] Step 6: Determine whether t<T is satisfied;
[0036] If t<T, set t=t+1 and return to step 3;
[0037] If t=T, the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model trained in the last training stage are used as the final first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model.
[0038] Furthermore, when the number of training stages t≥2, the loss function loss of the training process is:
[0039] loss=loss seg +λ1loss prompt +λ2loss response
[0040] Among them, loss responseis the prediction loss of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model, loss prompt is the feature loss of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model, loss seg is the loss of the predicted output of the second modality incremental MRI brain tumor image segmentation model and the segmentation label mask GroundTruth, and λ1 and λ2 are weight coefficients.
[0041] Furthermore, the value of the weight coefficient λ1 is 0.01, and the value of λ2 is 1.
[0042] Furthermore, the loss seg for:
[0043]
[0044] Wherein, TP represents the number of true positive pixels in the prediction output of the second modality incremental MRI brain tumor image segmentation model, FP represents the number of false positive pixels in the prediction output of the second modality incremental MRI brain tumor image segmentation model, and FN represents the number of false negative pixels in the prediction output of the second modality incremental MRI brain tumor image segmentation model;
[0045] The loss prompt for:
[0046]
[0047] Where ζ represents the input image x k The set of all pixels in Represents the input image x k The i-th pixel in represents the output of the modality feature extractor of the second modality incremental MRI brain tumor image segmentation model, represents the output of the modality feature extractor of the first modality incremental MRI brain tumor image segmentation model, |ζ| is the number of pixels contained in the set ζ;
[0048] The loss response for:
[0049]
[0050] in, represents the predicted output of the second modality incremental MRI brain tumor image segmentation model, Represents the predicted output of the first modality incremental MRI brain tumor image segmentation model.
[0051] Furthermore, the trained first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model are used to process the brain tumor MRI image to be segmented to obtain the image segmentation result of the brain tumor MRI image to be segmented; specifically:
[0052] Step 1: using an MRI image processing module to process each modality image of the brain tumor MRI image to be segmented, respectively, to obtain processed image slices corresponding to each modality of the brain tumor MRI image to be segmented;
[0053] Step 2: If the number of modalities of the brain tumor MRI image to be segmented is 1, then execute step 3; otherwise, if the number of modalities of the brain tumor MRI image to be segmented is greater than 1, then execute step 4;
[0054] Step 3: Using the processed image slices of the brain tumor MRI image to be segmented as the input of the modality increment MRI brain tumor image segmentation model, and then outputting the final segmentation result according to the modality increment MRI brain tumor image segmentation model; specifically:
[0055]
[0056] Where x represents the processed image slice of the brain tumor MRI image to be segmented, represents the output of x after the modality feature extractor, and y represents the output of the modality incremental MRI brain tumor image segmentation model;
[0057] Then perform Argmax operation on y to obtain the classification result of each pixel, that is, the final segmentation result;
[0058] Step 4: Use the processed image slices corresponding to each modality of the brain tumor MRI image to be segmented as the input of the modality increment MRI brain tumor image segmentation model, and then output the final segmentation result according to the modality increment MRI brain tumor image segmentation model; specifically:
[0059] Take the mth modality as the main modality and all modalities of the brain tumor MRI image to be segmented as auxiliary modalities:
[0060]
[0061] Among them, x m represents the processed image slice corresponding to the mth modality of the brain tumor MRI image to be segmented, x a represents the processed image slice corresponding to the ath auxiliary modality of the brain tumor MRI image to be segmented, N represents the number of auxiliary modalities, Represents x a After the output of the modal feature extractor, y mrepresents the output of the modality-incremental MRI brain tumor image segmentation model;
[0062] Then to y m Perform Argmax operation to obtain the classification result of each pixel, that is, obtain the segmentation result corresponding to the mth mode;
[0063] Similarly, each mode is taken as the main mode to obtain the segmentation result corresponding to each mode.
[0064] The beneficial effects of the present invention are:
[0065] The present invention designs a modal feature extractor module based on prompt learning and a segmentation network model based on dual knowledge distillation. The MRI images of the patient's brain under different imaging modes are used as the input of each stage, and the segmentation network model is trained using the input images. The modal feature extractor structure enables the segmentation network model to learn the structural features of the current modality and provide assistance to the segmentation network model when predicting other modalities, thereby making full use of the data correlation between multimodal MRI images. The use of dual knowledge distillation loss avoids the catastrophic forgetting problem encountered by the segmentation network model in the process of modal increment continuous learning, thereby improving the accuracy of brain tumor image segmentation. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 A schematic diagram of the phenomenon of catastrophic forgetting;
[0067] Figure 2 Schematic diagram of information isolation between modalities;
[0068] Figure 3 It is a flowchart of a modality-incremental MRI brain tumor image segmentation system based on prompt learning of the present invention;
[0069] Figure 4 Schematic diagram of the model training process. DETAILED DESCRIPTION
[0070] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0071] Specific implementation method 1: Combination Figure 3 The present embodiment is described as follows. A modality incremental MRI brain tumor image segmentation system based on prompt learning described in the present embodiment includes a brain tumor MRI image acquisition module, an MRI image processing module, a first modality incremental MRI brain tumor image segmentation model and a second modality incremental MRI brain tumor image segmentation model;
[0072] The brain tumor MRI image acquisition module is used to respectively acquire the MRI image sub-datasets corresponding to each modality of the brain tumor;
[0073] The MRI image processing module is used to process the MRI images in the MRI image sub-datasets corresponding to each modality to obtain processed image slices corresponding to each modality;
[0074] The first modality incremental MRI brain tumor image segmentation model includes an input layer, a modality feature extractor module based on prompt learning, a segmentation network module based on dual knowledge distillation, and an output layer, and the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model have the same structure;
[0075] The first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model are trained based on processed image slices corresponding to each modality;
[0076] The trained first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model are used to process the brain tumor MRI images to be segmented to obtain image segmentation results of the brain tumor MRI images to be segmented.
[0077] The method of the present invention fully considers the importance of multimodal image information for the task of brain tumor image segmentation, and makes full use of the different structural information of brain tumors represented by multimodal MRI data; uses prompt learning to solve the problem of data heterogeneity between modalities and improves prediction accuracy; uses knowledge distillation to enhance the generalization and robustness of the model, so that the model can be flexibly used in different application scenarios; the modality incremental MRI brain tumor image segmentation model constructed by the present invention can achieve accurate segmentation of multimodal MRI brain tumor images and has high practical value.
[0078] Specific implementation method 2: This implementation method is different from the specific implementation method 1 in that the MRI image sub-datasets corresponding to each modality of the brain tumor are obtained separately, specifically:
[0079] For each modality of brain tumor, the MRI image sub-dataset corresponding to the modality is obtained from the BraTS2020 dataset, where the total number of modalities T of brain tumor MRI images is 4.
[0080] The other steps and parameters are the same as those in the first embodiment.
[0081] Specific implementation method three: This implementation method is different from specific implementation methods one or two in that the working process of the MRI image processing module is as follows:
[0082] For any MRI image (a three-dimensional image), the modal image slices of the area with segmentation labels are retained by interception and cropping operations (each slice data has a segmentation mask corresponding to the tumor structure). The shape of the processed image corresponding to the MRI image is (n, 192, 192), where n is the number of slices retained for the MRI image.
[0083] The other steps and parameters are the same as those in the first or second embodiment.
[0084] The purpose of adopting interception and cropping in the present invention is to omit irrelevant information in the image, reduce the size of the model input, and improve the efficiency of the model.
[0085] Specific implementation method 4: This implementation method is different from any one of specific implementation methods 1 to 3 in that the structures of the modal feature extractor module based on prompt learning and the segmentation network module based on dual knowledge distillation are specifically as follows:
[0086] The cue-learning-based modality feature extractor module includes three convolutional layers with a stride of 1 and a convolution kernel size of 1×1, and one convolutional layer with a stride of 1 and a convolution kernel size of 3×3;
[0087] The segmentation network module based on dual knowledge distillation includes an encoding path, a decoding path and a classification layer (the classification layer outputs the probability of each pixel belonging to a tumor and the probability of each pixel belonging to a non-tumor), wherein:
[0088] The encoding path includes four encoders cascaded in sequence (the output of the previous encoder is used as the input of the next encoder), each encoder includes a maximum pooling layer and two convolutional layers;
[0089] The decoding path includes four decoders cascaded in sequence, each of which includes a convolutional layer and an upsampling layer.
[0090] The other steps and parameters are the same as those in Specific Embodiments 1 to 3.
[0091] The first three convolutional layers of the modality feature extractor module are used to fully extract the overall surface information of the input image, and the last convolutional layer is used to extract deep data information and abstractly extract the feature information of the modality. In the encoding path, the first encoder halves the size of the feature map and outputs a feature map of size 128×96×96; the second encoder further halves the size of the feature map and outputs a feature map of size 256×48×48; the third encoder halves the size of the feature map again and outputs a feature map of size 512×24×24; finally, in the fourth encoder, the size of the feature map is further halved and outputs a feature map of size 1024×12×12. The first decoder of the decoding path restores the size of the feature map to 512×24×24. The second decoder restores the size of the feature map to 256×48×48; the third decoder restores the size of the feature map to 128×96×96; and in the last decoder, the size of the feature map is restored to 64×192×192 again. The model output layer then maps the output of the decoding path into the category space, with an output size of 2×192×192.
[0092] Specific implementation method 5: This implementation method is different from any one of specific implementation methods 1 to 4 in that the working process of the first modality incremental MRI brain tumor image segmentation model is as follows:
[0093] The image x input from the input layer is used as the input of the modal feature extractor module based on prompt learning, and then the output x0 of the modal feature extractor module based on prompt learning is fused with the image x to obtain the fusion result x mixed :
[0094] x mixed =alpha*x0+(1-alpha)*x
[0095] Where alpha is an alpha mask randomly generated according to the dimensions of the image shape (i.e., a mask matrix of dimension 192×192 generated from (192, 192));
[0096] Then the fusion result x mixed Concat operation is performed with image x, and the result of the Concat operation is used as the input of the segmentation network module based on dual knowledge distillation (in the segmentation network module based on dual knowledge distillation, the input part first passes through the encoding path, and then the output of the encoding path is used as the input of the decoding path). Finally, the output of the segmentation network module based on dual knowledge distillation passes through the output layer, and the segmentation result of the input image x is output through the output layer.
[0097] The other steps and parameters are the same as those in Specific Embodiments 1 to 4.
[0098] Specific implementation method six: Combination Figure 4 This embodiment is different from any one of the specific embodiments 1 to 5 in that the training process of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model is:
[0099] Step 1: training the first modality incremental MRI brain tumor image segmentation model using the processed image slices corresponding to the first modality to obtain the first modality incremental MRI brain tumor image segmentation model trained in the first stage;
[0100] Then, the parameters of the second modality incremental MRI brain tumor image segmentation model are initialized to the parameters of the first modality incremental MRI brain tumor image segmentation model trained in the first stage;
[0101] Step 2: Initialize the training phase t=2;
[0102] Step 3, freezing all parameters of the first modality incremental MRI brain tumor image segmentation model and parameters of the encoding path in the second modality incremental MRI brain tumor image segmentation model;
[0103] Step 4: using the processed image slices corresponding to the t-th modality as inputs of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model respectively;
[0104] Based on the output of the first modality incremental MRI brain tumor image segmentation model, the second modality incremental MRI brain tumor image segmentation model is trained to obtain the second modality incremental MRI brain tumor image segmentation model trained in the tth stage;
[0105] Step 5: updating the parameters of the first modality incremental MRI brain tumor image segmentation model to the parameters of the second modality incremental MRI brain tumor image segmentation model trained in the tth stage;
[0106] Step 6: Determine whether t<T is satisfied;
[0107] If t<T, set t=t+1 and return to step 3;
[0108] If t=T, the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model trained in the last training stage are used as the final first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model.
[0109] The other steps and parameters are the same as those in Specific Implementation Methods 1 to 5.
[0110] In the present invention, each sub-dataset is divided into three parts: training set, test set, and validation set according to the ratio of 0.6:0.25:0.15. After the training is completed, the model is tested and verified using the test set and validation set.
[0111] Specific implementation method 7: This implementation method is different from any one of specific implementation methods 1 to 6 in that when the number of training stages t≥2, the loss function loss of the training process is:
[0112] loss=loss seg +λ1loss prompt +λ2loss response
[0113] Among them, loss response is the prediction loss of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model, loss prompt is the feature loss of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model, loss seg is the loss of the predicted output of the second modality incremental MRI brain tumor image segmentation model and the segmentation label mask GroundTruth, and λ1 and λ2 are weight coefficients.
[0114] The other steps and parameters are the same as those in Specific Embodiments 1 to 6.
[0115] Among them, loss prompt and loss response That is, double distillation loss. When t=1, the loss function loss only includes loss seg Loss item.
[0116] Specific implementation eight: This implementation differs from any one of specific implementations one to seven in that the value of the weight coefficient λ1 is 0.01, and the value of λ2 is 1.
[0117] The other steps and parameters are the same as those in Specific Embodiments 1 to 7.
[0118] Specific implementation method 9: This implementation method is different from the specific implementation methods 1 to 8 in that the loss loss seg for:
[0119]
[0120] Among them, TP (True Positive) represents the number of true positive pixels in the prediction output of the second modality incremental MRI brain tumor image segmentation model (true positive pixels refer to pixels that are actually tumor pixels and are predicted to be tumor pixels), FP (False Positive) represents the number of false positive pixels in the prediction output of the second modality incremental MRI brain tumor image segmentation model (false positive pixels refer to pixels that are actually non-tumor pixels and are predicted to be tumor pixels), and FN (False Negative) represents the number of false negative pixels in the prediction output of the second modality incremental MRI brain tumor image segmentation model (false negative pixels refer to pixels that are actually tumor pixels and are predicted to be non-tumor pixels).
[0121] loss prompt By minimizing the differences in modal features extracted by the modal feature extractor at different training stages, the model’s familiarity with the trained modalities is preserved.
[0122] The loss prompt for:
[0123]
[0124] Where ζ represents the input image x k The set of all pixels in Represents the input image x k The i-th pixel in represents the output of the modality feature extractor of the second modality incremental MRI brain tumor image segmentation model, represents the output of the modality feature extractor of the first modality incremental MRI brain tumor image segmentation model, |ζ| is the number of pixels contained in the set ζ;
[0125] loss response Focuses on maintaining knowledge of specific prediction results, ensuring consistent performance across previously presented modality images, and minimizing differences in prediction capabilities between modalities;
[0126] The loss response for:
[0127]
[0128] in, represents the predicted output of the second modality incremental MRI brain tumor image segmentation model, Represents the predicted output of the first modality incremental MRI brain tumor image segmentation model.
[0129] The other steps and parameters are the same as those in Specific Embodiments 1 to 8.
[0130] Specific embodiment ten: This embodiment is different from any one of specific embodiments one to nine in that the trained first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model are used to process the brain tumor MRI image to be segmented to obtain the image segmentation result of the brain tumor MRI image to be segmented; specifically:
[0131] Step 1: using an MRI image processing module to process each modality image of the brain tumor MRI image to be segmented, respectively, to obtain processed image slices corresponding to each modality of the brain tumor MRI image to be segmented;
[0132] Step 2: If the number of modalities of the brain tumor MRI image to be segmented is 1, then execute step 3; otherwise, if the number of modalities of the brain tumor MRI image to be segmented is greater than 1, then execute step 4;
[0133] Step 3: Using the processed image slices of the brain tumor MRI image to be segmented as the input of the modality increment MRI brain tumor image segmentation model, and then outputting the final segmentation result according to the modality increment MRI brain tumor image segmentation model; specifically:
[0134]
[0135] Where x represents the processed image slice of the brain tumor MRI image to be segmented, represents the output of x after the modality feature extractor, and y represents the output of the modality incremental MRI brain tumor image segmentation model;
[0136] Then perform Argmax operation on y to obtain the classification result of each pixel (if the probability of a pixel belonging to the tumor is greater than the probability of not belonging to the tumor, the pixel belongs to the tumor site), that is, to obtain the final segmentation result (all pixels belonging to the tumor site constitute the tumor area);
[0137] Step 4: Use the processed image slices corresponding to each modality of the brain tumor MRI image to be segmented as the input of the modality increment MRI brain tumor image segmentation model (since the parameters of the trained second modality increment MRI brain tumor image segmentation model are copied to the first modality increment MRI brain tumor image segmentation model, the input here can be either the second modality increment MRI brain tumor image segmentation model or the first modality increment MRI brain tumor image segmentation model), and then output the final segmentation result according to the modality increment MRI brain tumor image segmentation model; specifically:
[0138] Take the mth modality as the main modality and all the modalities of the brain tumor MRI image to be segmented as auxiliary modalities:
[0139]
[0140] Among them, x m represents the processed image slice corresponding to the mth modality of the brain tumor MRI image to be segmented, x a represents the processed image slice corresponding to the ath auxiliary modality of the brain tumor MRI image to be segmented (because the brain tumor MRI image to be segmented may not include images of all modalities, the number of modalities included in the brain tumor MRI image to be segmented is recorded as N, and the value of N is less than or equal to 4), N represents the number of auxiliary modalities, Represents x a After the output of the modal feature extractor, y m represents the output of the modality-incremental MRI brain tumor image segmentation model;
[0141] Then to y m Perform Argmax operation to obtain the classification result of each pixel (if the probability of a pixel belonging to the tumor is greater than the probability of not belonging to the tumor, the pixel belongs to the tumor site), that is, obtain the segmentation result corresponding to the mth mode (all pixels belonging to the tumor site constitute the tumor area);
[0142] Similarly, each mode is taken as the main mode to obtain the segmentation result corresponding to each mode.
[0143] The other steps and parameters are the same as those in Specific Embodiments 1 to 9.
[0144] The present invention proposes a modality-incremental MRI brain tumor image segmentation model based on prompt learning, designs a modality feature extractor module and a dual knowledge distillation strategy, uses the output of the modality feature extractor module as prompt information in the learning process, improves the model's ability to extract information from multimodal MRI brain tumor images, and solves the problem of Figure 1 and Figure 2 The problems of modality transfer and information isolation between modalities encountered in mesomodal incremental learning enhance the model's ability to remember the learned modalities and can use the learned modality information to improve the model's segmentation ability. The model can achieve accurate segmentation of multimodal MRI brain tumor images and has high practical value.
[0145] The above calculation examples of the present invention are only used to explain the calculation model and calculation process of the present invention in detail, and are not intended to limit the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present invention are still within the scope of protection of the present invention.
Claims
1. A modality-incremental MRI brain tumor image segmentation system based on prompt learning, characterized in that: The system includes a brain tumor MRI image acquisition module, an MRI image processing module, a first modality incremental MRI brain tumor image segmentation model, and a second modality incremental MRI brain tumor image segmentation model; The brain tumor MRI image acquisition module is used to respectively acquire the MRI image sub-datasets corresponding to each modality of the brain tumor; The MRI image processing module is used to process the MRI images in the MRI image sub-datasets corresponding to each modality to obtain processed image slices corresponding to each modality; The first modality incremental MRI brain tumor image segmentation model includes an input layer, a modality feature extractor module based on prompt learning, a segmentation network module based on dual knowledge distillation, and an output layer, and the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model have the same structure; The first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model are trained based on processed image slices corresponding to each modality; The trained first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model are used to process the brain tumor MRI images to be segmented to obtain image segmentation results of the brain tumor MRI images to be segmented.
2. The system for segmenting brain tumor images using modality-incremental MRI based on prompt learning according to claim 1, characterized in that: The MRI image sub-datasets corresponding to each modality of the brain tumor are obtained respectively, specifically: For each modality of brain tumor, the MRI image sub-dataset corresponding to the modality is obtained from the BraTS2020 dataset, where the total number of modalities T of brain tumor MRI images is 4.
3. The modality-incremental MRI brain tumor image segmentation system based on prompt learning according to claim 1, characterized in that: The working process of the MRI image processing module is as follows: For any MRI image, the modal image slices in the area with segmentation labels are retained by interception and cropping operations, and the shape of the processed image corresponding to the MRI image is (n, 192, 192), where n is the number of slices retained for the MRI image.
4. The system for segmenting brain tumor images using modality-incremental MRI based on prompt learning according to claim 1, characterized in that: The structures of the modal feature extractor module based on prompt learning and the segmentation network module based on dual knowledge distillation are specifically as follows: The cue-learning-based modality feature extractor module includes three convolutional layers with a stride of 1 and a convolution kernel size of 1×1, and one convolutional layer with a stride of 1 and a convolution kernel size of 3×3; The segmentation network module based on dual knowledge distillation includes an encoding path, a decoding path and a classification layer, wherein: The encoding path includes four encoders cascaded in sequence, each of which includes a maximum pooling layer and two convolutional layers; The decoding path includes four decoders cascaded in sequence, each of which includes a convolutional layer and an upsampling layer.
5. The system for segmenting brain tumor images using modality-incremental MRI based on prompt learning according to claim 4, characterized in that: The working process of the first modality incremental MRI brain tumor image segmentation model is: The image x input from the input layer is used as the input of the modal feature extractor module based on prompt learning, and then the output x0 of the modal feature extractor module based on prompt learning is fused with the image x to obtain the fusion result x mixed : x mixed =alpha*x0+(1-alpha)*x Among them, alpha is an alpha mask randomly generated according to the dimension of the image shape; Then the fusion result x mixed A Concat operation is performed with the image x, and the result of the Concat operation is used as the input of the segmentation network module based on dual knowledge distillation. Finally, the output of the segmentation network module based on dual knowledge distillation passes through the output layer, and the segmentation result of the input image x is output through the output layer.
6. The system for segmenting brain tumor images using modality-incremental MRI based on prompt learning according to claim 5, characterized in that: The training process of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model is: Step 1: Use the processed image slices corresponding to the first modality to train the first-modal incremental MRI brain tumor image segmentation model, and obtain the first-modal incremental MRI brain tumor image segmentation model trained in the first stage; Then initialize the parameters of the second-modal incremental MRI brain tumor image segmentation model to the parameters of the first-modal incremental MRI brain tumor image segmentation model trained in the first stage; Step 2: Initialize the training stage t = 2; Step 3: Freeze all the parameters of the first-modal incremental MRI brain tumor image segmentation model and the parameters of the encoding path in the second-modal incremental MRI brain tumor image segmentation model; Step 4: Use the processed image slices corresponding to the t-th modality as the inputs of the first-modal incremental MRI brain tumor image segmentation model and the second-modal incremental MRI brain tumor image segmentation model respectively; Based on the output of the first-modal incremental MRI brain tumor image segmentation model, train the second-modal incremental MRI brain tumor image segmentation model to obtain the second-modal incremental MRI brain tumor image segmentation model trained in the t-th stage; Step 5: Update the parameters of the first-modal incremental MRI brain tumor image segmentation model to the parameters of the second-modal incremental MRI brain tumor image segmentation model trained in the t-th stage; Step 6: Determine whether t < T is satisfied; If t < T, then set t = t + 1 and return to execute Step 3; If t = T, then use the first-modal incremental MRI brain tumor image segmentation model and the second-modal incremental MRI brain tumor image segmentation model trained in the last training stage as the final first-modal incremental MRI brain tumor image segmentation model and the second-modal incremental MRI brain tumor image segmentation model.
7. The system for segmenting brain tumor images using modality-incremental MRI based on prompt learning according to claim 6, characterized in that: When the number of training stages t ≥ 2, the loss function loss in the training process is: loss=loss seg +λ1loss prompt +λ2loss response Among them, loss response is the prediction loss of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model, loss prompt is the feature loss of the first modality incremental MRI brain tumor image segmentation model and the second modality incremental MRI brain tumor image segmentation model, loss seg is the loss of the predicted output of the second modality incremental MRI brain tumor image segmentation model and the segmentation label mask GroundTruth, and λ1 and λ2 are weight coefficients.
8. The system for segmenting brain tumor images using modality-incremental MRI based on prompt learning according to claim 7, characterized in that: The value of the weight coefficient λ1 is 0.01, and the value of λ2 is 1.
9. The system for segmenting brain tumor images using modality-incremental MRI based on prompt learning according to claim 8, characterized in that: The loss seg for: Wherein, TP represents the number of true positive pixels in the predicted output of the second-modal incremental MRI brain tumor image segmentation model, FP represents the number of false positive pixels in the predicted output of the second-modal incremental MRI brain tumor image segmentation model, and FN represents the number of false negative pixels in the predicted output of the second-modal incremental MRI brain tumor image segmentation model; The loss prompt for: Where ζ represents the input image x k The set of all pixels in Represents the input image x k The i-th pixel in represents the output of the modality feature extractor of the second modality incremental MRI brain tumor image segmentation model, represents the output of the modality feature extractor of the first modality incremental MRI brain tumor image segmentation model, |ζ| is the number of pixels contained in the set ζ; The loss response for: in, represents the predicted output of the second modality incremental MRI brain tumor image segmentation model, Represents the predicted output of the first modality incremental MRI brain tumor image segmentation model.
10. The system for segmenting brain tumor images using modality-incremental MRI based on prompt learning according to claim 9, characterized in that: The trained first-modal incremental MRI brain tumor image segmentation model and the second-modal incremental MRI brain tumor image segmentation model are used to process the brain tumor MRI image to be segmented to obtain the image segmentation result of the brain tumor MRI image to be segmented; specifically: Step 1: Use the MRI image processing module to process each modality image of the brain tumor MRI image to be segmented respectively to obtain the processed image slices corresponding to each modality of the brain tumor MRI image to be segmented; Step 2: If the number of modalities of the brain tumor MRI image to be segmented is 1, then execute Step 3; otherwise, if the number of modalities of the brain tumor MRI image to be segmented is greater than 1, then execute Step 4; Step 3: Using the processed image slices of the brain tumor MRI image to be segmented as the input of the modality increment MRI brain tumor image segmentation model, and then outputting the final segmentation result according to the modality increment MRI brain tumor image segmentation model; specifically: Where x represents the processed image slice of the brain tumor MRI image to be segmented, represents the output of x after the modality feature extractor, and y represents the output of the modality incremental MRI brain tumor image segmentation model; Then perform Argmax operation on y to obtain the classification result of each pixel, that is, the final segmentation result; Step 4: Use the processed image slices corresponding to each modality of the brain tumor MRI image to be segmented as the input of the modality increment MRI brain tumor image segmentation model, and then output the final segmentation result according to the modality increment MRI brain tumor image segmentation model; specifically: Take the mth modality as the main modality and all modalities of the brain tumor MRI image to be segmented as auxiliary modalities: Among them, x m represents the processed image slice corresponding to the mth modality of the brain tumor MRI image to be segmented, x a represents the processed image slice corresponding to the ath auxiliary modality of the brain tumor MRI image to be segmented, N represents the number of auxiliary modalities, Represents x a After the output of the modal feature extractor, y m represents the output of the modality-incremental MRI brain tumor image segmentation model; Then to y m Perform Argmax operation to obtain the classification result of each pixel, that is, obtain the segmentation result corresponding to the mth mode; Similarly, each mode is taken as the main mode to obtain the segmentation result corresponding to each mode.
Citation Information
Patent Citations
Carotid artery ultrasound report generation system based on multi-modal information
CN114052794A
MR image 3D semantic segmentation method and system based on multi-modal fusion
CN114399519A
Multi-modal feature fusion MRI brain tumor image segmentation method based on attention mechanism
CN114782350A
Brain tumor MRI image segmentation method based on multi-scale distillation
CN115147603A
Multi-modal remote sensing image segmentation device and method
CN117935259A
Cited By
Multi-mode burned area detection method, device, equipment and medium
CN119251682A
