Manuscript Offprint
arXiv:2611.09309Interpretable Context-Aware Multi-Label Retinal Classification with Dual-Hub Heterogeneous Graph Neural Network
ABSTRACT
Multi-label retinal screening requires capturing co-occurring pathologies and clinical context, yet standard multimodal fusion remains opaque. We propose a dual-hub heterogeneous graph neural network (GNN) that couples spatial fundus features and structured clinical covariates through cross-modal message passing while providing inherent interpretability. Rather than relying on post-hoc saliency approximations, our architecture exposes multi-level decision pathways during forward aggregation: spatially biased self-attention captures lesion-level patch interactions, while modality-specific graph attention coefficients explicitly quantify the contribution of visual regions and clinical risk factors to each disease node. Evaluated on the BRSET dataset (16,266 photographs from 8,524 patients), the proposed model achieves 76.1% Macro-AUPRC across seven conditions, matching or exceeding image-only (75.9%) and ResNet-50+MLP fusion (75.9%) baselines, with largest contextual gains in macular edema (+3.5%) and diabetic retinopathy (+2.1%). Codebase is available at: https://github.com/proshanto-c/ca-mlc-refactor.
Index Terms— Retinal fundus imaging, multi-label classification, multimodal fusion, graph neural network.
1. INTRODUCTION
Fundus photography (FP) is widely used to screen for retinal conditions including increased cup-to-disc ratio (ICD), diabetic retinopathy (DR), and age-related macular degeneration (AMD) [1]. Multiple pathologies can co-occur, motivating multi-label classification, with large-scale studies demonstrating the feasibility of joint retinal disease screening [2]. Beyond image appearance, patient history and systemic factors can provide complementary information, with multimodal approaches demonstrating the benefits of integrating clinical records into retinal disease prediction [3].
Automated retinal screening has traditionally used independent classifiers [4], while recent multi-label approaches increasingly explore relationships between labels. LAGNet [5] uses label-attention graphs to model disease correlations, while Label-Aware Dual graph neural networks (GNNs) [6] combine multimodal features with population-level and
pathology graphs. Conventional multimodal approaches also combine pooled image features and tabular variables through feature fusion [3]. However, such fusion baselines operate as opaque black boxes, relying on uncalibrated, post hoc saliency maps that cannot faithfully resolve fine-grained lesion interactions or explain cross-modal feature routing.
In this paper, we propose an examination-level heterogeneous GNN that decouples spatial fundus patches and clinical covariates into dedicated visual and clinical hubs with cross-modal message passing to seven disease nodes. A central contribution of our architecture is an attention-based design that provides intrinsic, multi-level interpretability without post hoc attribution: spatially biased self-attention highlights fine-grained lesion-to-patch interactions, while Graph Attention Network (GAT) pooling explicitly reveals how spatial patches and clinical covariates are weighted during evidence aggregation. On BRSET [7], the model achieves 76.1% Macro-Area Under Precision Recall Curve (AUPRC) across seven conditions, matching conventional fusion while surpassing image-only multi-label baselines in macular edema (+3.5%) and diabetic retinopathy (+2.1%).
2.1. BRSET Dataset and Cohort Formulation
We evaluate on the Brazilian Multilabel Ophthalmological Dataset (BRSET) [7] (16,266 fundus photographs from 8,524 patients). We evaluate 7 conditions with marked class imbalance: increased cup-to-disc ratio (ICD, 20.4% test prevalence), drusen (18.1%), diabetic retinopathy (DR, 6.8%), macular edema (ME, 2.6%), chorioretinal scar (1.9%), age-related macular degeneration (AMD, 1.8%), and myopic fundus (MF, 1.5%).
Beyond retinal imagery, BRSET provides structured clinical history. We use 25 variables: age, sex, diabetes duration,

