Skip to content

Original Research

Frontiers in Medicine ·

Volume 13 - 2026 | https://doi.org/10.3389/fmed.2026.1932626

A multi-class fundus disease classification framework based on self-supervised contrastive learning and dual-branch network

  • Lili Cai1
  • Keke Hou1*corresponding author
  • Zhong Mo1
  • Shining Ding2
  1. 1School of Medicine and Health, Guangzhou Xinhua University, Guangzhou, China
  2. 2School of Information Engineering, Xinyang Agriculture and Forestry University, Xinyang, China
Article metrics0 viewsView details

Abstract

Fundus diseases including diabetic retinopathy, glaucoma, and age-related macular degeneration are primary causes of blindness worldwide. Manual interpretation of retinal images is time-consuming and heavily reliant on clinical expertise. Although deep learning has shown promise in automated fundus image analysis, its performance remains highly data-dependent, requiring large amounts of expert annotations. Moreover, single-architecture models may have limited capacity to capture the diverse pathological features present in fundus images. This study proposes a unified framework integrating self-supervised contrastive pre-training with a hybrid dual-branch architecture. Pre-training on unlabeled fundus images enables the model to learn generalizable representations, thereby reducing reliance on manual annotations. The dual-branch design combines EfficientNet-B4 for fine-grained detail extraction and MambaOut for large receptive field modeling. Their outputs are adaptively fused via a learnable cross-fusion module. A dendritic classifier is adopted to further improve classification performance. Comprehensive evaluations were conducted on two public datasets, OIHC and FIVES. On the OIHC dataset, the proposed model achieved an F1-score of 96.32 ± 0.38% and a Kappa coefficient of 95.89 ± 0.43%. On the FIVES dataset, it attained 95.10 ± 0.54% and 93.49 ± 0.71%. The macro-average AUC exceeded 98% on both datasets. Ablation studies demonstrated the contribution of each component to the overall performance. This study indicates that combining self-supervised pre-training with a hybrid dual-branch architecture is a feasible approach for multi-class fundus disease classification. Interpretability analyses suggest that the model's attention regions partially overlap with clinically relevant pathological features. The framework achieved competitive performance on both datasets, showing its potential utility in scenarios with limited annotated data. Future work will focus on multi-center validation and model compression for lightweight architecture design.

Keywords

1 Introduction

Vision is the primary channel through which humans perceive the external environment. Research indicates that approximately 70%–80% of external information is acquired through the visual system (1). Eye diseases represent a major global health concern. As reported by the World Health Organization, over 2.2 billion people worldwide are affected by blindness or low vision (2). Fundus diseases such as age-related macular degeneration (AMD), diabetic retinopathy (DR), and glaucoma represent a significant proportion of global blindness. These conditions progress through distinct stages, with their impact on vision varying at each stage. Early-stage fundus diseases often present with subtle symptoms. Without timely intervention, these conditions can result in irreversible damage. Early and accurate detection is essential, as timely treatment can help preserve vision and maintain quality of life (3).

Color fundus photography (CFP) is one of the most widely used clinical ophthalmic examination techniques. As a non-invasive imaging approach, it delivers high-definition views of the fundus structures (4). This modality has become a routine part of ophthalmic examinations. However, accurate diagnosis from color fundus images requires specialized physicians to perform detailed visual assessment. This process suffers from both substantial time costs and high susceptibility to subjective bias. Furthermore, underdeveloped and remote regions lack sufficient specialist expertise, which hampers timely and accurate diagnosis. These limitations make large-scale screening impractical in resource-constrained settings. Recent advances in deep learning have positioned this technique as a promising approach for automated fundus image assessment. In particular, convolutional neural networks (CNNs) have proven effective in classifying fundus diseases, achieving strong performance across DR (5), glaucoma (6), and AMD (7). Benbakreti et al. (8) applied pre-trained CNNs to four-class fundus classification and achieved 92.7% accuracy. Thanki (9) combined deep neural networks with traditional machine learning classifiers, showing the potential of hybrid strategies. These advances have established the feasibility of computer-aided diagnosis, but they also reveal persistent challenges. The first limitation concerns heavy dependence on annotated data. Training high-performance models requires large, expertly annotated datasets, yet medical annotation is costly, time-consuming, and relies on scarce expert knowledge (10). This severely limits model generalizability, particularly for rare diseases or underrepresented populations. The second limitation is architectural. A common practice in existing fundus disease classification is to adopt a single backbone, typically a CNN or a Transformer. CNNs excel at extracting local textures and fine-grained lesions, but they struggle with long-range spatial dependencies due to their limited receptive fields (11). Transformers capture global context effectively through self-attention, but their computational cost grows quadratically with image resolution, and they usually require large datasets to generalize well (12). These limitations suggest that a single architecture may be insufficient to capture the full spectrum of pathological features in fundus images. Recently, MambaOut has been proposed as an efficient alternative that removes the SSM component from Mamba and relies on large-kernel depthwise convolutions to enlarge the effective receptive field (13). The design exhibits strong performance and is well suited for the global feature extraction branch in a dual-branch architecture. This motivates us to explore a hybrid design that combines MambaOut with a complementary backbone for comprehensive feature extraction. To overcome these challenges, we propose a multi-class fundus disease classification framework that integrates self-supervised learning (SSL) with a hybrid dual-branch network. The framework operates in two stages. In the first stage, we employ SimCLR-based contrastive learning (14) on unlabeled fundus images to learn generalizable visual representations without manual annotations. This pre-training step helps reduce dependency on costly expert labels. In the second stage, we construct a dual-branch feature extraction architecture combining EfficientNet-B4 (15) and MambaOut as parallel backbones. This hybrid design provides richer feature representations for the subsequent classification task. Finally, we replace the standard linear classifier with a dendritic classifier (16) to enhance inter-class separability and improve classification performance on complex fundus disease categories. The main contributions of this work are summarized as follows: The organization of this paper is as follows. Section 2 reviews relevant research in fundus disease classification, self-supervised learning, and dual-branch architectures. Section 3 describes the proposed method and datasets. Section 4 provides the experimental results along with a detailed analysis. Section 5 discusses the findings and limitations. Section 6 concludes the paper and presents future work.

  • (1) We propose a unified framework that integrates self-supervised contrastive pre-training with a dual-branch feature extraction network for multi-class fundus disease classification. Experimental results on the OIHC and FIVES datasets indicate that this design helps reduce the reliance on annotated data and maintains consistent performance across both datasets.
  • (2) This framework employs a dual-branch architecture combining EfficientNet-B4 with MambaOut. EfficientNet-B4 captures fine-grained local textures through depthwise separable convolutions and compound scaling, while MambaOut leverages large-kernel depthwise convolutions to aggregate information over broader spatial regions. This combination enlarges the receptive field while maintaining moderate computational efficiency for the classification task.
  • (3) We further introduce a feature-dimensional learnable cross fusion (FDLC) module. It adaptively integrates features from the two branches using a dimension-adaptive SE mechanism and a dynamic gated fusion strategy.
  • (4) In addition, a dendritic classifier is adopted for fundus disease classification. Inspired by the non-linear computation of biological neurons, this classifier aims to enhance discriminative power through non-linear decision boundaries. We evaluate the framework through ablation studies, comparative experiments, robustness tests, and interpretability analysis. These experimental results provide a preliminary basis for assessing the multi-branch framework in fundus disease classification tasks.

2.1 Deep learning-based fundus disease classification

Deep learning has become a key tool in automated fundus image analysis. Initial efforts focused primarily on single-disease detection. As a major cause of vision loss in the working-age population, DR is characterized by progressive microvascular damage. Gulshan et al. (5) demonstrated that a deep CNN could detect referable DR with sensitivity comparable to that of ophthalmologists. Naveen et al. (17) developed EffNet-SVM, combining EfficientNet features with SVM classification. This method achieved competitive performance on DR severity grading. MSAmix-Net (18) integrated multiscale convolution with self-attention, reporting 82.3% accuracy on five-class DR classification. The clinical presentation of glaucoma includes progressive optic neuropathy and associated visual field defects. Unlike DR, glaucoma diagnosis relies predominantly on optic disc evaluation, particularly the cup-to-disc ratio. Liao et al. (6) designed a model that generates glaucoma activation maps to enhance interpretability. Velpula and Sharma (19) introduced a multi-stage framework using five pre-trained CNNs with voting-based fusion. Nevertheless, early glaucomatous changes remain difficult to detect, as distinguishing normal variation from pathological cupping is a challenge even for deep learning models. AMD is a disease of the macula that primarily affects elderly individuals. It progresses from early drusen deposits to advanced stages, including geographic atrophy and neovascular AMD. Abd El-Khalek et al. (20) proposed a comprehensive CAD system for AMD diagnosis. They extracted appearance features at both local and global scales and applied weighted majority voting to an ensemble of classifiers. Their system categorized AMD into four stages and achieved an overall accuracy of 96.85%. In recent years, several studies have further advanced the development of fundus disease classification. Garcia-Atutxa et al. (21) benchmarked six DeepLabv3 configurations on the FIVES dataset using five independent random seeds to generate stratified splits, with the best model achieving a mean AUC of 0.979. Their work underscores that the difficulty of recognizing different fundus diseases varies considerably. Pachade et al. (22) introduced the RFMiD challenge, which provided a large-scale standardized evaluation framework for multi-disease detection. Duan and Tu (23) classified 16 fundus diseases using ultra-widefield images with a hybrid model combining DenseNet121 and XGBoost. They validated their method on an independent external test set. Their findings emphasized that performance differences between internal and external validation can be substantial. This highlights a key consideration for evaluating model generalizability. Despite their success, supervised deep learning methods rely heavily on large-scale labeled datasets. Given the high cost and specialized clinical expertise required for annotating fundus images, this annotation bottleneck remains a critical constraint for model development.

2.2 Learning with limited labels in medical images

