arXiv:2610.17933cs.CVOct 2026

Manuscript Offprint

arXiv:2610.17933

HierarchiRetina: A Diabetic Retinopathy Screening and Grading Cascade with Heterogeneous Mixture-of-Experts Lesion Segmentation

Md Asif Uddin, Niloy Farhan, Rafeed Rahman, Md. Golam Rabiul Alam

Md Asif Uddin, Niloy Farhan, Rafeed Rahman, and Md. Golam Rabiul Alam

Abstract—Clinical screening for diabetic retinopathy proceeds in stages, yet most automated systems grade fundus images with a single black-box network. Three gaps remain: (i) lesions differ widely in size and contrast, but segmenters typically apply the same blocks to all; (ii) ungradable images are usually excluded or treated as an extra class, and lesion-aware graders seldom test whether lesions drive the grade; (iii) staged systems often report each stage only on the images reaching it, leaving propagated errors unmeasured. HierarchiRetina, a screening, segmentation and grading cascade with inspectable stage outputs, addresses each gap. First, HSMoE-AUNet is a U-Net whose skip, bottleneck and decoder blocks are sparse mixtures of heterogeneous experts, with lesion-matched types, counts and losses; SwinHRUNetPP, a dual-encoder vessel segmenter, uses a field-of-view-restricted loss. Second, LG-DRG separates gradability from ordinal severity and lets lesion masks query the image through gated cross-attention. Third, an end-to-end evaluation counts screening misses as errors and traces each error to its stage. Pooled Dice ranged from 0.184 (microaneurysms) to 0.579 (exudates); vessel Dice was 0.731. On 58,689 held-out images from six datasets, end-to-end quadratic weighted kappa was 0.804, with referral sensitivity 0.832 at specificity 0.947, and the screening gate caused 66% of errors. In ablations, the grade ignored the masks, even with the cross-attention gate started open. On all 4,105 official DDR test images, six-class accuracy was 85.6%, above the best published six-class result we found (83.8%). Staged screening systems should be evaluated end-to-end, with stage attribution and mask ablation, before clinical deployment.

Index Terms—Diabetic retinopathy, lesion segmentation, mixture of experts, ordinal regression, screening cascade, vessel segmentation.

I. INTRODUCTION

DIABETIC retinopathy (DR) is a leading cause of preventable vision loss in working-age adults [1]. Fundus photographs are graded on a five-level scale [2], and some cannot be graded at all. Human graders typically decide first whether any retinopathy is present, then look for the lesions that define the grade (microaneurysms, MA; haemorrhages, HE; hard exudates, EX; cotton-wool spots, CWS), and assign a severity level or refer an image that cannot be read. Deep networks reach specialist-level referral accuracy [3], but most are black boxes that map the image to a grade.

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

This work received no external funding. (Corresponding author: Md Asif Uddin.)

The authors are with the Department of Computer Science and Engineering, Brac University, Dhaka, Bangladesh (e-mail: md.asif.uddin@g.bracu.ac.bd; niloy.farhan@bracu.ac.bd; rahman.rafeed@bracu.ac.bd; rabiul.alam@bracu.ac.bd).

References (35)