Next Article in Journal
Evaluating the Cisplatin Dose Dependence of Testicular Dysfunction Using Creatine Chemical Exchange Saturation Transfer Imaging
Next Article in Special Issue
Jointly Optimized Deep Neural Networks to Synthesize Monoenergetic Images from Single-Energy CT Angiography for Improving Classification of Pulmonary Embolism
Previous Article in Journal
Understanding the Molecular Mechanism of Vestibular Schwannoma for Hearing Preservation Surgery: Otologists’ Perspective from Bedside to Bench
Previous Article in Special Issue
Computed Tomography Texture Analysis of Carotid Plaque as Predictor of Unfavorable Outcome after Carotid Artery Stenting: A Preliminary Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Automated Detection, Segmentation, and Classification of Pericardial Effusions on Chest CT Using a Deep Convolutional Neural Network

1
Division of Research and Analytical Services, University Hospital Basel, 4031 Basel, Switzerland
2
Department of Radiology, University Hospital Basel, University of Basel, 4031 Basel, Switzerland
3
Department of Cardiology, University Hospital Basel, University of Basel, 4031 Basel, Switzerland
4
3D Center Zurich, Institute of Forensic Medicine, University of Zürich, 8057 Zürich, Switzerland
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Diagnostics 2022, 12(5), 1045; https://doi.org/10.3390/diagnostics12051045
Submission received: 18 March 2022 / Revised: 9 April 2022 / Accepted: 19 April 2022 / Published: 21 April 2022
(This article belongs to the Special Issue Advances in Cardiopulmonary Imaging)

Abstract

:
Pericardial effusions (PEFs) are often missed on Computed Tomography (CT), which particularly affects the outcome of patients presenting with hemodynamic compromise. An automatic PEF detection, segmentation, and classification tool would expedite and improve CT based PEF diagnosis; 258 CTs with (206 with simple PEF, 52 with hemopericardium) and without PEF (each 134 with contrast, 124 non-enhanced) were identified using the radiology report (01/2016–01/2021). PEF were manually 3D-segmented. A deep convolutional neural network (nnU-Net) was trained on 316 cases and separately tested on the remaining 200 and 22 external post-mortem CTs. Inter-reader variability was tested on 40 CTs. PEF classification utilized the median Hounsfield unit from each prediction. The sensitivity and specificity for PEF detection was 97% (95% CI 91.48–99.38%) and 100.00% (95% CI 96.38–100.00%) and 89.74% and 83.61% for diagnosing hemopericardium (AUC 0.944, 95% CI 0.904–0.984). Model performance (Dice coefficient: 0.75 ± 0.01) was non-inferior to inter-reader (0.69 ± 0.02) and was unaffected by contrast administration nor alternative chest pathology (p > 0.05). External dataset testing yielded similar results. Our model reliably detects, segments, and classifies PEF on CT in a complex dataset, potentially serving as an alert tool whilst enhancing report quality. The model and corresponding datasets are publicly available.

Graphical Abstract

1. Introduction

With the increasing use of Computer Tomography (CT) in medicine [1], pericardial effusions (PEFs) are often first diagnosed on CT [2]. A PEF is most commonly defined as a volume larger than 50 mL [2,3,4]. However, PEF diagnosis is often missed on CT as shown by Verdini et al. with a sensitivity of only 59.0% for pericardial disease [5]. Whilst volumetry is the most accurate method to diagnose PEF, taking into account the complex three-dimensional geometrical structure of the pericardial sac [4,6,7], counting voxels is time consuming and impractical in clinical practice [8]. Therefore, an automatically generated segmentation and volumetry tool would substantially improve the quality of CT-based PEF diagnosis.
Whilst echocardiography is the primary tool for PEF diagnosis [6], CT plays an ever-increasing role. This is because CT is a “catch all” investigation for patients presenting in extremis, which requires prompt, thorough and rapid diagnostic workup to identify life threatening pathologies and guide management. Evidently, missing a PEF diagnosis in this context must be avoided. Additionally, the echocardiographic diagnostic accuracy of PEFs is affected by the presence of clots, complex loculations, posterior PEFs and post-surgical changes, making CT the primary and most straightforward tool for the investigation of these complications [9,10].
The effectiveness of deep convolutional neural networks for the automated analysis of chest CTs has been proven [11,12,13,14]. However, to date, only two studies are available utilizing Artificial Intelligence to automatically identify or quantify PEF on CT [15,16]. Currently, the most commonly implemented deep learning architecture in medical imaging is the U-Net [17], which was adapted by Isensee et al. producing a robust tool called nnU-Net. nnU-Nets can automatically configure themselves, including preprocessing, network architecture, training and post-processing for any new task [18]. Its advantages have been demonstrated by winning multiple Medical Image Computing and Computer Assisted Interventions challenges.
Our model presents the first openly available dataset and tool to automatically segment, quantify and classify PEFs on CT. It fulfills the clinical need for a more reliable, more accurate, and faster diagnosis of PEF and hemopericardium, which performs reliably even in the presence of additional chest pathology. The incorporation of this tool into clinical practice may help reduce or even avoid missed diagnoses completely, as well as improve the time-to-diagnosis, ultimately improving patient outcomes.

2. Materials and Methods

The local ethics committee approved this retrospective study (Project ID: 2021-00946). For the external dataset consisting of anonymized post-mortem CT data, an ethical waiver was issued by the Ethical Committee of the Canton of Zurich (Project ID: 2022-00173). We structured our manuscript according to SPIRIT-AI and CLAIM [19,20].

2.1. Study Population