To alleviate the annotation bottleneck, SSL has gained substantial attention in medical image analysis. SSL learns generalizable representations from unlabeled data through pretext tasks (10). As a representative SSL framework, SimCLR (14) introduced a contrastive framework that maximizes agreement between augmented views of the same image. SimCLR achieved competitive results on natural images, prompting researchers to adapt it to medical imaging. Azizi et al. (24) employed contrastive learning for dermatology classification with limited labeled data and showed clear improvements compared to supervised baselines. In fundus image classification, Liu et al. (25) proposed a general framework based on feature distillation from unlabeled fundus images for detecting multiple disorders. Semi-supervised learning also offers an alternative by leveraging both labeled and unlabeled data. Smitha and Jidesh (26) proposed a semi-supervised GAN for multiple retinal conditions, achieving 87% accuracy with limited annotations. Zhang et al. (27) introduced a multi-point attention SSL method for DR and achieved 92.6% accuracy. Malik et al. (28) proposed a dual-branch semi-supervised learning framework. With only 26% labeled data, it achieved an accuracy of 93.14% on four-class fundus classification and outperformed fully supervised baselines. Collectively, these findings highlight the potential of annotation-efficient learning strategies in clinical practice. However, existing SSL methods for fundus classification predominantly rely on single-backbone architectures and simple fusion strategies. More sophisticated feature extraction and integration mechanisms could further enhance performance.

2.3 Dual-branch architectures in medical image analysis

Hybrid architectures combining multiple feature extraction pathways offer a useful strategy in medical image processing. These models integrate complementary representations from different backbones, often outperforming single-architecture designs. Hybrid CNN-Transformer models combine the local texture extraction strength of CNNs with the long-range dependency modeling ability of Transformers. Such models have been widely used in medical image analysis (29). He et al. (30) proposed vision KAN-Transformer, combining ConvKan and local-global attention branches for medical image classification. The double-branch convolutional transformer (31) employs an attention mechanism to capture fine-grained features while remaining effective on small medical datasets. Liu et al. (32) proposed a parallel dual-branch network called CNN-Trans for fundus classification. The CNN-LSTM branch extracts local features with coordinate attention, and the ViT branch captures global dependencies through self-attention. Chen et al. (33) developed ViResGF-Net, a model that integrates ResNet50 and ViT branches with a gated fusion unit. It achieved an accuracy of 93.56% on multi-label fundus classification. Malik et al. (28) introduced a dual-branch framework for retinal disease classification. While these works have demonstrated the potential of dual-branch architectures, most still rely on simple concatenation or fixed-weight fusion strategies, which may not adapt to the varying importance of different feature sources across samples. Adaptive fusion mechanisms that dynamically weight branch contributions remain relatively underexplored in fundus image analysis.

Based on this review, there are two key research gaps. First, existing dual-branch architectures predominantly rely on non-adaptive fusion strategies that cannot adjust to sample-specific variations. Second, the integration of self-supervised pre-training with dual-branch architectures remains largely unexplored in the fundus domain. To address these gaps, we propose a unified framework combining SimCLR pre-training with a dual-branch architecture featuring EfficientNet-B4 and MambaOut. Our FDLC fusion module adaptively weights branch contributions, and the dendritic classifier further enhances discriminative power.

3 Materials and methods

3.1 Overview

Figure 1 illustrates the framework of our proposed system. The system uses a dual-branch feature extraction module combining EfficientNet-B4 with MambaOut. We pre-train the system using contrastive learning to facilitate the recognition of various fundus diseases. The framework consists of two stages. Stage 1 focuses on model pre-training. We employ self-supervised contrastive pre-training on many unlabeled fundus images. This stage is beneficial for learning general visual representations. Stage 2 involves training and fine-tuning based on the parameters obtained from Stage 1. We train the model using end-to-end supervised learning on limited labeled data to adapt it to multi-class fundus disease classification. The model adopts a dual-branch architecture with two parallel pathways, and their features are integrated through the proposed FDLC module. This design enables the model to capture both local textures and global context. EfficientNet-B4 extracts fine-grained local textures and subtle lesion structures in high-resolution fundus images using depthwise separable convolutions and compound scaling (15). MambaOut removes the SSM component from Mamba and relies on large-kernel depthwise convolutions to enlarge the receptive field. This design enables it to achieve competitive performance on image classification (13). The hybrid architecture combines the strengths of EfficientNet-B4 and MambaOut for comprehensive feature representation.

The framework of multi-class fundus disease classification.
Figure 1. The framework of multi-class fundus disease classification.

Due to high heterogeneity and inter-class similarity in fundus disease features, traditional linear classifiers often struggle to separate complex decision boundaries clearly. To address this, the study draws inspiration from the dendritic classifier design proposed in DMixNet (16). This classifier is derived from dendritic neuron theory to enhance nonlinear processing capability. The adaptation for multi-class fundus disease aims to improve discriminative power of subtle pathological differences.

3.2 Datasets and image preprocessing strategy

The datasets used in this study include FIVES (34), OIHC (Ocular Imaging Health Cleaned), and ODIR-5K. The FIVES dataset was introduced in 2022 and contains 800 color fundus photographs with a resolution of 2,048 × 2,048 pixels. The images include DR, AMD, glaucoma, and normal fundus, with 200 images per category. The OIHC dataset was reconstructed based on the original OIH dataset. The OIH dataset integrates fundus images from multiple public sources. Since the specific composition and source documentation of this dataset were not fully available, we performed a systematic screening and cleaning process prior to use. The cleaning procedure consisted of three steps. First, we performed perceptual hash-based deduplication to identify identical or highly similar image copies between the original OIH dataset and the pretraining dataset ODIR-5K. Second, for visually similar images without exact hash matches, we performed an initial screening to flag potential overlap across datasets. Third, all suspected samples were independently reviewed by two researchers to confirm their source. Through this process, we removed images that overlapped with ODIR-5K at the image level. In addition, we excluded the cataract category from the dataset. Cataract is a lens condition rather than a retinal disease. In color fundus photographs, it primarily manifests as global blur, reduced contrast, and non-uniform illumination, which are visually similar to image quality degradation caused by variations in imaging devices, lighting conditions, or pupil size. This similarity poses a risk that a model may learn acquisition artifacts rather than clinically meaningful pathological features. Therefore, we removed all cataract samples to ensure the focus of this study on retinal diseases. To maintain dataset size and class balance, we supplemented the dataset with AMD and Normal samples. As summarized in Table 1, the AMD class contains 505 images from three sources: 155 from RFMiD 1.0 (35), 9 from RFMiD 2.0 (36), and 341 from OIA-ODIR (37). It should be noted that the official OIA-ODIR annotation reports 238 AMD cases at the patient level, whereas our count of 341 is at the image level. AMD samples were restricted to AMD-positive images, excluding those with comorbid conditions such as DR, ODC, glaucoma, or cataract. The Normal class contains 1,293 images from two sources: 669 from RFMiD 1.0 and 624 from OIA-ODIR. The DR class contains 1,098 images and the Glaucoma class contains 701 images, both derived from the original OIH dataset. All newly added samples were screened following the same procedure to ensure no image-level overlap with the pretraining data. The final OIHC dataset comprises four classes: Normal (1,293 images), DR (1,098 images), Glaucoma (701 images), and AMD (505 images). The ODIR-5K dataset is a fundus image dataset released in 2019, containing paired fundus images from 5,000 patients, of which 6,759 images were actually used for pretraining after our screening process. In this study, we adopted a self-supervised contrastive learning framework and pre-trained the model on this dataset, allowing the model to learn general visual representations from fundus images. We then fine-tuned the pre-trained model on OIHC and FIVES to evaluate its generalization performance.

Table 1. Data source distribution of the OIHC dataset.

ClassRFMiD 1.0RFMiD 2.0OIA-ODIROIHTotal
Normal669062401,293
AMD15593410505
DR0001,0981,098
Glaucoma000701701

Fundus images taken in clinics often suffer from poor exposure. Uneven illumination, different equipment, and operator experience are the main causes. This exposure imbalance reduces retinal contrast and blurs critical details such as blood vessels and lesions. As a result, the model faces difficulties in feature extraction and representation learning. Figure 2a presents a low-contrast fundus image sample. To enhance the quality of such samples, we adopt a method called dual-illumination estimation (38) to correct these images. This method performs illumination estimation on both the original image and its inverted version. The former corrects underexposed regions in the original image, whereas the latter addresses overexposed areas. These two estimations yield intermediate images that brighten dark regions and suppress overly bright areas, respectively. Multi-exposure fusion then combines the visually best regions from the two intermediate images and the original input. The final output is an image with uniform global exposure and rich details. Some images contain large irrelevant backgrounds that hinder training efficiency. Therefore, our preprocessing pipeline first removes the black borders around the input image to highlight the foreground and reduce noise. Figure 2b shows the image after border removal. Next, the dual-illumination estimation algorithm is applied to improve visual quality [Figure 2c]. The corrected images achieve balanced global contrast while preserving subtle structures and fine details from the original data. This provides a higher-quality foundation for subsequent feature learning and model analysis. During the supervised learning phase, the corrected images are augmented with techniques such as flipping, rotation, and scaling.

Fundus image preprocessing. **(a)** Original image, **(b)** Removing the black border, and **(c)** Image enhancement using dual-illumination estimation method.
Figure 2. Fundus image preprocessing. (a) Original image, (b) Removing the black border, and (c) Image enhancement using dual-illumination estimation method.

3.3 Dual-branch feature extraction architecture

The study proposes a hybrid dual-branch feature extraction architecture consisting of two parallel backbones, EfficientNet-B4 and MambaOut. Both branches are initialized with weights from contrastive self-supervised pre-training. They remain trainable during fine-tuning for the retinal disease classification task. Diagnosing fundus diseases requires identifying local pathological features while also capturing global contextual relationships. Visual Mamba models perform well on long-sequence modeling. However, Mamba's core state space model (SSM) introduces sequential scanning and causal assumptions, which may not suit non-causal vision tasks like image classification. Unlike the original Mamba, MambaOut removes the SSM component, resulting in a simpler design. Research on ImageNet reveals that MambaOut actually achieves better performance after removing the complex SSM module (13). This suggests that the SSM component may introduce unnecessary complexity for image classification tasks. Fundus image classification is a discriminative task based on 2D spatial features, not sequence modeling. Using MambaOut as the feature extraction branch avoids the sequential computation inherent to SSMs. Its lightweight design balances feature depth and breadth under limited computational resources, and its strong modeling ability provides a robust and discriminative feature space for the subsequent classification task. In the training process, these two branches are optimized together. This joint optimization helps mitigate the limitations of single-backbone models and enriches the final feature representation. As a result, the model becomes more accurate and stable for complex fundus disease classification.

