Weakly supervised liver tumor segmentation method based on ROI and split-fusion strategy

Through a pixel-level label generation network based on the region of interest ROI and split-fusion strategy, the shortcomings of manual feature setting and manual annotation in liver tumor segmentation are solved, more accurate pixel-level labels are generated, the segmentation effect and generalization ability are improved, and the The cost of manual labeling is reduced.

CN114565762BActive Publication Date: 2024-09-13XIDIAN UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210187222.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-09-13
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

Existing liver tumor segmentation methods rely on manually setting features or require a large amount of manual annotation, which increases the possibility of misdiagnosis or missed diagnosis, and the pixel-level labeling of weakly supervised methods is incomplete, resulting in poor segmentation results.

Method used

A pixel-level label generation network based on the region of interest ROI and split-fusion strategy is used to generate more accurate pixel-level labels through box-level weak annotation. Combined with ResNet50 and the region proposal network, the split-fusion module is used to generate pixel-level labels and train semantics. Segmentation network DeepLabV3 to improve segmentation effect.

Benefits of technology

Obtaining more complete and accurate pixel labeling improves the accuracy and segmentation results of liver tumor segmentation, has stronger generalization ability, and reduces the time and cost of manual annotation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114565762B
    Figure CN114565762B
Patent Text Reader

Abstract

The present invention discloses a weakly supervised liver tumor segmentation method based on ROI and split-fusion strategy, which mainly solves the problem that the existing weakly supervised method is not complete and accurate in target positioning. Its implementation scheme is: divide the input image to obtain a training set and a test set; construct a pixel-level label generation network W based on ROI and split-fusion strategy; iteratively train the network W with the training set to obtain a preliminarily trained network W i , and then re-input the training set into the network W after the initial training i Iterative training is performed in the network to obtain the final trained network W'; pixel-level labels are generated using W' to train the existing semantic segmentation network G to obtain the trained segmentation model G'; the images of the test set are sent to G' for testing to obtain the segmentation results. The present invention achieves good performance by using border-level weak annotation to avoid manually obtaining a large number of pixel-level labels, and can be used to assist medical diagnosis and tumor screening.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent diagnosis of medical images, and in particular relates to a weakly supervised liver tumor segmentation method, which can be used for clinical auxiliary diagnosis, liver tumor screening, etc. Background Art

[0002] Liver cancer is one of the most common cancers in the world and one of the main causes of cancer death worldwide. According to statistics from the World Health Organization in 2015, liver cancer has become the second leading cause of cancer death worldwide. Currently, the most accurate method for diagnosing liver cancer in clinical practice is liver puncture biopsy, but this detection scheme has obvious shortcomings in terms of implementation difficulty, patient experience, and postoperative recovery. With the increasing maturity of computed tomography (CT) technology, medical image analysis has been widely used in various aspects of clinical medicine, such as medical diagnosis, preoperative planning, and postoperative monitoring. In traditional liver clinical diagnosis, doctors often find lesions based on the patient's medical images. However, with the improvement of CT accuracy, the number of CT images obtained from each scan has also greatly increased, which greatly increases the workload of doctors. At the same time, the analysis and diagnosis of CT images are very dependent on the subjective judgment of doctors. These factors increase the possibility of misdiagnosis or missed diagnosis. The premise of liver lesion analysis is to quickly and accurately locate the liver area from CT images. Therefore, designing a computer-aided diagnosis (CAD) system that can quickly and accurately segment the liver is of great significance in clinical applications. Since the muscles around the liver and other organs such as the heart and kidneys have little grayscale contrast with the liver, the liver edge is blurred, which poses a challenge to liver segmentation.

[0003] The traditional liver segmentation method is to segment the liver and tumor by manually setting features, which means that the liver segmentation results are greatly affected by the manually set features. It can be roughly divided into grayscale-based and structure-based segmentation methods.

[0004] Grayscale-based methods mainly include the liver and tumor segmentation methods based on the level set algorithm LSM proposed by Yang et al., which first obtain a rough liver region by setting seed points on the preprocessed binary image for region growth, and then use the level set algorithm LSM to refine the liver segmentation result; then the level set algorithm LSM of local intensity clustering is combined with the hidden Markov random field and expectation maximization algorithm to extract liver tumors. The disadvantage of this method is that when the grayscale difference between the target and the background is small, it is difficult to effectively distinguish the liver from the surrounding tissues, and the method will lose its effectiveness.

[0005] The structure-based method has been proven to be an effective and powerful segmentation method and has been applied in many medical fields. Baazaoui proposed the introduction of entropy-based fuzzy region growing EFRG technology to segment liver tumors. It is used to segment single and multiple liver lesions from CT images and reduce the possibility of under-segmentation, especially in CT images including several lesions. It can improve the robustness of segmentation to a certain extent. However, the disadvantage of this method is that the results depend largely on the selection of samples, and often require manual selection of a large number of samples for training and learning.

[0006] Recently, deep learning methods have been applied to many fields such as medical image processing. Among them, the method based on convolutional neural network (CNN) is the most widely used. This convolutional neural network does not require manual feature annotation. It learns features through an end-to-end method and continuously adjusts parameters to achieve segmentation tasks. It can achieve performance that exceeds that of traditional segmentation algorithms.

