Two-stage weakly supervised COVID-19 lesion segmentation method based on superpixel

Through a two-stage weak supervision method based on super pixels, graffiti-style annotation and multi-scale feature extraction modules are used to solve the problems of long time consumption and low segmentation accuracy of COVID-19 lesion segmentation technology, achieve efficient COVID-19 lesion segmentation, and improve labeling efficiency and Segmentation accuracy.

CN114913164BActive Publication Date: 2024-10-29XIDIAN UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210604897.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2024-10-29
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

Existing COVID-19 lesion segmentation technology is time-consuming and relies on a large amount of manual annotation, and fully supervised methods require a large number of private data sets and professional annotators. The segmentation accuracy of weakly supervised methods is affected by noise and insufficient information.

Method used

A two-stage weakly supervised COVID-19 lesion segmentation method based on superpixels is adopted. Graffiti-style annotation and enhanced label sets are used, combined with a multi-scale feature extraction module and iterative training, to reduce the impact of pseudo-label noise and improve segmentation accuracy.

Benefits of technology

It reduces manual annotation time, improves image annotation efficiency, enhances the amount of network training information, reduces pseudo-label noise interference, and achieves segmentation accuracy close to full supervision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114913164B_ABST
    Figure CN114913164B_ABST
Patent Text Reader

Abstract

The present invention discloses a two-stage weakly supervised COVID-19 lesion segmentation method based on superpixels, which mainly solves the problems of difficult labeling and low segmentation accuracy of existing segmentation methods. Its implementation scheme is: obtain CT data of COVID-19 patients, and divide them into training data set, verification data set and test data set; perform graffiti-style annotation on the training data set, and annotate the remaining data sets with complete annotations; enhance the graffiti-style annotation set; construct a COVID-19 lesion segmentation network with UNet3+ as the main body and four multi-scale feature extraction modules; use the gradient descent method to perform two-stage training on the segmentation network; input the COVID-19 lesion test sample set into the trained segmentation network to obtain the segmentation result of the test sample. The present invention improves the accuracy and labeling efficiency of lesion segmentation in CT images of COVID-19 patients, and can be used for the automated segmentation of lesions in CT images of COVID-19 patients, assisting radiologists in clinical diagnosis of patients.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of medical image processing, and in particular relates to a method for segmenting COVID-19 lesions, which can be used to distinguish COVID-19 lesions in chest CT images of patients. Background Art

[0002] In recent years, COVID-19 has broken out in many regions around the world. Early diagnosis of COVID-19 lesions plays a vital role in controlling the spread of the disease. Reverse transcription polymerase chain reaction (RT-PCR), as the gold standard, is being widely used, but it has the disadvantages of low efficiency, lack of kits, and low sensitivity. Chest CT imaging can effectively perform high-sensitivity COVID-19 lesion screening. It can show high contrast between lesions and normal lung tissues, and can be efficiently used in clinical diagnosis of COVID-19 lesions, and therefore has received increasing attention. Accurate segmentation of lung infection areas from chest CT is crucial for the quantification and diagnosis of COVID-19 lesions. Traditional manual or semi-automatic segmentation techniques require a lot of time and energy, and require the intervention of clinicians. In addition, the segmentation results are often biased towards the experience of experts. Therefore, automatic lung infection segmentation technology is very much needed in clinical settings.

[0003] With the development of deep learning, various advanced technologies have emerged in the field of medical image segmentation, which have also been applied in the segmentation of COVID-19 CT images. In order to address the characteristics of unclear boundaries, low lesion contrast, large infection distribution range and variable shape scale of COVID-19 lesions, researchers first used a fully supervised approach to deal with this problem. Fan et al. proposed the Inf-Net lung infection segmentation model, which includes a set of parallel decoders for aggregating high-dimensional features, and implicit reverse attention modules and explicit edge attention modules for improving infection area identification. Omar et al. built a model with a dual-stream input channel, using the intrapulmonary information extracted from the structure and texture images as auxiliary information in the second stage to efficiently segment the infection area. Liu et al., from the perspective of data missing, adopted a two-stage migration model, built a two-stage model based on the ResNet50 model trained on natural images, and pre-trained the model from a large amount of lung nodule data to fill the gap in the lack of COVID-19 lesion annotation data.