Two study cohorts were defined as follows. The positive cohort, consisting of simple PEF and hemopericardium cases, was identified through the search of structured radiology reports using the search terms “pericardial effusion” and “hemopericardium” from January 2016 to January 2021. No patient was present in both groups. The corresponding CTs including chest imaging were identified using the Radiology Information System/Picture Archiving and Communication system in a tertiary hospital. The search and the exclusion of patients without consent, duplicates and follow-up studies were carried out by Reader 2 (postgraduate year (PGY) 4). Additionally, a negative cohort was identified on a local database of CT studies without significant radiological findings by Reader 1 (PGY 2).
All CTs identified above were quality controlled by Reader 1 under the supervision of Reader 3 (Board certified, 15 years of cardiothoracic imaging experience). All hemopericardium cases were reviewed by Readers 1 and 2 to ensure an accurate diagnosis. Most cases had a concomitant aortic dissection, recent cardiac intervention, or chest trauma (n = 51/53, 96.23%). Studies with strong artifacts affecting the delineation of the heart, insufficient image quality, and extreme difficulty in delineating between PEF and pleural effusion were excluded with the recommendation from Reader 3. Studies in the PEF/hemopericardium and negative cohort were manually reviewed to ensure a PEF thickness of >4 mm and <4 mm, respectively [2], whilst blinded to the radiology report. In areas of diagnostic uncertainty, the consensus was achieved through discussion with Readers 2 and 3. A detailed overview of the patient selection is graphically presented in Figure 1. All data were anonymized.

2.2. Image Acquisition Parameters

CT scans were performed using four different models manufactured by Siemens Healthineers, Germany: Definition AS+ (n = 220), Definition Flash (n = 158), Definition Edge (n = 118), and Somatom Force (n = 20). Acquisition parameters were as follows: mean peak tube voltage 102.82 kVp (SD: 12.18), mean tube current time product 113.03 mAs (SD: 41.47), mean computed tomography dose index (CTDI) 4.07 mGy (SD: 3.62) and mean dose length product (DLP) 152.60 mGy*cm (SD: 162.07). A soft tissue kernel reconstruction (30f) of 1.0 mm served as the only input for the model.
Iopromide (Ultravist 370, Bayer Pharmaceuticals) was administered in 274 cases (arterial phase = 143, biphasic = 25, venous = 7, pulmonary arterial phase = 99).

2.3. Segmentation

All images with PEF were manually segmented by two readers Reader 1 (n = 187) and Reader 2 (n = 71) under supervision of Reader 3. Segmentation was standardized by using the same software and windowing. The three-dimensional segmented masks were used as a reference for training and testing.
To measure inter-rater variability, 40 studies initially segmented by Reader 2 were randomly selected and segmented by Reader 1; 20 with and 20 without contrast.

2.4. Model Training, Validation, and Testing

The model architecture is presented in Table 1. Hemopericardium studies were often not chest only CTs (n = 26). Therefore, pre-processing was carried out to crop the CT to the chest region, which is predicted by Hofmanninger et al.’s lung segmentation model [21].
The positive and negative cohorts (n = 516) were divided randomly into a training/validation (n = 316) and a test cohort (n = 200) whilst preserving the distribution of cases with and without contrast administration. Hemopericardium cases were divided with increased weighting towards the test cohort in order to ensure good statistical power of the accuracy of hemopericardium segmentation and classification. Therefore, hemopericardium compromised only 10% of the positive cohort within the training cohort (n = 14), matching our local hemopericardium prevalence amongst PEFs. The remaining were used in the test cohort (n = 38). A deep convolutional neural network using nnU-Net [18] was trained and validated with a 5-fold cross validation. Each fold took 1.5 days.

2.5. Hardware and Software

