A method and device for identifying lesions based on chest images
By constructing an abnormal sign detection model and a lesion detection model, and combining the self-attention mechanism module to perform feature fusion on chest images, the problem of uniformity in diagnosing multiple respiratory diseases in the existing technology is solved, and the accuracy of lesion identification and diagnosis are improved. sex.
Patent Information
- Application Number
- CN202210820319.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-13
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-07-13
AI Technical Summary
Existing technologies lack uniformity in the diagnosis of respiratory diseases, and deep learning methods mainly focus on the differential diagnosis of a single disease, limiting their daily clinical applicability and versatility in a variety of respiratory conditions.
Construct an abnormal sign detection model and a lesion detection model. By fusion of abnormal sign features and lesion features in chest images, the self-attention mechanism module is used to achieve feature fusion, output the lesion category, and generate a heat map of abnormal sign locations and lesion category locations. Heatmap.
It improves the accuracy of lesion identification, realizes automatic identification of various respiratory diseases, and enhances the accuracy and interpretability of diagnosis.
Smart Images

Figure CN115019110B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of medical imaging, and in particular relates to a method and device for identifying lesions based on chest imaging. Background Art
[0002] Respiratory diseases constitute a significant burden worldwide, with chronic respiratory diseases affecting a large patient group of 7.4% of the world's population and accounting for 7.0% of total deaths. Millions of people die each year from lower respiratory tract infections. Lung cancer is the leading cause of cancer-related morbidity and mortality, accounting for 37.0% of new cases and 39.2% of deaths in China. Tuberculosis is the most common fatal infectious disease. According to the International Forum of Respiratory Societies, the above diseases are considered the most important lung diseases in the world from an epidemiological perspective.
[0003] Radiology plays an integral role in the screening, triage, and diagnosis of various respiratory diseases. Computed tomography (CT), which can generate three-dimensional images and provide more precise pathological information, has become the mainstream of medical imaging for the diagnosis of chest diseases as the cost of examinations has decreased. Although these techniques can capture digital textures that are invisible to the human eye, accurate diagnosis remains challenging due to the lack of interobserver agreement in radiological assessment. Deep learning methods have shown general applicability in the classification of age-related macular degeneration and diabetic macular edema, grading of diabetic retinopathy, identification of skin cancer subtypes, detection of breast cancer metastasis, and classification of head CT abnormalities. In some related studies, deep learning-based medical image interpretation systems can also be used for the early diagnosis of COVID-19 and the identification of malignant lung nodules, demonstrating their good applicability in the diagnosis of acute and non-acute respiratory diseases. However, such established artificial intelligence systems only focus on the differential diagnosis of one disease or the binary diagnosis of a single disease, limiting their clinical applicability and versatility in actual daily practice for various respiratory conditions. Summary of the invention
[0004] In order to solve the above problems existing in the prior art, the present invention provides a method and device for lesion identification based on chest images.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions.
[0006] In a first aspect, the present invention provides a method for identifying lesions based on chest images, comprising the following steps:
[0007] Constructing an abnormal sign detection model, and inputting the chest image into the trained model for feature extraction and abnormal sign category prediction;
[0008] Constructing a lesion detection model, and inputting the chest image into the trained model to extract lesion features;
[0009] The lesion category is output by fusing the extracted abnormal sign features and lesion features.
[0010] Furthermore, the abnormal signs include cords, atelectasis, bronchial lesions, calcification, cavitation, consolidation, emphysema, ground-glass opacity, honeycombing, lymphadenopathy, masses, nodules, patchy shadows, pleural effusion, pleural thickening, pneumoperitoneum, pneumothorax, bullae, reticular shadows and air bronchial shadows.
[0011] Furthermore, the lesion categories include bronchiectasis, chronic obstructive pneumonia, interstitial pneumonia, lung cancer, pleural effusion, pneumonia, pneumothorax and tuberculosis.
[0012] Furthermore, feature fusion is achieved by inputting the extracted abnormal sign features and lesion features into the self-attention mechanism module.
[0013] Furthermore, the abnormal sign detection model is trained separately using the data set with labeled abnormal signs; based on the trained abnormal sign detection model, the overall lesion recognition model is trained using the data set with labeled lesion categories.
[0014] Furthermore, the chest image is a chest CT image.
[0015] Furthermore, the method also includes generating a heat map of abnormal sign locations and a heat map of lesion category locations.
[0016] In a second aspect, the present invention provides a lesion identification device based on chest images, comprising:
[0017] The first modeling module is used to construct an abnormal sign detection model, and input the chest image into the trained model for feature extraction and abnormal sign category prediction;
[0018] The second modeling module is used to construct a lesion detection model and input the chest image into the trained model to extract lesion features;
[0019] The lesion recognition module is used to output the lesion category by fusing the extracted abnormal sign features and lesion features.
[0020] Furthermore, the abnormal signs include cords, atelectasis, bronchial lesions, calcification, cavitation, consolidation, emphysema, ground-glass opacity, honeycombing, lymphadenopathy, masses, nodules, patchy shadows, pleural effusion, pleural thickening, pneumoperitoneum, pneumothorax, bullae, reticular shadows and air bronchial shadows.
[0021] Furthermore, the lesion categories include bronchiectasis, chronic obstructive pneumonia, interstitial pneumonia, lung cancer, pleural effusion, pneumonia, pneumothorax and tuberculosis.
[0022] Furthermore, feature fusion is achieved by inputting the extracted abnormal sign features and lesion features into the self-attention mechanism module.
[0023] Furthermore, the abnormal sign detection model is trained separately using the data set with labeled abnormal signs; based on the trained abnormal sign detection model, the overall lesion recognition model is trained using the data set with labeled lesion categories.
[0024] Furthermore, the chest image is a chest CT image.
[0025] Furthermore, the device also includes a heat map generation module for generating a heat map of abnormal sign locations and a heat map of lesion category locations.
[0026] Compared with the prior art, the present invention has the following beneficial effects.
[0027] The present invention constructs an abnormal sign detection model, inputs a chest image into the trained model to extract features and predict abnormal sign categories, constructs a lesion detection model, inputs a chest image into the trained model to extract lesion features, and outputs lesion categories by fusing the extracted abnormal sign features and lesion features, thereby achieving automatic recognition of lesion categories. The present invention outputs the final lesion category based on the fusion of abnormal sign features and lesion features, thereby improving the accuracy of lesion recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 The present invention is a flowchart of a method for identifying lesions based on chest images.
[0029] Figure 2 The figure is a schematic diagram of a network structure of an embodiment of the present invention.
[0030] Figure 3 Schematic diagram of the location heat map of abnormal signs and lesion categories.
[0031] Figure 4 The present invention is a block diagram of a lesion identification device based on chest images according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present invention clearer and more understandable, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0033] Figure 1 This is a flow chart of a method for identifying lesions based on chest images according to an embodiment of the present invention, comprising the following steps:
[0034] Step 101, constructing an abnormal sign detection model, inputting the chest image into the trained model for feature extraction and abnormal sign category prediction;
[0035] Step 102, constructing a lesion detection model, and inputting the chest image into the trained model to extract lesion features;
[0036] Step 103: Output the lesion category by fusing the extracted abnormal sign features and lesion features.
[0037] In this embodiment, step 101 is mainly used to establish an abnormal sign detection model. The abnormal sign detection model is used to output the category of abnormal signs in the chest image by performing feature extraction and other processing on the input chest image. The abnormal sign category can be understood as the content of the image description part when the radiologist writes the image report, that is, a summary of which abnormal signs exist in the image. Common abnormal signs include atelectasis, bronchial lesions, etc. The backbone network of the abnormal sign detection model can adopt a three-dimensional deep neural network structure, such as the common 3D-ResNet or Video Swin-transformer (video offset window transformer network). Since abnormal signs usually exist in multiple forms at the same time, the classification task is modeled as a multi-label classification task. After the model structure is determined, the model can be trained by constructing a training data set. The training data set consists of chest image data labeled with abnormal sign labels. There are usually two ways to label abnormal signs. The first is manual labeling, that is, a doctor with certain qualifications carefully reads the film and labels the abnormal sign category contained in the image. The manual annotation method has the highest annotation quality, but it consumes a lot of manpower and time costs. The second method is to use the NLP (Natural Language Processing) algorithm to automatically structure the existing imaging reports and automatically extract the abnormal sign categories described in the imaging reports. The accuracy of this solution is not as high as manual annotation, but a large amount of retrospective data annotation results can be collected in a short time, which is convenient for developing a network model with good results in a short time. In order to improve the accuracy of model training and reduce the amount of calculation, the training data is generally preprocessed. Now take the three-dimensional CT image as an example to illustrate the preprocessing process. The original size of the three-dimensional CT image is expressed as D*H*W, where D is the number of slices in the cross-sectional dimension of the data, and H and W are the length and width of the image, respectively. First, take a lung window for the chest CT to observe chest diseases under the optimal contrast; secondly, you can choose to take the black edge of the chest CT or exclude the crop operation outside the lungs; finally, the data should be normalized to a uniform size for subsequent classification model training using a 3D neural network. It is recommended to normalize the CT to a size of 64*256*256, which can preserve as much detail information as possible and reduce the consumption of computing resources. After the model training is completed, the model parameters are fixed. The chest image to be tested is input into the trained model, and the predicted probability of various abnormal signs is output. By comparing the predicted probability with the set threshold, the category of abnormal signs in the image can be obtained.
[0038] In the present embodiment, step 102 is mainly used to construct a lesion detection model. The lesion detection model is used to extract features from the input chest image. In general, only one branch of the lesion detection model is set (no abnormal sign detection model branch is set) to identify the lesion category, but because the abnormal sign information in the image is not used, the recognition accuracy is not ideal. For this reason, the present embodiment designs two branches of abnormal sign feature extraction and lesion feature extraction, and outputs the final lesion category by fusing the outputs of the two branches, thereby improving the recognition accuracy. In fact, experienced doctors do this when diagnosing diseases based on images-not only looking at the features of the lesion itself, but also referring to various abnormal signs in the image, and finally giving the final diagnosis result. The lesion detection model can also adopt a three-dimensional deep neural network structure, such as the common 3D-ResNet, Video Swin-transformer, etc. In order to enable the networks of the two branches to learn features of different characteristics, their backbone networks are generally designed to be heterogeneous, that is, using different network structures or network depths. For example, if the first branch uses 3D-ResNet, the second branch can use video swin-transformer, and vice versa; or the first branch uses 3D-ResNet18, and the second branch can use 3D-ResNet34. After the network structure of the model is determined, the model parameters must also be determined through model training, which will not be repeated here. The chest image to be detected is input into the trained lesion detection model to extract the lesion features.
[0039] In this embodiment, step 103 is mainly used to output the final lesion category. Figure 2 As shown, this embodiment fuses the abnormal sign features and lesion features output by the two branches, and then classifies based on the fused features to obtain the final lesion category. In the process of lesion category recognition, not only the features of the lesion itself in the image are considered, but also the features of various abnormal signs in the image are comprehensively considered, thereby improving the recognition accuracy of the lesion category.
[0040] As an optional embodiment, the abnormal signs include cords, atelectasis, bronchial lesions, calcifications, cavities, consolidation, emphysema, ground-glass opacities, honeycombing, lymphadenopathy, masses, nodules, patchy shadows, pleural effusion, pleural thickening, pneumoperitoneum, pneumothorax, bullae, reticular shadows and air bronchial shadows.
[0041] This embodiment provides several common abnormal signs in chest images. The abnormal signs given above basically include the most common abnormal signs. It is worth noting that this embodiment only provides a preferred implementation method and does not deny or exclude other feasible implementation methods, such as other abnormal signs different from those listed above.
[0042] As an optional embodiment, the lesion categories include bronchiectasis, chronic obstructive pneumonia, interstitial pneumonia, lung cancer, pleural effusion, pneumonia, pneumothorax and tuberculosis.
[0043] This embodiment provides several common lesion categories. Lesion categories are related to specific diagnostic tasks. Different diagnostic tasks correspond to different lesion categories. For example, if you want to develop a classification model for common chest diseases, the corresponding lesion categories are bronchiectasis, lung cancer, etc. listed above; and if you want to develop a pneumonia differential diagnosis system, the corresponding lesion categories include bacterial, fungal, tuberculous or viral infections.
[0044] As an optional embodiment, feature fusion is achieved by inputting the extracted abnormal sign features and lesion features into a self-attention mechanism module.
[0045] This embodiment provides a technical solution for feature fusion. This embodiment uses a self-attention mechanism module to achieve feature fusion. The attention mechanism is to learn from the attention mechanism of the human brain when the computer capacity is limited, and only pay attention to some key information inputs for processing to improve the efficiency of the neural network. The calculation of the attention mechanism can be divided into two steps: one is to calculate the attention distribution on all input information; the other is to calculate the weighted sum of the input information according to the attention distribution. The self-attention mechanism is a variant of the attention mechanism. It has only one input and performs attention calculation on each unit in the sequence and all units in the sequence, which reduces the dependence on external information and is better at capturing the internal correlation of data or features. The self-attention mechanism uses three learnable variables to linearly map the input to K (key), Q (query) and V (value), and then multiplies Q and K to obtain the attention weight of K to Q, and then uses the normalized weight and V to generate the context information of the input. Different from the traditional self-attention mechanism with only one input, this embodiment uses the feature of abnormal signs as Q, and the feature of lesion category as K and V. The dimensions of these three features are consistent, all of which are 1*C. After feature encoding through full connection, the similarity matrix of Q and K is calculated first. The specific calculation formula is: Then the calculated similarity is weightedly summed with the encoded V to obtain the fused features.
[0046] As an optional embodiment, the abnormal sign detection model is trained separately using a data set that annotates abnormal signs; based on the trained abnormal sign detection model, the overall lesion recognition model is trained using a data set that annotates lesion categories.
[0047] The present embodiment provides a technical solution for model training. The present embodiment first trains the abnormal sign detection model, and the training data is only marked with abnormal sign labels. After the model training is completed, the model parameters are determined; and after the model parameters are determined, they will not be updated in the subsequent application of the model for abnormal sign prediction and the training process of the overall model for lesion identification (including abnormal sign detection model, lesion detection model, feature fusion and lesion category classifier). If the training of the abnormal sign detection model is called the first stage, the training of the overall model for lesion identification can be called the second stage. In the second stage of model training, only the lesion category label is marked in the training data, and the abnormal sign label is no longer marked. At this time, the abnormal sign detection model adopts the trained model.
[0048] As an optional embodiment, the chest image is a chest CT image.
[0049] This embodiment limits the chest image. The chest image of this embodiment is a CT image. Computed tomography (CT) can generate three-dimensional images and provide more accurate pathological information. With the reduction of inspection costs, it has become the mainstream of medical imaging for chest disease diagnosis. Of course, the lesion identification method of this embodiment can also be used for other images such as chest nuclear magnetic resonance images.
[0050] As an optional embodiment, the method further includes generating a heat map of abnormal sign locations and a heat map of lesion category locations.
[0051] This embodiment provides a technical solution for displaying abnormal signs and lesion categories based on heat maps. In order to better assist doctors in disease diagnosis and improve the interpretability of model prediction probability, this embodiment, while providing prediction probability, also uses the CAM (class activation map) algorithm based on abnormal sign prediction results and lesion category prediction results to generate abnormal sign location heat maps and lesion category location heat maps, respectively. Figure 3 As shown. The abnormal sign heat map is used to display the suspicious sign location; the lesion category heat map is used to display the suspicious lesion location. For each heat map, there will be multiple specific heat maps. For example, for the lesion category heat map, assuming that there are 10 lesion categories, theoretically 10 specific heat maps can be generated, and each heat map corresponds to a category prediction. In order to have a better display effect, you can also only display the heat map of the category with a higher prediction probability. For example, among the 10 categories, there are 3 categories with a prediction probability greater than 0.6, you can choose to mainly display the heat maps of these 3 categories. Figure 3The predicted probability value of each prediction is given in the figure. Doctors can click on the category with a higher predicted probability to open the heat map of that category. Since the image data is 3D, its heat map is also 3D data. For a certain category of heat map, you can scroll layer by layer to observe the heat map effect of each slice.
[0052] Figure 4 The present invention is a schematic diagram of a lesion identification device based on chest images according to an embodiment of the present invention, wherein the device comprises:
[0053] The first modeling module 11 is used to construct an abnormal sign detection model, and input the chest image into the trained model for feature extraction and abnormal sign category prediction;
[0054] The second modeling module 12 is used to construct a lesion detection model and input the chest image into the trained model to extract lesion features;
[0055] The lesion identification module 13 is used to output the lesion category by fusing the extracted abnormal sign features and lesion features.
[0056] The device of this embodiment can be used to perform Figure 1 The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be described in detail here. The same is true for the following embodiments, which will not be described in detail.
[0057] As an optional embodiment, the abnormal signs include cords, atelectasis, bronchial lesions, calcifications, cavities, consolidation, emphysema, ground-glass opacities, honeycombing, lymphadenopathy, masses, nodules, patchy shadows, pleural effusion, pleural thickening, pneumoperitoneum, pneumothorax, bullae, reticular shadows and air bronchial shadows.
[0058] As an optional embodiment, the lesion categories include bronchiectasis, chronic obstructive pneumonia, interstitial pneumonia, lung cancer, pleural effusion, pneumonia, pneumothorax and tuberculosis.
[0059] As an optional embodiment, feature fusion is achieved by inputting the extracted abnormal sign features and lesion features into a self-attention mechanism module.
[0060] As an optional embodiment, the abnormal sign detection model is trained separately using a data set that annotates abnormal signs; based on the trained abnormal sign detection model, the overall lesion recognition model is trained using a data set that annotates lesion categories.
[0061] As an optional embodiment, the chest image is a chest CT image.
[0062] As an optional embodiment, the device further includes a heat map generation module for generating a heat map of abnormal sign locations and a heat map of lesion category locations.
[0063] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for identifying lesions based on chest images, characterized in that: The following steps are involved: Constructing an abnormal sign detection model, inputting the chest image into the trained model for feature extraction and abnormal sign category prediction; the abnormal signs include cords, atelectasis, bronchial lesions, calcification, cavitation, consolidation, emphysema, ground-glass density shadows, honeycombing, lymphadenopathy, masses, nodules, patchy shadows, pleural effusion, pleural thickening, pneumoperitoneum, pneumothorax, bullae, lattice shadows and air bronchial shadows; Constructing a lesion detection model, and inputting the chest image into the trained model to extract lesion features; By fusing the extracted abnormal sign features and lesion features, the lesion categories are output; the lesion categories include bronchiectasis, chronic obstructive pneumonia, interstitial pneumonia, lung cancer, pleural effusion, pneumonia, pneumothorax and tuberculosis.
2. The method for identifying lesions based on chest images according to claim 1, characterized in that: Feature fusion is achieved by inputting the extracted abnormal sign features and lesion features into the self-attention mechanism module.
3. The method for identifying lesions based on chest images according to claim 1, characterized in that: The abnormal sign detection model is trained separately using the data set that annotates abnormal signs; based on the trained abnormal sign detection model, the overall lesion recognition model is trained using the data set that annotates lesion categories.
4. The method for identifying lesions based on chest images according to claim 1, characterized in that: The chest image is a chest CT image.
5. The method for identifying lesions based on chest images according to claim 1, characterized in that: The method also includes generating a heat map of abnormal sign locations and a heat map of lesion category locations.
6. A lesion identification device based on chest images, characterized in that: include: The first modeling module is used to construct an abnormal sign detection model, and input the chest image into the trained model for feature extraction and abnormal sign category prediction; the abnormal signs include cords, atelectasis, bronchial lesions, calcification, cavitation, consolidation, emphysema, ground glass density shadows, honeycombing, lymphadenopathy, masses, nodules, patchy shadows, pleural effusion, pleural thickening, pneumoperitoneum, pneumothorax, bullae, lattice shadows and air bronchial shadows; The second modeling module is used to construct a lesion detection model and input the chest image into the trained model to extract lesion features; The lesion recognition module is used to output the lesion category by fusing the extracted abnormal sign features and lesion features; the lesion categories include bronchiectasis, chronic obstructive pneumonia, interstitial pneumonia, lung cancer, pleural effusion, pneumonia, pneumothorax and tuberculosis.
7. The chest image-based lesion identification device according to claim 6, characterized in that: Feature fusion is achieved by inputting the extracted abnormal sign features and lesion features into the self-attention mechanism module.
8. The chest image-based lesion identification device according to claim 6, characterized in that: The device also includes a heat map generation module, which is used to generate a heat map of abnormal sign locations and a heat map of lesion category locations.