3.4 Feature-dimensional learnable cross fusion module

The two branches output features with different dimensions. To align them for fusion, we replaced the original FC layers of both the CNN and MambaOut with new ones to match the dimensions. The aligned features then pass through the FDLC module. This component adaptively learns the importance of each branch for different samples and fuses the features selectively. Figure 3 displays the FDLC module. Following this, the two branches output 512-dimensional feature vectors, denoted as fe and fm. We concatenate them along the channel dimension to obtain the joint feature fc=[fe;fm]∈R1024. The concatenated feature fc is then fed into two parallel sub-branches for adaptive feature enhancement and dynamic fusion. The left branch is an SE enhancement branch. We adapted the SE block design for high-dimensional feature maps to 1D features. The original SE attention mechanism comprises two steps: squeeze and excitation (39). In the squeeze step, global average pooling compresses the input feature map into a vector, which is then mapped to a smaller vector via a FC layer. However, since our backbone outputs are already 1D vectors, global average pooling is unnecessary. Specifically, fc is first passed through a FC layer to reduce the dimension from 1,024 to 64, using a reduction ratio r=16 to keep parameters low. A ReLU is used to add non-linearity. Then a second FC layer restores the dimension to 1,024, followed by a sigmoid function to normalize outputs to (0,1). The resulting weight is multiplied by fc to get fs. This allows the network to selectively enhance or suppress features based on global information, increasing focus on important features. Finally, a linear mapping reduces the dimension to 512, giving fl∈R512. The right branch uses a lightweight gating network inside the FDLC module. It adaptively controls how much each branch contributes to the fusion. The gating network takes fc as input. An FC layer maps it to a 256-dimensional space with ReLU activation. Then a second FC layer compresses it into a scalar, followed by a sigmoid activation that normalizes it to (0,1), producing the gating coefficient gate=σ(Linear2(ReLU(Linear1(x)))). This gating coefficient controls how the two feature paths are fused. When the gate is close to 1, the model prefers the SE-enhanced path. When the gate is close to 0, it keeps more of the original feature fm. The final fused feature is calculated as ffused=gate⋅(fe+fl)+(1−gate)⋅fm. Here, fl is the SE-enhanced feature after linear dimension reduction. This design allows the network to adapt the fusion strategy to the input, improving the flexibility and robustness of feature representation.

The structure of feature-dimensional learnable cross fusion module.
Figure 3. The structure of feature-dimensional learnable cross fusion module.

3.5 Self-supervised contrastive pre-training

In the era of deep learning, feature learning has become pivotal for enhancing model performance. This is particularly critical for medical data, where high annotation costs lead to label scarcity despite the abundance of unlabeled data. SimCLR is an early and influential work in this field. It builds on unsupervised learning and introduces contrastive learning. By constructing positive and negative sample pairs, SimCLR learns effective representations from unlabeled data (14). Researchers have applied SimCLR to various tasks, including medical image analysis and semantic segmentation. Our self-supervised contrastive pre-training framework is based on SimCLR to pre-train the dual-branch architecture. This enables the model to learn generalizable representations from unlabeled data for downstream tasks with limited annotations. As shown in Figure 1, a preprocessed input image x undergoes two different augmentation strategies (e.g., random cropping, color distortion) to create two views. Each view is then processed by two encoders, EfficientNet-B4 and MambaOut, to extract high-level features, i.e., heffb4=feffb4(x), hmamb=fmamb(x). The features zeffb4=geffb4(heffb4) and zmamb=gmamb(hmamb) are then mapped to a shared latent space through independent non-linear projection heads. Here, g(⋅) is a two-layer MLP. The outputs from the two encoders are fused by the FDLC module. After L2 normalization, a lightweight semantic extractor produces a semantic vector s=MLP(zfusion) for downstream tasks. For self-supervised pre-training, we use the NT-Xent loss to learn features that are invariant across augmented views of the same image but discriminative between different images. This loss makes the model pull different augmented views of the same image closer in the feature space. It also pushes them away from negative samples including views from other images. So the model learns representations that are robusto perturbations and semantically consistent. During supervised fine-tuning, we load the pre-trained weights from the dual-branch backbone as initialization and apply these weights to all layers except the classifier. With the prior knowledge from pre-training, the model adapts to downstream medical diagnosis using limited labeled samples. Moreover, we fine-tune the whole model using focal loss, along with learning rate scheduling and regularization to prevent overfitting in few-shot scenarios. This alleviates the reliance on large annotated datasets while the pre-trained model learns to capture rich semantic representations from medical images. It is meaningful for clinical settings with limited annotation resources.

3.6 Classifier module

During fine-tuning, we replace the standard linear classification head with the dendritic classifier. Biological studies show that neurons do not simply aggregate all input signals. Instead, their dendritic structures can perform local non-linear computations on synaptic inputs. This enhances the neuron's representational capacity and pattern recognition accuracy. Based on this theory, Xu et al. (16) designed a dendritic neuron-based multilayer perceptron and provided its implementation. In this work, we adapt this classifier for a dual-branch network focused on fundus image classification. It learns more discriminative high-order features, improving classification performance for various fundus diseases. This module derives from a dendritic neural unit, which divides a neuron's decision process into four stages: synaptic, dendritic, membrane, and soma layers. Figure 4 shows the structure of dendritic neural unit.

The structure of dendritic neural unit.
Figure 4. The structure of dendritic neural unit.

Let x be the input features from the dual-branch network after feature extraction and fusion. The input first goes to thedth synaptic layer, which models how synapses modulate signals. For our multi-class task, we set K dendritic neurons, one for each disease category. Then, for the ith synapse on the dendritic branch of the kth dendritic neuron, we first apply a linear transformation to x as defined in Equation (1).where xidk is the input to the ith synapse on the dth dendritic branch. widk is the synaptic weight, representing how the synapse enhances or inhibits the signal. bidk is a bias, modeling the threshold needed for the postsynaptic membrane to generate an effective potential. Sidk is the output of that synapse. This layer lets the model assign different initial attention to various fundus pathological features. The dendritic layer integrates synaptic inputs from the same branch. It applies a non-linear activation to aggregate signals. This allows each dendritic branch to learn specific patterns of pathological features. The output Ddk of the dth branch in the kth dendritic unit is calculated using Equation (2).Here, n is the number of synapses per dendritic layer, and ψ(⋅) is the activation function for that layer. We use the sigmoid function to map local signals non-linearly to (0,1). Thus, different dendritic branches learn different feature combinations. The membrane layer then sums the outputs from all branches with weights, simulating signal convergence onto the soma membrane. Finally, the soma layer gives the output of each dendritic unit as defined in Equation (3).Here, m is the number of dendritic layers, and k=1,2,⋯,K.

Sidk=widk⋅LayerNorm(xidk)+bidk(1)

Ddk=∑i=1n⁡LayerNorm(ψ(Sidk))(2)

yk=∑d=1m⁡Ddk,Y=[y1,y2,⋯,yK](3)

4 Results and discussion

4.1 Experimental setup

4.1.1 Evaluation metrics

Accuracy (Acc), Precision (Pre), Recall (Rec), F1-score, and Kappa are used to evaluate model performance. Specifically, accuracy measures the overall correctness, i.e., the proportion of correctly classified samples. Precision focuses on the reliability of positive predictions, which is the ratio of true positives to all predicted positives. In contrast, recall reflects the coverage of actual positives, defined as the ratio of true positives to all ground-truth positives. The F1-score balances precision and recall through their harmonic mean. A high F1-score indicates a good balance between them, thus offering a more robust evaluation for the positive class. The Kappa score assesses the agreement between predictions and ground truth while correcting for chance. A value above 0.8 is commonly considered substantial agreement. The specific formulas for these metrics are given in Equations (4)-(8).where TP denotes the number of samples correctly predicted as positive. TN denotes the number correctly predicted as negative. FP denotes the number of negative samples wrongly classified as positive. FN denotes the number of positive samples wrongly classified as negative. Po is the proportion of actual agreement between predictions and ground truth. Pe is the probability of chance agreement under random prediction. K is the number of categories. nii is the diagonal element of the confusion matrix, representing the number of correctly classified samples for the ith class. Ri is the number of ground truth samples for the ith class. Si is the number of predicted samples for the ith class. N is the total number of samples.

Acc=TP+TNTP+FP+TN+FN(4)

Pre=TPTP+FP(5)

Rec=TPTP+FN(6)

F1−score=2∗Pre∗RecPre+Rec(7)

Kappa=Po−Pe1−Pe,Po=1N∑i=1K⁡nii,Pe=∑i=1K⁡(RiN⋅SiN)(8)

4.1.2 Implementation details

