Abstract
ABSTRACT
Segmentation of acute pulmonary embolism in computed tomography pulmonary angiography using the deep learning method
Introduction
Pulmonary embolism is a type of thromboembolism seen in the main pulmonary artery and its branches. This study aimed to diagnose acute pulmonary embolism using the deep learning method in computed tomographic pulmonary angiography (CTPA) and perform the segmentation of pulmonary embolism data.
Materials and Methods
The CTPA images of patients diagnosed with pulmonary embolism who underwent scheduled imaging were retrospectively evaluated. After data collection, the areas that were diagnosed as embolisms in the axial section images were segmented. The dataset was divided into three parts: training, validation, and testing. The results were calculated by selecting 50% as the cut-off value for the intersection over the union.
Results
Images were obtained from 1.550 patients. The mean age of the patients was 64.23 ± 15.45 years. A total of 2.339 axial computed tomography images obtained from the 1.550 patients were used. The PyTorch U-Net was used to train 400 epochs, and the best model, epoch 178, was recorded. In the testing group, the number of true positives was determined as 471, the number of false positives as 35, and 27 cases were not detected. The sensitivity of CTPA segmentation was 0.95, the precision value was 0.93, and the F1 score value was 0.94. The area under the curve value obtained in the receiver operating characteristic analysis was calculated as 0.88.
Conclusion
In this study, the deep learning method was successfully employed for the segmentation of acute pulmonary embolism in CTPA, yielding positive outcomes.
Keywords: Artificial intelligence, computed tomography angiography, deep learning , pulmonary embolism, segmentation
Abstract
ÖZ
Derin öğrenme yöntemiyle akut pulmoner embolinin bilgisayarlı tomografik pulmoner anjiografide segmentasyonu
Giriş
Pulmoner emboli, ana pulmoner arterde ve dallarında izlenen tromboemboli çeşididir. Çalışmamızda akut pulmoner emboli tanısını bilgisayarlı tomografik pulmoner anjiyografide (BTPA) derin öğrenme metoduyla koyabilmek, pulmoner embolinin segmentasyonunu yapmak amaçlandı.
Materyal ve Metod
Randevulu çekim yapılan pulmoner emboli tanısı almış hastaların BTPA görüntüleri retrospektif olarak değerlendirildi. Mediasten penceresinde aksiyel kesit görüntüler alındı. Veri koleksiyonu yapıldıktan sonra aksiyel kesit görüntülerde emboli tanısı konulan alanlar segmente edildi. Veri seti eğitim-doğrulama-test olacak şekilde üç parçaya bölündü. Birleşim Üzerinde Kesişim istatistiğinin eşik değeri olarak %50 seçilerek sonuçlar hesaplandı.
Bulgular
Çalışmamıza toplamda 1550 hastadan elde edilen görüntüler dahil edildi. Hastaların yaş ortalamaları 64,23 ± 15,45 yıl idi. Çalışmaya dahil edilen 1550 hastadan elde edilen toplam 2339 adet aksiyel bilgisayarlı tomografi görüntüsü kullanıldı. Pytorch Unet ile 400 epoch eğitildi, en iyi model olan 178 epoch modeli kaydedildi. Test grubunda doğru bulunan, 471; yanlış bulunan, 35; bulunamayan, 27 olarak saptandı. Çalışmamızın sensitivitesi 0,95; precision değeri 0,93; F1 skor değeri 0,94 olarak bulundu. Çalışmaya ait receiver operating characteristics (ROC) analizinde elde edilen AUC değeri 0,88 olarak hesaplandı.
Sonuç
Sonuç olarak çalışmamızda derin öğrenme yöntemi kullanarak akut pulmoner embolinin bilgisayarlı tomografik pulmoner anjiyografide segmentasyonu yapılmış olup başarılı sonuçlar elde edilmiştir.
Introduction
Pulmonary embolism is a type of thromboembolism seen in the main pulmonary artery and its branches. It is important to make a rapid diagnosis of pulmonary embolism to reduce associated mortality and morbidity ( 1 ). Tests and methods such as D-dimer assay, ventilation-perfusion scintigraphy, lower extremity ultrasonography, and computed tomography pulmonary angiography (CTPA) are used in the diagnosis of pulmonary embolism ( 2-5 ). The CTPA is considered the first-line diagnostic technique in patients with suspected pulmonary embolism ( 6 ). While previously pulmonary angiography was accepted for the diagnosis of pulmonary embolism as the gold standard, computed tomography is accepted as the gold standard in the diagnosis of pulmonary embolism with the development of technology. The CTPA has a higher sensitivity and specificity compared to other examinations ( 7-9 ). However, the radiological interpretation of the CTPA examination is also important. In CTPA, the diagnosis of pulmonary embolism is made by detecting the appearance of filling defects in the arterial lumen and a related increase in diameter, partial filling defects causing the appearance of the polo mint sign and railway track appearance, and peripheral intraluminal filling defects causing acute angulation in the arterial wall ( 6,10 ). The diagnosis of pulmonary embolism involves the examination of the main branches, lobar, segmental, and subsegmental branches throughout the entire lung on CTPA images, which is a timeconsuming process ( 11 ). Therefore, new, and up-to date approaches are needed. Recently, deep learning in artificial intelligence technology has come to the fore in many fields of medicine. Deep learning has components such as lesion detection, classification, segmentation, and quantification, among which segmentation is an important framework used in medical image analysis in structures such as organs and lesions ( 12,13 ). However, only a limited number of studies have reported successful results in the diagnosis of acute pulmonary embolism using deep learning ( 14 ). With the requirement for contemporary approaches and substantiating data, the primary objective of this current study was to utilize the deep learning method for diagnosing acute pulmonary embolism and conducting the segmentation of pulmonary embolism data.
MATERIALS and METHODS
Patient Population
After obtaining approval from the ethics committee (15.02.2022, Decision Number: 15), patients presenting to the Eskişehir Osmangazi Medical Faculty Radiology Department between January 1, 2016, and January 1, 2021, were retrospectively screened. Patients aged over 18 years, who underwent scheduled CTPA and were diagnosed with pulmonary embolism, were included in the study.
Imaging Procedure
The CT scans were performed using 128-section (GE, Revolution EVO) and 64-section (Toshiba, Aquilion) devices with the bolus tracking method and a threshold of 100 Hounsfield Units (HU). Each patient was used to contrast a volume of 60 mL non-ionic with a 100 mL saline chaser at 4.5/5 mL/s. The section thickness of the scans varied between 0.5 mm and 0.625 mm. The images were obtained in the mediastinum window with a width of 300 HU and a height of 50 HU, and the scans were performed at a kV value of 100 and a mA value of 244. The remaining parameters were as follows: detector coverage, 40 mm; rotation time, 0.4 s; pitch, 1.375:1; and speed, 55.00 mm/rot. The sections taken in the mediastinum window were converted to the PNG file format.
Imaging Analysis
The images were assessed by a radiologist (NA) with seven years of experience and a radiology assistant (ÇC) with three years of experience, reaching a consensus in their evaluations. Complete arterial occlusion with an enlarged artery, the presence of centrally located partial filling defects, and an eccentrically located pulmonary artery exhibiting an acute angle with the vessel wall are indicative of acute pulmonary embolism. Complete arterial occlusion with an enlarged artery, the presence of centrally located partial filling defects, and an eccentrically located pulmonary artery exhibiting an acute angle with the vessel wall are indicative of acute pulmonary embolism. After acute pulmonary embolism was detected in the CTPA images of the patients, axial cross-sectional images were obtained in the mediastinal window. Only images of patients with pulmonary embolism were included in the study. Images with motion artifacts and poor contrast were excluded from the study. Following data collection, the areas that were diagnosed as embolisms in the axial section images were segmented.
The mask images of the labeled regions were generated within the computer science department of our faculty and saved using the same names. Subsequently, the dataset was divided into three distinct groups, namely training, validation, and testing, with proportions of 80%, 10%, and 10% respectively. The mixed-size images were resized to 512 x 512. By applying 50% zoom to the images, the regions to be segmented were enlarged as much as possible to fit the image. The clarity of the regions to be segmented was increased by applying contrastlimited adaptive histogram equalization.
Augmentation was performed on the training and validation groups (both horizontal and vertical), and the amount of data was quadrupled. Epoch training was undertaken using the traditional PyTorch U-Net architecture, which was extended to manage volumetric input. The learning rate of the model was 0.0001. The jump links used between the corresponding encoder and decoder layers allowed for the deep parts of the network to be trained efficiently and facilitated the comparison of the same receiver features with different receiver domains ( 15 ).
The results were calculated by selecting 50% as the cut-off value of the intersection over the union statistic (Jaccard index), which measures the similarity between finite sample sets and is defined as the size of the intersection divided by the size of the union of the sample sets ( 16 ).
Statistical Analysis
Continuous data were displayed as mean ± standard deviation values, while categorical data were displayed as percentages (%). IBM SPSS Statistics v. 21.0 (IBM Corp. Released 2012. IBM SPSS Statistics for Windows, Version 21.0. Armonk, NY: IBM Corp.) was used to analyze the data. The sensitivity, precision, F1 score, area under the curve (AUC) values, and learning rate were calculated. The F1 score was calculated according to the following formula with true positive, false negative, and false positive values ( 17 ) F1 = 2 * True Positive / (2 * True Positive + False Positive + False Negative)
RESULTS
Images obtained from 1.550 patients were included in the study. The mean age of the patients was 64.23 ± 15.45 years. A total of 2.339 axial CTPA images obtained from 1.550 patients were used. A total of 5.992 labels were obtained, with 1.879 images and 4.929 labels being used in the training stage, 230 images and 530 labels in the validation stage, and 230 images and 533 labels in the testing stage. By applying augmentation (both horizontal and vertical) to the training and validation sets, the number of data was quadrupled (training set: 7.516 images and 19.716 labels; validation set: 920 images and 2.120 labels) (Table 1. Using PyTorch U-net, 400 epochs were trained, and the best model, epoch 178, was recorded.
Table 1.
Number of images and labels in the training and validation set
| Number of patients | Number of images | Number of labels | Number of images after data augmentation | Number of labels after data augmentation |
|---|---|---|---|---|
| 1.550 | 1.879 | 4.929 | 7.516 | 19.716 |
| 1.550 | 230 | 530 | 920 | 2.120 |
In the testing group, the number of true positives was determined as 471 and the number of false positives as 35, while 27 could not be detected. The sensitivity of CTPA segmentation was 0.95, the precision value was 0.93, the F1 score value was 0.94, and the learning rate was 0.0001. In the receiver operating characteristic (ROC) analysis, the area under the curve (AUC) value was calculated as 0.88. The graph of the ROC analysis showing the AUC value is given in Figure 1. The image of the patient whose segmentation was successfully performed is given in Figure 2. The image of the U-net architecture is given in Figure 3.
DISCUSSION
Artificial intelligence studies are increasing day by day in all fields of science, especially medicine. As a current issue, in our study, we segmented pulmonary embolism using the deep learning method on axial section images of patients with pulmonary artery embolism who underwent CTPA. In the testing group of our study, the sensitivity, precision, F1 score, and AUC values obtained with our artificial intelligence model were measured as 0.95, 0.93, 0.94, and 0.88, respectively, indicating successful results in the diagnosis and segmentation of pulmonary embolism.
Figure 1.

Graph of the ROC analysis (ROC, receiver operating characteristic. AUC: Area under the curve
Weikert et al. evaluated the performance of an artificial intelligence algorithm called the AI-powered algorithm and detected pulmonary embolisms on CTPA images. The authors used approximately 28.000 CTPA images for validation; and utilized the ResNet architecture in the convolutional neural
Figure 2.

Computed tomographic pulmonary angiography examination revealed filling defects consistent with acute pulmonary embolism in the pulmonary arteries and segment branches of the lower lobes of both lungs in a 63 year-old male patient. Segmentation of the areas consistent with the detected acute pulmonary embolism was performed.
Figure 3.

The image of the U-net architecture
network application. The sensitivity value of the AI-powered algorithm in the detection of pulmonary embolism was found to be 92.7%. In contrast, in our study, segmentation was performed instead of detection. Our sensitivity value was 95%, which is slightly better compared to the value reported by Weikert et al. In addition, we did not include the images of patients without pulmonary embolism, unlike the previous study ( 18 ).
In another study using the computer-aided detection algorithm, the sensitivity was calculated separately for the detection of emboli in the main pulmonary artery, lobar, segmental, and subsegmental arteries, and as expected, the sensitivity in the detection of embolism in the main pulmonary artery (87%) was found to be higher compared to the subsegmental artery (61%) ( 19 ). Different from this study, we did not perform separate calculations for embolisms detected in the main pulmonary, lobar, segmental, and subsegmental arteries.
Rucco et al. used the neural hyper network for the diagnosis of pulmonary embolism and obtained data from the images of 1.427 patients. This method successfully diagnosed pulmonary embolism at a rate of 94% ( 20 ), which is quite similar to our study. In another study conducted using the deep learning method, multimodal fusion was used, and both clinical and laboratory data and images of the patients were evaluated ( 21 ). The AUC value of that study was higher than ours. This may be due to the previous authors’ inclusion of clinical and laboratory data in their evaluation.
Huang et al. used the PENet system and attempted to diagnose pulmonary embolism on volumetric CT images with 3D CNN in the infrastructure ( 22 ). The authors found the AUC value to be approximately 0.85, indicating that our method was more successful. In addition, different from our study, Huang et al. performed detection rather than segmentation.
In another study that aimed to detect pulmonary embolism with deep learning, clot burden assessment was also performed, and segmentation was applied ( 23 ). Unlike our study, the authors also calculated the volume of embolism and measured cardiovascular parameters on CT for pulmonary embolism.
Ma et al. trained with RSNA-STR Pulmonary Embolism CT Dataset, and their model was successful in pulmonary embolism detection with a sensitivity of 0.86 and a specificity of 0.85. And they concluded that that model was competitive with the radiologist’s sensitivity and specificity. They proposed multitask learning method that could recognize the presence of pulmonary embolism and its properties such as the position, acute or chronic form, and right-to-left ventricle diameter ratio ( 24 ). In our study, there was only one group that had an acute pulmonary embolism. And our sensitivity result was more successful than their model.
In another study, they compared different deeplearning architectures for pulmonary embolisms. They found CNNs and transfer learning superior to the other methods (25). In our study, we used CNNs algorithm, and we had successful results similar to this study. But we did not compare CNNs with any other algorithm.
We consider that our study is clinically important because the method presented shortens the patient service and evaluation time. In addition, the workload of radiology departments can be reduced using the deep learning-based segmentation model we created, and this will contribute to this field.
One of the limitations of our study is that the segmental branches of the pulmonary artery and the main pulmonary arteries were not considered separately. In addition, the success of the model presented in our study can be increased by including the clinical and laboratory findings of the patients and evaluating cardiovascular parameters that contribute to the course of pulmonary embolism using CT. This will help obtain more successful model alternatives.
CONCLUSION
In conclusion, in this study, the segmentation of acute pulmonary embolism in CTPA was performed using the deep learning method, and successful results were achieved. We consider that in the future, artificial intelligence-based algorithms will find more place in clinical operations and facilitate the work of clinicians and radiologists.
Ethical Committee Approval
Ethical approval for this study was obtained from the ethics committee of the Medical University of Eskişehir Osmangazi (Ethics committee decision number: 15, Date: 15 February 2022).
Conflict of INTEREST
The authors have no conflicts of interest to declare that are relevant to the content of this article.
AUTHORSHIP CONTRIBUTIONS
Concept/Design: NA, ÖÇ
Analysis/Interpretation: NA, ÇC, AFA, AO
Data acqusition: : HY, FA
Writing: NA
Clinical Revision: NA
Final Approval: NA
References
- Agnelli G, Becattini C. Acute pulmonary embolism. N Engl J Med 2010 . 2010;363(3):266-74. doi: 10.1056/NEJMra0907731. [DOI] [PubMed] [Google Scholar]
- Brown MD, Rowe BH., Reeves MJ, Bermingham JM, Goldhaber SZ. The accuracy of the enzyme-linked immunosorbent assay D-dimer test in the diagnosis of pulmonary embolism: A meta-analysis. Ann Emerg Med 2002 . 2010;40(2):133-44. doi: 10.1067/mem.2002.124755. [DOI] [PubMed] [Google Scholar]
- PIOPED Investigators . Value of the ventilation/perfusion scan in acute pulmonary embolism. Results of the prospective investigation of pulmonary embolism diagnosis (PIOPED). JAMA 1990 . 1990;263(20):2753-9. doi: 10.1001/jama.263.20.2753. [DOI] [PubMed] [Google Scholar]
- Borris LC, Christiansen HM, Lassen MR, Olsen AD, Schøtt P. Comparison of real-time B-mode ultrasonography and bilateral ascending phlebography for detection of postoperative deep vein thrombosis following elective hip surgery. The Venous Thrombosis Group. Thromb Haemost 1989 . 1989;61(3):363-5. doi: 10.1055/s-0038-1646596. [DOI] [PubMed] [Google Scholar]
- Rathbun SW, Raskob GE, Whitsett TL. Sensitivity and specificity of helical computed tomography in the diagnosis of pulmonary embolism: A systematic review. Ann Intern Med 2000 . 2000;132(3):227-32. doi: 10.7326/0003-4819-132-3-200002010-00009. [DOI] [PubMed] [Google Scholar]
- Stein PD, Fowler SE, Goodman LR, Gottschalk A, Hales CA, Hull RD. Multidetector computed tomography for acute pulmonary embolism. N Engl J Med 2006 . 2006;354(22):2317–2327. doi: 10.1056/NEJMoa052367. [DOI] [PubMed] [Google Scholar]
- Cozzi D, Moroni C, Cavigli E, Bindi A, Caviglioli C, Nazerian P. Prognostic value of CT pulmonary angiography parameters in acute pulmonary embolism. Radiol Med 2021 . 2021;126(8):1030–1036. doi: 10.1007/s11547-021-01364-6. [DOI] [PubMed] [Google Scholar]
- Gottschalk A, Stein PD, Goodman LR, Sostman HD. Overview of Prospective Investigation of Pulmonary Embolism Diagnosis II. Semin Nucl Med 2002 . 2002;32(3):173-82. doi: 10.1053/snuc.2002.124177. [DOI] [PubMed] [Google Scholar]
- Estrada-Y-Martin RM, Oldham SA. CTPA as the gold standard for the diagnosis of pulmonary embolism. Int J Comput Assist Radiol Surg 2011 . 2011;6(4):557–563. doi: 10.1007/s11548-010-0526-4. [DOI] [PubMed] [Google Scholar]
- Ghaye B, Remy J, Remy-Jardin M. Non-traumatic thoracic emergencies: CT diagnosis of acute pulmonary embolism: The first 10 years. Eur Radiol 2002 . 2002;12(8):1886–1905. doi: 10.1007/s00330-002-1506-z. [DOI] [PubMed] [Google Scholar]
- Wong AW, Shah AS, Johnston JC, Carlsten C, Ryerson C. Patient-reported outcome measures after COVID-19: A prospective cohort study. Eur Respir J 2020 . 2020;56(5):276. doi: 10.1183/13993003.03276-2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sirayder U, Inal-Ince D, Kepenek-Varol B, Acik C. LongTerm characteristics of severe COVID-19: Respiratory function, functional capacity, and quality of life. Int J Environ Res Public Health 2022 . 2022;19(10):6304. doi: 10.3390/ijerph19106304. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Spicuzza L, Campisi R, Alia S, Prestifilippo S, Giuffrida ML, Angileri L. Female sex affects respiratory function and exercise ability in patients recovered from COVID-19 pneumonia. J Womens Health (Larchmt) 2023 . 2023;32(1):18–23. doi: 10.1089/jwh.2022.0104. [DOI] [PubMed] [Google Scholar]
- Fernández-de-Las-Peñas C, Martín-Guerrero JD, PellicerValero ÓJ, Navarro-Pardo E, Gomez-Mayordomo M, Cuadrado ML. Female sex is a risk factor associated with long-term post-COVID related-symptoms but not with COVID-19 symptoms: The LONG-COVID-EXP-CM multicenter study. J Clin Med 2022 . 2022;11(2):413. doi: 10.3390/jcm11020413. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sudre CH, Murray B, Varsavsky T, Graham SM, Penfold RS, Bower RC. Attributes and predictors of long COVID. Nat Med 2021 . 2021;27(6):626-31. doi: 10.1038/s41591-021-01292-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bai F, Tomasoni D, Falcinella C, Barbanotti D, Castoldi R, Mule R. Female gender is associated with long COVID syndrome: A prospective cohort study. Clin Microbiol Infect 2022 . 2022;28(4):611. doi: 10.1016/j.cmi.2021.11.002. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tenforde MW, Self WH, Adams K, Gaglani M, Ginde AA, McNeal T. Association between mRNA vaccination and COVID-19 hospitalization and disease severity. JAMA 2021 . 2021;326(20):2043-54. doi: 10.1001/jama.2021.19499. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Taquet M, Dercon Q, Harrison PJ. Six-month sequelae of post-vaccination SARS-CoV-2 infection: a retrospective cohort study of 10,024 breakthrough infections. Brain Behav Immun 2022 . 2022;103:154-62. doi: 10.1016/j.bbi.2022.04.013. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kuodi P, Gorelik Y, Zayyad H, Wertheim O, Wiegler KB, Abu Jamal K. Association between vaccination status and reported incidence of post-acute COVID-19 symptoms in Israel. MedRxiv NPJ Vaccines 2022 . 2022;7(1):101. doi: 10.1038/s41541-022-00526-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kiekens C, Boldrini P, Andreoli A, Avesani R, Gamna F, Grandi M. Rehabilitation and respiratory management in the acute and early post-acute phase. “Instant paper from the field” on rehabilitation answers to the COVID-19 emergency. Eur J Phys Rehabil Med 2020 . 2020;56(3):323-6. doi: 10.23736/S1973-9087.20.06305-4. [DOI] [PubMed] [Google Scholar]
- Demeco A, Marotta N, Barletta M, Pino I, Marinaro C, Petraroli A. Rehabilitation of patients post-COVID-19 infection: A literature review. J Int Med Res 2020 . 2020;48(8):1-10. doi: 10.1177/0300060520948382. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chen H, Shi H, Liu X, Sun T, Wu J, Liu Z. Effect of pulmonary rehabilitation for patients with post-COVID-19: A systematic review and meta-analysis. Front Med 2022 . 2022;9:83742 doi: 10.3389/fmed.2022.837420. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Yang ll, Yang T. Pulmonary rehabilitation for patients with coronavirus disease 2019 (COVID-19). Chronic Dis Transl Med 2020 . 2020;6(2):79-86. doi: 10.1016/j.cdtm.2020.05.002. [DOI] [PMC free article] [PubMed] [Google Scholar]