[0004] Although the above fully supervised methods can effectively solve the problem of difficult segmentation of COVID-19 lesion imaging features, most fully supervised methods obtain high standards of accuracy by training a large number of private data sets. According to statistics, it takes about 400±45 minutes to annotate data containing 250 slices, which requires a considerable amount of time and effort, and also places certain professional requirements on the annotator's ability to identify lesions.

[0005] In order to effectively solve the above problems, researchers have proposed a weakly supervised method, which usually uses drawing boxes, dots, and graffiti as annotation methods. This method saves a lot of time and energy spent on annotation, and its segmentation performance is close to that of some fully supervised methods. Lin et al. first proposed an image segmentation technology based on graffiti-style annotation on natural images. The graffiti labels were propagated to unlabeled pixels through a graph segmentation algorithm to enhance the information that can be used for training. However, due to the low accuracy of the graph segmentation algorithm itself, it also brought a lot of noise to the subsequent training. Lee et al. adopted a two-stage method based on graffiti to segment cell images. In the first stage, only graffiti was used to supervise the training model and some pseudo-labels were generated according to the model. In the second stage, these pseudo-labels were improved by iterative average prediction. Although this method increased the reliability of pseudo-labels, it did not have enough grasp of the contour information of some targets. Liu et al. were the first to use the graffiti method for segmentation on COVID-19 CT images. The proposed mean teacher model with transformation consistency can effectively increase the segmentation accuracy. However, due to the lack of information in the graffiti annotation itself, it still has a certain impact on the segmentation accuracy. Luo et al. built a dual-stream output network for application in the field of cardiac segmentation. The pseudo-labels generated by network iteration can enhance the network segmentation effect. However, in the early stage of network training, it will be affected by a large amount of noise information, making the segmentation performance unstable. Summary of the invention

[0006] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and propose a two-stage weakly supervised COVID-19 lesion segmentation method based on superpixels, extract an equal amount of feature information in an efficient data annotation manner to train the network, and ultimately achieve a segmentation accuracy close to that of full supervision, thereby improving the deficiency of the existing segmentation method that the annotation project is time-consuming.

[0007] To achieve the above object, the implementation scheme of the present invention includes the following:

[0008] (1) Obtain computed tomography (CT) data of patients with COVID-19, uniformly adjust the spatial resolution, window level, and window width of the data to obtain a data set S, and divide it into a training sample set S1, a validation sample set S2, and a test sample set S3 at a ratio of 4:1:4;

[0009] (2) Perform graffiti-style annotation on the training dataset S1, that is, use graffiti-style lines to outline the chest cavity part, the COVID-19 lesion infection part, and the lung parenchyma part, respectively, to obtain the graffiti-style label set R of the training dataset; the validation dataset and the test dataset are annotated in a fully annotated manner;

[0010] (3) Use the training data set S1 to enhance the graffiti tag set R to obtain the enhanced graffiti tag set R′;

[0011] (4) Use the existing ∪Net3+ network as the overall framework for superpixel-guided weakly supervised COVID-19 lesion segmentation. The encoding part of the framework is reduced from the existing 5 layers to 4 layers, and the network encoding part is replaced by 4 multi-scale feature extraction modules D1, D2, D3, and D4. Correspondingly, 3 decoding modules U1, U2, and U3 can be obtained. The 4 multi-scale feature extraction modules and 3 decoding modules are spliced ​​and combined to build a multi-category segmentation network C4-Net and initialize its parameters;

[0012] (5) Two-stage training of the superpixel-guided weakly supervised COVID-19 lesion segmentation network:

[0013] (5a) The training data set S1 is expanded by rotation or mirroring, and the segmentation network is trained in the first stage by using the gradient descent method using the expanded training data set S′1 to obtain the trained first stage segmentation network T1;

[0014] (5b) Input the training data set S1 into the trained first-stage segmentation network T1 to obtain the first-stage network prediction result set P1;

[0015] (5c) Using the first-stage network prediction result set P1, the training data set S1 and the enhanced graffiti label set R′, the second-stage training data set S″1 is generated;

[0016] (5d) Use the second stage training dataset S″1 to perform the second stage training on the segmentation network:

[0017] (5d1) Input the CT image set in the second-stage training data set S″1 into the trained first-stage segmentation network T1 to obtain the output set P2;

[0018] (5d2) constructing the loss function L2 for the second stage training based on the second stage training data set S″1 and the output set P2;

