ORIGINAL RESEARCH article

Front. Med., 02 July 2025

Sec. Ophthalmology

Volume 12 - 2025 | https://doi.org/10.3389/fmed.2025.1596726

OculusNet: Detection of retinal diseases using a tailored web-deployed neural network and saliency maps for explainable AI

  • 1. Faculty of Engineering, Multimedia University, Cyberjaya, Malaysia

  • 2. Cybersecurity Center, Prince Mohammad Bin Fahd University, Al Khobar, Saudi Arabia

  • 3. Department of Information Systems, College of Computer and Information Sciences, Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia

  • 4. Department of Computer Science, College of Computer and Information Sciences, Najran University, Najran, Saudi Arabia

  • 5. Department of Informatics, School of Business, Örebro Universitet, Örebro, Sweden

  • 6. School of Computer Science and Electronic Engineering (CSEE), University of Essex, Colchester, United Kingdom

  • 7. School of Computing, Engineering and the Built Environment, Edinburgh Napier University, Edinburgh, United Kingdom

Abstract

Retinal diseases are among the leading causes of blindness worldwide, requiring early detection for effective treatment. Manual interpretation of ophthalmic imaging, such as optical coherence tomography (OCT), is traditionally time-consuming, prone to inconsistencies, and requires specialized expertise in ophthalmology. This study introduces OculusNet, an efficient and explainable deep learning (DL) approach for detecting retinal diseases using OCT images. The proposed method is specifically tailored for complex medical image patterns in OCTs to identify retinal disorders, such as choroidal neovascularization (CNV), diabetic macular edema (DME), and age-related macular degeneration characterized by drusen. The model benefits from Saliency Map visualization, an Explainable AI (XAI) technique, to interpret and explain how it reaches conclusions when identifying retinal disorders. Furthermore, the proposed model is deployed on a web page, allowing users to upload retinal OCT images and receive instant detection results. This deployment demonstrates significant potential for integration into ophthalmic departments, enhancing diagnostic accuracy and efficiency. In addition, to ensure an equitable comparison, a transfer learning approach has been applied to four pre-trained models: VGG19, MobileNetV2, VGG16, and DenseNet-121. Extensive evaluation reveals that the proposed OculusNet model achieves a test accuracy of 95.48% and a validation accuracy of 98.59%, outperforming all other models in comparison. Moreover, to assess the proposed model's reliability and generalizability, the Matthews Correlation Coefficient and Cohen's Kappa Coefficient have been computed, validating that the model can be applied in practical clinical settings to unseen data.

1 Introduction

Retinal imaging technologies, such as optical coherence tomography (OCT), have become essential tools in ophthalmology due to their high resolution, non-invasive nature, and ability to reveal critical microstructural details of retinal layers. In humans and most vertebrates, the retina is a thin, light-sensitive membrane located at the back of the eye (1). It consists of several layers, including one made up of light-sensitive cells known as photoreceptors. The retina converts incoming light into neural signals (2–4). The human eye contains two types of photoreceptors: rods and cones. Rod photoreceptors are responsible for black-and-white vision and motion detection, performing particularly well in low-light conditions. Cone photoreceptors, on the other hand, are responsible for color and central vision. These receptors function well in medium to bright light. Rods occupy the entire retina; however, cones are located and clustered in a small central area of the retina known as the macula. Furthermore, there is a slight depression at the center of the macula, called the fovea. The fovea is the point in the retina primarily responsible for color vision and visual acuity (the sharpness of eyesight). The captured information is processed by the retina and transmitted to the brain through the optic nerve for further visual recognition (2, 4, 5). All of these parts of the retina are critical for eyesight, and most eyesight-related diseases primarily occur due to damage or disease in the retina (3, 6).

Several diseases can damage the retina, including choroidal neovascularization (CNV), diabetic macular edema (DME), and age-related macular degeneration characterized by drusen. These disorders lead to visual impairment and even blindness. Conditions affecting the retina have a critical impact on patients, as eyesight (i.e., vision) plays a vital role in human life. Therefore, scientists have been exploring new and effective tools for diagnosing and detecting retinal conditions early (2, 7, 8). Recently, OCT has proven to be a promising non-invasive technique for micro-scale imaging of biological tissues (9). OCT technology captures images of the retina in a cross-sectional format using light waves (10, 11). OCT is significant in various medical applications, with ophthalmology being its largest commercial application. OCT is preferred for the monitoring and detection of several retinal diseases (12, 13). This technology has evolved through various configurations since its inception, i.e., time-domain OCT (14), spectral-domain OCT (15), and swept-source OCT (16). Owing to the aforementioned technological advancements, OCT is the most preferred and reliable method for diagnosing eye diseases.

Recently, the field of biomedicine has significantly evolved in the detection and analysis of diseases. Traditional methods of disease detection were often unreliable and time-consuming. However, with the advent of artificial intelligence (AI), accuracy in disease detection has increased exponentially, and turnaround times have greatly improved. Deep learning (DL) techniques have become integral to the biomedical field, providing fast and reliable results for disease detection. Therefore, this paper presents an efficient and explainable approach to classify retinal disorders, such as CNV, DME, and Drusen, from normal conditions.

The main contributions presented by this study include the following:

  • An efficient and explainable DL model specifically designed for complex medical image patterns in OCTs classifies retinal disorders, such as CNV, DME, and Drusen, differentiating them from normal conditions. The results of reliability parameters validate that OculusNet can be effectively used in practical settings on unseen data.

  • The proposed approach utilizes saliency map visualization, an explainable AI (XAI) technique, to visualize the most influential pixels and interpret how the proposed model makes its decisions while identifying retinal disorders. Results from Saliency Maps have also been compared to other XAI techniques, such as GradCam++, SHAP, and Lime.

  • The trained weights of the OculusNet model are deployed on a webpage using the Streamlit server, which is accessible to all devices connected to the same network. This deployment demonstrates significant potential for integration into ophthalmic departments, enhancing diagnostic accuracy and efficiency.

  • The transfer learning technique has been applied to ensure a fair comparison. It has been applied to four state-of-the-art models that have been proven to be the best for classification problems. The utilized pre-trained models include VGG16, VGG19, MobileNetV2, and DenseNet-121.

The structure of the rest of the article is organized as follows: Section 2 presents the literature related to this study, Section 3 discusses the dataset and data pre-processing methodologies, Section 4 presents the utilized methodology along with the design and architecture of the proposed OculusNet model, and Section 5 discusses the performance parameters that are utilized for this study and reports the obtained results. Finally, a conclusion to this study is provided in Section 6.

2 Related research

