NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unveiling COVID-19 from Chest X-ray with deep learning: a hurdles race with small data

Enzo Tartaglione, Carlo Alberto Barbano, Claudio Berzovini, Marco Calandri, Marco Grangetto · DOI

Abstract

The possibility to use widespread and simple chest X-ray (CXR) imaging for early screening of COVID-19 patients is attracting much interest from both the clinical and the AI community. In this study we provide insights and also raise warnings on what is reasonable to expect by applying deep-learning to COVID classification of CXR images. We provide a methodological guide and critical reading of an extensive set of statistical results that can be obtained using currently available datasets. In particular, we take the challenge posed by current small size COVID data and show how significant can be the bias introduced by transfer-learning using larger public non-COVID CXR datasets. We also contribute by providing results on a medium size COVID CXR dataset, just collected by one of the major emergency hospitals in Northern Italy during the peak of the COVID pandemic. These novel data allow us to contribute to validate the generalization capacity of preliminary results circulating in the scientific community. Our conclusions shed some light into the possibility to effectively discriminate COVID using CXR.

Introduction: The "Hurdles Race" of COVID-19 Detection

Early in the pandemic, the AI community rushed to develop diagnostic tools for COVID-19. While RT-PCR remains the gold standard, its time-consuming nature and limited availability in some regions made Chest X-ray (CXR) an attractive, portable alternative. However, early-stage COVID-19 findings are often subtle and overlap significantly with other viral pneumonias.

This study identifies a critical "hurdles race" in this domain: the extreme scarcity of high-quality COVID-19 image datasets. When deep learning models are trained on tiny datasets—often combining images from disparate sources to create "positive" and "negative" groups—they are prone to "shortcut learning." Instead of identifying lung opacities, models may learn to recognize specific scanner types, medical devices, or even text annotations present in one dataset but not another.

Methodology

The authors propose a standardized deep learning pipeline designed to mitigate these inherent biases through several key steps:

  1. Pre-processing: To normalize image contrast and intensity across different imaging sources, the authors utilize histogram equalization.
Histogram equalization is applied to normalize image contrast across different datasets.
  1. Lung Segmentation: To prevent the model from focusing on "non-lung" features (such as hospital tags or ECG leads), a U-Net is trained to segment only the lung fields, discarding the rest of the image.
  2. Transfer Learning: The study evaluates whether pre-training models on large, non-COVID pneumonia datasets (like the RSNA Pneumonia Detection Challenge) improves performance on COVID-19 detection.
  3. Architectural Comparison: The researchers compared ResNet-18, ResNet-50, and a custom 8-layer "Conv8" model to determine if deeper networks provide genuine performance gains or simply overfit the limited data.

Addressing Hidden Biases

A major contribution of this work is the exposure of the "Hidden Bias" trap. Using t-SNE visualizations, the authors demonstrate that models can easily cluster images by their source dataset rather than the pathology. If positive cases come from one source and negative cases from another, the model learns to distinguish the sources, not the disease.

Segmentation is essential to combat this. By cropping the image to just the lungs, the authors successfully removed many spurious correlations, forcing the model to analyze the actual lung parenchyma.

Lung segmentation (right) effectively removes external artifacts like medical devices (left) that can cause model bias.

Key Results and Generalization

The study utilizes several datasets, including CORDA, a novel dataset from a major emergency hospital in Northern Italy containing 447 CXRs.

  • Realistic Performance: When training on the CORDA dataset with RSNA pre-training, the model achieved a Sensitivity of 0.54 and a Specificity of 0.80. While lower than some early "black-box" studies, these figures represent a more honest assessment of clinical utility.
  • Cross-Dataset Failure: Models that achieved near-perfect scores on their native test sets often saw performance plummet when tested on external datasets (e.g., training on public COVID-ChestXRay and testing on CORDA). This confirms that many early models learned dataset-specific biases rather than COVID-19 "fingerprints."
  • Deeper isn't Better: In small-data regimes, ResNet-50 showed signs of overfitting compared to the shallower ResNet-18, suggesting simpler architectures are more robust when data is scarce.

Conclusion

While CXR-based AI shows promise, it is not yet a standalone diagnostic tool. The primary limitation remains data volume and the lack of granular metadata (age, sex, comorbidities) to control for further biases. Future work must focus on massive, multi-center data collection and the development of "bias-proof" architectures capable of truly distinguishing COVID-19 from other interstitial lung diseases.

Summary updated

BibTeX
@article{tartaglione2020unveiling,
  author = {Enzo Tartaglione and Carlo Alberto Barbano and Claudio Berzovini and Marco Calandri and Marco Grangetto},
  title = {{Unveiling COVID-19 from Chest X-ray with deep learning: a hurdles race with small data}},
  journal = {International Journal of Environmental Research and Public Health},
  year = {2020},
  doi = {10.3390/ijerph17186933},
}
Figure