DOI 10.1038/s41598-025-97686-w
Quantum chimp-enanced SqueezeNet for precise diabetic retinopathy classification.
Аннотация
Diabetic retinopathy remains a prominent cause of blindness throughout the world, and it is a product of prolonged high blood sugar levels that degrade the retinal blood vessels. This makes early detection of DR critical to stop irreversible blindness from occurring. This paper presents an advanced hybrid approach that utilizes the Quantum Chimp Optimization Algorithm (QCOA) integrated with SqueezeNet to enhance the accuracy and efficiency of DR classification significantly. The novel methodology was divided into two main stages: feature extraction and classification. Firstly, SqueezeNet enables efficient feature extraction from segmented fundus images with minimal computational complexity, ensuring that critical retinal features are captured effectively. The classification process, QCOA optimizes the Support Vector Machine (SVM) parameters and performs feature selection. The hybrid system effectively refines the performance of the SVM, consequently increasing the classification accuracies and optimizing the model's performance. By leveraging QCOA's capability to tune SVM parameters precisely, the proposed approach achieves remarkable classification accuracy, sensitivity, and specificity rates of 99.80%, 99.90%, and 100%, respectively. Fundamentally, the results display the efficiency and practical utility of the proposed approach, and its implementation in real-world clinical settings is likely to significantly improve the rates of early DR reflection and accurate classification for improved patient outcomes.
Другие публикации по теме
Перевод полного текста: Перевод в очереди
Полный текст источника
https://creativecommons.org/licenses/by-nc-nd/4.0/ Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ .
Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.
Introduction
The eye is a complicated sensory organ that lets people see objects, colors, and depths. The components of the eye are the retina, iris, pupil, optic nerve, and the lens. Disorders in any of these can lead to adverse outcomes, such as blindness. Age-related Macular Degeneration, Glaucoma, Cataracts, and Diabetic Retinopathy (DR) are not only some familiar types of eye disorders but also are causes of serious vision loss 1 . AMD is the primary cause of irreversible vision impairment in people over the age of 60. DR is an eye disease in which high blood sugar damages the retina’s blood vessels. The complications of DR include vision-threatening DR, which can lead to retinal swelling and blindness. By 2030, DR will affect an estimated 439 million people, and it will be an impending cause of blindness among the world’s working-age population 2 , 3 .
DR is one of the leading causes of impaired vision due to the distortion of retinal blood vessels and their scarring. In this connection, the identification and diagnosis in advance can prevent the loss of vision in the early development of diabetes 4 . The classical technique of diagnosing DR is the method of fundus image analysis, during which the screening of microaneurysms is carried out. Fundus images are the primary biomarker used in DR detection. However, the classical method of search and screening of these microaneurysms has significant difficulties: it is a laborious process, and there is a high probability of an error associated with artificial screening and searches of not the most cost-effective solution. In addition, the classification errors of a conventional method can be both cases when some elements of fundus images are identified as microaneurysms and when dissimilarly shaped clusters of microaneurysms are combined on the same class 5 . The methods of computer-aided diagnosis (CAD), which will be implemented and tested using the fundus images, will be able to detect DR in a limited time and provide a sufficiently high accuracy rate. Thus, the methods based are far more easily replaced by classical methods, requiring a manual visual assessment and search. This disease can be divided into five stages of severity: normal, mild, moderate, severe, and proliferative, with the characteristics of the first found in different lesions and already in the fifth proliferative, the presence of specific symptoms such as retinal neovascularization as illustrated in Fig. 1 6 – 8 .
Fig. 1 Early signs of DR 9 .
Иллюстрация — в первоисточнике ↗
In order to investigate fundus screening, image processing, as well as data mining techniques are typically combined. At the initial stage, image processing is typically used to extract the features of the fundus image. For classification, data mining techniques are used to create a learning model. This means that a classifier learns to recognize the disease’s presence in the retinal fundus images depicted through the depth of feature vectors 10 . The CAD methods applied for early DR detection are new to the medical field and considered a primary challenge; however, they are known to be familiar and beneficial. However, such methods present very accurate and reliable results for disease diagnosis. This study presents a novel approach by combining SqueezeNet for feature extraction with the QCOA to optimize SVM parameters, enhancing the precision of Diabetic Retinopathy (DR) classification. The integration of advanced segmentation techniques allows for accurate characterization of DR by highlighting key retinal features. Using QCOA ensures that the SVM is finely tuned to capture the subtle variations in the data, leading to improved classification accuracy. By leveraging a refined feature set from segmented regions, this approach significantly boosts the overall effectiveness of DR detection.
The rest of the paper is structured as follows: Sect. " Literature review " presents the literature review. Section " Methodology " describes the methodology in detail, and the results of the work are presented. The discussions are presented in Sect. " Experimental results ", and Sect. Conclusion concludes the work and gives several remarks regarding the proposed work.
Literature review
Deep learning and machine learning innovations have sought big strides in detecting DR. This literature review focuses on recently published scientific works on DR lesion detection and classification by severity through computational models. The review will reflect recent and significant advancements in DR detection and classification through computational models. Across different DR detection and classification datasets, different computational models and methods have been applied by recent studies, and the results have significantly manifested. In 2019, an Encoder-Decoder with Recursive Learning was applied to the Messidor and ARIA datasets, achieving 100% accuracy in optic disc (OD) localization, highlighted using a novel hourglass network 11 . That same year, a Region-Based CNN demonstrated superior optic disc and cup segmentation performance on the ORIGA and SCES datasets, improving glaucoma detection accuracy with atrous convolution and proposal networks 12 ). Further contributions in 2017 involved pixel-wise distance regression on the EyePACS1 dataset, achieving precise fovea segmentation with minimal error, employing a two-stage deep learning approach without reliance on prior knowledge of other retinal structures 13 . The following year, fully convolutional networks analyzed the Messidor dataset for OD and fovea detection, effectively predicting minimal distances for a joint anatomical understanding 14 .
By 2020, a U-Net + + with an EfficientNet Encoder applied to the ADAM and REFUGE datasets facilitated successful OD segmentation and fovea detection, achieving top performance in landmark identification tasks during the ISBI ADAM 2020 challenge 15 . In 2022, MobileNetv2 was utilized on a newly created dataset of 1365 fundus fluorescein angiography images, reaching an 87.40% accuracy rate 16 . That same year, a pre-trained DenseNet201 with patch division applied to the APTOS dataset significantly outperformed previous studies in multi-class DR classification 17 . Innovative approaches in 2023 included Principal Component Analysis Multi-Label Feature Extraction on the ImageNet database, using architectures like ResNet50 and SqueezeNet1 to achieve high accuracy 18 . Additionally, an interpretable classifier used on the EyePACS dataset in 2020 provided accurate classification with pixel-wise score propagation, offering ophthalmologist-friendly interpretative visual maps 19 . Other advancements include CNNs on private datasets in 2019, achieving high sensitivity and specificity in automated DR identification and grading 20 . Mixed hybrid models in 2021 on IDRiD achieved remarkable accuracy and specificity in DR detection and classification 21 . Also, transfer learning and U-Net-based detection on EyePACS-1, Messidor-2, and DIARETDB0 in 2022 demonstrated state-of-the-art performance across multiple datasets 22 . Furthermore, in 2017, an SVM hybrid model tested on DIARETDB1 and MESSIDOR provided robust DME detection and severity grading 23 . In 2021, weighted filters and CNNs on IDRiD enhanced diagnosis accuracy using Gray Wolf Optimization 24 . In 2022, the IGWO-CNN on DIARETDB achieved a 98.33% classification accuracy, outperforming other methods 25 . Lastly, innovative CNN-based strategies for DME classification in 2022 emphasized early detection and enhanced diagnosis through exudate localization 26 .
The current review of literature related to the detection of DR demonstrates numerous innovative techniques, among which are various applications of machine learning and deep learning models. At the same time, one of the key problems most reviewed studies face is the inconsistency of results across diverse patient datasets and DR severity stages. In other words, many techniques seeming to be highly efficient in a controlled environment appeared to be inadequate for generalization and yielding reliable results in real-world environments with high data variability and complexity. As a result, the primary conclusion resulting from the current state of art review is the existence of a major research gap. It is related to developing the models, which may maintain high accuracy and sensitivity across diverse datasets. This is why the proposed methodology was built to address the existing gap. In particular, the proposed solution employs multiple advanced modeling techniques to enhance the robustness and accuracy of DR detection systems. Specifically, the QCOA is utilized to optimize SVM parameters. Thus, the significant characteristic of the proposed technique is the ability to tune the parameters of the model in practice and in an applicable way, ensuring that it would be capable of adjusting to the specifics of diverse datasets. This results in solving the problem of the model generalization and maintaining high levels of precision in classification tasks essential for reliable detection of DR in early stages with minimization of error rates. Thus, the characteristics mentioned above make the proposed methodology highly efficient in solving the problems and limitations of existing studies due to its capability to combine a high level of technical sophistication and practical applicability.
Methodology
This section outlines the methodology developed for detecting and classifying DR. Initially, the overall design of the method is introduced, detailing the training and testing phases of the process. The training phase involves preparing the model for classification by feeding it with annotated fundus images from various DR severity levels to learn distinctive features across classes. During training, the model is optimized through multiple iterations, adjusting weights and hyperparameters to minimize error and enhance prediction accuracy across DR grades. The testing phase then evaluates the model’s performance on a separate set of images unseen during training, allowing assessment of its generalization ability and accuracy in real-world scenarios. Testing measures include sensitivity, specificity, and overall accuracy, providing insights into the model’s effectiveness in clinical DR classification. Subsequent subsections offer detailed descriptions of each module involved. The technique employs a sequential approach, starting with pre-processing, moving on to feature extraction, and finally classifying DR. The flowchart of the proposed methodology is presented in Fig. 2 .
Fig. 2 Proposed methodology Flow chart.
Иллюстрация — в первоисточнике ↗
IDRiD dataset acquisition
This study was performed using the Indian Diabetic Retinopathy Image Dataset (IDRiD) in order to evaluate our proposed work 27 . The first Indian DR Image Dataset was developed using the clinical study conducted in the Nanded eye clinic, which is available to the public. A Kowa VX-10α fundus camera was used to obtain the images of the macula. Before taking the image, the subject’s pupil was dilated using 0.5% tropicamide. The contents image consists of 516 images with a degree of sight of 50° and 4288 by 2848 resolution and saved in jpg format. This dataset clearly shows angiography images and can be used to determine whether a subject’s angiography is normal or has clinical symptoms. This has a valuable feature for developing and verifying an effective diabetic image analysis algorithm. This dataset has five grades for DR and three for Diabetic Macular Edema, based on international clinical standards. The total grading will range from 0 to 4, with 0 indicating non-diabetic subjects suffering from not a single grade of resolution and 4 indicating the worst DR. The breakdown of the dataset grade is displayed from 0 to 4: grade 0 accounting for 32.6% of the image, grade 1 for 4.8%, grade 2 for 32.6%, grade 3 for 18%, and grade 4 for 12%. The publicly available dataset is widely used to evaluate and validate the proposed algorithm. The dataset distributions of IDRiD for DR grade are mentioned in Table 1 ; Fig. 3 (a-f) graphical representation of the class distribution 28 , 29 .
Fig. 3 Sample images from the IDRiD dataset ( a ) Normal, ( b ) Mild, ( c ) Moderate, ( d ) Severe (e) PDR ( f ) Data Distribution.
Иллюстрация — в первоисточнике ↗
Table 1 IDRiD dataset distribution. Class Severity Grade IDRiD 0 Normal 168 1 Mild 25 2 Moderate 168 3 Severe 93 4 PDR 62
Table 1
IDRiD dataset distribution.
| Class | Severity Grade | IDRiD |
| 0 | Normal | 168 |
| 1 | Mild | 25 |
| 2 | Moderate | 168 |
| 3 | Severe | 93 |
| 4 | PDR | 62 |
Image Pre-processing and augmentation
Our image processing protocol for fundus images focuses on enhancing image quality through several steps. We begin with adaptive histogram equalization, contrast stretching, and median filtering. The pre-processing is guided by three color spaces: luminance, chroma blue (CB), and chroma red (CR). This converts the image from RGB to the YCbCr format, where the Y (luminance) component is filtered and enhanced before the image is returned to its optimized RGB format for clear clinical analysis. In addition to improving image clarity, we address class imbalances in datasets that can affect model performance. To ensure balanced representation, we apply data augmentation techniques to underrepresented classes, as shown in Fig. 4 . These methods include sharpening, embossing, Gaussian blur, rotation, edge detection, skewing, flipping, and shearing. Each technique enhances the dataset’s diversity, improving image quality and deep learning models’ reliability across various conditions.
Fig. 4 Pre-Processing and Data Augmentation.
Иллюстрация — в первоисточнике ↗
SQnetSVM-based quantum ChoA algorithm for DR classification
Segmentation of fundus images is essential in the classification task since it identifies subtle abnormalities in the retina. The automatic and accurate extraction of particular features, such as red and bright lesion characteristics. Following the segmentation process, these features are segmented and included in the classification process to evaluate the disease’s degree. Image classification is a process that predicts the degree that corresponds to the imaged object coming as the input. In the case of our study, we present an advanced Quantum Chimp optimization-based methodology for accurately predicting the diabetic retinopathy classification according to the degree that ranges from no sign of disease to the severity in the fifth level (normal, mild, moderate, severe, proliferative). QCOA is implemented here by combining the principles of quantum computing with Chimp optimization dynamics, facilitating an enhanced search process that improves SVM hyperparameter optimization. Combining quantum mechanics principles with chimp-inspired algorithms allows us to handle complex, high-dimensional search spaces more effectively, leading to accurate DR classification across these levels.
SqueezeNet was chosen as the feature extraction network due to its lightweight architecture and efficiency. Its compact design, with only 1.2 million parameters, provides high computational efficiency without compromising accuracy, which is advantageous in real-time or resource-limited applications. This efficiency is maintained throughout the quantum-enhanced optimization process, where SqueezeNet features are fed into QCOA-tuned SVM for classification. SqueezeNet’s architecture allows faster processing speeds and reduced memory requirements, making it ideal for clinical settings where rapid processing is essential. This efficiency ensures that SqueezeNet can handle high-dimensional medical image data effectively, facilitating timely and accurate diagnosis in diabetic retinopathy detection. In this study, SVM is combined with SqueezeNet architecture, where QCOA successfully optimizes the parameters of SVM to minimize the error and increase the classification performance. The novel approach to classification can ensure the accurate detection of diabetic retinopathy and its degree of disease using the segmented retinal features, therefore leading to the precise diagnosis of the condition. Detailed mathematical proofs of the QCOA approach to optimizing the SVM algorithm are provided in the following section. Figure 5 illustrates the overall view of the presented work.
Fig. 5 Proposed SQSVM-QCHoA-based DR detection.
Иллюстрация — в первоисточнике ↗
Quantum-inspired chimp optimization algorithm (QCHoA)
The QCOA is a sophisticated adaptation of the traditional ChoA 30 , drawing inspiration from the strategic hunting behaviors of chimpanzees. This study implements QCOA by infusing quantum mechanics principles with ChoA, allowing the optimization process to leverage quantum states for an enhanced exploration-exploitation balance. Integrating quantum mechanics principles, the QCOA enhances the algorithm’s ability to handle complex, high-dimensional optimization tasks, making it particularly effective in areas such as machine learning and healthcare. The integration of quantum mechanics contributes to a better exploration-exploitation balance by using quantum gates to control the rate and direction of exploration within the solution space. This mechanism allows QCOA to maintain a global search early in the process and then converge more precisely in the later stages, thereby avoiding local optima and improving convergence rates in high-dimensional search spaces.
In QCOA, each chimpanzee’s position is represented as a quantum state, specifically qubits, which exist in superposition, allowing for a probabilistic exploration of the solution space. This superposition enables a broader search as qubits can explore multiple potential solutions simultaneously. The algorithm dynamically adjusts exploration intensity through controlled quantum rotation and measurement, encouraging chimps to search globally in the early stages and focus on exploitation in later stages. These quantum gates are designed to direct exploration efficiently by adjusting qubit positions to enhance solution accuracy and prevent premature convergence.
Key steps in the QCOA implementation are as follows
Quantum State Representation: Each chimp’s position is initialized as qubits in a superposed state, represented as a combination of binary possibilities, allowing simultaneous consideration of multiple search paths.
Quantum Rotation Gates: Rotation gates are applied based on the relative position of the best-found solution, updating qubit angles dynamically (Eq. 3 ). These controlled rotations ensure that each chimp optimally moves closer to potential solutions, improving the efficiency of the search process by fine-tuning positions as the algorithm progresses.
Quantum Measurement: After rotation, the measurement of qubit states translates the probability of states into concrete positions in the search space, using a sigmoid function σ to calculate the probability amplitude. This allows precision adjustments in chimp positions to focus on the most promising solutions in the solution space (Eq. 4 ).
QCOA optimizes key SVM parameters, including
Penalty Factor (C): This parameter controls the trade-off between achieving low error on the training data and minimizing model complexity, thereby enhancing the generalization capability.
Kernel Parameters: For example, the Gaussian kernel’s bandwidth parameter, which influences the smoothness of the decision boundary, is fine-tuned to improve sensitivity and specificity in classification tasks.
Chimp-Prey dynamics and position updates
1 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Chimp-Prey \,Dynamic\:\left(D\right)=\mid c\cdot{\alpha\:}_{prey}-m\cdot{\alpha\:}_{chimp}\mid$$\end{document}
This equation calculates the distance between a chimp and its prey, which is crucial for determining how it adjusts its position relative to the prey.
2 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Position \;Update \;Towards \;Prey:\:{\alpha\:}_{chimp}^{(n+1)}=\mid{\alpha\:}_{prey}-\alpha\:\cdot d\mid$$\end{document}
Updates the position of the chimp towards the prey, influenced by the coefficients that control the movement dynamics. 3 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Quantum\; State\; Update\; Using \;Rotation \;Gates:\:{{\uptheta\:}}_{\text{i}}^{(\text{t}+1)}=2{\uppi\:}\cdot\left({{\upomega\:}}_{\text{i}}\cdot{{\upgamma\:}}_{\text{i}}\cdot\left({\text{X}}_{\text{i}}^{\text{t}}-{\text{X}}_{\text{b}\text{e}\text{s}\text{t}}^{\text{t}}\right)\right)\:\:$$\end{document}
Here, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{{\uptheta\:}}_{\text{i}}\:$$\end{document} is the angle of rotation applied to the qubit representing chimp i, influenced by random values \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{{\upomega\:}}_{\text{i}}$$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{{\upgamma\:}}_{\text{i}}$$\end{document} . The rotation gates introduce controlled probabilistic changes in the chimp’s position, enhancing the algorithm’s exploration capabilities in high-dimensional spaces by allowing chimps to test diverse positions probabilistically. This quantum-inspired update mechanism maintains a balance between exploration and exploitation throughout the optimization process, adapting to the optimization stage. 4 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Quantum \;Measurement \;for \;Position \;Update:\:\:{X}_{i}^{(t+1)}=measure\:\left(\sigma\:\right({\theta\:}_{i}^{(t+1)}\left)\right)\:$$\end{document}
After applying the quantum rotation, the position is updated by measuring the qubit state, using a sigmoid function \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\sigma\:$$\end{document} to calculate the probability amplitude of the qubit states. This measurement process enables the algorithm to fine-tune the chimp’s position with higher precision in regions of interest, supporting exploitation once promising areas of the solution space are identified.
Pseudocode for QCOA
The algorithm leverages a probabilistic rotation of qubits to navigate the search space efficiently, enhancing both the precision and stability of SVM hyperparameter tuning. Compared to other metaheuristic algorithms, such as Particle Swarm Optimization (PSO) and Genetic Algorithms, QCOA provides improved convergence rates and higher resilience to local optima, as shown in experimental results. This enhanced exploration capacity makes QCOA especially suitable for tasks requiring robust feature selection and parameter optimization in high-dimensional spaces like diabetic retinopathy classification.
Enhanced SqueezeNet-SVM with quantum chimp optimization for DR image classification
Integrating SqueezeNet with an SVM provides a sophisticated fundus image classification framework. Leveraging SqueezeNet’s compact design, which features only 1.2 million parameters, ensures high performance on limited computational resources, making it suitable for image classification 31 , 32 .
Fire module
This pivotal module in SqueezeNet utilizes 1 × 1 and 3 × 3 convolutions to effectively manage channel inputs and outputs, enhancing the network’s ability to capture and retain detailed image features. Efficiently (Fig. 6 ).
Fig. 6 Fire Module Structure.
Иллюстрация — в первоисточнике ↗
Bypass links
These elements improve data transfer across the network by allowing layers to merge feature maps directly, thereby enhancing the efficiency and accuracy of data processing across various stages (Fig. 7 ).
Fig. 7 SqueezeNet with complex bypass.
Иллюстрация — в первоисточнике ↗
Quantum chimp optimization for SVM parameter tuning (SQSVM-Optimization)
Optimizing SVM parameters for complex image classification tasks involves the QCOA. This approach enhances parameter tuning by employing a quantum-inspired algorithm that significantly improves the exploration of high-dimensional parameter spaces, as mentioned in Table 2 .
(1) Initialization: Generate an initial population, each representing a set of SVM parameters, including the penalty factor C and kernel parameters. (2) Fitness Evaluation: Employ cross-validation to assess each configuration’s fitness based on SVM’s classification accuracy across multiple folds (5, 10, 15) to ensure robust generalization and avoid overfitting. (3) Quantum State Updates: Update the solution positions using quantum principles to enhance the exploration and exploitation capabilities in the search space. (4) Feature Selection Optimization: Dynamically optimize the number of features to balance computational efficiency and accuracy. (5) Iterative Optimization: Continuously refine SVM parameters through the QCOA, using fitness evaluations to guide the selection of optimal configurations. (6) Final Selection: The best parameter settings are chosen based on their performance on validation datasets and applied to the SVM for final testing.
To address nonlinear classification challenges, SVM utilizes kernel functions to map input data into a higher-dimensional space: \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\text{m}\text{a}\text{x}}_{\text{b}}\text{L}\left(\text{b}\right)=\sum\:_{\text{i}}^{\text{n}}{{\upbeta\:}}_{\text{i}}-\frac{1}{2}\sum\:_{\text{i},\text{j}=1}^{\text{n}}{{\upbeta\:}}_{\text{i}}{{\upbeta\:}}_{\text{j}}{\text{z}}_{\text{i}}{\text{z}}_{\text{i}}\text{K}({{\upmu\:}}_{\text{i}},{{\upmu\:}}_{\text{j}})$$\end{document}
where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\text{K}({{\upmu\:}}_{\text{i}},{{\upmu\:}}_{\text{j}})$$\end{document} is typically a Gaussian kernel, facilitating the identification of the optimal separating hyperplane.
Table 2 Hyperparameter optimization. Parameter Description Optimized Values CCC SVM regularization parameter to control the trade-off between achieving a low error on the training data and minimizing the model complexity 0.1 to 100, optimized via QCOA Kernel Parameters Controls the behavior of the kernel function used in SVM (e.g., bandwidth in Gaussian kernels) Optimized via QCOA ϕ\phiϕ Controls the smoothness of the decision boundary in the Gaussian kernel 0.1 to 10, adjusted for optimal performance Number of Folds Number of partitions in cross-validation to test the generalization ability of the model 5, 10, 15 Feature Count Number of features selected for modeling to ensure computational efficiency and maintain accuracy 30 to 300, dynamically optimized via QCOA
Table 2
Hyperparameter optimization.
| Parameter | Description | Optimized Values |
| CCC | SVM regularization parameter to control the trade-off between achieving a low error on the training data and minimizing the model complexity | 0.1 to 100, optimized via QCOA |
| Kernel Parameters | Controls the behavior of the kernel function used in SVM (e.g., bandwidth in Gaussian kernels) | Optimized via QCOA |
| ϕ\phiϕ | Controls the smoothness of the decision boundary in the Gaussian kernel | 0.1 to 10, adjusted for optimal performance |
| Number of Folds | Number of partitions in cross-validation to test the generalization ability of the model | 5, 10, 15 |
| Feature Count | Number of features selected for modeling to ensure computational efficiency and maintain accuracy | 30 to 300, dynamically optimized via QCOA |
This advanced approach provides an effective solution for DR image classification by combining SqueezeNet’s architectural efficiency with sophisticated SVM classification techniques enhanced by Quantum Chimp Optimization.
Experimental results
This section presents the quantitative results of experiments conducted on the IDRiD dataset, specifically using fundus images to verify the efficiency of the proposed DR Classification method. MATLAB was used for the experiments on a system with an Intel Core i7 11 th generation processor, 32 GB RAM, and a GeForce UHD graphic 750.
Performance evaluation matrices
To evaluate the classification effectiveness of the proposed model, several key performance metrics presented in Table 3 were used:
Table 3 Performance evaluation matrices. Matrices Representation Sensitivity \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\frac{\text{T}\text{P}}{\text{T}\text{P}+\text{F}\text{N}}\times\:100\text{\%}$$\end{document} Specificity \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\frac{\text{T}\text{N}}{\text{T}\text{N}+\text{F}\text{P}}\times\:100\text{\%}$$\end{document} Accuracy \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\frac{\text{T}\text{P}+\text{T}\text{N}}{\text{T}\text{P}+\text{T}\text{N}+\text{F}\text{P}+\text{F}\text{N}}\times\:100\text{\%}$$\end{document} Precision \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\frac{\text{T}\text{P}}{\text{T}\text{P}+\text{F}\text{P}}\times\:100\text{\%}$$\end{document} F1-Score \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\frac{2\times\:\text{P}\text{r}\text{e}\text{c}\text{i}\text{s}\text{i}\text{o}\text{n}\times\:\text{R}\text{e}\text{c}\text{a}\text{l}\text{l}}{\text{P}\text{r}\text{e}\text{c}\text{i}\text{s}\text{i}\text{o}\text{n}+\text{R}\text{e}\text{c}\text{a}\text{l}\text{l}}\times\:100\text{\%}$$\end{document}
Table 3
Performance evaluation matrices.
| Matrices | Representation |
| Sensitivity | \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\frac{\text{T}\text{P}}{\text{T}\text{P}+\text{F}\text{N}}\times\:100\text{\%}$$\end{document} |
| Specificity | \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\frac{\text{T}\text{N}}{\text{T}\text{N}+\text{F}\text{P}}\times\:100\text{\%}$$\end{document} |
| Accuracy | \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\frac{\text{T}\text{P}+\text{T}\text{N}}{\text{T}\text{P}+\text{T}\text{N}+\text{F}\text{P}+\text{F}\text{N}}\times\:100\text{\%}$$\end{document} |
| Precision | \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\frac{\text{T}\text{P}}{\text{T}\text{P}+\text{F}\text{P}}\times\:100\text{\%}$$\end{document} |
| F1-Score | \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\frac{2\times\:\text{P}\text{r}\text{e}\text{c}\text{i}\text{s}\text{i}\text{o}\text{n}\times\:\text{R}\text{e}\text{c}\text{a}\text{l}\text{l}}{\text{P}\text{r}\text{e}\text{c}\text{i}\text{s}\text{i}\text{o}\text{n}+\text{R}\text{e}\text{c}\text{a}\text{l}\text{l}}\times\:100\text{\%}$$\end{document} |
Various metrics can be used to distinguish between models’ classification performance. Thus, the necessity of comparing Senior Learner’s classification model with a hypothetical model is evident. Specifically, it will be possible to determine whether the new model can be considered better or worse than the hypothetical model. It is important to note that accuracy is one of the key points of reference in this instance since it helps define the extent to which the model’s predictions match the labels. At the same time, accuracy also implies that it considers both the false positive and false negative cases. Specifically, specificity, which focuses on the model’s performance in identifying the negative, is also important. It should also be noted that high sensitivity values can make the “specificity and positive predictive value” rates less favorable. Therefore, it will be reasonable to use the data regarding precision and F1-Score for the comparison of the models.
Segmentation results
The image segmentation process in identifying two types of lesions, red and bright, is precise and detailed. It begins with binarization, where darker regions of the image are highlighted to detect potential red lesions, turning them into distinct white shapes on a black background. Morphological operations then refine these shapes, filling gaps to form coherent lesion areas and removing slight irrelevant noise. Geometric analysis, focusing on size, contours, and elongation, helps differentiate actual red lesions from random artifacts. The method is similar for bright lesions but focuses on highlighting brighter areas during binarization. Morphological operations and geometric analysis ensure bright lesions are accurately distinguished from bright spots or image artifacts.
This segmentation process is visually illustrated in Fig. 8 . The progression shows (a) the original image compared with its pre-processed version in (b), (c) segmentation of bright lesions, (d) segmentation of red lesions, The final step (e) overlays the original image in red and white, with the segmented bright regions visible, providing a complete overview of the process.
Fig. 8 Segmentation Results. ( a ) Original ( b ) pre-processed ( c ) Segmentation of bright lesions. ( d ) Segmentation of red lesions ( e ) feature fusion.
Иллюстрация — в первоисточнике ↗
Comparative analysis of QCHOA with baseline methods
This paper evaluates the performance of the QCHOA algorithm and compares it with well-established metaheuristic algorithms such as PSO, TACPSO, and MPSO. To determine the effectiveness of our proposed algorithm, we used ten benchmark functions categorized into unimodal and multimodal groups. The unimodal group includes Sphere (F1), Schwefel (F2), Schwefel (F3), Schwefel (F4), and Generalized Rosenbrock (F5). The multimodal group comprises Generalized Schwefel (F6), Rastrigin (F7), Ackley (F8), Griewank (F9), and Generalized Penalized (F10). Each algorithm was evaluated based on methodologies from their original development papers. Table 4 shows that QCHoA outperforms the other algorithms in most test functions, showcasing its superior performance. The results particularly emphasize QCHoA’s effectiveness in balancing exploration and exploitation during optimization. Additionally, Fig. 9 visualizes the convergence patterns, demonstrating QCHoA proficiency compared to PSO, TACPSO, and MPSO.
Table 4 Performance comparison of optimization algorithms. Function QCHoA PSO TACPSO MPSO F1 5.62E-06 1.183302 0.603107 0.169128 F2 1.24E-05 3.856437 0.326455 10.3759 F3 30.03429 156.6945 300.6256 3878.162 F4 0.062407 1.812399 9.875028 24.21522 F5 28.93312 994.4792 198.3569 112.9348 F6 3.941061 2.099736 0.02061 0.628963 F7 0.003583 27.40624 0.128576 0.142226 F8 −5753.5 −5834.33 −8260.12 −9596.39 F9 16.55299 194.1249 57.74077 103.556 F10 19.96397 2.874961 1.4886 2.590711
Table 4
Performance comparison of optimization algorithms.
| Function | QCHoA | PSO | TACPSO | MPSO |
| F1 | 5.62E-06 | 1.183302 | 0.603107 | 0.169128 |
| F2 | 1.24E-05 | 3.856437 | 0.326455 | 10.3759 |
| F3 | 30.03429 | 156.6945 | 300.6256 | 3878.162 |
| F4 | 0.062407 | 1.812399 | 9.875028 | 24.21522 |
| F5 | 28.93312 | 994.4792 | 198.3569 | 112.9348 |
| F6 | 3.941061 | 2.099736 | 0.02061 | 0.628963 |
| F7 | 0.003583 | 27.40624 | 0.128576 | 0.142226 |
| F8 | −5753.5 | −5834.33 | −8260.12 | −9596.39 |
| F9 | 16.55299 | 194.1249 | 57.74077 | 103.556 |
| F10 | 19.96397 | 2.874961 | 1.4886 | 2.590711 |
Fig. 9 Behavior Examination of convergence for algorithms on standard test functions.
Иллюстрация — в первоисточнике ↗
Cross-Validation results
The 5-fold cross-validation results demonstrate that the proposed model QCHoA-SQSVM consistently outperforms all other algorithms across every stage of diabetic retinopathy classification, as presented in Table 5 . In the PDR stage, QCHoA-SQSVM achieves the highest accuracy of 98.50%, with a sensitivity of 97.00% and a specificity of 98.60%. SQSVM also delivers strong results, with an accuracy of 97.70%, while SVM follows closely behind with 96.50% accuracy. In contrast, more traditional models such as Random Forest, K-Nearest Neighbors, Decision Tree, Naive Bayes, Logistic Regression, AdaBoost, and Gradient Boosting show varying performance, particularly in more complex stages like Moderate NPDR and Severe NPDR. For example, Random Forest reaches 91.80% accuracy in the Moderate NPDR stage but drops to 90.20% in the Severe NPDR stage. K-Nearest Neighbors performs similarly, with accuracy scores of 91.00% and 90.00% in those respective stages, while Decision Tree struggles with 88.00% accuracy in the Severe NPDR stage. Naive Bayes, Logistic Regression, and Gradient Boosting show more robust results, especially in the Normal stage, but still fall short of the performance achieved by the more advanced QCHoA-SQSVM. Overall, QCHoA-SQSVM demonstrates exceptional accuracy, sensitivity, and specificity across all stages, particularly excelling in the most challenging stages like PDR, making it the most effective model for diabetic retinopathy classification. Traditional models perform adequately but are outclassed by the more sophisticated algorithms in this study, highlighting the clear advantage of QCHoA-SQSVM for precise and reliable classification.
Table 5 IDRiD dataset 5 Cross-Validation performance metrics. Model ST ACC% SEN% SPC% PRE% Recall% F1-S% RF Normal 94.50 94.80 94.70 94.00 94.80 94.30 Mild NPDR 87.00 85.00 88.50 84.00 81.00 81.30 Moderate NPDR 91.80 89.00 92.00 88.50 85.50 85.70 Severe NPDR 90.20 88.00 91.50 85.00 83.50 83.80 PDR 90.50 88.00 91.70 86.20 84.80 85.10 KNN Normal 98.10 98.20 98.30 97.50 98.20 97.70 Mild NPDR 85.20 84.10 86.80 83.50 80.30 80.50 Moderate NPDR 91.00 89.20 92.40 88.00 85.50 85.70 Severe NPDR 90.00 87.50 91.00 86.00 84.00 84.20 PDR 90.80 88.10 91.50 86.50 85.00 85.30 DT Normal 97.60 97.40 97.80 96.40 97.40 96.80 Mild NPDR 83.00 82.10 84.90 81.00 79.50 79.70 Moderate NPDR 88.50 87.00 89.80 86.00 84.20 84.40 Severe NPDR 88.00 86.00 89.00 85.00 82.90 83.10 PDR 89.00 87.00 90.20 85.50 83.80 84.10 NB Normal 98.00 98.10 98.00 97.30 98.10 97.50 Mild NPDR 86.00 85.00 87.80 84.00 81.50 81.70 Moderate NPDR 92.10 90.50 93.00 89.30 86.30 86.50 Severe NPDR 91.50 89.00 92.50 88.00 85.50 85.70 PDR 91.90 89.50 92.80 88.30 86.00 86.30 LR Normal 98.40 98.60 98.50 97.50 98.60 98.00 Mild NPDR 88.00 87.00 89.50 86.00 83.00 83.30 Moderate NPDR 93.00 91.00 94.10 90.50 87.50 87.70 Severe NPDR 92.20 90.00 93.30 89.00 86.50 86.80 PDR 92.70 90.30 93.50 89.20 87.50 87.80 AB Normal 96.80 97.00 97.20 96.30 97.00 96.50 Mild NPDR 84.00 83.00 85.40 82.20 79.30 79.60 Moderate NPDR 90.00 88.30 91.20 87.10 85.30 85.50 Severe NPDR 89.30 87.00 90.00 85.80 83.20 83.50 PDR 89.80 87.20 90.90 86.00 84.30 84.60 GB Normal 98.50 98.70 98.60 97.70 98.70 98.10 Mild NPDR 89.00 87.80 91.20 87.00 83.50 83.80 Moderate NPDR 93.50 91.80 94.50 90.80 87.80 88.10 Severe NPDR 93.00 91.00 94.00 89.50 87.00 87.30 PDR 93.80 91.00 94.50 90.30 88.00 88.30 SVM Normal 98.60 98.80 99.00 97.90 98.80 98.30 Mild NPDR 90.00 88.80 91.60 88.00 84.00 84.30 Moderate NPDR 94.80 93.00 95.20 92.00 89.00 89.30 Severe NPDR 96.20 94.50 96.50 93.00 90.80 91.10 PDR 96.50 94.80 96.80 93.30 91.50 91.80 SQSVM Normal 99.00 99.10 99.30 98.40 99.10 98.70 Mild NPDR 91.50 90.40 92.70 89.50 85.50 85.80 Moderate NPDR 95.70 94.10 96.00 93.00 90.50 90.80 Severe NPDR 97.50 95.80 97.70 94.80 92.60 92.90 PDR 97.70 95.80 97.90 94.50 93.00 93.30 QCHoA-SQSVM Normal 99.50 99.60 99.70 99.40 99.60 99.30 Mild NPDR 94.80 94.00 96.00 93.00 90.00 90.30 Moderate NPDR 97.20 96.50 97.60 95.50 93.20 93.50 Severe NPDR 98.30 96.80 98.50 96.00 94.70 95.00 PDR 98.50 97.00 98.60 96.20 94.90 95.20
Table 5
IDRiD dataset 5 Cross-Validation performance metrics.
| Model | ST | ACC% | SEN% | SPC% | PRE% | Recall% | F1-S% |
| RF | Normal | 94.50 | 94.80 | 94.70 | 94.00 | 94.80 | 94.30 |
| Mild NPDR | 87.00 | 85.00 | 88.50 | 84.00 | 81.00 | 81.30 | |
| Moderate NPDR | 91.80 | 89.00 | 92.00 | 88.50 | 85.50 | 85.70 | |
| Severe NPDR | 90.20 | 88.00 | 91.50 | 85.00 | 83.50 | 83.80 | |
| PDR | 90.50 | 88.00 | 91.70 | 86.20 | 84.80 | 85.10 | |
| KNN | Normal | 98.10 | 98.20 | 98.30 | 97.50 | 98.20 | 97.70 |
| Mild NPDR | 85.20 | 84.10 | 86.80 | 83.50 | 80.30 | 80.50 | |
| Moderate NPDR | 91.00 | 89.20 | 92.40 | 88.00 | 85.50 | 85.70 | |
| Severe NPDR | 90.00 | 87.50 | 91.00 | 86.00 | 84.00 | 84.20 | |
| PDR | 90.80 | 88.10 | 91.50 | 86.50 | 85.00 | 85.30 | |
| DT | Normal | 97.60 | 97.40 | 97.80 | 96.40 | 97.40 | 96.80 |
| Mild NPDR | 83.00 | 82.10 | 84.90 | 81.00 | 79.50 | 79.70 | |
| Moderate NPDR | 88.50 | 87.00 | 89.80 | 86.00 | 84.20 | 84.40 | |
| Severe NPDR | 88.00 | 86.00 | 89.00 | 85.00 | 82.90 | 83.10 | |
| PDR | 89.00 | 87.00 | 90.20 | 85.50 | 83.80 | 84.10 | |
| NB | Normal | 98.00 | 98.10 | 98.00 | 97.30 | 98.10 | 97.50 |
| Mild NPDR | 86.00 | 85.00 | 87.80 | 84.00 | 81.50 | 81.70 | |
| Moderate NPDR | 92.10 | 90.50 | 93.00 | 89.30 | 86.30 | 86.50 | |
| Severe NPDR | 91.50 | 89.00 | 92.50 | 88.00 | 85.50 | 85.70 | |
| PDR | 91.90 | 89.50 | 92.80 | 88.30 | 86.00 | 86.30 | |
| LR | Normal | 98.40 | 98.60 | 98.50 | 97.50 | 98.60 | 98.00 |
| Mild NPDR | 88.00 | 87.00 | 89.50 | 86.00 | 83.00 | 83.30 | |
| Moderate NPDR | 93.00 | 91.00 | 94.10 | 90.50 | 87.50 | 87.70 | |
| Severe NPDR | 92.20 | 90.00 | 93.30 | 89.00 | 86.50 | 86.80 | |
| PDR | 92.70 | 90.30 | 93.50 | 89.20 | 87.50 | 87.80 | |
| AB | Normal | 96.80 | 97.00 | 97.20 | 96.30 | 97.00 | 96.50 |
| Mild NPDR | 84.00 | 83.00 | 85.40 | 82.20 | 79.30 | 79.60 | |
| Moderate NPDR | 90.00 | 88.30 | 91.20 | 87.10 | 85.30 | 85.50 | |
| Severe NPDR | 89.30 | 87.00 | 90.00 | 85.80 | 83.20 | 83.50 | |
| PDR | 89.80 | 87.20 | 90.90 | 86.00 | 84.30 | 84.60 | |
| GB | Normal | 98.50 | 98.70 | 98.60 | 97.70 | 98.70 | 98.10 |
| Mild NPDR | 89.00 | 87.80 | 91.20 | 87.00 | 83.50 | 83.80 | |
| Moderate NPDR | 93.50 | 91.80 | 94.50 | 90.80 | 87.80 | 88.10 | |
| Severe NPDR | 93.00 | 91.00 | 94.00 | 89.50 | 87.00 | 87.30 | |
| PDR | 93.80 | 91.00 | 94.50 | 90.30 | 88.00 | 88.30 | |
| SVM | Normal | 98.60 | 98.80 | 99.00 | 97.90 | 98.80 | 98.30 |
| Mild NPDR | 90.00 | 88.80 | 91.60 | 88.00 | 84.00 | 84.30 | |
| Moderate NPDR | 94.80 | 93.00 | 95.20 | 92.00 | 89.00 | 89.30 | |
| Severe NPDR | 96.20 | 94.50 | 96.50 | 93.00 | 90.80 | 91.10 | |
| PDR | 96.50 | 94.80 | 96.80 | 93.30 | 91.50 | 91.80 | |
| SQSVM | Normal | 99.00 | 99.10 | 99.30 | 98.40 | 99.10 | 98.70 |
| Mild NPDR | 91.50 | 90.40 | 92.70 | 89.50 | 85.50 | 85.80 | |
| Moderate NPDR | 95.70 | 94.10 | 96.00 | 93.00 | 90.50 | 90.80 | |
| Severe NPDR | 97.50 | 95.80 | 97.70 | 94.80 | 92.60 | 92.90 | |
| PDR | 97.70 | 95.80 | 97.90 | 94.50 | 93.00 | 93.30 | |
| QCHoA-SQSVM | Normal | 99.50 | 99.60 | 99.70 | 99.40 | 99.60 | 99.30 |
| Mild NPDR | 94.80 | 94.00 | 96.00 | 93.00 | 90.00 | 90.30 | |
| Moderate NPDR | 97.20 | 96.50 | 97.60 | 95.50 | 93.20 | 93.50 | |
| Severe NPDR | 98.30 | 96.80 | 98.50 | 96.00 | 94.70 | 95.00 | |
| PDR | 98.50 | 97.00 | 98.60 | 96.20 | 94.90 | 95.20 |
In the 10-fold cross-validation results, the proposed model QCHoA-SQSVM consistently delivers the best performance across all stages of diabetic retinopathy classification, as presented in Table 6 . In the PDR stage, it achieves the highest accuracy of 98.80%, with a sensitivity of 97.30% and specificity of 99.00%. Similarly, in the Severe NPDR stage, it attains an impressive 99.00% accuracy, 97.70% sensitivity, and 99.10% specificity. The SQSVM model also performs well, with 98.20% accuracy in the PDR stage, while SVM reaches 97.50% in the same stage. Traditional models like Random Forest, K-Nearest Neighbors, Decision Tree, Naive Bayes, Logistic Regression, AdaBoost, and Gradient Boosting show improvements over their 5-fold cross-validation results but still fall short in the more challenging stages. For instance, Random Forest achieves 91.80% accuracy in the PDR stage, and K-Nearest Neighbors follows closely with 92.00%. Logistic Regression performs slightly better, with 93.80% accuracy in the PDR stage, while Gradient Boosting reaches 94.50% in the same stage. Despite these improvements, QCHoA-SQSVM leads significantly across all metrics, demonstrating its robustness and making it the most effective model for accurate classification in diabetic retinopathy.
Table 6 IDRiD dataset 10 Cross-Validation performance metrics. Model ST ACC% SEN% SPC% PRE% Recall% F1-S% RF Normal 94.80 95.00 94.90 94.50 95.00 94.60 Mild NPDR 87.80 86.00 88.90 85.50 82.50 82.70 Moderate NPDR 92.30 90.00 92.60 89.50 86.50 86.80 Severe NPDR 91.50 89.00 92.30 86.00 84.20 84.50 PDR 91.80 89.00 92.50 87.00 85.80 86.10 KNN Normal 98.40 98.50 98.60 97.70 98.50 98.10 Mild NPDR 86.50 85.20 88.30 84.50 81.50 81.80 Moderate NPDR 92.50 91.00 93.50 90.80 87.00 87.30 Severe NPDR 91.80 89.50 92.50 88.30 85.70 86.00 PDR 92.00 89.80 92.80 88.50 86.50 86.80 DT Normal 98.20 98.00 98.20 97.30 98.00 97.50 Mild NPDR 84.50 83.30 86.20 82.50 80.50 80.80 Moderate NPDR 90.80 89.00 91.90 88.00 85.50 85.80 Severe NPDR 89.80 87.50 90.60 86.30 84.50 84.80 PDR 90.80 88.20 91.50 87.00 85.20 85.50 NB Normal 98.40 98.50 98.30 97.90 98.50 98.10 Mild NPDR 87.50 86.20 88.80 85.30 82.50 82.80 Moderate NPDR 93.30 91.80 94.00 90.50 87.20 87.50 Severe NPDR 92.50 90.20 93.00 89.00 86.30 86.60 PDR 92.90 90.50 93.40 89.30 87.50 87.80 LR Normal 98.80 99.00 98.90 98.20 99.00 98.50 Mild NPDR 89.80 88.50 91.10 88.00 84.30 84.60 Moderate NPDR 94.50 92.80 94.80 91.60 88.70 89.00 Severe NPDR 94.00 91.80 94.50 91.00 88.30 88.60 PDR 93.80 91.80 94.30 90.70 89.30 89.60 AB Normal 97.80 98.00 98.10 97.20 98.00 97.60 Mild NPDR 85.50 84.30 86.70 83.80 80.80 81.10 Moderate NPDR 91.20 89.50 92.50 88.30 85.70 86.00 Severe NPDR 90.80 88.30 91.80 87.00 85.00 85.30 PDR 91.30 89.00 92.20 87.30 85.70 86.00 GB Normal 99.00 99.10 99.10 98.60 99.10 98.80 Mild NPDR 90.50 89.00 91.50 88.70 85.00 85.30 Moderate NPDR 94.80 93.50 95.20 91.80 88.90 89.20 Severe NPDR 94.80 92.50 95.10 91.50 88.80 89.10 PDR 94.50 92.00 95.00 90.80 89.20 89.50 SVM Normal 99.10 99.20 99.40 98.50 99.20 98.80 Mild NPDR 91.70 90.50 92.80 89.80 85.80 86.10 Moderate NPDR 95.80 94.30 96.10 93.50 90.70 91.00 Severe NPDR 97.80 96.20 98.00 95.00 93.10 93.40 PDR 97.50 95.50 97.80 94.20 92.60 92.90 SQSVM Normal 99.40 99.50 99.60 99.00 99.50 99.20 Mild NPDR 93.00 91.50 93.80 91.30 87.20 87.50 Moderate NPDR 96.80 95.10 97.20 94.60 91.50 91.80 Severe NPDR 98.50 96.80 98.60 95.50 93.50 93.80 PDR 98.20 96.50 98.40 95.10 93.70 94.00 QCHoA-SQSVM Normal 99.80 99.90 99.90 99.70 99.90 99.60 Mild NPDR 95.80 95.00 97.00 94.20 91.50 91.80 Moderate NPDR 98.20 97.20 98.40 96.80 94.50 94.80 Severe NPDR 99.00 97.70 99.10 96.80 95.50 95.80 PDR 98.80 97.30 99.00 96.20 95.00 95.30
Table 6
IDRiD dataset 10 Cross-Validation performance metrics.
| Model | ST | ACC% | SEN% | SPC% | PRE% | Recall% | F1-S% |
| RF | Normal | 94.80 | 95.00 | 94.90 | 94.50 | 95.00 | 94.60 |
| Mild NPDR | 87.80 | 86.00 | 88.90 | 85.50 | 82.50 | 82.70 | |
| Moderate NPDR | 92.30 | 90.00 | 92.60 | 89.50 | 86.50 | 86.80 | |
| Severe NPDR | 91.50 | 89.00 | 92.30 | 86.00 | 84.20 | 84.50 | |
| PDR | 91.80 | 89.00 | 92.50 | 87.00 | 85.80 | 86.10 | |
| KNN | Normal | 98.40 | 98.50 | 98.60 | 97.70 | 98.50 | 98.10 |
| Mild NPDR | 86.50 | 85.20 | 88.30 | 84.50 | 81.50 | 81.80 | |
| Moderate NPDR | 92.50 | 91.00 | 93.50 | 90.80 | 87.00 | 87.30 | |
| Severe NPDR | 91.80 | 89.50 | 92.50 | 88.30 | 85.70 | 86.00 | |
| PDR | 92.00 | 89.80 | 92.80 | 88.50 | 86.50 | 86.80 | |
| DT | Normal | 98.20 | 98.00 | 98.20 | 97.30 | 98.00 | 97.50 |
| Mild NPDR | 84.50 | 83.30 | 86.20 | 82.50 | 80.50 | 80.80 | |
| Moderate NPDR | 90.80 | 89.00 | 91.90 | 88.00 | 85.50 | 85.80 | |
| Severe NPDR | 89.80 | 87.50 | 90.60 | 86.30 | 84.50 | 84.80 | |
| PDR | 90.80 | 88.20 | 91.50 | 87.00 | 85.20 | 85.50 | |
| NB | Normal | 98.40 | 98.50 | 98.30 | 97.90 | 98.50 | 98.10 |
| Mild NPDR | 87.50 | 86.20 | 88.80 | 85.30 | 82.50 | 82.80 | |
| Moderate NPDR | 93.30 | 91.80 | 94.00 | 90.50 | 87.20 | 87.50 | |
| Severe NPDR | 92.50 | 90.20 | 93.00 | 89.00 | 86.30 | 86.60 | |
| PDR | 92.90 | 90.50 | 93.40 | 89.30 | 87.50 | 87.80 | |
| LR | Normal | 98.80 | 99.00 | 98.90 | 98.20 | 99.00 | 98.50 |
| Mild NPDR | 89.80 | 88.50 | 91.10 | 88.00 | 84.30 | 84.60 | |
| Moderate NPDR | 94.50 | 92.80 | 94.80 | 91.60 | 88.70 | 89.00 | |
| Severe NPDR | 94.00 | 91.80 | 94.50 | 91.00 | 88.30 | 88.60 | |
| PDR | 93.80 | 91.80 | 94.30 | 90.70 | 89.30 | 89.60 | |
| AB | Normal | 97.80 | 98.00 | 98.10 | 97.20 | 98.00 | 97.60 |
| Mild NPDR | 85.50 | 84.30 | 86.70 | 83.80 | 80.80 | 81.10 | |
| Moderate NPDR | 91.20 | 89.50 | 92.50 | 88.30 | 85.70 | 86.00 | |
| Severe NPDR | 90.80 | 88.30 | 91.80 | 87.00 | 85.00 | 85.30 | |
| PDR | 91.30 | 89.00 | 92.20 | 87.30 | 85.70 | 86.00 | |
| GB | Normal | 99.00 | 99.10 | 99.10 | 98.60 | 99.10 | 98.80 |
| Mild NPDR | 90.50 | 89.00 | 91.50 | 88.70 | 85.00 | 85.30 | |
| Moderate NPDR | 94.80 | 93.50 | 95.20 | 91.80 | 88.90 | 89.20 | |
| Severe NPDR | 94.80 | 92.50 | 95.10 | 91.50 | 88.80 | 89.10 | |
| PDR | 94.50 | 92.00 | 95.00 | 90.80 | 89.20 | 89.50 | |
| SVM | Normal | 99.10 | 99.20 | 99.40 | 98.50 | 99.20 | 98.80 |
| Mild NPDR | 91.70 | 90.50 | 92.80 | 89.80 | 85.80 | 86.10 | |
| Moderate NPDR | 95.80 | 94.30 | 96.10 | 93.50 | 90.70 | 91.00 | |
| Severe NPDR | 97.80 | 96.20 | 98.00 | 95.00 | 93.10 | 93.40 | |
| PDR | 97.50 | 95.50 | 97.80 | 94.20 | 92.60 | 92.90 | |
| SQSVM | Normal | 99.40 | 99.50 | 99.60 | 99.00 | 99.50 | 99.20 |
| Mild NPDR | 93.00 | 91.50 | 93.80 | 91.30 | 87.20 | 87.50 | |
| Moderate NPDR | 96.80 | 95.10 | 97.20 | 94.60 | 91.50 | 91.80 | |
| Severe NPDR | 98.50 | 96.80 | 98.60 | 95.50 | 93.50 | 93.80 | |
| PDR | 98.20 | 96.50 | 98.40 | 95.10 | 93.70 | 94.00 | |
| QCHoA-SQSVM | Normal | 99.80 | 99.90 | 99.90 | 99.70 | 99.90 | 99.60 |
| Mild NPDR | 95.80 | 95.00 | 97.00 | 94.20 | 91.50 | 91.80 | |
| Moderate NPDR | 98.20 | 97.20 | 98.40 | 96.80 | 94.50 | 94.80 | |
| Severe NPDR | 99.00 | 97.70 | 99.10 | 96.80 | 95.50 | 95.80 | |
| PDR | 98.80 | 97.30 | 99.00 | 96.20 | 95.00 | 95.30 |
All models show improved performance in the 15-fold cross-validation results, but the proposed model QCHoA-SQSVM consistently outperforms the others across all stages, as per Table 7 . In the PDR stage, QCHoA-SQSVM achieves an impressive accuracy of 98.90%, a sensitivity of 97.50%, and a specificity of 99.10%. Similarly, the Severe NPDR stage leads with 99.10% accuracy, 97.60% sensitivity, and 99.00% specificity, widening the gap between it and other models. The SQSVM and SVM models are closely followed, with SQSVM reaching 98.10% accuracy and SVM achieving 97.30% in the PDR stage. Despite these strong performances, they remain behind QCHoA-SQSVM in critical metrics such as accuracy and recall. Traditional models such as Random Forest, K-Nearest Neighbors, and Decision Tree also show modest improvements compared to their 10-CV results. For instance, Random Forest achieves 91.30% accuracy in the Severe NPDR stage, while K-Nearest Neighbors reaches 91.00%, and Decision Tree lags with 89.50%. Naive Bayes and Logistic Regression perform better, with Naive Bayes achieving 92.30% accuracy in the Severe NPDR stage and Logistic Regression scoring 93.50%. Gradient Boosting also delivers notable results, with 93.80% accuracy in Severe NPDR and 93.50% in PDR, although it too falls short of the proposed model. The table emphasizes the superiority of QCHoA-SQSVM in the most challenging stages of diabetic retinopathy, particularly in Severe NPDR and PDR, where its precise classification sets it apart from the other models. While traditional models show improvement, they still struggle to match the performance of the more advanced algorithms, highlighting the effectiveness of QCHoA-SQSVM in handling complex classification tasks.
Table 7 IDRiD dataset 15 Cross-Validation performance metrics. Model ST ACC% SEN% SPC% PRE% Recall% F1-S% RF Normal 94.60 94.70 94.80 94.10 94.70 94.30 Mild NPDR 87.30 85.80 88.70 84.30 81.50 81.80 Moderate NPDR 92.10 89.50 92.30 88.70 85.70 86.00 Severe NPDR 91.30 88.80 91.80 86.00 84.00 84.30 PDR 91.80 89.00 92.50 87.00 85.50 85.80 KNN Normal 98.20 98.40 98.50 97.60 98.40 98.00 Mild NPDR 85.80 84.60 87.10 83.80 80.80 81.10 Moderate NPDR 91.80 90.50 92.90 89.50 86.80 87.10 Severe NPDR 91.00 88.90 91.90 87.50 85.20 85.50 PDR 91.50 88.80 92.10 87.00 85.30 85.60 DT Normal 98.00 97.80 98.10 97.10 97.80 97.40 Mild NPDR 84.30 83.20 86.10 82.40 80.20 80.50 Moderate NPDR 90.50 88.70 91.50 87.60 85.30 85.60 Severe NPDR 89.50 87.20 90.30 86.10 84.00 84.30 PDR 89.80 87.50 90.80 85.90 84.50 84.80 NB Normal 98.20 98.30 98.10 97.60 98.30 97.80 Mild NPDR 87.20 86.00 88.30 85.20 82.30 82.60 Moderate NPDR 93.10 91.50 93.70 90.60 87.20 87.50 Severe NPDR 92.30 89.80 93.00 88.50 85.80 86.10 PDR 92.00 89.50 92.80 88.20 86.50 86.80 LR Normal 98.60 98.80 98.70 97.80 98.80 98.30 Mild NPDR 89.30 88.00 90.80 87.70 83.80 84.10 Moderate NPDR 94.00 92.20 94.30 91.00 88.30 88.60 Severe NPDR 93.50 91.30 94.50 90.80 88.10 88.40 PDR 93.30 90.80 94.10 89.70 88.00 88.30 AB Normal 97.60 97.80 98.00 97.00 97.80 97.40 Mild NPDR 85.20 84.00 86.50 83.50 80.50 80.80 Moderate NPDR 90.80 89.20 92.00 87.90 85.90 86.20 Severe NPDR 90.50 87.80 91.50 87.00 85.00 85.30 PDR 90.80 88.20 91.50 87.00 85.20 85.50 GB Normal 98.70 98.90 98.80 98.00 98.90 98.40 Mild NPDR 89.30 88.00 90.50 87.50 84.00 84.30 Moderate NPDR 94.30 92.80 94.50 91.40 88.60 88.90 Severe NPDR 93.80 91.30 94.30 90.00 87.50 87.80 PDR 93.50 91.00 94.00 89.50 87.80 88.10 SVM Normal 98.90 99.00 99.20 98.20 99.00 98.60 Mild NPDR 91.00 89.80 92.40 89.00 85.20 85.50 Moderate NPDR 95.50 93.70 95.80 92.80 90.00 90.30 Severe NPDR 97.50 95.80 97.70 94.50 92.60 92.90 PDR 97.30 95.50 97.60 94.00 92.50 92.80 SQSVM Normal 99.30 99.40 99.50 99.00 99.40 99.10 Mild NPDR 92.70 91.20 93.50 91.00 86.80 87.10 Moderate NPDR 96.50 94.80 96.80 94.30 91.50 91.80 Severe NPDR 98.30 96.50 98.40 95.20 93.20 93.50 PDR 98.10 96.30 98.20 95.10 93.60 93.90 QCHoA-SQSVM Normal 99.70 99.80 99.80 99.50 99.80 99.50 Mild NPDR 95.50 94.70 96.70 94.10 91.20 91.50 Moderate NPDR 97.90 96.80 98.20 96.30 94.00 94.30 Severe NPDR 99.10 97.60 99.00 96.70 95.30 95.60 PDR 98.90 97.50 99.10 96.50 95.20 95.50
Table 7
IDRiD dataset 15 Cross-Validation performance metrics.
| Model | ST | ACC% | SEN% | SPC% | PRE% | Recall% | F1-S% |
| RF | Normal | 94.60 | 94.70 | 94.80 | 94.10 | 94.70 | 94.30 |
| Mild NPDR | 87.30 | 85.80 | 88.70 | 84.30 | 81.50 | 81.80 | |
| Moderate NPDR | 92.10 | 89.50 | 92.30 | 88.70 | 85.70 | 86.00 | |
| Severe NPDR | 91.30 | 88.80 | 91.80 | 86.00 | 84.00 | 84.30 | |
| PDR | 91.80 | 89.00 | 92.50 | 87.00 | 85.50 | 85.80 | |
| KNN | Normal | 98.20 | 98.40 | 98.50 | 97.60 | 98.40 | 98.00 |
| Mild NPDR | 85.80 | 84.60 | 87.10 | 83.80 | 80.80 | 81.10 | |
| Moderate NPDR | 91.80 | 90.50 | 92.90 | 89.50 | 86.80 | 87.10 | |
| Severe NPDR | 91.00 | 88.90 | 91.90 | 87.50 | 85.20 | 85.50 | |
| PDR | 91.50 | 88.80 | 92.10 | 87.00 | 85.30 | 85.60 | |
| DT | Normal | 98.00 | 97.80 | 98.10 | 97.10 | 97.80 | 97.40 |
| Mild NPDR | 84.30 | 83.20 | 86.10 | 82.40 | 80.20 | 80.50 | |
| Moderate NPDR | 90.50 | 88.70 | 91.50 | 87.60 | 85.30 | 85.60 | |
| Severe NPDR | 89.50 | 87.20 | 90.30 | 86.10 | 84.00 | 84.30 | |
| PDR | 89.80 | 87.50 | 90.80 | 85.90 | 84.50 | 84.80 | |
| NB | Normal | 98.20 | 98.30 | 98.10 | 97.60 | 98.30 | 97.80 |
| Mild NPDR | 87.20 | 86.00 | 88.30 | 85.20 | 82.30 | 82.60 | |
| Moderate NPDR | 93.10 | 91.50 | 93.70 | 90.60 | 87.20 | 87.50 | |
| Severe NPDR | 92.30 | 89.80 | 93.00 | 88.50 | 85.80 | 86.10 | |
| PDR | 92.00 | 89.50 | 92.80 | 88.20 | 86.50 | 86.80 | |
| LR | Normal | 98.60 | 98.80 | 98.70 | 97.80 | 98.80 | 98.30 |
| Mild NPDR | 89.30 | 88.00 | 90.80 | 87.70 | 83.80 | 84.10 | |
| Moderate NPDR | 94.00 | 92.20 | 94.30 | 91.00 | 88.30 | 88.60 | |
| Severe NPDR | 93.50 | 91.30 | 94.50 | 90.80 | 88.10 | 88.40 | |
| PDR | 93.30 | 90.80 | 94.10 | 89.70 | 88.00 | 88.30 | |
| AB | Normal | 97.60 | 97.80 | 98.00 | 97.00 | 97.80 | 97.40 |
| Mild NPDR | 85.20 | 84.00 | 86.50 | 83.50 | 80.50 | 80.80 | |
| Moderate NPDR | 90.80 | 89.20 | 92.00 | 87.90 | 85.90 | 86.20 | |
| Severe NPDR | 90.50 | 87.80 | 91.50 | 87.00 | 85.00 | 85.30 | |
| PDR | 90.80 | 88.20 | 91.50 | 87.00 | 85.20 | 85.50 | |
| GB | Normal | 98.70 | 98.90 | 98.80 | 98.00 | 98.90 | 98.40 |
| Mild NPDR | 89.30 | 88.00 | 90.50 | 87.50 | 84.00 | 84.30 | |
| Moderate NPDR | 94.30 | 92.80 | 94.50 | 91.40 | 88.60 | 88.90 | |
| Severe NPDR | 93.80 | 91.30 | 94.30 | 90.00 | 87.50 | 87.80 | |
| PDR | 93.50 | 91.00 | 94.00 | 89.50 | 87.80 | 88.10 | |
| SVM | Normal | 98.90 | 99.00 | 99.20 | 98.20 | 99.00 | 98.60 |
| Mild NPDR | 91.00 | 89.80 | 92.40 | 89.00 | 85.20 | 85.50 | |
| Moderate NPDR | 95.50 | 93.70 | 95.80 | 92.80 | 90.00 | 90.30 | |
| Severe NPDR | 97.50 | 95.80 | 97.70 | 94.50 | 92.60 | 92.90 | |
| PDR | 97.30 | 95.50 | 97.60 | 94.00 | 92.50 | 92.80 | |
| SQSVM | Normal | 99.30 | 99.40 | 99.50 | 99.00 | 99.40 | 99.10 |
| Mild NPDR | 92.70 | 91.20 | 93.50 | 91.00 | 86.80 | 87.10 | |
| Moderate NPDR | 96.50 | 94.80 | 96.80 | 94.30 | 91.50 | 91.80 | |
| Severe NPDR | 98.30 | 96.50 | 98.40 | 95.20 | 93.20 | 93.50 | |
| PDR | 98.10 | 96.30 | 98.20 | 95.10 | 93.60 | 93.90 | |
| QCHoA-SQSVM | Normal | 99.70 | 99.80 | 99.80 | 99.50 | 99.80 | 99.50 |
| Mild NPDR | 95.50 | 94.70 | 96.70 | 94.10 | 91.20 | 91.50 | |
| Moderate NPDR | 97.90 | 96.80 | 98.20 | 96.30 | 94.00 | 94.30 | |
| Severe NPDR | 99.10 | 97.60 | 99.00 | 96.70 | 95.30 | 95.60 | |
| PDR | 98.90 | 97.50 | 99.10 | 96.50 | 95.20 | 95.50 |
The results from the 5-fold, 10-fold, and 15-fold cross-validation demonstrate the performance of the QCHoA-SQSVM model across various severity grades. In the Normal stage, the model correctly classifies 99.50% of the images in the 5-fold cross-validation, 99.80% in the 10-fold, and 99.90% in the 15-fold, with misclassification percentages of 0.50%, 0.20%, and 0.10%, respectively. In the Mild NPDR stage, the model classifies 94.80% of the images correctly in the 5-fold, 95.80% in the 10-fold, and 95.50% in the 15-fold, with misclassifications at 5.20%, 4.20%, and 4.50%, respectively. The Moderate NPDR stage shows strong performance with 97.20% accuracy in 5-fold, 97.90% in 10-fold, and 98.20% in 15-fold cross-validation, with misclassification rates of 2.80%, 2.10%, and 1.80%, respectively. For Severe NPDR, the model achieves 98.30% accuracy in the 5-fold, 99.00% in the 10-fold, and 99.10% in the 15-fold, with misclassification rates of 1.70%, 1.00%, and 0.90%, respectively. Finally, in the PDR stage, QCHoA-SQSVM performs with 98.50% accuracy in the 5-fold, 98.80% in the 10-fold, and 99.10% in the 15-fold, with misclassification percentages of 1.50%, 1.20%, and 0.90%, respectively. These results highlight the model’s strong performance across all stages, with minimal misclassification, particularly in the more challenging Severe NPDR and PDR stages, suggesting areas for further refinement.
The confusion matrices presented in Fig. 10 for the QCHoA-SQSVM model under 5-Fold, 10-Fold, and 15-Fold cross-validation provide a realistic assessment of the model’s performance across diabetic retinopathy stages: Normal (0), Mild NPDR (1), Moderate NPDR (2), Severe NPDR (3), and Proliferative DR (PDR) (4). Diagonal values in darker shades represent true positive rates and highlight the model’s high accuracy in correctly classifying each stage. With lighter shades, off-diagonal cells indicate minimal misclassification, reflecting the model’s ability to limit errors between closely related stages. In the 5-fold cross-validation matrix, substantial classification accuracy is maintained across all stages, even under the constraints of fewer data partitions. The 10-fold matrix demonstrates balanced sensitivity and specificity, with low misclassification rates and high performance along the diagonal, confirming the model’s reliable differentiation across stages. In the 15-fold matrix, the model’s stability is further reinforced, with consistently high accuracy, as the increased data splits capture fine distinctions between stages. These matrices validate the QCHoA-SQSVM model’s robustness, as indicated by high accuracy along the diagonal and minimal off-diagonal values across all validation folds. This balanced and realistic depiction underscores the model’s potential for practical application in clinical diagnostics, where clear stage differentiation is essential. The visually distinct color scheme enhances interpretability, making the model’s high performance and reliability clear and accessible for evaluation.
Fig. 10 Confusion matrix for ( a ) 5, ( b )10 and ( c )15 CV.
Иллюстрация — в первоисточнике ↗
AUC comparison proposed algorithm with traditional ML algorithms
The ROC curve is essential for evaluating a model’s ability to distinguish between disease and non-disease cases. The Area Under the Curve (AUC) is a key metric, with higher values indicating better model performance. This study presents ROC curves for five grades of Diabetic Retinopathy: Normal, Mild, Moderate, Severe, and PDR (Fig. 11 A-E), evaluated using 5-fold, 10-fold, and 15-fold cross-validation. In the ROC curve, the y-axis represents the True Positive Rate (TPR), and the x-axis shows the False Positive Rate (FPR). AUC values close to 1 indicate strong discrimination, while values below 0.5 suggest poor performance. The ROC curves and AUC values across different datasets and cross-validation schemes provide valuable insights into the classifiers’ effectiveness in distinguishing between disease and non-disease cases. Fig. 11 AUC Comparison.
Иллюстрация — в первоисточнике ↗
Comparative analysis with the State-Of-The-Art models
The proposed model demonstrates substantial improvements over previous state-of-the-art methods in DR classification, as presented in Table 8 . Analyzing the performance metrics of various methods over the years reveals significant advancements. For instance, in 2020, CANet and RSNet methods achieved accuracies of 92.6% and 86.3%, respectively, but lacked comprehensive sensitivity and specificity data. The CNN method from the same year showed moderate performance with an accuracy of 90.3%, sensitivity of 88.8%, and specificity of 96.9%. In 2021, the SVM method achieved an impressive accuracy of 98.1% and a perfect specificity of 100%, although its sensitivity was relatively lower at 83.7%. The weighted CNN + GWO method also stood out in 2021 with a high sensitivity of 98.8%, an accuracy of 96.9%, and a specificity of 95.8%.
The trend of improvement continued with the GWO-CNN method in 2022, which achieved an accuracy of 95.9%, sensitivity of 96.3%, and specificity of 93.4%. In 2023, methods like CNN + UNet and FTL + CNN pushed the performance further, achieving 96.6% and 92.2% accuracy, respectively. CNN + UNet, in particular, showed an improved specificity of 99.0%, while FTL + CNN demonstrated balanced performance with sensitivities and specificities of 90.1% and 85.8%, respectively. The AHO-MLCNN method 2023 achieved a high accuracy of 97.8%, although its sensitivity and specificity metrics were not reported, limiting a comprehensive comparison. The Shallow CNN method from 2023, despite achieving an accuracy of 91.4%, also did not report sensitivity and specificity values.In stark contrast, the proposed models for 2024 exhibit superior performance metrics across the board. The standout performer among the proposed models is the SQSVM method, which achieved an accuracy of 98.4%, a sensitivity of 98.5%, and a specificity of 99.6%. Even more impressive, the QCHoA-SQSVM method reached the highest performance with an accuracy of 99.8%, a sensitivity of 99.9%, and a specificity of 99.9%.This method surpasses previous methods in accuracy and maintains a balanced performance in sensitivity and specificity, ensuring reliable classification across various scenarios. These results highlight the exceptional capabilities of the proposed multi-deep learning approach with transfer learning, marking a significant leap forward in the accurate and reliable detection along with the classification of DR stages.
Table 8 IDRiD-based State-of-the-Art comparison. Author Method Year AC SN SP 33 CANet 2020 92.6 . . 34 CNN 2020 90.3 88.8 96.9 35 RSNet 2020 86.3 . . 21 SVM 2021 98.1 83.7 100 24 Weighted CNN + GWO 2021 96.9 98.8 95.8 25 GWO-CNN 2022 95.9 96.3 93.4 36 CNN + UNet 2023 96.6 89.0 99.0 37 FTL + CNN 2023 92.2 90.1 85.8 38 MCNN 2023 90.1 . 93.8 39 AHO-MLCNN 2023 97.8 . . 40 Shallow CNN 2023 91.4 . . Proposed SQSVM 2024 98.4 98.5 99.6 QCHoA-SQSVM) 99.8 99.9 100
Table 8
IDRiD-based State-of-the-Art comparison.
| Author | Method | Year | AC | SN | SP |
| 33 | CANet | 2020 | 92.6 | . | . |
| 34 | CNN | 2020 | 90.3 | 88.8 | 96.9 |
| 35 | RSNet | 2020 | 86.3 | . | . |
| 21 | SVM | 2021 | 98.1 | 83.7 | 100 |
| 24 | Weighted CNN + GWO | 2021 | 96.9 | 98.8 | 95.8 |
| 25 | GWO-CNN | 2022 | 95.9 | 96.3 | 93.4 |
| 36 | CNN + UNet | 2023 | 96.6 | 89.0 | 99.0 |
| 37 | FTL + CNN | 2023 | 92.2 | 90.1 | 85.8 |
| 38 | MCNN | 2023 | 90.1 | . | 93.8 |
| 39 | AHO-MLCNN | 2023 | 97.8 | . | . |
| 40 | Shallow CNN | 2023 | 91.4 | . | . |
| Proposed | |||||
| SQSVM | 2024 | 98.4 | 98.5 | 99.6 | |
| QCHoA-SQSVM) | 99.8 | 99.9 | 100 |
Conclusion
The scope of the present study involved introducing a new type of innovative hybrid approach for DR detection and classification, relying on available disease daycare grading databases. The goal was ultimately attained by implementing the task of pre-processing, feature extraction, and classification employing majority voting, which was accompanied by impressive results. In other words, the considered method led to 99.80% accuracy, 99.90% sensitivity, and 100% specificity. The in-depth examination of the abovementioned parameters clearly shows that the crucial balance concerning the analyzed trade-off was achieved, which substantially enhanced the reliability ensured by implementing three classifiers. Nevertheless, the current study has some noteworthy limitations, including a significant dependency on the quality of pre-processing and feature extraction, which, in turn, has the potential to affect overall performance. Another limitation to be considered is the reliance of the proposed method on validation through much larger and more diverse datasets to ‘prove’ generalization. In the future, it would be more than beneficial to employ deep learning methodologies for better performance, thus enabling the performance of a comparative analysis with the existing approach. It is also essential to note that with more effectively balanced pre-processing and feature extraction, it will be possible to achieve even better accuracy and reliability, which signifies that new, more sophisticated types of DR diagnostic devices can be developed with their help.
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Author contributions
Author Contributions: Conceptualization, A.B and M.S; methodology, A.B, W.O and Y.A; software, A.B. and M.S; validation, A.T, W.O and Y.A.; formal analysis, A.B, M.S and H.L; investigation, A.T, H.L, and W.O; resources, H.L.; data curation, A.B, W.O, Y.A.; writing—original draft preparation, A.B.; writing—review and editing, M.S and A.T, visualization, A.B, H.L and A.T.; Funding, H.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the National Natural Science Foundation of China (No.62262019) and the Hainan Provincial Natural Science Foundation of China (No.621RC1059, 823RC488).
Data availability
The datasets analyzed during the current study are available at: https://ieee-dataport.org/open-access/indian-diabetic-retinopathy-image-dataset-idrid.
Declarations
Competing interests
The authors declare no competing interests.
References
1. Khanna M Singh LK Thawkar S Goyal M Deep learning based computer-aided automatic prediction and grading system for diabetic retinopathy Multimed Tools Appl. 2023 10.1007/s11042-023-14970-5 Khanna, M., Singh, L. K., Thawkar, S. & Goyal, M. Deep learning based computer-aided automatic prediction and grading system for diabetic retinopathy. Multimed Tools Appl. 10.1007/s11042-023-14970-5 (2023).
2. International Diabetes Federation. Diabetes Atlas, vol. 9th Editio, 2021, [Online]. Available: https://www.diabetesatlas.org/
3. Ogurtsova, K. et al. IDF diabetes atlas: global estimates for the prevalence of diabetes for 2015 and 2040. Diabetes Res. Clin. Pract. 128 10.1016/j.diabres.2017.03.024 (2017). 10.1016/j.diabres.2017.03.024 28437734
4. Zago, G. T., Andreão, R. V., Dorizzi, B. & Teatini Salles, E. O. Diabetic retinopathy detection using red lesion localization and convolutional neural networks. Comput. Biol. Med. 116 10.1016/j.compbiomed.2019.103537 (2020). 10.1016/j.compbiomed.2019.103537 31747632
5. Qomariah DUN Tjandrasa H Fatichah C Segmentation of microaneurysms for early detection of diabetic retinopathy using MResUNet Int. J. Intell. Eng. Syst. 2021 14 3 359 373 10.22266/ijies2021.0630.30 Qomariah, D. U. N., Tjandrasa, H. & Fatichah, C. Segmentation of microaneurysms for early detection of diabetic retinopathy using MResUNet. Int. J. Intell. Eng. Syst. 14 (3), 359–373. 10.22266/ijies2021.0630.30 (2021).
6. Manser, R. et al. Screening for lung cancer. Cochrane Database Syst. Reviews (6), 10.1002/14651858.CD001991.pub3 (2013). 10.1002/14651858.CD001991.pub3 PMC6464996 23794187
7. Akram, M. U., Khalid, S. & Khan, S. A. Identification and classification of microaneurysms for early detection of diabetic retinopathy. Pattern Recognit. 46 (1). 10.1016/j.patcog.2012.07.002 (2013).
8. Vashist P Singh S Gupta N Saxena R Role of early screening for diabetic retinopathy in patients with diabetes mellitus: an overview Indian J. Commu- Nity Med. 2011 36 4 247 252 10.4103/0970-0218.91324 PMC3263142 22279252 Vashist, P., Singh, S., Gupta, N. & Saxena, R. Role of early screening for diabetic retinopathy in patients with diabetes mellitus: an overview. Indian J. Commu- Nity Med. 36 (4), 247–252 (2011). . 10.4103/0970-0218.91324 PMC3263142 22279252
9. M. S. Anas Bilal1, Azhar Imran2, Talha Imtiaz Baig3, 4, Xiaowen Liu1, Haixia Long1,*, Abdulkareem Alzahrani5, improved support vector machine based on CNN-SVD for Vision-Threatening diabetic retinopathy detection and classification. PLoS One , (2024). 10.1371/journal.pone.0295951 PMC10760665 38165976
10. Bilal A Sun G Mazhar S Survey on recent developments in automatic detection of diabetic retinopathy J. Fr. D’Ophtalmologie 2021 44 420 440 10.1016/j.jfo.2020.08.009 33526268 Bilal, A., Sun, G. & Mazhar, S. Survey on recent developments in automatic detection of diabetic retinopathy. J. Fr. D’Ophtalmologie . 44 , 420–440. 10.1016/j.jfo.2020.08.009 (2021). no. 3. 10.1016/j.jfo.2020.08.009 33526268
11. Jiang, S., Chen, Z., Li, A. & Wang, Y. Robust Optic Disc Localization by Large Scale Learning, in Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), (2019). 10.1007/978-3-030-32956-3_12
12. Jiang, Y. et al. JointRCNN: A Region-Based convolutional neural network for optic disc and cup segmentation. IEEE Trans. Biomed. Eng. 67 (2). 10.1109/TBME.2019.2913211 (2020). 10.1109/TBME.2019.2913211 31021760
13. Meyer, M. I., Galdran, A., Mendonça, A. M. & Campilho, A. A pixel-wise distance regression approach for joint retinal optical disc and fovea detection, in Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), (2018). 10.1007/978-3-030-00934-2_5
14. Sedai, S., Tennakoon, R., Roy, P., Cao, K. & Garnavi, R. Multi-stage segmentation of the fovea in retinal fundus images using fully Convolutional Neural Networks, in Proceedings - International Symposium on Biomedical Imaging, (2017). 10.1109/ISBI.2017.7950704
15. Kamble, R., Samanta, P. & Singhal, N. Optic Disc, Cup and Fovea Detection from Retinal Images Using U-Net + + with EfficientNet Encoder, in Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), (2020). 10.1007/978-3-030-63419-3_10
16. H. YILDIRIM et al., An automated diabetic retinopathy disorders detection model based on pretrained MobileNetv2 and nested patch division using fundus images. J. Heal Sci. Med. , 5 , 6, (2022). 10.32322/jhsm.1184981
17. Kobat, S. G. et al. Automated diabetic retinopathy detection using horizontal and vertical patch Division-Based Pre-Trained densenet with digital fundus images. Diagnostics 12 (8). 10.3390/diagnostics12081975 (2022). 10.3390/diagnostics12081975 PMC9406859 36010325
18. Usman, T. M., Saheed, Y. K., Ignace, D. & Nsang, A. Diabetic retinopathy detection using principal component analysis multi-label feature extraction and classification. Int. J. Cogn. Comput. Eng. 4 10.1016/j.ijcce.2023.02.002 (2023).
19. de la Torre, J., Valls, A. & Puig, D. A deep learning interpretable classifier for diabetic retinopathy disease grading. Neurocomputing 396 10.1016/j.neucom.2018.07.102 (2020).
20. Zhang, W. et al. Automated identification and grading system of diabetic retinopathy using deep neural networks. Knowledge-Based Syst. 175 10.1016/j.knosys.2019.03.016 (2019).
21. Bilal A Sun G Li Y Mazhar S Khan AQ Diabetic retinopathy detection and classification using mixed models for a disease grading database IEEE Access. 2021 9 23544 23553 10.1109/ACCESS.2021.3056186 Bilal, A., Sun, G., Li, Y., Mazhar, S. & Khan, A. Q. Diabetic retinopathy detection and classification using mixed models for a disease grading database. IEEE Access. 9 , 23544–23553. 10.1109/ACCESS.2021.3056186 (2021).
22. Bilal, A., Sun, G., Mazhar, S., Imran, A. & Latif, J. A transfer learning and U-Net-based automatic detection of diabetic retinopathy from fundus images. Comput. Methods Biomech. Biomed. Eng. Imaging Vis. 1–12. 10.1080/21681163.2021.2021111 (2022).
23. Rekhi, R. S., Issac, A. & Dutta, M. K. Automated detection and grading of diabetic macular edema from digital colour fundus images, in 2017 4th IEEE Uttar Pradesh Section International Conference on Electrical, Computer and Electronics, UPCON 2017, (2017). 10.1109/UPCON.2017.8251096
24. Bilal, A., Sun, G. & Mazhar, S. Diabetic Retinopathy detection using Weighted Filters and Classification using CNN, 2021 Int. Conf. Intell. Technol. CONIT 2021, (2021). 10.1109/CONIT51480.2021.9498466
25. Bilal A Sun G Mazhar S Imran A Improved grey Wolf Optimization-Based feature selection and classification using CNN for diabetic retinopathy detection Lect Notes Data Eng. Commun. Technol. 2022 116 1 14 10.1007/978-981-16-9605-3_1 Bilal, A., Sun, G., Mazhar, S. & Imran, A. Improved grey Wolf Optimization-Based feature selection and classification using CNN for diabetic retinopathy detection. Lect Notes Data Eng. Commun. Technol. 116 , 1–14. 10.1007/978-981-16-9605-3_1 (2022).
26. Perdomo, O., Otalora, S., Rodríguez, F., Arevalo, J. & González, F. A. A novel machine learning model based on exudate localization to detect diabetic macular edema, (2017). 10.17077/omia.1057
27. Porwal, P. et al. Indian diabetic retinopathy image dataset (IDRiD): A database for diabetic retinopathy screening research. Data 3 (3). 10.3390/data3030025 (2018).
28. Sajid, M. Z. et al. DR-NASNet: automated system to detect and classify diabetic retinopathy severity using improved pretrained NASNet model. Diagnostics 13 (16). 10.3390/diagnostics13162645 (2023). 10.3390/diagnostics13162645 PMC10453689 37627904
29. Bashir, I. et al. RDS-DR: an improved deep learning model for classifying severity levels of diabetic retinopathy. Diagnostics 13 (19). 10.3390/diagnostics13193116 (2023). 10.3390/diagnostics13193116 PMC10572213 37835859
30. Khishe MR Mosavi Chimp optimization algorithm Expert Syst. Appl. 2020 149 113338 10.1016/j.eswa.2020.113338 PMC9633109 36348736 Khishe, M. R., Mosavi & M. and, Chimp optimization algorithm. Expert Syst. Appl. 149 , 113338. 10.1016/j.eswa.2020.113338 (2020).
31. Başaran, E. Classification of white blood cells with SVM by selecting squeezenet and LIME properties by mRMR method. Signal. Image Video Process. 16 (7). 10.1007/s11760-022-02141-2 (2022).
32. Bilal A Sun G Mazhar S Imran A Latif J A transfer learning and U-Net-based automatic detection of diabetic retinopathy from fundus images Comput. Methods Biomech. Biomed. Eng. Imaging Vis. 2022 10.1080/21681163.2021.2021111 Bilal, A., Sun, G., Mazhar, S., Imran, A. & Latif, J. A transfer learning and U-Net-based automatic detection of diabetic retinopathy from fundus images. Comput. Methods Biomech. Biomed. Eng. Imaging Vis. 10.1080/21681163.2021.2021111 (2022).
33. Li, X. et al. CANet: Cross-Disease attention network for joint diabetic retinopathy and diabetic macular edema grading. IEEE Trans. Med. Imaging . 39 (5). 10.1109/TMI.2019.2951844 (2020). 10.1109/TMI.2019.2951844 31714219
34. Elswah, D. K., Elnakib, A. A., El-Din, H. & Moustafa Automated Diabetic Retinopathy Grading using Resnet, in National Radio Science Conference, NRSC, Proceedings, (2020). 10.1109/NRSC49500.2020.9235098
35. Saranya P Prabakaran S Automatic detection of non-proliferative diabetic retinopathy in retinal fundus images using Convolution neural network J. Ambient Intell. Humaniz. Comput. 2020 10.1007/s12652-020-02518-6 Saranya, P. & Prabakaran, S. Automatic detection of non-proliferative diabetic retinopathy in retinal fundus images using Convolution neural network. J. Ambient Intell. Humaniz. Comput. 10.1007/s12652-020-02518-6 (2020).
36. Saranya P Pranati R Patro SS Detection and classification of red lesions from retinal images for diabetic retinopathy detection using deep learning models Multimed Tools Appl. 2023 10.1007/s11042-023-15045-1 Saranya, P., Pranati, R. & Patro, S. S. Detection and classification of red lesions from retinal images for diabetic retinopathy detection using deep learning models. Multimed Tools Appl. 10.1007/s11042-023-15045-1 (2023).
37. Nasajpour, M., Karakaya, M., Pouriyeh, S. & Parizi, R. M. Federated Transfer Learning For Diabetic Retinopathy Detection Using CNN Architectures, in Conference Proceedings - IEEE SOUTHEASTCON, (2022). 10.1109/SoutheastCon48659.2022.9764031
38. Ashwini, K. & Dash, R. Grading diabetic retinopathy using multiresolution based CNN. Biomed. Signal. Process. Control . 86 10.1016/j.bspc.2023.105210 (2023).
39. Vinayaki, V. D. & Kalaiselvi, R. AHO-MLCNN: Archerfish hunting optimisation based modified lightweight CNN for diabetic retinopathy detection. Comput. Methods Biomech. Biomed. Eng. Imaging Vis. 11 (5). 10.1080/21681163.2023.2203262 (2023).
40. Raiaan, M. A. K. et al. A lightweight robust deep learning model gained high accuracy in classifying a wide range of diabetic retinopathy images. IEEE Access. 11 10.1109/ACCESS.2023.3272228 (2023).
Предметные рубрики MeSH
Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Ошибки и ограничения
История · было → стало
Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.
Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.