An image segmentation method based on a dual-U-shaped network framework

By adopting a double U-shaped network framework in image segmentation and using boundary and area information to train the network, the problem of failure to fully utilize boundary information in the existing technology is solved, and the accuracy and performance of image segmentation are significantly improved.

CN111340816BActive Publication Date: 2024-10-29SHENZHEN ZHUILAI TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010207167.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-23
Publication Date
2024-10-29
Estimated Expiration
2040-03-23

AI Technical Summary

Technical Problem

In the existing technology, only target area information is used to train the network, which fails to make full use of potentially useful boundary information, resulting in poor image segmentation performance.

Method used

Using a method based on the double U-shaped network framework, the image data is divided into a training set and a test set, a double U-shaped network structure is built, and the original CT image input is used to output the probability map of the boundary and area, and the network parameters are updated by calculating the loss function. Iterative training for better segmentation performance.

Benefits of technology

By simultaneously utilizing target boundary and region information, the accuracy and performance of image segmentation are significantly improved, especially when segmenting organs, which performs well and improves the Dice score.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111340816B_ABST
    Figure CN111340816B_ABST
Patent Text Reader

Abstract

The present invention discloses an image segmentation method based on a double U-shaped network framework, and the specific method is as follows: S1: dividing image data into a training set and a test set; S2: building a double U-shaped network structure, inputting the training set into the network structure, and obtaining a network output, i.e., a segmentation result probability map; the segmentation result probability map includes boundary and region information; S3: calculating a loss function according to the difference between the segmentation result probability map and a gold standard; S4: using reverse transfer to reduce the loss function, thereby updating the coefficients in the network; S5: iterating the process of S2-S4 for 40 times, iterating until convergence, and obtaining an image segmentation network; S6: using the trained image segmentation network to identify and segment the image to be identified. The present invention simultaneously uses the target area and the boundary to segment the image, thereby obtaining better segmentation performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of image processing, and in particular relates to an image segmentation method based on a double U-shaped network framework. Background Art

[0002] Image segmentation is the process of representing an image as a collection of physically meaningful connected regions. Based on the prior knowledge of the target and background, the target and background in the image are marked and located, and then the target is separated from the background or other pseudo targets. As the basis of image analysis, image segmentation has been widely used in the segmentation of tissues and organs in medical images.

[0003] Usually, doctors determine the boundaries of organs based on the grayscale of the image and existing prior knowledge. However, this manual segmentation requires doctors to spend a lot of time and energy, and such work is monotonous and tiring. Therefore, some traditional image processing methods have been applied to organ segmentation. However, due to the low image contrast, the different organ shapes of different patients and the similarities between different organs, it is difficult to obtain high automatic segmentation accuracy. Therefore, an automatic organ segmentation method with good segmentation performance remains an unsolved problem.

[0004] In the image segmentation problem, the gold standard of the target to be segmented is usually obtained by manual delineation. However, the widely used CNNs (Convolutional Neural Networks, CNNs) segmentation method uses the entire area of ​​the target as a label to train the network, and does not fully utilize the potentially useful boundary information. Compared with training the network using only the target area information, if both the boundary and area information of the target are fully utilized, the segmentation result will be greatly improved. Summary of the invention

[0005] In view of the defects of the prior art, the purpose of the present invention is to solve the technical problem that the prior art only uses the target area information to train the network and does not fully utilize the potentially useful boundary information.

[0006] To achieve the above object, the present invention provides an image segmentation method based on a double U-shaped network framework, the method comprising the following steps:

[0007] S1: Divide the image data into training set and test set;

[0008] S2: Build a double U-shaped network structure, input the training set into the network structure, and obtain the network output, i.e., the segmentation result probability map; the segmentation result probability map includes boundary and region information;

[0009] S3: Calculate the loss function based on the difference between the segmentation result probability map and the gold standard;

[0010] S4: Use backpropagation to reduce the loss function and update the coefficients in the network;

[0011] S5: Iterate the process of S2-S4 40 times, until the iterations converge, and obtain the image segmentation network;

[0012] S6: Use the trained image segmentation network to identify and segment the image to be identified.

[0013] Specifically, the image data includes the original CT image and the corresponding boundaries manually marked by a doctor;

[0014] The label of the boundary is obtained by dilating the boundary drawn by the doctor by 2 pixels inward or inward and outward.

[0015] Specifically, the double U-shaped network structure is a symmetrical structure, including a contraction path and an expansion path, the input is from the original CT image, and the output is a probability image of the boundary and the region.

[0016] Specifically, the contraction path is connected to the two expansion paths respectively; the output of the convolution layer on the contraction path is connected to the input of the convolution layer on the two expansion paths respectively;

