A Dual Edge Spatial Jacobian Image Graph for Interpretable Diabetic Retinopathy Grading

Inam Ullah, Imran Razzak, Shoaib Jameel
6/23/2026
eess.IVcs.CVstat.ML

Official code: Inamullah-Colab/dual-edge-dr-graph-xai (1 star, Python, MIT, last commit 2026-06-24).

Abstract

Automated diabetic retinopathy (DR) grading from colour fundus photographs can achieve strong predictive performance, but clinical interpretation requires more than an image-level label. It requires understanding how lesion evidence is distributed around retinal vessels and how this evidence relates to quantitative vascular biomarkers.

Show full abstract

We present a dual-edge spatial-Jacobian image graph for interpretable DR grading. Each fundus image is represented as a graph node with four aligned evidence streams: AutoMorph vessel information ($X_1$), DR-XAI-style lesion evidence maps ($X_2$), a 128-dimensional lesion-based contrastive image embedding ($X_3$), and AutoMorph morphometric biomarkers ($X_4$). The spatial edge branch ($X_{12}$) encodes vessel-lesion geometry, while the Jacobian branch ($X_{34}$) models embedding-biomarker sensitivity. Lightweight two-token attention fuses both edge families into a final image graph. On 2,910 matched non-augmented APTOS images, the full graph achieves 0.8076 accuracy, 0.8312 quadratic weighted kappa, 0.5915 macro-F1, and 0.9330 adjacent-grade accuracy; referable DR reaches 0.9055 accuracy and 0.9711 AUROC. The framework is positioned as an explainable representation-learning tool for lesion-biomarker hypothesis generation, rather than as a deployment-ready clinical classifier. The code is available at https://github.com/Inamullah-Colab/dual-edge-dr-graph-xai.

View on arXivView PDF

Code Implementations(1)

MIT

This repository is available for the spatial-vessel graph for interpretable diabetic retinopathy grading.

10PythonJun 22, 20265 months agoMIT

Similar Papers

Cite this paper

@article{ullah2026dual,
  title  = {A Dual Edge Spatial Jacobian Image Graph for Interpretable Diabetic Retinopathy Grading},
  author = {Inam Ullah and Imran Razzak and Shoaib Jameel},
  year   = {2026},
  eprint = {2606.24168},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.24168v1}
}

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

Discussion