POTHER: Patch-Voted Deep Learning-based Chest X-ray Bias Analysis for COVID-19 Detection

Tomasz Szczepanski, Arkadiusz Sitek, Tomasz Trzcinski, Szymon Plotka · DOI

Abstract

Deep learning models for COVID-19 detection from chest X-rays (CXRs) often suffer from the "Clever Hans" effect, where they rely on confounding biases (CBs) such as hospital-specific markers or clinical artifacts rather than actual lung pathology. We present POTHER (Patch-Voted Deep Learning-based method), a framework that mitigates these biases through multi-task learning and patch-based majority voting. By combining lung segmentation with classification on small, localized patches, POTHER ensures the model focuses on relevant medical features. Evaluated on the COVIDx dataset, POTHER achieves a COVID-19 F1-score of 0.974 and perfect precision, demonstrating superior robustness compared to standard whole-image classifiers.

Introduction

The rapid development of deep learning models for COVID-19 diagnosis has been hampered by the discovery that many high-performing models are "Clever Hans" predictors. These models learn to identify confounding biases (CBs) rather than clinical signs of pneumonia. Common CBs include laterality tokens ("L"/"R" markers), ECG leads, and hospital-specific text or logos. If a dataset contains a high prevalence of COVID-19 cases from a specific hospital, a model might learn that hospital's unique font as a shortcut for diagnosis. This reliance on non-medical features leads to poor generalization in real-world clinical settings.

Previous attempts to remove bias by segmenting lungs and placing them on black backgrounds often introduced new biases, such as the model relying on the artificial sharp edges of the segmented lung. POTHER addresses these challenges by restricting the model's field of view to small patches within the lung region.

Methods

POTHER utilizes a multi-task learning architecture based on a ResNet-50 encoder within a U-Net structure. The framework employs two primary strategies to combat bias:

Multi-Task Learning

The network is trained to simultaneously perform lung segmentation and classification. This forces the encoder to learn features relevant to lung morphology and boundaries, grounding the classification task in medical anatomy.

Patch-Based Voting

Instead of processing the entire CXR, POTHER operates on small $80 \times 80$ pixel patches.

  • Training: Patches are randomly sampled from a "draw area" covering 90% of the lung field, effectively excluding the peripheral areas where text markers and artifacts typically reside.
  • Inference: Multiple patches are extracted from a test image. Each patch is classified independently, and a majority voting scheme determines the final diagnosis. This redundancy ensures that if a single patch contains an artifact (e.g., a cable), its influence is minimized by the surrounding patches covering lung tissue.
Overview of the POTHER architecture, integrating lung segmentation (a) with a patch-based classification and voting pipeline (b).

Results and Explainability

POTHER was evaluated on the COVIDx dataset, which contains nearly 14,000 images across normal, pneumonia, and COVID-19 classes. The model achieved highly competitive results:

  • COVID-19 Precision: 1.000 (zero false positives for COVID-19).
  • COVID-19 F1-Score: 0.974, significantly outperforming COVID-Net (0.948) and standard ResNet-50 (0.902).
  • Overall Accuracy: 90.3%.

Explainability

Using Gradient-weighted Class Activation Mapping (GradCAM), we compared POTHER's focus with other state-of-the-art models. While standard models often "stared" at ECG leads, text markers, or shoulder positions, POTHER consistently focused on fine-grained lung markings and interstitial opacities. This visual evidence confirms that the patch-based approach successfully redirects the model's attention to relevant pathology.

Comparison of activation maps (GradCAM) between POTHER and existing methods, illustrating POTHER's focus on lung-specific features.

Discussion and Conclusion

POTHER demonstrates that robustness to bias can be achieved without sacrificing diagnostic performance. By forcing the model to look at small, localized regions within the lungs, the framework effectively filters out global confounding factors. While some individual patches may still be influenced by artifacts like cables, the majority voting system provides a robust safety net.

Future work will involve testing POTHER on larger, more diverse datasets with overlapping pathologies. Additionally, we aim to explore Vision Transformer (ViT) architectures to determine if global attention mechanisms can further enhance the distinction between pathological signs and clinical noise.

Summary updated

BibTeX
@inproceedings{szczepanski2022pother,
  author = {Tomasz Szczepanski and Arkadiusz Sitek and Tomasz Trzcinski and Szymon Plotka},
  title = {{POTHER: Patch-Voted Deep Learning-based Chest X-ray Bias Analysis for COVID-19 Detection}},
  booktitle = {ICCS},
  year = {2022},
  doi = {10.1007/978-3-031-08754-7\_51},
}
Figure