A Novel Brain Image Segmentation Method Using an Improved 3D U-Net Model

,


Introduction
A basic task in medical IS [1,2] is to extract specific organs and tumors from different types of medical images.Organ and tumor segmentation provides an important basis for cancer diagnosis, surgical planning, and pathological analysis.e segmentation of organs and tumors in the clinic faces two main challenges.e first challenge is the quality of medical images.Due to the diversity of clinical needs, doctors usually choose different imaging examination methods to produce different types of medical images, such as computed tomography (CT) [3], magnetic resonance imaging (MRI) [4], X-ray [5], and ultrasound [6].Different types of imaging equipment have different principles and will be interfered by various factors during the image acquisition process.ere are many reasons for interference, which can be summarized into the following three points.
One is that due to individual differences, the organs or tumors of patients of different body shapes and ages will show different shapes of anatomical structures on medical images.Second, in the image acquisition process, the patient's breathing, blood flow, heart circulation, and other factors will cause the anatomical structure to deform.e overlapping of soft tissues such as organs causes unclear boundaries.e third is the defects of the equipment itself and the interference from the outside.e above factors will reduce the image quality and increase the difficulty of medical IS. e second challenge is the characteristics of the disease itself.Some tumors appear in the early stage of medical images with small volume, small difference in texture from surrounding tissues, and low contrast, which affects the accuracy of segmentation.ese small tumors are easily misdiagnosed as calcification or fatification or even ignored, leading to misdiagnosis or missed diagnosis of cancer.It is an arduous and complicated task to screen out images with tumors and segment them from a large number of medical images.erefore, there is an urgent clinical need to develop a method that can accurately and automatically segment tumor regions from a large number of medical images to assist doctors in cancer diagnosis.
Traditional medical IS methods include threshold method [7,8], graph cut method [9,10], and region growing method [11,12].e threshold method mainly calculates the threshold value suitable for the segmentation task according to the manually designed criteria and compares the gray value of each pixel in the image with the threshold value, thereby separating the target from the background.e core idea of the region growing method is to select a seed pixel in different regions and use the texture, gray, gradient, color, and other characteristics as the criterion to measure the similarity between all other pixels in the region and the seed pixel.Pixels that meet the similarity criterion are classified into one category to achieve IS. e core idea of the graph cut method is to take the pixels of the image as the vertices of the graph and establish the graph structure from the predefined vertex connection relationship.By designing a suitable cutting criterion to remove the edges that do not conform to the criterion, several unconnected subgraphs are obtained.
ese subgraphs constitute the final segmentation result.Traditional IS methods rely on manually set parameters, and setting these parameters requires a lot of medical expertise.With the emergence of bottlenecks in traditional medical segmentation methods, there are more and more medical IS studies based on deep learning methods.e segmentation model based on deep learning does not require manual setting of parameters.Under the guidance of supervision information, features can be automatically learned from the given training samples, which significantly improve the efficiency and accuracy of IS.
In recent years, medical IS methods based on deep learning have made good progress.All fully connected layers of neural networks such as AlexNet [13] and VGG Net [14] are replaced with convolutional layers, and fully convolutional networks (FCNs) [15] are proposed, and this network is applied to the field of IS for the first time.In order to extract multiscale features of an image, convolution or pooling operations are usually used to change the feature size of the image.Since the size of the IS result needs to be consistent with the original image size, an upsampling operation is used to restore the feature map size to the original image size.e part of the network used to extract features is usually called the encoder, and the part of the network that is restored from the features to the original image size is called the decoder.e encoder and decoder form an encoding-decoding structure.Based on the encoding-decoding structure, U-Net [16] introduces skip connections to integrate low-level semantic information with high-level semantic information, which further improves the segmentation performance of the network.e success of U-Net made other networks choose U-Net as the backbone of the model.Iglovikov and Shvets [17] regard VGG Net as the encoder of U-Net and improve the performance of U-Net by pretraining the weights of VGG Net on ImageNet.Attention U-Net [18] introduces an attention mechanism into the decoder of U-Net [19], which effectively suppresses the influence of areas that are not related to the target in the medical image.Sun et al. [20] introduce the Attention-Up module to improve the symmetric structure of U-Net to an asymmetric structure.
e above methods mainly use 2D models to segment clinical medical images.However, clinical medical images are usually stacked by multiple slices, and adjacent slices of the image are sometimes related to each other.Only the 2D model cannot learn the features between image slices.With the continuous deepening of research, many 3D segmentation models for 3D medical images have begun to emerge.V-Net [21] and 3D U-Net [22] replace two-dimensional convolution with three-dimensional convolution and realize the transformation from the 2D model to the 3D model.Compared with the 2D model, the 3D model encodes the image in three directions and extracts the three-dimensional features of the image.3D models need to consume a lot of computing and storage resources when calculating, so the image needs to be cropped into image blocks of a certain size and input into the network for calculation.In order to take advantage of the respective advantages of the 2D and 3D medical IS models, H-Dense U-Net [23] combines the 2D segmentation model with the 3D segmentation model.e 2D model is used to extract the intraslice features of the three-dimensional medical image, and the 3D model is used to extract the interslice features, and the segmentation accuracy is improved by fusing the intraslice features and the interslice features.
Although the CNN-based IS model performs well in a variety of segmentation tasks, its performance still has room for improvement.Since CNN-based IS models are mostly two-dimensional models, they are not suitable for threedimensional medical imaging.erefore, this article uses 3D U-Net model to segment medical images.e work done in this study is summarized as follows: (1) e advantages and disadvantages of various network models in medical IS are compared and analyzed, and the 3D U-Net network is used for brain IS tasks.[24] proposed a 3D U-Net network structure for learning 3D segmentation from sparsely annotated stereo data.e 3D U-Net model structure is shown in Figure 1.

