Pancreatic tumor classification method based on local background augmentation and multi-channel transfer learning
Through the methods of local background augmentation and multi-channel transfer learning, the problems of accuracy and sample diversity in image classification of benign and malignant pancreatic cystic tumors are solved, improving the performance of the classifier and ensuring accurate diagnosis of pancreatic cystic tumors. .
Patent Information
- Application Number
- CN202110333579.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-03-29
AI Technical Summary
It is difficult to achieve accuracy and sample diversity in medical image classification of pancreatic cystic benign and malignant tumors with existing technology, and it is difficult for the transfer learning framework to transfer the performance of medical image classifiers in other modalities and parts to the classification of pancreatic cystic benign and malignant tumors. on task.
Methods based on local background augmentation and multi-channel transfer learning were used to augment pancreatic CT images through conditional generative adversarial networks (cGAN), and multi-stage multi-channel transfer learning was performed on synthetic image data sets and real image data sets. , improve the classification performance of the classifier.
It improves the accuracy of pathological classification of benign and malignant pancreatic cystic tumors, ensures good classification performance that is not easily confused with tumors, and provides markers for difficult-to-classify samples to prevent misdiagnosis.
Smart Images

Figure CN113052824B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method for synthesizing and classifying medical images. Background Art
[0002] Since pancreatic cystic benign / malignant tumors have high similarity in the same modality of imaging, the accuracy of pathological diagnosis of tumors in medical images by doctors based solely on experience is not high. Although puncture technology can be used for pathological diagnosis, this operation usually causes damage to the subject and can lead to complications in severe cases. Therefore, it is of great clinical significance to use computer-aided diagnosis technology to perform pathological diagnosis on medical images of pancreatic cystic tumors.
[0003] Compared with traditional classification models, deep learning-based classification models have been shown to be superior in the task of classifying benign and malignant pancreatic cystic tumors. Unfortunately, due to the limited number of medical images with tumors, the trained classification models are not satisfactory for classifying benign and malignant tumor images with insufficient clinical features.
[0004] The technical defects of the existing technology are: since this type of tumor has high similarity in the same modality imaging, the existing augmentation method cannot ensure that the synthesized pathological images simultaneously meet the clinical characterization accuracy and sample diversity; since medical images of different modalities and parts have large differences, the existing transfer learning framework makes it difficult to transfer the performance of medical image classifiers of other modalities and other parts to the task of classifying pancreatic cystic benign and malignant tumors. Summary of the invention
[0005] To overcome the shortcomings of the prior art, the present invention proposes a pancreatic tumor classification method based on local background augmentation and multi-channel transfer learning, which augments pancreatic CT images with tumors for a deep learning-based classification model to perform multi-stage multi-channel transfer learning on synthetic image datasets and real image datasets to improve the classification performance of the classifier.
[0006] The technical solution adopted by the present invention to solve its technical problem is:
[0007] A pancreatic tumor classification method based on local background augmentation and multi-channel migration learning, the method comprising the following steps:
[0008] 1) Data preprocessing
[0009] For pancreatic cystic benign / malignant tumor CT images with tumor edge outline labels and pathological labels, the bounding-box containing the tumor and surrounding tissue information is obtained according to its outline label. Based on the minimum rectangular box containing the tumor area, pixels are set outward as the data set;
[0010] A deep learning-based classification model was used to perform binary classification tasks of easy-to-classify and easy-to-confuse on the obtained data set, and multiple classification models were used to perform k-fold cross-training and testing on the data set; if a sample could be correctly classified in each classifier, the sample was classified as easy-to-classify pancreatic tumor sample A; if a sample was misclassified in any classifier, the sample was classified as easy-to-confuse pancreatic tumor sample B;
[0011] The classification model with the best classification performance is adopted as the classifier in the subsequent stage;
[0012] 2) Augmentation of easily confused dataset B
[0013] For data set B, the foreground image of the benign tumor area constitutes the data set X(x1,x2,…,x i , i is the number of samples with benign tumors), the background image constitutes the data set Y(y1,y2,…,y i ) and Z(z1,z2,…,z i ); the foreground graph of malignant tumor samples constitutes P(p1,p2,…,p j , j is the number of samples with malignant tumors), the background image constitutes Q(q1,q2,…,q j ) and R(r1,r2,…,r j ), where Y and Q correspond to the area between the smallest rectangular box containing the tumor and the sample boundary, i.e., the outer background area); Z and R correspond to the area between the rectangular box and the tumor boundary, i.e., the inner background area;
[0014] The conditional generative adversarial network (cGAN) is used to augment B. By fusing and fine-tuning the areas within the tumor outline label and the surrounding tissue areas with the same pathological labels, the obtained samples can be directly used for subsequent classification training.
[0015] Suppose the cGAN used for benign sample augmentation is cGAN1, and the cGAN used for benign sample augmentation is cGAN2. The training adopts a method based on semi-supervised learning, see formula (1):
[0016] L cGAN1-sup =||(x n △y n △z n )–G1(x n △y n )||
[0017] L cGAN1-unsup =log(D1(x n △y n △z n ))+log(1-D1(G1(x m △yn )))
[0018] L cGAN2-sup =||(p a △q a △r a )–G2(p a △q a )||
[0019] L cGAN2-unsup =log(D2(p a △q a △r a ))+log(1-D2(G2(p b △q a )))
[0020] L cGAN1 =L cGAN1-sup +λL cGAN1-unsup
[0021] L cGAN2 = L cGAN2-sup +λL cGAN2-unsup (1)
[0022] Among them, G is the generator of cGAN, D is the discriminator of cGAN, n and m are the serial subscripts of samples X, Y and Z, 1≤n, m≤i, n≠m; a and b are the serial subscripts of samples P, Q and R, 1≤a, b≤j, a≠b; λ is the weight hyperparameter; G1 and G2 synthesize the inner background image according to the input outer background image and foreground image. The trained generator can obtain the inner background image that conforms to the clinical characterization according to different outer background images and foreground images, and the synthesized samples are classified as B. * ;
[0023] 3) In datasets A and B * Fine-tuning of back-layer parameters in multi-channel networks on
[0024] The multi-channel classifier fine-tuning based on transfer learning is performed on dataset B * and conducted on dataset A;
[0025] After the network is trained in this stage, the parameters of the middle network layers of the three channels are fixed, and the parameters of the deep network layers are updated in the next stage;
[0026] 4) Fine-tuning of deep network parameters of multi-channel networks on datasets A and B
[0027] The multi-channel classifier fine-tuning is performed on datasets A and B. The CT images with confusing tumors in dataset B are more *At this time, the parameter update strategy of the three middle and back-end channels is the same as the update strategy of step 3);
[0028] After the network is trained in this stage, all parameters in the network are fixed;
[0029] 5) Classification of pancreatic tumors
[0030] For the trained single front-end-three middle-back-end classifier, in the application stage, a pancreatic sample with a tumor is input to obtain three classification results, corresponding to channels 1 to 3 respectively; when the first classification result is benign or malignant, this result is the final prediction result; when the first classification result is a confusing sample, the final prediction result is jointly determined by channels 2 and 3: when the prediction results of channels 2 and 3 are consistent, that is, both are benign or malignant, then this result is the prediction result; when the prediction results of these two channels are inconsistent, the input sample requires a puncture test to determine the pathology.
[0031] Furthermore, in step 3), the parameters of the shallow network layer of the pre-trained classifier are fixed, and the parameters of the middle and deep network layers with fine-tunable parameters are copied to obtain a deep learning classifier with a single front-end channel and three middle and back-end channels. The three channels are named middle and back-end channel-1, middle and back-end channel-2, and middle and back-end channel-3. Middle and back-end channel-1 is a classifier for the input from A and B. * The samples are used to perform the three-classification task of benign / confusing / malignant tumors. At this time, B * The category labels of the samples in are confusing; when the input samples come from B * When the middle and back-end channel-2 also performs the benign / malignant classification task, B * The class labels of the samples are benign / malignant;
[0032] Using the loss value between the predicted label and the true label output by the network, the parameters of the two channels are updated;
[0033] B * The feature maps of the samples in the two channels are used to obtain the difference feature map. Since channel 1 expects to obtain the commonalities between easily confused benign and malignant samples, and channel 2 expects to obtain the differences between easily confused benign and malignant samples, the two can be subtracted to eliminate the similarities and seek the differences, and obtain the feature difference map of easily confused benign and malignant samples. This feature difference map is used for the training of the middle and back end channel-3. At this time, B * The class labels of the samples are benign / malignant.
[0034] The technical concept of the present invention is: first, using existing classifiers and classification labels, pancreatic tumors are divided into samples that are easier to accurately classify (often in larger numbers) and samples that are more difficult to accurately classify (often in smaller numbers), and the bottlenecks for improving the performance of the classifier are identified; then, the samples that are more difficult to accurately classify are augmented to ensure that the classifier has a sufficient number of samples when training on such samples; finally, two-stage, three-channel mid- and back-end network parameters are fine-tuned on the augmented samples and real samples, and on the premise of ensuring that the classification performance of samples that are easier to classify is not weakened, pathological analysis of easily confused benign and malignant tumors is performed at the medical image level and the feature image level to improve the performance of the classifier.
[0035] The beneficial effects of the present invention are mainly manifested in: 1. It improves the accuracy of the classification model in classifying benign and malignant pathologies of pancreatic cystic tumors that are easily confused; 2. For tumors that are not easily confused, good classification performance can still be guaranteed; 3. For samples that are difficult to classify, they can be marked to prevent misdiagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is the overall flow chart of the present invention.
[0037] Figure 2 This is a flowchart of the preprocessing of a deep learning-based classification model for performing easy-to-classify and easy-to-confuse binary classification tasks on an acquired data set.
[0038] Figure 3 It is a flowchart of a medical image synthesis method based on a conditional generative adversarial network of the present invention.
[0039] Figure 4 It is a flow chart of determining the back-layer parameters in a multi-channel classifier based on transfer learning of the present invention. DETAILED DESCRIPTION
[0040] The present invention will be further described below in conjunction with the accompanying drawings.
[0041] Reference Figure 1 to Figure 4 , a pancreatic tumor classification method based on local background augmentation and multi-channel transfer learning, comprising the following steps:
[0042] 1) Data preprocessing
[0043] For pancreatic cystic benign / malignant tumor CT images with tumor edge outline labels and pathological labels, the bounding-box containing the tumor and surrounding tissue information is obtained according to its outline label. Based on the minimum rectangular box containing the tumor area, several pixels are expanded outward as the data set.
[0044] Use the existing advanced deep learning-based classification model to perform easy-to-classify and easy-to-confuse binary classification tasks on the obtained data set; specifically, use multiple classification models to perform k-fold cross-training and testing on the data set. If a sample can be correctly classified in each classifier, the sample is classified as an easy-to-classify pancreatic tumor sample A. If a sample is misclassified in any classifier, the sample is classified as an easy-to-confuse pancreatic tumor sample B.
[0045] The classification model with the best classification performance is adopted as the classifier in the subsequent stage, that is, the parameters of the shallow network are fixed;
[0046] 2) Augmentation of easily confused dataset B
[0047] For data set B, the foreground image of the benign tumor area constitutes the data set X(x1,x2,…,x i , i is the number of samples with benign tumors), the background image constitutes the data set Y(y1,y2,…,y i ) and Z(z1,z2,…,z i ); the foreground graph of malignant tumor samples constitutes P(p1,p2,…,p j , j is the number of samples with malignant tumors), the background image constitutes Q(q1,q2,…,q j ) and R(r1,r2,…,r j ), where Y and Q correspond to the area between the smallest rectangular box containing the tumor and the sample boundary, i.e., the outer background area; Z and R correspond to the area between the rectangular box and the tumor boundary, i.e., the inner background area;
[0048] The conditional generative adversarial network cGAN is used to augment B. This step can effectively increase the number of easily confused samples without changing the pathological properties of the tumor by fusing and fine-tuning the area within the tumor outline label (foreground image) and the surrounding tissue area (background image) with the same pathological label. The obtained samples can be directly used for subsequent classification training.
[0049] Let the cGAN used for benign sample augmentation be cGAN1, and the cGAN used for benign sample augmentation be cGAN2. The training adopts a method based on semi-supervised learning, see formula (1):
[0050] L cGAN1-sup =||(x n △y n △z n )–G1(x n △y n )||
[0051] L cGAN1-unsup =log(D1(x n △yn △z n ))+log(1-D1(G1(x m △y n )))
[0052] L cGAN2-sup =||(p a △q a △r a )–G2(p a △q a )||
[0053] L cGAN2-unsup =log(D2(p a △q a △r a ))+log(1-D2(G2(p b △q a )))
[0054] L cGAN1 =L cGAN1-sup +λL cGAN1-unsup
[0055] L cGAN2 = L cGAN2-sup +λL cGAN2-unsup (1)
[0056] Among them, G is the generator of cGAN, D is the discriminator of cGAN, n and m are the serial subscripts of samples X, Y and Z, 1≤n, m≤i, n≠m; a and b are the serial subscripts of samples P, Q and R, 1≤a, b≤j, a≠b; λ is the weight hyperparameter; G1 and G2 synthesize the inner background image according to the input outer background image and foreground image. The trained generator can obtain the inner background image that conforms to the clinical characterization according to different outer background images and foreground images. Since the foreground image does not change during the synthesis process, the pathological information of the new sample is accurate, and the synthesized sample is classified as B. * .
[0057] 3) In datasets A and B * Fine-tuning of back-layer parameters in multi-channel networks on
[0058] The fine-tuning of the multi-channel classifier based on transfer learning in this stage is based on dataset B. * and dataset A.
[0059] The shallow network layer parameters of the pre-trained classifier are fixed, and the middle and deep network layers with fine-tunable parameters are copied to obtain a deep learning classifier with a single front-end channel and three middle and back-end channels (named middle and back-end channel-1, middle and back-end channel-2, and middle and back-end channel-3, respectively). Among them, the middle and back-end channel-1 is a pair of channels from A and B.* The samples are used to perform the three-classification task of benign / confusing / malignant tumors. At this time, B * The category labels of the samples in are confusing; when the input samples come from B * When the middle and back-end channel-2 also performs the benign / malignant classification task, B * The class labels of the samples are benign / malignant;
[0060] Using the loss value between the predicted label and the true label output by the network, the parameters of the two channels are updated;
[0061] Furthermore, B * The feature maps of the samples in the two channels are used to obtain the difference feature map. Since channel 1 expects to obtain the commonalities between easily confused benign and malignant samples, and channel 2 expects to obtain the differences between easily confused benign and malignant samples, the two can be subtracted to eliminate the similarities and seek the differences, and the feature difference map of easily confused benign and malignant samples can be obtained. This feature difference map is used for the training of the middle and back end channel-3. At this time, B * The class labels of the samples are benign / malignant;
[0062] After the network is trained in this stage, the parameters of the middle network layers of the three channels are fixed, and the parameters of the deep network layers are updated in the next stage.
[0063] 4) Fine-tuning of deep network parameters of multi-channel networks on datasets A and B
[0064] Because B * There are inevitably differences in clinical manifestations between the data in A and the data in B, and these differences more or less affect the pathological prediction results of the classifier for the data in B.
[0065] Therefore, the multi-channel classifier fine-tuning in this stage is performed on datasets A and B (the CT images with confusing tumors in dataset B are more * At this time, the parameter update strategy of the three middle and back-end channels is the same as the update strategy of step 3).
[0066] After the network is trained in this stage, all parameters in the network are fixed.
[0067] 5) Classification of pancreatic tumors
[0068] For the trained single front-end-three middle-back-end classifier, in the application stage, a pancreatic sample with a tumor is input to obtain three classification results, corresponding to channels 1 to 3 respectively; when the first classification result is benign or malignant, this result is the final prediction result; when the first classification result is a confusing sample, the final prediction result is jointly determined by channels 2 and 3: when the prediction results of channels 2 and 3 are consistent, that is, both are benign or malignant, then this result is the prediction result; when the prediction results of these two channels are inconsistent, the input sample requires a puncture test to determine the pathology.
[0069] Reference Figure 1 The overall process of the present invention comprises the following steps:
[0070] 1) intercepting the tumor area;
[0071] 2) Screen samples based on whether they are easily confused;
[0072] 3) Perform data augmentation on easily confused samples;
[0073] 4) Train the classification model using augmented samples and real samples;
[0074] 5) Fine-tune the deep parameters of the classification model using real images.
[0075] Reference Figure 2 , the classification part of the present invention comprises the following steps:
[0076] 1) Put the labeled CT images into the trainer;
[0077] 2) Select the best classifier based on the results of k-fold cross-training;
[0078] 3) Screen the samples during the experiment to obtain samples that are easy to confuse and samples that are not easy to confuse;
[0079] Reference Figure 3 The data set augmentation part of the present invention comprises the following steps:
[0080] 1) Divide the image into three regions: XYZ;
[0081] 2) In the case of supervised learning, X is fused through the generator G n and Y n Get G1(x n △y n );
[0082] 3) Fusion of X through generator G in unsupervised learning m and Y n Get G1(x m △y n );
[0083] 4) Use G1(x n △y n ) and (x n △y n △z n ) is compared, and the result is L cGAN-sup The value is fed back to the generator G;
[0084] 5) Use G1(x m △y n ) and (x n △y n △z n ) is compared by the discriminator D, and the result is L cGAN-unsup The value is fed back to the generator G;
[0085] 6) Obtain a more realistic and easily confused augmented dataset.
[0086] Reference Figure 4 , the classifier optimization part of the present invention comprises the following steps:
[0087] 1) Copy the classification model obtained in the early stage into three copies 1, 2, and 3, and fix the shallow network parameters;
[0088] 2) First, fine-tune the parameters of the middle and back-end networks: input real samples that are easy to classify and synthetic samples with tumors, first process them through the front-end network, and then pass the processed samples to the middle and back-end channel 1 to perform the benign / malignant / confusable classification task and obtain the common feature map of the easily confused samples;
[0089] 3) Input synthetic samples with tumors, which are first processed by the front-end network and then passed to the middle and back-end channel 2 to perform the benign / malignant classification task and obtain the difference feature map of easily confused samples;
[0090] 4) Compare the two feature maps and output a feature difference map with easily confused samples, which will be used to train classifier 3;
[0091] 5) After fixing the parameters of the middle and back layer networks, the deep network parameters of the classifier are updated with real samples. The update strategy is the same as steps 2) to 4). After all parameters are fixed, a complete classification model is obtained.
[0092] The contents described in the embodiments of this specification are merely enumerations of implementation forms of the inventive concept and are for illustrative purposes only. The protection scope of the present invention should not be considered to be limited to the specific forms described in this embodiment, and the protection scope of the present invention also extends to equivalent technical means that can be thought of by ordinary technicians in this field based on the inventive concept.
Claims
1. A pancreatic tumor classification method based on local background augmentation and multi-channel transfer learning, It is characterized in that The method comprises the following steps: 1) Data preprocessing For pancreatic cystic benign / malignant tumor CT images with tumor edge outline labels and pathological labels, the bounding-box containing the tumor and surrounding tissue information is obtained according to its outline label. Based on the minimum rectangular box containing the tumor area, pixels are set outward as the data set; A deep learning-based classification model is used to perform binary classification tasks on the obtained data set, which are easy to classify and easy to confuse. Multiple classification models are used to perform k-fold cross-training and testing on the data set. If a sample can be correctly classified in each classifier, the sample is classified as pancreatic tumor sample A that is easy to classify; If a sample is misclassified in any classifier, the sample is classified as a confusing pancreatic tumor sample B; The classification model with the best classification performance is adopted as the classifier in the subsequent stage; 2) Augmentation of easily confused dataset B For data set B, the foreground image of the benign tumor area constitutes the data set X(x 1 ,x 2 ,…,x i , i is the number of samples with benign tumors), the background image constitutes the data set Y(y 1 ,y 2 ,…,y i ) and Z(z 1 ,z 2 ,…,z i ); the foreground map of malignant tumor samples constitutes P(p 1 ,p 2 ,…,p j , j is the number of samples with malignant tumors), the background image constitutes Q(q 1 ,q 2 ,…,q j ) and R(r 1 ,r 2 ,…,r j ), where Y and Q correspond to the area between the smallest rectangular box containing the tumor and the sample boundary, i.e., the outer background area); Z and R correspond to the area between the rectangular box and the tumor boundary, i.e., the inner background area; The conditional generative adversarial network (cGAN) is used to augment B. By fusing and fine-tuning the areas within the tumor outline label and the surrounding tissue areas with the same pathological labels, the obtained samples can be directly used for subsequent classification training. Let the cGAN used for benign sample augmentation be cGAN 1 , the cGAN used for benign sample augmentation is cGAN 2 , the training adopts a method based on semi-supervised learning, see formula (1): L cGAN1-sup =||(x n △y n △z n )–G 1 (x n △y n )|| L cGAN1-unsup =log(D 1 (x n △y n △z n ))+log(1-D 1 (G 1 (x m △y n ))) L cGAN2-sup =||(p a △q a △r a )–G 2 (p a △q a )|| L cGAN2-unsup =log(D 2 (p a △q a △r a ))+log(1-D 2 (G 2 (p b △q a ))) THE cGAN1 =L cGAN1-sup +λL cGAN1-unsup THE cGAN2 = L cGAN2-sup +λL cGAN2-unsup (1) Where G is the generator of cGAN, D is the discriminator of cGAN, n and m are the serial subscripts of samples X, Y and Z, 1≤n,m≤i,n≠m; a and b are the serial subscripts of samples P, Q and R, 1≤a,b≤j,a≠b; λ is the weight hyperparameter; G 1 and G 2 According to the input outer background image and foreground image, the inner background image is synthesized. The trained generator can obtain the inner background image that conforms to the clinical characterization according to different outer background images and foreground images. The synthesized samples are classified as B * ; 3) In datasets A and B * Fine-tuning of back-layer parameters in multi-channel networks on The multi-channel classifier fine-tuning based on transfer learning is performed on dataset B * and conducted on dataset A; After the network is trained in this stage, the parameters of the middle network layers of the three channels are fixed, and the parameters of the deep network layers are updated in the next stage; 4) Fine-tuning of deep network parameters of multi-channel networks on datasets A and B The multi-channel classifier fine-tuning is performed on datasets A and B. The CT images with confusing tumors in dataset B are more * At this time, the parameter update strategy of the three middle and back-end channels is the same as the update strategy of step 3); After the network is trained in this stage, all parameters in the network are fixed; 5) Classification of pancreatic tumors For the trained single front-end-three middle-back-end classifier, in the application stage, a pancreatic sample with a tumor is input to obtain three classification results, corresponding to channels 1 to 3 respectively; when the first classification result is benign or malignant, this result is the final prediction result; when the first classification result is a confusing sample, the final prediction result is jointly determined by channels 2 and 3: when the prediction results of channels 2 and 3 are consistent, that is, both are benign or malignant, then this result is the prediction result; when the prediction results of these two channels are inconsistent, the input sample needs a puncture test to determine the pathology; In the step 3), the shallow network layer parameters of the pre-trained classifier are fixed, and the middle and deep network layers with fine-tunable parameters are copied to obtain a deep learning classifier with a single front-end channel and three middle and back-end channels. The three channels are named middle and back-end channel-1, middle and back-end channel-2, and middle and back-end channel-3. Middle and back-end channel-1 is a classifier for the input from A and B. * The samples are used to perform the three-classification task of benign / confusing / malignant tumors. At this time, B * The category labels of the samples in are confusing; when the input samples come from B * When the middle and back-end channel-2 also performs the benign / malignant classification task, B * The class labels of the samples are benign / malignant; Using the loss value between the predicted label and the true label output by the network, the parameters of the two channels are updated; B * The feature maps of the samples in the two channels are used to obtain the difference feature map. Since channel 1 expects to obtain the commonalities between easily confused benign and malignant samples, and channel 2 expects to obtain the differences between easily confused benign and malignant samples, the two can be subtracted to eliminate the similarities and seek the differences, and obtain the feature difference map of easily confused benign and malignant samples. This feature difference map is used for the training of the middle and back end channel-3. At this time, B * The class labels of the samples are benign / malignant.
Citation Information
Patent Citations
Space target classification method based on multi-layer adversarial network
CN111178401A
Data annotation method and device, electronic equipment and storage medium
CN111680753A