Fig. 1. Architecture overview. Within each examination, patch tokens and clinical covariates are decoupled into modality hubs (, ) that exchange cross-modal evidence before routing to disease label nodes. FC edges denote full connectivity.
insulin use, eye laterality, and binary indicators for the 20 most prevalent systemic comorbidities. In context-enabled graph models, these variables are represented as clinical nodes. Eye laterality is also embedded in the image hub. Image-only GNNs retain laterality in the image hub but omit other clinical variables; thus, “Img” denotes image features with examination laterality, not the complete absence of metadata. Patient-level multi-label stratification (70%/15%/15% train/validation/test) is used to ensure that all images pertaining to one patient are in the same partition.
2.2. Spatially Biased Visual Encoding
Given a fundus image , an ImageNet-pretrained ResNet-50 backbone (fine-tuned end-to-end) extracts feature map , yielding patch tokens and a global average-pooled descriptor . Separate stepped multilayer perceptron (MLP) encoders project the patch tokens and global descriptor into a shared -dimensional space, with selected from the tuning grid described in Sec. 3: and .
Patch tokens undergo multi-head scaled dot-product attention (SDPA) with a 2D Gaussian spatial bias to model relationships between spatial locations:
where , is the 2D grid coordinate, , and is a learnable head-specific scale initialized to 1.0. This adds a distance-dependent bias to the attention logits while retaining content-dependent interactions between spatially separated patches.
2.3. Dual-Hub Heterogeneous GNN
Continuous covariates (age, diabetes duration) are standardized using training statistics and paired with missingness
flags before MLP projection; categorical variables are mapped through learned entity embeddings with an explicit unknown token. Disease label nodes are initialized as learned embedding vectors () with target labels excluded from node inputs. Clinical and disease label nodes each form fully connected (FC) subgraphs with self-loops, weighted by signed Pearson correlations, and , computed over the training set, retained as edge attributes.
At each of the heterogeneous layers, patch tokens are first updated via spatially biased self-attention (Eq. 1). Modality hubs ( and ) then aggregate evidence from their respective sub-graphs via Graph Attention Network (GAT) pooling, where scalar edge attributes (unit weights for bipartite pooling, and signed Pearson correlations for clinical and label subgraphs) modulate attention logits to yield normalized aggregation coefficients . A bidirectional image–patient bridge enables cross-modal information exchange between and , after which both hubs route information to the disease label nodes.
2.4. Label-Specific Prediction
Disease nodes produce multi-label predictions via , where is an MLP and output bias is initialized to empirical training log-odds ) for positive cases out of training samples. We optimize positive-weighted binary cross-entropy () with square-root dampened weights to address severe class imbalance. Per-condition decision thresholds are selected on the validation set to maximize .
3. EXPERIMENTS AND RESULTS
The Context-Only, Single-Label (Img), Multi-Label (Img), and Dual Hub configurations are GNNs implemented in PyTorch Geometric; the ResNet-50 (Img+Ctx) baseline is a
Table 1. Test performance (mean ± std across five seeds, in %). Context-Only, Single-Label (Img), Multi-Label (Img), and Proposed are GNN configurations; ResNet-50 (Img+Ctx) is the ResNet-50+MLP feature fusion baseline. Bold denotes the best score among image-based and multimodal configurations.
| Target | Context-Only | Single-Label (Img) | Multi-Label (Img) | ResNet-50 (Img+Ctx) | Dual-Hub GNN | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| AUPRC | AUPRC | AUPRC | AUPRC | AUPRC | ||||||
| ICD | 31.0 ± 1.3 | 39.8 ± 0.9 | 78.7 ± 1.7 | 71.2 ± 1.4 | 73.4 ± 3.2 | 67.9 ± 3.3 | 73.1 ± 2.3 | 68.2 ± 1.7 | 74.0 ± 2.3 | 68.6 ± 1.5 |
| Drusen | 33.5 ± 0.5 | 34.3 ± 1.0 | 76.4 ± 0.7 | 70.2 ± 1.0 | 75.2 ± 1.8 | 68.1 ± 1.0 | 72.2 ± 2.3 | 68.0 ± 0.6 | 75.3 ± 1.4 | 68.3 ± 1.1 |
| DR | 44.8 ± 1.8 | 51.0 ± 2.2 | 87.3 ± 2.0 | 81.3 ± 3.3 | 84.5 ± 1.3 | 78.8 ± 2.3 | 87.2 ± 1.3 | 81.2 ± 1.0 | 86.6 ± 1.4 | 81.2 ± 1.5 |
| ME | 27.2 ± 4.8 | 30.0 ± 6.3 | 77.1 ± 5.7 | 68.6 ± 7.0 | 81.7 ± 2.4 | 75.7 ± 2.1 | 86.0 ± 2.1 | 77.1 ± 2.4 | 85.2 ± 0.8 | 77.4 ± 0.9 |
| Scar | 2.9 ± 0.5 | 4.0 ± 0.5 | 83.7 ± 1.9 | 80.6 ± 4.7 | 84.2 ± 3.4 | 81.1 ± 2.6 | 83.0 ± 4.3 | 78.4 ± 6.0 | 83.8 ± 1.7 | 78.9 ± 0.7 |
| AMD | 14.9 ± 0.7 | 26.1 ± 3.7 | 56.7 ± 2.7 | 51.1 ± 3.5 | 55.3 ± 6.5 | 54.0 ± 7.2 | 57.4 ± 3.4 | 54.9 ± 2.0 | 53.4 ± 7.1 | 55.2 ± 4.4 |
| MF | 3.0 ± 0.5 | 4.5 ± 2.0 | 66.8 ± 8.6 | 61.9 ± 8.3 | 76.8 ± 3.8 | 69.1 ± 5.9 | 72.5 ± 7.2 | 67.4 ± 7.0 | 74.6 ± 4.2 | 64.6 ± 6.9 |
| Macro | 22.5 ± 0.7 | 27.1 ± 1.7 | 75.2 ± 1.3 | 69.3 ± 1.6 | 75.9 ± 0.6 | 70.6 ± 1.5 | 75.9 ± 1.5 | 70.7 ± 2.0 | 76.1 ± 1.1 | 70.6 ± 0.9 |
ResNet-50+MLP model implemented in PyTorch. Models are trained across five random seeds for 150 epochs using positive-weighted binary cross-entropy and AdamW (learning rate , 15-epoch linear warmup). Images are resized to , horizontally flipped, and ImageNet-normalized. Checkpoints are selected by validation Macro-AUPRC. GNNs use three GAT layers ( heads). Hyperparameters are selected by validation performance from and dropout . For the independently trained single-label GNNs, hyperparameters were tuned separately for each target: MF and drusen selected and , while the remaining targets selected and . The multi-label GNNs use a shared configuration across their label nodes, selected at the model level.
The ResNet-50 (Img+Ctx) baseline concatenates global average-pooled ResNet features with a two-layer MLP projection of the clinical variables, providing a conventional feature fusion comparison. Decision thresholds are selected on validation . We report AUPRC and ; AUROC exceeded 0.92 across conditions and is omitted for brevity.
3.1. Classification Performance
Table 1 reports test performance for the GNN configurations and the ResNet-50+MLP baseline. The proposed dual-hub GNN obtains Macro-AUPRC, comparable to the ResNet-50+MLP feature fusion baseline (). Conventional fusion leads on DR (+0.6%) and ME (+0.8%), while the GNN leads on four of the seven conditions, especially drusen (+3.1%) and MF (+2.1%). Neither approach consistently dominates, but the dual-hub GNN directly exposes patch-to-image-hub and clinical-to-patient-hub attention during aggregation, without requiring post hoc attribution for these operations. This provides a structured alternative to conventional feature concatenation while maintaining competitive predictive performance.
The effect of adding clinical context varies by condition. Relative to the image-only multi-label GNN, context changes AUPRC by +0.6 points (ICD), +0.1 (drusen), +2.1 (DR), +3.5 (ME), -0.4 (scar), -1.9 (AMD) and -2.2 (MF). Gains are largest for DR and ME, consistent with the potential relevance of diabetes-related covariates; contextual benefits vary across diseases.
3.2. Attention Analysis
Figure 2 compares visual representations for representative ICD, DR, and AMD test images. Layer-0 patch-to-hub GAT attention () is averaged across heads, upsampled to via bicubic spline interpolation with Gaussian smoothing (), and min-max normalized. Unlike post hoc Gradient-weight Class Activation Mapping (Grad-CAM) attribution, GAT attention directly represents the weighting of spatial features during patch-to-hub aggregation. In the examples shown, these attention maps concentrate on focal retinal regions, including the optic disc margin in ICD, micro-aneurysm and hemorrhage clusters in DR, and central drusen in AMD. Yellow stars indicate the two highest-attended patch locations. Spatially biased self-attention additionally visualizes interactions between patch tokens. The clinical branch similarly exposes attention coefficients () over patient covariates, enabling direct inspection of modality-specific information aggregation.
4. DISCUSSION
The results show that structured clinical context can be incorporated into multi-label retinal classification while maintaining performance comparable to image-only and conventional feature fusion approaches. The dual-hub design preserves separate spatial and clinical representations while enabling information exchange before disease prediction. This provides a structured alternative to direct feature concatenation and exposes modality-specific attention during aggregation. The disease-dependent performance changes further suggest that the value of clinical context depends on the relationship between recorded covariates and target pathology.