The experiments in this study were conducted in a development environment equipped with a 14 vCPU Intel(R) Xeon(R) Gold 6,330 CPU @ 2.00 GHz, 90GB of RAM, and an RTX 3,090 GPU (24 GB). The software stack was based on Python 3.10 and PyTorch 2.1.2 with CUDA 11.8, running on the Ubuntu 22.04 operating system. Since the raw images were high-resolution with varying dimensions, all images were resized to 224 × 224 pixels to ensure training consistency. Pre-training was conducted with a batch size of 200 and a total of 100 epochs. Model training employed the AdamW optimizer with a batch size of 16, an initial learning rate of 1e-3, and a weight decay of 0.01. The learning rate was updated using the ExponentialLR scheduler with a gamma value of 0.9. To avoid data leakage and ensure the rigor of our experiments, we adopted a five-fold cross-validation strategy. The splitting method varied across datasets depending on the available information. For the OIA-ODIR subset within OIHC, the official release provides patient IDs and left/right eye mappings. We performed strict patient-level splitting accordingly, ensuring that the left and right eye images of the same patient were not split between training and testing. For the RFMiD subset and the Glaucoma category, no official patient mapping is available. Therefore, image-level splitting was applied. As for the DR category retained from the original OIH dataset, images were grouped by the numeric prefix and left/right eye identifiers in the filenames. This grouping is inference-based and cannot be fully validated due to the lack of an official patient mapping file in OIH. Regarding the FIVES dataset, no patient information is available for reference, so we grouped images by their numeric filename prefix, assigning images sharing the same prefix to the same fold. These are conservative splitting approaches we adopted under the data constraints, rather than strict patient-level splits. For all datasets, stratified sampling was applied within each fold during the five-fold splitting to preserve the class distribution. The final results are reported as the mean and standard deviation across the five folds. For model training, we adopted Focal Loss as the classification loss function. It includes two core mechanisms. The class weight parameter alleviates the bias caused by class imbalance. The focusing parameter reduces the loss contribution from easy-to-classify samples and encourages the model to focus on hard samples near the decision boundary (40). In the OIHC dataset, the class distribution is Normal 1,293, DR 1,098, Glaucoma 701, and AMD 505, indicating a certain degree of imbalance. We therefore used the weight mechanism of Focal Loss to mitigate the bias toward majority classes. For the FIVES dataset, the class distribution is relatively balanced across the original dataset, though 5-fold cross-validation introduces slight fluctuations in class proportions across folds. In this case, the focusing parameter of Focal Loss also helps improve the model's ability to discriminate ambiguous and atypical cases in fundus disease classification.

4.2 Performance assessment of different backbones

To verify the classification performance of different backbones on the OIHC and FIVES datasets, we evaluated seven mainstream backbones. They are ResNet34, DenseNet121, MobileNet, InceptionNet, ViT, MambaOut, and EfficientNet-B4. The metrics include Accuracy, Precision, Recall, F1-score, and Kappa. Table 2 reports the F1-score and Kappa values of different backbones on the OIHC and FIVES datasets. On OIHC, MambaOut achieved an F1-score of 94.61 ± 0.31% and a Kappa of 93.79 ± 0.63%. EfficientNet-B4 ranked second, with scores of 94.42 ± 0.34% and 93.58 ± 0.55%, followed by InceptionNet. On the FIVES dataset, the top three networks were MambaOut, EfficientNet-B4, and ResNet34. MambaOut and EfficientNet-B4 showed nearly equivalent performance, while EfficientNet-B4 performed slightly better than ResNet34. Although MambaOut achieved the highest overall performance among the evaluated backbones, its parameter count is larger than that of EfficientNet-B4. To balance efficiency and performance, we selected EfficientNet-B4 and MambaOut as the two branches of our dual-branch architecture. Specifically, EfficientNet-B4 serves as a lightweight yet powerful CNN branch to capture fine-grained local features. MambaOut provides wider spatial coverage through its large-kernel design and feature refinement. This combination leverages the strengths of both architectures while maintaining a reasonable parameter budget. The fused features provide richer representations for the downstream classification task.

Table 2. 5-fold cross-validation results of different backbones on the OIHC and FIVES datasets.

BackboneOIHCFIVES
F1-score (%)Kappa (%)F1-score (%)Kappa (%)
DenseNet12193.99 ± 0.4992.94 ± 0.5593.12 ± 0.4290.82 ± 0.60
MobileNet-V393.83 ± 0.5192.67 ± 0.7892.89 ± 0.8590.51 ± 1.13
InceptionNet94.24 ± 0.4193.31 ± 0.3793.21 ± 0.5891.02 ± 0.71
ViT94.03 ± 0.3493.16 ± 0.4691.76 ± 1.9389.00 ± 2.60
ResNet3494.19 ± 0.4593.49 ± 0.6793.50 ± 0.7491.33 ± 0.95
EfficientNet-B494.42 ± 0.3493.58 ± 0.5593.61 ± 0.2791.45 ± 0.34
MambaOut94.61 ± 0.3193.79 ± 0.6393.64 ± 0.2691.50 ± 0.38

4.3 Ablation study

In this section, we present ablation studies to evaluate our dual-branch system. We gradually add key fusion components and calculate the metrics. Model1 serves as the baseline, using a single EfficientNet-B4 for feature extraction. Adding a MambaOut branch yields Model2, which forms a dual-branch architecture with fixed linear weights (both set to 0.5) for branch fusion. Model3 retains the same dual-branch structure but replaces the fixed weights with learnable dynamic weights. Model4 further replaces the dynamic weighting with the proposed FDLC mechanism. Model5 introduces contrastive learning pre-training, initializing the dual-branch network with weights learned from unlabeled data. All five models described above use a traditional linear classifier. Finally, Model6 builds on Model5 but replaces the linear classifier with a dendritic classifier.

Table 3 shows the ablation results on the OIHC and FIVES datasets. The performance improvements are consistent from Model1 to Model6 on both datasets. On the OIHC dataset, the baseline model achieves an accuracy of 95.39%, an F1-score of 94.42%, and a Kappa of 93.58%. After incorporating the MambaOut branch with fixed-weight fusion, the three metrics improve to 95.94%, 95.01%, and 94.36%, respectively. Replacing the fixed weights with learnable dynamic weights further raises the performance to 96.08%, 95.21%, and 94.56%. The introduction of the FDLC fusion module brings additional gains, reaching 96.36%, 95.50%, and 94.93%. After incorporating SimCLR pre-training, the model achieves 96.78%, 96.05%, and 95.51%. Finally, replacing the linear classifier with the dendritic classifier yields the best overall performance, with the three metrics reaching 97.03%, 96.32%, and 95.89%, respectively. The same trend is consistently observed on the FIVES dataset, where Model 6 achieves the highest F1-score of 95.10% and Kappa of 93.49%, supporting the effectiveness of each proposed component. To assess whether these differences are statistically meaningful, we performed paired t-tests on the fold-wise F1-score differences between consecutive model configurations. The results in Table 4 show that the four selected comparisons yield p-values below 0.01, and these results remain below the Bonferroni-corrected threshold (α = 0.0125). These findings suggest that the observed improvements are unlikely to be attributable to random fluctuation.

Table 3. 5-fold cross-validation results of the ablation study on the OIHC and FIVES datasets.

ModelsDescriptionDatasetAcc (%)F1-score (%)Kappa (%)
Model 1BaselineOIHC95.39 ± 0.4394.42 ± 0.3493.58 ± 0.55
FIVES93.62 ± 0.2793.61 ± 0.2791.45 ± 0.34
Model 2Baseline + MambaOut + fixed weightsOIHC95.94 ± 0.2095.01 ± 0.3294.36 ± 0.29
FIVES93.98 ± 0.3093.96 ± 0.3291.99 ± 0.41
Model 3Baseline + MambaOut + dynamic weightsOIHC96.08 ± 0.2595.21 ± 0.3594.56 ± 0.36
FIVES94.12 ± 0.3194.11 ± 0.3492.18 ± 0.30
Model 4Baseline + MambaOut + FDLCOIHC96.36 ± 0.3095.50 ± 0.3294.93 ± 0.41
FIVES94.34 ± 0.4094.31 ± 0.4192.37 ± 0.39
Model 5Baseline + MambaOut + FDLC + SimCLROIHC96.78 ± 0.2796.05 ± 0.3395.51 ± 0.37
FIVES94.82 ± 0.4694.78 ± 0.4692.87 ± 0.49
Model 6Baseline + MambaOut + FDLC + SimCLR + dendritic classifierOIHC97.03 ± 0.3196.32 ± 0.3895.89 ± 0.43
FIVES95.13 ± 0.5395.10 ± 0.5493.49 ± 0.71

Table 4. Paired t-test p-values for F1-score comparisons between different model configurations on the OIHC and FIVES datasets.

ModelsOIHCFIVES
Model 1 vs. Model 20.00830.0033
Model 3 vs. Model 40.00160.0064
Model 4 vs. Model 50.0017<0.001
Model 5 vs. Model 60.00140.0013

The p-values shown in the table are uncorrected values from paired t-tests. The significance threshold after Bonferroni correction for multiple comparisons (α = 0.05/4 = 0.0125) is provided for reference.

We further investigated the impact of data preprocessing and input resolution on model performance. As shown in Table 5, applying dual-illumination preprocessing improved the F1-score from 95.13% to 96.32% on OIHC and from 94.38% to 95.10% on FIVES, indicating that this preprocessing step effectively enhances image quality and benefits subsequent classification. We also compared two input resolutions, 224 × 224 and 384 × 384, on both datasets. Increasing the resolution from 224 to 384 led to a modest improvement in F1-score, with gains of approximately 0.15 percentage points on OIHC and 0.27 percentage points on FIVES. However, this improvement was accompanied by a notable increase in computational cost, with FLOPs rising from 6.06G to 17.79G, representing an approximately 2.9-fold increase. Considering the trade-off between the limited performance gain and the increased computational overhead, we selected 224 × 224 as the primary input resolution for our experiments. This choice maintains competitive performance while keeping training and inference costs manageable.

Table 5. Effects of dual-illumination preprocessing and input resolution on model performance.

ModelsDatasetAcc (%)Pre(%)Rec (%)F1-score (%)Kappa (%)
w/o dual-illuminationOIHC96.01 ± 0.2295.18 ± 0.4995.15 ± 0.6095.13 ± 0.3594.47 ± 0.34
FIVES94.37 ± 0.4494.59 ± 0.2494.35 ± 0.5794.38 ± 0.4492.49 ± 0.60
Input size 224 × 224OIHC97.03 ± 0.3196.54 ± 0.5796.12 ± 0.2696.32 ± 0.3895.89 ± 0.43
FIVES95.13 ± 0.5395.19 ± 0.4995.11 ± 0.6195.10 ± 0.5493.49 ± 0.71
Input size 384 × 384OIHC97.14 ± 0.3596.63 ± 0.9196.39 ± 0.2996.47 ± 0.3596.05 ± 0.48
FIVES95.38 ± 0.3595.44 ± 0.3495.40 ± 0.3995.37 ± 0.3893.83 ± 0.46

