Development of A Retinal Image Segmentation Algorithm For The Identifying Prevalence Markers of Diabetic Retinopathy Using A Neural Network
Development of A Retinal Image Segmentation Algorithm For The Identifying Prevalence Markers of Diabetic Retinopathy Using A Neural Network
ISSN No:-2456-2165
Abstract:- Diabetic Retinopathy (DR) is a prominent Keywords:- Retinal Imaging, Image Processing, Image
cause of blindness and visual problem that affects the eyes Segmentation, Neural Network, Diabetic Retinopathy.
of humans who are affected by diabetics. Most of the time
it does not show symptoms at an early stage and it is hard I. INTRODUCTION
for the patient to identify the symptoms until a visual
ability degrade and the treatment becomes is less The human eye has many parts which have their
effective. It becomes tough for medical experts purposes and to process the interior image of an eye needs a
(ophthalmologists) to identify DR at an early stage better understanding of the parts. The retina acts like the film
manually by observing the retinal image taken by a of the eye on the interior surface of the human eye and is used
fundus camera. Thus, computer-aided image processing to change light rays into electrical signals. Through optical
of retinal images taken by fundus camera has tremendous nerves, it sends converted electrical signals to the brain. The
advantages to detect retinal lesions associated with optic nerve act as a wire to connect the eye with the brain for
Diabetic Retinopathy at an early stage. With less time and the electrical signal. The optic disc (OD) is the small round
effort, the computer aid image processing examines a mark on the retina where the optic nerve exits and the blood
large number of images more accurately than the manual vessels enter the eye, and it has a lighter area on the retina
observer-driven techniques. It becomes important image. The macula is found around the central region of the
diagnostic aid to reduce the workload of retina which is used to control the central light vision. The
ophthalmologists. However, the presence of various fovea is a small part of the retina found in the center of the
artifacts like the similarity of anatomical structures, macula which is responsible for the highest visual acuity. The
movement of the patient eye during image capturing, vascular network is a network responsible for providing
device noise, and illumination makes the segmentation oxygen, nutrients, and blood to the retina (Afzal 2003).
and processing of images of major pathological structures
a difficult task. The human eyes will lose their sight due to different
reasons and Diabetic Retinopathy (DR) is one of them.
In this study, we have developed a retinal image Diabetic Retinopathy (DR) is a prominent cause of blindness
segmentation algorithm and user-friendly software that and visual problem that affects the eyes of humans who are
can ease the task of the medical experts by automatically affected by diabetics. Most of the time it does not show
identifying Hard Exudates (HEs), which are the most symptoms at an early stage and it is hard for the patient to
prevalent characteristic features of Diabetic Retinopathy identify the symptoms until a visual ability degrade and the
in its earliest stage. The algorithm first is written and treatment becomes is less effective. It becomes tough for
tested using MATLAB then user-friendly software is medical experts (ophthalmologists) to identify DR at an early
developed using C# programming language in the stage manually by observing the retinal image taken by a
Microsoft .Net framework. To classify and segment the fundus camera. Diabetic Retinopathy (DR) has different
retinal image taken by the fundus camera a general forms and stages to affect eye vision and these stages are
representation of images color in the three spaces represented by the characteristic features of DR which are:
(trinion) has been used and to extract image features a Microaneurysms (MA), Hemorrhages (H), and Exudates
trinion based Fourier Transforms has also been applied. (Hard Exudates (HE) and Soft Exudates (SE)). MA are
Neural Network (NN) based segmentation of Hard discrete, localized expansions of weakened capillary walls
Exudates are included in the method for color space and show up as small, red 'dots' on the retina. When the small
transformation and to extract features. blood vessels rupture, bleeding occurs over time. They
generally appear as either a red 'dot' or 'flame-like on the
The efficiency of the developed image processing has retina. Exudates are the main sign of DR, a common retinal
been tested in classifying and identifying hard exudated complication related to diabetes and the leading cause of
and it shows better results. blindness. Hard exudates (HEs) are the most specific markers
for the presence of retinal edema, the major cause of vision
loss in nonproliferative forms of DR, and one of the most
Fig. 1. RGB-colored retinal Image was taken by fundus (Osareh and Shadgar 2009).
The main objective of the study was to develop an attained an average sensitivity of 95%, specificity of 95%,
automated method for processing retinal images based on an and accuracy of 97%.
image captured by a fundus camera, which would allow
effective detection and mass screening of DR markers. This The authors (Shengchun et al. 2019) also proposed an
research paper explains the holistic approach to retinal image algorithm to detect HEs. First, they perform an automatic
analysis, texture feature extraction for detection of HE, preprocessing method for retinal images by using the active
signature map created to enhance EXs, and OD, classification thresholding technique and the fuzzy Cmeans clustering
used to identify abnormal retinal images, and development of (FCM) technique, and then use a classifier called Support
user-friendly software that allows medical experts to easily Vector Machine. Their proposed algorithm includes four
operate the system. stages. The first stage is preprocessing, the second is optic
nerve head localization, the third stage is determining the
II. RELATED WORKS eligible HEs by using a dynamic threshold in clustering with
a global threshold based on FCM, and the last stage is feature
The authors (Satya et al. 2019) proposed an algorithm to extraction. In the last stage, the eight texture features were
detect HEs using morphological operations. Their algorithm extracted from the candidate regions, which were then fed
consists of three stages: First, preprocessing, second, feature into an SVM classifier for automatic classification of HEs.
extraction, and third, HEs detection. They apply contrast DIARETDB1 and the retinal image database eophtha EX
enhancement and noise removal to the green component of were used to try to evaluate the algorithm. Trained and cross-
the retinal color image, and only this channel is used for validated at the pixel level (10 times) using the eophtha EX
further analysis. In the second phase, features are extracted to and DIARETDB1 retinal databases. Mean sensitivities of
detect the candidates of HE using morphological operations 76.5%, PPV of 82.7%, and Fscore of 76.7% were achieved
(top-hat and bottom-hat). Finally, the algorithm detects HEs using eophtha EX archives and using the DIARETDB1
by finding the difference between the bottom-hat and top-hat retinal database. Average sensitivity of 97.5%, specificity of
features. To investigate their proposed algorithm, they used 97.8% and accuracy of 97.7%.
the DIARETDB1 and the High-Resolution Fundus (HRF)
image database. Using the DIARETDB1 database, they (Anup et al. 2017) have proposed an algorithm for
achieved an average sensitivity of 94%, a specificity of 96%, feature-based classification of HE in retinal images. First,
and an accuracy of 95%. With the HRF retina database, they each of the three color components is preprocessed, then the
optic disk and blood vessels are extracted from the image and
IV. IMAGE PROCESSING ALGORITHM as large peaks are grouped together in small areas of the
DEVELOPMENT AND IMPLEMENTATION histogram.
Retinal Image processing has series of steps from For further analysis, two color spaces were selected and
holistic processing to feature extraction and NN. Hereunder tested for better contrast and uniformity for EX and other
we explain each phase of the image processing algorithm step retinal structures. HSL (Hue, Saturation,
by step. Brightness/Value/Intensity) and GLM` (RGB G Component,
LUV L Component, and CMYK Inverse Magenta
1.3 Preprocessing Component). The first HSL color space was chosen because
In the pre-processing phase, we have performed it is similar to human color perception and causes less
normalization of the image data and suitable color space variation within and between images due to various artifacts,
selection. After the retinal image is read or loaded from the potentially useful for our anomaly detection system. The
storage, the image data type is converted from unit8 to second GLM color space was chosen based on the results of
double. Then each color component is divided by 255 and the scattering matrix of maximum interclass separability in
their value becomes between 0 and 1. This image (Lu and Fang G 2013). GLM color bars are important for
normalization process is applied to reduce the overflow error improving DR performance.
due to further analysis.
As mentioned earlier, when using an image processing
When the normalization process is completed program to inspect DR, the green channel of the original
appropriate color space must be selected. Because of retinal color fundus image is typically used. The reason for this is
pigmentation and the acquisition process, retinal images vary that most methods rely on color intensity information as the
greatly in brightness and contrast. This makes it more basis for developing image processing algorithms for color
difficult to distinguish retinal features and lesions, which images. The green channel of the fundus retinal image is
hinders automatic segmentation of abnormalities such as often used for HE detection and segmentation due to the high
EXs. contrast of HE (Snchez et al. 2009). However, a more holistic
analysis is generally more meaningful and should therefore
Determining the color space that sends dominant light lead to a more effective analysis of color images. In this
to the retina in an ideal way than the original RGB color regard, the current work is a combination of three typical
space has proven useful for in-depth exploration. To this end, channels for anomaly detection based on DR and OD
several color spaces such as RGB, HSL, Lab, LUV, CMYK, localization of fundus images. The G channel from the RGB
and Ycrbcrr were tested and compared to their suitability for color space was chosen based on the above facts. HE appears
extracting highlights (surface descriptors) in a powerful and brighter in the fundus image than in the background, which is
valuable way. dominated by green channels. Due to the consistent EX and
OD luminance information, the L channel in the LUV color
In a normal retinal image, the red component is space was chosen as the second channel (Kande et al. 2009).
oversaturated, resulting in low contrast in bright areas. The In most fundus images, the background color is red, while HE
blue component is less saturated and the black areas has less is yellowish. The inverse magenta channel from the CMYK
contrast. A single green component enhances the contrast of color space was selected as the third channel. This is to allow
the entire area. As a result, the image has very low contrast, good separation of dark red blood vessels from OD (see, for
example, Figure 3). The GLM color space scatter matrix
𝑢𝑥 𝑣𝑦
ℎ(𝑥, 𝑦) = ∑𝑀−1 𝑁−1
𝑢=0 ∑𝑣=0 𝑇(𝑢, 𝑣) (cos (2π ( + )) +
𝑀 𝑁
𝑢𝑥 𝑣𝑦
µ2 sin( 2𝜋 ( 𝑀 + 𝑁
))) (4)
Where:
𝑀 × 𝑁 is the total number of voxels (vectors) found in the
selected region of interest (window) of the source image.
u=0…N-1, v=1….M-1, are the discrete frequencies along
with the horizontal and vertical directions respectively.
GLM color space provides the highest index and is therefore 𝜇𝑛𝑜𝑛−𝑒𝑥 )𝑇 (20)
used for optimal segmentation of the retina (especially HE)
images.