[0019]

[0020] in is the lesion category loss, is the chest category loss, is the lung parenchyma category loss;

[0021] (5d3) Iteratively update the multi-category segmentation network using the second-stage loss function L2 until the loss function L2 converges to obtain the trained second-stage segmentation network T2;

[0022] (6) The COVID-19 lesion test sample set S3 is input into the trained second-stage segmentation network T2 to obtain the corresponding segmentation results, namely, the categories of the thoracic cavity, lung parenchyma, and COVID-19 lesions.

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

[0024] 1. The present invention uses three categories of graffiti-style annotation to replace traditional complete annotation, thereby reducing the time and energy consumed by manual annotation and improving the efficiency of image annotation tasks.

[0025] 2. The present invention enhances the graffiti tag set, thereby increasing a large amount of trainable information and accelerating the convergence speed of the segmentation network.

[0026] 3. Since the present invention improves the existing UNet3+ network and uses a two-stage strategy to train it, it can reduce the interference of noise information on pseudo labels and improve the segmentation accuracy of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a schematic diagram of the overall process of implementing the present invention;

[0028] Figure 2 This is an example diagram of graffiti-style annotation in the present invention;

[0029] Figure 3 This is the structure diagram of the superpixel-guided weakly supervised COVID-19 lesion segmentation network C4-Net constructed in the present invention;

[0030] Figure 4 It is a schematic diagram of a sub-process for generating a pseudo CT image in the present invention;

[0031] Figure 5 is a schematic diagram of calculating superpixel level loss weights in the present invention;

[0032] Figure 6 This is an example diagram of the results of using the present invention to segment chest CT images of patients with COVID-19. DETAILED DESCRIPTION

[0033] The specific implementation scheme and effects of the present invention are further explained and illustrated below in conjunction with the accompanying drawings:

[0034] Reference Figure 1 , the implementation steps of this example are as follows:

[0035] Step 1: Data preprocessing.

[0036] (1.1) Obtain computed tomography (CT) data of patients with COVID-19, uniformly adjust the spatial resolution, window level, and window width of the data to obtain a data set S, and divide it into a training sample set S1, a validation sample set S2, and a test sample set S3 at a ratio of 4:1:4;

[0037] (1.2) Perform graffiti-style annotation on the training data set S1, that is, use graffiti-style lines to outline the chest cavity part, the COVID-19 lesion infection part, and the lung parenchyma part, respectively, and obtain the graffiti-style label set R of the training data set, as shown in Figure 2 As shown, Figure 2 The results of graffiti-style annotation of CT images of 6 COVID-19 patients are given; the validation and test datasets are annotated in a fully annotated manner;

[0038] (1.3) Use the training data set S1 to enhance the graffiti tag set R and obtain the enhanced graffiti tag set R′:

[0039] (1.3.1) Use the simple linear iterative clustering algorithm SLIC to segment the training data set S1 slice by slice into superpixels, and use the segmented superpixel blocks to form the superpixel set C corresponding to the training data set S1 all ;

[0040] (1.3.2) Extract the graffiti pixel areas with three categories marked in the graffiti label set R, and compare these graffiti pixel areas with the superpixel set C all The superpixel blocks in the corresponding superpixel block are marked according to the graffiti pixel category of the superpixel block position, and the superpixel set C is divided according to the marking information of these superpixel blocks. all It is divided into the superpixel set C1 of the lesion area, the superpixel set C2 of the chest area, the superpixel set C3 of the lung parenchyma, and the remaining superpixel set C res The four superpixel sets are:

[0041] (1.3.3) In the unclassified superpixel set C res Take a superpixel block PB1 and calculate the average Euclidean similarity M1 between it and the superpixel set C2 of the chest area:

[0042] (1.3.3.1) Randomly select 10 superpixel blocks from C2 and denote them as {SP i}, where i = 1, 2, ..., 10;

[0043] (1.3.3.2) Calculate super pixel block PB1 and super pixel block SP in sequence i Euclidean similarity between i , and calculate the average Euclidean similarity M1:

[0044]

[0045]

[0046] in, is the jth pixel of superpixel block PB1, SP i j is the super pixel block SP i The j-th pixel of , n is the number of pixels of the super pixel block PB1;

[0047] (1.3.4) construct a second superpixel block PB2 with the same size as the superpixel block PB1 but with a value of 0, and calculate the Euclidean similarity M2 between the two superpixel blocks PB1 and PB2;

