Hybrid Deep Learning Ensemble for Ophthalmic Disease Classification: Integrating CNNs and Vision Transformers
Standalone Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs) exhibit representational trade-offs between capturing localized microvascular lesions and global contextual dependencies in retinal fundus imaging. To address this limitation, this study presents a novel tri-branch hybrid deep learning ensemble framework for multi-class classification across ten distinct ocular conditions. Retinal fundus photographs (16,242 images across 10 categories) were enhanced using a dual-stage pipeline incorporating CLAHE color space transformation and Fourier domain high-pass filtering. The proposed framework fuses extracted features from two CNN backbones (EfficientNet-B0 and VGG16) and a Vision Transformer (ViT-Base) into a 6,144-dimensional representation. The network was trained using a strategic two-phase transfer learning regimen with differential learning rates and class-weighted cross-entropy loss. Grad-CAM visualizations were utilized for qualitative explainability against clinical landmarks. The hybrid ensemble achieved an overall accuracy of 88.99%, macro-sensitivity of 92.36%, macro-specificity of 98.72%, macro F1-score of 90.95%, and Matthews Correlation Coefficient (MCC) of 0.8718. This demonstrates a 10.04% accuracy improvement over standalone deep CNNs and a 34.36% increase over handcrafted feature baselines (GLCM/HOG + SVM). Grad-CAM heatmaps confirmed strong alignment with clinically verified pathological features. Combining local texture representations with global contextual self-attention offers high diagnostic reliability and explainability, establishing a robust decision-support system for broad-coverage ocular screening in resource-constrained settings.
Authors
- Md. Tayyab Ameri Turan
- Md. Al – Imran (ORCID: https://orcid.org/0009-0003-5659-4039)
- Nasrin Sultana
- Tawhid Hasan Santo
Institutions
- Hajee Mohammad Danesh Science and Technology University (BD)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-25
- DOI
- https://doi.org/10.21203/rs.3.rs-11746949/v1
- Primary Topic
- Retinal Imaging and Analysis
- Type
- preprint