Network Advantages and Disadvantages.
e biggest feature of the 3D U-Net network is the U-shaped codec structure and jump connection so that the shallow features can be well integrated with the high-level abstract features.
ese features are very effective for medical images with continuous structure, fuzzy boundaries, and simple semantics.Without considering the calculation and memory performance, the 3D U-Net network can combine the information between image layers to ensure the continuity of changes between the image masks of the interlayer. is feature is easier to obtain better results than using 2D slices for training.
e network structure of 3D U-Net [25] realizes the segmentation in two scenarios.One is for semiautomatic segmentation, and the other is for fully automatic segmentation.In semiautomatic segmentation, users mark some slices in the volume to be segmented.e network then learns from these sparse annotations and provides a dense 3D segmentation result.In fully automated segmentation, it is assumed that there is a representative training set with sparse annotations.Trained on this dataset, the network can intensively segment new volumetric images.
e main disadvantage of the 3D U-Net network lies in the memory usage, which makes it impossible to use the entire 3D patch as input.erefore, it needs to be tailored.Generally, the entire volume is cut into a series of 3D patches of the same size as input.Using patch for training will limit the size of the maximum receptive field that the network can reach, resulting in the loss of certain global information.If the target to be segmented is much larger than the patch block, it is difficult for the network to learn the overall structure of the target.

Image Segmentation Based on Improved 3D
U-Net Model is article introduces the SECDC module to optimize the convolution operation in 3D U-Net. is module first uses 1 × 1 × 1 convolution to reduce the dimensionality of the network layer.
en, feature mapping is performed on the input layer with normal convolution and dilated convolution with an expansion rate of 2. en, learn the importance of different layers through the 3D-SE module, and finally, use 1 × 1 × 1 convolution to upgrade the dimension.
e structure of the module is shown in Figure 3.