OCTs provide high-resolution cross-sectional images of the retina, which play a potential role in diagnosing retinal disorders (17). Recently, DL has been extensively utilized to detect retinal disorders efficiently (11, 18–20). The development of novel image processing models has enhanced noise reduction and retinal layer segmentation in OCT images, thereby facilitating the accurate diagnosis of retinal disorders (21). The application of OCT in pediatric ophthalmology has been revolutionary, enabling the visualization of retinal structures in infants and neonates (6), which is crucial for the diagnosis of retinal-related diseases. The integration of deep learning (DL) methods has addressed reliability issues in OCT image analysis, leading to improved diagnostic accuracy (18, 22). Additionally, OCT's capability to differentiate between retinoschisis and retinal detachment has been confirmed, showcasing its diagnostic versatility. For the diagnosis of age-related macular degeneration diseases, several methods have been proposed that detect retinal pigment epithelium (RPE) through OCT images (23). Recently, various algorithms have also been developed for the classification of eye diseases. For example, the authors in Muni Nagamani and Rayachoti (24) present a DL approach that utilizes OCT images for the classification of retinal diseases using a modified ResNet50 model. Their study shows that they used a single-view retinal image set along with applied segmentation. Similarly, in Wang et al. (25), a semi-supervision-based approach named Caps-cGAN has been proposed to reduce noise in OCT images, particularly speckle noise. Furthermore, to extend the automated diagnosis of eye diseases, a semi-automated approach is presented in Shin et al. (26). The authors utilized pig eye images in this approach and achieved an accuracy of 83.89%. The classification of retinal diseases, namely DME, Drusen, and CNV, has been performed in Adel et al. (27), using the Inception and Xception models with 6,000 OCT images.

Recent literature also demonstrates the use of pre-trained models for detecting retinal disorders. For instance, in Islam et al. (28), a total of 109,309 images were utilized for four classes: CNV, Drusen, DME, and Normal, using 11 pre-trained models. Similarly, several pre-trained models have been presented to demonstrate the effectiveness of CNNs in detecting various retinal diseases (29–31).

Moreover, the authors in Jawad et al. (32) apply four Swin Transformer variants to multi-classify fundus images, utilizing local window self-attention to address the limited global modeling of traditional CNNs. Swin-L outperforms earlier research, with final scores reaching up to 0.97 and an AUC exceeding 0.95 on three ODIR test splits and an external retina dataset, demonstrating strong generalization. Metric standard deviations remain below 0.05, and one-way ANOVA indicates non-significant differences among models (p = 0.32–0.94), confirming the statistical stability of their results.

Furthermore, in a study by Abdul Jawad and Khursheed (33), the authors build a DenseNet-based deep-and-dense CNN that classifies BreakHis breast-cancer slides into benign/malignant subtypes across all magnifications, achieving up to 96.6% patient-level and 91.8% image-level accuracy, with t-tests showing that the gains over earlier CNNs are significant. Additionally, in another study by Abdul Jawad and Khursheed (34), the authors introduce an automatic, color-balanced reference-image selector that, when paired with Reinhard, Macenko, and Vahadane normalization, consistently boosts SSIM, QSSIM, and PCC on BreakHis and BACH datasets; Wilcoxon tests confirm that the improvements compared to random selection are also significant.

Furthermore, the authors in Bhandari et al. (35) proposed a lightweight convolutional neural network with only 983,716 trainable parameters. They employed this architecture to classify OCT images of three retinal pathologies: CNV, DME, and Drusen, achieving a test accuracy of 94.29% and a validation accuracy of 94.12%. To interpret the model's decisions, the authors applied two explainable AI techniques: Local Interpretable Model-Agnostic Explanations (LIME) and Shapley Additive exPlanations (SHAP), which highlighted clinically relevant retinal regions. The same network was subsequently tested on two additional medical imaging tasks: COVID-19 detection from chest X-rays and kidney stone classification. Similarly, in another study by Bhandari et al. (41), the authors utilized the proposed model with explainable AI techniques, including LIME, Gradient-weighted Class Activation Mapping (Grad-CAM), and SHAP.

Thus, the majority of existing approaches lack interpretability and explanations of the decision-making process, which is extremely important in clinical settings. Therefore, in addition to designing a tailored deep learning model for the efficient and accurate detection of retinal disorders, this paper focuses on integrating explainable AI to visualize and interpret the features on which the identification of retinal disorders is based.

3 Data preparation

3.1 Dataset

In this study, retinal OCT images were used to train DL models for the classification of retinal disorders. From the accessed dataset [“Retinal OCT Images (optical coherence tomography)” data (36)], a balanced, high-quality subset of 6,200 images (1,550 per class) was constructed using a two-step procedure: quality screening and class balancing with computational constraints. During quality screening, many raw files were found to contain white borders or artifacts unrelated to retinal tissue. These were excluded to prevent the models from learning irrelevant or misleading patterns. For class balancing with computational limits, all experiments were conducted on Google Colab, where limited GPU memory could not accommodate the entire dataset without frequent crashes. A balanced subset of 1,550 images per class provided a practical compromise between dataset representativeness and hardware constraints. The dataset comprises four classes: normal, CNV disorder, DME disorder, and Drusen disorder. It was divided into three sets: training, testing, and validation. A two-stage split strategy was used. In the first stage, the dataset was split into 80% for training and 20% for testing. In the second stage, the training set was further divided, with 80% used for model training and 20% for validation. Details of the dataset are provided in Table 1, and representative sample images of retinal OCT scans are shown in Figure 1.

Table 1

Class nameSplitting details
Training setValidation setTesting setTotal
CNV9922483101,550
DME9922483101,550
Drusen9922483101,550
NORMAL9922483101,550

Summary of dataset classes and distributions.

Figure 1

3.2 Data preprocessing and augmentation

To train the DL on the OCT images, the dataset was preprocessed. The OCT images in the dataset primarily contain noisy pixels. Noisy pixels lead to incorrect feature extraction during model training, resulting in underfitting and overfitting issues. To eliminate noisy pixels, a preprocessing function Prepfunc given in Equation 1 was utilized, which normalizes image pixels from the range [0, 255] to [−1, 1]. Samples of the preprocessed and rescaled images for each model are displayed in Figure 2. It is evident that there are no noisy pixels (compared to the sample images shown in Figure 1).

After scaling the images, data augmentation was applied using a 30° rotation and horizontal flipping. Samples of the augmented images are illustrated in Figure 3.

Figure 2

Figure 3

4 Methodology and experiments

The methodology employed in this study consists of four key stages: data preparation, data augmentation, model training with explainable AI, and model evaluation. An overview of the employed methodology is illustrated in Figure 4. The data preparation and data augmentation processes have already been discussed in the previous section. This section details the model architecture and evaluation parameters.

