Skip to content

Diabetic Retinopathy (DR) is a diabetes complication that affects the eyes. It is caused by damage to the blood vessels of the light-sensitive tissue at the back of the eye (retina). DR can lead to blindness if not detected and treated early.

Notifications You must be signed in to change notification settings

Tanwar-12/DIABETIC-RETIONOPATHY-DETECTION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ƒ๐ˆ๐€๐๐„๐“๐ˆ๐‚-๐‘๐„๐“๐ˆ๐Ž๐๐Ž๐๐€๐“๐‡๐˜-๐ƒ๐„๐“๐„๐‚๐“๐ˆ๐Ž๐ ๐”๐’๐ˆ๐๐† ๐ƒ๐„๐„๐ ๐‹๐„๐€๐‘๐๐ˆ๐๐†

image

๐ˆ๐๐“๐‘๐Ž๐ƒ๐”๐‚๐“๐ˆ๐Ž๐:

Diabetic Retinopathy (DR) is a diabetes complication that affects the eyes. It is caused by damage to the blood vessels of the light-sensitive tissue at the back of the eye (retina). DR can lead to blindness if not detected and treated early. Early diagnosis and timely treatment are crucial to prevent vision loss.

๐“๐š๐›๐ฅ๐ž ๐จ๐Ÿ ๐‚๐จ๐ง๐ญ๐ž๐ง๐ญ๐ฌ:

1.Business Problem

2.Visualization of Images

3.Image Processing

4.TSNE Visualization

5.Data Augmentation

6.Train Validation Split

7.Resize and save

8.Image Pre Processing and save

9.ResNet50 Models

๐๐ฎ๐ฌ๐ข๐ง๐ž๐ฌ๐ฌ ๐๐ซ๐จ๐›๐ฅ๐ž๐ฆ

This case study is based on a Kaggle Competition conducted 7 months back based on a dataset by Aravind Eye Hospital in India to detect a form of Blindness called Diabetic Retinopathy. https://www.kaggle.com/c/aptos2019-blindness-detection/overview is the link to the Kaggle competition.

๐†๐Ž๐€๐‹ ๐Ž๐… ๐๐‘๐Ž๐‰๐„๐‚๐“

The goal here is to Build an Image Classification Model which can take a look at the images and classify the image into one of the 5 classes (0,1,2,3,4). This Image Classification Model can accelerate the process of Blindness Detection in Patients. Currently Doctors review the Image and classify it into one of the classes -

0 - No DR

1 - Mild

2 - Moderate

3 - Severe

4 - Proliferative DR

Training data contains 3662 images, test data contains 1928 images

๐•๐ข๐ฌ๐ฎ๐š๐ฅ๐ข๐ณ๐š๐ญ๐ข๐จ๐ง ๐จ๐Ÿ ๐ˆ๐ฆ๐š๐ ๐ž๐ฌ

image

๐ˆ๐ฆ๐š๐ ๐ž ๐๐ซ๐จ๐œ๐ž๐ฌ๐ฌ๐ข๐ง๐ 

  • Gaussian Blur

image

  • Gaussian Blur with Circular Cropping image

image

๐“๐’๐๐„ ๐•๐ข๐ฌ๐ฎ๐š๐ฅ๐ข๐ณ๐š๐ญ๐ข๐จ๐ง

image

๐ƒ๐š๐ญ๐š ๐€๐ฎ๐ ๐ฆ๐ž๐ง๐ญ๐š๐ญ๐ข๐จ๐ง

image

๐“๐ซ๐š๐ข๐ง ๐•๐š๐ฅ๐ข๐๐š๐ญ๐ข๐จ๐ง ๐’๐ฉ๐ฅ๐ข๐ญ

image

image

๐‘๐ž๐ฌ๐ง๐ž๐ญ50 ๐Œ๐จ๐๐ž๐ฅ

ACCURACY

  • Train Cohen Kappa score: 0.980

  • Train Accuracy score : 0.965

image

Evaluate Model on Test Data image

image

  • Test Cohen Kappa score: 0.904

  • Test Accuracy score : 0.839

๐‘๐ž๐ฌ๐๐ž๐ญ50 ๐Œ๐จ๐๐ž๐ฅ๐ฌ ๐’๐ฎ๐ฆ๐ฆ๐š๐ซ๐ฒ

+-------+----------------------------+----------------------------+----------------------+-------------------------------+-----------+----------+ | S.No. | ResNet50 Model | Image Processing | Data Augmentation | Hyperparameters(BS,Opt,lr,ep) | Train QWK | Test QWK | +-------+----------------------------+----------------------------+----------------------+-------------------------------+-----------+----------+ | 1 | R-P-D-p(0.5)-D-p(0.5)-S(5) | -- | Hor Flip,Scale 1/255 | (4,'Adam','1e-4',7) | 0.912 | 0.905 | | 2 | R-P-D-p(0.5)-D-p(0.5)-S(5) | Circle Crop, Gaussian Blur | Hor Flip,Scale 1/255 | (4,'Adam','1e-4',7) | 0.98 | 0.904 | +-------+----------------------------+----------------------------+----------------------+-------------------------------+-----------+----------+

๐ƒ๐„๐๐‹๐Ž๐˜๐Œ๐„๐๐“

Packages and Tools Required:

Python 3.8

Flask

Tensorflow

Keras

OpenCV

Built with

Flask

JavaScript

CSS

HTML

๐‘๐„๐’๐”๐‹๐“

image

image

About

Diabetic Retinopathy (DR) is a diabetes complication that affects the eyes. It is caused by damage to the blood vessels of the light-sensitive tissue at the back of the eye (retina). DR can lead to blindness if not detected and treated early.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages