Multi-modal image segmentation method based on multi-scale feature extraction and lossless information conversion
By adopting multi-scale feature extraction and lossless information conversion methods in multi-modal image segmentation, the problem of difficulty in accurately identifying brain tumor boundaries with traditional methods is solved, the segmentation accuracy and stability are improved, and high-quality segmentation of multi-category images is achieved. .
Patent Information
- Application Number
- CN202410607213.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional image segmentation methods are difficult to accurately identify brain tumor boundaries, and a single deep learning model cannot fully utilize different modal information when processing multi-modal brain tumor images, resulting in inaccurate and unstable segmentation results.
A multi-modal image segmentation method based on multi-scale feature extraction and lossless information conversion is adopted. By building a U-shaped segmentation network, combined with Dice loss and weighted cross-entropy loss, the multi-scale feature extraction module and lossless information conversion module are used to achieve hierarchical residual error. Extraction of global attention features and lossless downsampling of information.
It improves the accuracy and stability of image segmentation and reduces information loss. Especially in segmentation tasks with obvious scale differences, it achieves high-quality multi-category image segmentation.
Smart Images

Figure CN118570466A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of 3D image segmentation and deep learning, and specifically relates to a multimodal image segmentation method based on multi-scale feature extraction and lossless information conversion. Background Art
[0002] Due to the complex structure of brain tissue and the diversity of tumor morphology, traditional image segmentation methods often have difficulty accurately identifying tumor boundaries, resulting in inaccurate and unstable segmentation results. Currently, deep learning technology has achieved great success in the field of medical image analysis, especially convolutional neural networks (CNNs), which perform well in image segmentation tasks. However, for multimodal brain tumor image segmentation tasks, a single deep learning model often has difficulty in fully utilizing the information of images of different modalities, and has limited effect in dealing with blurred boundaries and complex tumor morphology.
[0003] Medical imaging includes a variety of image modalities. The use of multimodal magnetic resonance imaging (MRI) technology is common in medical image data. Commonly used 3D MRI modalities include T1-weighted (T1), contrast-enhanced T1-weighted (T1ce), T2-weighted (T2), and fluid-attenuated inversion recovery (Flair). The imaging sequences used in T1 and T2 weighting are sensitive to T1 and T2 relaxation times, respectively. Both affect the signal strength presented in different water content areas in the brain, but the effects are opposite. T1 weighting is more sensitive to brain anatomical structures and gray matter / white matter, making the contrast between gray matter and white matter relatively high. T2 weighting is more sensitive to the detection of abnormal conditions such as fluid (such as cerebrospinal fluid) and inflammation, making the contrast between fluid and surrounding tissues relatively high. T1-weighted enhanced images are based on T1-weighted images, and contrast agents are injected to enhance the visualization of blood vessels and abnormal tissues. They can help detect and locate abnormalities such as hemangiomas and tumors. Flair sequences are used to suppress cerebrospinal fluid signals and highlight abnormalities of other brain tissues. They are effective in detecting brain lesions (such as cerebral infarction, increased cerebrospinal fluid, inflammation, etc.), and also provide higher brain tissue contrast. It can be seen that only accurate information of individual categories of tissue structure can be obtained from single-modality MR images. In order to obtain more detailed tissue structure information, multimodal information is particularly important.
[0004] Medical image segmentation has always been a major difficulty in the field of image segmentation. Using only traditional image segmentation methods, such as edge detection-based segmentation, graph cut-based segmentation, morphological watershed-based segmentation, threshold-based segmentation, region-based segmentation, etc., cannot extract the features of medical images well. However, deep learning-based segmentation methods such as FCN, U-Net, V-Net, UNet++, etc., can automatically extract appropriate features by directly inputting the original image to recognize visual rules, achieving better prediction results than traditional methods. However, compared with natural images, medical images are more complex and have greater limitations, including the following characteristics: First, the regions of interest in medical images usually overlap and contain each other, which is very complex and difficult to observe and process clearly and thoroughly; second, due to the imaging equipment, principles and environmental limitations of medical images, medical images are inevitably smaller in size but more in number of dimensions than natural images. This means that although medical images are not clear in themselves, the amount of data is not smaller. The complexity and diversity of these data make the image analysis and processing process more complicated and time-consuming; third, because the anatomical structure and shape of the human body are complex, and there are considerable differences between people, it also brings great challenges to image segmentation. The above characteristics of medical images have brought great difficulties to the application of image segmentation methods based on deep learning in medical applications. Summary of the invention
[0005] In order to improve the application of existing automatic image segmentation technology in medical image segmentation, the present invention provides a multimodal image segmentation method based on multi-scale feature extraction and lossless information conversion, in order to reduce the information loss of medical images in the encoder part of deep neural networks, enhance the ability to extract more effective features, thereby improving image segmentation accuracy, and further providing support for further analysis of medical images.
[0006] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme:
[0007] The multimodal image segmentation method based on multi-scale feature extraction and lossless information conversion of the present invention is characterized in that it is performed according to the following steps:
[0008] Step 1: Acquisition and preprocessing of multimodal image data:
[0009] Get a multimodal image of size D×H×W, remove the redundant background area of each modality, and perform Z-score normalization to obtain the preprocessed multimodal image I={I1,I2,…,I p ,…,I P}, where I prepresents the p-th modality image in the preprocessed multimodal image I, p = 1, 2, ..., P; D represents the depth of the multimodal image I, H represents the height of the multimodal image I, W represents the width of the multimodal image I; P represents the total number of modalities;
[0010] Step 2: Build a multimodal image segmentation network based on the U-shaped segmentation network, which includes: an encoding path, a decoding path, and multiple skip connection paths;
[0011] Step 2.1: The encoding path is p Perform encoding processing to obtain the hierarchical residual global attention feature map HiResGAI of the p-th mode p,out ;
[0012] Step 2.2: The decoding path for HiResGAI p,out Processing is performed to obtain the segmentation result OutConvI of the pth mode p ;
[0013] Step 3: Combine Dice loss L Dice and weighted cross entropy loss L WCE , use formula (3) to construct the joint loss function L:
[0014] L=λL Dice +(1-λ)L WCE (1)
[0015] In formula (1), λ is the balance factor, which is used to balance the weights of the two losses;
[0016] Step 4: Use the stochastic gradient descent optimization algorithm to train the multimodal image segmentation network, and calculate the joint loss function to adjust the network parameters until the specified number of iterations is reached. The training stops and the optimal multimodal image segmentation model is obtained to segment the input multimodal image.
[0017] The multimodal image segmentation method based on multiscale feature extraction and lossless information conversion described in the present invention is also characterized in that the encoding path in step 2.1 includes: 1 input convolution layer, M multiscale feature extraction modules and M-1 lossless information conversion modules, wherein the input convolution layer is connected to the first multiscale feature extraction module, and the second to Mth multiscale feature extraction modules are respectively alternately connected to the M-1 lossless information conversion modules;
[0018] Step 2.1.1: The input convolution layer is I p Processing is performed to obtain the convolution feature map InConvI of the pth mode p ;
[0019] Step 2.1.2: Each multi-scale feature extraction module includes: S+1 extraction units and a global attention layer, where each extraction unit includes: a convolution layer, a batch normalization layer, and a linear rectification function;
[0020] The global attention layer includes: 1 channel attention module, 1 spatial attention module and 2 element-by-element multiplication layers;
[0021] The channel attention module includes: 2 mutually symmetrical multi-layer perceptron layers and 1 sigmoid activation function layer;
[0022] The spatial attention module includes: 2 convolution layers with convolution kernels of N1×N1×N1 and 1 sigmoid activation function layer; wherein N1 represents the size of the convolution kernel;
[0023] When m=1, InConvI p Input into the m-th multi-scale feature extraction module, after being processed by the first extraction unit, the first level residual map I of the p-th mode under the m-th multi-scale feature extraction module is obtained p,m,1 , and then input into S-1 extraction units in parallel for processing, and obtain the S-1 level residual graph set {HiResI p,m,s |s=1,2,…,S-1}; where HiResI p,m,s Represents the s-th level residual map of the p-th mode under the m-th multi-scale feature extraction module;
[0024] {HiResI p,m,s |s=1,2,…,S-1} are evaluated and spliced in the channel dimension to obtain the p-th modal splicing feature map HiResI under the m-th multi-scale feature extraction module p,m And input into the global attention module, and after being processed by the channel attention module, the channel attention feature map CAI of the pth mode under the mth multi-scale feature extraction module is obtained p,m ;
[0025] The first element-wise multiplication layer converts HiResI p,m and CAI p,m After element-by-element multiplication, the channel product result CAEwPI of the pth mode under the mth multi-scale feature extraction module is obtained: p,m ;
[0026] EwPI p,m The input is processed in the spatial attention module to obtain the spatial attention feature map SAI of the pth mode under the mth multi-scale feature p,m ;
[0027] The second element-by-element multiplication layer converts SAI p,m and CAI p,m After element-by-element multiplication, we get the spatial product result SAEwPI of the pth mode under the mth multi-scale feature p,m ;
[0028] SAEwPI p,m The input is processed in the S+1th extraction unit to obtain the hierarchical residual global attention feature map HiResGAI of the pth mode under the mth multi-scale feature extraction module. p,m ;
[0029] Step 2.1.3: The lossless information conversion module includes: a Haar wavelet transform calculation layer, a convolution layer, a batch normalization layer, and a linear rectification function layer;
[0030] When m=1, HiResGAI p,m The input is sent to the mth lossless information conversion module, and after being processed by the Haar wavelet transform calculation layer, the Haar wavelet transform feature map HWTI of the pth mode under the mth lossless information conversion module is obtained. p,m Then, after being processed by the convolution layer, batch normalization layer, and linear rectification function layer in sequence, the lossless information feature map LITI of the pth mode under the mth lossless information conversion module is obtained. p,m ;
[0031] Step 2.1.4: When m = 2, 3, ..., M-1, transform the feature map LITI of the pth mode under the m-1th lossless information conversion module p,m-1 The input is processed into the m-th multi-scale feature extraction module to obtain the hierarchical residual global attention feature map HiResGAI of the p-th modality under the m-th multi-scale feature extraction module. p,m ;
[0032] HiResGAI p,m The input is processed into the mth lossless information conversion module to obtain the feature map LITI of the pth mode under the mth lossless information conversion module. p,m ; Finally, the M-1th lossless information conversion module outputs the feature map LITI of the pth mode under the M-1th lossless information conversion module p,M-1 And the M-th multi-scale feature extraction module outputs the hierarchical residual global attention feature map HiResGAI of the p-th modality under the M-th multi-scale feature extraction module p,M , will LITI p,M-1 LITI p,out , HiResGAI p,M HiResGAI p,out .
[0033] The decoding path in step 2.2 includes: M-1 upsampling layers, M-1 deconvolution layers and 1 output convolution layer, wherein the M-1 upsampling layers and the M-1 deconvolution layers are alternately connected, and the M-1th deconvolution layer is connected to the output convolution layer;
[0034] Step 2.2.1: When m=1, HiResGAI p,out Input to the mth upsampling layer for processing to obtain the mth upsampled feature map UpsampleI of the pth mode p,m ;
[0035] Step 2.2.2: The deconvolution layer includes a plurality of convolution units, wherein each convolution unit includes: a convolution layer, a linear rectification function, and a batch normalization layer;
[0036] UpsampleI p,m And the level residual global attention feature map HiResGAI of the p-th modality under the M-1-th multi-scale feature extraction module p,M-1 After splicing according to the channel dimension, it is input into the mth deconvolution layer for processing to obtain the deconvolution feature map DeConvI of the pth mode under the mth deconvolution p,m ;
[0037] Step 2.2.3: When m = 2, 3, ..., M-1, the deconvolution feature map DeConvI of the pth mode under the m-1th deconvolution p,m-1 Input to the mth upsampling layer for processing to obtain the mth upsampled feature map UpsampleI of the pth mode p,m ;
[0038] UpsampleI p,m And the p-th modality-level residual global attention feature map HiResGAI under the Mm-1-th multi-scale feature extraction module p,M-m-1 After splicing according to the channel dimension, it is input into the mth deconvolution layer to obtain the deconvolution feature map DeConvI of the pth mode under the mth deconvolution p,m ; Finally, the M-1th deconvolution layer outputs the deconvolution feature map DeConvI of the pth mode under the M-1th deconvolution p,M-1 , denoted as DeConvI p,out ;
[0039] Step 2.2.4: The output convolution layer uses a convolution layer with a convolution kernel of N2×N2×N2 to DeConvI p,out Processing is performed to obtain the segmentation result OutConvI of the pth mode p; Where N2 represents the size of the convolution kernel.
[0040] An electronic device of the present invention includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the multimodal image segmentation method, and the processor is configured to execute the program stored in the memory.
[0041] The present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program executes the steps of the multimodal image segmentation method when executed by a processor.
[0042] Compared with the existing technology, this method uses multimodal images for image segmentation tasks, realizes multi-scale feature extraction through hierarchical residual operations, and realizes lossless downsampling of information through lossless information conversion algorithms, thereby achieving high-quality completion of multi-category image segmentation tasks. Its beneficial effects are reflected in:
[0043] 1. The method proposed in the present invention can accurately segment objects with various scales, while reducing information loss during the segmentation process, further improving the accuracy of the segmentation results, especially for segmentation tasks with obvious differences in scale size, and can achieve better segmentation results.
[0044] 2. In the segmentation network of the present invention, a multi-scale feature extraction block based on hierarchical residual global attention is used to realize the extraction of multi-scale features. The multi-scale feature extraction blocks are distributed in each level of the encoding stage. Through the mechanism of hierarchical residual connection, the target area features at different scales can be fully mined, and the global attention mechanism combining channel attention and spatial attention can simultaneously pay attention to the contextual information of the two dimensions of modality and voxel, ensuring the full utilization of multimodal image information. Channel attention uses two symmetrical multi-layer perceptrons to amplify the cross-dimensional "channel-space" dependency, and spatial attention uses two three-dimensional convolutions to fuse spatial information. The combination of attention and hierarchical residuals can take into account both modality and voxel information while extracting multi-scale information, thereby improving the segmentation performance of the model.
[0045] 3. The segmentation network of the present invention uses a lossless information conversion block based on Haar wavelet transform to replace the traditional downsampling layer that relies on the maximum pooling operation, which can effectively reduce the loss of information such as boundaries, scales and textures that are crucial to segmentation caused by the pooling operation in the downsampling of the previous method. Utilizing the orthogonality of the Haar wavelet transform, the input image can be represented by a linear combination of a series of orthogonal basis functions, so that there will be no information loss; utilizing the multi-scale decomposition characteristics of the Haar wavelet transform, the image can be represented by a low-frequency part and a high-frequency part, the low-frequency part represents the general outline and overall trend of the image, and the high-frequency part represents the details and local features of the image, and all the information of the image is retained after decomposition and reconstruction. In the encoding stage of the model, the shallow features will be input to the deep layer through the calculation of the Haar wavelet transform downsampling block, increasing the number of channels of the feature map and reducing its resolution without losing information. Then in the decoding stage, the upsampling layer obtains lossless low-level features through jump connections to restore the image. Finally, the overall performance of the segmentation network is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A flowchart of a multimodal image segmentation method based on multi-scale feature extraction and lossless information conversion of the present invention;
[0047] Figure 2 It is a schematic diagram of the network structure of the present invention;
[0048] Figure 3 It is a schematic diagram of the structure of the multi-scale feature extraction module of the present invention;
[0049] Figure 4 It is a schematic diagram of the structure of the lossless information conversion module of the present invention;
[0050] Figure 5 A schematic diagram of the deconvolution layer structure used in the decoding path of the present invention;
[0051] Figure 6 Schematic diagram of the global attention module used in the segmentation network of the present invention. DETAILED DESCRIPTION
[0052] In this embodiment, Figure 1 As shown, a multimodal image segmentation method based on multi-scale feature extraction and lossless information conversion is performed in the following steps:
[0053] Step 1: Acquisition and preprocessing of multimodal image data:
[0054] Get a multimodal image of size D×H×W, remove the redundant background area of each modality, and perform Z-score normalization to obtain the preprocessed multimodal image I={I1,I2,…,I p ,…,IP}, where I p represents the p-th modality image in the preprocessed multimodal image I, p = 1, 2, ..., P; D represents the depth of the multimodal image I, H represents the height of the multimodal image I, W represents the width of the multimodal image I; P represents the total number of modalities.
[0055] In the specific implementation, P=4 is taken. The dataset comes from the Multimodal Brain Tumor Segmentation Challenge (BraTS). Each sample data in the BraTS dataset is provided in the NIfTI file (.nii.gz) format. These data are mapped to a standardized anatomical template and converted into a uniform resolution (1mm 3 ) and finally skull stripping. Each data set provides four 3D MRI modalities, namely T1-weighted (T1), contrast-enhanced T1-weighted (T1ce), T2-weighted (T2), and fluid-attenuated inversion recovery (Flair). All imaging datasets have been manually annotated by experts, and the labels include enhancing tumors (ET-label 4), peritumoral edema (ED-label 2), and necrotic and non-enhancing tumors (NCR / NET-label 1). The quantitative evaluation of the segmentation results was performed on three different tumor sub-regions contained in each sample in the dataset, namely, the whole tumor (WT) with labels 1, 2, and 4, the enhancing tumor (ET) with label 4, and the tumor core (TC) with labels 1 and 4. The BraTS2020 dataset was selected in the experiment, and a training set of 369 patient samples was used for training. The training set consisted of 293 high-grade glioma (HGG) patient samples and 76 low-grade glioma (LGG) patient samples. A validation set of 125 patient samples was used for testing. The size of each magnetic resonance image in the dataset is 155×240×240, that is, D=155, H=240, and W=240.
[0056] Step 2: Build a multimodal image segmentation network based on the U-shaped segmentation network. The structure of the multimodal image segmentation network is as follows: Figure 2 As shown, it includes: an encoding path, a decoding path and multiple jump connection paths;
[0057] Step 2.1: Encoding Path Pair I p Perform encoding processing to obtain the hierarchical residual global attention feature map HiResGAI of the p-th mode p,out ;
[0058] In a specific implementation, the encoding path includes: 1 input convolution layer, M multi-scale feature extraction modules and M-1 lossless information conversion modules, wherein the input convolution layer is connected to the first multi-scale feature extraction module, and the second to M-th multi-scale feature extraction modules are alternately connected to the M-1 lossless information conversion modules respectively, and M=5 in the specific implementation.
[0059] Step 2.1.1: Input convolutional layer pair I p Processing is performed to obtain the convolution feature map InConvI of the pth mode p ;
[0060] Step 2.1.2: Each multi-scale feature extraction module includes: S+1 extraction units and a global attention layer, where each extraction unit includes: a convolution layer, a batch normalization layer, and a linear rectification function. The structure of the multi-scale feature extraction module is as follows: Figure 3 As shown, in the specific implementation, S=4;
[0061] The global attention layer includes: 1 channel attention module, 1 spatial attention module and 2 element-by-element multiplication layers. The structure of the global attention module is as follows: Figure 6 shown.
[0062] The channel attention module includes: 2 mutually symmetrical multi-layer perceptron layers and 1 sigmoid activation function layer;
[0063] The spatial attention module includes: 2 convolution layers with convolution kernels of N1×N1×N1 and 1 sigmoid activation function layer; N1 represents the size of the convolution kernel, and N1=7 is taken in the specific implementation;
[0064] When m=1, InConvI p Input into the m-th multi-scale feature extraction module, after being processed by the first extraction unit, the first level residual map I of the p-th mode under the m-th multi-scale feature extraction module is obtained p,m,1 , and then input into S-1 extraction units in parallel for processing, and obtain the S-1 level residual graph set {HiResI p,m,s |s=1,2,…,S-1}; where HiResI p,m,s Represents the s-th level residual map of the p-th modality under the m-th multi-scale feature extraction module.
[0065] {HiResI p,m,s |s=1,2,…,S-1} are evaluated and spliced in the channel dimension to obtain the p-th modal splicing feature map HiResI under the m-th multi-scale feature extraction module p,mAnd input into the global attention module, and after being processed by the channel attention module, the channel attention feature map CAI of the pth mode under the mth multi-scale feature extraction module is obtained p,m ;
[0066] The first element-wise multiplication layer converts HiResI p,m and CAI p,m After element-by-element multiplication, the channel product result CAEwPI of the pth mode under the mth multi-scale feature extraction module is obtained: p,m .
[0067] EwPI p,m The input is processed in the spatial attention module to obtain the spatial attention feature map SAI of the pth mode under the mth multi-scale feature p,m ;
[0068] The second element-by-element multiplication layer converts SAI p,m and CAI p,m After element-by-element multiplication, we get the spatial product result SAEwPI of the pth mode under the mth multi-scale feature p,m ;
[0069] SAEwPI p,m The input is processed in the S+1th extraction unit to obtain the hierarchical residual global attention feature map HiResGAI of the pth mode under the mth multi-scale feature extraction module. p,m .
[0070] Step 2.1.3: The lossless information conversion module includes: Haar wavelet transform calculation layer, convolution layer, batch normalization layer, linear rectification function layer. The structure of the lossless information conversion module is as follows: Figure 4 As shown;
[0071] When m=1, HiResGAI p,m The input is sent to the mth lossless information conversion module, and after being processed by the Haar wavelet transform calculation layer, the Haar wavelet transform feature map HWTI of the pth mode under the mth lossless information conversion module is obtained. p,m Then, after being processed by the convolution layer, batch normalization layer, and linear rectification function layer in sequence, the lossless information feature map LITI of the pth mode under the mth lossless information conversion module is obtained. p,m .
[0072] Step 2.1.4: When m = 2, 3, ..., M-1, transform the feature map LITI of the pth mode under the m-1th lossless information conversion module p,m-1The input is processed into the m-th multi-scale feature extraction module to obtain the hierarchical residual global attention feature map HiResGAI of the p-th modality under the m-th multi-scale feature extraction module. p,m ;
[0073] HiResGAI p,m The input is processed into the mth lossless information conversion module to obtain the feature map LITI of the pth mode under the mth lossless information conversion module. p,m ; Finally, the M-1th lossless information conversion module outputs the feature map LITI of the pth mode under the M-1th lossless information conversion module p,M-1 And the M-th multi-scale feature extraction module outputs the hierarchical residual global attention feature map HiResGAI of the p-th modality under the M-th multi-scale feature extraction module p,M , will LITI p,M-1 LITI p,out , HiResGAI p,M HiResGAI p,out .
[0074] In this embodiment, the number of channels of the first multi-scale feature extraction module in the encoding path is 32, the number of channels of the first multi-scale feature extraction module is 64, the number of channels of the first multi-scale feature extraction module is 64, the number of channels of the first multi-scale feature extraction module is 128, and the number of channels of the first multi-scale feature extraction module is 256.
[0075] Step 2.2: Decoding Path to HiResGAI p,out Processing is performed to obtain the segmentation result OutConvI of the pth mode p .
[0076] In a specific implementation, the decoding path includes: M-1 upsampling layers, M-1 deconvolution layers and 1 output convolution layer, wherein the M-1 upsampling layers and the M-1 deconvolution layers are alternately connected, and the M-1th deconvolution layer is connected to the output convolution layer. The deconvolution layer structure is as follows: Figure 5 As shown;
[0077] Step 2.2.1: When m=1, HiResGAI p,out Input to the mth upsampling layer for processing to obtain the mth upsampled feature map UpsampleI of the pth mode p,m ;
[0078] Step 2.2.2: The deconvolution layer includes several convolution units, each of which includes: a convolution layer, a linear rectification function, and a batch normalization layer;
[0079] UpsampleIp,m And the level residual global attention feature map HiResGAI of the p-th modality under the M-1-th multi-scale feature extraction module p,M-1 After splicing according to the channel dimension, it is input into the mth deconvolution layer for processing to obtain the deconvolution feature map DeConvI of the pth mode under the mth deconvolution p,m .
[0080] Step 2.2.3: When m = 2, 3, ..., M-1, the deconvolution feature map DeConvI of the pth mode under the m-1th deconvolution p,m-1 Input to the mth upsampling layer for processing to obtain the mth upsampled feature map UpsampleI of the pth mode p,m ;
[0081] UpsampleI p,m And the p-th modality-level residual global attention feature map HiResGAI under the Mm-1-th multi-scale feature extraction module p,M-m-1 After splicing according to the channel dimension, it is input into the mth deconvolution layer to obtain the deconvolution feature map DeConvI of the pth mode under the mth deconvolution p,m ; Finally, the M-1th deconvolution layer outputs the deconvolution feature map DeConvI of the pth mode under the M-1th deconvolution p,M-1 , denoted as DeConvI p,out .
[0082] Step 2.2.4: Output convolution layer uses a convolution layer with a convolution kernel of N2×N2×N2 to DeConvI p,out Processing is performed to obtain the segmentation result OutConvI of the pth mode p ; Wherein, N2 represents the size of the convolution kernel, and in the specific implementation, N2=3;
[0083] The number of channels of the first upsampling layer in the decoding path is 256, the number of channels of the second upsampling layer is 128, the number of channels of the third upsampling layer is 64, and the number of channels of the fourth upsampling layer is 32.
[0084] Step 3: Combine Dice loss L Dice and weighted cross entropy loss L WCE , use formula (3) to construct the joint loss function L:
[0085] L=λL Dice +(1-λ)L WCE (1)
[0086] In formula (1), λ is a balancing factor, which is used to balance the weights of the two losses. The Dice loss function can alleviate the problem of unstable training caused by category imbalance to a certain extent, and is more suitable for scenarios that require fine evaluation of segmentation results. The WCE loss function alleviates the category imbalance problem by giving different weights to samples of different categories. It is one of the commonly used loss functions in image segmentation tasks.
[0087] Step 4: Use the stochastic gradient descent optimization algorithm to train the multimodal image segmentation network, and calculate the joint loss function to adjust the network parameters until the specified number of iterations is reached. The training stops and the optimal multimodal image segmentation model is obtained to segment the input multimodal image.
[0088] The learning rate during training is set to 10 -3 , the number of iterations is 55000. The update formula of the stochastic gradient descent optimization algorithm is as follows:
[0089] θ t+1 =θ t -η▽J(θ t ) (4)
[0090] In formula (4), θ t represents the parameter value after the tth iteration, η represents the learning rate, ▽J(θ t ) represents the gradient of the loss function with respect to the parameters.
[0091] During training, the output results are compared with the Groundtruth of the training set. According to the loss function results, backpropagation is continuously performed to update the weights and save the parameter model. After training, the optimal segmentation network model is obtained.
[0092] In order to verify the effectiveness of the multimodal image segmentation method proposed in the present invention, the segmentation results are quantitatively evaluated. The evaluation indicators used are Dice similarity coefficient and Hausdorff distance. The formula is as follows:
[0093] The Dice similarity coefficient is a set similarity measure, usually used to calculate the similarity between two contour areas. The value range is [0,1]. The larger the value, the better the segmentation effect. The expression is as follows:
[0094]
[0095] Hausdorff distance is a distance metric used to measure the similarity between two sets. It is usually used to compare the difference between two binary images or the segmentation results of two images. The value range is [0, +∞). The smaller the value, the better the prediction effect. The expression is as follows:
[0096]
[0097] In formula (9) and formula (10), P is the tumor area predicted by the network, T is the pixel or voxel set of the true value label, p is the pixel or voxel point in the network prediction result, t is the pixel or voxel point in the true value label set, |·| is the algebraic summation operation of the number of pixels, d(p, t) is the distance between two points, ∩ is the AND operation of the corresponding pixels or voxel points in the two sets, and 95 means taking the 95th percentile value of all distances as the final distance. This can reduce the impact of extreme values (outliers) on distance calculation and better reflect the overall similarity between sets.
[0098] In this embodiment, an electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above method, and the processor is configured to execute the program stored in the memory.
[0099] In this embodiment, a computer-readable storage medium stores a computer program on the computer-readable storage medium, and the computer program executes the steps of the above method when executed by a processor.
[0100] Table 1 Segmentation results of the method provided by the present invention and some existing methods on the BraTS2020 validation set:
[0101]
[0102] Table 1 compares the segmentation results of the method provided by the present invention and some existing methods on the BraTS2020 validation set. It can be seen from the table that the present method has achieved better results than some existing methods in most indicators. 3D UNet is the backbone network method used in this method. U-Net++ is a segmentation model based on deep supervision and improved jump connection mechanism. TransBTS is a U-Net model combined with Transformer. Both have their own characteristics and good performance. U-Net++ may cause overfitting problems due to its complex structure and large number of parameters. Secondly, due to its special structure, the low-level model does not add the content of the deep feature map and lacks the ability to explore information at all scales. Because TransBTS uses pooling for downsampling multiple times, the Transformer processes the underlying information after losing some information.
Claims
1. A multimodal image segmentation method based on multi-scale feature extraction and lossless information conversion, characterized in that: The steps are as follows: Step 1: Acquisition and preprocessing of multimodal image data: Get a multimodal image of size D×H×W, remove the redundant background area of each modality, and perform Z-score normalization to obtain the preprocessed multimodal image I={I1,I2,…,I p ,…,I P }, where I p represents the p-th modality image in the preprocessed multimodal image I, p = 1, 2, ..., P; D represents the depth of the multimodal image I, H represents the height of the multimodal image I, W represents the width of the multimodal image I; P represents the total number of modalities; Step 2: Build a multimodal image segmentation network based on the U-shaped segmentation network, which includes: an encoding path, a decoding path, and multiple skip connection paths; Step 2.1: The encoding path is p Perform encoding processing to obtain the hierarchical residual global attention feature map HiResGAI of the p-th mode p,out ; Step 2.2: The decoding path for HiResGAI p,out Processing is performed to obtain the segmentation result OutConvI of the pth mode p ; Step 3: Combine Dice loss L Dice and weighted cross entropy loss L WCE , use formula (3) to construct the joint loss function L: L=λL Dice +(1-λ)L WCE (1) In formula (1), λ is the balance factor, which is used to balance the weights of the two losses; Step 4: Use the stochastic gradient descent optimization algorithm to train the multimodal image segmentation network, and calculate the joint loss function to adjust the network parameters until the specified number of iterations is reached. The training stops and the optimal multimodal image segmentation model is obtained to segment the input multimodal image.
2. The multimodal image segmentation method based on multi-scale feature extraction and lossless information conversion according to claim 1, characterized in that: The encoding path in step 2.1 includes: 1 input convolution layer, M multi-scale feature extraction modules and M-1 lossless information conversion modules, wherein the input convolution layer is connected to the first multi-scale feature extraction module, and the second to M-th multi-scale feature extraction modules are alternately connected to the M-1 lossless information conversion modules respectively; Step 2.1.1: The input convolution layer is I p Processing is performed to obtain the convolution feature map InConvI of the pth mode p ; Step 2.1.2: Each multi-scale feature extraction module includes: S+1 extraction units and a global attention layer, where each extraction unit includes: a convolution layer, a batch normalization layer, and a linear rectification function; The global attention layer includes: 1 channel attention module, 1 spatial attention module and 2 element-by-element multiplication layers; The channel attention module includes: 2 mutually symmetrical multi-layer perceptron layers and 1 sigmoid activation function layer; The spatial attention module includes: 2 convolution layers with convolution kernels of N1×N1×N1 and 1 sigmoid activation function layer; wherein N1 represents the size of the convolution kernel; When m=1, InConvI p Input into the m-th multi-scale feature extraction module, after being processed by the first extraction unit, the first level residual map I of the p-th mode under the m-th multi-scale feature extraction module is obtained p,m,1 , and then input into S-1 extraction units in parallel for processing, and obtain the S-1 level residual graph set {HiResI p,m,s |s=1,2,…,S-1}; where HiResI p,m,s Represents the s-th level residual map of the p-th mode under the m-th multi-scale feature extraction module; {HiResI p,m,s |s=1,2,…,S-1} are evaluated and spliced in the channel dimension to obtain the p-th modal splicing feature map HiResI under the m-th multi-scale feature extraction module p,m And input into the global attention module, and after being processed by the channel attention module, the channel attention feature map CAI of the pth mode under the mth multi-scale feature extraction module is obtained p,m ; The first element-wise multiplication layer converts HiResI p,m and CAI p,m After element-by-element multiplication, the channel product result CAEwPI of the pth mode under the mth multi-scale feature extraction module is obtained: p,m ; EwPI p,m The input is processed in the spatial attention module to obtain the spatial attention feature map SAI of the pth mode under the mth multi-scale feature p,m ; The second element-by-element multiplication layer converts SAI p,m and CAI p,m After element-by-element multiplication, we get the spatial product result SAEwPI of the pth mode under the mth multi-scale feature p,m ; SAEwPI p,m The input is processed in the S+1th extraction unit to obtain the hierarchical residual global attention feature map HiResGAI of the pth mode under the mth multi-scale feature extraction module. p,m ; Step 2.1.3: The lossless information conversion module includes: a Haar wavelet transform calculation layer, a convolution layer, a batch normalization layer, and a linear rectification function layer; When m=1, HiResGAI p,m The input is sent to the mth lossless information conversion module, and after being processed by the Haar wavelet transform calculation layer, the Haar wavelet transform feature map HWTI of the pth mode under the mth lossless information conversion module is obtained. p,m Then, after being processed by the convolution layer, batch normalization layer, and linear rectification function layer in sequence, the lossless information feature map LITI of the pth mode under the mth lossless information conversion module is obtained. p,m ; Step 2.1.4: When m = 2, 3, ..., M-1, transform the feature map LITI of the pth mode under the m-1th lossless information conversion module p,m-1 The input is processed into the m-th multi-scale feature extraction module to obtain the hierarchical residual global attention feature map HiResGAI of the p-th modality under the m-th multi-scale feature extraction module. p,m ; HiResGAI p,m The input is processed into the mth lossless information conversion module to obtain the feature map LITI of the pth mode under the mth lossless information conversion module. p,m ; Finally, the M-1th lossless information conversion module outputs the feature map LITI of the pth mode under the M-1th lossless information conversion module p,M-1 And the M-th multi-scale feature extraction module outputs the hierarchical residual global attention feature map HiResGAI of the p-th modality under the M-th multi-scale feature extraction module p,M , will LITI p,M-1 LITI p,out , HiResGAI p,M HiResGAI p,out .
3. The multimodal image segmentation method based on multi-scale feature extraction and lossless information conversion according to claim 1, characterized in that: The decoding path in step 2.2 includes: M-1 upsampling layers, M-1 deconvolution layers and 1 output convolution layer, wherein the M-1 upsampling layers and the M-1 deconvolution layers are alternately connected, and the M-1th deconvolution layer is connected to the output convolution layer; Step 2.2.1: When m=1, HiResGAI p,out Input to the mth upsampling layer for processing to obtain the mth upsampled feature map UpsampleI of the pth mode p,m ; Step 2.2.2: The deconvolution layer includes a plurality of convolution units, wherein each convolution unit includes: a convolution layer, a linear rectification function, and a batch normalization layer; UpsampleI p,m And the level residual global attention feature map HiResGAI of the p-th modality under the M-1-th multi-scale feature extraction module p,M-1 After splicing according to the channel dimension, it is input into the mth deconvolution layer for processing to obtain the deconvolution feature map DeConvI of the pth mode under the mth deconvolution p,m ; Step 2.2.3: When m = 2, 3, ..., M-1, the deconvolution feature map DeConvI of the pth mode under the m-1th deconvolution p,m-1 Input to the mth upsampling layer for processing to obtain the mth upsampled feature map UpsampleI of the pth mode p,m ; UpsampleI p,m And the p-th modality-level residual global attention feature map HiResGAI under the Mm-1-th multi-scale feature extraction module p,M-m-1 After splicing according to the channel dimension, it is input into the mth deconvolution layer to obtain the deconvolution feature map DeConvI of the pth mode under the mth deconvolution p,m ; Finally, the M-1th deconvolution layer outputs the deconvolution feature map DeConvI of the pth mode under the M-1th deconvolution p,M-1 , denoted as DeConvI p,out ; Step 2.2.4: The output convolution layer uses a convolution layer with a convolution kernel of N2×N2×N2 to DeConvI p,out Processing is performed to obtain the segmentation result OutConvI of the pth mode p ; Where N2 represents the size of the convolution kernel.
4. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute the multimodal image segmentation method according to any one of claims 1 to 3, and the processor is configured to execute the program stored in the memory.
5. 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 image segmentation method according to any one of claims 1 to 3 are performed.
Citation Information
Cited By
Three-dimensional multi-mode nuclear magnetic resonance image reconstruction method
CN119152125A
Image multi-classification model generation method and device, equipment and storage medium
CN119204144A
A method, device, equipment and storage medium for generating multi-classification model of image
CN119204144B
Chip glue point area identification method, terminal device and computer readable storage medium
CN119206248A
Medical image segmentation method and system based on CNN and ViT hybrid architecture
CN120107607A