Figure 4

4.1 The proposed OculusNet model

4.1.1 Architecture of the proposed model

A DL model named OculusNet has been proposed in this study. The OculusNet model comprises nine depthwise separable (DWS) convolutional layers, four max pooling layers, and four batch normalization layers. A max pool size of 2 × 2 has been kept for this model. For each DWS layer, a kernel size of 3 × 3 has been utilized, and in each 2D separable convolutional layer, the “ReLU” activation function is utilized. The model summary and parameter information for each layer are shown in Table 2. The model architecture of the proposed CNN (i.e., OculusNet) is depicted in Figure 5.

Table 2

LayersOutput shapeParameters
separable_conv2d222, 222, 32155
separable_conv2d_1220, 220, 321,344
separable_conv2d_2218, 218, 321,344
Max_Pooling2d109, 109, 320
Batch_Normalization109, 109, 32128
separable_conv2d_3107, 107, 642,400
separable_conv2d_4105, 105, 644,763
Max_Pooling2d_152, 52, 640
Batch_Normalization_152, 52, 64256
separable_conv2d_550, 50, 1288,896
separable_conv2d_648, 48, 12817,664
Max_Pooling2d_224, 24, 1280
Batch_Normalization_224, 24, 128512
separable_conv2d_722, 22, 25634,176
separable_conv2d_820, 20, 25668,096
Max_Pooling2d_36, 6, 2560
Batch_Normalization_36, 6, 2561,024
Flatten92160
Dense1281,179,776
Dense_1648,256
Dense_24260

Summary of layer outputs and parameters.

Figure 5

4.1.2 Depthwise separable convolutional layers

Depthwise Separable Convolution (DWS) is a computationally efficient alternative to standard convolution, designed to reduce the number of trainable parameters and floating-point operations in convolutional neural networks. It decomposes a standard convolution into two distinct operations: depthwise convolution and pointwise convolution (37, 38). The visual comparison between standard and DWS convolutional layers is illustrated in Figures 6, 7, respectively.

Figure 6

Figure 7

In a standard convolutional layer, an input image tensor with the shape Ah×Aw×N (where Ah and Aw represent the height and width, and N signifies the number of input channels) is convolved with n filters, each sized Kd×Kd×N. This produces an output tensor of shape , where and depend on the stride and padding. The computational cost for this operation is described by Equation 2:

In contrast, depthwise separable convolution divides the operation described above into two stages:

  • 1. Depthwise convolution: Applies a single Kd×Kd filter to each input channel (no cross-channel mixing), generating N feature maps. The computational cost is as follows:

  • 2. Pointwise convolution: Applies 1 × 1 × N filters to combine the output of the depthwise stage across channels, generating n output channels. The computational cost is as follows:

The total cost of a depthwise separable convolution is the sum of Equations 3, 4, as indicated in Equation 5:

To understand the efficiency of DWS, the ratio of its computational cost to that of standard convolution (Equation 2) is derived in Equation 6:

For instance, with n = 256 filters and a kernel size of Kd = 3, Equation 6 yields:

This indicates that depthwise separable convolution requires only about 11.5% of the computational cost of standard convolution while still producing feature representations with comparable effectiveness. This significant reduction in operations and parameters makes DWS particularly suitable for lightweight architectures such as OculusNet, which are intended for deployment in resource-constrained environments such as mobile or web applications.

Figure 6 illustrates the standard convolution operation, where each filter operates on all input channels simultaneously. In contrast, Figure 7 shows the DWS operation, which performs filtering channel-wise followed by channel mixing, effectively decoupling spatial and cross-channel computations.

4.1.3 Workflow of the utilized architecture

The coding flow utilized for the experiments was organized into four main stages: data preprocessing, building model architecture, model training, and model evaluation. Initially, the necessary libraries were imported, followed by the dataset, where preprocessing functions were applied to standardize images and split the dataset into training, validation, and testing subsets. Hyperparameters were selected, and data augmentation techniques were employed using an image data generator library to enhance the model's generalization capability. For building the models, the OculusNet model was defined from scratch by adding convolutional, max-pooling, flatten, and dense layers, after which a model summary was printed. Similarly, pre-trained models were imported from Keras libraries with ImageNet weights, followed by adding flatten and dense layers and printing their summaries. During model training, the models were trained on the training dataset and validated on the validation dataset, while loss and accuracy graphs were generated. The model evaluation step involved obtaining the confusion matrices and classification reports for both validation and testing datasets to comprehensively assess the models' performance. This structured approach ensures a coherent and efficient workflow, leading to reliable and reproducible results.

4.2 Explainable AI using saliency maps

DL models are typically referred to as black box models due to the complicated interpretation of outputs or predicted results from the trained DL models. However, several visualization techniques are available, such as Grad-CAM (39–41), and saliency maps, which are often known as class activation maps. By using saliency maps, one can compute the effect of each input pixel on the final prediction, highlighting the influential pixels in the image that the model uses to classify the given image. However, Grad-CAM does not calculate pixel by pixel; instead, it generates a heatmap of the input pixels (39, 40).

In this study, saliency maps have been utilized for class-specific results on images. Mathematically, the saliency map can be explained by Equation 8, where w is the weight of each pixel. Sn represents the score of the specific class n, which is acquired by the trained model. I represents the pixel's values of the given image. Additionally, other techniques, such as Grad-CAM, have also been employed (Grad-CAM++ is selected for this case), along with LIME and SHAP.

4.3 Transfer learning on pre-trained models for comparison

To ensure a fair comparison, transfer learning has been employed to optimize pre-trained models that are well-known for classification tasks. The models used include VGG-16, VGG-19, MobileNetV2, and DenseNet-121. The VGG16 model consists of 13 convolutional layers and three dense layers, while the VGG19 model comprises 16 convolutional layers with three dense layers. In contrast, MobileNetV2 is a lightweight neural network with fewer parameters, comprising 28 convolutional layers that utilize depthwise separable convolution. Lastly, the DenseNet121 model includes 121 layers organized into four dense blocks. The architectural details of the aforementioned models are shown in Figure 8.

Figure 8

The aforementioned models are pre-trained on ImageNet, a large dataset comprising 1,000 classes and almost 1,281,167 images. In this study, the convolutional layers of the aforementioned models were frozen to utilize the pre-trained weights, and the fully connected layers were replaced to retrain the model for classifying retinal OCT images. Additionally, to prevent underfitting during the training phase, batch normalization layers and a dropout layer with a size of 0.25 were added to the fully connected layers. The details regarding the layers and parameters of all models are provided in Table 3, which includes the input layer size of 224 × 224 × 3 (height×width×dimension) and an output layer size of 4, 1, where 4 represents the four classes and 1 is the final output layer.