3D-SE Module.
e Squeeze-and-Excitation (SE) module [26] is mainly used to measure the relationship between channels so that the model can automatically learn the importance of different channel features.Two key operations, Squeeze and Excitation, are included in the SE module.e Squeeze operation aggregates the feature maps obtained by convolution to obtain the feature map with dimension W × H as the feature descriptor, so as to obtain the information of the global receptive field.e Excitation operation is a self-screening mechanism that uses a sample specialized activation function to evaluate the weights of all channels.e module structure is shown in Figure 4.
e mapping rules of the SE module can be expressed as F tr : X ⟶ U, X ∈ R H′×W′×C′ , U ∈ R H×W×C .In the convolutional map, let the convolution kernel be where v c represents the cth convolution kernel, and the output U � [u 1 , u 1 , . . ., u C ] can be expressed as where * represents convolution and v s c represents a 3D convolution kernel.It inputs spatial features on a channel to learn the relationship between feature spaces.However, the convolution results of each channel are summed so that the feature relationship of each channel is merged with the spatial relationship of the convolution kernel.is fusion is not good for the training of the model.e SE module avoids this unprofitable fusion and aims to allow the model to directly obtain the characteristic relationship of each channel.
Compared with the original SE module, the improved 3D SE module can be applied to three-dimensional convolution.It mainly focuses on the importance of different channel features in three-dimensional space features.Figure 5 gives the structure of the 3D SE module.
e output formula of the 3D SE module is as follows: where the difference between SE and 3D SE modules is that v s c represents a 4D convolution kernel, which can be directly combined with the 3D convolution operation in 3D U-Net.

1 × 1 × 1 Convolution
. Add 1 × 1 × 1 convolution before and after convolution, as shown in Figure 3. 1 × 1 × 1 convolution has two main functions.One is to realize cross-channel interaction and information integration.e 1 × 1 × 1 convolution keeps the width, height, and depth of the data unchanged and linearly combines multiple features to achieve cross-channel information integration and improve the expressive ability of the network.e second is to reduce and increase the number of channels of the convolution kernel.Since the 3 × 3 × 3 convolution is very timeconsuming to perform convolution operations on the convolutional layer of hundreds of filters, the 1 × 1 × 1 convolution is used to reduce and increase the dimensionality before and after the 3 × 3 × 3 convolutional layer.Dimensional operation reduces the number of parameters and shortens time.

Dilated Convolution.
Dilated convolution [27,28] injects holes in the standard convolution map.Compared with normal convolution, the dilated has one more hyperparameter called the dilation rate, which represents the number of intervals between the convolution kernels.e dilatation rate of the convolution kernel for normal convolution operation is 1. e advantage of dilated convolution is that, without pooling loss information, the receptive field is enlarged so that each convolution output contains a larger range of information.e SECDC module structure is shown in Figure 3.

Segmentation Tasks and Experimental Datasets.
e segmentation task is to accurately segment the three tumor regions of brain tumor patients, namely, whole tumor (WT), tumor core (TC), enhanced umor (ET), and background region.Among them, WT refers to the area containing all tumor types, TC refers to the area containing all gangrene types, and ET refers to the area containing all enhanced tumor types.
e dataset used in the experiment is BraTS2019 [29].
e experimental dataset selected MRI images of 248 HGG patients and 68 LGG patients.e MRI image of each patient includes four registered modal images and real segmentation label images.Each modal and real segmentation label has 155 scanned images of different layers with a size of 240 × 240.
Before network training, preprocess the MRI image.Cut and standardize the image first.e size of the processed image is 160 × 160, and methods such as flipping, rotation, and elastic deformation continue to be used for data enhancement.
e test data enhancement here refers to multiple transformations of an image, including folding, rotating, cropping, scaling, and adding random noise.Input it into the model and calculate multiple versions of data and finally get the average output as the final output of the image.Use 5-fold cross validation in the experiment to avoid data bias.Images of 180 HGG patients and 50 LGG patients were used as training samples.Images of 68 HGG patients and 18 LGG patients were used as the test set.e network inputs the data of each patient, including preprocessed MRI images of FLAIR, T1, T1ce, and T2, and real segmentation labels.
e network output is a segmentation map of each patient, including 4 types of segmentation labels: WT, TC, ET, and background area.
where TP and TN represent pixels as True Positive and True Negative and FP and FN represent pixels as False Positive and False Negative.In the calculation formula of Hausdorff distance, sup represents the supremum, inf represents the inferior, A is the manually marked tumor area, a is the point on A, P is the predicted tumor area, p is the point on P, and dis(a, p) represents the function used to calculate the distance between two points.Dice coefficient, PPV, and Sensitivity are used to evaluate the overlap between the real value and the predicted result.Large values of these three indicators represent good performance of the algorithm.
Hausdorff distance is used to calculate the distance between the true value boundary and the predicted area boundary.A small Hausdorff value represents good performance of the algorithm.

