Brain region segmentation algorithm based on deep learning
By introducing multi-scale and multi-branch attention modules into the Unet network, combined with the Dice similarity coefficient and cross-entropy loss function, the problem of insufficient precision and slow speed in brain area segmentation in the existing technology is solved, and 161 brain areas are achieved. High-precision segmentation improves clinical practicability.
Patent Information
- Application Number
- CN202410610751.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-16
AI Technical Summary
Existing deep learning brain region segmentation algorithms have problems such as a small number of brain regions, low segmentation accuracy, slow segmentation speed, and limited clinical practicability.
A deep learning network model based on the multi-scale and multi-branch attention module of the Unet network is designed. By introducing the multi-scale segmentation attention module and the multi-branch cross-attention module, the receptive fields of different scales are increased, and the Maxout activation operation and The jump path reduces the amount of network training parameters and combines the Dice similarity coefficient and cross-entropy loss function for training.
It achieves accurate segmentation of more brain areas, improves the number, accuracy and speed of segmentation of brain areas. It has the characteristics of fast segmentation speed and high segmentation accuracy, which is helpful for early detection of diseases.
Smart Images

Figure CN118570227A
Abstract
Description
Technical Field
[0001] The present invention relates to brain region segmentation, and in particular to a brain region segmentation algorithm based on deep learning and having a multi-scale and multi-branch attention module based on a Unet network. Background Art
[0002] Brain segmentation is a non-invasive quantitative analysis method for neuroimaging that can be used to explore brain structure and predict neurological diseases. To date, there have been many studies on brain segmentation. The most accurate brain segmentation method is manual segmentation by professional brain anatomists, which is regarded as the "gold standard", but the labor cost is huge and it is difficult to complete brain segmentation of large-scale data in a short time. Therefore, quantitative analysis of the brain based on magnetic resonance imaging requires automatic algorithms to achieve fast and accurate brain segmentation.
[0003] As deep learning technology matures, deep convolutional neural networks are applied to brain segmentation. According to the type of data set, the network types can be divided into 2D, 2.5D and 3D networks. 2D convolutional neural networks cannot effectively utilize the spatial correlation information between the upper and lower slices of brain images, and it is difficult to achieve a very high accuracy of brain segmentation. The amount of 3D medical data is large and is limited by the computing memory of the current GPU. 3D networks are difficult to train, and advanced 3D convolutional neural networks cannot be directly used for brain segmentation. Instead, downsampling, patch-based, and block-based methods are required to reduce the amount of network calculations, but this will also result in a loss of segmentation accuracy and discontinuity in the segmented area.
[0004] Based on the above analysis, 2.5D convolutional neural networks are more suitable for brain region segmentation. Existing 2.5D networks include SD-Net, QuickNAT, FastSurferCNN, MRF-Net, etc. The fully convolutional neural network segmentation model used by SD-Net (Khan N, Ullah A, Haq IU, et al. SD-Net: Understanding overcrowded scenes in real-time via an efficient dilated convolutional neural network [J]. Journal of Real-Time Image Processing, 2021, 18: 1729-1743.) can divide the brain into 27 brain regions. QuickNAT (Roy AG, Conjeti S, Navab N, et al. QuickNAT: A fully convolutional network for quick and accurate segmentation of neuroanatomy [J]. NeuroImage, 2019, 186: 713-727.) uses a convolutional neural network segmentation model and integrates information from three brain views (horizontal, coronal, and sagittal) to make the brain segmentation results more accurate. In order to segment more brain regions, FastSurferCNN (Henschel L, Conjeti S, Estrada S, et al. Fastsurfer-a fast and accurate deeplearning based neuroimaging pipeline [J]. NeuroImage, 2020, 219: 117012.) replaces the ordinary dense blocks in QuickNAT with competitive dense blocks and the skip connections with competitive connections, reducing the computational complexity of the network and dividing the brain into 95 brain regions. MRF-Net (Wei C, Yang Y, Guo X, et al. MRF-Net: A multi-branch residual fusion network for fast and accurate whole-brain MRI segmentation [J]. Frontiers in Neuroscience, 2022, 16: 940381.) is a further improvement on FastSurferCNN, which can achieve fast segmentation of 136 brain regions. At present, there are still problems such as insufficient fineness of brain segmentation, long segmentation time, and low clinical practicality. Summary of the invention
[0005] The purpose of the present invention is to provide a brain segmentation algorithm based on deep learning with fast segmentation speed and high segmentation quality, in view of the problems existing in most existing deep learning brain segmentation algorithms in the prior art, such as a small number of brain segmentations, insufficient segmentation accuracy, slow segmentation speed, and limited clinical use value. The proposed brain segmentation method based on deep learning with multi-scale and multi-branch attention modules based on Unet network has significant advantages, greatly improving the number of brain segmentations, segmentation accuracy and speed, and has great potential in disease prediction.
[0006] To achieve the above object, the present invention comprises the following steps:
[0007] 1) Obtain the results of Destrieux brain atlas segmentation as training labels for model training and evaluation, and merge some left and right brain regions to reduce labels, obtaining a training set of 122 brain region labels;
[0008] 2) Design a deep learning network model with multi-scale and multi-branch attention modules based on Unet network expansion;
[0009] 3) Construct the loss function of the network;
[0010] 4) Using the training set obtained in step 1), find the optimal parameters of a deep learning network model with multi-scale and multi-branch attention modules based on the Unet network;
[0011] 5) Input the T1-weighted MRI brain data to be segmented into the trained network for segmentation.
[0012] In step 1), the specific method of obtaining the result of the Destrieux brain atlas segmentation as the training label for model training and evaluation, and merging some left and right brain regions to reduce the labels to obtain a training set of 122 brain region labels is:
[0013] Get T1-weighted MRI image data represents the S-th layer T1-weighted MRI image data, represents the real number domain, NX, NY, and S represent the length, width, and number of layers of the image in the data respectively; X is segmented to generate a result with 187 brain regions Indicates the segmentation result of the Sth layer image; then the cortical areas that are in contact on the left and right hemispheres of the brain are merged into one brain region, and then all other regions are combined, and several uncommon brain regions are removed, resulting in a result with 122 brain regions. It represents the result after reducing the brain area of the S-th layer image; finally, X, The training set is formed and stored in an hdf5 file as the input data of the network.
[0014] In step 2), the deep learning network model with multi-scale and multi-branch attention modules based on the Unet network is based on the Unet network, and two attention modules, namely the multi-scale segmentation attention module CSA and the multi-branch cross attention module MCAM, are introduced to increase the receptive fields of different scales, and the seven modules with different compositions are connected through the Maxout activation operation and the jump path to reduce the amount of network training parameters. Specifically:
[0015] A. The multi-scale segmentation attention module CSA includes the following structure:
[0016] After the input data G passes through a convolution layer (Conv), it is divided into two groups, namely G1 and G2. The size of the convolution kernel of the convolution layer is h1×h1. G1 and G2 pass through a convolution layer to obtain G'1 and G'2 respectively. The size of the convolution kernel of the convolution layer is h2×h2. G'1 and G'2 are added and passed through a convolution layer to obtain G"1. The size of the convolution kernel of the convolution layer is h2×h2. G"1 and G'2 are added and passed through a global pooling layer (Global Pooling), a convolution layer, a normalization function (Batch Normalization, BN) and a linear rectification function (Rectified Linear Unit, ReLU) to obtain After another convolution layer and a softmax activation function, we get The size of the convolution kernel of the convolution layer is h1×h1. Add to G"1, After adding it to G'2, it passes through a convolution layer and then adds it to G to output the result. The size of the convolution kernel of the convolution layer is h1×h1.
[0017] B. The multi-branch cross attention module DCSA includes the following structure:
[0018] The multi-branch cross attention module DCSA consists of three CSA modules and a convolution kernel Conv Kernel. The size of the convolution kernel Conv Kernel can be k1×k1, k2×k2, and k3×k3.
[0019] C. Competition dense block CDB includes the following structure:
[0020] The competitive dense block CDB contains three serially connected encoder modules, each of which consists of a parametric rectified linear unit (PReLU), a convolutional layer and a BN layer, as well as two Maxout activation functions. The size of the convolution kernel of the convolutional layer is r×r.
[0021] D. Initialize the competition dense block CDB1 including the following structure:
[0022] Initializing the competitive dense block CDB1 is to replace the PReLU of the first encoder module with a BN layer on the basis of the competitive dense block CDB.
[0023] E. Multi-branch cross-attention competition dense block MCDB includes the following structure:
[0024] The multi-branch cross-attention competitive dense block MCDB consists of three CDB modules and a convolution kernel Conv Kernel. The size of the convolution kernel Conv Kernel can be k1×k1, k2×k2, and k3×k3.
[0025] F. The dense block RD includes the following structure:
[0026] The dense block RD contains two CBR modules (convolutional layer, BN layer, ReLU), a convolution kernel Conv Kernel, a BN layer, a Maxout activation function, and a ReLU. The size of the convolution kernel of the convolution layer is r×r, and the size of the convolution kernel Conv Kernel can be k1×k1, k2×k2, and k3×k3.
[0027] G. Multi-branch cross-attention dense block DCDB includes the following structure:
[0028] The multi-branch cross-attention dense block DCDB consists of three Maxout activation functions, three RD modules and a convolution kernel Conv Kernel. The size of the convolution kernel Conv Kernel can be k1×k1, k2×k2, and k3×k3. The sizes of the convolution kernel Conv Kernel in the three RD modules are k1×k1, k2×k2, and k3×k3 respectively.
[0029] In step 3), the loss function definition consists of two parts, including Dice similarity coefficient (DSC) and cross entropy; DSC is one of the most commonly used indicators for evaluating the performance of medical segmentation based on deep learning. Its essence is to measure the overlap of two samples, which can be expressed as follows:
[0030]
[0031] Where T is the true value of the training label, and P is the binary segmentation map predicted by the network. In the actual calculation process, T∩P| is the sum of all pixel values after the dot product of T and P, and |T| and |P| represent the sum of all pixel values in T and P respectively.
[0032] Cross entropy is used to measure the similarity between two distributions. Cross entropy can be defined as:
[0033]
[0034] Among them, p(x) is the probability of predicting each brain region in the segmentation feature map, and the probability value is normalized into a probability distribution vector, and the sum of all probabilities is 1. q(x) is the probability of predicting each brain region in the label feature map, and the probability value is normalized into a probability distribution vector, and the sum of all probabilities is 1. p represents the probability distribution of the segmentation feature map, and q represents the probability distribution of the label feature map.
[0035] The network loss function L(θ) is a composite loss function of the sum of DSC and cross entropy:
[0036] L(θ)=DSG(T,P)+H(p,q)
[0037] Among them, θ represents the set of internal parameters of the overall network, T is the true value of the training label, and P is the binary segmentation map predicted by the network. p represents the probability distribution of the segmentation feature map, and q represents the probability distribution of the label feature map.
[0038] In step 4), the optimal parameters of the deep learning network model with multi-scale and multi-branch attention modules based on the Unet network are solved by using the Adam optimizer with good performance in deep learning, and the network is trained using the training set generated in step 1), and the optimal parameter set is obtained by minimizing the loss function L(θ) in step 3). Represents the set of network parameters when the network segmentation effect is optimal;
[0039] In step 5), the T1-weighted MRI brain data to be segmented is input into the trained network for segmentation. The network segmentation process can be expressed as:
[0040]
[0041] Among them, f overall (·) represents the segmentation process of the overall network, Represents the input data to be segmented. Represents the optimal set of parameters in the trained network.
[0042] Compared with the prior art, the present invention has the following outstanding technical effects:
[0043] The present invention introduces a multi-scale segmentation attention module and a multi-branch cross attention module to increase the receptive fields of different scales so as to obtain deep features and realize accurate segmentation of brain regions of more different sizes. The whole brain can be segmented into a network structure of 161 brain regions. The present invention has greatly improved the number of brain region segmentations, segmentation accuracy and speed, and has the characteristics of fast segmentation speed and high segmentation accuracy, which is conducive to the early detection of diseases. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a network structure of a deep learning network model with multi-scale and multi-branch attention modules based on the Unet network.
[0045] Figure 2 It is the structure of each module in the network model. Among them, (a) is the competitive dense block CDB; (b) is the initialization competitive dense block CDB1; (c) is the dense block RD; (d) is the multi-branch cross-attention competitive dense block MCDB; (e) is the multi-branch cross-attention dense block DCDB; (f) is the multi-branch cross-attention module DCSA; (g) is the multi-scale segmentation attention module CSA.
[0046] Figure 3 The brain data to be segmented and its segmentation results. Among them, (a) is the sagittal brain image; (b) is the horizontal brain image; (c) is the coronal brain image; (d) is the sagittal brain segmentation result; (e) is the horizontal brain segmentation result; (f) is the coronal brain segmentation result. DETAILED DESCRIPTION
[0047] The following embodiments will further illustrate the present invention in conjunction with the accompanying drawings. The described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] The embodiment of the present invention uses MRI image data from five public data sets for training and testing. 140 data from the Autism Brain Imaging Data Exchange II (ABIDE II), the Alzheimer's Disease Neuroimaging Project (ADNI), the UCLA Neuropsychiatric Phenotype Group Consortium's LA5c Study (LA5c), and the Open Access Series Imaging Study 2 (OASIS-2) are used for network training, and 10 data from Mindboggle-101 are used for testing. In terms of model training, three independent models of the coronal plane, axial plane, and sagittal plane are trained respectively, and the final segmentation is generated by aggregating the probability map of each model with corresponding weights of 0.4, 0.4, and 0.2. Specific embodiments are given below.
[0049] The embodiment of the present invention includes the following steps:
[0050] The results of the Destrieux brain atlas segmentation were used as training labels for model training and evaluation, and some left and right brain regions were merged to reduce the labels, resulting in a training set of 122 brain region labels.
[0051] Step 1: Obtain T1-weighted MRI image data represents the S-th layer T1-weighted MRI image data, represents the real number domain; then the Destrieux brain atlas partitioning method is used to segment X, generating a result with 187 brain regions The segmentation result of the S-th layer image is shown in FIG. 1 . In this embodiment, the segmentation label Y is obtained by FreeSurfer software. Then, the cortical regions that are in contact with each other on the left and right hemispheres of the brain are merged into one brain region. Then, all other regions are combined and several uncommon brain regions are removed. The result with 122 brain regions is obtained. It represents the result after reducing the brain area of the S-th layer image; finally, X, The training set is formed and stored in an hdf5 file as the input data of the network.
[0052] Step 2: A deep learning network model with multi-scale and multi-branch attention modules based on the Unet network is developed. Based on the Unet network, two attention modules, namely the multi-scale segmentation attention module (CSA) and the multi-branch cross attention module (MCAM), are introduced to increase the receptive field of different scales, and the seven modules with different compositions are connected through the Maxout activation operation and the skip path to reduce the amount of network training parameters (see Figure 1 ).
[0053] A. The multi-scale segmentation attention module CSA includes the following structure:
[0054] Multi-scale segmentation attention module CSA Figure 2 As shown in Figure (g), the multi-scale segmentation attention module CSA is used to help the network focus on the different scale features of the image; after the input data G passes through a convolution layer (Conv), it is divided into two groups, namely G1 and G2, and the size of the convolution kernel of the convolution layer is 1×1. G1 and G2 pass through a convolution layer to obtain G'1 and G'2 respectively, and the size of the convolution kernel of the convolution layer is 3×3. G'1 and G'2 are added and passed through a convolution layer to obtain G"1, and the size of the convolution kernel of the convolution layer is 3×3. G"1 and G'2 are added and passed through a global pooling layer (Global Pooling), a convolution layer, a normalization function (BatchNormalization, BN) and a linear rectification function (Rectified Linear Unit, ReLU) to obtain After another convolution layer and a softmax activation function, we get The size of the convolution kernel of the convolution layer is 1×1. Add to G"1, After adding it to G'2, it passes through a convolution layer and then adds it to G to output the result. The size of the convolution kernel of the convolution layer is 1×1.
[0055] B. The multi-branch cross attention module DCSA includes the following structure:
[0056] Multi-branch cross attention module DCSA Figure 2 As shown in Figure (f), the multi-branch cross-attention module DCSA consists of three CSA (Cross-Attention) modules and a convolution kernel Conv Kernel. The size of the convolution kernel Conv Kernel can be k1×k1, k2×k2, and k3×k3. In this embodiment, k1=3, k2=5, and k3=7. The multi-branch cross-attention module DCSA is used to enhance the interaction and combination between features through multiple CSA modules. Each CSA module is responsible for processing features of different scales. Through the cross-attention mechanism, the multi-branch cross-attention module can effectively fuse the features in different branches.
[0057] C. Competition dense block CDB includes the following structure:
[0058] Competition dense block CDB Figure 2 As shown in Figure (a) in the figure, the competitive dense block CDB is used to make the network pay more attention to key features through a competitive mechanism to improve the performance and robustness of the model. The CDB module includes three encoder modules connected in series, each of which consists of a parametric rectified linear unit (PReLU), a convolution layer and a batch normalization (Batch Normalization, BN) layer, and also includes two Maxout activation functions. The PReLU activation function is a rectified linear activation function that can solve the dead ReLU problem that may occur in the traditional ReLU function during training. The batch normalization layer helps to stabilize the training process of the network by normalizing the input of each layer. Each encoder module has the same structure, but the size of the convolution kernel of the module is different. In this embodiment, the size of the convolution kernel of the first two encoder modules is 5×5, and the size of the convolution kernel of the third encoder module is 1×1. Large-sized convolution kernels can capture features in a larger range, while small-sized convolution kernels can capture more detailed information. In this way, the competitive dense block CDB can perform a more comprehensive analysis of the input data.
[0059] D. Initialize the competition dense block CDB1 including the following structure:
[0060] Initialize the competition dense block CDB1 as Figure 2 As shown in Figure (b), the initialization of the competitive dense block CDB1 module is based on the competitive dense block CDB module, replacing the PReLU of the first encoder module with a BN layer. In the CDB1 module, the structure of the first encoder module changes from PReLU+convolution layer+BN layer to BN layer+convolution layer+BN layer. The structures of the second and third encoder modules remain unchanged. Replacing PReLU with a BN layer changes the nonlinear characteristics of the network and also changes the way the gradient propagates in the network. Initialization of the competitive dense block CDB1 is used to normalize the original input data, obtain data features, and reduce the number of parameters.
[0061] E. Multi-branch cross-attention competition dense block MCDB includes the following structure:
[0062] Multi-branch cross-attention competition dense block MCDB Figure 2 As shown in Figure (d), the multi-branch cross-attention competition dense block MCDB is used to split the underlying features into three branches; MCDB consists of three competition dense blocks CDB and a convolution kernel ConvKernel. The size of the convolution kernel Conv Kernel can be k1×k1, k2×k2, and k3×k3 to enhance the network's understanding of the input data. When the data passes through these modules, the network will learn features at different spatial resolutions.
[0063] F. The dense block RD includes the following structure:
[0064] Dense block RD Figure 2 As shown in Figure (c), the dense block RD is used in the multi-branch cross-attention dense block DCDB, and convolution kernels Conv Kernel of different sizes are used for decoding; the dense block RD contains two CBR modules (convolution layer, BN layer, PReLU), a convolution kernel Conv Kernel, a BN layer, a Maxout activation function, and a PReLU. Specifically, in this embodiment, the dense block RD includes: the size of the convolution kernel of the first CBR module is 3×3, and the size of the convolution kernel of the second CBR module is 1×1. The size of the convolution kernel Conv Kernel after the two CBR modules can be k1×k1, k2×k2, and k3×k3. After the convolution kernel is a batch normalization layer (BN layer) and a Maxout activation function, and finally a PReLU activation function. The Maxout activation function and the PReLU activation function improve the nonlinearity and generalization ability of the network.
[0065] G. Multi-branch cross-attention dense block DCDB includes the following structure:
[0066] Multi-branch cross-attention dense block DCDB Figure 2 As shown in Figure (e), the multi-branch cross-attention dense block DCDB is used to fuse multi-scale features and upsampling to obtain three feature maps, which will be sent to the next convolution group to obtain the highest segmentation accuracy; DCDB consists of three Maxout activation functions, three RD modules and a convolution kernel Conv Kernel. The size of the convolution kernel Conv Kernel can be k1×k1, k2×k2, and k3×k3. The sizes of the convolution kernel Conv Kernel in the three RD modules are k1×k1, k2×k2, and k3×k3 respectively. By using multiple branches, the network learns features at different levels and finally fuses this information. DCDB can integrate information at different levels and understand the input data more comprehensively.
[0067] Step 3: The loss function definition consists of two parts, including the Dice similarity coefficient (DSC) and cross entropy. The loss function is a tool used to measure the gap between the model prediction results and the true value when training deep learning models. DSC is one of the most commonly used indicators for evaluating the performance of medical segmentation based on deep learning. Its essence is to measure the overlap of two samples, which can be expressed as a mathematical formula:
[0068]
[0069] Where T is the true value of the training label, and P is the binary segmentation map predicted by the network. In the actual calculation process, T∩P| is the sum of all pixel values after the dot product of T and P, and |T| and |P| represent the sum of all pixel values in T and P respectively. The value range of DSC is 0 to 1. The closer the value is to 1, the higher the overlap between the true value T of the training label and the binary segmentation map P predicted by the network.
[0070] Cross entropy is used to measure the similarity between two distributions. Cross entropy can be defined as:
[0071]
[0072] Among them, p(x) is the probability of predicting each brain region in the segmentation feature map, and the probability value is normalized into a probability distribution vector, and the sum of all probabilities is 1. q(x) is the probability of predicting each brain region in the label feature map, and the probability value is normalized into a probability distribution vector, and the sum of all probabilities is 1. p represents the probability distribution of the segmentation feature map, and q represents the probability distribution of the label feature map.
[0073] The network loss function L(θ) is a composite loss function of the sum of DSC and cross entropy:
[0074] L(θ)=DSG(T,P)+H(p,q)
[0075] Among them, θ represents the set of internal parameters of the overall network, T is the true value of the training label, and P is the binary segmentation map predicted by the network. p represents the probability distribution of the segmentation feature map, and q represents the probability distribution of the label feature map.
[0076] Step 4: Train the optimal parameters of the deep learning network model with multi-scale and multi-branch attention modules based on the Unet network
[0077] Use U-Net as the basic architecture, add multi-scale and multi-branch attention modules; use the Adam optimizer with good performance in deep learning, the number of training iterations is 30, the number of input data channels is 7, the batch size is 8, and the weight decay rate is 10 -4 The initial learning rate is 0.01 and decreases by 95% every 5 epochs. After all epochs are trained, the model with the lowest validation loss is selected as the best model.
[0078] Step 5: Input the T1-weighted MRI brain data to be segmented into the trained network for segmentation. The network segmentation process can be expressed as:
[0079]
[0080] Among them, f overall (·) represents the segmentation process of the overall network, Represents the input data to be segmented. Represents the optimal set of parameters in the trained network.
[0081] In an embodiment, a brain image is input into a trained network to obtain a segmented image, such as Figure 3 shown.
[0082] FastSurferCNN, MRF-Net and the method proposed in the present invention were tested on the test data set Mindboggle-101, and the average Dice value of the segmentation results and the model segmentation time obtained are shown in Table 1. Compared with the comparison methods FastSurfer and MRF-Net, the average Dice of the segmentation of the method of the present invention is improved by 0.97% and 0.63%, respectively. While ensuring the accuracy of segmentation, the method of the present invention reduces the segmentation time, and the average segmentation time is 92.21s. Compared with the segmentation time of the fastSurfer and MRF-Net methods on the same server, it is shortened by 6.74% and 15.29%, respectively. The present invention has greatly improved the number of brain region segmentations, segmentation accuracy and speed, and has great potential in disease prediction.
[0083] Table 1 Comparison of segmentation effects of different segmentation methods
[0084]
[0085] Note: The server's operating system is CentOS Linux 7 and its processor is Intel Xeon Silver 4210.
[0086] Based on the Unet network structure, the present invention introduces a lightweight multi-scale segmentation attention block and a multi-branch cross-attention module to improve the segmentation accuracy of brain regions of different sizes. At the same time, it introduces a Maxout activation connection dense block to reduce the computational complexity of the network. It can segment 161 brain regions with higher segmentation accuracy and faster segmentation speed.
[0087] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technology in the field within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.
Claims
1. A brain region segmentation algorithm based on deep learning, characterized by The following steps are involved: 1) Obtain the results of Destrieux brain atlas segmentation as training labels for model training and evaluation, and merge some left and right brain regions to reduce labels, obtaining a training set of 122 brain region labels; 2) Design a deep learning network model with multi-scale and multi-branch attention modules based on Unet network expansion; 3) Construct the loss function of the network; 4) Using the training set obtained in step 1), find the optimal parameters of a deep learning network model with multi-scale and multi-branch attention modules based on the Unet network; 5) Input the T1-weighted MRI brain data to be segmented into the trained network for segmentation.
2. A brain region segmentation algorithm based on deep learning as claimed in claim 1, characterized in that In step 1), the specific method of obtaining the result of the Destrieux brain atlas segmentation as the training label for model training and evaluation, and merging some left and right brain regions to reduce the labels to obtain a training set of 122 brain region labels is: First, obtain T1-weighted MRI image data represents the S-th layer T1-weighted MRI image data, represents the real number domain, NX, NY, and S represent the length, width, and number of layers of the image in the data respectively; then the T1-weighted MRI image data X is segmented using the Destrieux brain atlas partitioning method to generate a result with 187 brain regions Indicates the segmentation result of the Sth layer image; then the cortical areas that are in contact on the left and right hemispheres of the brain are merged into one brain region, and then all other regions are combined, and several uncommon brain regions are removed, resulting in a result with 122 brain regions. It represents the result after reducing the brain area of the S-th layer image; finally, X, The training set is formed and stored in an hdf5 file as the input data of the network.
3. A brain region segmentation algorithm based on deep learning as claimed in claim 1, characterized in that In step 2), the deep learning network model with multi-scale and multi-branch attention modules based on the Unet network is based on the Unet network, and two attention modules, namely the multi-scale segmentation attention module CSA and the multi-branch cross attention module MCAM, are introduced to increase the receptive fields of different scales, and the seven modules with different compositions are connected through the Maxout activation operation and the jump path to reduce the amount of network training parameters; A. Multi-scale segmentation attention module CSA: After the input data G passes through a convolution layer Conv, it is divided into two groups, namely G1 and G2, and the size of the convolution kernel of the convolution layer is h1×h1; G1 and G2 pass through a convolution layer respectively to obtain G'1 and G'2, and the size of the convolution kernel of the convolution layer is h2×h2; G'1 and G'2 are added and passed through a convolution layer to obtain G"1, and the size of the convolution kernel of the convolution layer is h2×h2; G"1 and G'2 are added and passed through a global pooling layer, a convolution layer, a normalization function and a linear rectification function to obtain After another convolution layer and a softmax activation function, we get The size of the convolution kernel of the convolution layer is h1×h1; Add to G"1, After adding it to G'2, it passes through a convolution layer and then adds it to G to output the result. The size of the convolution kernel of the convolution layer is h1×h1. B. Multi-branch Cross-Attention Module DCSA: It consists of three CSA modules and one convolution kernel Conv Kernel. The size of the convolution kernel Conv Kernel is k1×k1, k2×k2, and k3×k3. C. Competition Dense Blocks CDB: It contains three serially connected encoder modules. Each encoder module consists of a parameter-corrected linear function, a convolutional layer, a BN layer, and two Maxout activation functions. The size of the convolution kernel of the convolutional layer is r×r. D. Initialize the competitive dense block CDB1: Initialize the competitive dense block CDB1. Based on the competitive dense block CDB, replace the PReLU of the first encoder module with the BN layer; E. Multi-branch Cross-Attention Competitive Dense Block MCDB: It consists of three CDB modules and one convolution kernel Conv Kernel. The size of the convolution kernel Conv Kernel is k1×k1, k2×k2, and k3×k3. F. Dense Block RD: The dense block RD contains two CBR modules, a convolution kernel Conv Kernel, a BN layer, a Maxout activation function, and a ReLU; the size of the convolution kernel of the convolution layer is r×r, and the size of the convolution kernel Conv Kernel is k1×k1, k2×k2, and k3×k3. G. Multi-branch Cross-Attention Dense Block DCDB: It consists of three Maxout activation functions, three RD modules and a convolution kernel Conv Kernel. The size of the convolution kernel ConvKernel is k1×k1, k2×k2, and k3×k3. The sizes of the convolution kernels in the three RD modules are k1×k1, k2×k2, and k3×k3 respectively.
4. A brain region segmentation algorithm based on deep learning as claimed in claim 1, characterized in that In step 3), the loss function definition consists of two parts, including Dice similarity coefficient and cross entropy; DSC is one of the most commonly used indicators for evaluating the performance of medical segmentation based on deep learning. Its essence is to measure the overlap of two samples, which can be expressed as follows: Where T is the true value of the training label, and P is the binary segmentation map predicted by the network. In the actual calculation process, T∩P| is the sum of all pixel values after the dot product of T and P, and |T| and |P| represent the sum of all pixel values in T and P respectively. Cross entropy is used to measure the similarity between two distributions. Cross entropy is defined as: Among them, p(x) is the probability of predicting each brain region in the segmentation feature map, and the probability value is normalized into a probability distribution vector, and the sum of all probabilities is 1. q(x) is the probability of predicting each brain region in the label feature map, and the probability value is normalized into a probability distribution vector, and the sum of all probabilities is 1. p represents the probability distribution of the segmentation feature map, and q represents the probability distribution of the label feature map. The network loss function L(θ) is a composite loss function of the sum of DSC and cross entropy: L(θ)=DSG(T,P)+H(p,q) Among them, θ represents the set of internal parameters of the entire network, T is the true value of the training label, P is the resulting binary segmentation map predicted by the network; p represents the probability distribution of the segmentation feature map, and q represents the probability distribution of the label feature map.
5. A brain region segmentation algorithm based on deep learning as claimed in claim 1, characterized in thatIn step 4), the optimal parameters of the deep learning network model with multi-scale and multi-branch attention modules based on the Unet network are solved by using the Adam optimizer with good performance in deep learning, and the network is trained using the training set generated in step 1), and the optimal parameter set is obtained by minimizing the loss function L(θ) in step 3). Represents the set of network parameters when the network segmentation effect is optimal.
6. A brain region segmentation algorithm based on deep learning as claimed in claim 1, characterized in that In step 5), the T1-weighted MRI brain data to be segmented is input into the trained network for segmentation. The network segmentation process is expressed as: Among them, f overall (·) represents the segmentation process of the overall network, Represents the input data to be segmented. Represents the optimal set of parameters in the trained network.
Citation Information
Patent Citations
Brain tumor multi-mode MRI image segmentation method based on deep learning
CN114926477A
Rat cerebrovascular segmentation method based on attention mechanism multi-kernel convolution of blood vessel enhancement
CN117078691A
Brain tumor image region segmentation method and device, neural network and electronic equipment
CN117315243A