Table 3

Model nameNo. of layersSize of input layerSize of output layer
VGG1919(224, 224, 3)(4, 1)
VGG1616(224, 224, 3)(4, 1)
MobileNet28(224, 224, 3)(4, 1)
DenseNet-121121(224, 224, 3)(4, 1)
OculusNet12(224, 224, 3)(4, 1)

Model architectures and layer details.

Moreover, the trainable and non-trainable parameters of the utilized models are detailed in Table 4. These parameters are often referred to as model summaries and are derived from the parameters used in the layers of the model. For the pre-trained models, non-trainable parameters were the sum of the frozen layers (frozen with ImageNet weights), while the trainable parameters were the sum of the FC layer parameters (for which the model weights were not frozen). The weights of the model were updated only for the trainable parameters during the training phase. Additionally, the FC layers remain the same for all the utilized models. The first dense layer uses the ReLU activation function with 128 units, and the second dense layer consists of 64 units. The third dense layer, which is the output layer, has four units and uses softmax as the activation function. Softmax, in this context, is responsible for providing the output.

Table 4

Model nameTotal parametersTrainable parametersNon-trainable parametersModel size (MB)
VGG1923,246,3403,220,93220,025,40816.54
VGG1617,936,6443,220,93214,715,71226.21
MobileNet9,664,1326,433,2203,230,9126.22
DenseNet-12113,472,7726,433,2207,039,55226.56
OculusNet1,329,0231,328,0639605.07

Model parameters and size details.

5 Experiment and results

5.1 Evaluation parameters

5.1.1 Performance parameters

For the experimental parameters, a grid search strategy was used, with the number of epochs set to 100 and the batch size set to 32. A learning rate of 0.00001 with RMS optimizer was applied. For performance evaluation, key performance parameters, including precision, recall, specificity, F1 score, and accuracy, were employed. These parameters were derived from the confusion matrices. The 4 × 4 confusion matrix with character representation is given in Table 5. The analysis of the confusion matrix has been presented for both the validation and testing datasets. Considering the characters used in Table 5, the TP and TN samples for each respective class are listed in Table 6. Similarly, the FP and FN samples for each respective class are provided in Table 7.

Table 5

Confusion matrix
Predicted classes
Actual classesCNVDMEDrusenNORMAL
CNVTPCNVFABFACFAD
DMEFBATPDMEFBCFBD
DrusenFCAFCBTPDrusenFCD
NORMALFDAFDBFDCTPNORMAL

Representation of the confusion matrix.

Table 6

ClassTrue positive (TP)True negative (TN)
CNVTPCNVTPDME + FBC + FBD + FCB + TPDrusen + FCD + FDB + FDC + TPNORMAL
DMETPDMETPCNV + FAC + FAD + FCA + TPDrusen + FCD + FDA + FDC + TPNORMAL
DrusenTPDrusenTPCNV + FAB + FAD + FBA + TPDME + FBD + FDA + FDB + TPNORMAL
NORMALTPNORMALTPCNV + FAB + FAC + FBA + TPDME + FBC + FCA + FCB + TPDrusen

Class-wise true positive and true negative.

Table 7

ClassFalse positive (FP)False negative (FN)
CNVFBA + FCA + FDAFAB + FAC + FAD
DMEFAB + FCB + FDBFBA + FBC + FBD
DrusenFAC + FBC + FDCFCA + FCB + FCD
NORMALFAD + FBD + FCDFDA + FDB + FDC

Class-wise false positives and false negatives.

Accuracy represents the model's overall ability to correctly classify the TP and TN classes from all the predicted labels. It can be calculated using Equation 9.

Precision measures the actual TP samples from all the positive predicted samples of the respective class. It can be calculated using Equation 10.

Recall is also commonly known as sensitivity. It measures the actual TP samples from the considered predicted samples of that class. It can be calculated using Equation 11.

Specificity measures the TN samples from the predicted samples of the classes. It can be calculated using Equation 12.

F1-Score describes the actual predicted results obtained through precision and recall. It can be calculated using Equation 13.

5.1.2 Reliability parameters

To assess the model's reliability on unseen data and its generalization, reliability parameters such as Cohen's kappa coefficient and Matthews correlation coefficient have been calculated.

Cohen's Kappa coefficient

Cohen's Kappa statistic (kappa) assesses a model's performance by measuring the agreement between predicted and actual labels, while accounting for the agreement that could happen by chance. It indicates how accurate the predictions are, or how close they are to the actual value of their respective labels. It is computed using the observed and expected accuracy values extracted from the confusion matrices. Observed accuracy corresponds to the ratio of accurately predicted values to the total number of values in the confusion matrix. Equation 14 represents the mathematical representation for observed accuracy. Expected accuracy is defined as a random accuracy, and Equation 15 shows the mathematical representation of expected accuracy, where the sum of total values in the predicted row for a respective class is multiplied by the sum of total values of the actual class for the respective class, and i∈0, 1, 2, 3 represents the four classes: 0: CNV, 1: DME, 2: Drusen, and 3: NORMAL used in this study. The combination of observed accuracy versus expected accuracy is known as the kappa statistic, and Equation 16 represents the kappa statistic.

Matthews correlation coefficient

The Matthews correlation coefficient (MCC) is used to assess the correlation between predicted and true binary classification labels, taking into account all four confusion matrix categories (TP, TN, FP, FN). The range of MCC lies between –1 and 1, where 1 indicates that a model is perfectly positive and capable of classifying positive samples with greater accuracy. Conversely, –1 indicates that the model has a negative correlation and, in most cases, will misclassify positive samples. Thus, –1 represents the worst-case scenario for a model, which will be unable to classify the samples correctly. Equation 17 represents the mathematical formulation of MCC, and i ∈0, 1, 2, 3 represents the four classes, namely 0: CNV, 1: DME, 2: Drusen, and 3: NORMAL, used in this study.

5.2 Results and discussion

This section provides the results of the training performance, the key performance parameters, and the reliability parameters of the models. In addition, an ablation study has also been performed on the proposed OculusNet model to validate it.

5.2.1 Training and validation results

The training performance of the proposed OculusNet model, as well as the models used for comparison, has been evaluated and reported in terms of validation and test accuracy. The training curves for the proposed OculusNet model, along with the other utilized models, are shown in Figure 9. The curves demonstrate that the models are well-trained, exhibiting no data bias, underfitting, or overfitting. Each model achieved over 90% validation and training accuracy.