[0048] (1.3.5) Mark the first superpixel block PB1 as the background category or the chest category according to the size of M1 and M2, and then update the graffiti label set R according to the position information and category information of the first superpixel block PB1;

[0049] (1.3.6) Repeat (1.3.3) to (1.3.5) until all unclassified superpixel sets C are traversed. res , and obtain the enhanced graffiti tag set R′.

[0050] Step 2: Build a superpixel-guided weakly supervised COVID-19 lesion segmentation network C4-Net.

[0051] The existing UNet3+ network is used as the overall framework of the weakly supervised COVID-19 lesion segmentation based on superpixel guidance, which includes an encoding part and a decoding part. The encoding part has 5 convolutional layers, and the decoding part includes 4 convolutional layers. The specific implementation of this step is to change the encoding part of the original UNet3+ network, that is, to reduce the network encoding part from the existing 5 layers to 4 layers, and replace the 4 layers of the network encoding with 4 multi-scale feature extraction modules D1, D2, D3, and D4. According to the construction method of the decoding part of the original UNet3+ network, 3 decoding modules U1, U2, and U3 are obtained. By connecting the 4 multi-scale feature extraction modules and the 3 decoding modules, a weakly supervised COVID-19 lesion segmentation network C4-Net based on superpixel guidance is built, and its parameters are initialized;

[0052] The structural relationship of the weakly supervised COVID-19 lesion segmentation network C4-Net based on superpixel guidance is:

[0053] Network input layer → first feature extraction module D1 → first pooling convolution layer → second feature extraction module D2 → second pooling convolution layer → third feature extraction module D3 → third pooling convolution layer → fourth feature extraction module D4 → fourth pooling convolution layer → first decoding module U1 → second decoding module U2 → third decoding module U3 → network output layer, such as Figure 3 (a)

[0054] The structure and parameters of each feature extraction module are as follows:

[0055] The first feature extraction module D1 is composed of three convolutions of different scales, 1×1×4, 3×3×8, and 7×7×2, connected in parallel and then connected in series with a unit convolution of size 1×1×16;

[0056] The second feature extraction module D2 is composed of three unit convolutions of size 1×1×8 connected in parallel, two of which are connected in series with separable convolutions of scales 3 and 7 and channels 16 and 4, respectively, and then connected in series with a unit convolution of size 1×1×32;

[0057] The third feature extraction module D3 is composed of a separable convolution with a scale of 3 and a channel number of 16 and a unit convolution with a size of 1×1×32, which is then connected in series with a unit convolution with a size of 1×1×64;

[0058] The fourth feature extraction module D4 is composed of a concatenation of convolutions of sizes 1×1×32 and 3×3×64, and then a concatenation of a unit convolution of size 1×1×128;

[0059] The above four multi-scale feature extraction modules are as follows: Figure 3 (b) as shown.

[0060] Step 3: Perform two-stage training on the superpixel-guided weakly supervised COVID-19 lesion segmentation network.

[0061] (3.1) Use the gradient descent method to perform the first stage training of the segmentation network:

[0062] (3.1.1) Expand the training data set S1 by rotation or mirroring to obtain the expanded training data set S′1;

[0063] (3.1.2) Input the expanded training data set S′1 into the segmentation network to obtain the output result set P;

[0064] (3.1.3) Through the network output result set P and the corresponding label R′, calculate the first stage loss function L1:

[0065]

[0066] in, is the cross entropy loss on category k in the i-th output image, is the output result of category k in the i-th output image in the output set P, is the label image of category k in the i-th output image in the enhanced graffiti label set R′, k∈{0,1,2,3}, which corresponds to the four categories of background, chest, lesion, and lung parenchyma, respectively, i=1,2,…N P , NP is the number of output images in the output set P;

[0067] w k The corresponding weight of the loss for each category, where the weight of the lesion category is w1=5, and the weights of the other categories are all 1;

[0068] (3.1.4) Assume that the initial learning rate η = 0.001, use the gradient descent method to optimize the first-stage loss function L1 of the multi-class segmentation network, update the parameters of the multi-class segmentation network until the first-stage loss L1 converges, and obtain the trained first-stage segmentation network T1;

[0069] (3.2) Input the training data set S1 into the trained first-stage segmentation network T1 to obtain the first-stage network prediction result set P1;

