You are on page 1of 5

2017 4th IEEE Uttar Pradesh Section International Conference on Electrical, Computer and Electronics (UPCON)

GLA University, Mathura, Oct 26-28, 2017

Automated detection and grading of Diabetic Macular


Edema from digital colour fundus images
Ravitej Singh Rekhi, Ashish Issac, Malay Kishore Dutta
Department of Electronics and Communication Engineering, Amity University, Noida, India
Email ID: ravitejsingh11@gmail.com, issac017@gmail.com, malaykishoredutta@gmail.com

Abstract—Diabetic Macular Edema affects vision and capture the brightness profile ofmaculain [6] to acieve results
eventually may lead to blindness. Early detection is vital to with a hig degree of accuracy.
prevent the ramifications of the disease requiring the need for
effective computer-aided diagnostic techniques. A robust method B. Ramasubramaniam et. al. [7] propose a MATLAB
is proposedin the following paper to segment exudates from applicationfor K-means segmentation of macula and optic disc.
fundus images using a support vector machine for classification. The symmetry of the macular region is utilized to detect the
This is followed by detection of macula using morphological disease severity post classification using global characteristics
features and comparing the segmented exudates against specially in [8]. Macula detection is reported in [9] by taking the
created regions around the macula. The algorithm further grades displacement from the centre of the optic disc followed by
the image according to how severe the disease is. The proposed thresholding. [10] assesses the performance of novel
algorithm has been tested on 89 images of DIARETDB1 database algorithms in optic disc and macula detection. T. Garduno-
and gives an accuracy of 92.11% in detecting severe case of DME Alvarado et. al. [11] utilizes template matching to detect
and 90%accuracy for the same when tested on 100 images of macula while [12] has been a useful source to assess the
MESSIDOR database.The proposed method can be used to accuracy of different methods for macula detection.Issac et al
directly give an idea about the severity of Diabetic Macular [13] [14] has used adaptive intensity based threshold for optic
Edema in the image ad give a reliable and cost-effective diagnosis disc and cup segmentation from fundus images. Yadav et al
in real time.
[15] has used textural features to differentiate normal from
Keywords—Medical Imaging; Diabetic Macular Edema;
affected fundus images. Singh et al [16] has detected glaucoma
Fundus Image; Macula; Exudates from fundus images by analysing them in wavelet domain.
Dutta et al [17] has proposed a method for segmentation of
super pixels followed by Hough Transform which are
I. INTRODUCTION ultimately used for detection of Glaucoma from fundus images.
Diabetic Macular Edema (DME)is a serious disease of the Singh et al [18] has proposed a region growing method for
eyeprevalent in people having Diabetes Mellitus, which can optic disc segmentation from fundus images. S. Ganguly et al
cause rapid vision loss. Early symptoms of DMEoccur when [19] has proposed an adative intensity based gray level slicing
lipids and proteins from the blood vesselsleak in the retina method for segmentation of red lesions from digital fundus
giving rise to yellowish-white exudates. When these coalesce images for detection of Diabetic Retinopathy. Although a lot of
to form hard exudates, and extend into the macular region, they work has been done in this area, still tere exists a need for a
cause Diabetic Macular Edema leading to rapid vision loss. robust algorithm which is able to accurately segment the
Hence, regular check-ups are a must for people susceptible to macula from the fundus images in order to accuratelygrade the
diabetes. Early detection of the symptoms of DME can greatly severity of Diabetic Macular Edema.
reduce the chances of progression of vision loss with timely The mostsignificant contribution of the proposed method is
treatment. Hence, the need for automatic algorithms that can in the use of an adaptive threshold for segmentation of macula
aid in detecting this disease for a timely diagnosis and in turn, from the fundus images.The mean and standard deviation of a
treatment. The treatment options can be temporary in the form particular image has been computed and strategically combined
of Vitreal injections, or permanent, like laser photocoagulation. to calculate the threshold for accurate segmentation of macula.
Since correction can only be done at the early stage of the The use of statistical features for threshold determination
disease, hence, timely diagnosis of the disease is of paramount makes the algorithm image independent. The proposed
importance. algorithm is tested on images of two different databases and is
Work has been continuing to detect macula by academia.A able to correctly segment the macula from the images.
region based method was used to detect Diabetic Macular Another significant contribution lies in the use of
Edema by N. Sengar et. al. [1]. A Naïve Bayes classifier has morphological, geometrical and orientation features to
been used by Z. Y. Zaidi et. al. [2]. Motion pattern generation correctly identify the exudates and macula and create a grading
has been used as the main method in [3] by A. Johny et. al. to algorithm for the computer aided diagnosis of diabetic macular
detect the macula and grade the disease-severity. The reference edema (DME). The results obtained are convincing and the
position of the optic disc to detect the macula along with proposed work can be used in parts in some realtime screening
morpological features has been reported in [4].An interesting systems.
investigative method using Discrete Wavelet Transformation to
localise the blood vessels, and in turn, the macula as been The remaining paper is structured as follows: Section II
reported in [5] while an ingenuous line operator is used to talksabout the image processing and classification techniques