We also evaluated the contribution of SSL pre-training under limited annotation scenarios. Model5 is built upon Model4 with SimCLR pre-training. We compared the two models using three labeling ratios of 25%, 50%, and 100% of the training data, as shown in Figure 5. On the OIHC dataset, with 100% training labels, SSL pre-training improved the F1-score from 95.50% to 96.05%, a gain of 0.55 percentage points. When the label ratio was reduced to 50%, the performance improved from 93.39% to 94.31%, a gain of 0.92 percentage points. With only 25% of the labels available, the pre-trained model achieved 91.81% compared to 90.47% for the baseline without SSL, a gain of 1.34 percentage points. A similar trend was observed on the FIVES dataset. SSL pre-training improved the performance from 94.31% to 94.78% at 100% labels, a gain of 0.47 percentage points; from 90.44% to 91.42% at 50% labels, a gain of 0.98 percentage points; and from 85.04% to 86.62% at 25% labels, a gain of 1.58 percentage points. These results indicate that SSL pre-training provides consistent improvements across different label ratios, with larger gains observed when labeled data is scarce. In both datasets, the largest gains were observed under the 25% label condition.

5-fold average F1-score of Model4 and Model5 under three labeling ratios on the OIHC and FIVES datasets. **(a)** OIHC, **(b)** FIVES.
Figure 5. 5-fold average F1-score of Model4 and Model5 under three labeling ratios on the OIHC and FIVES datasets. (a) OIHC, (b) FIVES.

To further investigate the effectiveness of the proposed modules, we used t-SNE to project the feature space of model2 and model6 onto a 2D plane. As illustrated in Figure 6a, the feature space of Model2 shows partial overlap among the four classes. The Normal and AMD samples overlap in the central-lower region. The DR samples are scattered across two clusters on the left side, with some overlapping with the Normal class. The Glaucoma class forms two separate clusters in the upper region, but their separation from the other classes is not clear. In contrast, as shown in Figure 6b, the feature space of Model6 shows more compact clustering and clearer inter-class separation. The Normal and AMD classes are now better separated, with the AMD samples forming a tighter cluster in the upper-left region. The DR samples are grouped into a more compact cluster on the right side with less dispersion. The Glaucoma class remains as a distinct cluster in the upper-right region. These results indicate that the proposed modules improve both intra-class compactness and inter-class separability of the learned feature representations.

t-SNE visualization of Model 2 and Model 6 on the OIHC dataset. **(a)** Model 2, **(b)** Model6.
Figure 6. t-SNE visualization of Model 2 and Model 6 on the OIHC dataset. (a) Model 2, (b) Model6.

4.4 Comparison experiments

To further benchmark the performance of the proposed model, we evaluated several state-of-the-art algorithms on both the OIHC and FIVES datasets. The selected models include HRNet (41), Swin-T (42), ConvNeXt (43), MambaOut (13), Dense-XGB (23), Iwin-B (44), and DSA-mamba (45). The performance metrics employed are consistent with those mentioned above. All baseline models were re-implemented under the same data splitting and training configurations to ensure fair comparison. Table 6 presents the detailed experimental results of the comparative methods on the OIHC and FIVES datasets. The results indicate that the proposed model achieves competitive performance across all evaluation metrics. On the OIHC dataset, our model achieves the highest performance among all compared methods, with an accuracy of 97.03 ± 0.31%, an F1-score of 96.32 ± 0.38%, and a Kappa of 95.89 ± 0.43%. Compared to the strongest baseline DSA-mamba, our model brings improvements of 0.70 percentage points in accuracy and 0.98 percentage points in Kappa. On the FIVES dataset, our model also achieves the highest accuracy of 95.13 ± 0.53% and F1-score of 95.10 ± 0.54%, with improvements of 1.11 and 1.05 percentage points over DSA-mamba, respectively. To assess whether these differences are statistically meaningful, we performed paired t-tests between the proposed model and each baseline using the five-fold cross-validation results. As shown in Table 7, these comparisons yield p-values below 0.01, suggesting that the observed improvements are unlikely to be due to random fluctuation. We also calculated the 95% confidence intervals (CI) for each metric, which are reported in Table 6 alongside the means and standard deviations. Excluding HRNet, which yielded noticeably lower performance than the other baselines, the F1-score gains of the proposed model over the remaining methods ranged from 0.72 to 1.71 percentage points on the OIHC dataset, and from 1.05 to 2.27 percentage points on the FIVES dataset. While these gains are relatively modest in absolute terms, they are consistent across both datasets and all evaluation metrics, supporting the effectiveness of the proposed dual-branch design. Table 8 summarizes the computational efficiency of all compared models in terms of parameter count, FLOPs, and inference time.

Table 6. 5-fold cross-validation results of different models on OIHC and FIVES (95% CI in brackets).

ModelsDatasetAcc (%)Pre (%)Rec (%)F1-score (%)Kappa (%)
HRNet (41)OIHC91.88 ± 1.34 [90.22, 93.54]91.60 ± 2.38 [88.64, 94.55]89.08 ± 2.06 [86.52, 91.63]89.84 ± 1.85 [87.54, 92.14]88.64 ± 1.86 [86.33, 90.95]
FIVES88.59 ± 2.31 [85.72, 91.46]89.23 ± 2.27 [86.42, 92.05]88.62 ± 2.36 [85.69, 91.55]88.63 ± 2.28 [85.80, 91.45]84.83 ± 3.14 [80.94, 88.73]
Swin-T (42)OIHC96.00 ± 0.34 [95.57, 96.42]95.46 ± 1.18 [94.00, 96.92]95.21 ± 1.31 [93.59, 96.83]95.18 ± 0.46 [94.61, 95.75]94.44 ± 0.48 [93.85, 95.03]
FIVES93.52 ± 0.70 [92.65, 94.39]93.68 ± 0.68 [92.84, 94.52]93.49 ± 0.72 [92.60, 94.39]93.50 ± 0.71 [92.62, 94.38]91.33 ± 0.95 [90.15, 92.52]
ConvNeXt (43)OIHC96.27 ± 0.40 [95.77, 96.77]95.87 ± 0.87 [94.80, 96.95]95.31 ± 0.61 [94.55, 96.06]95.54 ± 0.50 [94.92, 96.16]94.82 ± 0.55 [94.14, 95.50]
FIVES93.38 ± 0.56 [92.68, 94.08]93.68 ± 0.47 [93.10, 94.26]93.36 ± 0.52 [92.71, 94.01]93.39 ± 0.55 [92.70, 94.07]91.17 ± 0.75 [90.24, 92.10]
MambaOut (13)OIHC95.53 ± 0.49 [94.92, 96.13]94.99 ± 1.69 [92.90, 97.09]94.66 ± 1.09 [93.31, 96.02]94.61 ± 0.31 [94.22, 95.00]93.79 ± 0.63 [93.01, 94.56]
FIVES93.63 ± 0.28 [93.28, 93.98]93.77 ± 0.28 [93.42, 94.12]93.62 ± 0.27 [93.28, 93.97]93.64 ± 0.26 [93.32, 93.96]91.50 ± 0.38 [91.04, 91.97]
Dense-XGB (23)OIHC96.11 ± 0.43 [95.58, 96.64]95.89 ± 0.84 [94.84, 96.94]94.69 ± 0.52 [94.04, 95.34]95.21 ± 0.47 [94.63, 95.79]94.58 ± 0.59 [93.84, 95.31]
FIVES94.02 ± 0.36 [93.58, 94.47]94.16 ± 0.32 [93.76, 94.55]94.00 ± 0.34 [93.57, 94.43]93.98 ± 0.33 [93.57, 94.39]92.00 ± 0.45 [91.44, 92.57]
Iwin-B (44)OIHC95.83 ± 0.69 [94.97, 96.69]95.29 ± 1.52 [93.41, 97.17]94.95 ± 0.89 [93.85, 96.06]95.02 ± 0.75 [94.09, 95.96]94.20 ± 0.95 [93.03, 95.38]
FIVES92.87 ± 0.72 [91.99, 93.76]93.21 ± 0.71 [92.32, 94.11]92.86 ± 0.73 [91.95, 93.77]92.83 ± 0.77 [91.87, 93.79]90.50 ± 0.95 [89.32, 91.68]
DSA-mamba (45)OIHC96.33 ± 0.37 [95.86, 96.79]95.58 ± 0.66 [94.75, 96.40]95.68 ± 0.62 [94.91, 96.46]95.60 ± 0.44 [95.05, 96.14]94.91 ± 0.52 [94.26, 95.55]
FIVES94.02 ± 0.55 [93.34, 94.70]94.17 ± 0.29 [93.81, 94.54]94.01 ± 0.56 [93.31, 94.69]94.05 ± 0.51 [93.36, 94.64]92.00 ± 0.74 [91.07, 92.92]
ProposedOIHC97.03 ± 0.31 [96.65, 97.42]96.54 ± 0.57 [95.83, 97.26]96.12 ± 0.26 [95.79, 96.45]96.32 ± 0.38 [95.85, 96.78]95.89 ± 0.43 [95.35, 96.43]
FIVES95.13 ± 0.53 [94.47, 95.78]95.19 ± 0.49 [94.57, 95.80]95.11 ± 0.61 [94.36, 95.87]95.10 ± 0.54 [94.42, 95.77]93.49 ± 0.71 [92.62, 94.37]

Table 7. Paired t-test p-values for F1-score comparisons between the proposed model and baseline methods on the OIHC and FIVES datasets.

Proposed vs.OIHCFIVES
Swin-T (42)0.00340.0006
ConvNeXt (43)0.00840.0059
Dense-XGB (23)0.00180.0091
Iwin-B (44)0.00990.0014
DSA-mamba (45)0.00520.0012

The p-values shown in the table are uncorrected values from paired t-tests. The significance threshold after Bonferroni correction for multiple comparisons (α = 0.05/5 = 0.01) is provided for reference.

Table 8. Computational efficiency comparison of different models.

