Introduction
A comparative deep-learning study of four convolutional neural network architectures for classifying diabetic retinopathy severity from retinal fundus images.
Automated retinal fundus image severity classification
Role
Deep Learning Team
Core Stack
Python · TensorFlow · PyTorch
Model Comparison
4 CNN Architectures
Status
In Progress
Introduction
A comparative deep-learning study of four convolutional neural network architectures for classifying diabetic retinopathy severity from retinal fundus images.
The Classification Problem
Manual grading of retinal images is time-intensive and depends on access to eye-care specialists. This project investigates automated classification across five diabetic retinopathy severity stages. The severity labels follow an ordered scale, so evaluation considers how far a prediction is from the reference grade.
Image-to-grade workflow
Research pipeline01 · Image data
The study uses the APTOS 2019 Blindness Detection training set: approximately 3,660 labeled RGB retinal images across five severity grades.
Source
APTOS 2019
Image type
RGB fundus
Dataset access
Download separately
Dataset files are not included in the repository; access is subject to Kaggle competition terms.
1 of 4 research steps
Architecture Comparison
01 · Baseline · Trained from scratch
A from-scratch convolutional model establishes a baseline for comparing the value of transfer learning.
Baseline role
Shows how a model trained from scratch compares with ImageNet-initialized architectures.
02 · Transfer learning · ImageNet
Dense connectivity reuses earlier feature maps and supports gradient flow through the network.
Dense connectivity
Earlier feature maps are reused
03 · Transfer learning · ImageNet
Compound scaling balances model depth, width, and input resolution.
Scaling strategy
Considers depth, width, and resolution together for an accuracy-to-computation comparison.
04 · Transfer learning · ImageNet
Residual connections create shortcut paths through a deeper network.
Skip connections
Shortcut paths help information and gradients travel through deeper layers.
Common evaluation
Technology & Study Insights
Frameworks, preprocessing & explainability
Study spotlight · Transfer learning
DenseNet121DenseNet connects each layer to the feature maps from earlier layers. This dense connectivity promotes feature reuse and helps gradient flow through the network. In this study, DenseNet121 uses ImageNet transfer learning and is compared with three other CNN approaches.
01
Layers receive earlier feature maps.
02
Previously learned patterns stay available.
03
ImageNet weights initialize the model.
Image preparation
The workflow crops dark borders, resizes and normalizes images, and explores CLAHE / Gaussian blend contrast enhancement before training.
Explainable predictions
Grad-CAM maps help visualize which image regions influenced a model prediction; they support interpretation and are not clinical evidence.
From image to severity class
Experimental Workflow
The study uses the APTOS 2019 Blindness Detection training set: approximately 3,660 labeled RGB retinal images. Dataset files are not redistributed with the project.
01
Review class distribution, image dimensions, and representative samples.
02
Crop dark borders, resize, enhance contrast, and normalize fundus images.
03
Create stratified train, validation, and held-out test sets.
04
Apply class weighting to address the natural skew toward No DR cases.
05
Compare all four architectures with matched data splits and augmentation.
06
Use Grad-CAM to inspect which retinal regions influence predictions.
Evaluation & Explainability
Quadratic Weighted Kappa is the primary metric for the ordered grades. Accuracy, per-class and macro precision/recall/F1, one-vs-rest ROC-AUC, confusion matrices, parameter counts, and training time provide additional comparisons. Grad-CAM is used to visualize influential retinal regions.
Numerical results were not included in the supplied project summary and are intentionally not estimated here.
Team Contributions
Developed for the SE4050 Deep Learning module at SLIIT. Review the final notebooks in the Finalize-Models branch.
Browse final notebooksCustom CNN · Preprocessing pipeline
DenseNet121
EfficientNetB0
ResNet50 · Evaluation · Grad-CAM
Up Next in Portfolio · Final Year Research · Disaster Risk
A Sri Lanka-focused research prototype connecting flood impact mapping, explainable landslide prediction, GN-level human impact assessment, and hazard-aware emergency response.