A quantum-inspired cross-attention fusion network for multi-class eye disease classification from retinal fundus images
Open Access
- 16 October 2026
- journal article
- research article
- Published by Frontiers Media SA in Frontiers in Ophthalmology
- Vol. 6, 1975827
Abstract
Automated screening of blinding eye diseases from colour fundus photographs is an active area of medical image analysis, yet many reported systems are validated on a single dataset and offer limited insight into their internal decision process. This study introduces QICAF-Net, a dual-branch deep learning framework that couples a Swin Transformer global-context branch with an EfficientNet local-lesion branch and fuses their representations through a novel Quantum-Inspired Cross-Attention Fusion (QICAF) module. The QICAF module reformulates cross-attention using the mathematical formalism of quantum states: token features are amplitude-encoded as complex unit vectors, transformed by a learnable norm-preserving unitary gate, compared through a fidelity-inspired similarity, normalised by a Born-rule measurement rule, and combined through an entanglement-inspired bilinear interaction. All operations are executed as classical linear algebra on conventional graphics hardware; no physical quantum computer and no quantum speed-up are claimed. The model was trained and evaluated on a balanced four-class retinal dataset of 4,217 fundus images spanning cataract, diabetic retinopathy (DR), glaucoma and normal categories. Under stratified five-fold cross-validation with six-view test-time augmentation (TTA), QICAF-Net attained a macro-F1 of 0.9358 ± 0.0113, an accuracy of 0.9367 ± 0.0112 and a macro one-versus-rest area under the receiver operating characteristic curve (AUC) of 0.9914 ± 0.0023; a three-seed evaluation of the full model gave a macro-F1 of 0.9420 ± 0.0071. An 18-run multi-seed component ablation (six fusion configurations × three seeds) confirmed that the quantum-inspired components achieve accuracy statistically indistinguishable from strong classical fusion baselines, and a paired three-seed significance test between QICAF-Net and a matched dual-branch concatenation model returned no statistically significant accuracy difference (paired t-test p = 0.887; Wilcoxon p = 1.000). Against five single-backbone baselines under an identical preprocessing and TTA protocol, QICAF-Net was competitive but did not exceed the strongest backbones (Swin-Tiny 0.9583, ViT-Small 0.9487). The principal contribution of the module is therefore a novel and interpretable formulation rather than a raw accuracy gain. External validation on a heterogeneous independent cohort (N = 3,907) showed heterogeneous cross-dataset transfer — better preserved for cataract and normal and substantially degraded for glaucoma; under an observed external-domain shift the diabetic-retinopathy sensitivity fell to 39.61%, and under colour-constancy correction with six-view TTA the external accuracy was 0.8741 (95% CI 0.8633–0.8841) and the macro-F1 0.7188 (95% CI 0.6969–0.7398). Two complementary explainability methods together with visualisation of the QICAF attention indicated that the model attends to clinically plausible regions, most strongly the optic nerve head for glaucoma. Calibration, quantitative explanation-faithfulness (deletion/insertion) and profiler-based computational analyses were additionally performed. QICAF-Net is thus presented as an interpretable and transparently evaluated framework whose accuracy is on par with established fusion strategies while contributing a new attention formulation to the retinal imaging literature.Keywords
This publication has 36 references indexed in Scilit:
- A novel method for the detection and classification of multiple diseases using transfer learning-based deep learning techniques with improved performanceNeural Computing and Applications, 2024
- Computer-aided multi-label retinopathy diagnosis via inter-disease graph regularizationBiomedical Signal Processing and Control, 2024
- Supervised fine-tuned approach for automated detection of diabetic retinopathyMultimedia Tools and Applications, 2023
- Artificial Intelligence for Screening of Multiple Retinal and Optic Nerve DiseasesJAMA Network Open, 2022
- Diabetic retinopathy detection through convolutional neural networks with synaptic metaplasticityComputer Methods and Programs in Biomedicine, 2021
- Deep learning architecture based on segmented fundus image features for classification of diabetic retinopathyBiomedical Signal Processing and Control, 2021
- Multi-label ocular disease classification with a dense correlation deep neural networkBiomedical Signal Processing and Control, 2021
- Microaneurysm detection in color eye fundus images for diabetic retinopathy screeningComputers in Biology and Medicine, 2020
- Identifying Medical Diagnoses and Treatable Diseases by Image-Based Deep LearningCell, 2018
- Development and Validation of a Deep Learning Algorithm for Detection of Diabetic Retinopathy in Retinal Fundus PhotographsJAMA, 2016