Figure 9

5.2.2 Class-wise classification report

The confusion matrices obtained from the validation dataset are shown in Figure 10. In these confusion matrices, the labels on the y-axis represent the actual labels, while the labels on the x-axis represent the predicted number of images for the respective classes. Moreover, Table 8 provides a classification report for each model. These parameter values are obtained after the training of the model and can be validated using Equations 9–13.

Figure 10

Table 8

ModelsClassesPrecisionRecallF1-ScoreSpecificity
DenseNet121CNV0.9830.9670.9740.994
DME0.9720.9870.9790.990
Drusen0.9320.9430.9370.979
Normal0.9590.9470.9520.986
VGG16CNV0.9500.9190.9340.983
DME0.9550.9510.9520.985
Drusen0.8660.9190.8910.952
Normal0.9210.8990.9090.974
MobileNetV2CNV0.9830.9790.980.994
DME0.9950.9950.9950.998
Drusen0.9550.9550.9550.985
Normal0.9710.9750.9720.990
VGG19CNV0.9390.9310.9350.980
DME0.9420.9150.9280.981
Drusen0.8630.8870.8750.953
Normal0.9080.9150.9120.969
OculusNetCNV0.9870.9870.9870.995
DME0.9880.9950.9910.995
Drusen0.9790.9790.9790.993
Normal0.9870.9790.9820.995

Performance parameters of the models used for the validation dataset.

Considering the results presented in Table 8 and the obtained confusion matrices shown in Figure 10, the validation accuracies of each model “VGG19, DenseNet121, MobileNetV2, and VGG16” are 91.03%, 97.18%, 97.48%, and 92.14%, respectively. However, the proposed model, OculusNet, outperformed the pre-trained models, achieving a validation accuracy of 98.59%.

Similarly, the confusion matrices (Figure 11) and classification report (Table 9) for the testing dataset have been obtained. The test dataset remains unseen and was not exposed to the models during the training phase.

Figure 11

Table 9

ModelsClassesPrecisionRecallF1-ScoreSpecificity
DenseNet121CNV0.9600.9260.9430.987
DME0.9560.9710.9630.985
Drusen0.8880.9190.9030.961
Normal0.9250.9100.9170.975
VGG16CNV0.9460.8520.8960.984
DME0.8970.9290.9130.965
Drusen0.8090.9030.8540.929
Normal0.9010.8550.8770.969
MobileNetV2CNV0.9690.9250.9470.990
DME0.9530.9800.9660.983
Drusen0.9080.9290.9180.968
Normal0.9380.9350.9350.979
VGG19CNV0.9120.8770.8940.972
DME0.9300.9120.9210.974
Drusen0.8000.8800.8380.926
Normal0.8850.8480.8660.963
OculusNetCNV0.9830.9450.9630.994
DME0.9290.9800.9530.975
Drusen0.9500.9380.9430.983
Normal0.9570.9540.9550.986

Performance parameters of the utilized models for the test dataset.

Considering the results from these models as shown in Table 9 and Figure 11, the test accuracy for each model “VGG19, DenseNet121, MobileNetV2, and VGG16” was 87.98%, 93.15%, 94.19%, and 88.59%, respectively. The proposed model achieved the highest test accuracy of 95.48%. These results indicate that the proposed model outperformed all other pre-trained models with the highest validation and testing accuracies.

5.2.3 Reliability parameters results

The results of the reliability parameters are presented in Table 10, demonstrating that the proposed OculusNet model outperformed across all classes and metrics, with observed accuracies ranging from 0.989 to 0.995 on the validation set and 0.972 to 0.982 on the test set, along with high Kappa and MCC values. This suggests that OculusNet's architecture is particularly effective for feature extraction and generalization capabilities suited to the specific characteristics of retinal disease images. The Kappa statistic and MCC values across all models and classes were high, indicating a strong agreement between the predicted and actual labels. These metrics highlight the models' ability to accurately differentiate among various classes, which is crucial in medical diagnostics, where the stakes are high due to the potential consequences of misdiagnosis. The high Kappa and MCC values also imply that the models were well-trained, providing a reliable assessment of their predictive performance.

Table 10

DatasetModelsClassesExpected Acc.Observed Acc.KappaMCC
ValidDenseNet-121CNV0.6270.9870.9650.967
DME0.6220.9890.9700.973
Drusen0.6230.9680.9150.917
NORMAL0.6260.9760.9350.937
VGG16CNV0.6290.9670.9110.913
DME0.6250.9760.9360.938
Drusen0.6170.9440.8530.855
NORMAL0.6280.9550.8790.880
MobileNetV2CNV0.6250.9900.9730.975
DME0.6250.9970.9920.994
Drusen0.6250.9770.9380.940
NORMAL0.6240.9860.9620.965
VGG19CNV0.6260.9670.9110.913
DME0.6280.9640.9030.905
Drusen0.6210.9360.8310.832
NORMAL0.6230.9550.8800.882
OculusNetCNV0.6250.9930.9810.983
DME0.6230.9950.9860.989
Drusen0.6250.9890.9700.971
NORMAL0.6260.9910.9750.978
TestDenseNet-121CNV0.6290.9710.9210.924
DME0.6220.9810.9490.950
Drusen0.6200.9500.8680.870
NORMAL0.6270.9580.8870.889
VGG16CNV0.6370.9500.8620.866
DME0.6200.9550.8810.883
Drusen0.6100.9220.8000.803
NORMAL0.6310.9400.8370.838
MobileNetV2CNV0.6300.9740.9290.930
DME0.6210.9830.9550.955
Drusen0.6220.9580.8880.891
NORMAL0.6250.9670.9120.913
VGG19CNV0.6290.9480.8590.860
DME0.6270.9610.8950.896
Drusen0.6120.9150.7800.783
NORMAL0.6300.9340.8210.823
OculusNetCNV0.6290.9820.9510.952
DME0.6180.9760.9370.939
Drusen0.6260.9720.9250.926
NORMAL0.6250.9780.9410.941

Kappa coefficient and Matthews correlation coefficient for all models.

5.2.4 Saliency map results

By utilizing Equation 8, the strongest pixel values are calculated from the given input image and then used to display the saliency map. Moreover, the input images used to generate the saliency map are first rescaled, and their pixel values are normalized to a range between 0 and 1 because our model was trained on rescaled and preprocessed images. The saliency map of each class on the OculusNet model is shown in Figure 12. Furthermore, for a fair comparison, Grad-CAM++ and LIME results have also been presented for each class in Figure 12. From the comparison, it can be observed that the saliency map and Grad-CAM++ show that the model was more focused on the retina layers, unlike LIME. Moreover, it is also a limitation of this study that LIME and Grad-CAM have not been optimized further; thus, as a future direction, these techniques will be explored. Additionally, SHAP analysis for each class is shown in Figure 13. From these heatmaps, it can be observed that the model is trying to focus on the retina layers for decision-making.

