Diabetic Retinopathy Detection Using Image Processing (GUI)
Diabetic Retinopathy Detection Using Image Processing (GUI)
Diabetic Retinopathy Detection Using Image Processing (GUI)
Abstract
Diabetic Retinopathy is a major disease that has affected over 290 million people globally and 69.2 million people in India, the
rate of people getting affected will increase exponentially in the coming years. Diabetic Retinopathy is an ailment linked to the
fundus of the eye and can have adverse effects on the patient, if at all left undiagnosed respectively. Our project aims to construct
a graphical user interface that can integrate image processing techniques together in order to predict whether the input
fundus/retinal image received from the patient is affected with Diabetic Retinopathy or not; if affected, the graphical user
interface will display the severity along with the required action needed to be undertaken by the user / patient. This essentially
reduces the processing time involved in the process of detecting the disease and also the ophthalmologists can also have our
graphical user interface as a backup that can be used for validating or assist in detecting the disease.
Keywords: Diabetic retinopathy; Graphical user interface; Image processing; Fundus analysis; Retinal ailment detection.
1. Introduction
Diabetic retinopathy is an infection that happens mostly in working populace for the most part experiencing
diabetes. It for the most part includes a great deal of time in preparing the pictures of the fundus after a patient visits
the ophthalmologist separately. Our undertaking plans to lessen that with the goal that specialist can take care of
more patients in light of the quicker handling of results separately and furthermore to guarantee that there is no
misdiagnosis occurring, by helping the ophthalmologist. There are 4 arranges in Diabetic retinopathy which are to
be specific, Mild Diabetic Retinopathy, Moderate Diabetic Retinopathy, Severe Diabetic Retinopathy, Proliferative
Diabetic Retinopathy separately. Proceeding with carelessness of not visiting an authority or not taking
consideration can result doubtlessly in visual deficiency, making the patient be visually impaired for the remainder
of their lives. The three fundamental segments of the human retina are vessels, optic circle and fovea. what's more,
are for the most part utilized for a few applications, For instance, retinal picture selection, lighting up revision,
similarly as pathology acknowledgment interior of the retina. Distinguishing proof for these fundamental structures
physically is monotonous and depends upon the bent of the customer. The division of veins from fundus photos can
be troublesome for various reasons. A portion of the tainting
2. Related Work
As advancements have taken place, a ton of studies and research have occurred on programmed determination of
diabetic retinopathy utilizing various progressed and increasingly exact exactness procedures. The following papers
were studied and deeply analyzed in order to develop our project. The papers which are mentioned below are
published as a part of renowned journals and were truly helpful in understanding the idea of Diabetic Retinopathy.
2.1 Diabetic Retinopathy Detection using Deep Convolutional Neural Networks
Authors: Darshit Doshi, Aniket Shenoy, Deep Sidhpura, Dr. Prachi Gharpure
Year: 2016
Diabetic retinopathy is when harm strikes the retina because of diabetes, which influences up to 80 percent of all
patients who have had diabetes for a long time or more. The mastery and hardware required are frequently ailing in
regions where diabetic retinopathy discovery is generally required. The vast majority of the work in the field of
diabetic retinopathy has been founded on ailment identification or manual extraction of highlights, yet this paper
goes for programmed conclusion of the ailment into its diverse stages utilizing profound learning. This paper
displays the plan and execution of GPU quickened deep convolutional neural networks to naturally analyze and
subsequently group high-goals retinal pictures into 5 phases of the infection dependent on seriousness. The single
model precision of the convolutional neural networks exhibited in this paper is 0.386 on a quadratic weighted kappa
metric and ensembling of three such comparative models brought about a score of 0.3996.
Diabetic Retinopathy (DR) is an eye filled sickness brought about by the entanglement of polygenic ailment and
that will be distinguished precisely for convenient treatment. As polygenic ailment advances, the vision of a patient
could start to fall apart and prompts visual impairment. In this proposed work, the nearness or nonattendance of
retinal exudates are identified utilizing Machine Learning strategies. To recognize the nearness of exudates
highlights like Mean, Standard deviation, Centroid and Edge Strength are removed from Luv color space in the
wake of sectioning the Retinal picture. A sum of 100 pictures were utilized, out of which 80 pictures were utilized
for preparing / training and 20 pictures were utilized for testing. The grouping task completed with classifiers like
Naive bayes (NB), Multilayer Perceptron (MLP) and Extreme Learning Machine (ELM). Trial results demonstrates
that the model fabricated utilizing Extreme Learning Machine outflanks other two models and adequately
distinguishes the presence of exudates in retinal pictures.
2.3 Automatic Detection of Diabetic Retinopathy using Image Processing and Data Mining Techniques
Authors: Ketki S. Argade, Kshitija A. Deshmukh, Madhura M. Narkhede, Nayan N. Sonawane, Sandeep Jore
Year: 2015
Diabetic Retinopathy is an ailment of retina which influences patients with diabetes mellitus and it is a primary
purpose behind visual impairment. It is an illness in which the retinal veins swell. This harms the retina of eye and
may prompt visual impairment if the severity of diabetes is extremely high. The best treatment is early identification
through normal screenings. Programmed screening of these pictures would push the specialists to effortlessly
distinguish the patient's condition in increasingly precise way. This stresses on assurance of retinal pictures utilizing
suitable picture handling and information mining procedures. With this we can without much of a stretch order
ordinary and irregular pictures of retina this will decrease the quantity of surveys for the ophthalmologist.
3. Proposed system
The propounded design deals with various image processing techniques and machine learning methods so as to
segment the fundus input image properly, and are explained in the upcoming subsection respectively. Our system
indeed has quite a few advantages like; very intelligent and the Graphical User Interface has an effectively
recognizable interface, which could be utilized by anybody. Also, it involves generally faster processing time than
similar systems. The system is cost viable as this can cost lesser than the existing manual strategies. The look and
non intricate feel has better ease of use when contrasted with the past prescient models. More solid, as the
preparation was finished utilizing a dependable informational collection comprising of pictures taken
straightforwardly from a dataset that was built by ophthalmologists individually (DIATREB). The biggest advantage
is of course to assist the ophthalmologist in reviewing the condition of the patient. However, there are a few
drawbacks also to be considered, like; systems created were not at all interactive and perceivable to common non –
technical people. Unlike the reliable fundus images, mobile captured images can have limitations involved with
them like lack of clarity that may lead to misclassification.
3.1 Architecture
The basic input of the proposed system will be a fundus image that is produced after screening tests respectively.
A fundus is a inner part of retina. This is given by the user using a Graphical User Interface (GUI). The user should
open the interface and then click on the upload image button respectively to upload the image. This Image then
undergoes image pre-processing. This involves changing the images into the required or effective form for
processing. Firstly, the images are resized and sampled into the required size, say 512 X 512 if required. Then color
space conversions and filtering techniques like Gaussian Filtering, Bilateral Filtering, Grey Scale Conversion are
employed to convert the image into gray scale, reduced noise image respectively. After which edge detection
methods and contouring techniques are used to outline the image properly. The method Gaussian blurring is utilized
to reduce the presence of noise in the image and segmentation is used for detecting the area where the blood vessels
are present. Finally, the concerned area is identified via a method called K-means image segmentation and is used
for determining the GLCM (Gray level Co-occurrence Matrix) features matrix of the image. After comparing the
different metrics of the input image’s glcm features, with all of those in the training data set, the model comes to a
decision by judging the image with the severity of DR based on the training image features.
i. Gaussian filtering:
Gaussian filtering is a method which can be used for blurring out the input images which helps in removal of any
presence of noise in the image. The Gaussian filter is not a uniform low pass filter. When we work with images we
usually use a two-dimensional version of gaussian function. A sample Gaussian filter is shown below
A bilateral filtering is a non-straight, edge-safeguarding, and commotion diminishing smoothing channel for
pictures. It replaces the power of every pixel with a weighted normal of force esteems from close-by pixels. This
weight can be founded on a Gaussian conveyance. Significantly, the loads depend on Euclidean separation of pixels,
yet in addition on the radiometric contrasts (e.g., range differences, such as color intensity, depth distance, etc.). This
preserves sharp edges See Fig[2].
After the entire process is done, the K means technique is utilized to determine the interest region from the feed in
image depending on pixel level intensity respectively. Currently the classifier classifies based on the pixel level
produced
from the feature matrix with each other image in the data set respectively. Here K-means approach is utilized to
get the region of interest needed for future steps to be done. The below image describes k-means clustering .
4 Methodology
The methodology follows a simpler approach than the existing once. The user interface enables the person to
provide a fundus image of the eye. This is then sent to the model. The model initially apply the gaussian blurring.
This removes the presence of noise in the images to be processed. Later the image is bilateral filtered and
contouring is done. After this is done the colour space conversion takes place where we create a grayscale image of
fundus. Now we apply k-means clustering for identifying the region of interest.
At that point the division happens. The ROI that is gotten is then prepared to remove the GLCM highlights. It
includes the element vector for grouping which comprises of seven highlights acquired by means of division of
retinal structures and surface investigation on entropy , differentiate , homogeneity. The beneath picture is a preview
of the preparation procedure.
This picks the grayscale power of each pixel present as a structure. These characteristics are then used to get
estimations. This is moreover completed with the accessibility dataset pictures. The section extraction of these
photos is done and the estimations of both planned dataset and the customer input are showed up differently in
association with pick the segment of validity the data picture has. Subordinate upon the validity a particular kind of
proposition will be given to the customer.
Currently, we are attempting to test the retinal ailment along these lines utilizing the impelled picture dealing
with strategies on pictures of the retinal. The most basic changes that can develop in the fundus in perspective of the
ailment are Exudates, Haemorrhages and Micro aneurysms which are not discussed widely much in the paper.
Nearness of something like significant quantity of the above wounds in the fundus exhibits closeness to DR.
The acknowledgment techniques join the two which are, managed and non-directed frameworks, non-supervised
strategy is being employed here for identifying hard exudate. Picture Pre-processing incorporates changing the
photos into the required or practical structure for dealing with. That is the reason it is named as pre dealing with.
Directly off the bat, the photos are resized and inspected into the required size, say 512 X 512 at whatever point
required. By then shading space changes like green scale change hop out at devotee the image into dim scale.
After which edge recognizable proof procedures are used to chart the image properly. Centre purifying is utilized
for reducing the upheaval existing in the image and division is used to distinguish the veins evidently. Feature
extraction, It basically incorporates the component vector used for gathering includes seven features got from
division of retinal structures and surface analysis. Classifier, after the whole taking care of is done, the convolutional
neural framework is used to organize the image by means of setting up the image with its several layers in order to
check if the portrayal is immaculately done by the model which is the best way to set up images differentially.
This stage finally returns irrespective of the ailment still being found in the person suffering. Graphical user
interface, This is the front end obviously, where the user is asked to upload the fundus image by clicking the button
provided by the GUI respectively. It is not completely interactive though. The chat application interface is designed
to facilitate easier navigation for the users who are not very technically qualified.
Displaying the outcomes is when finally after all of the processing is done, the graphical user interface displays
textually whether the person is affected with diabetic retinopathy or not. If at all affected, the bot suggests the
symptoms also regarding the severity of the Diabetic Retinopathy is finally detected and displayed on to the GUI
respectively so that the patient can know about the condition of his ailment currently faced by the potential patient.
The outcomes that are acquired throughout the process are as listed below respectively with the captions and
the initial and final phases of the fundus image input by the patient respectively.
iii. Bilateral filtered fundus image: iv. Grayscale converted fundus image:
Fig. 15. (a) normal fundus; (b)fundus with mild-DR; (c) fundus with moderate-DR; (d) fundus with severe-DR;(e) fundus with proliferative DR
6. Conclusion and Future Work
Currently in the scope of this paper, the processing time of diabetic retinopathy detection is kept in mind, so as
to deliver a graphical user interface to the user / patient, so that they can use their fundus images as input to the
graphical user interface and there by get to know whether they are suffering from diabetic retinopathy or not from a
reliable source with faster processing time also. Further upgrades later on might incorporate the use of a superior
calculation something like a convolutional neural system which can help in arranging the pictures well than the
present utilized classifier individually. Aside from that, highlights like helpline or client manual ought to be given
in the graphical UI, to be useful for the clients who probably won't be acquainted with innovative progressions and
utilization of the application.
Acknowledgement
We wish to acknowledge the Department of Science and Technology, India and School of Computing, Sathyabama
Institute of Science and Technology, Chennai for providing the facilities to do the research under the DST-FIST
Grant Project No.SR/FST/ETI-364/2014.
References