Experimental Setup and Environment.
Before starting to train the entire model, the hyperparameters in the model need to be set reasonably. is study uses a five-fold crossvalidation method to determine the optimal hyperparameters to improve the effect and performance of the network.In the experiment, all weights are initialized randomly using N(0, 1) Gaussian distribution.According to the graphics card and memory conditions, set batch_size to 1. e initial learning rate is set to 0.001 using Adam optimization algorithm [30].e Adam optimization algorithm calculates the gradient's first-order moment estimation and second-order moment estimation to adapt the learning rate.e exponential decay rate of the firstorder moment estimation is set to 0.88, and the exponential decay rate of the second-order moment estimation is set to 0.97.e comparison algorithms used in the experiment are CNN, U-net, and 3D U-net.e experimental environment is shown in Table 1.

Experimental Results and Analysis.
e segmentation results of the four comparison models on the dataset are shown in Table 2.In order to compare the experimental data more vividly, this study uses a histogram to show the difference between each model in each indicator, as shown in Figure 6.
Table 2 shows the segmentation results of the four models for the three tissues.It can be seen from Table 2 that, in terms of Dice, PPV, and Sensitivity, 3D U-net and U-Net score higher than CNN.
is shows that U-Net is more 6 Scientific Programming   suitable for medical IS.In the three indicators of Dice, PPV, and Sensitivity, 3D U-net has a larger index value than U-net.On the Hausdorff index, 3D U-net has a smaller value than U-net segmentation.is shows that 4 indicators all prove that 3D U-net has better segmentation effect than U-Net.From the data in the table, it can be seen that the method proposed in this paper has greatly improved the scores of Dice, PPV, and Sensitivity, and the value of Hausdorff scores has been significantly reduced.
e 3D U-net that introduces the SECDC module can automatically learn the importance of different layers, thereby improving the segmentation accuracy and robustness of the model so that the segmentation effect of the model used in this article is optimal.Specifically, in terms of the Dice indicator, compared with CNN, U-Net, and 3D U-net, the model used has increased by 10.46%, 5.68%, and 2.50%, respectively.e Dice index of tumor segmentation of the whole tumor area exceeded 0.87, and the segmentation Dice index of tumor enhancement area reached 0.80.In the PPV index, compared with CNN, U-Net, and 3D U-net, the model used has increased by 10.50%, 5.95%, and 3.54%, respectively.In the Sensitivity index, compared with CNN, U-Net, and 3D U-net, the models used have increased by 6.94%, 2.46%, and 2.07%, respectively.In the Hausdorff index, compared with CNN, U-Net, and 3D U-net, the models used are reduced by 16.93%, 7.05%, and 6.70%, respectively.From the analysis of the data, it can be seen that the model proposed in this paper is superior to other methods in terms of performance, accuracy, and sensitivity.
Since there are many improvement strategies for 3D U-net, many studies have applied their improved 3D U-net models to IS.In order to compare the effects of different improvement strategies on IS performance, and this paper compares the model used with other improved 3D U-Net models.Table 3 shows the performance comparison between the proposed model and other types of improved 3D U-Net models.In order to compare the experimental data more vividly, this study uses a histogram to show the difference between each model in each indicator, as shown in Figure 7.
Analyzing the segmentation performance of the three parts, the model segmentation in [31] has the worst effect, followed by [33], and then [32].e IS performance based on the proposed model is relatively good.On the indicator Dice, for [31][32][33], the proposed model increased by 23.56%, 5.06%, and 5.68%, respectively.On the indicator Hausdorff, for [31][32][33], the proposed model increases by 28.03%, 11.01%, and 19.62%, respectively.According to the experimental