The images were organized, viewed, labeled, predicted, pre- and post-processed on the web-based image platform NORA [https://www.nora-imaging.com/ (accessed on 15 February 2022)] which is installed on an inhouse server with GPU Tesla T4. The training was performed on an Ubuntu workstation with 12 Cores CPU, 64 GB RAM and two Nvidia RTX 2080Ti.

2.6. Classification of Hemopericardium

The model’s prediction mask was used to extract a Hounsfield unit (HU) for each voxel segmented. All values outside the range of 0 to 80 HU were removed as these are outside the HU range for fluid and blood. The remaining values were used to compute a median HU per case, as demonstrated in Figure 2. A total of 38 hemopericardium cases from the hemopericardium sub-cohort together with one incidentally identified hemopericardium case in our positive cohort were compared to the remaining 61 simple PEF cases (without hemopericardium).

2.7. The Model’s Output

The resulting output from the segmentation prediction will be: the presence of PEF > 50 mL, volume in mL, large PEF (>100 mL) and the HU. The presence of hemopericardium and a PEF volume > 100 mL could set off an alert for the emergency physicians and radiologists.

2.8. External Data Set

Our model was tested on an external dataset consisting of 22 post-mortem CTs (PMCTs) with autopsy-confirmed hemopericardium, performed on a Siemens Definition Flash CT scanner. The image acquisition parameters are based on the chest and abdomen scanning protocol described by Flach et al. [22]. Patient selection criteria are described by Ebert et al. [23]. The CTs were cropped using the aforementioned technique at our institution. Our model’s performance was compared to the external institution’s post-mortem volume measurements and manual segmentation masks, the methodology of which is described by Ebert et al. [15].

2.9. Statistical Analyses

To evaluate PEF detection and segmentation performance, we used sensitivity, specificity, and Dice coefficient. Volumetry was compared using Bland–Altman analysis and by plotting the reference volumes against the predicted volumes and calculating Pearson’s correlation coefficient (r2). To compare model performance within the sub-groups and to the inter-rater agreement, we used the Dice coefficient, t-test, Mann–Whitney U test, and intraclass correlation coefficient (ICC). The receiver operating characteristic (ROC) curve was used to identify a HU threshold for the diagnosis of hemopericardium. Dice coefficient was computed on local software. The remaining statistical tests were computed using the packages “pROC” and “irr” using RStudio (Rstudio, PBC, Boston, MA, USA) [24,25], and visualized graphically using “ggplot2” and “tidyverse” [26,27].

2.10. Publicly Available Data

To encourage the use of this model and ensure the validity of our results, the CT datasets, reference segmentations and model code are openly available online [28].

3. Results

3.1. Study Population

The training and test cohorts did not significantly differ regarding both age (p = 0.695) and reference volume (p = 0.492). The training dataset had a mean volume of 212.82 ± 220.23 mL (±standard deviation) compared to 198.20 ± 159.78 mL for the test dataset. There was a total of 258 reference segmentations. Using the definition of >50 mL for the diagnosis of PEF, there were a total of 217 PEFs; 128 in the training cohort and 89 in the test cohort. The patient characteristics within the test cohort are summarized in Table 2.

3.2. Inter-Reader Versus Reference-Prediction

The inter-reader dataset comprised 40 cases, and the following analyses are based on these cases only and presented in Table 3. The ICC of these segmentation volumes was 0.970 (95% CI 0.951 < ICC < 0.983). A violin plot of all segmented volumes and example segmentations is shown in Figure 3.

3.3. Model Performance and Effect of Confounding Factors

Hereon, the analyses are based on the positive test cohort only (n = 100), which are presented in Table 4. Appendix A presents an in-depth analysis. Figure 4a shows an example case with good quality model segmentation—unaffected by contrast administration. Figure 4b shows an example case with a concomitant pleural effusion. Here, the segmentation quality is reduced due to the artifact. Importantly, the pleural effusion was not segmented despite being immediately adjacent to the PEF.

3.4. Detection of Pericardial Effusion

A reference segmentation volume >50 mL was used as the true positive. True negative cases were manually identified, and additionally, included reference volumes <50 mL. The sensitivity and specificity were 97.00% (95% CI 91.48–99.38%) and 100.00% (95% CI 96.38–100.00%).

3.5. Hemopericardium Classification

The median HU was extracted from each CT study using the predicted segmentation mask in the positive test cohort (n = 100), of which 39 had hemopericardium. The results are presented in Table 5. A threshold HU value of 24.5 was identified to diagnose hemopericardium with an AUC of 0.944 (95% CI 0.904–0.984) and is demonstrated in Figure 5 alongside two further ROC curves consisting only of cases with or without contrast. Both Youden’s formula and “closest top left” formula yielded the same threshold result with a sensitivity and specificity of 89.74% and 83.61% (circled in red).

3.6. External Validation

PMCTs of deceased patients suffering from hemopericardium were used for external validation. The calculated volumes using autopsy, reference and model are shown in Table 6. The Dice coefficient comparing reference and model segmentations was 0.66 ± 0.14 (median = 0.67). A violin plot of all segmented volumes and example segmentations is shown in Figure 6. The mean HU extracted from these PMCTs with hemopericardium was 37.36 ± 5.01, which is similar to hemopericardium cases in our test cohort (p = 0.387) and significantly larger compared to non-hemopericardium PEF cases in our test cohort (p < 0.001). Using 24.5 HU as a cut-off value, all external cases were diagnosed with hemopericardium with a corresponding sensitivity of 100.00% (95% CI 84.56–100.00%).

4. Discussion

We developed and comprehensively tested a tool for the automatic detection, volumetry and classification of PEFs using a complex set of clinical cases, containing cases of simple PEF, hemopericardium and a negative control without PEF. A highly accurate detection (97% sensitivity and 100% specificity) and good segmentation accuracy (Dice 0.75) were achieved. Of note, the volume difference and Dice coefficient between the reference and model were better than those of the inter-reader. The model’s performance was not significantly affected by acquisition parameters, such as contrast administration nor by clinical pathologies, such as PEF volume, hemopericardium, pleural effusions, and other radiologically identified pathology. A robust method using HUs for the classification of hemopericardium was developed, which had a sensitivity and specificity of 89.7% and 83.6%, which was unaffected by contrast administration. HUs are highly effective for the classification of PEFs [29]. Using the median HU of an entire PEF segmentation is a simple and reproducible method, superior to the current approach of viewing HU values in randomly selected areas of the PEF (with corresponding inter and intra observer variability). To our knowledge, this is the only study to date where this methodology is carried out. However, a few false positive cases were found, in particular, two CTs with a contrast of patients with pericarditis, resulting in pericardial enhancement affecting the HU values. We encourage that HU should not be used in isolation, but in addition to radiological and clinical findings.
Similar to other recent state-of-the-art Convoluted Neural Network (CNN) models, we show great utility and performance despite a highly complex dataset [30,31,32]. In fact, the high diagnostic accuracy in this study is comparable to Ay and Kahraman’s study comparing the manual diagnostic accuracy of CT and echocardiography in PEF detection after open heart surgery [33]. CT had a much lower false negative risk compared to echocardiography (8% vs. 61%) in a complex patient database that may be comparable to ours. Liu et al. [16] and Ebert et al. [15] investigated the feasibility of CT-based PEF segmentation on limited case numbers (n = 25 and n = 28, respectively). They both used two-step approaches and did not publish their model publicly. Both studies trained their models slice by slice, in comparison to more appropriate three-dimensional training in our study. Additionally, neither of the studies offers a PEF classification tool. Liu et al. analyzed the segmentation performance of two different neural network architectures. The best performing model was U-Net, which forms the basis of the nnU-Net architecture utilized in our study. Their model’s performance was similar to ours (Dice 0.77) but may not be comparable as no negative control cohort was included in the training or testing cohort. Ebert et al. studied whether automatic segmentation of hemopericardium on PMCTs was feasible and had 25 negative control cases. Direct analysis of their model is not possible because a commercial software was used. Ebert et al.’s dataset was used to perform an external validation. Here, we found a good segmentation quality (Dice 0.65) but a large difference in volume segmentation. This is explained by the difference between PMCTs and CTs of living patients. First, the images are higher resolution and without contrast. Second, radiological findings are starkly different, for example, the heart chambers collapse, occasionally contain air and hematomas, and therefore, the hemopericardium is denser and more inhomogeneous. This and the fact that PMCTs were not part of the training dataset might explain the lower quality of the segmentation.

Clinical Implications

This automatic identification, volumetry and classification tool can facilitate and improve radiology triage and workflows as well as report quality. A well embedded tool could directly alert emergency physicians to the presence of hemopericardium and/or large PEF, with its association with cardiac tamponade [4]. Early CT has previously been shown to facilitate rapid patient management in the emergency department [34], and our tool may further enhance it. Additionally, this tool can make PEF volume and HU measurements objective, replacing current semi-quantitative classifications plagued by variable cut-off thresholds and inter and intra-reader variability [10,35]. As long as input parameters are standardized, this automatic tool can standardize these measurements, and therefore, be used to identify a less arbitrary cutoff for distinguishing between PEF and physiological pericardial fluid, taking into account age, sex, height, and concomitant disease. This will allow more accurate detection of PEF and hemopericardium which may reduce unnecessary echocardiograms or identify patients where an echocardiogram is urgent. It may also allow better prognostication. The incorporation of this tool into clinical practice requires seamless communication between the Radiology Information System/Picture Archiving and Communication System and the model. In addition to this infrastructure, a simple output is required which should be easy and intuitive for the radiologist or clinician to access.
There are several limitations to our study. First, the model was trained on the latest generation CTs from a single scanner manufacturer at a single institution. While the use of older CT scanners could theoretically reduce the diagnostic accuracy, we at least showed a good performance on CTs from a different institution on a completely different patient group: post-mortem hemopericardium cases. This suggests that the model’s performance is highly robust in different protocols, institutions and patient groups. Second, the ground truth was identified using the radiology report, which was mitigated by the use of structured reports in our institution. The two-dimensional CT diagnosis of PEF was used in our inclusion criteria, which resulted in a total of 29/258 (11.24%) PEF cases >4 mm which turned out to be physiological pericardial fluid volumes (<50 mL). No alternative mechanism exists to circumvent this drawback whilst maintaining a large case number. Third, inter-reader variability was worse compared to reference-prediction variability. This may be because segmentation style and errors have a proportionately large effect on outcome in complex, narrow and often small structures, such as PEFs.

5. Conclusions

This study trained and tested an automated tool using nnU-Net for the detection and segmentation of PEFs and additionally used HUs to classify PEF as hemopericardium or simple PEF. This tool is highly accurate for the automatic detection, volumetry, and classification of PEFs, even surpassing human inter-reader variability. Since this tool was trained using a complex dataset, it can be easily incorporated into clinical practice.

Author Contributions

Conceptualization, A.S., R.S., J.B. and P.H.; methodology, A.S., R.S., S.Y. and A.J.W.-S.; software, S.Y.; validation, S.Y. and A.J.W.-S.; formal analysis, A.J.W.-S.; investigation, A.J.W.-S.; resources, L.C.E. and S.Y.; data curation, A.J.W.-S.; writing—original draft preparation, A.J.W.-S.; writing—review and editing, A.S., R.S., L.C.E., M.S., T.W. and S.Y.; visualization, A.J.W.-S.; supervision, A.S., R.S., J.B., T.W. and S.Y.; project administration, A.S. and R.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki, and approved by the Ethics Committee of the University Hospital Basel (Project ID: 2021-00946, date of approval: 17 May 2021). For the external dataset consisting of anonymized post-mortem CT data, an ethical waiver was issued by the Ethical Committee of the Canton of Zurich (Project ID: 2022-00173).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Algorithm code as well as corresponding datasets are openly available at https://doi.org/10.5281/zenodo.6384747 (accessed on 1 April 2022) [28].

Acknowledgments

I would like to thank Elias Kellner and Marco Reisert for supporting Nora image platform.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Table A1. The effects of confounding factors on model performance.
Table A1. The effects of confounding factors on model performance.
VariableStatistical Analysis of Volume Difference (Reference Minus Model)Statistical Analysis of Detection Rate ComparisonStatistical Analysis of Dice Coefficient Comparison
Contrast administration (n = 57/60) compared to non-contrast (n = 43)p = 0.109p = 0.506p = 0.908
Reference volume of <50mL (n = 11) compared to >50mL (n = 89)p = 0.474p = 0.140p = 0.086
Presence of hemopericardium (n = 39) compared to PEF (n = 61)p = 0.032p = 0.015p = 0.097
Presence of pleural effusion (n = 62) compared to no pleural effusion (n = 37)p = 0.123p = 0.218p = 0.116
Disease (combined post op, visible tumor, trauma, visible infection) (n = 62) compared to no visible disease (n = 38)p = 0.445p = 0.297p = 0.061
Post operative (n = 26) versus non post operative images (n = 74)p = 0.618p = 0.460p = 0.115
Visible tumor (n = 12) compared to no tumor in image (n = 88)p = 0.291p = 0.361p = 0.979
Visible tumor located in mediastinum (n = 7) compared to no tumor (n = 88) p = 0.116p = 0.646p = 0.706
Visible tumor located in chest (n = 5) compared to no tumor (n = 88)p = 0.858p = 0.364p = 0.615
Trauma (n = 6) compared to no trauma (n = 94)p = 0.313p = 0.530p = 0.971
Visible presence of infection (n = 27) compared to no visible infection (n = 73)p = 0.727p = 0.399p = 0.951
The effects of confounding factors on model performance, analyzed using volume difference (reference minus model), detection and Dice coefficient. Only hemopericardium was shown to affect the volume difference and detection, but not the Dice coefficient. The volume difference of hemopericardium cases was larger (mean 6.61 ± 9.06 mL) than simple PEF cases (mean −9.64 ± 3.93 mL). This is likely due to the fact that fewer hemopericardium cases were present in the model training compared to the test, especially since there was a larger mean reference volume of hemopericardium (mean 250.62 ± 26.56 mL) compared to simple PEF (mean 164.68 ± 18.90) (p = 0.002).

References

  1. Smith-Bindman, R.; Kwan, M.L.; Marlow, E.; Theis, M.K.; Bolch, W.; Cheng, S.Y.; Bowles, E.J.A.; Duncan, J.R.; Greenlee, R.T.; Kushi, L.H.; et al. Trends in Use of Medical Imaging in US Health Care Systems and in Ontario, Canada, 2000–2016. JAMA 2019, 322, 843–856. [Google Scholar] [CrossRef]
  2. Munden, R.F.; Carter, B.W.; Chiles, C.; MacMahon, H.; Black, W.C.; Ko, J.P.; McAdams, H.P.; Rossi, S.E.; Leung, A.N.; Boiselle, P.M.; et al. Managing Incidental Findings on Thoracic CT: Mediastinal and Cardiovascular Findings. A White Paper of the ACR Incidental Findings Committee. J. Am. Coll. Radiol. 2018, 15, 1087–1096. [Google Scholar] [CrossRef]
  3. Klein, A.L.; Abbara, S.; Agler, D.A.; Appleton, C.P.; Asher, C.R.; Hoit, B.; Hung, J.; Garcia, M.J.; Kronzon, I.; Oh, J.K.; et al. American Society of Echocardiography Clinical Recommendations for Multimodality Cardiovascular Imaging of Patients with Pericardial Disease. J. Am. Soc. Echocardiogr. 2013, 26, 965–1012.e15. [Google Scholar] [CrossRef]
  4. Adler, Y.; Charron, P.; Imazio, M.; Badano, L.; Barón-Esquivias, G.; Bogaert, J.; Brucato, A.; Gueret, P.; Klingel, K.; Lionis, C.; et al. 2015 ESC Guidelines for the diagnosis and management of pericardial diseases: The Task Force for the Diagnosis and Management of Pericardial Diseases of the European Society of Cardiology (ESC)Endorsed by: The European Association for Cardio-Thoracic Surgery (EACTS). Eur. Heart J. 2015, 36, 2921–2964. [Google Scholar] [CrossRef]
  5. Choy, G.; Kröpil, P.; Scherer, A.; El-Sherief, A.H.; Chung, J.; Rojas, C.A.; Abbara, S. Pertinent reportable incidental cardiac findings on chest CT without electrocardiography gating: Review of 268 consecutive cases. Acta Radiol. 2013, 54, 396–400. [Google Scholar] [CrossRef]
  6. Vakamudi, S.; Ho, N.; Cremer, P.C. Pericardial Effusions: Causes, Diagnosis, and Management. Prog. Cardiovasc. Dis. 2017, 59, 380–388. [Google Scholar] [CrossRef]
  7. Alter, P.; Figiel, J.; Rupp, T.P.; Bachmann, G.F.; Maisch, B.; Rominger, M.B. MR, CT, and PET imaging in pericardial disease. Heart Fail. Rev. 2012, 18, 289–306. [Google Scholar] [CrossRef]
  8. Ebert, L.; Dobay, A.; Franckenberg, S.; Thali, M.; Decker, S.; Ford, J. Image segmentation of post-mortem computed tomography data in forensic imaging: Methods and applications. Forensic Imaging 2021, 28, 200483. [Google Scholar] [CrossRef]
  9. Cossu, A.; Rother, M.D.M.; Kusmirek, J.E.; Meyer, C.A.; Kanne, J.P. Imaging Early Postoperative Complications of Cardiothoracic Surgery. Radiol. Clin. N. Am. 2020, 58, 133–150. [Google Scholar] [CrossRef]
  10. Azarbal, A.; LeWinter, M.M. Pericardial Effusion. Cardiol. Clin. 2017, 35, 515–524. [Google Scholar] [CrossRef]
  11. Yao, J.; Bliton, J.; Summers, R.M. Automatic Segmentation and Measurement of Pleural Effusions on CT. IEEE Trans. Biomed. Eng. 2013, 60, 1834–1840. [Google Scholar] [CrossRef] [Green Version]
  12. Weikert, T.; D’Antonoli, T.A.; Bremerich, J.; Stieltjes, B.; Sommer, G.; Sauter, A.W. Evaluation of an AI-Powered Lung Nodule Algorithm for Detection and 3D Segmentation of Primary Lung Tumors. Contrast Media Mol. Imaging 2019, 2019, 1545747. [Google Scholar] [CrossRef] [Green Version]
  13. Li, L.; Qin, L.; Xu, Z.; Yin, Y.; Wang, X.; Kong, B.; Bai, J.; Lu, Y.; Fang, Z.; Song, Q.; et al. Using artificial intelligence to detect COVID-19 and community-acquired pneumonia based on pulmonary CT: Evaluation of the diagnostic accuracy. Radiology 2020, 296, E65–E71. [Google Scholar] [CrossRef]
  14. van Velzen, S.G.M.; Lessmann, N.; Velthuis, B.K.; Bank, I.E.M.; Bongard, D.V.D.; Leiner, T.; de Jong, P.A.; Veldhuis, W.B.; Correa, A.; Terry, J.G.; et al. Deep Learning for Automatic Calcium Scoring in CT: Validation Using Multiple Cardiac CT and Chest CT Protocols. Radiology 2020, 295, 66–79. [Google Scholar] [CrossRef]
  15. Ebert, L.C.; Heimer, J.; Schweitzer, W.; Sieberth, T.; Leipner, A.; Thali, M.; Ampanozi, G. Automatic detection of hemorrhagic pericardial effusion on PMCT using deep learning–A feasibility study. Forensic Sci. Med. Pathol. 2017, 13, 426–431. [Google Scholar] [CrossRef]
  16. Liu, J.; Cai, J.; Chellamuthu, K.; Bagheri, M.; Lu, L.; Summer, R.M. Summers, Cascaded coarse-to-fine convolutional neural networks for pericardial effusion localization and segmentation on CT scans. In Proceedings of the 2018 IEEE 15th International Symposium on Biomedical Imaging (ISBI 2018), Washington, DC, USA, 4–7 April 2018; pp. 1092–1095. [Google Scholar] [CrossRef]
  17. Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention 2015; Navab, N., Hornegger, J., Wells, W.M., Frangi, A.F., Eds.; Springer International Publishing: Cham, Switzerland, 2015; pp. 234–241. [Google Scholar] [CrossRef] [Green Version]
  18. Isensee, F.; Jaeger, P.F.; Kohl, S.A.A.; Petersen, J.; Maier-Hein, K.H. nnU-Net: A self-configuring method for deep learning-based biomedical image segmentation. Nat. Methods 2020, 18, 203–211. [Google Scholar] [CrossRef]
  19. Rivera, S.C.; Liu, X.; Chan, A.-W.; Denniston, A.K.; Calvert, M.J.; Darzi, A.; Holmes, C.; Yau, C.; Moher, D.; Ashrafian, H.; et al. Guidelines for clinical trial protocols for interventions involving artificial intelligence: The SPIRIT-AI extension. Nat. Med. 2020, 26, 1351–1363. [Google Scholar] [CrossRef]
  20. Mongan, J.; Moy, L.; Kahn, C.E. Checklist for Artificial Intelligence in Medical Imaging (CLAIM): A Guide for Authors and Reviewers. Radiol. Artif. Intell. 2020, 2, e200029. [Google Scholar] [CrossRef] [Green Version]
  21. Hofmanninger, J.; Prayer, F.; Pan, J.; Röhrich, S.; Prosch, H.; Langs, G. Automatic lung segmentation in routine imaging is primarily a data diversity problem, not a methodology problem. Eur. Radiol. Exp. 2020, 4, 50. [Google Scholar] [CrossRef]
  22. Flach, P.M.; Gascho, D.; Schweitzer, W.; Ruder, T.D.; Berger, N.; Ross, S.G.; Thali, M.J.; Ampanozi, G. Imaging in forensic radiology: An illustrated guide for postmortem computed tomography technique and protocols. Forensic Sci. Med. Pathol. 2014, 10, 583–606. [Google Scholar] [CrossRef] [Green Version]
  23. Ebert, L.C.; Ampanozi, G.; Ruder, T.; Hatch, G.; Thali, M.J.; Germerott, T. CT based volume measurement and estimation in cases of pericardial effusion. J. Forensic Leg. Med. 2012, 19, 126–131. [Google Scholar] [CrossRef]
  24. Robin, X.; Turck, N.; Hainard, A.; Tiberti, N.; Lisacek, F.; Sanchez, J.-C.; Müller, M. pROC: An open-source package for R and S+ to analyze and compare ROC curves. BMC Bioinform. 2011, 12, 77. [Google Scholar] [CrossRef]
  25. RStudio Team. RStudio: Integrated Development for R; RStudio Team: Boston, MA, USA, 2020; Available online: https://rstudio.com/ (accessed on 26 October 2021).
  26. Wickham, H. ggplot2: Elegant Graphics for Data Analysis; Springer: New York, NY, USA, 2016; Available online: https://ggplot2.tidyverse.org (accessed on 5 January 2022).
  27. Wickham, H.; Averick, M.; Bryan, J.; Chang, W.; McGowan, L.D.A.; François, R.; Grolemund, G.; Hayes, A.; Henry, L.; Hester, J.; et al. Welcome to the Tidyverse. J. Open Source Softw. 2019, 4, 1686. [Google Scholar] [CrossRef]
  28. Wilder-Smith, A.J.; Yang, S. Automated Detection, Segmentation and Classification of Pericardial Effusions on Chest CT Using a Deep Convolutional Neural Network. 2022. Available online: https://zenodo.org/record/6384747#.YmC8RdNByUk (accessed on 1 April 2022).
  29. Çetin, M.S.; Çetin, E.H.Ö.; Özdemir, M.; Topaloğlu, S.; Aras, D.; Temizhan, A.; Aydoğdu, S. Effectiveness of computed tomography attenuation values in characterization of pericardial effusion. Anatol. J. Cardiol. 2017, 17, 322–327. [Google Scholar] [CrossRef]
  30. Wahid, M.F.; Hossain, A.A. Classification of Diabetic Retinopathy from OCT Images using Deep Convolutional Neural Network with BiLSTM and SVM. In Proceedings of the 2021 12th International Conference on Computing Communication and Networking Technologies (ICCCNT), Kharagpur, India, 6–8 July 2021; pp. 1–5. [Google Scholar] [CrossRef]
  31. Hassan, M.M.; Gumaei, A.; Aloi, G.; Fortino, G.; Zhou, M. A Smartphone-Enabled Fall Detection Framework for Elderly People in Connected Home Healthcare. IEEE Netw. 2019, 33, 58–63. [Google Scholar] [CrossRef]
  32. Zhang, W.; Wang, J.; Lan, F. Dynamic hand gesture recognition based on short-term sampling neural networks. IEEE/CAA J. Autom. Sin. 2020, 8, 110–120. [Google Scholar] [CrossRef]
  33. Ay, Y.; Ay, N.K. Diagnostic value of transthoracic echocardiography and computerized tomography for surgically confirmed late tamponade after cardiac surgery. J. Card. Surg. 2019, 34, 1486–1491. [Google Scholar] [CrossRef]
  34. Gruettner, J.; Fink, C.; Walter, T.; Meyer, M.; Apfaltrer, P.; Schoepf, U.J.; Saur, J.; Sueselbeck, T.; Traunwieser, D.; Takx, R.; et al. Coronary computed tomography and triple rule out CT in patients with acute chest pain and an intermediate cardiac risk profile. Part 1: Impact on patient management. Eur. J. Radiol. 2013, 82, 100–105. [Google Scholar] [CrossRef]
  35. Ma, W.; Liu, J.; Zeng, Y.; Chen, S.; Ye, S.; Lan, L.; Liu, Q.; Weig, H.-J. Causes of moderate to large pericardial effusion requiring pericardiocentesis in 140 Han Chinese patients. Herz 2011, 37, 183–187. [Google Scholar] [CrossRef]
Figure 1. Patient selection flow chart, demonstrating the inclusion and exclusion criteria as well as numbers of studies with or without contrast. (PEF: pericardial effusion). The external dataset is not included in the flowchart.
Figure 1. Patient selection flow chart, demonstrating the inclusion and exclusion criteria as well as numbers of studies with or without contrast. (PEF: pericardial effusion). The external dataset is not included in the flowchart.
Diagnostics 12 01045 g001
Figure 2. Simplified overview of the median Hounsfield unit (HU) extraction from an example CT with hemopericardium. A CT study with contrast depicting hemopericardium is segmented by the model (pink). Every voxel within the prediction mask generates a HU, visually depicted as the white squares with numbers within. All HUs outside of 0 to 80 are removed. The median HU of this PEF is selected using the remaining HUs and is the output (in this example 34 HU).
Figure 2. Simplified overview of the median Hounsfield unit (HU) extraction from an example CT with hemopericardium. A CT study with contrast depicting hemopericardium is segmented by the model (pink). Every voxel within the prediction mask generates a HU, visually depicted as the white squares with numbers within. All HUs outside of 0 to 80 are removed. The median HU of this PEF is selected using the remaining HUs and is the output (in this example 34 HU).
Diagnostics 12 01045 g002
Figure 3. Segmentation volumes and a corresponding example CT with segmentation masks. (a) Violin plots of the segmentation volumes of the 40 cases in the inter-reader dataset. Each violin is color coded to match the corresponding segmentation in (b). Pink = model, yellow = Reader 1, blue = Reader 2. (b) Non-contrast CT chest of a 65-year-old shown with soft tissue windowing. Reader 1 segmented 183 mL, Reader 2 segmented 201 mL, and the model segmented 192 mL.
Figure 3. Segmentation volumes and a corresponding example CT with segmentation masks. (a) Violin plots of the segmentation volumes of the 40 cases in the inter-reader dataset. Each violin is color coded to match the corresponding segmentation in (b). Pink = model, yellow = Reader 1, blue = Reader 2. (b) Non-contrast CT chest of a 65-year-old shown with soft tissue windowing. Reader 1 segmented 183 mL, Reader 2 segmented 201 mL, and the model segmented 192 mL.
Diagnostics 12 01045 g003
Figure 4. CT chests on the left with corresponding segmentations on the right of three different patients. (a) CT studies with or without contrast. (i) shows a contrast enhanced CT with hemopericardium without segmentation masks and (ii) with reference (yellow) and predicted (pink) masks. (iii) shows a non-contrast CT with PEF without masks and (iv) with reference (yellow) and predicted (pink) masks. (b) Non-contrast CT study with PEF and adjacent pleural effusion (*) (i) without masks and (ii) with reference (yellow) and predicted (pink) masks.
Figure 4. CT chests on the left with corresponding segmentations on the right of three different patients. (a) CT studies with or without contrast. (i) shows a contrast enhanced CT with hemopericardium without segmentation masks and (ii) with reference (yellow) and predicted (pink) masks. (iii) shows a non-contrast CT with PEF without masks and (iv) with reference (yellow) and predicted (pink) masks. (b) Non-contrast CT study with PEF and adjacent pleural effusion (*) (i) without masks and (ii) with reference (yellow) and predicted (pink) masks.
Diagnostics 12 01045 g004
Figure 5. Receiver operating curve showing the sensitivity and specificity of Hounsfield units (HU) for the diagnosis of hemopericardium. The area under curve (AUC) is 0.944 (95% CI 0.904–0.984) for the whole positive cohort (n = 100) (red line). A threshold of 24.5 was identified, which is encircled in red and shows the value for the calculation of both Youden’s formula and the “closest top left” formula. The x and y values of this datapoint are 0.897 (specificity) and 0.836 (sensitivity), respectively. Labeled in black are all positive cases with contrast (n = 58). Here, a threshold of 26.5 was calculated using Youden’s formula, with a sensitivity and specificity of 0.862 and 0.828 respectively. Labeled in gray are all positive cases without contrast (n = 42). A threshold of 21 was calculated using Youden’s formula, with a sensitivity and specificity of 1.00 and 0.844, respectively. The dashed red line demonstrates the location of an AUC of 0.5, which is a random classifier and would, therefore, be of no diagnostic use.
Figure 5. Receiver operating curve showing the sensitivity and specificity of Hounsfield units (HU) for the diagnosis of hemopericardium. The area under curve (AUC) is 0.944 (95% CI 0.904–0.984) for the whole positive cohort (n = 100) (red line). A threshold of 24.5 was identified, which is encircled in red and shows the value for the calculation of both Youden’s formula and the “closest top left” formula. The x and y values of this datapoint are 0.897 (specificity) and 0.836 (sensitivity), respectively. Labeled in black are all positive cases with contrast (n = 58). Here, a threshold of 26.5 was calculated using Youden’s formula, with a sensitivity and specificity of 0.862 and 0.828 respectively. Labeled in gray are all positive cases without contrast (n = 42). A threshold of 21 was calculated using Youden’s formula, with a sensitivity and specificity of 1.00 and 0.844, respectively. The dashed red line demonstrates the location of an AUC of 0.5, which is a random classifier and would, therefore, be of no diagnostic use.
Diagnostics 12 01045 g005
Figure 6. Segmentation volumes and a corresponding example CT with segmentation masks. (a) Violin plots of the volumes of the 22 cases in the external dataset. Each violin plot is color coded to match the corresponding volume calculation in (b). Pink = Model, gray/no mask = Autopsy, yellow = Reference. (b) PMCT in soft tissue windowing of a hemopericardium with aortic dissection. The model segmented 257 mL, the volume extracted at autopsy was 350 mL and the Reference segmented 290 mL.
Figure 6. Segmentation volumes and a corresponding example CT with segmentation masks. (a) Violin plots of the volumes of the 22 cases in the external dataset. Each violin plot is color coded to match the corresponding volume calculation in (b). Pink = Model, gray/no mask = Autopsy, yellow = Reference. (b) PMCT in soft tissue windowing of a hemopericardium with aortic dissection. The model segmented 257 mL, the volume extracted at autopsy was 350 mL and the Reference segmented 290 mL.
Diagnostics 12 01045 g006
Table 1. Model architecture.
Table 1. Model architecture.
DesignParameters
Image preprocessingImage downsampling to 1 × 1 × 1 mm3
Hard-/SoftwareMatlab R2018b and Python 3.7 on a workstation with a consumer-grade graphic processor unit (Nvidia RTX 2080Ti).
OptimizerSGD with Nesterov momentum (µ = 0.99)
Learning ratePoly-learning rate schedule (initial 0.01)
Data augmentationGaussian noise and blur, brightness, contrast, simulation of low resolution, gamma correction and mirroring
Loss functionDice and cross-entropy
Training procedure1000 epochs × 250 minibatches, foreground oversampling
Inference procedureSliding window with half-patch size overlap. Gaussian patch center weighting
Architecture templateEncoder-decoder with skip connection, instance normalization, leaky ReLU, deep supervision
Intensity normalizationGlobal dataset percentile clipping, z-score with global foreground mean and s.d.
Image resampling strategyIn-plane with third-order spline, out- of-plan with nearest neighbor
Annotation resampling strategyNearest neighbor interpolation to original spatial resolution
Image target spacingLowest resolution axis tenth percentile
Patch size(128, 128, 128)
Batch size2
Ensemble selection3D U-Net according to cross-validation performance
Table 2. Overview of patient characteristics in the test cohort.
Table 2. Overview of patient characteristics in the test cohort.
Positive CohortNegative CohortSignificance
Mean age63.155.9p < 0.001
Sex (male)n = 66n = 57p = 0.193
Table 3. Overview of inter-reader and reference-prediction results.
Table 3. Overview of inter-reader and reference-prediction results.
Inter-ReaderReference-Prediction
PEF volumeReader 1: 152.92 ± 134.85 mLReader 1: 152.92 ± 134.85 mL
Reader 2: 181.04 ± 131.55 mLPrediction: 184.20 ± 132.19 mL
(p = 0.105)(p = 0.062)
Correlation coefficientr2 = 0.930r2 = 0.925
Dice coefficient0.69 ± 0.10, median = 0.690.73 ± 0.10, median = 0.74
Table 4. Model performance and the effect of confounding factors.
Table 4. Model performance and the effect of confounding factors.
Reference-PredictionSignificance
PEF volumeReference: 198.20 ± 159.78 mLp = 0.875
Prediction: 201.50 ± 160.93
Correlation coefficientr2 = 0.929N/A
Dice coefficient0.75 ± 0.01, median = 0.76N/A
Effect of confounding factors assessed with Dice coefficient:
Contrast administrationContrast: 0.74 ± 0.19, median = 0.77p = 0.908
No contrast: 0.75 ± 0.09, median = 0.76
PEF size (>50 mL vs. >50 mL)<50 mL: 0.67 ± 0.17, median = 0.74p = 0.086
>50 mL: 0.75 ± 0.10, median = 0.77
Hemopericardium presenceHemopericardium: 0.72 ± 0.13, median = 0.73p = 0.097
No hemopericardium: 0.76 ± 0.09, median = 0.78
Pleural effusion presencePleural effusion: 0.73 ± 0.12, median = 0.74p = 0.116
No pleural effusion: 0.77 ± 0.08, median = 0.79
Other radiologically identified chest pathologyVisible pathology: 0.73 ± 0.12, median = 0.74p = 0.061
No visible pathology: 0.77 ± 0.09, median = 0.78
Radiologically identified pathology was defined as radiological evidence of chest trauma, infection, tumor, and post-operative changes.
Table 5. Using Hounsfield units for the classification of hemopericardium or simple PEF, and the effect of contrast on the classification.
Table 5. Using Hounsfield units for the classification of hemopericardium or simple PEF, and the effect of contrast on the classification.
HemopericardiumSimple PEFSignificance
Hounsfield unit (HU)36.10 ± 9.72, median = 3619.20 ± 5.52, median = 18p < 0.001
Affect of contrast on Hounsfield unit:
Presence of contrast36.86 ± 9.65, median = 3620.97 ± 6.35, median = 19p < 0.001
No contrast33.99 ± 10.08, median = 3517.59 ± 4.12, median = 17p < 0.001
Table 6. Volume of pericardial effusion identified on CT using autopsy, reference, and model.
Table 6. Volume of pericardial effusion identified on CT using autopsy, reference, and model.
Autopsy-Reference Reference-PredictionAutopsy-Prediction
PEF volumeAutopsy: 488.33 ± 232.41 mLReference: 515.26 ± 216.67 mLAutopsy: 488.33 ± 232.41 mL
Reference: 515.26 ± 216.67 mLPrediction: 301.69 ± 118.92 mLPrediction: 301.69 ± 118.92 mL
(p = 0.283)(p < 0.001)(p = 0.019)
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Wilder-Smith, A.J.; Yang, S.; Weikert, T.; Bremerich, J.; Haaf, P.; Segeroth, M.; Ebert, L.C.; Sauter, A.; Sexauer, R. Automated Detection, Segmentation, and Classification of Pericardial Effusions on Chest CT Using a Deep Convolutional Neural Network. Diagnostics 2022, 12, 1045. https://doi.org/10.3390/diagnostics12051045

AMA Style

Wilder-Smith AJ, Yang S, Weikert T, Bremerich J, Haaf P, Segeroth M, Ebert LC, Sauter A, Sexauer R. Automated Detection, Segmentation, and Classification of Pericardial Effusions on Chest CT Using a Deep Convolutional Neural Network. Diagnostics. 2022; 12(5):1045. https://doi.org/10.3390/diagnostics12051045

Chicago/Turabian Style

Wilder-Smith, Adrian Jonathan, Shan Yang, Thomas Weikert, Jens Bremerich, Philip Haaf, Martin Segeroth, Lars C. Ebert, Alexander Sauter, and Raphael Sexauer. 2022. "Automated Detection, Segmentation, and Classification of Pericardial Effusions on Chest CT Using a Deep Convolutional Neural Network" Diagnostics 12, no. 5: 1045. https://doi.org/10.3390/diagnostics12051045

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop