Professional Documents
Culture Documents
Predicting The Stages of Diabetic Retinopathy Using Deep Learning
Predicting The Stages of Diabetic Retinopathy Using Deep Learning
harshithachava@gmail.com, ckarthik2k@gmail.co m
2021 6th International Conference on Inventive Computation Technologies (ICICT) | 978-1-7281-8501-9/21/$31.00 ©2021 IEEE | DOI: 10.1109/ICICT50816.2021.9358801
Abstract - Diabetic Retinopathy (DR) is a very ordinary problem are essential in solving existing problems. While, the usage of
among diabetic patients, which in turn results in the constructive loss deep learning for binary clustering has succeeded in achieving
of vision in those patients. If this abnormality is not detected in the high accuracies during validation, “multi-stage classification”
early stages, then there is no treatment to restore the eyesight. outputs are comparatively less, especially for early-stage
Hence, the only remedy from this irreversible situation is to detect detection.[2]
this disease at an early stage and undergo treatment. To sustain the
vision in the patients, the ophthalmologists use the “fundus images”In this article, an automated DR detecting system is brought
of their eyes, which the retinal images of the patients. But this forward which is convenient in clustering the images based on
detection of an abnormality in a human eye by another human disease-causing terms into a few certain levels. The
naked eye is time taking, cost- consuming and it sometimes also leads
“Convolutional Neural Network (CNN)” is used in this
to misjudgment, due to the subjective difference and considerations
among the ophthalmologists. Therefore, the “Deep Learning” proposed methodology, this network convolves an image
methodology is used to detect Diabetic retinopathy by using the which is given as the input into a calculated weighted matrix to
fundus images. Hence, leading to the reduction of misdiagnoses, a gather required image coordinates without losing the actual
computer-based diagnosing system is introduced. Recently, the information of the input images (also known as “Feature
techniques of deep learning have become the most common method extraction”). Initially, compare various models of CNN to
to achieve accuracy among image recognition or feature detection choose the optimal network model among them, for the basic
systems for both classification and regression. In this research, the
clustering task and then to gain the best results. Then, move
“Convolutional Neural Networks (CNN)” is used for image forward to train the “multi-class models” which enhance the
recognition, using the retinal images to train the neural network sensitivity in the early-stage classes, involving several
architecture and produce high accuracies. The challenges among
other techniques used and problems with existing methods were also methods available for processing of the data and augmentation,
discussed in this article. for the improvement of accuracy during testing. The CNN
architecture model is used to train and test the data. These
networks are mold into performing optimally on the dataset for
Keywords: Diabetic Retinopathy (DR), Deep Learning (DL), training using various methodologies such as dropout, learning
Convolutional Neural Networks (CNN), Machine Learning (ML).
rate policies, etc. The publicly available “Kaggle” dataset of
thousands of retinal images including five labeled clas ses
1. INTRODUCTION (mild, moderate, normal, severe, end-stage) is used as the
dataset. An optimal way of detecting and clustering the
Around the world, there are around four hundred and twenty dawning stages of Diabetic Retinopathy into various stages for
million people who are suffering from diabetics and all these critical medical benefits were focused [5].
people are under the risk of Diabetic Retinopathy (DR) and
even in the future, this disease is expected only to increase, “Deep Learning (DL)” is a part of “Machine Learning
which results in more people who are to be prone for diabetic (ML)” which supplies systems the ability to learn on its own
retinopathy [1]. DR is being non-curable disease makes it and increase the performance from experience without any
stand as more dreadful and the thought of vision loss terrifies human intervention, this tends to act as a human brain by
everyone [4]. The only solution to this problem is early learning from the environment, DL uses the concept of neural
detection, which is critical for treatment. This detection is the network in a human brain, which copies the methodology of
challenging phase which points out the lack of skillful hands training itself by learning [7]. Deep Learning focuses on the
and facilities in the traditional methods. Adding to this point, building of computer codes that can utilize data and utilize it to
the traditional or mature screening methods for DR promotes learn for them and train them to perform with high accuracies at
inconsistency among the readers and their subjective data that is new to the model or data [6]that is unlabeled.
perspectives. Therefore, given the escalation in both diabetes The methodology of learning begins with observation; in this
and the effects on the retina posed by this dreadful disease case- data and instructions, the system then searches for similar
around the globe, the traditional (or manual) methods in patterns to analyze the given dataset and make better choices in
diagnosis might not be able to keep par with the need for the future keeping in view the past experiences provided during
diagnosing services. the training. The primary objective is to allow the systems to
Automated detection methodologies for diabetic retinopathy learn automatically without human involvement or assistance
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 19:01:55 UTC from IEEE Xplore. Restrictions apply.
and to improve their actions accordingly. These expert systems use a statistical approach that is
generally used for textual and numerical data and is
Deep Learning is highly successful in building networks that
comparatively less efficient for image datasets.
have the capability to learn from unsupervised training,
unlabeled or unstructured data. The systems generally use a few
steps called PEAS; 3.1 Disadvantages of the existing system:
P- Performance 1. Inaccurate
2. Expensive
E- Environment 3. Time-comsuming
A- Actuators 4. Much coding
5. Mostly statistical approach
S- Sensors 6. Inaccurate training
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 19:01:55 UTC from IEEE Xplore. Restrictions apply.
A. STEPS FOR BUILDING A CNN MODEL:
0- No DR
1. Import libraries
1- Mild 2. Pre-processing
2- Moderate 3. Initialize neural network model
4. Add input layer
3- Severe 5. Add hidden layers
Proliferative 6. Add output layer
4 - DR 7. Compile neural network model
7. IMPLEMENTATION
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 19:01:55 UTC from IEEE Xplore. Restrictions apply.
7.1. Pre-Processing
The image dataset will contain images of different The result after the preprocessing and application of the green
dimensions. It is required to change all of them into a channel looks like the above images.
standard dimension, and further convert the data into the
dimensions 256x256. This can be done through image
7.2. Sequential Neural Network
resizing or rescaling [15].
Neural Network models build complex features using
Green Channel is a filter applied on the images
their successive layers, sequentially. The proposed, new neural
because images contain various points few with high
network model consists of layers that are formed by a set of
densities and few with low densities but when images featured mappings. It is a linear stack of layers.
undergo this “green channel” filter, it tries to moderate the
densities of all points in an image.
7.3. Add Input Layer
It is done to apply various transformations for an
image based on some random function to build the model The input shape, a function, which is the defined
with a vast number of images in the dataset with few images. size of the input image, has been declared. This is the input
of the CNN model. It is a convolution layer with 32 filters
and a kernel of size 3x3 and the activation argument takes
the value “ReLU” and the padding argument takes the value
“same”.
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 19:01:55 UTC from IEEE Xplore. Restrictions apply.
8. RESULTS AND DISCUSSION
Hence, CNN is one of the very few methods that result in high
However, after using the above CNN model, the training accuracy for image data.
accuracy for 10 epochs was 73%, for 15 epochs were 79%
and for 50 epochs, the training accuracy was 83.6% on the
processed image data. The best accuracy obtained for the test 9. CONCLUSION
set from using the very limited number of neurons was 86%.
This shows that as an increase in the complexity of the Automated screening systems or detection systems are used to
neural net by escalating the numbers of both epochs, dramatically reduce the amount of time consumed to
neurons, or hidden layers produce an increase in accuracy determine the disease while saving the effort and costs for
for the model. It is interesting to note the accuracy score of clinical experts or “ophthalmologists” and results in the better
this model decreases after preprocessing”. According to our treatment of patients. The Automated techniques fo r Diabetic
hypothesis, the cause is the loss of crucial image features Retinopathy detection take up an important action in
during downsampling. This proposed method can be further recognizing the retinopathy at a dawning stage. The “DR
explored to determine to intensify these models to attain stages” are basically built on the type of abnormalities that
highly sensitive and very mild class DR. can be seen on the retina. In recent years, it has been stated
that CNNs can be grouped into the set of methods that are
8.1. Comparati ve Analysis used to detect diabetes. CNN’s are always an efficient
There are many techniques used for the “Automatic technique that can leverage a large number of images that
Detection of Diabetic Retinopathy”, in this study used the have been gathered by the ophthalmologists for the diagnosis,
“Convolutional Neural Networks (CNN)” to enlarge the but also with various pixel size and inconsistency. The “high
accuracy and reduce the complexity [11]. Many other variance and low bias” of these architectures allow the CNN
techniques are already used for the detection of DR. Some of to recognize a vast range of non-diabetic diseases as well and
those methodologies are: such new techniques are used to bring a revolution in the
Table 1: Methodologies and Results medical industry and help the doctors as well as the patients.
[12] Acharya, R., Chua, C.K., Ng, E.Y.K., Yu, W. and Chee, C.,
2008. Application of upper order spectra for the identification of
polygenic disease retinopathy stages. Journal of Medical Systems,
32(6), pp.481-488.
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 19:01:55 UTC from IEEE Xplore. Restrictions apply.