978-1-5386-3004-4/17/$31.00 ©2017 IEEE 482


which are used in the proposed method. Section III presents the three channels of the RGB color space are updated using the
segmentation and grading results for the images of different resulting smoothened V-channel and concatenated to form a
databases used for experimentation. Section IV discusses some single color image from which the green channel image is
conclusions which are derived during the experimentation extracted.The smoothed V-channel updates all the 3 channels
process. in the RGB color space. This process of normalization and
final green channel is shown in Fig. 2.
II. PROPOSED METHODOLOGY
The fundus of the eye can be photographed as an RGB
image using a high resolution digital fundus camera. The
photographed fundus can be analyzed to assess the presence of
abnormalities like micro-aneurysms and hemorrhages.
Depending upon the position and number of these
abnormalities in the retinal image, diseases like Diabetic
Fig. 2. (a) Original input image (b) Normalized image (c) Green channel of the
Retinopathy and Diabetic Macular Edema can be diagnosed. normalized image
Early detection and treatment through automatic computer-
aided image processing techniques is thus of vital importance, B. Segmentation of Exudates
especially in developing countries where there is a considerable After pre-processing, the green channel images are made to
dearth of medical professionals. undergo several steps that are briefly demonstrated through the
Fig.1showsalabelledimageofthefundusoftheeyewhich flowchart.
consists of different objects and abnormalities like optic disc, Anisotropic Diffusion is a non-linear filtering method that
blood vessels, exudates and red lesions (micro-aneurysms and blurs the background while preserving the edges in an image.
hemorrhages). The optic disc and blood vessels are objects In the given case, blood vessels and exudates edges are
which characterize a fundus image as normal. However, the preserved and rest of the portions of the fundus image are
presence of abnormalities, like exudates and red lesions, in an blurred. The filter acts as a selectively diffusion method.Post
image decides that a particular image is diseased. Also, the this, an adaptive threshold converts the image into binary. This
position of such abnormalities in the image is an important is adaptive and independent of the type of the image being
feature for diagnosis of the severity of a disease. used.
The thresholded image retains some noise post
thresholding. A part of it that is contributed because of the
optic disc is removed by multiplying the thresholded image
with a binary mask created by localizing the optic disc through
the brightness profile of the image as optic disc corresponds to
the region of maximum brightness.
The remaining noise is removed by classification using a
number of statistical and geometrical features which are
involved in training a support vector machine that differentiates
between exudate objects and non-exudate objects and segments
Fig. 1. Fundus Image of the Eye
out the useful information in the form of exudates. This is
There is a difference in the values ofthe intensity of the donealong similar lines as [21] and [22].
regions corresponding to exudates and optic disc, as compared
to the darker areas of the image like blood vessels. This
Input RGB Image
conventional technique has been primarily used to isolate the
region of interest (ROI).
Normalized Grayscale Image
The proposed algorithm is divided into four parts- Pre-Processing
RGB Image
preprocessing using image normalization, segmentation of
exudates, detection of macula and grading of Diabetic Macular Average Filter
Edema. A detailed description of the methodology is presented Anisotropic
in the subsequent sections. Diffusion
Green Channel

A. Pre-processing Maximum Intensity


Every fundus image been captured is different in terms of Adaptive
various parameters like brightness, contrast, etc. So, there Thresholding Optic Disc
arises a need that all fundus images are comparable with each
other. Hence, the fundus images are first normalized for Noise removal using SVM classification
uniformity and elimination of any undesirable artifacts. The
method is similar as used in [20] which utilizes the V-channel Exudates Segmented
of the HSV color space followed by median filtering. The Fig. 3. Flowchart for Segmentation of Exudates

