Skip to content

Latest commit

 

History

History
126 lines (71 loc) · 5.2 KB

README.md

File metadata and controls

126 lines (71 loc) · 5.2 KB

𝐃𝐈𝐀𝐁𝐄𝐓𝐈𝐂-𝐑𝐄𝐓𝐈𝐎𝐍𝐎𝐏𝐀𝐓𝐇𝐘-𝐃𝐄𝐓𝐄𝐂𝐓𝐈𝐎𝐍 𝐔𝐒𝐈𝐍𝐆 𝐃𝐄𝐄𝐏 𝐋𝐄𝐀𝐑𝐍𝐈𝐍𝐆

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