ModelsParams (M)FLOPs (G)Inference time (ms)
HRNet (41)40.379.0126.39
Swin-T (42)27.522.9814.10
ConvNeXt (43)87.5715.3714.46
MambaOut (13)24.254.487.10
Dense-XGB (23)13.9111.5810.97
Iwin-B (44)90.2215.5718.82
DSA-mamba (45)35.935.6417.51
Proposed43.946.0617.73

Figures 7a, 7b show the confusion matrices of the proposed model on the OIHC and FIVES datasets, with values row-normalized to indicate the percentage of samples from each true class. On the OIHC dataset, the model achieves high classification accuracy for the Normal, DR, and Glaucoma categories, at 96.6%, 99.7%, and 99.6%, respectively, while the accuracy for the AMD category is 88.6%. The primary misclassification occurs between AMD and Normal, with approximately 11.0% of AMD samples being misclassified as Normal. This is consistent with the clinical challenge of distinguishing early AMD from age-related normal changes. In addition, the AMD samples in the OIHC dataset originate from two different source datasets, RFMiD and OIA-ODIR, which differ in their annotation strategies, image acquisition conditions, and disease definition criteria. Such differences may lead the model to learn inconsistent feature representations from AMD samples of different origins. Heterogeneity in image quality and imaging conditions may also increase the difficulty of learning discriminative features for the AMD category, thereby affecting classification accuracy to some extent. On the FIVES dataset, the model achieves diagonal accuracies of 97.0% for Normal, 93.9% for AMD, 93.6% for DR, and 96.0% for Glaucoma. The experimental results based on 5-fold cross-validation show that the proposed model achieves the highest macro-average AUC on both datasets, with 0.9939 ± 0.0020 on OIHC and 0.9891 ± 0.0026 on FIVES. The EfficientNet-B4 single-branch model achieved 0.9814 ± 0.0050 on OIHC and 0.9757 ± 0.0052 on FIVES, while the MambaOut single-branch model achieved 0.9829 ± 0.0034 on OIHC and 0.9758 ± 0.0056 on FIVES. Figures 7c, 7d present the ROC curves of the single-branch models and the dual-branch fusion model on a representative fold of each dataset (the values shown in the figures correspond to this representative fold). These results further indicate that the fusion strategy effectively integrates features from the two branches and contributes to improved classification performance.

Confusion matrices and ROC curves of the proposed model. **(a)** 5-fold average confusion matrix on OIHC, **(b)** 5-fold average confusion matrix on FIVES, **(c)** ROC curves of the single-branch models (EfficientNet-B4 and MambaOut) and the proposed model on a representative OIHC fold, and **(d)** ROC curves of the single-branch models (EfficientNet-B4 and MambaOut) and the proposed model on a representative FIVES fold.
Figure 7. Confusion matrices and ROC curves of the proposed model. (a) 5-fold average confusion matrix on OIHC, (b) 5-fold average confusion matrix on FIVES, (c) ROC curves of the single-branch models (EfficientNet-B4 and MambaOut) and the proposed model on a representative OIHC fold, and (d) ROC curves of the single-branch models (EfficientNet-B4 and MambaOut) and the proposed model on a representative FIVES fold.

4.5 Robustness evaluation

To evaluate the stability of the proposed model under image quality degradation, we applied five types of distortions to the test set: Gaussian noise, salt-and-pepper noise, Gaussian blur, brightness change, and JPEG compression. The parameters for each distortion were set as follows: Gaussian noise with σ = 0.03, salt-and-pepper noise with a density of 0.02, Gaussian blur with a kernel size of 5 × 5 and σ = 1.0, brightness change with a scaling factor of 0.6 (reducing image brightness to 60% of the original), and JPEG compression with a quality factor of 80 (where 100 indicates no compression and lower values indicate higher compression). The same degraded images were used for all models to ensure fair comparison. Table 9 and Figure 8 present the 5-fold average F1-score results and performance trends of the robustness evaluation on the OIHC and FIVES datasets. As reported in Table 9, our model achieves the highest F1-score across all six conditions on both datasets, with a relatively stable decline. HRNet consistently exhibits the lowest F1-score across all degradation types on both datasets. DSA-mamba and MambaOut are among the top-performing models, with DSA-mamba generally ranking second behind our model. According to Figures 8a, 8b, our model exhibits the least fluctuation across all degradation types, whereas the other models all experience substantial performance degradation under certain conditions. The performance gap over the DSA-mamba method widens under JPEG compression on OIHC and under salt-and-pepper noise on FIVES. Swin-T drops considerably under JPEG compression, and Dense-XGB shows a notable decline under salt-and-pepper noise and JPEG compression.

Table 9. Comparison of 5-fold averaged F1-score of different models under various image degradations on the OIHC and FIVES datasets.

ModelsDatasetClean (%)Gaussian noise (%)Salt-Pepper noise (%)Gaussian blur (%)Brightness change (%)JPEG compression (%)
HRNet (41)OIHC89.8484.1582.6787.0179.8487.73
FIVES88.6383.2281.5684.5381.2185.10
Swin-T (42)OIHC95.1892.5791.9487.4292.5086.62
FIVES93.5091.4990.3691.0689.7287.26
ConvNeXt (43)OIHC95.5493.2992.2691.4793.4888.02
FIVES93.3991.2590.0890.9889.5389.03
MambaOut (13)OIHC94.6192.5192.2991.3692.8690.65
FIVES93.6491.8390.5491.2290.7990.25
Dense-XGB (23)OIHC95.2192.5685.2591.7293.2986.23
FIVES93.9892.1982.8391.7589.6588.37
Iwin-B (44)OIHC95.0292.3192.0887.9392.2585.58
FIVES92.8390.8589.8090.5489.3987.24
DSA-mamba (45)OIHC95.6092.9092.8692.2093.9991.48
FIVES94.0092.3690.9491.7190.6290.86
ProposedOIHC96.3294.4194.0593.0894.6192.73
FIVES95.1093.5792.9992.9093.0592.02
Performance trends and robustness analysis of different models under various image degradations on the OIHC and FIVES datasets. **(a,b)** depict the 5-fold average F1-score trends across different degradation types on the OIHC and FIVES datasets, respectively. **(c,d)** are heatmaps illustrating the absolute F1-score drop relative to the clean image. The colorbar on the right indicates the magnitude of the drop (darker colors represent larger drops).
Figure 8. Performance trends and robustness analysis of different models under various image degradations on the OIHC and FIVES datasets. (a,b) depict the 5-fold average F1-score trends across different degradation types on the OIHC and FIVES datasets, respectively. (c,d) are heatmaps illustrating the absolute F1-score drop relative to the clean image. The colorbar on the right indicates the magnitude of the drop (darker colors represent larger drops).

Figures 8c, 8d visualize the F1-score drop relative to clean images for each model. Our model shows the smallest degradation across all five degradation types on both datasets, with drops ranging from 1.71% to 3.59% on OIHC and from 1.53% to 3.08% on FIVES. In contrast, several competing models exhibit substantially larger drops under specific degradations. On OIHC, Swin-T drops 7.76% under Gaussian blur and 8.56% under JPEG compression, while Dense-XGB drops 9.96% under salt-and-pepper noise. On FIVES, Dense-XGB drops 11.15% under salt-and-pepper noise, and HRNet drops 7.42% under brightness change. Robustness tests demonstrate that our model maintains relatively stable performance across both datasets under various types of image degradation.

4.6 Visualization analysis for the proposed model

Although deep learning models have shown promising performance in fundus disease classification, their black-box nature often makes the internal decision-making mechanisms difficult to interpret. Interpretability analysis using visualization techniques is often considered important for gaining clinician trust in model predictions. Thus, we applied Grad-CAM and LIME to visualize and interpret the decisions made by the model. The Grad-CAM technique generates heatmaps that highlight the critical image regions the model focuses on during classification. It allows verification of whether the model captures pathologically meaningful features, such as hemorrhages, exudates, or optic disc morphology. LIME is an explanation method based on local perturbation. It identifies which regions of an input image are most influential to the network's prediction. To generate explanations, LIME first partitions an image into superpixels or meaningful segments. It then produces multiple perturbed versions of the original input by randomly masking out certain segments. The masked regions are assigned neutral pixel values to observe how the model's prediction changes. In this way, LIME provides local explanations that help reveal which image features drive the model's decisions. Figure 9 presents Grad-CAM heatmaps, their overlays, and LIME visualizations across different disease categories. In Grad-CAM heatmaps, red and yellow regions indicate the highest attention, while blue and green represent background or non-critical areas with lower model attention.

Visualization of model interpretability based on Grad-CAM and LIME. **(a)** Label: AMD, **(b)** and **(c)** Label: DR, and **(d)** Label: Glaucoma.
Figure 9. Visualization of model interpretability based on Grad-CAM and LIME. (a) Label: AMD, (b) and (c) Label: DR, and (d) Label: Glaucoma.

As depicted in Figure 9, the model's high-activation regions are located in anatomical structures relevant to disease pathology. In the AMD case shown in Figure 9a, the Grad-CAM heatmap covers lesions in the macular area, which is consistent with the pathological involvement of the macula in AMD. The LIME visualization further supports this observation by highlighting the same macular region. In Figures 9b, 9c, the heatmaps similarly focus on typical lesions such as hemorrhages and hard exudates. The LIME images for these DR cases exhibit green regions primarily in the macular area and inferior retina, which largely overlap with the Grad-CAM focal points. For glaucoma images, the model attends to the optic disc and cup regions, which are key anatomical structures used for clinical glaucoma assessment. The LIME result also highlights a focused green region tightly covering the optic disc and cup. The Grad-CAM and LIME results are mutually consistent and both correspond to clinically relevant features of glaucoma. This consistency supports the interpretability of the model's decisions and suggests that the model tends to focus on clinically meaningful pathological features.

5 Discussion and limitations

5.1 Overall performance and component contributions

The proposed framework achieved 97.03% accuracy and 95.89% Kappa on OIHC, and 95.13% accuracy and 93.49% Kappa on FIVES. These results suggest that combining contrastive pre-training with a hybrid dual-branch architecture holds promise for fundus disease classification. Several factors contribute to this performance. SimCLR-based pre-training learns discriminative representations from unlabeled data, reducing dependence on manual annotations. The dual-branch design combines EfficientNet-B4 for local texture capture and MambaOut for precise feature refinement with large-kernel convolutions. The ablation study shows steady improvement with each added module, indicating consistent learning with stable cross-validation performance. The t-SNE visualizations further show enhanced intra-class compactness and inter-class separability.