483
The image processing techniques used in the proposed structuring element should be kept approximately equal to the
work for segmentation of exudates are summarized in Fig. 3. It vessel width. This will inpaint only the blood vessels while the
shows the use of normalization, anisotropic diffusion, intensity macula, being of larger dimension, is still retained. After the
based adaptive threshold for exudates segmentation and feature application of morphological operations like closing, the
based classification for false negatives removal to correct process of adaptive thresholding is immediately followed. The
identify the exudate pixels in the image.The features used to image is inverted and the macula is successfully localized in
remove the false positives are statistical, geometrical and the image.
orientation features and are defined as follows:
Input RGB Image
S.No. Feature Approach
1 Mean Statistical Parameter
2 Standard Deviation Statistical Parameter Grayscale Image
3 Variance Statistical Parameter
4 Perimeter Object Boundary Adaptive Histogram Equalisation
5 Area No of white pixels
6 Eccentricity A measure of how elliptical an object Morphological Closing Operation
is
7 Solidity A measure of how solid an object is Intensity Based Thresholding
8 Aspect Ratio Ratio of Major Axis to Minor Axis
Length Background Removal by Mask Multiplication
9 Distance from OD Using coordinates of optic disc
10 Slope with OD Using coordinates of optic disc Macula Localized
Fig. 5. Flowchart for Macula Detection

Fig. 4. (a) Anisotropic diffusion (b) Thresholded image (c) After removal
of optic disc (d) Post classification and removal of noise

Fig. 4 shows the step-wise implementation of the


classification techniques. Fig. 4(a) shows the anisotropic
Fig. 6. (a) Adaptive Histogram Equalised Image (b) Applying
diffusion subjected green channel image. Fig. 4(b) shows the morphological operations (c) Thresholded Image (d) Inverted Image
binary image after subjecting it to an intensity based threshold.
Fig. 4(c) shows the binary image obtained after removing the D. Grading of DME
optic disc from the segmented exudates image. Fig. 4(d) shows The next step is to divide the given image into three
the finally segmented exudates which are obtained after regions the pixels within which are separately compared
removing the false pixels which have been earlier detected as against the segmented exudates to grade the severity of the
exudates. disease. According to [23], if exudates are encountered in the
C. Detection of Macula region around the fovea that has one-third the optic disc’s
There is a conspicuous difference between the intensities diameter, the level of DME is considered as severe.
of the region corresponding to the macula and the rest of the
fundus image. This difference in intensity between the two
types of regions is utilized for the macula detection.

The original colour fundus image is converted to grayscale


and adaptive histogram equalisation is applied on the image.
This effectively sharpens the contrast between the lighter and
Fig. 7. (a) Region I (b) Region II (c) Region III
the darker regions within the image which is basically of
immense utility for the detection of macula. The equalized
Furthermore, if exudates are present in the region
image is subjected to a mathematical morphological closing
surrounding the macula within the radius of the optic disc,
operation. The structuring element used for this operation is
then the level of DME can be assumed to be moderate and
chosen to be a disk shaped of size 20 pixels. The size of the
similarly, if any exudate is present in the rest of the fundus

484
image, the fundus can be labelled as one with the possibility of The primary purpose of the global database linked to the
having a mild case of DME. An image that has been found MESSIDOR project is to compare and evaluate segmentation
absent of any exudates can be safely assumed to be normal. algorithms developed for the detection of lesions in fundus
Fig. 7 shows the regions which are been used to grade a images. MESSIDOR is a research program funded by the
fundus image for DME. All these regions are centered at French Ministry of Research and Defense. There is a total of
macula and the severity of the disease is more if the distance 1200 images available that have been graded according to the
from macula is less. severity of diabetic retinopathy and macular edema. The
proposed algorithm has been tested on 100 images of the
database available in TIFF format.
The grading algorithm can be summarised in the
following flowchart. Fig. 9 shows the experimental results using the proposed
NO algorithm for exudates segmentation. Fig. 9(a) displays the
Exudates Present Fundus is Normal fundus image input which is in the RGB format. Fig. 9(b)
YES shows the segmented exudates from the input image. This
YES Severe Case of image in binary format. The results shown in the figure
Exudates Present in Region I
DME detected comprises of samples from both the databases, i.e.
NO DIARETDB1 and MESSIDOR. It can be observed that the
YES Moderate Case of segmentation algorithm and proposed set of features used are
Exudates Present in Region II
DME detected capable enough to reject the false pixels and finally segment
NO the exudates correctly.
YES Mild Case of
Exudates Present in Region III
DME detected
Fig. 8. Grading algorithm according to the severity of DME

III. EXPERIMENTAL RESULTS


