A Hybrid Fully Convolutional CNN-Transformer Model for Inherently Interpretable Disease Detection from Retinal Fundus Images

Kerol Djoumessi, Samuel Ofosu Mensah, Philipp Berens
4/11/2025
16 citations
cs.CVcs.AI
transformer-attention

Official code: kdjoumessi/Self-Explainable-CNN-Transformer (1 star, Python, MIT, last commit 2025-07-22).

Abstract

In many medical imaging tasks, convolutional neural networks (CNNs) efficiently extract local features hierarchically. More recently, vision transformers (ViTs) have gained popularity, using self-attention mechanisms to capture global dependencies, but lacking the inherent spatial localization of convolutions.

Show full abstract

Therefore, hybrid models combining CNNs and ViTs have been developed to combine the strengths of both architectures. However, such hybrid models are difficult to interpret, which hinders their application in medical imaging. In this work, we introduce an interpretable-by-design hybrid fully convolutional CNN-Transformer architecture for retinal disease detection. Unlike widely used post-hoc saliency methods for ViTs, our approach generates faithful and localized evidence maps that directly reflect the mode's decision process. We evaluated our method on two medical tasks focused on disease detection using color fundus images. Our model achieves state-of-the-art predictive performance compared to black-box and interpretable models and provides class-specific sparse evidence maps in a single forward pass. The code is available at: https://github.com/kdjoumessi/Self-Explainable-CNN-Transformer.

View on arXivView PDF

Code Implementations(1)

MIT
12PythonFeb 26, 20251 years agoMIT

Similar Papers

Cite this paper

@article{djoumessi2025hybrid,
  title  = {A Hybrid Fully Convolutional CNN-Transformer Model for Inherently Interpretable Disease Detection from Retinal Fundus Images},
  author = {Kerol Djoumessi and Samuel Ofosu Mensah and Philipp Berens},
  year   = {2025},
  eprint = {2504.08481},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.08481v4}
}

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/2504.08481.svg)](https://codeofpaper.com/paper/2504.08481)

Discussion