The ablation study reveals consistent gains from each component. The baseline EfficientNet-B4 achieved 95.39% accuracy on OIHC, and the progressive addition of the MambaOut branch, FDLC module, SimCLR pre-training, and dendritic classifier each contributed measurable improvements. With the FDLC module, the F1-score on OIHC rose from 95.01% (Model2) to 95.50% (Model4). The module adaptively weights the two branches for each sample and outperforms fixed weighting. SimCLR pre-training provided larger benefits when labels were scarce. With 25% labeled data, the gains reached 1.34 percentage points on OIHC and 1.58 percentage points on FIVES, suggesting that self-supervised learning mitigates annotation scarcity. The dendritic classifier further improved accuracy from 96.78% to 97.03% on OIHC and F1-score from 94.78% to 95.10% on FIVES. Its design enhances discriminative ability through non-linear decision boundaries, thereby contributing to the overall performance.

5.2 Robustness and interpretability

The proposed framework maintained stable performance under all five distortion conditions. On OIHC, F1-score drops ranged from 1.71% to 3.59%; on FIVES, from 1.53% to 3.08%. In contrast, Dense-XGB dropped 9.96% under salt-and-pepper noise on OIHC and 11.15% on FIVES, while HRNet fell 7.42% under brightness change on FIVES. These results indicate that the performance of some single-model approaches showed larger declines under certain challenging distortions. Meanwhile, our dual-branch framework maintains modest performance fluctuations under five distortion conditions. Such stability suggests that the combination of contrastive pre-training and dual-branch feature extraction offers a degree of resilience to common image quality degradations.

For interpretability, this study employs both Grad-CAM and LIME. Grad-CAM generates heatmaps highlighting critical regions. LIME provides local explanations through superpixel perturbation. The two techniques together offer a more complete picture of model behavior. The visualizations reveal consistent attention toward anatomically relevant structures. For AMD, Grad-CAM activation overlays the macular area, and LIME covers the same region. In DR cases, both methods highlight hemorrhages and exudates in the macular and inferior retinal areas. For glaucoma, Grad-CAM and LIME both center on the optic disc and cup, aligning with clinical assessment. The consistency between Grad-CAM and LIME visualizations suggests that the model attends to disease-relevant regional features.

5.3 Comparison with existing methods

The comparison experiments show that the proposed model exhibits competitive performance relative to existing approaches. On the OIHC dataset, the framework improved accuracy by 0.70 percentage points and Kappa by 0.98 percentage points over DSA-mamba. On the FIVES dataset, the gains over DSA-mamba reached 1.11 percentage points in accuracy and 1.49 percentage points in Kappa. In terms of computational efficiency, as shown in Table 8, the proposed model has 43.94M parameters, 6.06G FLOPs, and an inference time of 17.73 ms. Relative to lightweight models such as Swin-T and MambaOut, it requires more parameters and computation, as well as a longer inference time. Its efficiency is also slightly lower than that of DSA-mamba in terms of parameters and FLOPs, though inference time is comparable.

5.4 Limitations

Several limitations of this study should be acknowledged. First, in terms of computational efficiency, although the dual-branch architecture improves classification accuracy, its computational cost is relatively high compared with lightweight models such as Swin-T and MambaOut. This is mainly due to the parallel execution of two independent backbones, and the dendritic classifier also introduces additional parameter overhead. In resource-constrained scenarios, this efficiency issue may limit model deployment. Future work will explore strategies such as knowledge distillation, pruning, or more efficient branch designs to reduce computational cost. Second, regarding data processing, the OIHC dataset used in this work was constructed by integrating fundus images from multiple public sources. We systematically screened the dataset through perceptual hash comparison, patient information cross-validation, and manual review. However, some public datasets may share overlapping original sources. Given the limitations of the currently available metadata, we cannot completely rule out the possibility that a very small number of samples may have deeper-level associations. For the FIVES dataset and some subsets within OIHC, since the source datasets do not provide official patient mapping files, we performed inference-based grouping. This approach cannot guarantee strict patient-level isolation and may therefore lead to an overestimation of model performance. In addition, different classes in the OIHC dataset originate from different source datasets. These sources differ in imaging devices, camera types, and acquisition protocols, which may introduce domain bias and affect model learning. Moreover, some Normal cases share the same source as the ODIR-5K pretraining data, which may further affect the experimental results. Therefore, the results reported in this study should be interpreted under the limitations of the above data composition and splitting conditions. Meanwhile, due to constraints in data availability, our experiments were primarily conducted using internal 5-fold cross-validation, and the model has not yet been validated on an independent external dataset. As demonstrated by Duan and Tu (23), performance differences between internal and external validation can be substantial. Consequently, the generalizability of our model still requires further validation on multi-center and cross-device external datasets. Future studies should establish rigorous source-tracing mechanisms at the outset of dataset construction and adopt independently sourced pretraining and test datasets. This would allow for a more comprehensive assessment of true generalization capability. Third, regarding the ablation study, the performance improvements introduced by individual modules are relatively modest. Although paired t-test results indicate that these improvements are statistically meaningful, their practical clinical significance still requires further validation on larger-scale independent datasets. In addition, the current ablation study only compared the FDLC module with fixed-weight and dynamic-weight fusion strategies. A broader comparison with other fusion mechanisms, such as attention-based or confidence-based methods, has not been explored in this work and remains an important direction for future investigation. Fourth, the current classification framework is designed for mutually exclusive multi-class tasks, whereas in clinical practice, fundus diseases often involve co-existing pathologies, and the current model does not yet support multi-label classification. Extending the framework to multi-label scenarios represents a key direction for future work. Finally, although we employed Grad-CAM and LIME to provide visual interpretability of model decisions, the current analysis remains primarily qualitative. Future work incorporating quantitative assessment and clinician-involved validation would further enhance the clinical credibility of the model.

6 Conclusion

A unified framework integrating self-supervised contrastive pre-training with a hybrid dual-branch architecture is proposed to address multi-class fundus disease classification. This pre-training strategy enables the model to achieve competitive performance with limited labels, helping reduce dependence on fully annotated data. The dual-branch structure combines EfficientNet-B4 and MambaOut to capture semantic features. These features are adaptively fused by the FDLC module. A dendritic classifier is further introduced to enhance lesion discrimination ability. Experimental results on the OIHC and FIVES datasets demonstrate that the proposed method achieves the highest F1-score among the compared methods. Ablation studies indicate the contribution of each component to the overall performance. Grad-CAM and LIME visualization also show that the model's attention regions partially overlap with clinically relevant anatomical structures. These results provide preliminary evidence for the effectiveness of the proposed framework and motivate further refinement on broader datasets. Future work will extend the framework to true multi-label classification with co-occurring diseases. We will also validate the model on larger multi-centric datasets and explore model compression for resource-constrained scenarios.

Correction Note

This article has been corrected with minor changes. These changes do not impact the scientific content of the article.

Generative AI statement

The author(s) declared that generative AI was not used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher's note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Footnotes

Edited by: Dominik Heider, University of Münster, Germany

Reviewed by: Igor Garcia-Atutxa, Catholic University San Antonio of Murcia, Spain

M. Jamshed Alam Patwary, University of Chittagong, Bangladesh

Mustafa Kemal Yildirim, University of Münster, Germany

Statements

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Funding

The author(s) declared that financial support was received for this work and/or its publication. This work was supported by the College Youth Innovation Talent Project of Guangdong Province (Natural Science) (No. 2024KQNCX075), the Faculty Research Start-up Fund of Guangzhou Xinhua University (No. 2025KYYBZK07), the Education Science Planning Project of Guangdong Province (Higher Education Special Project) (No. 2023GXJK623), and the General Program of Guangzhou Xinhua University (No. 2024KYYBZK04).

Data availability

The original contributions presented in the study are included in the article/Supplementary Material, further inquiries can be directed to the corresponding author.

Author contributions

LC: Methodology, Software, Investigation, Conceptualization, Writing – original draft, Writing – review & editing. KH: Investigation, Writing – review & editing, Conceptualization, Visualization. ZM: Validation, Writing – review & editing, Investigation. SD: Validation, Writing – review & editing, Software.

References

  1. 1. Colenbrander A. Special commentary: my perspective on vision and vision rehabilitation. Ophthalmol Sci. (2024) 4 (6): 100532. doi:10.1016/j.xops.2024.100532
  2. 2. World Health Organization (WHO). Blindness and vision impairment. (2024). Available online at:. (Accessed July 9, 2026)
  3. 3. Thomas CJ, Mirza RG, Gill MK. Age-related macular degeneration. Med Clin North Am. (2021) 105 (3): 473 – 91. doi:10.1016/j.mcna.2021.01.003
  4. 4. Guo T, Liu K, Zou H, Xu X, Yang J, Yu Q. Refined image quality assessment for color fundus photography based on deep learning. Digit Health. (2024) 10: 20552076231207582. doi:10.1177/20552076231207582
  5. 5. Gulshan V, Peng L, Coram M, Stumpe MC, Wu D, Narayanaswamy A. Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs. JAMA. (2016) 316 (22): 2402 – 10. doi:10.1001/jama.2016.17216
  6. 6. Liao W, Zou B, Zhao R, Chen Y, He Z, Zhou M. Clinical interpretable deep learning model for glaucoma diagnosis. IEEE J Biomed Health Inform. (2020) 24 (5): 1405 – 12. doi:10.1109/JBHI.2019.2949075
  7. 7. Tudela MH, Romero-Oraa R, Gutierrez-Tobal GC, Hornero R, Romero-Aroca P, Lopez MI. An interpretable deep learning framework for enhanced clinical assessment of age-related macular degeneration. Invest Ophthalmol Vis Sci. (2025) 66 (8): 3483.
  8. 8. Benbakreti S, Benbakreti S, Ozkaya U. The classification of eye diseases from fundus images based on CNN and pretrained models. Acta Polytech. (2024) 64 (1): 1 – 11. doi:10.14311/AP.2024.64.0001
  9. 9. Thanki R. A deep neural network and machine learning approach for retinal fundus image classification. Healthc Anal. (2023) 3: 100140. doi:10.1016/j.health.2023.100140
  10. 10. Albelwi S. Survey on self-supervised learning: auxiliary pretext tasks and contrastive learning methods in imaging. Entropy. (2022) 24 (4): 551. doi:10.3390/e24040551
  11. 11. Wang X, Girshick R, Gupta A, He K. Non-local neural networks. In: 2018 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (Salt Lake City, UT: IEEE) (2018), 7794 – 803. doi:10.1109/CVPR.2018.00813
  12. 12. Wu C, Che M, Yan H. The CUR decomposition of self-attention matrices in vision transformers. IEEE Trans Pattern Anal Mach Intell. (2025) 48 (4): 4792 – 809. doi:10.1109/TPAMI.2025.3646452
  13. 13. Yu W, Wang X. Mambaout: do we really need mamba for vision? In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (Nashville, TN: IEEE) (2025), 4484 – 96. doi:10.1109/CVPR52734.2025.00423
  14. 14. Chen T, Kornblith S, Norouzi M, Hinton G. A simple framework for contrastive learning of visual representations. In: Proceedings of the 37th International Conference on Machine Learning (ICML) (Vienna, Austria: PMLR) (2020), 1597 – 607. doi:10.5555/3524938.3525087
  15. 15. Tan M, Le QV. Efficientnet: rethinking model scaling for convolutional neural networks. In: Proceedings of the 36th International Conference on Machine Learning (ICML) (Long Beach, CA: PMLR) (2019), 6105 – 14. doi:10.48550/arXiv.1905.11946
  16. 16. Xu W, Song Y, Gupta S, Jia D, Tang J, Lei Z. Dmixnet: a dendritic multi-layered perceptron architecture for image recognition. Artif Intell Rev. (2025) 58 (5): 129. doi:10.1007/s10462-025-11123-y
  17. 17. Naveen KV, Anoop BN, Siju KS, Kar MK, Venugopal V. EffNet-SVM: a hybrid model for diabetic retinopathy classification using retinal fundus images. IEEE Access. (2025) 13: 79793 – 804. doi:10.1109/ACCESS.2025.3566073
  18. 18. Gao J, Li S, Chen Y, Xiang R. MSAmix-net: diabetic retinopathy classification. IEEE Access. (2024) 12: 185757 – 67. doi:10.1109/ACCESS.2024.3506714
  19. 19. Velpula VK, Sharma LD. Multi-stage glaucoma classification using pre-trained convolutional neural networks and voting-based classifier fusion. Front Physiol. (2023) 14: 1175881. doi:10.3389/fphys.2023.1175881
  20. 20. Abd El-Khalek AA, Balaha HM, Alghamdi NS, Ghazal M, Khalil AT, Abo-Elsoud MEA. A concentrated machine learning-based classification system for age-related macular degeneration (AMD) diagnosis using fundus images. Sci Rep. (2024) 14 (1): 2434. doi:10.1038/s41598-024-52131-2
  21. 21. Garcia-Atutxa I, Martinez-Baliu L, Villanueva-Flores F. Robust benchmarking of DeepLabv3 hybrid models for multiclass fundus screening and referable-disease triage on the FIVES dataset. Front Med (Lausanne). (2026) 13: 1771083. doi:10.3389/fmed.2026.1771083
  22. 22. Pachade S, Porwal P, Kokare M, Deshmukh G, Sahasrabuddhe V, Luo Z. RFMiD: retinal image analysis for multi-disease detection challenge. Med Image Anal. (2025) 99: 103365. doi:10.1016/j.media.2024.103365
  23. 23. Duan MM, Tu X. Deep learning-based classification of multiple fundus diseases using ultra-widefield images. Front Cell Dev Biol. (2025) 13: 1630667. doi:10.3389/fcell.2025.1630667
  24. 24. Azizi S, Mustafa B, Ryan F, Beaver Z, Freyberg J, Deaton J. Big self-supervised models advance medical image classification. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (Los Alamitos, CA: IEEE Computer Society) (2021), 3458 – 68. doi:10.1109/ICCV48922.2021.00346
  25. 25. Liu Y, Kang M, Gao S, Zhang C, Liu Y, Li S. Diagnosis of multiple fundus disorders amidst a scarcity of medical experts via self-supervised machine learning. IEEE Internet Things J. (2025) 12 (1): 224 – 35. doi:10.1109/JIOT.2024.3463185
  26. 26. Smitha A, Jidesh P. Classification of multiple retinal disorders from enhanced fundus images using semi-supervised GAN. SN Comput Sci. (2022) 3 (1): 59. doi:10.1007/s42979-021-00945-6
  27. 27. Zhang C, Chen P, Lei T. Multi-point attention-based semi-supervised learning for diabetic retinopathy classification. Biomed Signal Process Control. (2023) 80: 104412. doi:10.1016/j.bspc.2022.104412
  28. 28. Malik MH, Wan Z, Gao Y, Ding DW. Efficient diagnosis of retinal disorders using dual-branch semi-supervised learning (DB-SSL): an enhanced multi-class classification approach. Comput Med Imaging Graph. (2025) 121: 102494. doi:10.1016/j.compmedimag.2025.102494
  29. 29. Takahashi S, Sakaguchi Y, Kouno N, Takasawa K, Ishizu K, Akagi Y. Comparison of vision transformers and convolutional neural networks in medical image analysis: a systematic review. J Med Syst. (2024) 48 (1): 84. doi:10.1007/s10916-024-02105-8
  30. 30. He G, Fu Y, Cheng W, Li Z, Hu K, Zhang Y. VKT: a hybrid vision KAN-transformer model for medical image classification. Int J Imag Syst Technol. (2026) 36: e70334. doi:10.1002/ima.70334
  31. 31. Li J, Feng M, Xia C. DBCvT: double branch convolutional transformer for medical image classification. Pattern Recognit Lett. (2024) 186: 250 – 7. doi:10.1016/j.patrec.2024.10.008
  32. 32. Liu S, Wang W, Deng L, Xu H. Cnn-trans model: a parallel dual-branch network for fundus image classification. Biomed Signal Process Control. (2024) 96: 106621. doi:10.1016/j.bspc.2024.106621
  33. 33. Chen B, Xiang H, Wan J, Bilal M, Xu X. ViResGF-Net: gated multi-scale hybrid vision transformer for robust fundus image multi-label classification. IEEE J Biomed Health Inform. (2025) 30: 8064 – 74. doi:10.1109/JBHI.2025.3626864
  34. 34. Jin K, Huang X, Zhou J, Li Y, Yan Y, Sun Y. FIVES: a fundus image dataset for artificial intelligence based vessel segmentation. Sci Data. (2022) 9 (1): 475. doi:10.1038/s41597-022-01564-3
  35. 35. Pachade S, Porwal P, Thulkar D, Kokare M, Deshmukh G, Sahasrabuddhe V. Retinal fundus multi-disease image dataset (RFMiD): a dataset for multi-disease detection research. Data. (2021) 6: 14. doi:10.3390/data6020014
  36. 36. Panchal S, Naik A, Kokare M, Pachade S, Naigaonkar R, Phadnis P. Retinal fundus multi-disease image dataset (RFMiD) 2.0: a dataset of frequently and rarely identified diseases. Data. (2023) 8: 29. doi:10.3390/data8020029
  37. 37. Li N, Li T, Hu C, Wang K, Kang H. A Benchmark of Ocular Disease Intelligent Recognition: One Shot for Multi-disease Detection. arXiv. (2021). doi:10.48550/arXiv.2102.07978
  38. 38. Zhang Q, Nie Y, Zheng WS. Dual illumination estimation for robust exposure correction. Comput Graph Forum. (2019) 38 (7): 243 – 52. doi:10.1111/cgf.13833
  39. 39. Hu J, Shen L, Sun G. Squeeze-and-excitation networks. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (Salt Lake City, UT: IEEE) (2018), 7132 – 41. doi:10.1109/CVPR.2018.00745
  40. 40. Lin TY, Goyal P, Girshick R, He K, Dollár P. Focal loss for dense object detection. In: 2017 IEEE International Conference on Computer Vision (ICCV) (Venice, Italy: IEEE) (2017), 2999 – 3007. doi:10.1109/ICCV.2017.324
  41. 41. Sun K, Zhao Y, Jiang B, Cheng T, Xiao B, Liu D. High-resolution representations for labeling pixels and regions. arXiv. (2019). doi:10.48550/arXiv.1904.04514
  42. 42. Liu Z, Lin Y, Cao Y, Hu H, Wei Y, Zhang Z. Swin transformer: hierarchical vision transformer using shifted windows. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) (Montreal, QC, Canada: IEEE) (2021), 10012 – 22. doi:10.48550/arXiv.2103.14030
  43. 43. Liu Z, Mao H, Wu CY, Feichtenhofer C, Darrell T, Xie S. A convnet for the 2020s. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (New Orleans, LA: IEEE) (2022), 11976 – 86. doi:10.1109/CVPR52688.2022.01170
  44. 44. Huo S, Li N. Iwin Transformer: Hierarchical Vision Transformer using Interleaved Windows. arXiv. (2025). doi:10.48550/arXiv.2507.18405
  45. 45. Wang Z, Yin H, Yu J, Gong M, Chen Q, Chen Q. DSA mamba: a model for advanced medical image classification. Expert Syst Appl. (2025) 299: 130064. doi:10.1016/j.eswa.2025.130064

Citation

Cai, L., et al. (2026). A multi-class fundus disease classification framework based on self-supervised contrastive learning and dual-branch network. Frontiers in Medicine, Volume 13. https://doi.org/
Received
Accepted
Published
Volume
13 - 2026

Copyright

© 2026 Cai, Hou, Mo and Ding.

License: https://creativecommons.org/licenses/by/4.0/

*Correspondence: Keke Hou

Article metrics

Views
0
Downloads
0
Citations
0
Shares
0