Figure 12

Figure 13

5.3 Ablation study

In this section, an ablation study was conducted to understand the impact of various architectural components on the performance of OculusNet. An ablation study systematically removes parts of the network to evaluate their contribution to the model's final performance. This approach helps identify the most critical components of the network that significantly affect its accuracy and efficiency. Three different models of OculusNet were evaluated on the test dataset, each with varying configurations and complexities. These models were designed to investigate the influence of specific layers and parameters on the network's ability to process and analyze data. The configurations of these models are detailed in Table 11, which outlines the layers and parameters involved in each model.

Table 11

LayersModel 1ParametersModel 2ParametersModel 3Parameters
separable_conv2d✓155✓155✓155
separable_conv2d_1✓1,344✓1,344✓1,344
separable_conv2d_2✓1,344✓1,344✓1,344
Max_Pooling2d✓0✓0✓0
Batch_Normalization✓128✓128✓128
separable_conv2d_3✓2,400✓2,400--
separable_conv2d_4✓4,763✓4,763--
Max_Pooling2d_1✓0✓0--
Batch_Normalization_1✓256✓256--
separable_conv2d_5✓8,896----
separable_conv2d_6✓17,664----
Max_Pooling2d_2✓0----
Batch_Normalization_2✓512----
separable_conv2d_7------
separable_conv2d_8------
Max_Pooling2d_3------
Batch_Normalization_3------
Flatten✓0✓0✓0
Dense✓9,437,312✓22,151,296✓48,664,704
Dense_1✓8,256✓8,256✓8,256
Dense_2✓260✓260✓260

Models architecture utilized for the ablation study.

Following the detailed layer and parameter configurations, Table 12 provides a summary of the total parameters, accuracy, and model size in MB for each of the three models. The ablation study emphasizes the significant impact of layer configuration and parameter count on the computational efficiency and model size of OculusNet. By comparing Model 1, Model 2, and Model 3, it becomes clear that increasing the complexity and the number of parameters greatly enlarges the model size, with Model 3 having the largest size of 185.68 MB. Conversely, Model 1, which has the fewest parameters, demonstrates a balance between model size and complexity, suggesting a more efficient architecture for applications where computational resources are limited.

Table 12

Model No.Accuracy (%)Total parametersModel size (MB)
Model 183.559,483,26336.18
Model 280.8922,170,17584.57
Model 375.2448,676,191185.68

Obtained confusion metrics for the three models.

As shown in Table 12, Model 1 demonstrates the highest accuracy at 83.55% among the three models. With an accuracy of 80.89%, Model 2 exhibits a slight decrease in performance compared to Model 1. This model has improved identification for the CNV category but shows a reduction in accuracy for DME and Drusen conditions. Model 3, with an accuracy of 75.24%, reflects a decline in classification performance. The confusion matrix reveals a significant challenge in distinguishing between all conditions. Compared to Model 1, Model 2, and Model 3, the proposed architecture of the OculusNet model, which contains all layers, achieved the best testing accuracy of 95.48%. The respective confusion metrics for all three models are shown in Figure 14.

Figure 14

Additioanlly, Table 13 presents a comparison with recent deep-learning approaches for retinal “disease classification.” In Shin et al. (26), a semi-automated pipeline was applied to a pig-eye dataset, achieving an accuracy of 83.89%. In contrast, (29) fine-tuned several pre-trained networks on OCT B-scan images, with Xception achieving the best test accuracy of 92.00%. Moreover, Bhandari et al. (35) proposed a lightweight CNN with only 983,716 trainable parameters, achieving a test accuracy of 94.29% for classifying CNV, DME, and Drusen. By comparison, the proposed OculusNet achieves a superior accuracy of 95.48%.

Table 13

ReferenceDatasetApproachResult
Shin et al. (26)Pig eye datasetSemi-automated83.89%
Bhandari et al. (35)OCT datasetLightweight CNN model94.29%
Kang et al. (29)OCT B- scan imagesPre-trained models92.00%
This studyOCTOculusNet95.48%

Comparison with other studies.

5.4 Web deployment

The web deployment of OculusNet was hosted by Streamlit, a platform known for its ease of use and efficiency in deploying data applications. The Streamlit library was employed to build an interactive web application that enables users to upload OCT images and receive classification results based on the pre-trained OculusNet model. As shown in Figure 15, the steps that will be followed to classify OCT images are outlined. Pre-trained weights from the OculusNet model are loaded into the system, ensuring that the web application utilizes the refined and optimized weights derived from extensive training sessions. A background image is set for the web application to enhance the user experience. The title and header are defined to prompt users to upload an OCT image for classification. A file uploader widget is provided for users to upload OCT images in “jpeg,” “jpg,” or “png” formats. Upon uploading, the image is displayed on the web interface. The uploaded image is passed to the classify function, which preprocesses the image and utilizes the model to predict the class of retinal disease. The classification result, along with the confidence score, is presented to the user. The confidence score is formatted to display a percentage, aiding in the interpretability of the result. Upon accessing the Streamlit web application, users encounter a clear and straightforward interface. The process is designed to be intuitive, allowing the user to easily upload an OCT image and wait for the model to classify the retinal condition. The application promptly displays the classification along with a confidence score, providing a valuable tool for preliminary diagnosis or a second opinion in clinical settings.

Figure 15

6 Conclusion

This study presented an interpretable and web-deployable approach to retinal disease classification, promising to enhance diagnostic capabilities in clinical settings. The use of saliency map visualization as an explainable AI technique improved the interpretation of the decision-making process of the proposed model. This transparency is crucial for clinical adoption, as it fosters trust and understanding among healthcare professionals. Furthermore, an ablation study was conducted on OculusNet to validate the effectiveness and robustness of the chosen architecture. To ensure a fair comparison, transfer learning was applied to four pre-trained models. The results demonstrated the superior performance of the proposed model compared to the pre-trained model, with a test accuracy of 95.48% and a validation accuracy of 98.59%. The model's performance was also evaluated using the Kappa statistic and MCC, both of which confirmed the high reliability and consistency of our model's predictions. For practical deployment, the Streamlit server was utilized to create a user-friendly interface that allows users to upload retinal OCT images and receive instant classification results. This web application has significant potential for integration into ophthalmic departments, providing an accessible and efficient tool for diagnosing retinal diseases.

Statements

Data availability statement