[0070] (3.3) Using the first-stage network prediction result set P1, the training data set S1 and the enhanced graffiti label set R′, the second-stage training data set S″1 is generated:

[0071] (3.3.1) Select a single chest CT image T from the training dataset S1, select the corresponding label SR from the enhanced graffiti label set R′, and select the corresponding prediction value F from the first-stage network prediction result set P1 R As the pseudo label image corresponding to the CT image T;

[0072] (3.3.2) Use the simple linear iterative clustering algorithm SLIC to cluster the pseudo labels F R Processing is performed to generate a super-pixel image F S ;

[0073] (3.3.3) Using CT image T, label image SR, pseudo label image F R Generate pseudo CT image F T :

[0074] Reference Figure 4 , the specific implementation of this step is as follows:

[0075] (3.3.3.1) The lesion area of ​​the statistical graffiti tag SR corresponds to the CT value probability distribution F(x) on the CT image T;

[0076] (3.3.3.2) The pseudo CT image F T Initialization is the same as the CT image T, and the pseudo-labeled lesion area F is specified R is the pseudo CT image F T The lesion area;

[0077] (3.3.3.3) According to the probability distribution F(x), the pseudo CT image F TThe lesion area is assigned to obtain the pseudo CT image F T ;

[0078] (3.3.4) Repeat (3.3.1) to (3.3.3) until the entire training dataset S1 is traversed, and each CT image T and its corresponding pseudo label F are stored. R , super pixel image F S , pseudo CT image F T , get the second stage training data set:

[0079] S″1={P1,S1,R′};

[0080] (3.4) Use the second stage training dataset S″1 to perform the second stage training on the segmentation network:

[0081] (3.4.1) Input the CT image set in the second-stage training data set S″1 into the trained first-stage segmentation network T1 to obtain the output set P2;

[0082] (3.4.2) Based on the second-stage training data set S″1 and the output set P2, the loss function L2 for the second-stage training is constructed:

[0083] (3.4.2.1) First select a training batch {T, F T , F R , F S}, then select an output image TP from the output set P2 corresponding to the CT image T, and compare it with the training batch {T, F T , F R , F S} form a processing batch {T, F T , F R , F S ,TP}, where T is a CT image in the training set, F T 、F R 、F S They are the corresponding pseudo CT image, pseudo label image and super pixel image respectively;

[0084] (3.4.2.2) According to the processing batch {T, F T , F R , F S ,TP} construct lesion category loss

[0085] The first step is to combine the output image TP with the pseudo label image F R , calculate the cross entropy loss at the superpixel level:

[0086]

[0087] in, is the pseudo-label image F R The kth superpixel block in TP k is the kth superpixel block in the output image TP;

[0088] The second step is to use the CT image T and the pseudo CT image F T Compute Euclidean similarity at superpixel level:

[0089]

[0090] in, is the i-th pixel of the k-th superpixel block in the CT image T, is the pseudo CT image F T The i-th pixel of the k-th superpixel block in , n is the number of pixels of the k-th superpixel block in the CT image T;

[0091] The third step is to use the cross entropy loss at the superpixel level Euclidean similarity with superpixel level Calculate the weights of superpixel level loss:

[0092]

[0093] Where k = 1, 2, ... N sp , N sp is the super pixel image F S and pseudo-label image F R The number of superpixel blocks that overlap the lesion area;

[0094] The above steps 1 to 3 are as follows Figure 5 As shown;

[0095] The fourth step is to set the superpixel level weight wsp k With cross entropy loss Multiply them together to get the loss of each output image TP at the superpixel level:

[0096]

[0097] Step 5: Based on super-pixel level loss and the number of superpixel blocks N sp Construct the lesion category loss:

[0098]

[0099] (3.4.2.3) According to the processing batch {T, F T , F R , F S ,TP} construct chest category loss:

[0100]

[0101] in, is the output probability matrix of the chest category in the output image TP, is the pseudo label F R Matrix of mesothoracic category channels;

[0102] (3.4.2.4) According to the processing batch {T, F T , F R , F S ,TP} construct lung parenchyma category loss:

[0103]

[0104] in, is the output probability matrix of the lung parenchyma category in the output image TP, is the pseudo label F R Matrix of channels in the middle lung parenchyma category;

[0105] (3.4.2.5) Loss according to lesion category Thoracic category loss Lung parenchyma class loss Construct the second stage loss L2:

[0106]

[0107] in is the lesion category loss, is the chest category loss, is the lung parenchyma category loss;

[0108] (3.4.3) Use the second-stage loss function L2 to iteratively update the multi-category segmentation network until the loss function L2 converges to obtain the trained second-stage segmentation network T2.

[0109] Step 4: Use the trained second-stage model T2 to make predictions on the test dataset.

[0110] The COVID-19 lesion test sample set S3 is input into the trained second-stage segmentation network T2. After the forward propagation of the segmentation model, the segmentation results corresponding to the input CT image are obtained, namely, the chest cavity, lung parenchyma, and lesion categories.

[0111] Figure 6 The test results of this example are given, among which:

[0112] The first row shows CT images of five patients with COVID-19, with the actual lesion area of ​​each CT image within the frame.

[0113] The second line shows the segmentation results of each CT image after it is input into the trained network model T2. Each segmentation result consists of the external chest area, the left and right lung parenchyma areas, and the lesion area within the frame line.

[0114] The third line is the evaluation index DSC calculated from the network prediction result and the actual lesion area. Its maximum value is 1. The larger the value, the better the segmentation effect.

[0115] It can be seen from the segmentation results and evaluation indicators that the two-stage method used in the present invention and the improved superpixel-guided weakly supervised COVID-19 lesion segmentation network have good segmentation effects on CT scans of COVID-19 patients of different sizes and distributions, and can completely segment the target area. The evaluation indicators are also higher than 0.8, achieving a good segmentation accuracy.

[0116] The above description is only a specific example of the present invention and does not constitute any limitation to the present invention. It is obvious that for professionals in this field, after understanding the content and principles of the present invention, it is possible to make various modifications and changes in form and details without departing from the principles and structures of the present invention. However, these modifications and changes based on the ideas of the present invention are still within the scope of protection of the claims of the present invention.

Claims

1. A two-stage weakly supervised COVID-19 lesion segmentation method based on superpixels, characterized in that: Contains the following: (1) Obtain computed tomography (CT) data of patients with COVID-19, uniformly adjust the spatial resolution, window level, and window width of the data to obtain a data set S, and divide it into a training sample set S1, a validation sample set S2, and a test sample set S3 at a ratio of 4:1:4; (2) Perform graffiti-style annotation on the training dataset S1, that is, use graffiti-style lines to outline the chest cavity part, the COVID-19 lesion infection part, and the lung parenchyma part, respectively, to obtain the graffiti-style label set R of the training dataset; the validation dataset and the test dataset are annotated in a fully annotated manner; (3) Use the training data set S1 to enhance the graffiti tag set R to obtain the enhanced graffiti tag set R′; (4) Use the existing UNet3+ network as the overall framework for superpixel-guided weakly supervised COVID-19 lesion segmentation. The encoding part of the framework is reduced from the existing 5 layers to 4 layers, and the network encoding part is replaced by 4 multi-scale feature extraction modules D1, D2, D3, and D4. Correspondingly, 3 decoding modules U1, U2, and U3 can be obtained. The 4 multi-scale feature extraction modules and 3 decoding modules are spliced ​​and combined to build a multi-category segmentation network C4-Net and initialize its parameters; (5) Two-stage training of the superpixel-guided weakly supervised COVID-19 lesion segmentation network: (5a) The training data set S1 is expanded by rotation or mirroring, and the segmentation network is trained in the first stage by using the gradient descent method using the expanded training data set S′1 to obtain the trained first stage segmentation network T1; (5b) Input the training data set S1 into the trained first-stage segmentation network T1 to obtain the first-stage network prediction result set P1; (5c) Using the first-stage network prediction result set P1, the training data set S1 and the enhanced graffiti label set R′, the second-stage training data set S″1 is generated; (5d) Use the second stage training dataset S″1 to perform the second stage training on the segmentation network: (5d1) Input the CT image set in the second-stage training data set S″1 into the trained first-stage segmentation network T1 to obtain the output set P2; (5d2) constructing the loss function L2 for the second stage training based on the second stage training data set S″1 and the output set P2; in is the lesion category loss, is the chest category loss, is the lung parenchyma category loss; (5d3) Iteratively update the multi-category segmentation network using the second-stage loss function L2 until the loss function L2 converges to obtain the trained second-stage segmentation network T2; (6) The COVID-19 lesion test sample set S3 is input into the trained second-stage segmentation network T2 to obtain the corresponding segmentation results, namely, the categories of the thoracic cavity, lung parenchyma, and COVID-19 lesions.