The algorithm has been tested on 89 images of the
DIARETDB1 database and 100 images of the MESSIDOR Fig. 10Regions in Grayscale to grade severity of DME (a) Severe case of DME
characterized by exudates in Region I (b) Moderate case of DME characterized
database. DIARETDB1 is a global database utilized for by exudates in Region II (c) Mild case of DME characterized by exudates in
benchmarking Diabetic Retinopathy. Out of the 89 images, 84 Region III
exhibit some signs of non-proliferative diabetic retinopathy
while 5 images are there that can be considered normal. The Fig. 10 shows the grayscale images of the regions which are
digital fundus camera used has a field-of-view of 50 degrees. used to grade for severity of DME in a fundus image. Fig.
10(a) show the region around the macular area. This region
consists of highest number of light receptors and are mainly
responsible for vision. The presence of exudates in this region
will impact the vision highest. So, if an any abnormality is
present in this region, then the fundus image will be
considered as the severe case of DME. Fig. 10(b) shows the
region for which the fundus image will be graded as moderate
case of DME. The presence of exudates in this region may
affect the vision, but moderately. Finally, the mild case of
DME is shown in Fig. 10(c).

TABLE I. RESULTS OF DME ANALYSIS


DATABASE TYPE OF FUNDUS IMAGE ACCURACY (%)
Normal 95.45
DIARETDB1 Severe DME 92.11
Moderate DME 87.50
Normal 92.72
MESSIDOR Severe DME 90
Moderate DME 88.89

After testing the algorithm on DIARETDB1 database, the


accuracy pertaining to normal images was 95.45%, for severe
case of DME, the accuracy was 92.11% and for moderate
DME, the accuracy came out to be 87.5%. Among the 100
images that were tested on the MESSIDOR database, exudates
were segmented on a total of 33 images and 57 images were
Fig. 9. Exudates Segmentation Results on DIARETDB1 and MESSIDOR
database (a) Original Input Image (b) Final Exudates
detected as normal. The database is labelled for the severity of