The datasets analyzed and utilized for this study can be found at DOI: 10.17632/rscbjbr9sj.3. Further inquiries can be directed to the corresponding authors.

Ethics statement

The studies involving humans were approved by the University of California San Diego (Shiley Eye Institute of the University of California San Diego, California Retinal Research Foundation, Medical Center Ophthalmology Associates, Shanghai First People's Hospital, and Beijing Tongren Eye Center) DOI: 10.17632/rscbjbr9sj.3. The work was conducted in a manner compliant with the United States Health Insurance Portability and Accountability Act (HIPAA) and was adherent to the tenets of the Declaration of Helsinki. Written informed consent for participation was not required from the participants or the participants' legal guardians/next of kin in accordance with the national legislation and institutional requirements.

Author contributions

MU: Methodology, Software, Writing – original draft. JA: Investigation, Validation, Writing – review & editing. OS: Formal analysis, Funding acquisition, Writing – review & editing. MA: Funding acquisition, Project administration, Writing – review & editing. AA: Investigation, Validation, Writing – review & editing. MH: Resources, Validation, Writing – review & editing. RU: Data curation, Formal analysis, Writing – review & editing. MSK: Conceptualization, Methodology, Supervision, Writing – original draft.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. This work is funded by Princess Nourah bint Abdulrahman University Researchers Supporting Project number (PNURSP2025R760), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia. The research team thanks the Deanship of Graduate Studies and Scientific Research at Najran University for supporting the research project through the Nama'a program, with the project code NU/GP/SERC/13/352-3.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declare that no Gen AI was used in the creation of this manuscript.

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.

References

  • 1.

    LeeWJ. Vitamin C in Human Health and Disease: Effects, Mechanisms of Action, and New Guidance on Intake. Dordrecht: Springer Netherlands (2019). 10.1007/978-94-024-1713-5

  • 2.

    SubramanianBDevishamaniCRamanRRatraD. Association of OCT biomarkers and visual impairment in patients with diabetic macular oedema with vitreomacular adhesion. PLoS ONE. (2023) 18:1–11. 10.1371/journal.pone.0288879

  • 3.

    Le BoiteHCouturierATadayoniRLamardMQuellecG. VMseg: Using spatial variance to automatically segment retinal non-perfusion on OCT-angiography. PLoS ONE. (2024) 19:1–11. 10.1371/journal.pone.0306794

  • 4.

    KermanyDSGoldbaumMCaiWValentimCCSLiangHBaxterSLet al. Identifying medical diagnoses and treatable diseases by image-based deep learning. Cell. (2018) 172:1122–1131.e9. 10.1016/j.cell.2018.02.010

  • 5.

    FarsiuSChiuSJO'ConnellRVFolgarFAYuanEIzattJAet al. Quantitative classification of eyes with and without intermediate age-related macular degeneration using optical coherence tomography. Ophthalmology. (2014) 121:162–72. 10.1016/j.ophtha.2013.07.013

  • 6.

    XuXLiXTangQZhangYZhangLZhangM. Exploring laser-induced acute and chronic retinal vein occlusion mouse models: Development, temporal in vivo imaging, and application perspectives. PLoS ONE. (2024) 19:1–23. 10.1371/journal.pone.0305741

  • 7.

    AlqudahAAlqudahAMAlTantawiM. Artificial Intelligence Hybrid System for Enhancing Retinal Diseases Classification Using Automated Deep Features Extracted from OCT Images. Int J Intell Syst Applic Eng. (2021) 9:91–100. 10.18201/ijisae.2021.236

  • 8.

    KanagasingamYBhuiyanAAbràmoffMDSmithRTGoldschmidtLWongTY. Progress on retinal image analysis for age related macular degeneration. Prog Retin Eye Res. (2014) 38:20–42. 10.1016/j.preteyeres.2013.10.002

  • 9.

    JayaramanVBurgnerCBCarterJBorovaIBramhamNLindbladCet al. Widely tunable electrically pumped 1050nm MEMS-VCSELs for optical coherence tomography. In:GrahamLALeiC, editors. Vertical-Cavity Surface-Emitting Lasers XXIV. International Society for Optics and Photonics, SPIE (2020). p. 113000S. 10.1117/12.2543819

  • 10.

    AminJSharifMRehmanARazaMMuftiMR. Diabetic retinopathy detection and classification using hybrid feature set. Microsc Res Tech. (2018) 81:990–6. 10.1002/jemt.23063

  • 11.

    AlqudahAMAOCT-NET. a convolutional network automated classification of multiclass retinal diseases using spectral-domain optical coherence tomography images. Med Biol Eng Comput. (2020) 58:41–53. 10.1007/s11517-019-02066-y

  • 12.

    DrexlerWFujimotoJG. State-of-the-art retinal optical coherence tomography. Prog Retin Eye Res. (2008) 27:45–88. 10.1016/j.preteyeres.2007.07.005

  • 13.

    PuliafitoCAHeeMRLinCPReichelESchumanJSDukerJSet al. Imaging of macular diseases with optical coherence tomography. Ophthalmology. (1995) 102:217–29. 10.1016/S0161-6420(95)31032-9

  • 14.

    HuangDSwansonEALinCPSchumanJSStinsonWGChangWet al. Optical coherence tomography. Science. (1991) 254:1178–81. 10.1126/science.1957169

  • 15.

    LeitgebRHitzenbergerCKFercherAF. Performance of Fourier domain vs. time domain optical coherence tomography. Optics Expr. (2003) 11:889–94. 10.1364/OE.11.000889

  • 16.

    GolubovicBBoumaBETearneyGJFujimotoJG. Optical frequency-domain reflectometry using rapid wavelength tuning of a Cr4+:forsterite laser. Opt Lett. (1997) 22:1704–6. 10.1364/OL.22.001704

  • 17.

    MonemianMIrajpourMRabbaniHA. review on texture-based methods for anomaly detection in retinal optical coherence tomography images. Optik. (2023) 288:171165. 10.1016/j.ijleo.2023.171165

  • 18.

    EjazSBaigRAshrafZAlnfiaiMMAlnahariMMAlotaibiRMet al. deep learning framework for the early detection of multi-retinal diseases. PLoS ONE. (2024) 19:1–23. 10.1371/journal.pone.0307317

  • 19.

    PatnaikSSubasiA. Chapter 12 - Artificial intelligence-based retinal disease classification using optical coherence tomography images. In: Applications of Artificial Intelligence in Medical Imaging. Academic Press (2023). p. 305–319. 10.1016/B978-0-443-18450-5.00009-8

  • 20.

    KhalafNBAljobouriHKNajimMSÇankayaI. Simplified convolutional neural network model for automatic classification of retinal diseases from optical coherence tomography images. Al-Nahrain J Eng Sci. (2024) 26:314–9. 10.29194/NJES.26040314

  • 21.

    DuanJTenchCGottlobIProudlockFBaiL. New variational image decomposition model for simultaneously denoising and segmenting optical coherence tomography images. Phys Med Biol. (2015) 60:8901. 10.1088/0031-9155/60/22/8901

  • 22.

    AsifSAmjadKQurrat ulA. Deep residual network for diagnosis of retinal diseases using optical coherence tomography images. Interdisc Sci. (2022) 14:906–16. 10.1007/s12539-022-00533-z

  • 23.

    FabritiusTMakitaSMyllyläRYasunoY. Automated retinal pigment epithelium identification from optical coherence tomography images. In: Proceedings Volume 7168, Optical Coherence Tomography and Coherence Domain Optical Methods in Biomedicine XIII; SPIE BiOS. San Jose, California: SPIE (2009). 10.1117/12.808543

  • 24.

    Muni NagamaniGRayachotiE. Deep learning network (DL-Net) based classification and segmentation of multi-class retinal diseases using OCT scans. Biomed Signal Process Control. (2024) 88:105619. 10.1016/j.bspc.2023.105619

  • 25.

    WangMZhuWYuKChenZShiFZhouYet al. Semi-supervised capsule cGAN for speckle noise reduction in retinal OCT images. IEEE Trans Med Imag. (2021) 40:1168–83. 10.1109/TMI.2020.3048975

  • 26.

    ShinCGerberMJLeeYHRodriguezMPedramSAHubschmanJPet al. Semi-automated extraction of lens fragments via a surgical robot using semantic segmentation of OCT images with deep learning - experimental results in ex vivo animal model. IEEE Robot Autom Lett. (2021) 6:5261–8. 10.1109/LRA.2021.3072574

  • 27.

    AdelASolimanMMKhalifaNEMMostafaK. Automatic classification of retinal eye diseases from optical coherence tomography using transfer learning. In: 2020 16th International Computer Engineering Conference (ICENCO). IEEE (2020). p. 37–42. 10.1109/ICENCO49778.2020.9357324

  • 28.

    IslamKTWijewickremaSO'LearyS. Identifying diabetic retinopathy from OCT images using deep transfer learning with artificial neural networks. In: 2019 IEEE 32nd International Symposium on Computer-Based Medical Systems (CBMS). IEEE (2019). p. 281–286. 10.1109/CBMS.2019.00066

  • 29.

    KangNYRaHLeeKLeeJHLeeWKBaekJ. Classification of pachychoroid on optical coherence tomography using deep learning. Graefe's Arch Clin Exper Ophthalmol. (2021) 259:1803–9. 10.1007/s00417-021-05104-4

  • 30.

    WuQZhangBHuYLiuBCaoDYangDet al. Detection of morphologic patterns of diabetic macular edema using a deep learning approach based on optical coherence tomography images. Retina. (2021) 41:1110–7. 10.1097/IAE.0000000000002992

  • 31.

    HassanSAEAkbarSGullSRehmanAAlaskaH. Deep learning-based automatic detection of central serous retinopathy using optical coherence tomographic images. in 2021 1st International Conference on Artificial Intelligence and Data Analytics (CAIDA). IEEE (2021). 206–211.

  • 32.

    JawadMAKhursheedFNawazSMirAH. Towards improved fundus disease detection using Swin Transformers. Multimed Tools Appl. (2024) 83:78125–59. 10.1007/s11042-024-18627-9

  • 33.

    Abdul JawadMKhursheedF. Deep and dense convolutional neural network for multi category classification of magnification specific and magnification independent breast cancer histopathological images. Biomed Signal Process Control. (2022) 78:103935. 10.1016/j.bspc.2022.103935

  • 34.

    Abdul JawadMKhursheedF. A novel approach for color-balanced reference image selection for breast histology image normalization. Biomed Signal Process Control. (2024) 94:106299. 10.1016/j.bspc.2024.106299

  • 35.

    BhandariMShahiTBNeupaneA. Evaluating retinal disease diagnosis with an interpretable lightweight CNN model resistant to adversarial attacks. J Imaging. (2023) 9:219. 10.3390/jimaging9100219

  • 36.

    KermanyD. Labeled optical coherence tomography (OCT) and chest X-ray images for classification. Mendeley data (2018).

  • 37.

    LeDNParvathyVSGuptaDKhannaARodriguesJJPCShankarK. IoT enabled depthwise separable convolution neural network with deep support vector machine for COVID-19 diagnosis and classification. Int J Mach Learn Cybern. (2021) 12:3235–48. 10.1007/s13042-020-01248-7

  • 38.

    LiQNingJYuanJXiaoL. A depthwise separable dense convolutional network with convolution block attention module for COVID-19 diagnosis on CT scans. Comput Biol Med. (2021) 137:104837. 10.1016/j.compbiomed.2021.104837

  • 39.

    UmairMKhanMSAhmedFBaothmanFAlqahtaniFAlianMet al. Detection of COVID-19 using transfer learning and grad-CAM visualization on indigenously collected x-ray dataset. Sensors. (2021) 21:5813. 10.3390/s21175813

  • 40.

    YangJWangGXiaoXBaoMTianG. Explainable ensemble learning method for OCT detection with transfer learning. PLoS ONE. (2024) 19:1–17. 10.1371/journal.pone.0296175

  • 41.

    BhandariMShahiTBSikuBNeupaneA. Explanatory classification of CXR images into COVID-19, Pneumonia and Tuberculosis using deep learning and XAI. Comput Biol Med. (2022) 150:106156. 10.1016/j.compbiomed.2022.106156

Summary

Keywords

retina, retinal disorder, explainable AI, artificial intelligence, ophthalmic imaging, neural networks

Citation

Umair M, Ahmad J, Saidani O, Alshehri MS, Al Mazroa A, Hanif M, Ullah R and Khan MS (2025) OculusNet: Detection of retinal diseases using a tailored web-deployed neural network and saliency maps for explainable AI. Front. Med. 12:1596726. doi: 10.3389/fmed.2025.1596726

Received

20 March 2025

Accepted

04 June 2025

Published

02 July 2025

Volume

12 - 2025

Edited by

Yanda Meng, University of Exeter, United Kingdom

Reviewed by

Mohan Bhandari, Samridhhi College, Nepal

M. Abdul Jawad, National Institute of Technology, Srinagar, India

Updates

Copyright

*Correspondence: Muhammad Hanif

Disclaimer

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.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics