Manuscript Offprint

arXiv:2608.28207

Explainable Diabetic Retinopathy Classification Using Vision Foundation Models

Abhishek Verma, Anila Krishna, Abhishek Gajanan Bankar, Juan Miguel Lopez Alcaraz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Diabetic retinopathy (DR) is a major cause of preventable blindness, creating a need for accurate and trustworthy automated screening. This study investigates an explainable DR classification framework using vision foundation models and multiple transfer learning strategies. Three backbones, DINOv2, CLIP, and Vision Transformer (ViT), were evaluated using full fine-tuning, linear probing, and Low-Rank Adaptation (LoRA). Models were trained and internally evaluated on the ODIR dataset and externally evaluated on APTOS to assess generalization. DINOv2-LoRA achieved the highest internal AUROC of 0.758, while DINOv2 full fine-tuning and ViT full fine-tuning achieved the highest external AUROC of 0.920. Calibration was further assessed using reliability analysis after isotonic regression. For explainability, Grad-CAM and HiResCAM were evaluated against expert-annotated lesion masks from the IDRiD dataset using Dice, Intersection over Union (IoU), and Pointing Game metrics. The results demonstrate that foundation models, particularly DINOv2, can provide strong predictive performance, while LoRA offers a parameter-efficient alternative to full fine-tuning. Quantitative evaluation of explanation maps further supports the assessment of whether model attention corresponds to clinically relevant retinal lesions.

Index Terms— Diabetic Retinopathy; Vision Foundation Models; DINOv2; CLIP; Explainable AI; Medical Imaging

1. INTRODUCTION

References (27)

  • Diabetic Retinopathy
  • Development and Validation of a Deep Learning Algorithm for Detection of Diabetic Retinopathy in Retinal Fundus Photographs
  • On the Opportunities and Risks of Foundation Models
  • Foundation Models for Medical Imaging: A Comprehensive Survey and Future Vision
  • Benchmarking ECG FMs: A reality check across clinical tasks
  • A Foundation Model for Generalizable Disease Detection From Retinal Images
  • Learning Transferable Visual Models From Natural Language Supervision
  • DINOv2: Learning Robust Visual Features without Supervision
  • XAI—Explainable Artificial Intelligence
  • A Survey on Explainable Artificial Intelligence (XAI): Toward Medical XAI
  • Grad-CAM: Visual Explanations From Deep Networks via Gradient-Based Localization
  • Explainable Artificial Intelligence: Understanding, Visualizing and Interpreting Deep Learning Models
  • Using explainable AI to investigate electrocardiogram changes during healthy aging—from expert features to raw signals
  • Explainable machine learning for neoplasms diagnosis via electrocardiograms: an externally validated study
  • Use and Misuse of Saliency Methods in Explainable AI
  • IDRiD: Diabetic Retinopathy Segmentation and Grading Challenge
  • Development and Validation of a Deep Learning System for Diabetic Retinopathy and Related Eye Diseases Using Retinal Images from Multietnic Populations
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • APTOS 2019 Blindness Detection Challenge
  • LoRA: Low-Rank Adaptation of Large Language Models
  • Use HiResCAM Instead of Grad-CAM for Faithful Explanations of Convolutional Neural Networks (opens arXiv in a new tab)
  • Quantifying Attention Flow in Transformers
  • Grad-CAM++: Improved Visual Explanations for Deep Convolutional Networks
  • Score-CAM: Score-Weighted Visual Explanations for Convolutional Neural Networks
  • Eigen-CAM: Class Activation Map Using Principal Components
  • On Calibration of Modern Neural Networks
  • A multimodal deep learning framework for predicting ICU deterioration: Integrating ECG waveforms with clinical data and clinician benchmarking (opens arXiv in a new tab)