This project leverages an Ensemble Approach for detecting Diabetic Retinopathy (DR) from retinal images. By combining multiple pretrained CNN models, the system enhances diagnostic accuracy and robustness for detection of DR.
✅ Ensemble Model – Utilizes multiple CNN architectures for superior performance.
✅ High Accuracy – Optimized for real-world clinical settings.
✅ Flask Web App – User-friendly interface for easy image uploads and predictions.
✅ Scalable Deployment – Can be hosted locally or on cloud platforms.
Above: An example of the ensemble model's performance on test data.
| Technology | Logo |
|---|---|
| Python | |
| PyTorch | |
| TensorFlow | |
| Flask | |
| OpenCV | |
| Matplotlib |
📁 diabetic-retinopathy-detection
│-- app.py # Flask application
│-- model.py # Ensemble AI model (CNN-based)
│-- static/
│ ├── uploads/ # Uploaded images
│ ├── results/ # Processed images
│-- templates/
│ ├── index.html # Main upload page
│ ├── result.html # Prediction page
│-- requirements.txt # Dependencies
│-- README.md # Project documentation
git clone https://github.com/Prajwal-koundinya/diabetic-retinopathy-detection.git
cd diabetic-retinopathy-detectionpip install -r requirements.txtpython app.pyVisit http://127.0.0.1:5000 in your web browser.
1️⃣ Upload an eye fundus image.
2️⃣ The ensemble model predicts the Diabetic Retinopathy stage.
3️⃣ Results are displayed with confidence scores.
| Retinopathy Stage | Model Prediction | Confidence |
|---|---|---|
| Mild DR | ✅ Correct | 94.7% |
| Proliferative DR | ✅ Correct | 96.3% |
- Improve dataset augmentation for better generalization.
- Optimize inference speed for real-time applications.
- Deploy on cloud platforms like AWS/Google Cloud.
Special thanks to the medical and AI communities for their valuable datasets and research.
Inspirational guidance from Dr. Victor Ikechukwu. Explore their work: Dr. Victor Ikechukwu.
This project is licensed under the MIT License.
🔥 If you like this project, don't forget to ⭐ it on GitHub!