Conclusion
Aiming at the unsatisfactory effect of traditional CNN on the segmentation of 3D medical images, this paper selects the U-Net model with higher performance for brain IS.Considering that the 3D U-Net model has problems such as complex network structure and large amount of calculation, this paper introduces the SECDC module into 3D U-Net, thereby constructing a high-precision lightweight segmentation model.e improved 3D U-Net network uses 1 × 1 × 1 convolution to reduce the amount of parameters.Based on the normal convolution and the dilated convolution with the expansion rate of 2, the image features under different fields of view are effectively explored.At the same time, the 3D-SE module is introduced to effectively automatically learn the importance of different layers, thereby improving the robustness of the model.e experimental results on the BraTS2019 dataset prove the superiority of this method.However, in practical applications, there are still problems such as large sample labeling workload and long model segmentation time.According to these problems, the algorithm in this paper can be further optimized to achieve rapid network segmentation and efficient diagnosis by doctors.In addition, future work will continue to study the relationship between encoding and decoding and make full use of low-level features and semantic information to optimize the results.References [31] References [32] References [33] Proposed

( 2 )
Due to the complex network structure and large amount of calculation in the 3D segmentation model, this paper introduces the SECDC module optimization model.e introduction of the SECDC module can reduce the calculation parameters and effectively reduce the amount of calculation.(3) e abovementioned improved 3D U-Net network is applied to the brain image dataset.e IS evaluation index is used to verify the experimental results, and the results show the effectiveness of the model used.Based on the better segmentation performance of the used model, it has certain clinical significance for the diagnosis of diseases.

Figure 2 :FFigure 3 :
Figure 2: Image segmentation process based on the network model.

4. 2 .
Evaluation Index.Four evaluation indicators are used in the experiment to evaluate the segmentation performance of the algorithm.e four evaluation indicators are Dice coefficient, Positive Predictive Value (PPV), Sensitivity, and Hausdorff distance.e calculation formulas of each indicator are as follows: Dice � 2TP FP + 2TP + FN ,

Figure 6 :
Figure 6: Segmentation comparison of each model on different indicators.

Figure 7 :
Figure 7: Segmentation comparison of various studies on different indicators.
Scientific Programming of this strategy is fast, but the spatial location information is insufficient.e second is to send the volume directly into the 3D network for training.is method has a large amount of parameters, a long training time, and high requirements on hardware conditions, but its segmentation effect is better than that of a 2D network.e use of CNN network can make 2D biomedical IS reach the accuracy close to human manual segmentation.It is because of such successful applications that people begin to use CNN network to segment 3D data.In 2016, Çiçek et al.
2.1.Network Structure.At present, there are two strategies for 3D medical IS tasks.One is to send the 2D slices of the volume into the 2D network for training.e training speed 2 By inputting the test data, the evaluation index is calculated according to the test result.
3.1.ModelSegmentationProcess.Generally speaking, the IS process based on the network model is shown in Figure2.First, preprocess the image to be segmented.Preprocessing mainly includes cutting a series of standardized processing.Second, the training data is input into the model structure, and the IS model is obtained through training.In this study, we use an improved 3D U-Net model for training.ird, when the network training is over, the performance of the trained network needs to be tested.

Table 2 :
Image segmentation results of each comparison model.

Table 3 :
e effect of different improved 3D U-net models on brain tumor segmentation.can be seen that the proposed model is superior to other methods in different segmentation areas of the tumor, and the overall segmentation performance is better.