[0007] The main semantic segmentation methods based on deep learning include the fully convolutional network FCN proposed by Long et al. in 2015. This network attempts to recover the category of each pixel from abstract features, can adapt to inputs of any size, solves the problem of image segmentation at the semantic level, and lays the foundation for a variety of semantic segmentation methods later. The biggest feature of the fully convolutional network FCN is that it converts the last fully connected layer of the convolutional neural network CNNs into a convolutional layer, and outputs a labeled picture, which can be used for semantic segmentation, solving the problem of input size so that the network can input pictures of any size. This method also lays the foundation for future semantic segmentation network models.

[0008] However, a large number of semantic segmentation schemes, including the fully convolutional network (FCN), are now centered around fully supervised convolutional neural networks. The disadvantage of fully supervised convolutional neural networks is that they require a large amount of manually annotated pixel-level information, and manually annotating images at the pixel level is very time-consuming and labor-intensive. Lin and other scholars pointed out that the annotators of the MSCOCO dataset spent an average of 10.1 minutes to annotate each image pixel by pixel, while it only took an average of 4.1 seconds to form weaker category annotation information for the image. It is precisely because weak supervision greatly reduces time and labor costs that many scholars are now very interested in the field of weak supervision.

[0009] The main purpose of weakly supervised semantic segmentation methods is to generate pixel-level labels from weak labels such as box-level labels, and then use pixel-level labels to train traditional semantic segmentation networks, that is, first obtain accurate pixel-level labels from weak box-level labels; then use the obtained pixel-level labels to train traditional semantic segmentation networks, thereby avoiding artificial pixel-level labels. Existing weakly supervised methods are mainly based on the class activation map CAM proposed by Khosla et al. This method obtains the location map of the target by weighted combination of output channels through a classification network. However, this method can only find part of the key area of ​​the target, which makes the location of the target incomplete and the generated pixel-level labels incomplete, resulting in poor results in the subsequent training of the segmentation network. Summary of the invention

[0010] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and propose a weakly supervised liver tumor segmentation method based on region of interest (ROI) and split-fusion strategy to obtain more accurate pixel-level labels and improve the segmentation effect of the segmentation network.

[0011] To achieve the above object, the technical solution of the present invention includes the following:

[0012] (1) Obtain a reviewed liver tumor CT dataset, use 80% of its images as a training set, and the remaining 20% ​​of the images as a test set. Perform box-level weak annotation on the CT liver tumor images in the training set, and record the annotated rectangular box as the true value box GTBox. The box-level annotation file set of the CT liver images in the annotated training set is obtained.

[0013] (2) Construct a pixel-level label generation network W based on the region of interest ROI and split-fusion strategy:

[0014] (2a) A feature extraction backbone network based on ResNet50 is selected. The output of the network is four feature maps of different scales. The four feature maps of different scales are recorded as P1, P2, P3, and P4 from small to large.

[0015] (2b) Based on the feature maps of P1, P2, P3, and P4, an initial box anchor generator of the region proposal network RPN with the box as the region of interest ROI is established to obtain initial box anchors of different scales;

[0016] (2c) Based on the initial box anchors of different scales and the four feature maps P1, P2, P3, and P4, a proposal box generator of the region proposal network RPN is constructed. The regression loss L of the initial box anchor is calculated based on the predicted regression parameters of the initial box anchor output by the proposal box generator. reg, and then use the predicted regression parameters of the initial box anchor to adjust the spatial coordinates of the initial box anchor to obtain the proposed box proposal;

[0017] (2d) The proposal box generated by (2c) is divided into positive and negative samples, and the feature layer calculation formula Layer is used to determine the feature layer where the proposal box divided into positive and negative samples is located, and the features of the proposal box divided into positive and negative samples are obtained;

[0018] (2e) Construct a split-fusion module consisting of classifier A and classifiers B and C, where the main bodies of A, B, and C are all composed of two layers of convolution. The input of the first convolution layer is the features of the proposal box that has been divided into positive and negative samples. The output of the second convolution layer of classifiers A, B, and C is S a , S b , S c ; for S a , S b , S c Perform global average pooling to obtain P a , P b , P C As the classifier, predict the probability of the proposal box proposal as a positive sample, and calculate the classification loss loss of each of the three classifiers a 、loss b 、loss c ;

[0019] (2f) The output S of the last convolutional layer of the A and B classifiers a , S b Perform Softmax operation to normalize them respectively, and the normalized result is M A , M B , and calculate S a With S b The split loss between split :

[0020]

[0021] in, and Represents M A M B The value at position i,j, β is the splitting strength coefficient, S h and S w are the height and width of the feature map respectively;

[0022] (2g) Calculate S a With S b Fusion lossinter :

[0023] Take S a and S b The minimum value of each position is defined as S inter , and for S inter Perform average pooling to obtain the pooling result P inter , using the pooling result P inter Calculate S a With S b The fusion loss between inter :

[0024] The value of i ranges from 1 to M, where M is the number of proposal boxes;

[0025] (2h) The above feature extraction backbone network is taken as the first part, the initial box anchor generator of the region proposal network RPN is taken as the second part, the proposal box proposal generator of the region proposal network RPN is taken as the third part, and the split-fusion module composed of classifiers A, B, and C is taken as the fourth part. These four parts are cascaded in sequence to form a pixel-level label generation network W based on the region of interest ROI and the split-fusion strategy, and the total loss of the network is set as:

[0026] loss = L reg +loss a +loss b +loss c +loss split +loss inter ;

[0027] (3) using the stochastic gradient descent SGD algorithm to iteratively train the pixel-level label generation network W based on the region of interest ROI and the split-fusion strategy to obtain a trained pixel-level label generation network W′ based on the region of interest ROI and the split-fusion strategy;

[0028] (4) Generate pixel-level labels for each image:

[0029] (4a) Each image in the training set is sent to the trained pixel-level label generation network W′ based on the region of interest ROI and the split-fusion strategy. First, execute (2a) to obtain the feature map of the image, and then extract the features of the truth box GTBox from the feature map according to the coordinates of the truth box GTBox of each image;

[0030] (4b) The features of each truth box GTBox of each photo are sent to classifiers A, B, and C in turn, and the merged graph U of the three classifiers is obtained through the merging strategy. mapas a heat map of the probability distribution of tumors in the ground truth box;

[0031] (4c) The feature map of the truth box GTBox obtained in (4a) is clustered, and the clustering result is combined with the merged map U in (4b) map Get pixel-level tumor labels;

[0032] (5) using the pixel-level tumor labels and training images generated in step (4) in combination with the stochastic gradient descent (SGD) algorithm to train the existing semantic segmentation network DeepLabV3, thereby obtaining a trained semantic segmentation network DeepLabv3;

[0033] (6) The images of the test set are input into the trained DeepLabV3 network for segmentation, and a two-dimensional array with the same size of each image as the original image is obtained. The value of each pixel position in the two-dimensional array represents the probability that the pixel at that position in the original image is a tumor, and it is compared with the set threshold of 0.5:

[0034] If the probability is greater than 0.5, it is predicted that the original image is a tumor at that location.

[0035] If the probability is less than 0.5, it is predicted that the original image at that location is the background.

[0036] Compared with the prior art, the present invention has the following advantages:

[0037] 1) Obtain more complete and accurate pixel labeling

[0038] The present invention introduces a split-fusion strategy, which can focus on more tumor areas. At the same time, by clustering the features in the truth box GTBox extracted by the network, the approximate proportion P of the tumor is obtained, and the pixels with the top P percent probability in the box are taken as the determined tumor pixels, and the remaining 1-P pixels are taken as the background, so that a more complete and accurate tumor pixel labeling can be obtained;

[0039] 2) Better segmentation results

[0040] The present invention improves the segmentation effect of the trained semantic segmentation network because the pixel-level labels obtained are more accurate and complete.

[0041] 3) Strong generalization ability

[0042] The strategy proposed in the present invention can not only be used for liver tumor segmentation but also can be extended to other weakly supervised segmentation tasks, and has greater autonomy in the selection of segmentation models. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a flow chart of the implementation of the present invention;

[0044] Figure 2 It is a structural diagram of a pixel-level label generation network W based on a region of interest ROI and a split-fusion strategy constructed in the present invention;

[0045] Figure 3 is a tumor pixel distribution probability map generated for the training set image in the present invention;

[0046] Figure 4 This is a graph of prediction results using the present invention on a test set. DETAILED DESCRIPTION

[0047] The embodiments and effects of the present invention are further described in detail below with reference to the accompanying drawings.

[0048] Reference Figure 1 , the implementation steps of the present invention are as follows:

[0049] Step 1. Create training and test data.

[0050] (1.1) Input liver tumor images, use 80% of the images as training sets and 20% of the images as test sets. The data used in this example contains 5690 images, of which 4552 images are used as training sets and 1138 images are used as test sets.

[0051] (1.2) Perform bounding box-level weak annotation on the images in the training set and save the annotated weak label files for subsequent training.

[0052] Step 2. Construct a pixel-level label generation network W based on the region of interest ROI and split-fusion strategy.

[0053] Reference Figure 2 , the specific implementation of this step is as follows:

[0054] (2.1) A ResNet50 feature extraction network with 50 layers including 4 structural units is selected, where:

[0055] The first unit consists of 9 convolutional layers, with 3 convolution layers in each group. In each group, the size of the convolution kernel of the first layer is 1×1, the size of the convolution kernel of the second layer is 3×3, and the size of the convolution kernel of the third layer is 1×1. There are 3 groups in total, and the structure of each group is the same. Its output feature map P1 is used as the input of the second structural unit, and the size of P1 is half of the input of the first structural unit.

[0056] The second unit consists of 12 convolutional layers, with three convolution layers in each group. In each group, the size of the first convolution layer is 1×1, the size of the second convolution kernel is 3×3, and the size of the third convolution kernel is 1×1. There are 4 groups in total, and the structure of each group is the same. Its output feature map P2 is used as the input of the third structural unit, and the size of P2 is half of the input of the second structural unit.

[0057] The third unit consists of 18 layers of convolutions, with 3 layers of convolutions in a group. In each group, the size of the convolution kernel of the first layer is 1×1, the size of the convolution kernel of the second layer is 3×3, and the size of the convolution kernel of the third layer is 1×1. There are 6 groups in total, and the structure of each group is the same. Its output feature map P3 is used as the input of the fourth structural unit, and the size of P3 is half of the input of the third structural unit.

[0058] The fourth unit consists of 9 layers of convolutions, with 3 layers of convolutions in a group. In each group, the size of the convolution kernel of the first layer is 1×1, the size of the convolution kernel of the second layer is 3×3, and the size of the convolution kernel of the third layer is 1×1. There are 3 groups in total, and the structure of each group is the same. The size of P4 is half of the input of the fourth structural unit;

[0059] (2.2) Generate three initial anchor boxes at each spatial position of the four feature layers P1, P2, P3, and P4 in (2.1), where:

[0060] The aspect ratios of the three initial anchor boxes at each position of the P1 feature layer are 0.5, 1.0, and 2.0, respectively, and the area is 20 2 ; The aspect ratios of the three initial anchor boxes at each position of the P2 feature layer are 0.5, 1.0, and 2.0, respectively, and the area is 40 2 ; The aspect ratios of the three initial anchor boxes at each position of the P3 feature layer are 0.5, 1.0, and 2.0, respectively, and the area is 80 2 ; The aspect ratios of the three initial anchor boxes at each position of the P4 feature layer are 0.5, 1.0, and 2.0, respectively, and the area is 160 2 .

[0061] (2.3) Construct a proposal box generator of the region proposal network RPN, which is composed of two convolutional layers cascaded together, where:

[0062] The input of the first convolutional layer is the four feature layers P1, P2, P3, and P4, and its output is used as the input of the second convolutional layer;

[0063] The output of the second convolutional layer is used as the predicted regression parameters of the initial box anchors on the four feature layers P1, P2, P3, and P4 in (2.2). Its output dimension is 12×H×W, where H represents the height of the input feature layer, W represents the width of the input feature layer, and 12 represents the predicted regression parameters of the three initial box anchors generated at each spatial position of the feature layer. Each group of 4 represents the predicted regression parameters of an initial box anchor, and each group of predicted regression parameters is denoted as t x ,t y ,t h ,t w , where tx Represents the predicted amount to be adjusted for the horizontal coordinate of the center point of the initial box anchor, t y Represents the predicted amount to be adjusted for the ordinate of the center point of the initial box anchor, t h Represents the predicted amount to adjust the height of the initial box anchor, t w Represents the predicted amount to be adjusted for the width of the initial box anchor; and uses the predicted regression parameters to adjust the spatial coordinates of the initial box anchor to obtain the proposed box proposal;

[0064] (2.4) Calculate the regression loss L of the initial box anchor reg , that is, only the initial box anchor whose intersection over union (IOU) with the true value box GTBox is greater than 0.5 is selected from all the initial box anchors to calculate its regression loss L reg , the formula is as follows:

[0065]

[0066] Among them, t i is the predicted regression parameter of the i-th initial box anchor, t i =[t x ,t y ,t w ,t h ], t x Represents the predicted amount to be adjusted for the horizontal coordinate of the center point of the initial box anchor, t y Represents the predicted amount to be adjusted for the ordinate of the center point of the initial box anchor, t w Represents the predicted amount to adjust the initial box anchor width, t h Represents the predicted amount to adjust the height of the initial box anchor. The value of i ranges from 1 to N, where N is the number of initial box anchors whose intersection over union (IOU) with the true value box GTBox is greater than 0.5.

[0067] is the true regression parameter of the i-th initial box anchor. The true regression parameter is the actual error between the initial box anchor and the true value box GTBox with the largest IOU among all the true value boxes GTBox. Represents the actual adjustment parameter of the horizontal coordinate of the center point of the initial frame anchor. Represents the actual adjustment parameter of the horizontal coordinate of the center point of the initial frame anchor. Represents the actual adjustment parameter of the initial box anchor width. Represents the actual adjustment parameter of the initial box anchor height.

[0068] (2.5) Divide the proposal generated in (2.3) into positive and negative samples:

[0069] (2.5.1) Calculate the intersection and union (IOU) of each proposal box proposal and all true value boxes GTBox:

[0070]

[0071] A i represents the i-th proposal box proposal, B j Represents the jth truth box GTBox; IOU i,j represents the IOU of the i-th proposal box proposal and the j-th ground truth box GTBox, i ranges from 1 to M, M represents the number of proposal boxes, and M is 65280; j ranges from 1 to K, K is not a fixed value. The number of tumors in the picture represents the number of ground truth boxes GTBox in the picture, |·| is the number of pixels, and ∩ is the intersection;

[0072] (2.5.2) Find the maximum value of the IOU between the i-th proposal box proposal and all the truth boxes GTBox

[0073] (2.5.3) Set the positive threshold to pos = 0.5 and the negative threshold to neg = 0;

[0074] (2.5.4) The maximum value Compare with the set positive and negative thresholds:

[0075] if If it is greater than the positive threshold, the i-th proposal box proposal is a positive sample;

[0076] if If it is less than the negative threshold, the i-th proposal box proposal is a negative sample;

[0077] Finally, the proposal box between the positive and negative thresholds is discarded.

[0078] (2.6) According to the feature layer calculation formula Layer, first determine the feature layer where the proposal box divided into positive and negative samples is located, and then obtain the features of the proposal box divided into positive and negative samples. The Layer formula is as follows:

[0079]

[0080] Where w and h are the height and width of the proposal box, respectively, l0 = 3, Represents a round-down operation;

[0081] (2.7) Construct a split-fusion module consisting of the first classifier A, the second classifier B, and the third classifier C. The main body of A, B, and C is composed of two layers of convolution. The input of the first convolution layer is the features of the proposal box that has been divided into positive and negative samples. The output of the second convolution layer of the three classifiers A, B, and C is S a , S b , S c ;

[0082] (2.8) for S a S b S c Perform global average pooling to obtain the average pooling result P a P b P C P a

[0083] ,,,,,,,P b , P C As three classifiers A, B, and C, respectively, predict the probability that the proposal box proposal is a positive sample, and calculate three

[0084] Classification loss of classifiers A, B, and C a 、loss b 、loss c :

[0085]

[0086] Among them, Li=1 represents that the i-th suggestion box proposal is a positive sample, Li=0 represents that the i-th suggestion box proposal is a negative sample, the value of i ranges from 1 to L, L is the number of randomly selected positive and negative suggestion box proposals, and a total of 512 suggestion box proposals are randomly selected from all positive and negative suggestion box proposals. In this example, L is taken but not limited to 512; Pa represents the probability that classifier A predicts the suggestion box proposal as a positive sample, Pb represents the probability that classifier B predicts the suggestion box proposal as a positive sample, and Pc represents the probability that classifier C predicts the suggestion box proposal as a positive sample.

[0087] (2.9) The output S of the last convolutional layer of the A and B classifiers a , S b The normalized results are obtained by Softmax operation respectively. A , M B

[0088]

[0089] in, Represents S a The value at position i,j, Represents S b The value at position i,j; and Represents M A , M B The value at position i,j;

[0090] (2.10) Using (2.9) we get M A , M B Calculate S a With S b The split loss between split :

[0091]

[0092] in, and Represents M A M B The value at position i, j, β is the splitting strength coefficient, in this example, β is taken but not limited to 5, S h and S w are the height and width of the feature map respectively;

[0093] (2.11) Calculate S a With S b The fusion loss between inter :

[0094] Take S a and S b The minimum value of each position is defined as S inter , and for S inter Perform average pooling to obtain the pooling result P inter , using the pooling result P inter Calculate S a With S b The fusion loss between inter :

[0095]

[0096] The value of i ranges from 1 to L, L is the number of randomly selected positive and negative proposal boxes, and the value of L is 512;

[0097] (2.12) The extraction backbone network is taken as the first part, the initial anchor box generator of the region proposal network RPN is taken as the second part, the proposal box proposal generator of the region proposal network RPN is taken as the third part, and the split-fusion module composed of classifiers A, B, and C is taken as the fourth part. These four parts are cascaded in sequence to form a pixel-level label generation network W based on the region of interest ROI and the split-fusion strategy. The total loss loss of the pixel-level label generation network W based on the region of interest ROI and the split-fusion strategy is calculated:

[0098] loss = L reg +loss a +loss b +loss c +loss split +loss inter .

[0099] Step 3. Iteratively train the pixel-level label generation network W based on the region of interest ROI and split-fusion strategy.

[0100] (3.1) Divide the training set images into X batches, where X is 759, initialize I = 1, and train the Ith batch:

[0101] (3.1.1) Send the first batch of images to the network W as the input of the first part, and the output of the first part is used as the input of the second part, and so on, to obtain the network loss loss of the first batch. According to the network loss loss, the stochastic gradient descent SGD algorithm is used to update the weight parameters of the feature trunk extraction part, the proposal generator convolution layer, and the convolution layer weights of the three classifiers A, B, and C in the W network respectively;

[0102] (3.1.2) Compare I with X:

[0103] If I is less than or equal to X, set I = I + 1 and return to (3.1.1) to continue training;

[0104] If I is greater than X, the pixel-level label generation network W based on the region of interest ROI and split-fusion strategy after preliminary training is obtained. i , the value of i ranges from 1 to T, where T is the total number of iterations;

[0105] (3.2) Let the total number of iterations be T, and the pixel-level label generation network W based on the region of interest ROI and split-fusion strategy i The loop (3.1) is executed T times, where T is 30, and the trained pixel-level label generation network W′ based on the region of interest ROI and split-fusion strategy is obtained.

[0106] Step 4. Generate pseudo pixel-level labels for each image.

[0107] (4.1) Each image in the training set is sent to the trained pixel-level label generation network W′ based on the region of interest ROI and the split-fusion strategy. First, execute (2.1) to obtain the feature map of the image, and then extract the features of the true value box GTBox on the feature map according to the coordinates of the true value box GTBox of each image;

[0108] (4.2) The features of each truth box GTBox of each photo are sent to classifiers A, B, and C in turn. Classifier A obtains S a , classifier B gets S b , classifier C gets S c ; S a , S b , S c Perform maximum and minimum normalization respectively to obtain their respective heat maps h a 、Heat map b 、Heat map c ; will h a ,h b ,h c Take the maximum value of the three elements one by one to get the combined result, and then h a ,h b ,h c The merged result is scaled to the size of the original truth box GTBox to obtain the merged image U map , merge graph U map The heat of each position indicates the probability that each position in the truth box GTBox is a tumor, such as Figure 3 As shown in Figure 3 (a) is the original image. Figure 3 (b) is listed as the gold standard pixel-level label map, Figure 3 (c) Ranked as U map Heat map;

[0109] (4.3) The feature graph of the obtained truth box GTBox is clustered, and then the clustering result is combined with the merged graph U map Combined to obtain pixel-level tumor labels:

[0110] (4.3.1) Perform K-means clustering on the feature graph of the truth box GTBox, with 2 categories, and for each category, perform K-means clustering on the feature graph of the truth box GTBox according to the merged graph U map Find the average probability value of each category;

[0111] (4.3.2) The number of pixels in the category with a larger average probability value is divided by the total number of pixels in the feature map of the truth frame GTBox to calculate the proportion p of the number of pixels in the category with a larger average probability value in the feature map of the truth frame GTBox, which is used as the proportion of the tumor in the truth frame GTBox;

[0112] (4.3.3) Mark the pixels with probability values ​​in the top p percent in the truth box GTBox as tumors to generate pixel-level tumor labels.

[0113] Step 5. Based on the generated pseudo-labels, the stochastic gradient descent SGD algorithm is used to train the existing semantic segmentation network DeepLabV3.

