A liver CT image segmentation system and algorithm based on hybrid supervised learning
The liver CT image segmentation system and algorithm based on hybrid supervised learning utilizes weak labels and a small number of strong labels, combined with learnable word vectors and triplet loss functions, to solve the problems of high cost and low accuracy in existing technologies, and achieves efficient and accurate liver CT image segmentation.
Patent Information
- Application Number
- CN202111180680.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-11
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-10-11
AI Technical Summary
Existing liver CT image segmentation methods rely on strong labels with pixel-level annotations, resulting in high time and labor costs. Furthermore, existing hybrid supervised learning methods cannot effectively improve segmentation accuracy, and the excessive number of independent parameters in the multi-task framework leads to inconsistent results.
A liver CT image segmentation system and algorithm based on hybrid supervised learning is adopted. By combining weak labels and a small number of strong labels, and using learnable word vectors and triplet loss function, the system optimizes multi-task consistency and segmentation accuracy through image preprocessing, feature extraction, word vector segmentation and single-layer convolutional classification units.
It improves the accuracy and consistency of liver CT image segmentation with a small number of strong labels, significantly enhances the performance of classification and segmentation tasks, reduces manual annotation costs, and maintains high segmentation accuracy.
Smart Images

Figure CN113870238B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the interdisciplinary field of medicine and computer science, and specifically relates to a liver CT image segmentation system and algorithm based on hybrid supervised learning. Background Art
[0002] CT scanning is a routine medical examination method that uses X-rays and detectors to perform cross-sectional scans around the human body. With the help of computers, the detection information is reconstructed into cross-sectional views, i.e. slices. Multiple slices can be combined into a three-dimensional view of the internal organs and tissues of the human body. In abdominal CT images, pixel-level segmentation of the liver helps in the pathological diagnosis of liver diseases, preoperative planning, and postoperative evaluation, etc. It is of great significance for the treatment and research of liver diseases such as hepatitis, cirrhosis, and liver cancer. Pixel-level segmentation of the liver requires pixel-level marking of the liver part in each layer of CT slices, which is generally completed by doctors during preoperative planning. However, in order to obtain more subtle tissue lesion images, high-resolution CT scans are usually performed. Therefore, the pixel resolution in the CT slices is high, and the slice thickness is thin, resulting in an increase in the number of slices, thereby increasing the workload of doctors.
[0003] In order to enable doctors to achieve fast and accurate liver segmentation, most existing methods use convolutional neural network structures, using a large number of CT images with pixel-level annotations as supervision to train the network and enable the network to achieve segmentation tasks. This learning method is called supervised learning, in which the pixel-level annotation of CT images is called a strong label because it carries the true value mask of the segmentation task. In contrast, image-level annotation, that is, whether the CT slice contains the target object, is called a weak label.
[0004] The problem with the above-mentioned supervised learning segmentation method is that in the process of making training data sets, pixel-level image annotation requires a lot of time and manpower costs, and doctors with rich medical experience are required to perform quality control, which makes it difficult to obtain strong labels. In order to solve the dependence of supervised learning on strong labels, the traditional solution is data enhancement, which expands the training data set by cropping, rotating, flipping and other operations on the original image to improve the generalization ability of the neural network. However, the improvement of this method is limited, and a large amount of valid data other than data with strong labels is wasted. Therefore, in recent years, many studies have proposed semi-supervised learning methods. For unlabeled images, pseudo labels are generated using generative adversarial learning, knowledge distillation and other methods to achieve the expansion of training data sets, but these methods cannot avoid the impact of wrong labels on network learning, and it is difficult to further improve the accuracy of image segmentation. In this regard, some studies have proposed the use of hybrid supervised learning, using weak labels whose labeling costs are much lower than strong labels to improve the generalization ability of the network. Weak labels do not require doctors to judge and label the precise location of lesions, greatly reducing the cost of manual labeling, and can be obtained in large quantities. In addition, since weak labels have accurate image category information compared to unlabeled ones, they can better provide effective supervision and achieve a balance between segmentation accuracy requirements and labeling costs. However, existing hybrid supervision methods usually use a multi-task framework. The large number of independent parameters between multiple tasks will cause inconsistent results in multiple tasks. The classification task affects the feature representation of the network model to a certain extent, thereby affecting the segmentation accuracy. Summary of the invention
[0005] In view of the advantages and disadvantages and existing problems of the above algorithms, the present invention provides a liver CT image segmentation system and algorithm based on hybrid supervised learning to improve the accuracy of liver disease examination. The present invention is achieved through the following technical solutions:
[0006] The present invention discloses a liver CT image segmentation system based on hybrid supervised learning. The image segmentation system includes an image preprocessing unit, a feature extraction unit, a word vector segmentation unit and a single-layer convolution classification unit. The image preprocessing unit is data-connected with the feature extraction unit, and the feature extraction unit is data-connected with the word vector segmentation unit and the single-layer convolution classification unit respectively.
[0007] As a further improvement, the construction process of the image preprocessing unit of the present invention is as follows:
[0008] The HU value range in the truncated CT slice image is [H1, H2], where H1 and H2 represent the lower and upper bounds of the rough HU value that can preserve the liver tissue intact and remove the bony structure. Then the size of the slice image is scaled to (H0, W0), where (H0, W0) represents the input image size of the feature extraction unit.
[0009] As a further improvement, the construction process of the feature extraction unit described in the present invention is:
[0010] Taking U-Net as the basic skeleton, the output feature map of the penultimate convolutional layer of U-Net has a size of (B, C0, H, W), where B represents the number of images in each batch, C represents the number of channels, and (H, W) represents the resolution of the feature map. This feature map passes through a convolutional layer with an input channel of C0, an output channel of C, and a convolution kernel size of (K0, K0), and then batch normalization is performed on the output result. Finally, a Tanh activation function is passed to obtain a target feature map of size (B, C, H, W).
[0011] As a further improvement, the construction process of the word vector segmentation unit described in the present invention is:
[0012] A learnable word vector v is introduced with a dimension of C. The word vector v is convolved with the above target feature map to obtain a heat map of size (B, 1, H, W). The sigmoid activation function is used to calculate the confidence of each pixel in the heat map to obtain the segmentation confidence of each pixel, and τ is used to calculate the confidence of each pixel. s The foreground and background are divided by the threshold. Pixels smaller than the threshold are considered to be the background area, and pixels greater than or equal to the threshold are considered to be the foreground area, that is, the liver area.
[0013] As a further improvement, the construction process of the single-layer convolution classification unit described in the present invention is:
[0014] For the target feature map generated by the feature extraction unit, a learnable K1×K1 convolution kernel is used for convolution, satisfying K1<H and K1<W, to obtain a heat map with a scale of (B, 1, H, W). The heat map is calculated using the maxpooling function to obtain the maximum feature response value in each image in this batch, and then it is input into the sigmoid function to calculate the confidence of each image, and the confidence score is calculated with τ c The confidence is divided into thresholds. If the confidence is less than the threshold, it is considered that there is no liver area in the image, and if it is greater than or equal to the threshold, it is considered that there is a liver area in the image.
[0015] The present invention also discloses a segmentation algorithm of a liver CT image segmentation system based on hybrid supervised learning. The algorithm segmentation includes a testing phase and a training phase. The steps of the testing phase are as follows:
[0016] Use CT scanning to obtain the abdominal CT image to be segmented, split the CT image into single-frame two-dimensional CT slices along the human body axis, and input them into the image preprocessing unit in sequence. The preprocessed image is input into the feature extraction unit, and the output deep image features are input into the word vector segmentation unit to complete the liver pixel-level segmentation task.
[0017] As a further improvement, in the training stage of the present invention, a CT scan data set is constructed, and the data set construction process is: abdominal CT scan data is collected, and the CT is split into a series of two-dimensional slice images along the human body axis. All slice images are manually classified according to whether they contain liver, as a weak label, containing liver as foreground, and not containing liver as background. Among all the images classified as foreground, a part of the images that is much smaller than the total foreground is randomly selected for pixel-level annotation as strong labels, and the number of strong labels and foreground weak labels are represented as s and w, respectively.
[0018] As a further improvement, the present invention randomly samples several pictures in the strong label image and sequentially passes through the image preprocessing unit, the feature extraction unit and the word vector segmentation unit, and calculates the binary cross entropy loss Loss between the output confidence image and each corresponding pixel of the strong label annotated at the pixel level. s ,
[0019]
[0020] where x n Represents the pixel value of the heat map generated after the feature map convolution, y n Denotes the true value of the corresponding strong label, σ(·) denotes the sigmoid function, and N denotes the total number of all pixels. Then, the strong label is mapped to the target feature map, and the same number of foreground pixel features and background pixel features are sampled according to the areas where the foreground and background are located, and the triple loss Loss is calculated in combination with the word vector v. t , as shown below
[0021] where p i represents the foreground pixel feature, n i represents the background pixel feature, d(·) represents the distance between vectors, margin represents the bias, which is used to adjust the effective distance between vectors, and M represents the number of sampling times.
[0022] As a further improvement, the present invention randomly samples several pictures from the weakly labeled foreground image and sequentially passes through the image preprocessing unit, feature extraction unit and single-layer convolution classification unit to obtain the confidence of these images, and calculates the classification loss Loss of the foreground in combination with the image-level category label. cf , as shown below
[0023] Losscf =-y wf ·logσ(x wf )
[0024] where x wf Indicates the maximum response value of the heat map, y wf Represents the true value category label of the foreground image. Randomly sample several pictures in the weakly labeled background image and pass them through the image preprocessing unit, feature extraction unit and single-layer convolution classification unit in turn to obtain the confidence of these images. Combined with the image-level category label, calculate the classification loss of the background. cb , as shown below
[0025] Loss cb =-(1-y wb )·logσ(x wb )
[0026] where x wb Indicates the maximum response value of the heat map, y wb represents the true category label of the background image, so the overall loss function for network training is expressed as
[0027] Loss=Loss s +Loss t +Loss cf +Loss cb .
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] A multi-task framework is used to perform segmentation and classification tasks separately, and a large amount of weak label data and a small amount of strong labels are used to achieve higher segmentation accuracy. In order to solve the problem of a large number of independent parameters between multiple tasks, the network parameters shared between multiple tasks are increased as much as possible. A learnable word vector v is used to implement the segmentation task, and a 1 × 1 convolution kernel is used for single-layer convolution to implement the classification task, which reduces the amount of independent parameters and improves the consistency of results between multiple tasks.
[0030] To address the problem that classification tasks interfere with the feature representation of the network model, the present invention introduces a learnable word vector v to convolve the feature layer, and at the same time introduces the triplet loss in metric learning to explicitly learn the feature representation so that the pixel-level features of the same category remain consistent.
[0031] The segmentation performance of hybrid supervised learning is significantly better than that of supervised learning using a small number of strong labels. The present invention is significantly better than existing methods in both classification and segmentation indicators, and for both classification and segmentation tasks, the present invention can maintain a high performance, reflecting good consistency. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a flow chart of a liver CT image segmentation algorithm based on hybrid supervised learning provided in an embodiment;
[0033] Figure 2 It is a schematic diagram of the algorithm network model structure and a schematic diagram of the loss function calculation in the training phase provided in the embodiment. DETAILED DESCRIPTION
[0034] The present invention discloses a liver CT image segmentation system based on hybrid supervised learning. The segmentation system comprises an image preprocessing unit, a feature extraction unit, a word vector segmentation unit and a single-layer convolution classification unit. The image preprocessing unit is data-connected with the feature extraction unit, and the feature extraction unit is data-connected with the word vector segmentation unit and the single-layer convolution classification unit respectively.
[0035] The construction process of the image preprocessing unit is:
[0036] The HU value range in the truncated CT slice image is [H1, H2], where H1 and H2 represent the lower and upper bounds of the rough HU value that can preserve the liver tissue intact and remove the bony structure. Then the size of the slice image is scaled to (H0, W0), where (H0, W0) represents the input image size of the feature extraction unit.
[0037] The construction process of the feature extraction unit is:
[0038] Taking U-Net as the basic skeleton, the output feature map of the penultimate convolutional layer of U-Net has a size of (B, C0, H, W), where B represents the number of images in each batch, C represents the number of channels, and (H, W) represents the resolution of the feature map. This feature map passes through a convolutional layer with an input channel of C0, an output channel of C, and a convolution kernel size of (K0, K0). Then batch normalization is performed on the output result, and finally a Tanh activation function is passed to obtain a target feature map of size (B, C, H, W).
[0039] The construction process of the word vector segmentation unit is:
[0040] A learnable word vector v is introduced with a dimension of C. The word vector v is convolved with the above target feature map to obtain a heat map with a size of (B, 1, H, W). The sigmoid activation function is used to calculate the confidence of each pixel in the heat map to obtain the segmentation confidence of each pixel, and τ is used to calculate the confidence of each pixel. sUse a threshold to divide the foreground and background. Pixels less than the threshold are considered the background area, and pixels greater than or equal to the threshold are considered the foreground area, that is, the liver area.
[0041] The construction process of the single-layer convolutional classification unit is as follows:
[0042] For the target feature map generated by the above feature extraction unit, use a learnable K1×K1 convolutional kernel for convolution, where K1 < H and K1 < W, to obtain a heat map with a scale of (B, 1, H, W). Use the maxpooling function to calculate this heat map to obtain the maximum feature response value in each image of this batch, and then input it into the sigmoid function to calculate the confidence of each image, and use τ c as the threshold to divide the confidence. Those less than the threshold are considered that there is no liver area in the image, and those greater than or equal to the threshold are considered that there is a liver area in the image.
[0043] The present invention also discloses a liver CT image segmentation algorithm based on hybrid supervised learning. When the algorithm is tested, it performs the following steps: Figure 1 is a schematic flowchart of the liver CT image segmentation algorithm provided by the embodiment. Use CT scanning to obtain the abdominal CT image to be segmented, split the CT image along the human body axis into single-frame two-dimensional CT slices, and input them into the image preprocessing unit in sequence. The preprocessed image is input into the feature extraction unit, and the output deep image features are input into the word vector segmentation unit to complete the liver pixel-level segmentation task.
[0044] When the algorithm is trained, it performs the following steps: construct a CT scan dataset, collect abdominal CT scan data, split the CT along the human body axis into a series of two-dimensional slice images, and manually classify all slice images according to whether they contain the liver as weak labels. Those containing the liver are the foreground, and those not containing the liver are the background. Among all the images classified as the foreground, randomly select a part of the images that is much less than the total amount of the foreground for pixel-level annotation as strong labels.
[0045] The numbers of the strong labels and the foreground weak labels are respectively denoted as s and w. Figure 2 is a schematic diagram of the algorithm network model structure and a schematic diagram of the loss function calculation in the training stage provided by the embodiment. Randomly sample several pictures from the strong label images and pass them through the image preprocessing unit, the feature extraction unit, and the word vector segmentation unit in sequence. Calculate the binary cross-entropy loss Loss between the output confidence image and each corresponding pixel of the strongly labeled pixel-level annotation s , as follows
[0046]
[0047] where xn Represents the pixel value of the heat map generated after the feature map convolution, y n Denotes the true value of the corresponding strong label, σ(·) denotes the sigmoid function, and N denotes the total number of all pixels. Then, the strong label is mapped to the target feature map, and the same number of foreground pixel features and background pixel features are sampled according to the areas where the foreground and background are located, and the triple loss Losss is calculated in combination with the word vector v t , as shown below
[0048]
[0049] where p i represents the foreground pixel feature, n i represents the background pixel feature, d(·) represents the distance between vectors, margin represents the bias, which is used to adjust the effective distance between vectors, and M represents the number of sampling times.
[0050] Randomly sample several pictures from the weakly labeled foreground image and pass them through the image preprocessing unit, feature extraction unit and single-layer convolution classification unit in turn to obtain the confidence of these images, and calculate the classification loss of the foreground in combination with the image-level category label. cf , as shown below
[0051] Loss cf =-y wf ·logσ(x w f)
[0052] where x wf Indicates the maximum response value of the heat map, y wf Represents the true value category label of the foreground image. Similarly, randomly sample several pictures from the weakly labeled background image and pass them through the image preprocessing unit, feature extraction unit and single-layer convolution classification unit in turn to obtain the confidence of these images, and calculate the classification loss of the background in combination with the image-level category label. cb , as shown below
[0053] Loss cb =-(1-y wb )·logσ(xw b )
[0054] where x wb Indicates the maximum response value of the heat map, y wb represents the true category label of the background image. Therefore, the overall loss function for network training is expressed as
[0055] Loss=Loss s +Loss t +Loss cf+Loss cb
[0056] The present invention conducted experiments on the public LiTS abdominal CT dataset, where the ratio of strong labels to foreground weak labels was 1:49. First, an ablation experiment was conducted on whether to introduce triplet loss, and the results are as follows:
[0057]
[0058] Table 1
[0059] Among them, accuracy, precision, recall, F1, and AUC are commonly used indicators for classification tasks, and Dice and IOU are commonly used indicators for segmentation tasks. According to the results in Table 1, it can be seen that the introduction of triplet loss can significantly improve the performance of the network in classification and segmentation tasks. In addition, the comparison results of the present invention and the existing hybrid supervision method are as follows:
[0060]
[0061] Among them, U-Net represents supervised learning based on the U-Net framework using strong labels, U-Net-m represents a multi-task framework that uses U-Net to complete the segmentation task and completes the classification task through the intermediate layer results through a fully connected network, and Pawel-19 represents the multi-task network structure in "Deep learning with mixed supervision for brain tumor segmentation" published by Pawel et al. The results show that the segmentation performance of mixed supervised learning is significantly better than that of supervised learning using a small number of strong labels. The present invention is significantly better than the existing methods in both classification and segmentation indicators, and for both classification and segmentation tasks, the present invention can maintain a high performance, reflecting good consistency.
[0062] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of protection of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention shall fall within the scope of protection required by the present invention.
Claims
1. A liver CT image segmentation system based on hybrid supervised learning, characterized in that: The image segmentation system includes an image preprocessing unit, a feature extraction unit, a word vector segmentation unit and a single-layer convolution classification unit, wherein the image preprocessing unit is data-connected with the feature extraction unit, and the feature extraction unit is data-connected with the word vector segmentation unit and the single-layer convolution classification unit respectively; The construction process of the feature extraction unit is as follows: Taking U-Net as the basic skeleton, the output feature map of the penultimate convolutional layer of U-Net has a size of (B, C0, H, W), where B represents the number of images in each batch, C0 represents the number of channels, and (H, W) represents the resolution of the feature map. This feature map is passed through a convolutional layer with an input channel of C0, an output channel of C, and a convolution kernel size of (K0, K0). Then, batch normalization is performed on the output result, and finally a Tanh activation function is passed to obtain a target feature map of size (B, C, H, W). The construction process of the word vector segmentation unit is as follows: A learnable word vector v is introduced with a dimension of C. The word vector v is convolved with the above target feature map to obtain a heat map with a size of (B, 1, H, W). The sigmoid activation function is used to calculate the confidence of each pixel in the heat map to obtain the segmentation confidence of each pixel, and τ is used to calculate the confidence of each pixel. s The foreground and background are divided by the threshold. Pixels smaller than the threshold are considered as the background area, and pixels greater than or equal to the threshold are considered as the foreground area, i.e. the liver area. The construction process of the single-layer convolution classification unit is as follows: For the target feature map generated by the above feature extraction unit, a learnable convolution kernel of K1×K1 is used for convolution, where K1 < H and K1 < W, to obtain a heat map with a scale of (B, 1, H, W). The maxpooling function is used to calculate this heat map to obtain the maximum feature response value in each image of this batch. Then, it is input into the sigmoid function to calculate the confidence of each image, and c τ is used as the threshold to divide the confidence. If the confidence is less than the threshold, it is considered that there is no liver region in the image; if it is greater than or equal to the threshold, it is considered that there is a liver region in the image.
2. The liver CT image segmentation system based on hybrid supervised learning according to claim 1, characterized in that: The construction process of the image preprocessing unit is as follows: The HU value range in the truncated CT slice image is [H1, H2], where H1 and H2 represent the lower and upper bounds of the rough HU value that can preserve the liver tissue intact and remove the bony structure. Then the size of the slice image is scaled to (H0, W0), where (H0, W0) represents the input image size of the feature extraction unit.
3. A segmentation algorithm for a liver CT image segmentation system based on hybrid supervised learning as claimed in claim 1 or 2, characterized in that: The segmentation algorithm includes a testing phase and a training phase. The steps of the testing phase are as follows: Use CT scanning to obtain the abdominal CT image to be segmented, split the CT image into single-frame two-dimensional CT slices along the human body axis, and input them into the image preprocessing unit in sequence. The preprocessed image is input into the feature extraction unit, and the output deep image features are input into the word vector segmentation unit to complete the liver pixel-level segmentation task.
4. The segmentation algorithm of the liver CT image segmentation system based on hybrid supervised learning according to claim 3 is characterized in that: In the training phase, a CT scan data set is constructed. The data set construction process is as follows: abdominal CT scan data is collected, and the CT is split into a series of two-dimensional slice images along the human body axis. All slice images are manually classified according to whether they contain liver as weak labels, with those containing liver as foreground and those not containing liver as background. Among all the images classified as foreground, a portion of images that is much smaller than the total foreground is randomly selected for pixel-level annotation as strong labels. The number of strong labels and foreground weak labels are represented as s and w, respectively.
5. The segmentation algorithm of the liver CT image segmentation system based on hybrid supervised learning according to claim 4 is characterized in that: Randomly sample several pictures from the strong label image and pass them through the image preprocessing unit, feature extraction unit and word vector segmentation unit in turn. The output confidence image is compared with each corresponding pixel of the strong label annotated at the pixel level to calculate the binary cross entropy loss Loss s , where x n Represents the pixel value of the heat map generated after the feature map convolution, y n represents the corresponding strong label true value, σ(·) represents the sigmoid function, and N represents the total number of all pixels. Then, the strong label is mapped to the target feature map, and the same number of foreground pixel features and background pixel features are sampled according to the areas where the foreground and background are located. The triplet loss Loss is calculated in combination with the word vector v. t , as shown below where p i represents the foreground pixel feature, n i represents the background pixel feature, d(·,·) represents the distance between vectors, margin represents the bias, which is used to adjust the effective distance between vectors, and M represents the number of sampling times.
6. The segmentation algorithm of the liver CT image segmentation system based on hybrid supervised learning according to claim 5 is characterized in that: Randomly sample several images from the weakly labeled foreground image and pass them through the image preprocessing unit, feature extraction unit and single-layer convolution classification unit in turn to obtain the confidence of these images, and calculate the classification loss of the foreground in combination with the image-level category label. cf , as shown below Loss cf =-y wf ·logσ(x wf ) where x wf Indicates the maximum response value of the heat map, y wf Represents the true value category label of the foreground image. Randomly sample several pictures in the weakly labeled background image and pass them through the image preprocessing unit, feature extraction unit and single-layer convolution classification unit in turn to obtain the confidence of these images. Combined with the image-level category label, calculate the classification loss of the background. cb , as shown below Loss cb =-(1-y wb )·logσ(x wb ) where x wb Indicates the maximum response value of the heat map, y wb represents the true category label of the background image, so the overall loss function for network training is expressed as Loss=Loss s +Loss t +Loss cf +Loss cb 。
