MedicalPatchNet: A Patch-Based Self-Explainable AI Architecture for Chest X-ray Classification

Patrick Wienholt, Christiane Kuhl, Jakob Nikolas Kather, Sven Nebelung, Daniel Truhn
9/9/2025
cs.CVcs.LG

Official code: TruhnLab/MedicalPatchNet (10 stars, MIT, last commit 2026-02-23).

Abstract

Deep neural networks excel in radiological image classification but frequently suffer from poor interpretability, limiting clinical acceptance. We present MedicalPatchNet, an inherently self-explainable architecture for chest X-ray classification that transparently attributes decisions to distinct image regions. MedicalPatchNet splits images into non-overlapping patches, independently classifies each patch, and aggregates predictions, enabling intuitive visualization of each patch's diagnostic contribution without post-hoc techniques. Trained on the CheXpert dataset (223,414 images), MedicalPatchNet matches the classification performance (AUROC 0.907 vs. 0.908) of EfficientNet-B0, while substantially improving interpretability: MedicalPatchNet demonstrates substantially improved interpretability with higher pathology localization accuracy (mean hit-rate 0.485 vs. 0.376 with Grad-CAM) on the CheXlocalize dataset. By providing explicit, reliable explanations accessible even to non-AI experts, MedicalPatchNet mitigates risks associated with shortcut learning, thus improving clinical trust. Our model is publicly available with reproducible training and inference scripts and contributes to safer, explainable AI-assisted diagnostics across medical imaging domains. We make the code publicly available: https://github.com/TruhnLab/MedicalPatchNet

View on arXivView PDF

Code Implementations(1)

MIT

MedicalPatchNet is a self-explainable deep learning architecture designed for medical classification that provides transparent and interpretable predictions without relying on post-hoc explanation methods.

101Shell, PythonAug 29, 20258 months agoMIT

Similar Papers

Cite this paper

@article{wienholt2025medicalpatchnet,
  title  = {MedicalPatchNet: A Patch-Based Self-Explainable AI Architecture for Chest X-ray Classification},
  author = {Patrick Wienholt and Christiane Kuhl and Jakob Nikolas Kather and Sven Nebelung and Daniel Truhn},
  year   = {2025},
  eprint = {2509.07477},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.07477v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.07477.svg)](https://codeofpaper.com/paper/2509.07477)

Discussion