[0114] (5.1) Divide the training set images into Y batches, where Y is 759, initialize J = 1, and train the Jth batch:

[0115] (5.1.1) Send the Jth batch of training set images to the DeepLabV3 network to obtain the output of this batch, and use the binary cross entropy to calculate the loss between the output of this round and the pseudo label seg , according to loss seg Use the stochastic gradient descent SGD algorithm to update the parameters of the DeepLabv3 network;

[0116] (5.1.2) Compare J and Y:

[0117] If J is less than or equal to Y, set J = J + 1 and continue to execute (5.1.1);

[0118] If J is greater than Y, the initial training DeepLabv3 is obtained i Network, the value of i ranges from 1 to R, where R is the total number of iterations;

[0119] (5.2) Let the total number of iterations be R, for the initially trained DeepLabv3 i The network loop is iterated (5.1) for a total of R times, where R is 50, to obtain the trained DeepLabv3 network.

[0120] Step 6. Pixel prediction.

[0121] The images of the test set are input into the trained DeepLabV3 network for segmentation, and each image is obtained as a two-dimensional array of the same size as the original image. The value of each pixel position in the two-dimensional array represents the probability that the pixel at that position in the original image is a tumor, and it is compared with the set threshold of 0.5:

[0122] If the probability is greater than 0.5, it is predicted that the original image is a tumor at that location.

[0123] If the probability is less than 0.5, the original image is predicted to be the background at that location.

[0124] Examples of prediction results are Figure 4 As shown, Figure 4 (a) is the original image. Figure 4 (b) Pixel-level annotation listed as gold standard, Figure 4 (c) is the predicted result. From the visualization of the predicted result, it can be seen that the method of the present invention is close to the pixel-level annotation of the gold standard.

[0125] The effect of the present invention can be further illustrated by the following simulation.

[0126] 1. Simulation conditions

[0127] The server used in this experiment is configured with a 2.9 GHz Intel i7-10700 CPU and a 12-GB NVIDIA 2080 Ti GPU. The deep network model is implemented using the PyTorch code framework, and the development language is Python 3.8.

[0128] Each image used in the experiment has a size of 512×512, contains 1 channel, and has a pixel value range from 0 to 255. There are two target categories in each image, namely liver tumor pixels and other background pixels.

[0129] 2. Simulation content

[0130] The present invention and the existing fully supervised method FCN are used to perform segmentation tests on the test set, and the intersection over union (IOU) of each method is obtained as an evaluation index, as shown in Table 1.

[0131] Table 1

[0132] method Marking format Type of supervision IOU FCN Pixel Level Full supervision 0.48 The present invention Border level Weak Supervision 0.51

[0133] As can be seen from Table 1, the segmentation result of the present invention using only border-level annotation is better than the fully supervised method of FCN. At the same time, the present invention does not need to manually obtain pixel-level labels, saving a lot of manpower and time costs.

[0134] In summary, the present invention can still obtain satisfactory detection results when only frame-level annotation is provided, has good adaptability to intra-class differences, and has stronger adaptability.

Claims

1. A weakly supervised liver tumor segmentation method based on ROI and split-fusion strategy, characterized in that: The steps include: (1) Obtain a reviewed liver tumor CT dataset, use 80% of its images as a training set, and the remaining 20% ​​of the images as a test set. Perform box-level weak annotation on the CT liver tumor images in the training set, and record the annotated rectangular box as the true value box GTBox. The box-level annotation file set of the CT liver images in the annotated training set is obtained. (2) Construct a pixel-level label generation network W based on the region of interest ROI and split-fusion strategy: (2a) A feature extraction backbone network based on ResNet50 is selected. The output of the network is four feature maps of different scales. The four feature maps of different scales are recorded as P1, P2, P3, and P4 from small to large. (2b) Based on the feature maps of P1, P2, P3, and P4, an initial box anchor generator of the region proposal network RPN with the box as the region of interest ROI is established to obtain initial box anchors of different scales; (2c) Based on the initial box anchors of different scales and the four feature maps P1, P2, P3, and P4, a proposal box generator of the region proposal network RPN is constructed. The regression loss L of the initial box anchor is calculated based on the predicted regression parameters of the initial box anchor output by the proposal box generator. reg , and then use the predicted regression parameters of the initial box anchor to adjust the spatial coordinates of the initial box anchor to obtain the proposed box proposal; (2d) The proposal box generated by (2c) is divided into positive and negative samples, and the feature layer calculation formula Layer is used to determine the feature layer where the proposal box divided into positive and negative samples is located, and the features of the proposal box divided into positive and negative samples are obtained; (2e) Construct a split-fusion module consisting of classifier A and classifiers B and C, where the main bodies of A, B, and C are all composed of two layers of convolution. The input of the first convolution layer is the features of the proposal box that has been divided into positive and negative samples. The output of the second convolution layer of classifiers A, B, and C is S a , S b , S c ; for S a , S b , S c Perform global average pooling to obtain P a , P b , P C As the classifier, the probability of predicting the proposal box proposal as a positive sample is calculated, and the classification loss loss of each of the three classifiers is calculated. a 、loss b 、loss c ; (2f) The output S of the last convolutional layer of the A and B classifiers a , S b Perform Softmax operation to normalize them respectively, and the normalized result is M A , M B , and calculate S a With S b The split loss between split : in, and Represents M A M B The value at position i,j, β is the splitting strength coefficient, S h and S w are the height and width of the feature map respectively; (2g) Calculate S a With S b Fusion loss inter : Take S a and S b The minimum value of each position is defined as S inter , and for S inter Perform average pooling to obtain the pooling result P inter , using the pooling result P inter Calculate S a With S b The fusion loss between inter : The value of i ranges from 1 to M, where M is the number of proposal boxes; (2h) The above feature extraction backbone network is taken as the first part, the initial box anchor generator of the region proposal network RPN is taken as the second part, the proposal box proposal generator of the region proposal network RPN is taken as the third part, and the split-fusion module composed of classifiers A, B, and C is taken as the fourth part. These four parts are cascaded in sequence to form a pixel-level label generation network W based on the region of interest ROI and the split-fusion strategy, and the total loss of the network is set as: loss=L reg +loss a +loss b +loss c +loss split +loss inter ; (3) Using the stochastic gradient descent SGD algorithm, the pixel-level label generation network W based on the region of interest ROI and the split-fusion strategy is iteratively trained to obtain a trained pixel-level label generation network W′ based on the region of interest ROI and the split-fusion strategy; (4) Generate pixel-level labels for each image: (4a) Each image in the training set is sent to the trained pixel-level label generation network W′ based on the region of interest ROI and the split-fusion strategy. First, execute (2a) to obtain the feature map of the image, and then extract the features of the truth box GTBox from the feature map according to the coordinates of the truth box GTBox of each image; (4b) The features of each truth box GTBox of each photo are sent to classifiers A, B, and C in turn, and the merged graph U of the three classifiers is obtained through the merging strategy. map as a heat map of the probability distribution of tumors in the ground truth box; (4c) The feature map of the truth box GTBox obtained in (4a) is clustered, and the clustering result is combined with the merged map U in (4b) map Get pixel-level tumor labels; (5) using the pixel-level tumor labels and training images generated in step (4) in combination with the stochastic gradient descent (SGD) algorithm to train the existing semantic segmentation network DeepLabV3, thereby obtaining a trained semantic segmentation network DeepLabv3; (6) The images of the test set are input into the trained DeepLabV3 network for segmentation, and a two-dimensional array with the same size of each image as the original image is obtained. The value of each pixel position in the two-dimensional array represents the probability that the pixel at that position in the original image is a tumor, and it is compared with the set threshold of 0.5: If the probability is greater than 0.5, it is predicted that the original image is a tumor at that location. If the probability is less than 0.5, it is predicted that the original image at that location is the background.

