DeepCOVIDExplainer: Explainable COVID-19 Predictions Based on Chest X-ray Images

Md. Rezaul Karim, Till Döhmen, Dietrich Rebholz-Schuhmann, Stefan Decker, Michael Cochez, Oya BeyanarXiv 2020

Abstract

DeepCOVIDExplainer is an explainable deep learning framework designed to detect COVID-19 from chest X-ray (CXR) images using a neural ensemble of state-of-the-art architectures. By integrating advanced visualization techniques like Grad-CAM++ and Layer-wise Relevance Propagation (LRP), the system moves beyond "black box" predictions to provide clinicians with human-interpretable heatmaps of infected lung regions. This approach addresses the critical need for transparent and trustworthy AI tools in clinical diagnostics.

Introduction

While RT-PCR tests remain the gold standard for COVID-19 diagnosis, they are often labor-intensive and subject to supply chain bottlenecks. Chest X-rays (CXR) offer a faster, more accessible screening alternative; however, distinguishing COVID-19 from other viral or bacterial pneumonias is challenging for the human eye. Existing AI solutions often struggle with the "black box" problem—providing diagnoses without clinical justification—and data quality issues, where models inadvertently learn to identify hospital-specific artifacts rather than biological pathology.

Methodology

The DeepCOVIDExplainer pipeline consists of three primary stages: rigorous preprocessing, snapshot ensemble learning, and an explainability (XAI) suite.

Preprocessing and Data

The study utilized the COVIDx dataset, a comprehensive compilation of 15,959 CXR images from 15,854 patients across three classes: Normal, Non-COVID Pneumonia, and COVID-19. To ensure the model focused on biological features, the authors applied histogram equalization for contrast, Perona-Malik filters for noise reduction, and in-painting techniques to remove textual artifacts (e.g., "L" and "R" markers) that could lead to "clever Hans" effects.

Snapshot Ensemble Learning

Instead of a single model, the framework employs an ensemble of six architectures (VGG-16/19, ResNet-18/34, and DenseNet-161/201). Using Cyclic Cosine Annealing (CAC), the models converge to multiple local minima during a single training run, effectively creating a "panel of experts" from weight snapshots.

Explainability (XAI) Suite

The core innovation involves generating class-discriminating attention maps to visualize the model's decision-making process. The authors compared Grad-CAM, Grad-CAM++, and Layer-wise Relevance Propagation (LRP) to identify which provided the most clinically relevant localization.

The DeepCOVIDExplainer explainability pipeline integrating Grad-CAM++ and feature extraction.

Key Results and Insights

The ensemble approach demonstrated superior performance and reliability compared to individual models. DenseNet-161 emerged as the strongest individual architecture, likely due to its ability to preserve subtle spatial information through feature map concatenation.

  • High Precision: The ensemble achieved a Positive Predictive Value (PPV) of 96.12% for COVID-19.
  • Balanced Performance: The model reached an F1-score of 94.6% across all classes on a balanced dataset.
  • Clinical Sensitivity: Out of 129 COVID-19 test samples, only 5 were misclassified (3 as pneumonia, 2 as normal), ensuring high sensitivity for triage.
Confusion matrix showing the ensemble model's performance across Normal, Pneumonia, and COVID-19 classes.

In terms of explainability, Grad-CAM++ was found to produce the most reliable heatmaps for clinical use, as it effectively highlighted "conjoined features"—larger areas of bilateral lung involvement typical of COVID-19—more accurately than standard Grad-CAM or pixel-level LRP.

Conclusion

DeepCOVIDExplainer demonstrates that combining ensemble learning with robust preprocessing and XAI techniques can produce a diagnostic tool that is both highly accurate and transparent. While the heatmaps align with known clinical presentations, future work requires validation by practicing radiologists and the integration of multi-modal data, such as patient clinical history, to further enhance diagnostic utility.

Summary updated

BibTeX
@misc{karim2020deepcovidexplainer,
  author = {Md. Rezaul Karim and Till Döhmen and Dietrich Rebholz-Schuhmann and Stefan Decker and Michael Cochez and Oya Beyan},
  title = {{DeepCOVIDExplainer: Explainable COVID-19 Predictions Based on Chest X-ray Images}},
  year = {2020},
  eprint = {2004.04582},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.04582},
}
Figure