CN111612764B - Method, system and storage medium for resolving new coronal pneumonia ground glass focus contrast - Google Patents

Method, system and storage medium for resolving new coronal pneumonia ground glass focus contrast Download PDF

Info

Publication number
CN111612764B
CN111612764B CN202010433448.8A CN202010433448A CN111612764B CN 111612764 B CN111612764 B CN 111612764B CN 202010433448 A CN202010433448 A CN 202010433448A CN 111612764 B CN111612764 B CN 111612764B
Authority
CN
China
Prior art keywords
glass
lung
value
module
shadow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010433448.8A
Other languages
Chinese (zh)
Other versions
CN111612764A (en
Inventor
严朝煜
陈海欣
李伟忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Li Weizhong
Original Assignee
Guangzhou Pushi Medical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Pushi Medical Technology Co ltd filed Critical Guangzhou Pushi Medical Technology Co ltd
Priority to CN202010433448.8A priority Critical patent/CN111612764B/en
Publication of CN111612764A publication Critical patent/CN111612764A/en
Application granted granted Critical
Publication of CN111612764B publication Critical patent/CN111612764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/0033Features or image-related aspects of imaging apparatus classified in A61B5/00, e.g. for MRI, optical tomography or impedance tomography apparatus; arrangements of imaging apparatus in a room
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/08Detecting, measuring or recording devices for evaluating the respiratory organs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2415Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on parametric or probabilistic models, e.g. based on likelihood ratio or false acceptance rate versus a false rejection rate
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/30Noise filtering
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H30/00ICT specially adapted for the handling or processing of medical images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30061Lung

Abstract

The invention relates to the field of image medicine, in particular to a new method, a system and a storage medium for analyzing the contrast of a glass focus ground by a coronal pneumonia, which comprise the following steps: s1, glass grinding shadow sketching based on image histology; s2, predicting new coronatine pneumonia disease probability based on deep learning: s21, preprocessing the ground glass shadow obtained in the step S1, and improving the convergence speed and the prediction speed of the convolutional neural network; s22, building a neural network based on the WRN and the mixed domain attention module; s23, stacking the ground glass photo pictures after the pretreatment of S21 as input, and putting the stack of ground glass photo pictures into a neural network of S22 to obtain the probability of suffering from new coronaries pneumonia. The method of the invention is a small convolutional neural network, and uses the attention module of the mixed domain, thereby being capable of accelerating the training speed and improving the prediction accuracy.

Description

Method, system and storage medium for resolving new coronal pneumonia ground glass focus contrast
Technical Field
The invention relates to the field of image medicine, in particular to a new method, a system and a storage medium for analyzing a new coronal pneumonia ground glass focus contrast.
Technical Field
The novel coronavirus 2019-nCoV can cause human diseases and can be transmitted between human and animals, and symptoms of the novel coronavirus 2019-nCoV infection are fever, wheezing, pneumonia and the like.
Image histology is important for the definitive diagnosis of novel coronaviruses, and traditional image histology methods: and (3) segmenting the ground glass focus area by adopting K-means, SVM, multi-OSTU algorithm and the like, and then carrying out decision tree analysis on the characteristics of textures, shapes, sizes, distribution and the like of the segmented focus area to obtain the new coronary pneumonia disease probability. Segmentation of the glass-ground lesion area using conventional methods is susceptible to vascular interference. When the characteristics of texture, shape, size, distribution and the like are used for predicting the disease probability of the new coronaries, the model accuracy is not high because the characteristic quantity is not large, and the characteristic difference between the new coronaries and the non-new coronaries (such as bacterial pneumonia, fungal pneumonia, other viral pneumonia and the like) is small.
Disclosure of Invention
The invention aims to solve the problem that the detection accuracy of the traditional image histology method on the novel coronaries is low in the prior art, and provides a novel method, a system and a storage medium for imaging and analyzing the ground glass focus of the coronaries.
The invention is realized by the following technical scheme:
a new method for resolving a glass focus of a coronal pneumonia by grinding, comprising the following steps:
s1, glass grinding shadow sketching based on image histology:
s11, restoring a CT picture by using a DICOM file to obtain a real CT value, and selecting a CT value of a lung field target area;
s12, generating a lung profile mask;
s13, repairing the generated lung profile mask;
s14, performing logical AND operation on the CT value of the target area of S11 and the mask corresponding to S12 to obtain a double-lung field picture;
s15, dividing and grinding glass shadows;
s16, removing false positive;
s2, predicting new coronatine pneumonia disease probability based on deep learning:
s21, preprocessing the ground glass shadow obtained in the step S1, and improving the convergence speed and the prediction speed of the convolutional neural network;
s22, building a neural network based on the WRN and the mixed domain attention module;
s23, stacking the ground glass photo pictures after the pretreatment of S21 as input, and putting the stack of ground glass photo pictures into a neural network of S22 to obtain the probability of suffering from new coronaries pneumonia.
Preferably, the step S11 is to restore the CT picture by using a DICOM file to obtain a real CT value, and the specific process is as follows:
step one: reading pixel matrix values in the DICOM file; setting the CT value equal to-2000 as 0, and removing the out-of-limit CT value;
step two: restoring a real CT value according to the two attributes of the scaling intercept and the scaling slope in the DICOM file;
step three: CT values remaining in the interval [ -1000,400] with CT values below-1000 set at-1000 and CT values above 400 set at 400;
step four: and finally, carrying out normalization processing on the picture, and storing the picture in a png format.
Preferably, the specific process of generating the lung profile mask in S12 is as follows:
step one: dividing the CT value matrix by using one value in the interval [ -400, -320] as a threshold value to generate a binary matrix, setting the pixel value larger than the threshold value as 2, and setting the pixel value smaller than the threshold value as 1;
step two: carrying out three-dimensional connected domain marking on the binary matrix to generate a label matrix, and respectively taking the sampling points at the left upper corner and the right lower corner of the CT cube matrix as background labels;
step three: setting the value of the label equal to the background label to 2 in the binary matrix;
step four: then filling the pixel value in the maximum connected domain into each pixel value-1 in the binary matrix;
step five: inverting the binary matrix, and reserving the maximum connected domain, wherein the region with the pixel value of 1 is a lung region;
step six: multiplying 255 by the binary matrix, and storing the binary matrix layer by layer as png format picture output.
Preferably, the repairing of the generated lung profile mask in S13 is performed by a rolling ball method, which specifically includes the following steps:
step one: selecting a contour point, wherein N pixel values extending outwards from the lung in a section [15,60] in the normal direction of the current point are used as the positions of the sphere center of the rolling sphere, and N pixel values are used as tangent spheres with the radius as the current point; preferably, 30 pixel values are extended outwards from the lung and serve as the positions of the sphere center of the rolling sphere, and 30 pixel values are tangential spheres with the radius serving as the current point;
step two: if more than one intersection point exists between the tangent ball and the subsequent lung contour point, selecting a point which is closest to the current point in the intersection points, and deleting the contour point before the current point and the closest point; otherwise, returning to process the next contour point.
Preferably, S14 extracts the two lung fields, performs a logical and operation on the picture processed in the first step and the mask corresponding to the second step, and saves the result in png format.
Preferably, the specific process of the S15 division glass grinding shadow is as follows:
step one: the double-lung field picture generated in the step S14 is subjected to median blurring, and the kernel size is within the interval [3, 20] so as to remove noise scattered points with too high and too low calcification degree in the double-lung field;
step two: further using Gaussian blur to the result of the step 1, taking a square with a side length of K as a core, wherein the size of K is in a section [3, 10] so as to ensure that the variance of pixel values in the same-tissue region is as small as possible and the change is as gentle as possible;
step three: performing double-threshold segmentation on the result of the step 2, so that the pixel value in the interval [49, 116] is set to 255, and the rest pixel values are set to 0;
step four: and (3) performing hole filling treatment on the result in the step (3) to obtain a mask for grinding the glass shadow, and storing the mask in a png format.
Preferably, the specific process of removing false positives in S16 is as follows:
step one: a convolutional neural network with input of 12 times 12 and output of two classifications of whether glass shadow is ground or not is used for learning the picture segments of the glass shadow and the blood vessel;
step two: putting a square area with the side length of 12 into the network of the first step and carrying out 10-crop prediction on the glass shadow grinding area of the original image by taking the area center as the center, and judging the original glass shadow grinding candidate area as a real glass shadow grinding area if the maximum probability exceeds 50%;
step three: and (3) removing the candidate region which is not the ground glass shadow in the step (2) in the original image, and carrying out edging on the ground glass shadow region by using an opencv library, and storing in a png format.
Preferably, the step S21 of glass grinding is performed to improve the convergence rate and the prediction rate of the convolutional neural network, and the specific process is as follows:
step one: cutting the picture with a minimum rectangular tangent frame in the double-lung field picture containing the ground glass shadow, and unifying the sizes of the cut pictures into length 416 and width 320;
step two: the cut-out picture is filled with 48 except for the areas of the double lung field.
Preferably, S22, constructing a neural network based on the WRN and the mixed domain attention module; the network backbone network is based on a pre-activated ResNet-34 structure, and the amplification ratio is 2; the branching part is based on a residual attention network. The input is the picture after the first step pretreatment during training, and the confidence degree of the new coronaries is output.
Preferably, the specific process of predicting the probability of S23 being diseased is as follows:
step one: taking the stack of the pictures preprocessed in the S21 as input, and putting the stack of the pictures into a network trained in the S22 for prediction;
step two: sequencing the prediction results and storing the prediction results in a list;
step three: if there is no value in the list, the probability of new crown disease is 0; if the number of the values in the list is less than 7, the average number of the list is recorded as the probability of the new crown disease; if the number of values in the list is 7, the highest score is removed, the lowest score is removed, and the average number of the rest values is recorded as the probability of new crown illness.
A novel crown pneumonia glass focus grinding contrast analysis system comprises a preprocessing module of a DICOM file, a generation module of a lung contour mask, a repair module of the lung contour mask, an extraction module of double lung fields, a glass focus grinding segmentation module, a false positive removal module, a data preprocessing module, a neural network based on a WRN and a mixed domain attention module and a prediction module of the illness probability;
the preprocessing module of the DICOM file is used for restoring the CT picture to obtain a real CT value, and selecting the CT value of a lung field target area;
the generation module of the lung contour mask is used for generating the lung contour mask;
the repair module of the lung outline mask is used for repairing the generated lung outline mask;
the extraction module of the double lung fields is used for performing logical AND operation on the CT value of the target area and the corresponding mask to obtain a double lung field picture;
the glass grinding focus segmentation module is used for segmenting the glass grinding shadow;
the false positive removing module is used for removing false positive;
the data preprocessing module is used for preprocessing the obtained ground glass shadow and improving the convergence speed and the prediction speed of the convolutional neural network;
the neural network based on the WRN and the mixed domain attention module is used for training the convolutional neural network based on the WRN and the mixed domain attention module;
the prediction module of the disease probability is used for calculating the probability of suffering from new coronaries.
A storage medium having a program stored therein, the program executing the method for analyzing a new coronal pneumonitis glass lesion.
Compared with the prior art, the invention has the following technical effects:
compared with DenseNet, the neural network structure based on WRN and the mixed domain attention module in the novel crown pneumonia ground glass focus radiography analysis method provided by the invention has the advantages that ResNet occupies less memory, so that ResNet is friendly to the condition of larger input data, the size of a single photo of the input data of the network is 320 times 416, the situation of larger data is considered, memory overflow during training can be avoided by using a ResNet-based model, and meanwhile, training period can be shortened by using ResNet. WRN can achieve higher classification accuracy than a thin, high-quality network, and also has a faster training speed. In the network structure, the backbone network uses a Wide ResNet34 model with an amplification factor K of 2, so that the contradiction between training effect and memory expense can be balanced. Because the total image of the lung field in the input is less than 50% and the total image of the diseased ground glass focus is less than 10%, the branched network of the invention uses the attention module of the mixed domain, thereby improving the training speed and the prediction accuracy.
Because the new crown mill glass shadow focus is distributed along the peripheral band, the lung contour is lost due to the fact that the lower pleura contour is easy to be stained by using a traditional threshold segmentation algorithm, and aiming at the situation, the method is used for repairing the lower pleura contour instead of the whole lung contour by using a rolling ball method, and is more beneficial to improving the accuracy of prediction.
The invention uses the median blur to remove the noise point with high calcification degree in the glass grinding shadow, uses Gaussian blur removal to make the pixel variance in the region as small as possible, and uses the dual-threshold segmentation to sketch the glass grinding shadow. The method can rapidly, practically and without omission delineate the ground glass shadow.
The traditional method utilizes texture features and morphological features of the ground glass shadow, has large calculated amount, is complex and has higher false positive. The invention utilizes the small convolutional neural network, inputs a small square frame with the side length of 12 by taking the center of the ground glass shadow candidate area as the center, and has the advantages of short training period, high accuracy and short prediction time.
The traditional neural network directly places the whole picture into training, and useless features are too huge, so that the model can be slowly converged, and the training period is long. The invention extracts the minimum rectangular tangent frame of the lung field, uniformly inputs the minimum rectangular tangent frame into 320 times 416, fills the non-lung field area with 48, and can furthest reduce the size of the picture and reduce the variance among pixels of the picture on the premise of ensuring the division of the ground glass shadow.
After obtaining the new crown disease probability list, the invention uses 7 as a threshold value, selects the highest 7 probabilities, removes the highest score and the lowest score, and the remaining average is used as the final disease probability of the patient. However, the traditional method only averages all the illness probabilities and outputs the average illness probability, and the illness probability of a new crown patient with a single-shot ground glass shadow is reduced, so that missed judgment is caused.
Drawings
FIG. 1 is a flow chart of a method of an embodiment of the present invention;
FIG. 2 is a flowchart showing the definition of S1 glass grinding shadow based on image histology in the embodiment of the invention;
FIG. 3 is a specific flowchart of S2 deep learning-based prediction of the probability of onset of new coronary pneumonia in an embodiment of the invention;
FIG. 4 is a flow chart of a neural network architecture based on a WRN and mixed domain attention module in an embodiment of the present invention;
FIG. 5 is a flow chart of an identity_Block network structure in an embodiment of the present invention;
FIG. 6 is a flow chart of an Attention_Block_v1 network architecture in an embodiment of the present invention;
FIG. 7 is a flow chart of an Attention_Block_v2 network architecture in an embodiment of the present invention;
FIG. 8 is a flow chart of an Attention_Block_v3 network architecture in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail with reference to specific examples and comparative examples. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, based on the examples herein, which are within the scope of the invention as defined by the claims, will be within the scope of the invention as defined by the claims.
Examples
The invention is realized by the following technical scheme:
a new method for analyzing the contrast of the ground glass focus of the coronal pneumonia is shown in figure 1, S1, a ground glass shadow sketch based on image group science; s2, predicting the new coronatine pneumonia disease probability based on deep learning.
As shown in fig. 2, the specific procedure of S1 is as follows:
s11, restoring a CT picture by using a DICOM file to obtain a real CT value, and selecting a CT value of a lung field target area;
s12, generating a lung profile mask;
s13, repairing the generated lung profile mask;
s14, performing logical AND operation on the CT value of the target area of S11 and the mask corresponding to S12 to obtain a double-lung field picture;
s15, dividing and grinding glass shadows;
s16, removing false positive.
As shown in fig. 3, the specific procedure of S3 is as follows:
s21, preprocessing the ground glass shadow obtained in the step S1, and improving the convergence speed and the prediction speed of the convolutional neural network;
s22, building a neural network based on the WRN and the mixed domain attention module;
s23, stacking the ground glass photo pictures after the pretreatment of S21 as input, and putting the stack of ground glass photo pictures into a neural network of S22 to obtain the probability of suffering from new coronaries pneumonia.
Preferably, the step S11 is to restore the CT picture by using a DICOM file to obtain a real CT value, and the specific process is as follows:
step one: reading pixel matrix values in the DICOM file; setting the CT value equal to-2000 as 0, and removing the out-of-limit CT value;
step two: restoring a real CT value according to the two attributes of the scaling intercept and the scaling slope in the DICOM file;
step three: CT values remaining in the interval [ -1000,400] with CT values below-1000 set at-1000 and CT values above 400 set at 400;
step four: and finally, carrying out normalization processing on the picture, and storing the picture in a png format.
Preferably, the specific process of generating the lung profile mask in S12 is as follows:
step one: dividing the CT value matrix by using one value in the interval [ -400, -320] as a threshold value to generate a binary matrix, setting the pixel value larger than the threshold value as 2, and setting the pixel value smaller than the threshold value as 1;
step two: carrying out three-dimensional connected domain marking on the binary matrix to generate a label matrix, and respectively taking the sampling points at the left upper corner and the right lower corner of the CT cube matrix as background labels;
step three: setting the value of the label equal to the background label to 2 in the binary matrix;
step four: then filling the pixel value in the maximum connected domain into each pixel value-1 in the binary matrix;
step five: inverting the binary matrix, and reserving the maximum connected domain, wherein the region with the pixel value of 1 is a lung region;
step six: multiplying 255 by the binary matrix, and storing the binary matrix layer by layer as png format picture output.
Preferably, the repairing of the generated lung profile mask in S13 is performed by a rolling ball method, which specifically includes the following steps:
step one: selecting a contour point, and extending 30 pixel values to the lung in the normal direction of the current point to serve as the sphere center position of the rolling sphere, wherein the 30 pixel values serve as tangent spheres with the radius serving as the current point;
step two: if more than one intersection point exists between the tangent ball and the subsequent lung contour point, selecting a point which is closest to the current point in the intersection points, and deleting the contour point before the current point and the closest point; otherwise, returning to process the next contour point.
Preferably, S14 extracts the two lung fields, performs a logical and operation on the picture processed in the first step and the mask corresponding to the second step, and saves the result in png format.
Preferably, the specific process of the S15 division glass grinding shadow is as follows:
step one: the double-lung field picture generated in the step S14 is subjected to median blurring, and the kernel size is within the interval [3, 20] so as to remove noise scattered points with too high and too low calcification degree in the double-lung field;
step two: further using Gaussian blur to the result of the step 1, taking a square with a side length of K as a core, wherein the size of K is in a section [3, 10] so as to ensure that the variance of pixel values in the same-tissue region is as small as possible and the change is as gentle as possible;
step three: performing double-threshold segmentation on the result of the step 2, so that the pixel value in the interval [49, 116] is set to 255, and the rest pixel values are set to 0;
step 4: and (3) performing hole filling treatment on the result in the step (3) to obtain a mask for grinding the glass shadow, and storing the mask in a png format.
Preferably, the specific process of removing false positives in S16 is as follows:
step one: a convolutional neural network with input of 12 times 12 and output of two classifications of whether glass shadow is ground or not is used for learning the picture segments of the glass shadow and the blood vessel;
step two: the glass shadow grinding area of the original image is centered on the area center, as shown in table 1, a square area with the side length of 12 is put into the network of the first step and 10-crop prediction is carried out, and if the maximum probability exceeds 50%, the original glass shadow grinding candidate area is judged to be a real glass shadow grinding area;
step three: and (3) removing the candidate region which is not the ground glass shadow in the step (2) in the original image, and carrying out edging on the ground glass shadow region by using an opencv library, and storing in a png format.
Table 1:
preferably, the step S21 of glass grinding is performed to improve the convergence rate and the prediction rate of the convolutional neural network, and the specific process is as follows:
step one: cutting the picture with a minimum rectangular tangent frame in the double-lung field picture containing the ground glass shadow, and unifying the sizes of the cut pictures into length 416 and width 320;
step two: the cut-out picture is filled with 48 except for the areas of the double lung field.
Preferably, S22, constructing a neural network based on the WRN and the mixed domain attention module; the network structure is shown in fig. 4, and the identity_ Block, attention _block_v1, the identity_block_v2 and the identity_block_v3 are shown in fig. 5,6, 7 and 8. The network backbone network is based on a pre-activated ResNet-34 structure, and the amplification ratio is 2; the branching part is based on a residual attention network. The input is the picture after the first step pretreatment during training, and the confidence degree of the new coronaries is output.
Preferably, the specific process of predicting the probability of S23 being diseased is as follows:
step one: taking the stack of the pictures preprocessed in the S21 as input, and putting the stack of the pictures into a network trained in the S22 for prediction;
step two: sequencing the prediction results and storing the prediction results in a list;
step three: if there is no value in the list, the probability of new crown disease is 0; if the number of the values in the list is less than 7, the average number of the list is recorded as the probability of the new crown disease; if the number of values in the list is 7, the highest score is removed, the lowest score is removed, and the average number of the rest values is recorded as the probability of new crown illness.
Finally, it should be noted that the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the scope of the present invention, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (8)

1. The new method for analyzing the contrast of the ground glass focus of the coronaries pneumonia is characterized by comprising the following steps: s1, glass grinding shadow sketching based on image histology:
s11, restoring a CT picture by using a DICOM file to obtain a real CT value, and selecting a CT value of a lung field target area;
s12, generating a lung profile mask;
s13, repairing the generated lung profile mask;
s14, performing logical AND operation on the CT value of the target area of S11 and the mask corresponding to S12 to obtain a double-lung field picture;
s15, dividing and grinding glass shadows;
s16, removing false positive;
s2, predicting new coronatine pneumonia disease probability based on deep learning:
s21, preprocessing the ground glass shadow obtained in the step S1, and improving the convergence speed and the prediction speed of the convolutional neural network;
s22, building a neural network based on the WRN and the mixed domain attention module;
s23, stacking the ground glass photo pictures after the pretreatment of S21 as input, and putting the stack into a neural network of S22 to obtain the probability of suffering from new coronaries pneumonia;
the specific process of the S15 division grinding glass shadow is as follows:
step one: the double-lung field picture generated in the step S14 is subjected to median blurring, and the kernel size is within the interval [3, 20] so as to remove noise scattered points with too high and too low calcification degree in the double-lung field;
step two: further using Gaussian blur to the result of the step 1, taking a square with a side length of K as a core, wherein the size of K is in a section [3, 10] so as to ensure that the variance of pixel values in the same-tissue region is as small as possible and the change is as gentle as possible;
step three: performing double-threshold segmentation on the result of the step 2, so that the pixel value in the interval [49, 116] is set to 255, and the rest pixel values are set to 0;
step four: and (3) performing hole filling treatment on the result in the step (3) to obtain a mask for grinding the glass shadow, and storing the mask in a png format.
2. The method for resolving a new coronal pneumonia by grinding glass focus contrast according to claim 1, wherein the step S11 is to restore a CT picture by a DICOM file to obtain a real CT value, and the specific process is as follows:
step one: reading pixel matrix values in the DICOM file; setting the CT value equal to-2000 as 0, and removing the out-of-limit CT value;
step two: restoring a real CT value according to the two attributes of the scaling intercept and the scaling slope in the DICOM file;
step three: CT values remaining in the interval [ -1000,400] with CT values below-1000 set at-1000 and CT values above 400 set at 400;
step four: and finally, carrying out normalization processing on the picture, and storing the picture in a png format.
3. The method for resolving a new coronal pneumonia abrasive glass lesion contrast according to claim 1, wherein the specific process of generating a lung profile mask in S12 is as follows:
step one: dividing the CT value matrix by using one value in the interval [ -400, -320] as a threshold value to generate a binary matrix, setting the pixel value larger than the threshold value as 2, and setting the pixel value smaller than the threshold value as 1;
step two: carrying out three-dimensional connected domain marking on the binary matrix to generate a label matrix, and respectively taking the sampling points at the left upper corner and the right lower corner of the CT cube matrix as background labels;
step three: setting the value of the label equal to the background label to 2 in the binary matrix;
step four: then filling the pixel value in the maximum connected domain into each pixel value-1 in the binary matrix;
step five: inverting the binary matrix, and reserving the maximum connected domain, wherein the region with the pixel value of 1 is a lung region;
step six: multiplying 255 by the binary matrix, and storing the binary matrix layer by layer as png format picture output.
4. The method for resolving a new coronal pneumonia ground glass focus contrast according to claim 1, wherein the repairing of the generated lung contour mask in S13 is performed by a rolling ball method, which comprises the following specific steps:
step one: selecting a contour point, wherein in the normal direction of the current point, any one pixel value N extending outwards from the lung in a section [15,60] is used as a ball center position, and N pixel values are used as tangent balls with the radius as the current point;
step two: if more than one intersection point exists between the tangent ball and the subsequent lung contour point, selecting a point which is closest to the current point in the intersection points, and deleting the contour point before the current point and the closest point; otherwise, returning to process the next contour point.
5. The method for resolving a new coronal pneumonia abrasive glass lesion according to claim 1, wherein the specific process of removing false positives by S16 is as follows:
step one: a convolutional neural network with input of 12 times 12 and output of two classifications of whether glass shadow is ground or not is used for learning the picture segments of the glass shadow and the blood vessel;
step two: putting a square area with the side length of 12 into the network of the first step and carrying out 10-crop prediction on the glass shadow grinding area of the original image by taking the area center as the center, and judging the original glass shadow grinding candidate area as a real glass shadow grinding area if the maximum probability exceeds 50%;
step three: and (3) removing the candidate region which is not the ground glass shadow in the step (2) in the original image, and carrying out edging on the ground glass shadow region by using an opencv library, and storing in a png format.
6. The method for resolving a new coronal pneumonia mill glass focus contrast according to claim 1, wherein the specific process of preprocessing the S21 mill glass shadow is as follows:
step one: cutting the picture with a minimum rectangular tangent frame in the double-lung field picture containing the ground glass shadow, and unifying the sizes of the cut pictures into length 416 and width 320;
step two: the cut-out picture is filled with 48 except for the areas of the double lung field.
7. A new coronal pneumonia grinds glass focus radiography analytic system which is characterized in that: the device comprises a preprocessing module of a DICOM file, a generation module of a lung outline mask, a repair module of the lung outline mask, a double-lung-field extraction module, a ground glass focus segmentation module, a false positive removal module, a data preprocessing module, a neural network based on a WRN and a mixed domain attention module and a prediction module of the illness probability;
the preprocessing module of the DICOM file is used for restoring the CT picture to obtain a real CT value, and selecting the CT value of a lung field target area;
the generation module of the lung contour mask is used for generating the lung contour mask;
the repair module of the lung outline mask is used for repairing the generated lung outline mask;
the extraction module of the double lung fields is used for performing logical AND operation on the CT value of the target area and the corresponding mask to obtain a double lung field picture;
the glass grinding focus segmentation module is used for segmenting the glass grinding shadow;
the false positive removing module is used for removing false positive;
the data preprocessing module is used for preprocessing the obtained ground glass shadow and improving the convergence speed and the prediction speed of the convolutional neural network;
the neural network based on the WRN and the mixed domain attention module is used for training the convolutional neural network based on the WRN and the mixed domain attention module;
the prediction module of the disease probability is used for calculating the probability of suffering from new coronaries pneumonia;
the specific process of dividing and grinding the glass shadow is as follows:
step one: the double-lung field picture generated in the step S14 is subjected to median blurring, and the kernel size is within the interval [3, 20] so as to remove noise scattered points with too high and too low calcification degree in the double-lung field;
step two: further using Gaussian blur to the result of the step 1, taking a square with a side length of K as a core, wherein the size of K is in a section [3, 10] so as to ensure that the variance of pixel values in the same-tissue region is as small as possible and the change is as gentle as possible;
step three: performing double-threshold segmentation on the result of the step 2, so that the pixel value in the interval [49, 116] is set to 255, and the rest pixel values are set to 0;
step four: and (3) performing hole filling treatment on the result in the step (3) to obtain a mask for grinding the glass shadow, and storing the mask in a png format.
8. A storage medium having a program stored therein, wherein the program is executed to perform the method of analyzing a new coronal pneumonic glass lesion according to any one of claims 1 to 6.
CN202010433448.8A 2020-05-21 2020-05-21 Method, system and storage medium for resolving new coronal pneumonia ground glass focus contrast Active CN111612764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010433448.8A CN111612764B (en) 2020-05-21 2020-05-21 Method, system and storage medium for resolving new coronal pneumonia ground glass focus contrast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010433448.8A CN111612764B (en) 2020-05-21 2020-05-21 Method, system and storage medium for resolving new coronal pneumonia ground glass focus contrast

Publications (2)

Publication Number Publication Date
CN111612764A CN111612764A (en) 2020-09-01
CN111612764B true CN111612764B (en) 2023-09-22

Family

ID=72203560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010433448.8A Active CN111612764B (en) 2020-05-21 2020-05-21 Method, system and storage medium for resolving new coronal pneumonia ground glass focus contrast

Country Status (1)

Country Link
CN (1) CN111612764B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932540B (en) * 2020-10-14 2021-01-05 北京信诺卫康科技有限公司 CT image contrast characteristic learning method for clinical typing of new coronary pneumonia
CN112017184B (en) * 2020-10-30 2021-01-26 北京信诺卫康科技有限公司 New coronary pneumonia CT image processing method based on lung non-uniform pooling

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103824295A (en) * 2014-03-03 2014-05-28 天津医科大学 Segmentation method of adhesion vascular pulmonary nodules in lung CT (computed tomography) image
CN108537784A (en) * 2018-03-30 2018-09-14 四川元匠科技有限公司 A kind of CT figure pulmonary nodule detection methods based on deep learning
CN109102512A (en) * 2018-08-06 2018-12-28 西安电子科技大学 A kind of MRI brain tumor image partition method based on DBN neural network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9836849B2 (en) * 2015-01-28 2017-12-05 University Of Florida Research Foundation, Inc. Method for the autonomous image segmentation of flow systems
US10699412B2 (en) * 2017-03-23 2020-06-30 Petuum Inc. Structure correcting adversarial network for chest X-rays organ segmentation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103824295A (en) * 2014-03-03 2014-05-28 天津医科大学 Segmentation method of adhesion vascular pulmonary nodules in lung CT (computed tomography) image
CN108537784A (en) * 2018-03-30 2018-09-14 四川元匠科技有限公司 A kind of CT figure pulmonary nodule detection methods based on deep learning
CN109102512A (en) * 2018-08-06 2018-12-28 西安电子科技大学 A kind of MRI brain tumor image partition method based on DBN neural network

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Samuel G. Armato et al.Automated detection of lung nodules in CT scans: Preliminary results.Medical Physics.2001,第1554-1555页. *
Sanghyun Woo et al.CBAM: Convolutional Block Attention Module.ECCV 2018.2018,第1、9-10页. *
李彬 ; 欧陕兴 ; 田联房 ; 齐燕 ; 刘思伟 ; 张婧 ; .肺结节计算机辅助检测与定位系统.计算机应用研究.2010,(06),第2184-2185页. *
艾淑芳 ; 张国华 ; 吕高杰 ; .一种基于局部熵的海背景红外目标检测算法.电光与控制.2008,(07),第75-77页. *
陈卉 ; 徐岩 ; 马斌荣 ; .针对肺结节检测的肺实质CT图像分割.中国医学物理学杂志.2008,25(06),第883-885页. *

Also Published As

Publication number Publication date
CN111612764A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN110543822A (en) finger vein identification method based on convolutional neural network and supervised discrete hash algorithm
CN110032925B (en) Gesture image segmentation and recognition method based on improved capsule network and algorithm
CN111612764B (en) Method, system and storage medium for resolving new coronal pneumonia ground glass focus contrast
CN110599500A (en) Tumor region segmentation method and system of liver CT image based on cascaded full convolution network
CN114219943A (en) CT image organ-at-risk segmentation system based on deep learning
Zhou et al. Embedding topological features into convolutional neural network salient object detection
CN113554665A (en) Blood vessel segmentation method and device
CN111369623B (en) Lung CT image identification method based on deep learning 3D target detection
CN111915626B (en) Automatic segmentation method, device and storage medium for heart ultrasonic image ventricular region
CN114092450A (en) Real-time image segmentation method, system and device based on gastroscopy video
CN109409227A (en) A kind of finger vena plot quality appraisal procedure and its device based on multichannel CNN
CN114998303A (en) Small intestine interstitial tumor detection method with strong feature extraction capability
CN114897782B (en) Gastric cancer pathological section image segmentation prediction method based on generation type countermeasure network
CN114004813A (en) Identification method and device applied to clinical target area of cervical cancer radiotherapy
CN113344922A (en) Method for automatically segmenting cerebral microhemorrhage points
CN113269764A (en) Automatic segmentation method and system for intracranial aneurysm, sample processing method and model training method
CN116883341A (en) Liver tumor CT image automatic segmentation method based on deep learning
CN110473212B (en) Method and device for segmenting electron microscope diatom image by fusing significance and super-pixels
CN111881803A (en) Livestock face recognition method based on improved YOLOv3
Cheng et al. Improved faster RCNN for white blood cells detection in blood smear image
CN111860288B (en) Face recognition method, device and system and readable storage medium
Wang et al. A multi-stage data augmentation approach for imbalanced samples in image recognition
CN110223319B (en) Dynamic target real-time tracking method and system based on improved geometric particle filtering
CN113222989A (en) Image grading method and device, storage medium and electronic equipment
WO2021056531A1 (en) Face gender recognition method, face gender classifier training method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221221

Address after: Room 804, No. 4, Ruikang Road, Xingang Middle Road, Haizhu District, Guangzhou, Guangdong 510000 (office only)

Applicant after: GUANGZHOU PUSHI MEDICAL TECHNOLOGY Co.,Ltd.

Address before: 528000 room 4, 501, building 2, block 3, 28 Jihua 1st Road, Chancheng District, Foshan City, Guangdong Province

Applicant before: Foshan Universal Medical Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240425

Address after: D-904, Sun Yat sen University Teacher Apartment, No. 71 Yile Road, Haizhu District, Guangzhou City, Guangdong Province, 510000

Patentee after: Li Weizhong

Country or region after: China

Address before: Room 804, No. 4, Ruikang Road, Xingang Middle Road, Haizhu District, Guangzhou, Guangdong 510000 (office only)

Patentee before: GUANGZHOU PUSHI MEDICAL TECHNOLOGY Co.,Ltd.

Country or region before: China