2. According to the method of claim 1, the initial box anchor generator established in 2(b) generates three initial box anchors at each spatial position of the four feature layers P1, P2, P3, and P4, wherein: The aspect ratios of the three initial anchor boxes at each position of the P1 feature layer are 0.5, 1.0, and 2.0, respectively, and the area is 20 2 ; The aspect ratios of the three initial anchor boxes at each position of the P2 feature layer are 0.5, 1.0, and 2.0, respectively, and the area is 40 2 ; The aspect ratios of the three initial anchor boxes at each position of the P3 feature layer are 0.5, 1.0, and 2.0, respectively, and the area is 80 2 ; The aspect ratios of the three initial anchor boxes at each position of the P4 feature layer are 0.5, 1.0, and 2.0, respectively, and the area is 160 2 .

3. The method according to claim 1, wherein the proposal generator constructed in (2c) is composed of two convolutional layers cascaded, wherein: The input of the first convolutional layer is the four feature layers P1, P2, P3, and P4, and its output is used as the input of the second convolutional layer; The output of the second convolutional layer is used as the predicted regression parameters of the initial box anchors on the four feature layers P1, P2, P3, and P4 in (2b). The output dimension is 12×H×W, where H represents the height of the input feature layer, W represents the width of the input feature layer, and 12 represents the predicted regression parameters of the three initial box anchors generated at each spatial position of the feature layer. Each group of 4 represents the predicted regression parameters of an initial box anchor, and each group of predicted regression parameters is denoted as t x ,t y ,t h ,t w , where t x Represents the predicted amount to be adjusted for the horizontal coordinate of the center point of the initial box anchor, t y Represents the predicted amount to be adjusted for the ordinate of the center point of the initial box anchor, t h Represents the predicted amount to adjust the height of the initial box anchor, t w Represents the predicted amount to adjust the initial box anchor width.

4. The method according to claim 1, wherein (2c) calculates the regression loss L of the initial box anchor reg , just select the initial box anchor whose intersection over union (IOU) with the true value box GTBox is greater than 0.5 from all the initial box anchors to calculate its regression loss L reg , the formula is as follows: in: t i is the predicted regression parameter of the i-th initial box anchor, t i =[t x ,t y ,t w ,t h ], t x Represents the predicted amount to be adjusted for the horizontal coordinate of the center point of the initial box anchor, t y Represents the predicted amount to be adjusted for the ordinate of the center point of the initial box anchor, t w Represents the predicted amount to adjust the initial box anchor width, t h Represents the predicted amount to adjust the height of the initial box anchor. The value of i ranges from 1 to N, where N is the number of initial box anchors whose intersection over union (IOU) with the true value box GTBox is greater than 0.

5. is the true regression parameter of the i-th initial box anchor. The true regression parameter is the actual error between the initial box anchor and the true value box GTBox with the largest IOU among all the true value boxes GTBox. Represents the actual adjustment parameter of the horizontal coordinate of the center point of the initial frame anchor. Represents the actual adjustment parameter of the horizontal coordinate of the center point of the initial frame anchor. Represents the actual adjustment parameter of the initial box anchor width. Represents the actual adjustment parameter of the initial box anchor height.