[0017] The contraction path simultaneously extracts low-dimensional feature maps of the boundary and the region, and the two expansion paths automatically extract high-dimensional feature maps of the boundary and the region respectively;

[0018] The expansion path changes the number of feature maps from 32 to the target number of segmentation 2; the sigmoid function is used to convert the feature map into a segmentation result probability map; and a threshold of 0.5 is used to convert the probability map into a binary segmentation result.

[0019] Specifically, according to the resolution of the low-dimensional and high-dimensional feature maps, the contraction path and the expansion path are divided into five different states, each state consists of two blocks, each block contains a 3*3 convolution layer, a batch normalization layer and a linear rectification activation layer, and on the contraction or expansion path, the second block is connected in series with a downsampling or upconvolution layer with a kernel size of 2*2; the last layer of the two expansion paths is a 1*1 convolution layer.

[0020] Specifically, the loss function M-Dice and M-Loss functions are defined as:

[0021]

[0022]

[0023] Among them, M is 2, indicating the boundary and region of the target to be segmented, p i and g iRepresents the value of the pixel in the output probability image P and the gold standard image G, N represents the sum of the number of pixels in the target image; Dice represents the overall consistency between the segmentation result and the gold standard, and its value ranges from 0 to 1, 0 means there is no overlap between the two volumes, and 1 means complete overlap.

[0024] Beneficial effects of the present invention:

[0025] The present invention is based on an image segmentation method of a double U-shaped network framework, which uses both the target area and the boundary to segment the image. The input of the proposed network is the original CT image, and the output is the probability image of the boundary and the region. During the network training process, the probability map of the target boundary and the region is used to calculate the loss function. Compared with training the network using only area information, the boundary will provide additional local information for target segmentation, thereby obtaining better segmentation performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.

[0027] Figure 1 It is a schematic diagram of the double U-shaped network structure of the present invention;

[0028] Figure 2 is a label map of the trachea boundary in an embodiment of the present invention;

[0029] Figure 3 The average Dice comparison map of the segmentation of esophagus, heart, trachea and aorta using the existing technology U-Net and double U-net;

[0030] Figure 4 This is a comparison diagram of average Dice data for segmentation of four organs using two different methods to expand the target boundary in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In the prior art, with the emergence of large-scale labeled data and GPUs with powerful computing power, deeper convolutional neural networks (CNNs) have been widely used in the fields of computer vision and image processing. CNNs are widely regarded as an effective tool in the field of image analysis. They can directly use the original image as input and directly use the generated effective feature map to obtain better segmentation results. They use an image block-based approach to segment images. Each pixel in the image is used as the center of a fixed-size image block, and the image block is used as input data to train and test a classification CNN. The prediction result of each image block is used as the segmentation result of the center point. Obviously, the overlap area of ​​adjacent image blocks is large, which will cause excessive storage overhead. In addition, most convolutions are repeatedly calculated multiple times, which will bring the disadvantage of low efficiency; in addition, the size of each image block is fixed, so only some fixed-scale features can be extracted from the image block for classification.

[0032] The Fully Convolufional Network (FCN) replaces the fully connected layer in the ordinary convolutional neural network with a convolutional layer, and uses a deconvolution layer at the back end of the network to upsample the obtained feature map, so that the network input and output image sizes are consistent, and the network can be operated end-to-end. At the same time, the network uses a skip connection structure to combine contextual information to improve segmentation accuracy. Compared with the image block-based segmentation method, FCN greatly improves the calculation speed of the algorithm. However, because FCN does not fully utilize the shallow position information of the image and is not sensitive enough to the details of the image, the segmentation result is not accurate enough for the original scale image.

[0033] The U-Net network derived from FCN is a U-shaped fully convolutional network consisting of a contraction path on the left and a symmetrical expansion path on the right. In addition, a short connection is used between the contraction path and the expansion path to combine the shallow feature map with the deep feature map. Since this connection structure can combine deep semantic information with shallow position features, it enhances the learning ability of the network's global features and achieves accurate pixel-level classification and positioning. SegNet, 3D U-Net, V-Net, ResNetU-Net and Unet++ are widely used in the field of image segmentation.

[0034] In order to solve the above technical problems, in the embodiment of the present application, low-dimensional and high-dimensional features are used simultaneously to segment the boundaries and regions of the target. An image segmentation method based on a double U-shaped network framework comprises the following steps:

[0035] S1: Divide the image data into training set and test set;

[0036] Specifically, the image data includes the original CT image and the corresponding boundaries manually marked by doctors;