485
DME which has been used to determine the performance [8] K. S. Deepak and J. Sivaswamy, "Automatic assessment of macular
parameters. The accuracy pertaining to normal images was edema from color retinal images," in IEEE Transactions on Medical
Imaging, vol. 31, no. 3, pp. 766-776, March 2012.
92.72%, for severe case of DME, the accuracy was 90% and doi: 10.1109/TMI.2011.2178856
for moderate DME, the accuracy came out to be 88.89%. The [9] M. Mubbashar, A. Usman and M. U. Akram, "Automated system for
results generated after testing on both the databases have been macula detection in digital retinal images," 2011 International
summarized in Table I. Conference on Information and Communication Technologies, Karachi,
2011, pp. 1-5.
IV. CONCLUSION [10] E. Trucco et al., "Novel VAMPIRE algorithms for quantitative analysis
of the retinal vasculature," 2013 ISSNIP Biosignals and Biorobotics
The algorithmwas tested on 89 images of DIARETDB1 Conference: Biosignals and Robotics for Better and Safer Living (BRC),
database and 100 images of the MESSIDOR database and Rio de Janerio, 2013, pp. 1-4.
successfully provides an accurate idea of the severity of the [11] T. Garduno-Alvarado, M. E. Martinez-Perez, M. A. Martinez-
Castellanos, L. Rodriguez-Quinones and S. M. Salinas-Longoria, "Optic
patients showing symptoms of Diabetic Macular Edema disc and macula detection in fundus images by means of template
(DME). The disease is more prone to vision loss if the location matching," 2014 36th Annual International Conference of the IEEE
of abnormality is near macula. Also, the disease can be Engineering in Medicine and Biology Society, Chicago, IL, 2014, pp.
considered severe if the distance of abnormality from macula 134-137.
[12] R. Veras, F. Medeiros, R. Silva and D. Ushizima, "Assessing the
is less than one-third of optic disc diameter. The proposed accuracy of macula detection methods in retinal images," 2013 18th
method gives a high degree of accuracy and generates a very International Conference on Digital Signal Processing (DSP), Fira,
low number of false positives which is a desirable quality for 2013, pp. 1-6.
use in real time diagnostic applications. The threshold is doi: 10.1109/ICDSP.2013.6622734.
[13] A. Issac, M. ParthaSarathi & M. K. Dutta, “An adaptive threshold based
adaptive making the process of diagnosis entirely automatic. image processing technique for improved glaucoma detection and
The images obtained from the fundus camera can be analyzed classification”, Computer Methods and Programs in Biomedicine ,
to detect signs of disease which can help in early treatment. Volume 122 , Issue 2 , pp. 229 – 244.
[14] A. Issac, M. Parthasarthi and M. K. Dutta, "An adaptive threshold based
algorithm for optic disc and cup segmentation in fundus images," 2015
ACKNOWLEDGEMENT 2nd International Conference on Signal Processing and Integrated
This work has been supported in part by the Grants from Networks (SPIN), Noida, 2015, pp. 143-147.
Department of Science and Technology, No. [15] D. Yadav, M. P. Sarathi and M. K. Dutta, "Classification of glaucoma
based on texture features using neural networks," 2014 Seventh
DST/TSG/ICT/2013/37”. Also, the authors express their International Conference on Contemporary Computing (IC3), Noida,
gratitude to Dr. S.C. Gupta, Medical Director of Venu Eye 2014, pp. 109-112.
research centre for his invaluable contribution in classification [16] Anushikha Singh, Malay Kishore Dutta, M. ParthaSarathi, Vaclav Uher
of the images. & Radim Burget, “Image Processing Based Automatic Diagnosis of
Glaucoma using Wavelet Features of Segmented Optic Disc from
Fundus Image” Computer Methods and Programs in Biomedicine,
REFERENCES Volume 124 , pp. 108 – 120.
[1] N. Sengar, M. K. Dutta, R. Burget and L. Povoda, "Detection of diabetic [17] M. K. Dutta, A. K. Mourya, A. Singh, M. Parthasarathi, R. Burget and
macular edema in retinal images using a region based method," 2015 K. Riha, "Glaucoma detection by segmenting the super pixels from
38th International Conference on Telecommunications and Signal fundus colour retinal images," 2014 International Conference on
Processing (TSP), Prague, 2015, pp. 412-415. Medical Imaging, m-Health and Emerging Communication Systems
[2] Z. Y. Zaidi, M. U. Akram and A. Tariq, "Retinal image analysis for (MedCom), Greater Noida, 2014, pp. 86-90.
diagnosis of macular edema using digital fundus images," 2013 IEEE [18] A. Singh, M. K. Dutta, M. Parthasarathi, R. Burget and K. Riha, "An
Jordan Conference on Applied Electrical Engineering and Computing efficient automatic method of Optic disc segmentation using region
Technologies (AEECT), Amman, 2013, pp. 1-5. growing technique in retinal images," 2014 International Conference on
[3] A. Johny and A. Thomas, "A novel approach for detection of diabetic Contemporary Computing and Informatics (IC3I), Mysore, 2014, pp.
macular edema," 2016 International Conference on Emerging Trends in 480-484.
Engineering, Technology and Science (ICETETS), Pudukkottai, 2016, [19] S. Ganguly et al., "An adaptive threshold based algorithm for detection
pp. 1-4. of red lesions of diabetic retinopathy in a fundus image," 2014
[4] A. Bansal, A. Vats, A. Jain, M. K. Dutta, R. Burget and J. Prinosil, "An International Conference on Medical Imaging, m-Health and Emerging
efficient automatic intensity based method for detection of macula in Communication Systems (MedCom), Greater Noida, 2014, pp. 91-94.
retinal images," 2016 39th International Conference on [20] P. N. Sharath Kumar, R. R. Kumar, A. Sathar and V. Sahasranamam,
Telecommunications and Signal Processing (TSP), Vienna, 2016, pp. "Automatic detection of exudates in retinal images using histogram
507-510. analysis," 2013 IEEE Recent Advances in Intelligent Computational
[5] D. Deka, J. P. Medhi and S. R. Nirmala, "Detection of macula and fovea Systems (RAICS), Trivandrum, 2013, pp. 277-281.
for disease analysis in color fundus images," 2015 IEEE 2nd [21] A. Narang, G. Narang and S. Singh, "Detection of hard exudates in
International Conference on Recent Trends in Information Systems colored retinal fundus images using the Support Vector Machine
(ReTIS), Kolkata, 2015, pp. 231-236. classifier," 2013 6th International Congress on Image and Signal
[6] S. Lu and J. H. Lim, "Automatic macula detection from retinal images Processing (CISP), Hangzhou, 2013, pp. 964-968.
by a line operator," 2010 IEEE International Conference on Image [22] Lili Xu and Shuqian Luo, "Support vector machine based method for
Processing, Hong Kong, 2010, pp. 4073-4076. identifying hard exudates in retinal images," 2009 IEEE Youth
doi: 10.1109/ICIP.2010.5649080 Conference on Information, Computing and Telecommunication,
[7] B. Ramasubramanian and S. Selvaperumal, "A stand-alone MATLAB Beijing, 2009, pp. 138-141.
application for the detection of Optic Disc and macula," 2016 [23] M. K. Dutta et al., "An efficient grading algorithm for non-proliferative
International Conference on Advanced Communication Control and diabetic retinopathy using region based detection," 2015 38th
Computing Technologies (ICACCCT), Ramanathapuram, 2016, pp. 241- International Conference on Telecommunications and Signal Processing
245. (TSP), Prague, 2015, pp. 743-747.

486

You might also like