2. The method according to claim 1, characterized in that: In (3), the training data set S1 is used to enhance the graffiti tag set R, which is implemented as follows: (3a) Use the simple linear iterative clustering algorithm SLIC to segment the training data set S1 slice by slice into superpixels, and use the segmented superpixel blocks to form the superpixel set C corresponding to the training data set S1 all ; (3b) Extract the graffiti pixel areas with three categories marked in the graffiti label set R, and compare these graffiti pixel areas with the superpixel set C all The superpixel blocks in the corresponding superpixel block are marked according to the graffiti pixel category of the superpixel block position, and the superpixel set C is divided according to the marking information of these superpixel blocks. all It is divided into the superpixel set C1 of the lesion area, the superpixel set C2 of the chest area, the superpixel set C3 of the lung parenchyma, and the remaining superpixel set C res The four superpixel sets are: (3c) In the superpixel set C that has not been classified res Take a superpixel block PB1 and calculate the average Euclidean similarity M1 between it and the superpixel set C2 of the chest area: (3c1) Randomly select 10 superpixel blocks from C2 and denote them as {SP i }, where i = 1, 2, ..., 10; (3c2) Calculate the super pixel block PB1 and super pixel block SP in sequence i The Euclidean similarity between: is the jth pixel of superpixel block PB1, SP i j is the super pixel block SP i The j-th pixel of , n is the number of pixels in the superpixel block PB1, and then the average Euclidean similarity is calculated as: (3d) constructing a second superpixel block PB2 with the same size as the superpixel block PB1 but with a value of 0, and calculating the Euclidean similarity M2 between the two superpixel blocks PB1 and PB2; (3e) Mark the first superpixel block PB1 as a background category or a chest category according to the size of M1 and M2, and then update the graffiti label set R according to the position information and category information of the first superpixel block PB1; (3f) Repeat (3c) to (3e) until all unclassified superpixel sets C are traversed. res , and obtain the enhanced graffiti tag set R′.

3. The method according to claim 1, characterized in that The superpixel-guided weakly supervised COVID-19 lesion segmentation network C4-Net constructed in (4) has the following structural relationship: Network input → first feature extraction module D1 → first pooling convolution layer → second feature extraction module D2 → second pooling convolution layer → third feature extraction module D3 → third pooling convolution layer → fourth feature extraction module D4 → fourth pooling convolution layer → first decoding module U1 → second decoding module U2 → third decoding module U3 → network output.

4. The method according to claim 1, characterized in that: The parameters of each feature extraction module are as follows: The first feature extraction module D1 is composed of three convolutions of different scales, 1×1×4, 3×3×8, and 7×7×2, connected in parallel and then connected in series with a unit convolution of size 1×1×16; The second feature extraction module D2 is composed of three unit convolutions of size 1×1×8 connected in parallel, two of which are connected in series with separable convolutions of scales 3 and 7 and channels 16 and 4, respectively, and then connected in series with a unit convolution of size 1×1×32; The third feature extraction module D3 is composed of a separable convolution with a scale of 3 and a channel number of 16 and a unit convolution with a size of 1×1×32, which is then connected in series with a unit convolution with a size of 1×1×64; The fourth feature extraction module D4 is composed of a concatenation of convolutions of sizes 1×1×32 and 3×3×64, and then a concatenation of a unit convolution of size 1×1×128.

5. The method according to claim 1, characterized in that: In (5a), the expanded training data set S′1 is used to perform the first-stage training of the superpixel-guided weakly supervised COVID-19 lesion segmentation network using the gradient descent method, which is implemented as follows: (5a1) Input the expanded training data set S′1 into the segmentation network to obtain the output result set P; (5a2) Calculate the first-stage loss function L1 through the network output result set P and the corresponding label R′: in, The cross entropy loss on category k in the i-th output image, is the output result of category k in the i-th output image in the output set P, is the label image of category k in the i-th output image in the enhanced graffiti label set R′, k∈{0,1,2,3}, corresponding to the four categories of background, chest, lesion, and lung parenchyma, i=1,2,…N P , N P is the number of output images in the output set P; w k The corresponding weight of the loss for each category, where the weight of the lesion category is w1=5, and the weights of the other categories are all 1; (5a3) Assume that the initial learning rate η = 0.001, use the gradient descent method to optimize the first-stage loss function L1 of the superpixel-guided weakly supervised COVID-19 lesion segmentation network, and update the parameters of the superpixel-guided weakly supervised COVID-19 lesion segmentation network until the first-stage loss L1 converges to obtain the trained first-stage segmentation network T1.