[0037] The label of the above boundary is obtained by expanding the boundary drawn by the doctor inward or inward and outward by 2 pixels.

[0038] S2: Build a double U-shaped network structure, input the training set into the network structure, and obtain the network output, i.e., the segmentation result probability map; the segmentation result probability map includes boundary and region information;

[0039] Specifically, the double U-shaped network structure is a symmetrical structure, including a contraction path and an expansion path, the input is from the original CT image, and the output is the probability image of the boundary and region

[0040] S3: Calculate the loss function based on the difference between the segmentation result probability map and the gold standard;

[0041] S4: Use backpropagation to reduce the loss function and update the coefficients in the network;

[0042] S5: Iterate the process of S2-S4 40 times to obtain an image segmentation network; 40 is a value set based on experience, and the loss function value decreases with each iteration. After 40 times, the loss function value remains almost unchanged;

[0043] S6: Use the trained image segmentation network to identify and segment the image to be identified.

[0044] Specifically, Figure 1 As shown, it is a double U-shaped network framework structure diagram provided by an embodiment of the present application; the boxes in the figure represent multi-channel feature maps and replicated feature maps respectively, the numbers above them represent the number of feature channels of the input convolutional layer, and the numbers on the lower left represent the size of the feature map. Figure 1 The shapes and arrows in the figure represent different operations. In the entire network, each convolutional layer is followed by a batch normalization (BN) layer and a linear rectification (ReLU) activation layer, which are omitted in the figure.

[0045] On the basis of the above embodiment, according to the resolution of the feature map, the path in the network can be divided into five different states. Each state consists of 2 blocks, each block contains a 3*3 convolution layer. In addition, a BN layer and a ReLu activation layer are followed by the convolution layer. On the contraction (expansion) path, the second block is followed by a maximum downsampling (upper convolution) layer with a kernel size of 2*2. The last layer of the two expansion paths is a 1*1 convolution layer, which changes the number of feature maps from 32 to the target number of segmentation 2. Then, the feature map is converted into a segmentation result probability map using the sigmoid function. When testing the image, a threshold of 0.5 is used to convert the probability map into a binary segmentation result.

[0046] In this implementation, the input of the proposed network is the original CT image, and the output is the probability image of the boundary and region. During the training process, the label of the boundary is obtained by expanding the boundary drawn by the doctor by 2 pixels inward or inward and outward, such as Figure 2 As shown, the label map of the trachea boundary, the expanded boundary is represented by white, the boundary manually outlined by the radiologist in Figure (a) is in the expanded boundary, and the boundary manually outlined by the radiologist in Figure (b) is outside the expanded boundary. The expanded boundary in (a) and (b) expands by 2 pixels to the sides and inside, respectively. During the network training process, the probability map of the target boundary and the region is used to calculate the loss function. Compared with training the network using only area information, the boundary will provide additional local information for target segmentation. Therefore, the method described in this embodiment uses both boundary and region information to train the segmentation CNNs network in the hope of obtaining better segmentation performance.

[0047] The loss function in the above step S3 can be obtained as follows:

[0048] Dice can measure the volume overlap between the segmentation result and the gold standard. For the single target segmentation problem, the Dice function composed of the binary image P obtained by segmentation and the gold standard binary image G is:

[0049]

[0050] Among them, p i and g i Represents the value of the pixel in the segmented image P and the gold standard image G, and N represents the total number of pixels in the target image.

[0051] In multi-target segmentation, Dice is usually extended to multi-target Dice (M-Dice).

[0052]

[0053] Among them, M is 2, which means the boundary and region of the target to be segmented;

[0054] The M-Loss function can usually be expressed as:

[0055] M-Loss=M-(M-Dice) (3)

[0056] When calculating the proposed network Dice, the boundary and region information of the target are closely related. When the boundary and region are segmented accurately at the same time, the segmentation result will be optimal. Based on this, the definition of M-Dice and the corresponding M-loss function is as follows:

[0057]

[0058]

[0059] In this implementation, the probability map output by the network is used instead of the binary image obtained by segmentation to calculate the M-Loss function, which will make the calculation in the training process simpler and more convenient.

[0060] Evaluation criteria for segmentation results

[0061] The average Dice of all test data is used to measure the segmentation performance of the double U-shaped neural network proposed in this patent. Dice represents the overall consistency between the segmentation result and the gold standard. Its value ranges from 0 to 1. 0 means no overlap between the two volumes, and 1 means complete overlap.

[0062] The method provided in the embodiment of the present invention is applied to organ segmentation:

[0063] For the 40 groups of chest CT images in the database including trachea, heart, esophagus and aorta, this embodiment uses a 5-fold cross-validation method to evaluate the segmentation performance, that is, the CT data is evenly divided into 5 groups, four groups of data are used for training each time, and one group of data is used for testing; this process is repeated five times until all five groups of data are tested.

[0064] Since each organ needs to train a segmentation network, four different networks need to be trained to segment four different organs. The segmentation network is implemented using python and the deep learning library keras. The experimental equipment has 128G memory, 2.2GHz Intel E5 CPU, and 11G memory NVIDIA GTX-2080Ti GPU. This patent uses the He_normal method to initialize the network weight coefficients and uses the Adam method to search for the optimal solution of the coefficients. At the same time, the learning rate is set to 0.0003, and 4 images are processed in batches at a time.

[0065] Implementation results: The segmentation results of different organs are as follows: Figure 3 As shown, Figure 3 Average Dice for segmenting esophagus, heart, trachea, and aorta using classic U-Net and double U-Net;

[0066] Use the example described Figure 2 (b) The method expands the target boundary by 2 pixels on both sides. For the esophagus and aorta, the segmentation results of the classic U-Net are not good, and their average Dice values ​​are 0.750 and 0.875 respectively. However, the dual U-net proposed in Example 1 is used to segment these two organs that are difficult to segment. By fusing the information of the target boundary and the region, the average Dice values ​​are 0.775 and 0.910 respectively.

[0067] Based on the above embodiments, the effects of different boundary dilation methods on segmentation performance are implemented;

[0068] Different boundary dilation methods are used, such as Figure 2 As shown in Figure 2. For different boundary dilation methods, the average Dice obtained is very similar, as shown in Figure 2. Figure 4 As shown, this shows that the segmentation performance of the double U-shaped network is stable.

[0069] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. An image segmentation method based on a double U-shaped network framework, characterized in that: include S1: Divide the image data into training set and test set; S2: Build a double U-shaped network structure, input the training set into the network structure, and obtain the network output, i.e., the segmentation result probability map; the segmentation result probability map includes boundary and region information; S3: Calculate the loss function based on the difference between the segmentation result probability map and the gold standard; S4: Use backpropagation to reduce the loss function and update the coefficients in the network; S5: Iterate the process of S2-S4 40 times, until the iterations converge, and obtain the image segmentation network; S6: Use the trained image segmentation network to identify and segment the image to be identified; The double U-shaped network structure is a symmetrical structure, including a contraction path and an expansion path, the input is the original CT image, and the output is the probability image of the boundary and the region; The contraction path is connected to the two expansion paths respectively; the output of the convolution layer on the contraction path is connected to the input of the convolution layer on the two expansion paths respectively; The contraction path simultaneously extracts low-dimensional feature maps of the boundary and the region, and the two expansion paths automatically extract high-dimensional feature maps of the boundary and the region respectively; The expansion path changes the number of feature maps from 32 to the number of segmentation targets 2; the sigmoid function is used to convert the feature map into a segmentation result probability map; a threshold of 0.5 is used to convert the probability map into a binary segmentation result; The loss function M-Dice and M-Loss functions are defined as: Among them, M is 2, indicating the boundary and region of the target to be segmented, p i and g i Represents the value of the pixel in the output probability image P and the gold standard image G, N represents the sum of the number of pixels in the target image; Dice represents the overall consistency between the segmentation result and the gold standard, and its value ranges from 0 to 1, 0 means there is no overlap between the two volumes, and 1 means complete overlap.

2. The image segmentation method based on the double U-shaped network framework according to claim 1 is characterized in that: The image data includes the original CT image and the corresponding boundaries manually marked by a doctor; The label of the boundary is obtained by dilating the boundary drawn by the doctor by 2 pixels inward or inward and outward.

3. The image segmentation method based on the double U-shaped network framework according to claim 1 is characterized in that: According to the resolution of the low-dimensional and high-dimensional feature maps, the contraction path and the expansion path are divided into five different states, each state consists of two blocks, each block contains a 3*3 convolution layer, a batch normalization layer and a linear rectification activation layer, and on the contraction or expansion path, the second block is connected in series with a downsampling or upconvolution layer with a kernel size of 2*2; the last layer of the two expansion paths is a 1*1 convolution layer.

Citation Information

Patent Citations

  • A superpixel method for medical image segmentation

    CN109035252A

  • A novel biomedical image automatic segmentation method based on a U-net network structure

    CN109191476A

  • Target object identification method and device

    CN109919932A

  • Abdominal vessel segmentation method based on 3D residual U-Net and weighted loss function

    CN110211140A