Coronary angiography calcification identification method and system based on deep learning, and storage medium
Through the deep learning method, combined with U-net and LSTM network, the focal loss function is used to identify and score calcified lesions on coronary angiography images, which solves the accuracy and subjective bias problems of coronary artery calcium detection in the existing technology and improves diagnosis. reliability and accuracy.
Patent Information
- Application Number
- CN202410949293.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Due to cost and medical constraints, existing ECG-gated CT scans have problems with accuracy and subjective bias. Coronary angiography is not accurate enough in diagnosing coronary heart disease.
Using a method based on deep learning, the U-net neural network combined with the focus loss function is used to identify and score calcified lesions on coronary angiography images, and the calcification score is calculated through the LSTM network to improve the accuracy of detection.
It improves the accuracy of coronary artery calcium detection and the predictive performance of machine learning algorithms, reduces dependence on doctor experience, and enhances the reliability of diagnosis.
Smart Images

Figure CN118570189A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical cardiovascular image processing technology, and more specifically to a coronary angiography calcification recognition method, system and storage medium based on deep learning. Background Art
[0002] ECG-gated CT scans are generally considered the gold standard for quantifying coronary artery calcification, but their widespread use is challenged by their cost and socioeconomic and medical limitations. Non-ECG-gated, non-contrast chest CT scans are less expensive and more readily available and have been shown to identify coronary artery calcification with comparable efficiency to ECG-gated CT scans, resulting in more efficient coronary artery calcium scores. However, CT-derived calcium scores are often inaccurate in clinical practice and have some unavoidable subjective bias in determining treatment. Coronary angiography is the gold standard for diagnosing coronary heart disease. Patients with severe calcification scores based on CT examinations often require coronary angiography for final diagnosis and intervention. In clinical practice, the interpretation of coronary angiography images by different operators is highly variable and subjective. The determination of the degree of coronary artery calcification during coronary angiography is mainly based on the operator's experience, which is unreliable and inaccurate and cannot be matched with patient prognosis or traditional coronary artery calcium score scores. Summary of the invention
[0003] In view of this, the present invention provides a coronary angiography calcification identification method, system and storage medium based on deep learning to solve the problems existing in the background technology.
[0004] In order to achieve the above object, the present invention adopts the following technical solution: A method for identifying coronary angiography calcification based on deep learning, comprising the following steps: Comprehensive evaluation of different angiographic projection positions of the coronary arteries to be examined; Calcified lesions on original digital subtraction angiography images were independently marked according to CT angiography; Use U-net neural network combined with focal loss function to learn and identify marked calcified lesions; The output of the U-net neural network was input into the LSTM network to calculate the calcification score.
[0005] Optionally, the U-net neural network works as follows: perform four sets of convolution and downsampling operations on the input image to obtain image feature information, and enlarge the image through four sets of deconvolution and upsampling on the right; add skip connections between downsampling and upsampling operations using the same number of channels, and connect the output of the left convolution block to the input of the same depth deconvolution block on the right.
[0006] Optionally, the U-net neural network uses a Loss function to supervise the network during learning and training, providing feedback to the model on the quality of the training results.
[0007] Optionally, the U-Net neural network adopts a focal loss function, which is expressed as follows: ; in represents the predicted probability, represents the true value, Used to adjust the model's loss weight for positive samples. , They represent adjustment factors, which are used to adjust the penalty intensity of the model for positive and negative predictions respectively.
[0008] Optionally, all positions of the patient are input into an LSTM network to understand the dependency of calcification on position and perform image fusion and calcification score prediction.
[0009] The present invention also discloses a coronary angiography calcification recognition system based on deep learning, comprising the following steps: Comprehensive evaluation module: used to conduct comprehensive evaluation of different angiographic projection positions of the coronary arteries to be detected; Calcification lesion annotation module: used to independently mark calcification lesions on the original digital subtraction angiography images based on CT angiography; Deep learning module: used to learn and identify marked calcified lesions using a U-net neural network combined with a focal loss function; Calcification scoring module: used to input the output results of the U-net neural network into the LSTM network to calculate the calcification score.
[0010] Finally, the present invention discloses a computer storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of any one of the coronary angiography calcification identification methods based on deep learning are implemented.
[0011] It can be seen from the above technical solution that, compared with the prior art, the present invention provides a coronary angiography calcification identification method, system and storage medium based on deep learning, which improves the accuracy of coronary artery calcification detection and improves the predictive performance of machine learning algorithms. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0013] Figure 1 It is a schematic diagram of the overall structure of the present invention; Figure 2 is a structural diagram of the deep learning method of the present invention; Figure 3 This is the calcification segmentation result diagram of the present invention using the improved U-Net. DETAILED DESCRIPTION
[0014] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 creative work are within the scope of protection of the present invention.
[0015] The embodiment of the present invention discloses a method for identifying coronary angiography calcification based on deep learning, comprising the following steps: S1. Comprehensive evaluation of different angiographic projection positions of the coronary artery to be examined; S2, independent marking of calcified lesions on original digital subtraction angiography images based on CT angiography; S3, using U-net neural network combined with focal loss function to learn and identify marked calcified lesions; S4. Input the output of the U-net neural network into the LSTM network to calculate the calcification score.
[0016] like Figure 1 As shown, the method in this embodiment is divided into two parts, including calcification segmentation and identification and calculation of calcification integral.
[0017] Calcification segmentation and identification: In order to improve the accuracy of coronary artery calcification detection and improve the predictive performance of machine learning algorithms, at least 2 projection positions of each patient's main blood vessels were annotated for calcification, and the coronary arteries were comprehensively evaluated in at least 5 different angiographic projection positions based on the annotated projection positions. Among them, at least 3 projection positions are used to evaluate the left coronary artery vessels, including CRA (head position), CRA+LAO (head + left anterior oblique), CRA+RAO (head + right anterior oblique), CAU (foot position), CAU+LAO (foot + left anterior oblique) and CAU+RAO (foot + right anterior oblique); at least 2 projections are used to evaluate right coronary artery vascular lesions, including LAO, RAO, LAO+CRA and LAO+CAU. The projection standards used in the present invention are consistent with international clinical standards. Three cardiologists independently marked the calcified lesions on the original DSA images according to the CTA site. U-Net combined with the focal loss function method is used to learn and identify the calcified lesions marked on the coronary angiography.
[0018] Calculation of calcification score by LSTM: A single image cannot accurately reflect the patient's true calcification status. Generally speaking, patients need 3-5 images for analysis, each from a different location. How to save and process this information is the key to the accuracy of calcification score calculation. LSTM (Long Short Term Memory) is a special type of recurrent neural network (RNN) that can solve the problems of gradient vanishing and explosion in traditional RNN, thereby better processing long sequence data. By modeling the image sequence, LSTM can capture long-term dependencies in the image, thereby improving the accuracy of the model. By convolving all the patient's images in a certain order to extract features and inputting them into the LSTM network, the network understands the dependency between calcification and location, and performs image fusion and calcification score prediction.
[0019] In this embodiment, U-Net first performs four sets of convolution and downsampling operations on the input image to obtain image feature information, and then enlarges the image through four sets of deconvolution and upsampling on the right ( Figure 2). U-Net adds skip connections between downsampling and upsampling operations using the same number of channels, which can help the decoder better repair target details. The output of the convolution block on the left is connected to the input of the deconvolution block of the same depth on the right. The input feature map size of the deconvolution block remains unchanged, but the number of channels is doubled. During the network learning and training process, the Loss function acts as a supervisor, providing feedback to the model on the quality of the training results. The model continuously adjusts and optimizes the training strategy based on feedback to achieve the best training effect. The U-Net network adopts the pixel cross entropy loss function CE (Cross Entropy Loss, CE), which is expressed as follows: (1); in represents the predicted probability, represents the true value. When the segmentation is completely correct, It is 0. The larger the value, the worse the segmentation effect of the network. When the number of pixels in the current scene is much smaller than the number of background pixels, the background element component in the loss function dominates, causing the model to be heavily biased towards the background, resulting in poor model training and prediction performance. The segmentation of calcified areas in coronary angiography belongs to the second-class segmentation problem, which is only used for the segmentation of calcified areas and background areas. Therefore, the segmentation effect of the traditional U-Net network is poor.
[0020] The key to solving this problem is to make the model more focused on learning the foreground target. The focal loss function is designed on this basis, and its expression is as follows: (2); set up , substituting into formula (2) to obtain formula (3): (3); Similarly, (1) can be unified as: (4); Represents a value close to the true value, The larger it is and the closer it is to y, the more accurate the classification is. Used to adjust the model's loss weight for positive samples. , is a regulation factor, which is used to adjust the penalty of the model for positive and negative predictions. Comparing expressions (3) and (4), compared with cross entropy, focal loss has an additional regulation factor, namely For samples with accurate classification, is close to 1, and Close to 0; for samples with inaccurate classification, Close to 1 Close to 0.
[0021] Compared with cross entropy loss, focal loss value does not change in inaccurately classified samples, but decreases for accurately classified samples. It increases the weight of inaccurately classified samples in the loss function. Therefore, during the training process, the weight of the accurately classified background will continue to decrease, while the weight of the foreground object will continue to increase. Focal loss achieves better training results by balancing the learning weights of positive and negative samples during the training process.
[0022] Multiple images of the patient are sequenced in a fixed order and convolution is performed to extract features. They are then fed into an LSTM network, where localization nesting is performed and calculations are performed through a FC linear layer. The calcium score is ultimately generated as an output called CACag (Coronary artery calcium score based on angiography).
[0023] The data includes 4955 annotated coronary angiography images with at least 5 projections for each patient. The images were rotated, flipped, and denoised during the analysis to increase the sample size. A U-Net network with a focal loss function was used to balance the calcification segmentation of positive and negative samples, such as Figure 3 As shown. The calcification segmentation effect of adding the focal loss function to the U-Net network is significantly better than that of Deep lab v3+ and Pyramid Scene-Parsing Network (Psp Net), see Table 1. In order to verify the effectiveness of the focal loss, an ablation experiment was performed. Alpha is the balance parameter of the focal loss function, which is used for the model to pay attention to the adjustment of positive and negative sample learning. Before the introduction of focal loss, the U-Net network paid too much attention to the background, making it difficult to segment the calcification area. By introducing focal loss and adjusting the size of the balance parameter, the network significantly improved the segmentation effect of calcification. It was found that when Alpha was 0.9, the algorithm performed best, see Table 2.
[0024] Table 1 Comparison of coronary artery calcification segmentation results of the modified U-Net network with those of other models
[0025] Table 2 Parameter adjustment and performance comparison in improved U-Net network
[0026] Finally, 90 patients in the development group completed the labeling and obtained the predicted CACag, and all 371 patients in the validation group could calculate CACag. Due to artifact interference in angiography, four patients failed to reach CACag. The results of the linear regression model suggest that CACag has a linear relationship with the actual CAC value (Coef=0.249, p<0.05). This shows the rationality of the method proposed in the present invention.
[0027] This embodiment also discloses a coronary angiography calcification recognition system based on deep learning, comprising the following steps: Comprehensive evaluation module: used to conduct comprehensive evaluation of different angiographic projection positions of the coronary arteries to be detected; Calcification lesion annotation module: used to independently mark calcification lesions on the original digital subtraction angiography images based on CT angiography; Deep learning module: used to learn and identify marked calcified lesions using a U-net neural network combined with a focal loss function; Calcification scoring module: used to input the output results of the U-net neural network into the LSTM network to calculate the calcification score.
[0028] Finally, this embodiment discloses a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the coronary angiography calcification identification methods based on deep learning are implemented.
[0029] Taking the coronary artery of the heart as an example, the technical solution of the present invention is further described, and specifically includes the following steps: S1. Obtaining coronary angiography images; S2, using U-Net neural network and Focal loss function to learn calcification features; S3. Use LSTM neural network to predict patient calcification scores.
[0030] Furthermore, in S1, a cardiac coronary angiography image dataset is used. This dataset is composed of Dicom coronary digital subtraction angiography files of several (e.g., 100) patients with coronary heart disease. Each patient has multiple Dicom files in different positions, each Dicom file contains several frames of coronary angiography, and Dicom is exported into a single-frame JPG image. For the image before development, the doctor will mark the calcification area based on the difference between the images before and after development, and then use these data to train the network model, and then use the trained model to predict the patient's calcification score.
[0031] In S2, the network structure of the U-net neural network is as follows: The input layer is used to receive the preprocessed coronary angiography image, and the image size is 512x512 pixels.
[0032] The encoder (downsampling path) is used to extract image features using VGG16 or ResNet50 as the backbone network. The features are gradually reduced in dimension through successive convolution and pooling layers.
[0033] Bridge layer for feature fusion between encoder and decoder.
[0034] The decoder (upsampling path) is used to gradually restore the low-dimensional feature map to the resolution of the original image through step-by-step upsampling and convolution operations.
[0035] The output layer is used to finally output the calcification area segmentation result of the image through a 1x1 convolution layer, and the number of output channels is the number of categories (for example, background and calcification area).
[0036] The training process of the U-net neural network is as follows: Dataset selection: A cardiac coronary angiography image dataset with calcification markers is used, and the images are preprocessed, where the image preprocessing includes normalization, resizing, and data enhancement (such as rotation, scaling, and flipping).
[0037] Training details: Loading a pre-trained model: If you choose to use a pre-trained model, you need to load the corresponding pre-trained weights. This can be achieved by setting "pretrained=True" when calling the network initialization function.
[0038] Loss function: Use the cross entropy loss function dice and focal loss, which is suitable for calcification segmentation tasks.
[0039] Optimizer: Use Adam optimizer, which has the function of dynamically adjusting the learning rate.
[0040] Training epochs: Depending on the size and complexity of your dataset, conduct a sufficient number of training epochs to ensure convergence.
[0041] More specifically, in this embodiment, the cardiac coronary angiography image is input into the U-Net network. The U-Net network can select VGG16 or ResNet50 as its backbone network. In this embodiment, ResNet50 is selected as the backbone network because it performs well in image segmentation tasks. The entrance of the network is a series of convolutional layers, which are used to extract preliminary features of the image. Taking the first convolution as an example, the first convolution layer usually has 64 convolution kernels, the convolution kernel size is 7×7, and the step size is 2. This step is followed by a maximum pooling operation to reduce the image size from 512×512 to 256×256. Each layer of convolution operation is usually followed by an activation function, such as ReLU, to introduce nonlinearity.
[0042] After the convolutional layer, the network applies batch normalization to stabilize the learning process and reduce internal covariate shift. These features are then further activated by activation functions such as ReLU. The U-Net network fuses the feature maps of the deep and shallow layers through skip connections. Before the upsampling (or up-interpolation) operation, the feature maps from the deep layer are concatenated with the feature maps of the shallow layer. This step is called "skip connection". This fusion helps to restore the spatial resolution of the image and retain more image details. In the U-Net network, upsampling (or transposed convolution) is used to gradually increase the size of the feature map until the desired output size is reached. During the upsampling process, feature alignment is achieved by concatenating the feature map of the deep layer with the upsampled shallow feature map.
[0043] After feature alignment, the network further refines these fused features through a series of convolutional layers to facilitate more refined calcification area segmentation. Finally, a 1x1 convolutional layer maps the refined features to the calcification segmentation category to obtain the final segmentation result.
[0044] During the training process, since the calcification area is a small sample compared to the background, focal loss is used as the loss function, which can provide greater weights for the calcification parts that are difficult to classify, and reduce the weights for those samples that are easy to classify (such as irrelevant background). The segmentation results are optimized through post-processing steps, including applying a threshold to determine the final location of the calcification area. The choice of threshold can be based on clinical criteria or the best value can be determined experimentally.
[0045] In S3, the LSTM neural network includes an input layer, LSTM units, a fully connected layer, and an output layer.
[0046] The input layer is used to input data: the data input to the LSTM network is usually sequence data. In this embodiment, the calcification segmentation results of 3-5 body parts of a patient are input, which are extracted from the calcification areas segmented by U-Net.
[0047] LSTM unit, including configuration, hidden and cells.
[0048] Configuration: The LSTM network consists of multiple LSTM units, each of which contains three gating structures - forget gate, input gate and output gate. These gating mechanisms help the network learn when to forget old information and when to update new information.
[0049] Hidden state: Each LSTM unit maintains a hidden state that is passed along during the processing of the sequence and is able to capture the temporal dynamics of the sequence.
[0050] Cell state: Each cell also maintains a cell state, which allows the network to pass state information across time steps, solving the gradient vanishing problem of traditional recurrent neural networks (RNNs).
[0051] The fully connected layer is used to process through one or more fully connected layers to form the final output. These layers can be adjusted according to specific tasks, such as classification or regression.
[0052] Furthermore, the purpose of the fully connected layer is to convert the output of the LSTM unit into a specific prediction value, such as the prediction of the calcification score.
[0053] Output layer is responsible for generating the final prediction, such as the Agatston score of calcification. The output can be a continuous value, suitable for regression tasks.
[0054] It should be noted that the output layer uses an appropriate activation function to ensure that the output value conforms to the expected range or format. In the calcification score prediction, if it is a regression problem, an activation function may not be required or a linear activation function may be used.
[0055] In this embodiment, the mean square error (MSE) or other loss functions suitable for regression tasks are used to train the network, and the Adam optimizer is used to effectively update the network weights and minimize the loss function.
[0056] The output of the U-Net network is used as the input of the LSTM network to predict the calcification score. The LSTM network is able to process the serialized feature data provided by the U-Net network and predict the calcification score. The entire network is trained on a segmented coronary angiography image dataset. The network weights are updated through the back-propagation algorithm and an optimizer (such as Adam) to minimize the loss function.
[0057] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0058] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for identifying coronary angiography calcification based on deep learning, characterized in that: The following steps are involved: Comprehensive evaluation of different angiographic projection positions of the coronary arteries to be examined; Calcified lesions on original digital subtraction angiography images were independently marked according to CT angiography; Use U-net neural network combined with focal loss function to learn and identify marked calcified lesions; The output of the U-net neural network was input into the LSTM network to calculate the calcification score.
2. The method for identifying coronary angiography calcification based on deep learning according to claim 1, characterized in that: The working process of the U-net neural network is as follows: four sets of convolution and downsampling operations are performed on the input image to obtain image feature information, and the image is enlarged through four sets of deconvolution and upsampling on the right; jump connections are added between downsampling and upsampling operations using the same number of channels, and the output of the left convolution block is connected to the input of the same depth deconvolution block on the right.
3. The method for identifying coronary angiography calcification based on deep learning according to claim 1, characterized in that: During the process of network learning and training, the U-net neural network uses the Loss function to supervise and provide feedback to the model on the quality of the training results.
4. The method for identifying coronary angiography calcification based on deep learning according to claim 1, characterized in that: The U-Net neural network uses a focal loss function, which is expressed as follows: ; in represents the predicted probability, represents the true value, Used to adjust the model's loss weight for positive samples. , They represent adjustment factors, which are used to adjust the penalty intensity of the model for positive and negative predictions respectively.
5. The method for identifying coronary angiography calcification based on deep learning according to claim 1, characterized in that: By inputting all the patient's positions into the LSTM network, it is used to understand the dependency between calcification and position, and perform image fusion and calcification score prediction.
6. A coronary angiography calcification recognition system based on deep learning, characterized in that: The following steps are involved: Comprehensive evaluation module: used to conduct comprehensive evaluation of different angiographic projection positions of the coronary arteries to be detected; Calcification lesion annotation module: used to independently mark calcification lesions on the original digital subtraction angiography images based on CT angiography; Deep learning module: used to learn and identify marked calcified lesions using a U-net neural network combined with a focal loss function; Calcification scoring module: used to input the output results of the U-net neural network into the LSTM network to calculate the calcification score.
7. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the coronary angiography calcification identification method based on deep learning as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Coronary artery plaque data detection method and system, storage medium and terminal
CN111476757A
Coronary artery calcification plaque segmentation method and coronary artery calcification integral calculation method
CN113077441A
Coronary OCT image lesion plaque segmentation method based on improved U-Net network
CN113313714A
Coronary angiography image processing method and device based on deep learning
CN114241193A
Coronary artery calcification plaque segmentation method, segmentation model training method and related device
CN114972376A
Cited By
Blood vessel recognition model training method and device, blood vessel recognition method and device, electronic equipment, storage medium and computer program product
CN119919773A
Calcified bar lesion area identification system for coronary angiography
CN120013926A