Fig. 2. Visualisation of interpretability approaches on ICD, DR, and AMD examples. Original image and Grad-CAM on the ResNet50+MLP are Column 1 and 2 (left-to-right) respectively. Right two columns show Dual-Hub GNN attention visualisations. Column 3 shows attention for patch-to-hub edges. Column 4 shows patch-to-patch attention. Stars mark the two highest-attended GAT patches.
5. CONCLUSION
We present a dual-hub heterogeneous GNN for context-aware multi-label retinal classification. The model achieves 76.1% Macro-AUPRC, comparable to the image-only multi-label GNN and ResNet-50+MLP feature fusion baseline, with the largest gains over the image-only multi-label model observed for DR and ME. By separating fundus images and clinical history into dedicated, interacting hubs, our model predicts co-occurring diseases while keeping the cross-modal attention weights fully interpretable.
6. COMPLIANCE WITH ETHICAL STANDARDS
This study used retrospective, de-identified BRSET data accessed under the PhysioNet Credentialed Health Data License. Ethical approval was not required, as confirmed by the license attached to the data.
7. ACKNOWLEDGMENTS
The authors acknowledge the use of the services/facilities of the Institute of Biomedical Engineering (IBME), Department of Engineering Science, University of Oxford. The authors express no conflicts of interest. PC is supported by the Crankstart Graduate Scholarship in partnership with the EPSRC Doctoral Landscape Award. TZ is supported by the Royal Academy of Engineering under the Research Fellowship scheme. AB is supported by the Royal Society University Research Fellowship (Grant No. URF\R1\221314).
8. REFERENCES
[1] D.S.W. Ting et al., “Deep learning in ophthalmology: The technical and clinical considerations,” Progress in Retinal and Eye Research, vol. 72, pp. 100759, 2019. [2] L.-P. Cen et al., “Automatic detection of 39 fundus diseases and conditions in retinal photographs using deep neural networks,” Nature Communications, vol. 12, pp. 4828, 2021. [3] M. Hsu et al., “Deep learning for automated diabetic retinopathy screening fused with heterogeneous data from EHRs can lead to earlier referral decisions,” Translational Vision Science & Technology, vol. 10, no. 9, pp. 18–18, 08 2021. [4] V. Gulshan et al., “Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs,” JAMA, vol. 316, no. 22, pp. 2402–2410, 2016. [5] H. Liang et al., “LAGNet: Label attention graph networks for ocular disease classification using fundus images,” in 2024 IEEE International Symposium on Biomedical Imaging (ISBI), 2024, pp. 1–5. [6] Y. Liu et al., “Label-aware dual graph neural networks for multi-label fundus image classification,” IEEE Journal of Biomedical and Health Informatics, vol. 29, no. 4, pp. 2731–2743, 2025. [7] L.F. Nakayama et al., “BRSET: A Brazilian multilabel ophthalmological dataset of retina fundus photos,” PLOS Digital Health, vol. 3, no. 7, pp. e0000454, 2024.