6. The method according to claim 1, characterized in that In (5c), the first-stage network prediction result set P1, the training data set S1, and the enhanced graffiti tag set R′ are used to generate the second-stage training data set S″1, which is implemented as follows: (5c1) Select a single chest CT image T from the training dataset S1, select the corresponding label SR from the enhanced graffiti label set R′, and select the corresponding prediction value F from the first stage network prediction result set P1 R As the pseudo label image corresponding to the CT image T; (5c2) Use the simple linear iterative clustering algorithm SLIC to cluster the pseudo labels F R Processing is performed to generate a super-pixel image F S ; (5c3) Using CT image T, label image SR, pseudo label image F R Generate pseudo CT image F T : (5c3.1) The probability distribution of the CT value of the lesion area of ​​the statistical graffiti tag SR corresponding to the CT image T is recorded as F(x); (5c3.2) The pseudo CT image F T Initialization is the same as the CT image T, and the pseudo-labeled lesion area F is specified R is the pseudo CT image F T The lesion area; (5c3.3) According to the probability distribution F(x), the pseudo CT image F T The lesion area is assigned to obtain the pseudo CT image F T ; (5c4) Repeat (5c1) to (5c3) until the entire training dataset S1 is traversed, and each CT image T and its corresponding pseudo label F are stored. R , super pixel image F S , pseudo CT image F T , and obtain the second stage training data set S″1.

7. The method according to claim 1, wherein (5d2) constructs the loss function L2 for the second stage training according to the second stage training data set S″1 and the output set P2, and is implemented as follows: (5d2.1) First select a training batch {T, F T ,F R ,F S }, and then select an output image TP from the output set P2 corresponding to the CT image T, and compare it with the training batch {T,F T ,F R ,F S } form a processing batch {T,F R ,F R ,F S ,TP}, where T is a CT image in the training set, F T 、F R 、F S They are the corresponding pseudo CT image, pseudo label image and super pixel image respectively; (5d2.2) According to the processing batch {T,F T ,F R ,F S ,TP} construct lesion category loss First, the output image TP and the pseudo label image F R Calculate the cross entropy loss at the superpixel level: is the pseudo-label image F R The kth superpixel block in TP k is the kth superpixel block in the output image TP; Next, the CT image T and the pseudo CT image F T Compute Euclidean similarity at superpixel level: is the i-th pixel of the k-th superpixel block in the CT image T, is the pseudo CT image F T The i-th pixel of the k-th superpixel block in , n is the number of pixels of the k-th superpixel block in the CT image T; Secondly, according to the cross entropy loss at the superpixel level Euclidean similarity with superpixel level Calculate the weights of superpixel level loss: N sp is the super pixel image F S and pseudo-label image F R The number of superpixel blocks that overlap the lesion area; Next, the superpixel level weight wsp k Cross entropy loss with superpixel level Multiply them together to get the loss of each output image TP at the superpixel level: Finally, the lesion category loss is constructed: (5d2.3) According to the processing batch {T,F T ,F R ,F S ,TP}Construct chest category loss: is the output probability matrix of the chest category in the output image TP, is the pseudo label F R Matrix of mesothoracic category channels; (5d2.4) According to the processing batch {T,F T ,F R ,F S ,TP} construct lung parenchyma category loss: is the output probability matrix of the lung parenchyma category in the output image TP, is the pseudo label F R Matrix of channels in the lung parenchyma category.

Citation Information

Patent Citations

  • Abdominal CT image liver tumor lesion segmentation method based on convolutional neural network

    CN113205496A

  • New coronal pneumonia segmentation method based on weak supervision multi-task learning

    CN113610807A

  • Virus focus segmentation method based on transfer learning and cascade adaptive cavity convolution

    CN114119516A

  • A System and Computer-Implemented Method for Segmenting an Image

    US20200167930A1