5. The method according to claim 1, wherein in (2d), the proposal box proposal is divided into positive and negative samples, which is implemented as follows: (2d1) Calculate the intersection and union (IOU) of each proposal box proposal and all true value boxes GTBox: in, A i represents the i-th proposal box proposal, B j Represents the jth truth box GTBox; IOU i,j represents the IOU of the i-th proposal box proposal and the j-th ground truth box GTBox, i ranges from 1 to M, M represents the number of proposal boxes, j ranges from 1 to K, K represents the number of ground truth boxes GTBox, |·| is the number of pixels to be found, and ∩ is the intersection; (2d2) Find the maximum value of the IOU between the i-th proposal box proposal and all the truth boxes GTBox (2d3) Set the positive threshold to pos=0.5 and the negative threshold to neg=0; (2d4) will have the maximum value Compare with the set positive and negative thresholds: if If it is greater than pos, the i-th proposal box proposal is a positive sample; if If it is less than neg, the j-th proposal box proposal is a negative sample; Finally, the proposal box between the positive and negative thresholds is discarded.

6. The method according to claim 1, wherein the loss in (2e) a 、loss b 、loss c The calculations are as follows: Among them, Li=1 represents that the i-th suggestion box proposal is a positive sample, Li=0 represents that the i-th suggestion box proposal is a negative sample, the value of i ranges from 1 to L, and L is the number of suggestion box proposals; Pa represents the probability that classifier A predicts the suggestion box proposal as a positive sample, Pb represents the probability that classifier B predicts the suggestion box proposal as a positive sample, and Pc represents the probability that classifier C predicts the suggestion box proposal as a positive sample.

7. The method according to claim 1, wherein in (3), the stochastic gradient descent (SGD) algorithm is used to iteratively train the pixel-level label generation network W based on the region of interest (ROI) and the split-fusion strategy, and the training is implemented as follows: (3a) Divide the training set images into X batches, initialize I = 1, set the total number of iterations to T, and train the Ith batch: (3a1) Send the first batch of images to the network W as the input of the first part, and the output of the first part is used as the input of the second part, and so on, to obtain the network loss loss of the first batch. According to the network loss loss, the stochastic gradient descent SGD algorithm is used to update the weight parameters of the feature trunk extraction part, the proposal generator convolution layer, and the convolution layers of the three classifiers A, B, and C in the W network respectively; (3a2) Compare I with X: If I is less than or equal to X, set I = I + 1 and return to (3a1) to continue training; If I is greater than X, the pixel-level label generation network W based on the region of interest ROI and split-fusion strategy after preliminary training is obtained. i , the value of i ranges from 1 to T; (3b) Initially trained pixel-level label generation network W based on region of interest ROI and split-fusion strategy i The loop (3a) is executed T times in total to obtain a trained pixel-level label generation network W′ based on the region of interest ROI and the split-fusion strategy.

8. The method according to claim 1, wherein in (4b) the outputs of the three classifiers A, B, and C are merged, which is implemented as follows: (4b1) The output S of the three classifiers A, B, and C a , S b , S c Perform maximum and minimum normalization respectively to obtain their respective heat maps h a 、h b 、h c ; (4b2) From the heat map h of the three classifiers a ,h b ,h c The maximum value of the three is taken element by element to get the merged result, and then the merged result is scaled to the size of the true value box GTBox feature to get the merged image U map As a heat map visualization, the heat map U map The heat of each position indicates the probability that each position in the truth box GTBox is a tumor.

9. The method according to claim 1, wherein in (4c), the feature graph of the obtained truth box GTBox is subjected to a clustering operation, and then the clustering result is combined with the merged graph U map Combined to obtain pixel-level tumor labels, the implementation is as follows: (4c1) Perform K-means clustering on the feature graph of the truth box GTBox, with 2 categories, and for each category, perform K-means clustering on the feature graph of the truth box GTBox according to the merged graph U map Find the average probability value of each category; (4c2) The number of pixels in the category with a larger average probability value is divided by the total number of pixels in the feature map of the truth frame GTBox to calculate the proportion p of the number of pixels in the category with a larger average probability value in the feature map of the truth frame GTBox, which is used as the proportion of the tumor in the truth frame GTBox; (4c3) By marking the pixels with probability values ​​in the top p percent in the truth box GTBox as tumors, a pixel-level tumor label is generated.

10. The method according to claim 1, wherein in (5), the stochastic gradient descent (SGD) algorithm is used to train the existing semantic segmentation network DeepLabV3, which is implemented as follows: (5a) Divide the training set images into Y batches, initialize J = 1, set the total number of iterations to R, and train the Jth batch: (5a1) Send the Jth batch of training set images to the DeepLabV3 network to obtain the output of this batch, and use the binary cross entropy to calculate the loss between the output of this round and the pseudo label seg , according to loss seg Use the stochastic gradient descent SGD algorithm to update the parameters of the DeepLabv3 network; (5a2) Compare J and Y. If J is less than or equal to Y, set J = J + 1 and continue to execute (5a1). If J is greater than Y, the initially trained DeepLabv3 i Network, the value of i ranges from 1 to R; (5b) For the initially trained DeepLabv3 i The network loop is iterated (5a) for a total of R times to obtain the trained DeepLabv3 network.

Citation Information

Patent Citations

  • Iteration-based image weak supervision segmentation method

    CN113269778A

  • Medical image segmentation method and apparatus, computer device, and storage medium

    US20210233247A1

  • Method for segmenting liver and focus thereof in medical image

    WO2021184817A1