Deep Learning For The Detection of Diabetic Retinopathy
Deep Learning For The Detection of Diabetic Retinopathy
https://doi.org/10.22214/ijraset.2022.45175
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
Abstract: Nowadays lots of the people have detected with diabetes and diabetes is the reason behind the cause of Diabetic
Retinopathy (DR) at higher level. And this leads to blurry vision, poor night vision, decreased field of vision, increased number
of eye floaters, loss of vision, distorted vision among the population. Very frequently people are diagnosed with some or the other
stage of DR. If there is in time and proper detection of DR then the vision impairments can be forestalled in majority of DR
cases. But the detection of the DR is too difficult at such early stage even with the present tools, as the symptoms can be seen at
the very later stage of the disease. Thus, there is the need for an automated and broad-ranging method of DR screening which
can be done using Deep Learning. So here grayscale fundus photographs have used and Convolutional Neural Network (CNN)
model is used for the detection of DR as presently results suggests that Neural Network have good clinical potential. DR
detection is done for five stages No DR, Mild, Moderate, Severe, Proliferative categorized on four age groups.
Keywords: Diabetic Retinopathy, Deep Learning, Grayscale, Convolutional Neural Network, Neural Network Fundus photo-
graphs.
I. INTRODUCTION
Diabetic retinopathy (DR) is also called diabetic eye disease, when retina is damaged due to diabetes. It can eventually lead to
blindness. It is an ocular manifestation of diabetes. Despite these intimidating statistics, research indicates that at least 90% of these
new cases could be reduced if there is proper treatment and monitoring of the eyes [1]. Diabetic retinopathy can be categorized into
4 stages: Mild non-proliferative, Moderate non-proliferative, Severe non-proliferative and Proliferative. Here the Non-proliferative
type is the early stage and Proliferative is advance stage of DR. The various markers of diabetic retinopathy are micro aneurysms,
retinal swellings, damaged nerve tissues, growth of abnormal new blood vessels and leaking blood vessels. At the early-stage symp-
toms are not caused so not possible to know because blood vessels mostly do not leak in these early (non-proliferative) stages so de-
tection of DR is very much difficult. But with the help of examination of eye DR can be detected at the early stages. Symptoms for
proliferative DR can include blurry vision, poor night vision, decreased field of vision, increased number of eye floaters, loss of vi-
sion, distorted vision etc [2]. Importance for detection of diabetic retinopathy is at the early stage if the DR is not detected then the
severe problem may be caused so if the DR is detected at the early stage it may help to reduce risk of sever problems so the DR
screening is needed to detect the issues early.
II. LITERATURE OVERVIEW
There are many systems used to detect the retinopathy, normally medical equipment used to detect by doctors in Hospital and based
on technology, we can classify images using image classification, pattern recognition, and machine learning like naive bayes, RF,
SVM, deep learning etc. Retinal imaging technologies are becoming big part of eye screening programs as they give good accuracy
and repeatability in the staging of diabetic retinopathy during the eye screening lots of retinal images are generated as diabetic pa-
tients check both the eyes minimum once per year. So, if the detection is automated then the workload will decrease and efficiency
will increase [6]. From various algorithms Since, deep learning has given good results in other fields, we can get promising solu-
tions for medical imaging in healthcare [7]. ConvNets are used as machine learning is not good enough to learn the features faster
automatically. ConvNets are inspired from human biology, they are comprised of various layers such as filter banks, non-linearities,
frature pooling layers. With the help of these layers ConvNets are able to learn lots of features [3]. CNN algorithm is found to have
given better results for studying eye fundus image [5].
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 207
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
V. PROPOSED MODEL
Figure 1 above shows proposed model diagram. Dataset is taken from Kaggle, data set has grayscale fundus retinal 923 images. We
will use Convolutional Neural Network (CNN) for training and prediction. Firstly, we will train the model using labelled training
images. After tr model is trained we will use the trained model for validation and testing purpose.
We will predict DR based on five stages which are No DR, Mild non proliferative, Moderate non proliferative, Severe non prolifera-
tive, Proliferative and 4 categories of age group. Also, we will find the accuracy, validation accuracy, loss, validation loss after
training the model. Implementation will be performed using anaconda navigator software in python language.
CNN is the deep learning technique to which we will give input image and learnable weights and biases are assigned to different as-
pects in the image so as to be able to differentiate from one another. Here pre-processing required is very less in ConvNets com-
pared to other classification algorithms. ConvNets are inspired from human biology, they are comprised of various layers such as
filter banks, non-linearities, feature pooling layers. With the help of these layers ConvNets are able to learn lots of features.
VI. METHODOLOGY
A. Deep Learning Approach
Deep learning is type of ML and a subset of AI, where Machine Learning is one of the methods to analyze the data that automates
analytical model building. Machine learning could be a branch of AI supported the thought that systems will learn from knowledge,
distinguishing patterns and create choices with less human intervention. For sentiment analysis machine learning tools are trained
with samples of emotions in text, afterwards machines learn to detect sentiment without human input automatically. So, we can say
simply that machine learning allows computers to learn new tasks without being specially programmed to perform them. Deep
learning makes use of artificial neural network for performing massive computation on huge data. it works similar to neurons in
human brain. There are various techniques and complex algorithms which are used to train machines and perform sentiment analy-
sis they can be classified under Supervised Learning and Unsupervised Learning [27].
B. Algorithm
CNN Algorithm is used. The basic Convolutional Neural Network (CNN) diagram is shown in the figure below. A ConvNet/CNN is
a Deep Learning algorithm which takes in an input image, then assign learnable weights and biases i.e., importance to various ob-
jects/aspects in the image so as to be able to differentiate from each other. Very less pre-processing is required in a ConvNet as
compared to other classification algorithms. Here, in the other primitive methods filters are hand-engineered, with use of enough
training, where ConvNets have the ability to learn these filters/characteristics. ConvNet architecture is similar to that of the connec-
tivity pattern of Neurons in the Human Brain and was inspired by the organization of the Visual Cortex [28].
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 208
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
D. Flow Diagram
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 209
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
Figure 4: Dataset
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 210
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
E. Model Details
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 211
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 212
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
VIII. CONCLUSION
The enormous people are diabetic patients and the inescapability of DR among them have developed an extraordinary interest in
modified DR diagnosing structures. So here grayscale fundus photographs have used and Convolutional Neural Network (CNN)
model is used for the detection of DR as presently results suggests that Neural Network have good clinical potential. DR detection is
done for five stages No DR, Mild, Moderate, Severe, Proliferative categorized on four age groups (Group A, B, C, D). The main ad-
vantage of CNN is that it detects all the important features automatically and learns peculiar features of each class by itself. CNN is
very efficient computationally. In further work we can increase more accuracy and accurate prediction rate, we can implement the
proper hardware software system for above DR detection using raspberry pi and create a system which will detect the stage of DR
and depending upon that it will guide showing the reference of particular hospitals or good doctors, can generate proper report so as
to show it to the doctor.
IX. ACKNOWLEDGMENT
I would like to take the opportunity to express our heartfelt gratitude and deep regards to my guide Dr. Jagdish W. Bakal for
knowledge, exemplary guidance, monitoring, encouragement throughout the completion of this report. Also, I thank Dr. Savita San-
gam for motivation and support. I would like to express our heartfelt thanks to all the teachers and staff members of Computer En-
gineering Department for their full support. WI would like to thank our principal for the conductive environment in the institution. I
am also grateful to the library staff of School of Engineering & Applied Sciences for the numerous books, magazines made availa-
ble for handy reference and use of internet facility. Last but not the least, I would like to extend our heartfelt appreciation to our
friends and family members, who have stood by us during good and bad times and have always been there to encourage and support
us in our endeavor.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 213
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
REFERENCES
[1] Muhammad Mateen, Junhao Wen. “Automatic Detection of Diabetic Retinopathy: A Review on Datasets, Methods and Evaluation Metrics”. National Key
R&D Program of China, IEEE Access (open access journal), 10.1109/ACCESS.2020.2980055, March 2020.
[2] Valencia Hinguera, “https://www.healthline.com/health/diabetes/diabetic-retinopathy-stages”, Feb 18,2021.
[3] Y. LeCun, K. Kavukcuoglu, and C. Farabet. “Convolutional networks and applications in vision”. In Circuits and Systems (ISCAS), Proceedings of 2010 IEEE
International Symposium on, pages 253256. IEEE, 2010.
[4] Jonathan Krause, Varun Gulshan. “Grader Variability and the Importance of Reference Standards for Evaluating Machine Learning Models for Diabetic Reti-
nopathy”. American Academy of Ophthalmology, Published by Elsevier Inc. ISSN 0161-6420/18.
[5] Kevis-Kokitsi Maninis, Jordi Pont-Tuset. “Deep Retinal Image Understanding”. Springer International Publishing AG 2016, MICCAI 2016, Part II, LNCS
9901, pp. 140–148, 2016.
[6] Wynne Hsu, P M D S Pallawala, “The Role of Domain Knowledge in the Detection of Retinal Hard Exudates”. IEEE, 0-7695-1272-010,2001.
[7] Muhammad Imran Razzak, Saeeda Naz and Ahmad Zaib. “Deep Learning for Medical Image Processing: Overview, Challenges and the Future”. Springer In-
ternational Publishing AG 2018, Available: https://doi.org/10.1007/978-3-319-65981-7_12
[8] FengLi Yu, Jing Sun. “Image Quality Classification for DR Screening Using Deep Learning”. IEEE,978-1-5090-2809-2/17,2017.
[9] Arkadiusz Kwasigroch, Bartlomiej Jarzembinski, “Deep CNN based decision support system for detection and assessing the stage of diabetic retinopathy”.
IEEE, 978-1-5386-6143-7/18,2018.
[10] Shikhar Seth, Basant Agarwal. “A hybrid deep learning model for detecting diabetic retinopathy. Journal of Statistics and Management Systems”, 21:4, 569-
574, DOI: 10.1080/09720510.2018.1466965, June 2018
[11] Monika Fleckenstein, Peter Charbel Issa. “High-Resolution Spectral Domain-OCT Imaging in Geographic Atrophy Associated with Age-Related Macular De-
generation”. Investigative Ophthalmology & Visual Science, September 2008, Vol. 49, No. 9.
[12] Xiaotao Li1, Xiang Li. “The Antidepressant Effect of Light Therapy from Retinal Projections”. Neurosci. Bull. April, 2018, 34(2):359–368.
[13] Alex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton. “ImageNet Classification with Deep Convolutional Neural Network”. Advances in Neural Information
Processing System 25, 2012
[14] Karen Simonyan, Andrew Zisserman. “Very Deep Convolutional Networks for Large-Scale Image Recognition”. ICLR 2015.
[15] Ian J. Goodfellow, David Warde-Farley, Mehdi Mirza, Aaron Courville, Yoshua Bengio. “Maxout Networks” arXiv:1302.4389v4 [stat.ML] 20 Sep 2013
[16] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, Ruslan Salakhutdinov. “Dropout: A Simple Way to Prevent Neural Networks from Over-
fitting”. Journal of Machine Learning Research 15 (2014).
[17] Andrew L. Maas, Awni Y. Hannun, Andrew Y. Ng. “Rectifier Nonlinearities Improve Neural Network Acoustic Models”. Proceedings of the 30th International
Conference on Machine Learning, Atlanta, Georgia, USA, 2013.
[18] Ilya Sutskever1, James Martens, George Dahl, Geofrey Hinton. “On the importance of initialization and momentum in deep learning”. Proceedings of the 30th
International Conference on Machine Learning, Atlanta, Georgia, USA, 2013.
[19] Xavier Glorot, Yoshua Bengio. “Understanding the difficulty of training deep feedforward neural networks”. Proceedings of the 13th International Conference
on Artificial Intelligence and Statistics (AISTATS) 2010. Volume 9 of JMLR.
[20] R.Priya, P. Aruna. “Diagnosis of Diabetic Retinopathy using Machine Learning Techniques”. ICTACT Journal on Soft Computing 2013.
[21] Gilbert Lim, Mong Li Lee, Wynne Hsu, Tien Yin Wong. “Transformed Representations for Convolutional Neural Networks in Diabetic Retinopathy Screen-
ing”. Modern Artificial Intelligence for Health Analytics: Papers from the AAAI-14.
[22] D. Nouri (2014, Dec 17). “Using Convolutional Neural Nets to Detect Facial Keypoints Tutorial” [Online]. Available:
http://danielnouri.org/notes/2014/12/17/using-convolutional-neuralnets-to-detect-facial-keypoints-tutorial/
[23] “Diabetic retinopathy image dataset” [Online]. Available: https://www.kaggle.com/c/diabetic-retinopathy-detection/data
[24] “Unsupervised Feature Learning and Deep Learning Tutorial” by Stanford University [Online]. Available: http://ufldl.stanford.edu/tutorial/
[25] “Diabetic retinopathy” [Online]. Available: https://en.wikipedia.org/wiki/Diabetic retinopathy
[26] “Quadratic Weighted Kappa Metric” [Online]. Available: https://www.kaggle.com/c/diabetic-retinopathydetection/details/evaluation
[27] Avijeet Biswal (2022, Feb 21) “Top 10 Deep Learning Algorithms You Should Know in 2022” [Online], Available:
https://www.simplilearn.com/tutorials/deep-learning-tutorial/deep-learning-algorithm
[28] Sumit Saha (2018, Dec 15) “A Comprehensive Guide to Convolutional Neural Networs” [Online] Available: https://towardsdatascience.com/a-comprehensive-
guide-to-convolutional-neural-networks-the-eli5-way-3bd2b1164a53
[29] “VGG-16 | CNN model” [Online], Available: https://www.geeksforgeeks.org/vgg-16-cnn-model/
[30] Rohit Thakur (2019, Aug 06) “Step by step VGG16 implementation in Keras for beginners” [Online], Available: https://towardsdatascience.com/step-by-step-
vgg16-implementation-in-keras-for-beginners-
a833c686ae6c#:~:text=VGG16%20is%20a%20convolution%20neural,vision%20model%20architecture%20till%20date
[31] Anaconda (Python Distribution) [Online], Available: https://en.wikipedia.org/wiki/Anaconda_(Python_distribution)
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 214