Retinal Image Quality Sorter
Sorts retinal fundus photos into gradeable and ungradeable, flags duplicates, then grades diabetic retinopathy severity.
Grew out of the retinal image preprocessing work at the SDAIA ATHKA summer program (2024).
Stage 1, quality
brightness, contrast, resolution and sharpness measured inside the retina; exact duplicate files flagged.
Stage 2, grading
pretrained ResNet18 as a feature extractor + logistic regression.
Results (held-out test set)
- AUC 0.997Any retinopathy
- AUC 0.942Referable retinopathy
Held-out test set: 279 photos, 106 with retinopathy (84 referable).
Repeated cross-validation: results vary by split
Stack
- Python
- OpenCV
- NumPy
- scikit-learn
Research and education only. Not a medical device.
The quality gate
A model can only grade what it can see. Before grading, each photo is measured inside the retina for brightness, contrast and sharpness. The limits come from 1,450 clinician-graded photos, and 98.5% of them pass. Try the examples, ruin one with the sliders, or check your own.
Fingerprint ·
This doesn't look like a retina photo, so the result may not mean much.
Your photo is checked in your browser and never uploaded.
| Check | Value | Allowed | Result |
|---|
Exact duplicates share a fingerprint, so changing any setting changes it.
Example photos from the project's dataset.