A multimodal brain tumor image segmentation method and system based on ensemble learning
Through ensemble learning and meta-learning methods, combining multiple modalities and models, the problems of high subjectivity and insufficient multi-modal information fusion in brain tumor image segmentation are solved, and more accurate and stable segmentation results are achieved.
Patent Information
- Application Number
- CN202311191861.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-15
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-09-15
AI Technical Summary
Existing technologies have problems in brain tumor image segmentation, such as high subjectivity, long time consumption, the inability of a single modality image to provide comprehensive and accurate results, and insufficient multi-modal information fusion, resulting in insufficient segmentation accuracy and stability.
A multi-modal brain tumor image segmentation method based on ensemble learning is adopted, by obtaining images of four modalities for preprocessing and training, using HAUNet, DeepScan, DeepMedic and other models for segmentation, and combining meta-learning to obtain the weight of each modality. The final result integration uses the weighted loss function of DiceLoss and Jaccard Loss, and introduces attention and self-attention mechanisms to improve feature fusion and segmentation effects.
It improves the accuracy and robustness of multi-modal brain tumor image segmentation, reduces overfitting, enhances the generalization ability of the model, and obtains more stable and reliable prediction results.
Smart Images

Figure CN117409019B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of brain tumor image segmentation, and in particular to a multimodal brain tumor image segmentation method and system based on ensemble learning. Background Art
[0002] In the current field of brain tumor image segmentation, traditional manual segmentation methods rely on the experience and subjective judgment of professional doctors, resulting in large subjective errors. This method requires doctors to spend a lot of time and energy, and cannot guarantee consistency and accuracy. Brain tumor images have complex morphology and diversity, and single-modality image information may not provide comprehensive and accurate segmentation results.
[0003] Therefore, single-modality image segmentation methods may not perform well when faced with diverse brain tumor images. Existing segmentation methods have certain limitations when dealing with problems such as noise, fuzzy boundaries, and image inhomogeneity. These problems may lead to inaccurate and unstable segmentation results, affecting the reliability of clinical applications. Although brain tumor image segmentation methods based on deep learning (such as U-Net, SegNet, etc.) have improved the accuracy of segmentation to a certain extent, they still face the dependence on feature selection and fail to fully utilize multimodal information for comprehensive segmentation.
[0004] Although some progress has been made in multimodal brain tumor segmentation in recent years, existing methods still have shortcomings. For example, some methods use Transformer in 3D CNN for MRI brain tumor segmentation, but may still not completely solve the problem of feature fusion of multimodal images. Although there are some brain tumor image classification methods based on ensemble learning, these methods still only target single-modality images and do not fully utilize multimodal information for comprehensive segmentation, which leads to challenges in segmentation accuracy and comprehensiveness when processing multimodal brain tumor images. Summary of the invention
[0005] In view of the problems existing in the existing multimodal brain tumor image segmentation and system based on ensemble learning, the present invention is proposed to solve the technical defects in the prior art, improve the accuracy and robustness of multimodal brain tumor image segmentation, solve the subjectivity and time-consuming problems of traditional manual segmentation methods, and solve the problem that single modality image segmentation cannot provide comprehensive and accurate results.
[0006] Therefore, the problem to be solved by the present invention is how to provide a multimodal brain tumor image segmentation method and system based on ensemble learning.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0008] In the first aspect, an embodiment of the present invention provides a multimodal brain tumor image segmentation method based on ensemble learning, which includes obtaining brain tumor images of four modalities and preprocessing them to obtain preprocessed brain tumor image data; inputting the preprocessed image data into the ensemble model for training respectively to obtain the image segmentation results of each modality; using meta-learning to obtain the weight of each modality, integrating the image segmentation results of each modality, and obtaining the final prediction result.
[0009] As a preferred solution of the multimodal brain tumor image segmentation method based on ensemble learning described in the present invention, the preprocessing includes data enhancement, standardizing the grayscale of each image, saving the image as a 32-bit floating point number, saving the label as an integer, and writing it into an .h5 file; the data enhancement includes random rotation, adding Gaussian noise, center cropping, and brightness transformation.
[0010] As a preferred solution of the multimodal brain tumor image segmentation method based on ensemble learning of the present invention, wherein: the standardization includes calculating the average value of the background area and standard deviation y s , where y is the pixel value of the modal image in the background area; the pixel values of the non-background area in the modal image are standardized, the background pixel values are kept as 0, and the pixel values of the non-background area are standardized; the image is saved as a 32-bit floating point number for easy reading and processing, and written into a .h5 file for storing each modality and label in the form of a dictionary, with the keys being image and label and the values being the corresponding arrays.
[0011] As a preferred solution of the multimodal brain tumor image segmentation method based on ensemble learning described in the present invention, wherein: the ensemble model includes a HAUNet model, a DeepScan model, a DeepSeg model and a DeepMedic model; the HAUNet model includes a backbone network, a feature fusion network and a detection module; the backbone network includes an input convolution, a downsampling module 1, a downsampling module 2, a downsampling module 3, and a downsampling module 4 arranged in sequence; the downsampling module includes a pooling component, a convolution component and an attention component arranged in sequence; the feature fusion network includes an upsampling module 1, a first splicing module, an upsampling module 4 arranged in sequence Sampling module 2, second splicing module, upsampling module 3, third splicing module, upsampling module 4, fourth splicing module; the upsampling module includes a self-attention module and an upsampling module arranged in sequence; the upsampling module 1 is connected with the downsampling module 4 in sequence and the output result of the upsampling module 1 is connected with the downsampling module 4 through the first splicing module; the downsampling module 3 is connected with the upsampling module 2 through the second splicing module, the downsampling module 2 is connected with the upsampling module 3 through the third splicing module, and the downsampling module 1 is connected with the upsampling module 4 through the fourth splicing module; the detection module is provided with an output convolution, and the output convolution is connected with the fourth splicing module.
[0012] As a preferred solution of the multimodal brain tumor image segmentation method based on ensemble learning of the present invention, the training uses the weighted loss of DiceLoss and Jaccard Loss as the loss function, and the calculation formula is as follows:
[0013] L=w_dice*D+w_jaccard*J
[0014] D=1-(2*|X∩Y|) / (|X|+|Y|)
[0015] J=1-|X∩Y| / |X∪Y|
[0016] Where X is the binary label of the segmentation result predicted by the model, and Y is the real binary label; |X∩Y| represents the size of the intersection of X and Y, |X| represents the number of pixels of X, and |Y| represents the number of pixels of Y; J represents Jaccard Loss, which is used to measure the similarity between the model prediction result and the real label; w_dice and w_jaccard are weight coefficients, which are determined by grid search and combined to obtain the optimal weight combination, both of which are in the range of [0, 1].
[0017] As a preferred solution of the multimodal brain tumor image segmentation method based on ensemble learning described in the present invention, wherein: if the image segmentation results are the same on different models, if on modality A, the test results of models 1 and 2 are the same, and models 3 and 4 are already the optimal results on modalities C and D, then the advantages and disadvantages of models 1 and 2 on modality B are compared. If model 2 is better on modality B, modality B selects model 2 and modality A selects model 1; if there is a single model that is the best in more than two modality detections, then compare whether the second best models in the two modalities are the same. When model 1 is the best in modalities A and B, and models 3 and 4 already correspond to modalities C and D, observe the effect of model 2 in modalities A and B, and select the better modality for model 2; if there is a single modality detection that is the same on three models, first select the corresponding optimal modality for the models other than this model.
[0018] As a preferred solution of the multimodal brain tumor image segmentation method based on ensemble learning described in the present invention, wherein: the use of meta-learning to obtain the weight of each modality specifically includes: input features, that is, the image segmentation results of four models and the corresponding target variables, that is, labels; a certain number of sample data are randomly selected with replacement from the original data set as training data sets to generate multiple random sub-sample sets, and the original data set is the image segmentation results of the four models; for each sub-sample set, a decision tree is constructed, and the training data set is divided into different subsets according to the condition of the feature; the constructed multiple decision trees are combined into a random forest, and the random forest is used to predict the new input features, and the input features are passed through each decision tree to obtain multiple prediction values, and then the average of the prediction values is taken as the final prediction result.
[0019] In the second aspect, an embodiment of the present invention provides a multimodal brain tumor image segmentation system based on ensemble learning, which includes: an acquisition module, used to acquire brain tumor images of four modalities and preprocess them to obtain preprocessed brain tumor image data, and input the preprocessed brain tumor image data into an integration module for training; an integration module, used to input the preprocessed image data into four set models for training respectively, to obtain the image segmentation results of each modality; an output module, used to use meta-learning to obtain the weight of each modality, integrate the image segmentation results of each modality, and obtain the final prediction result.
[0020] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the processor executes the computer program, any step of the above-mentioned multimodal brain tumor image segmentation method based on ensemble learning is implemented.
[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the above-mentioned multimodal brain tumor image segmentation method based on ensemble learning is implemented.
[0022] The beneficial effect of the present invention is that an integrated learning method is adopted, which can combine information of multiple models and multiple modalities. By fusing information of different models and multiple data sources, the accuracy and robustness of prediction and decision-making can be effectively improved. Integrated learning can effectively reduce the overfitting problem, and can enhance the generalization ability of the model through diversity, so that the prediction result is more stable and reliable. Improvements are made on the basis of U-Net, and attention mechanism and self-attention mechanism are introduced. Through the attention mechanism, the model can selectively focus on important local information in the image, avoid excessive processing of irrelevant or unimportant areas, thereby improving the effect and efficiency of image segmentation, and the self-attention mechanism can organically combine global and local information, so that the model can better understand the features of different scales in the image, and further enhance the performance of U-Net in image segmentation tasks. The use of meta-learning method makes the integrated learning part more accurate. Integrated learning requires reasonable selection and combination of multiple models, and this process may face problems such as inconsistent model performance and improper model selection. The meta-learning method is adopted to automatically learn how to select and combine multiple models by training a meta-learner. Meta-learning can help the integrated learning part to more accurately select a suitable model combination, further improving the performance of the overall model. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. 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. Among them:
[0024] Figure 1 Flowchart of the multimodal brain tumor image segmentation method based on ensemble learning.
[0025] Figure 2 This is a model architecture diagram of the multimodal brain tumor image segmentation method based on ensemble learning.
[0026] Figure 3 This is an example of the modality of the multimodal brain tumor image segmentation method based on ensemble learning. DETAILED DESCRIPTION
[0027] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0029] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0030] Example 1
[0031] Reference Figure 1 to Figure 3 , which is the first embodiment of the present invention, and provides a multimodal brain tumor image segmentation method based on ensemble learning, comprising:
[0032] S1: Acquire brain tumor images of four modalities and perform preprocessing to obtain preprocessed brain tumor image data.
[0033] Specifically, the four modalities of brain tumor images are Flair (T2 water-suppressed image, which suppresses the high signal of cerebrospinal fluid. The higher the water content, the brighter the signal is, and the area of edema around the tumor can be judged), T1 (T1 imaging, which is conducive to observing the anatomical structure, but the lesion is not clear enough), T1ce (injecting contrast agent into the blood before the subject undergoes MRI to make the area with active blood flow more obvious in the imaging, which is an important criterion for enhancing tumors), and T2 (T2 imaging, the lesion is clearer and the whole tumor can be judged). Figure 3 shown.
[0034] S1.1: Data augmentation of brain tumor images of four modalities, including random rotation, adding Gaussian noise, center cropping, and brightness transformation.
[0035] S1.2: Perform standardization and calculate the mean value y and standard deviation y of the background area s, where y is the pixel value of the modal image in the background area; the pixel values of the non-background area in the modal image are standardized, the background pixel value is kept as 0, and the pixel values of the non-background area are standardized.
[0036] S1.3: Save the image as a 32-bit floating point number (np.float32), save the label as an integer (np.uint8), write it to a .h5 file for easy reading and processing, and store each modality and label in the form of a dictionary, with the key being image and label and the value being the corresponding array.
[0037] S2: The preprocessed image data are input into the integrated model for training to obtain the image segmentation results of each modality.
[0038] Specifically, the integrated models include the HAUNet model, the DeepScan model, the DeepSeg model, and the DeepMedic model.
[0039] The DeepScan model is based on the Densenet architecture and the Unet architecture, and directly applies label uncertainty to the loss function, which allows CNN predictions to participate in evaluating network decisions, resulting in more stable results. The model was cited in "Pooling-Free Fully Convolutional Networks with DenseSkip Connections for Semantic Segmentation, with Application to Brain Tumor Segmentation" by Richard McKinley et al. This model is an advanced model in the field of brain tumor image segmentation. It can achieve relatively good results with the goal of processing multimodal data with a single model, but it still has shortcomings in optimal features and global connections.
[0040] The DeepMedic model was introduced in the paper "Efficient Multi-Scale 3D CNN with Everything Connected CRF for Accurate Brain Lesion Segmentation" by Kamnitsas et al. It has been proven to be very effective for brain tumor image segmentation and robust to single MRI images, but it still cannot effectively handle multimodal data.
[0041] The DeepSeg model was introduced in the paper "DeepSeg: deep neural network framework for automatic brain tumor segmentation using magnetic resonance FLAIR images" by Ramy A. Zeineldin et al. It has a good effect on the flair images mentioned above. The training set in the paper is also based on this image, but its effect on images of other modalities is still insufficient.
[0042] The proposed Hierarchical Attention-based U-Net (HAUNet) adds an attention module to the encoder part of the conventional nnUnet model to more effectively select useful features, and adds a self-attention module to the decoder part to better process global information. The specific framework is as follows Figure 2 As shown in the figure, the HAUNet model includes a backbone network, a feature fusion network and a detection module.
[0043] The backbone network includes an input convolution, a downsampling module 1, a downsampling module 2, a downsampling module 3, and a downsampling module 4 which are arranged in sequence; the downsampling module includes a pooling component, a convolution component, and an attention component which are arranged in sequence; the feature fusion network includes an upsampling module 1, a first splicing module, an upsampling module 2, a second splicing module, an upsampling module 3, a third splicing module, an upsampling module 4, and a fourth splicing module which are arranged in sequence; the upsampling module includes a self-attention module and an upsampling module which are arranged in sequence; the upsampling module 1 is connected to the downsampling module 4 in sequence and the output result of the upsampling module 1 is connected to the downsampling module 4 through the first splicing module; the downsampling module 3 is connected to the upsampling module 2 through the second splicing module, the downsampling module 2 is connected to the upsampling module 3 through the third splicing module, and the downsampling module 1 is connected to the upsampling module 4 through the fourth splicing module; the detection module is provided with an output convolution connected to the fourth splicing module.
[0044] When training the model, the original loss function used by the above three referenced models is DiceLoss. Using the weighted loss function in this method can make full use of the two indicators of DiceLoss and JaccardLoss, so that it can solve the imbalance of balanced categories, convergence and robustness. At the same time, JaccardLoss can make the model more focused on optimizing IoU and better understand the training process and results of the model.
[0045] Using the weighted loss of DiceLoss and Jaccard Loss as the loss function, the calculation formula is as follows:
[0046] L=w_dice*D+w_jaccard*J
[0047] D=1-(2*|X∩Y|) / (|X|+|Y|)
[0048] J=1-|X∩Y| / |X∪Y|
[0049] Where X is the binary label of the segmentation result predicted by the model, and Y is the real binary label; |X∩Y| represents the size of the intersection of X and Y, |X| represents the number of pixels of X, and |Y| represents the number of pixels of Y; J represents Jaccard Loss, which is used to measure the similarity between the model prediction result and the real label; w_dice and w_jaccard are weight coefficients, which are determined by grid search and combined to obtain the optimal weight combination, both of which are in the range of [0, 1].
[0050] If the image segmentation results are the same on different models, if the test results of models 1 and 2 are the same on modality A, and models 3 and 4 are the optimal results on modality C and D, then compare the advantages and disadvantages of models 1 and 2 on modality B. If model 2 is better on modality B, then model 2 is selected for modality B and model 1 is selected for modality A. If a single model is the best in more than two modality detections, then compare whether the second best models in the two modalities are the same. When model 1 is the best in both modalities A and B, and models 3 and 4 correspond to modalities C and D, then observe the effect of model 2 in modalities A and B, and select the better modality for model 2. If a single modality detection is the same on three models, first select the corresponding optimal modality for the models other than this model.
[0051] S3: Use meta-learning to obtain the weight of each modality, integrate the image segmentation results of each modality, and obtain the final prediction result.
[0052] Specifically, input features, i.e., the image segmentation results of the four models and the corresponding target variables, i.e., labels; a certain number of sample data are randomly selected with replacement from the original data set as the training data set to generate multiple random sub-sample sets, and the original data set is the image segmentation results of the four models; for each sub-sample set, a decision tree is constructed, and the training data set is divided into different subsets according to the conditions of the features; the constructed multiple decision trees are combined into a random forest, and the random forest is used to predict the new input features, and the input features are passed through each decision tree to obtain multiple prediction values, and then the average of the prediction values is taken as the final prediction result.
[0053] Furthermore, the present embodiment also provides a multimodal brain tumor image segmentation system based on ensemble learning, including: an acquisition module, used to acquire brain tumor images of four modalities and perform preprocessing to obtain preprocessed brain tumor image data, and input the preprocessed brain tumor image data into an integration module for training; an integration module, used to input the preprocessed image data into four set models for training respectively, to obtain the image segmentation results of each modality; an output module, used to use meta-learning to obtain the weight of each modality, integrate the image segmentation results of each modality, and obtain the final prediction result.
[0054] This embodiment also provides a computer device, which is applicable to the case of a multimodal brain tumor image segmentation method based on ensemble learning, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement all or part of the steps of the method described in the embodiment of the present invention as proposed in the above embodiment.
[0055] This embodiment also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method in any optional implementation of the above embodiment is executed. Wherein, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0056] The storage medium proposed in this embodiment and the data storage method proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0057] The present invention adopts an integrated learning method, which can combine information from multiple models and multiple modalities. By fusing information from different models and multiple data sources, the accuracy and robustness of prediction and decision-making can be effectively improved. Integrated learning can effectively reduce overfitting problems, and can enhance the generalization ability of the model through diversity, making the prediction results more stable and reliable. Improvements are made on the basis of U-Net, and attention mechanisms and self-attention mechanisms are introduced. Through the attention mechanism, the model can selectively focus on important local information in the image, avoid excessive processing of irrelevant or unimportant areas, thereby improving the effect and efficiency of image segmentation, and the self-attention mechanism can organically combine global and local information, so that the model can better understand the features of different scales in the image, further enhancing the performance of U-Net in image segmentation tasks. The use of the meta-learning method makes the integrated learning part more accurate. Integrated learning requires reasonable selection and combination of multiple models, and this process may face problems such as inconsistent model performance and improper model selection. The meta-learning method is adopted to automatically learn how to select and combine multiple models by training a meta-learner. Meta-learning can help the integrated learning part to more accurately select a suitable model combination, further improving the performance of the overall model.
[0058] Example 2
[0059] Reference Figure 2-3 , which is the second embodiment of the present invention, provides a multimodal brain tumor image segmentation method based on ensemble learning. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0060] Suppose there are four modal brain tumor images: Flair (T2 water pressure image (suppresses the high signal of cerebrospinal fluid), the higher the water content, the brighter it is, and it can be used to determine the area of edema around the tumor), T1 (T1 imaging, which is conducive to observing the anatomical structure, but the lesion is not clear enough), T1ce (injecting contrast agent into the blood before the subject undergoes MRI to make the area with active blood flow more obvious in the imaging, which is an important criterion for enhancing tumors), and T2 (T2 imaging, the lesion is clearer and can be used to determine the entire tumor). Figure 3 shown.
[0061] First, feature extraction and preprocessing are performed on the images of each modality. Then, HierarchicalAttention-based U-Net, DeepSeg, DeepMedic, etc. are used as basic models for training to obtain the segmentation results of each modality. Meta-learning is used to obtain the weight of each modality and integrate the segmentation results of the four modalities. Assume that the four prediction results of a certain point in the prediction results of the four models are [A, B, C, D] (0 <= A, B, C, D <= 1). Then, the random forest method is used to automatically obtain the weight of each modality, and the final prediction is made based on this. The initial learning rate during the period is set to 5e-4. First, preheat ten epochs to gradually increase the learning rate from 5e-4 to 0.01, and then follow the
[0062] learning_rate=initial_learning_rate*0.5*(1+cos(π*step / decay_steps)) performs cosine decay until the learning rate becomes 0.001.
[0063] The image segmentation results are evaluated using the following calculation formula:
[0064]
[0065] Where TP represents the pixel is a true positive, FP represents the pixel is a false positive, and FN represents the pixel is a false negative.
[0066] Table 1 Dice result evaluation index table
[0067] Region 1 Area 2 Area 3 U-Net 0.8364 0.8062 0.8472 ResNet 0.8125 0.8165 0.8221 This method 0.8861 0.8764 08968
[0068] As can be seen from the table, the integrated module used in this method combines the advantages of each model, and uses the random forest algorithm to obtain the weight of each model for the corresponding modality. The image segmentation results are better than those of the traditional network model, which shows that this method has advantages in image feature extraction and can better segment images.
[0069] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A multimodal brain tumor image segmentation method based on ensemble learning, characterized by: include, Acquire brain tumor images of four modalities and perform preprocessing to obtain preprocessed brain tumor image data; The preprocessed image data are respectively input into the integrated model for training to obtain the image segmentation results of each modality; The integrated model includes a HAUNet model, a DeepScan model, a DeepSeg model and a DeepMedic model; the HAUNet model includes a backbone network, a feature fusion network and a detection module; The backbone network includes an input convolution, a downsampling module 1, a downsampling module 2, a downsampling module 3, and a downsampling module 4 arranged in sequence; the downsampling module includes a pooling component, a convolution component, and an attention component arranged in sequence; The feature fusion network includes an upsampling module 1, a first splicing module, an upsampling module 2, a second splicing module, an upsampling module 3, a third splicing module, an upsampling module 4, and a fourth splicing module, which are arranged in sequence; the upsampling module includes a self-attention module and an upsampling module, which are arranged in sequence; the upsampling module 1 is connected to the downsampling module 4 in sequence, and the output result of the upsampling module 1 is connected to the downsampling module 4 through the first splicing module; the downsampling module 3 is connected to the upsampling module 2 through the second splicing module, the downsampling module 2 is connected to the upsampling module 3 through the third splicing module, and the downsampling module 1 is connected to the upsampling module 4 through the fourth splicing module; the detection module is provided with an output convolution, and the output convolution is connected to the fourth splicing module; The training uses the weighted loss of DiceLoss and Jaccard Loss as the loss function, and the calculation formula is as follows: L=w_dice*D+w_jaccard*J D=1-(2*|X∩Y|) / (|X|+|Y|) J=1-|X∩Y| / |X∪Y| Where X is the binary label of the segmentation result predicted by the model, and Y is the real binary label; |X∩Y| represents the size of the intersection of X and Y, |X| represents the number of pixels of X, and |Y| represents the number of pixels of Y; J represents Jaccard Loss, which is used to measure the similarity between the model prediction result and the real label; w_dice and w_jaccard are weight coefficients, which are determined by grid search and combined to obtain the optimal weight combination, both of which are in the range of [0, 1]; If the image segmentation results are the same on different models, if on modality A, the test results of models 1 and 2 are the same, and models 3 and 4 are the best results on modality C and D, then compare the advantages and disadvantages of models 1 and 2 on modality B. If model 2 is better on modality B, then modality B selects model 2 and modality A selects model 1; If a single model is optimal in more than two modal tests, compare whether the second-best models in the two modal tests are the same. When model 1 is optimal in both modal A and B, and models 3 and 4 correspond to modal C and D, observe the effect of model 2 in modal A and B, and select the better modal for model 2. If there is a single mode detection that is the same on the three models, the corresponding optimal mode is selected for the models other than this model first; Use meta-learning to obtain the weight of each modality, integrate the image segmentation results of each modality, and obtain the final prediction result; The use of meta-learning to obtain the weight of each modality specifically includes input features, i.e., image segmentation results of four models and corresponding target variables, i.e., labels; A certain number of sample data are randomly selected with replacement from the original data set as the training data set to generate multiple random sub-sample sets. The original data set is the image segmentation results of the four models. For each sub-sample set, a decision tree is constructed to divide the training data set into different subsets according to the condition of the feature; The constructed multiple decision trees are combined into a random forest, and the random forest is used to predict the new input features. The input features are passed through each decision tree to obtain multiple prediction values, and then the average of the prediction values is taken as the final prediction result.
2. The multimodal brain tumor image segmentation method based on ensemble learning as claimed in claim 1, characterized in that: The preprocessing includes data enhancement, standardizing the grayscale of each image, saving the image as a 32-bit floating point number, saving the label as an integer, and writing it into a .h5 file; the data enhancement includes random rotation, adding Gaussian noise, center cropping, and brightness transformation.
3. The multimodal brain tumor image segmentation method based on ensemble learning as claimed in claim 2, characterized in that: The normalization includes calculating the mean value y and standard deviation y of the background area. s , where y is the pixel value of the modal image in the background area; the pixel values of the non-background area in the modal image are standardized, the background pixel values are kept as 0, and the pixel values of the non-background area are standardized; the image is saved as a 32-bit floating point number for easy reading and processing, and written into a .h5 file for storing each modality and label in the form of a dictionary, with the keys being image and label and the values being the corresponding arrays.
4. A multimodal brain tumor image segmentation system based on ensemble learning, based on the multimodal brain tumor image segmentation method based on ensemble learning according to any one of claims 1 to 3, characterized in that: include, An acquisition module is used to acquire brain tumor images of four modalities and perform preprocessing to obtain preprocessed brain tumor image data, and input the preprocessed brain tumor image data into an integration module for training; An integrated module is used to input the pre-processed image data into the four set models for training respectively, and obtain the image segmentation results of each modality; The output module is used to use meta-learning to obtain the weight of each modality, integrate the image segmentation results of each modality, and obtain the final prediction result.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the multimodal brain tumor image segmentation method based on ensemble learning described in any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the multimodal brain tumor image segmentation method based on ensemble learning described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Multi-modal brain tumor image segmentation method based on self-supervised learning
CN115841464A
