Elsevier

Pattern Recognition Letters

Volume 135, July 2020, Pages 293-298
Pattern Recognition Letters

Automated detection of diabetic retinopathy using convolutional neural networks on a small dataset

https://doi.org/10.1016/j.patrec.2020.04.026Get rights and content

Highlights

  • Early detection of Diabetes-1 and Diabetes-2 from the transfer learning-based CNN architecture on color fundus photography.

  • Overfitting issue in CNN is resolved using the transfer learning technique and hence small datasets can be used for analysis.

  • A contrast enhancement pre-processing technique is used to preserve the brightness for effective analysis.

Abstract

Diabetic Retinopathy is a complication based on patients suffering from type-1 or type-2 diabetes. Early detection is essential as complication can lead to vision problems such as retinal detachment, vitreous hemorrhage and glaucoma. The principal stages of diabetic retinopathy are non-Proliferative diabetic retinopathy and Proliferative diabetic retinopathy. In this paper, we propose a transfer learning based CNN architecture on colour fundus photography that performs relatively well on a much smaller dataset of skewed classes of 3050 training images and 419 validation images in recognizing classes of Diabetic Retinopathy from hard exudates, blood vessels and texture. This model is extremely robust and lightweight, garnering a potential to work considerably well in small real time applications with limited computing power to speed up the screening process. The dataset was trained on Google Colab. We trained our model on 4 classes - I)No DR ii)Mild DR iii)Moderate DR iv)Proliferative DR, and achieved a Cohens Kappa score of 0.8836 on the validation set along with 0.9809 on the training set.

Introduction

Deep learning has enhanced the purpose of computer vision in identifying and classifying images and are a key tool used to automate tasks in our daily lives. Convolutional networks have been consistently developed for object detection, classification, segmentation. The use of convolutional neural networks (CNNs) on medical images has helped the medical sector immensely due to it's ability to learn representations of data [1].

Diabetic Retinopathy turns out to be a major cause of blindness in the western world, and regular screening of the patients reduces the risk of blindness. There are a number of features pertaining to the recognition of retinopathy in fundus photography, and computer vision based trained classifiers work pretty well in classification. Promising work has been displayed in the detection of retinopathy using k-NN classifiers and vector machines. CNNs have also been used for the classification of Diabetic Retinopathy [13,15], given a big dataset and considerable computing power [18]. They have been instrumental in detecting the features such as haemorrhage and hard exudes that identify retinopathy [8]. Deep architectures of CNN have been instrumental in providing the finesse and high performance to trained models by learning patterns from raw images [2]. Due to the availability of annotated data and evolution of GPUs, CNNs have been increasingly applicable in a number of cases. However, in case of medical datasets, huge amounts of annotated data are not readily available yet as the ImageNet Large Scale Visual Recognition Challenge (ILSVRC). Thus, transfer learning has not been very useful for medical datasets as most networks have been trained well to recognize objects present in the ImageNet dataset as shown in Fig. Fig. 1 and Fig. 5, Fig. 6, Fig. 7, Fig. 8, Fig. 9, Fig. 10, Fig. 11, Fig. 12, Fig. 13.

A major problem faced in training the model on less data is underfitting. Moreover, the presence of skewed classes causes the model to overfit on the largest class, which is turn, decreases the the corresponding F1 scores and Cohen's Kappa. Large datasets can often be over-sampled on the lower class, but oversampling on a small dataset will not be of much help against overfitting.

In this paper, we propose a deep learning based CNN method to classify images from a small and skewed dataset of 3050 training images belonging to 4 classes and 419 validation images to achieve a considerably good result. The accuracy metric used by us is Cohen's Kappa.

Section snippets

Related work

There has been considerable work regarding binary classification of Diabetic Retinopathy. Gardner et al used neural networks on 200 images by splitting an image into patches to achieve a sensitivity of 88.4% and specificity of 83.5% for binary classification. His work had been aided by a clinician in classifying the patches prior to using SVM.

Dr.Nayak et al also used neural networks to classify Diabetic Retinopathy Based on 3 classes by recognizing blood vessels and hard exudes from 140 images

Method and structure

We decided upon our network after studying baseline literature [7,22] and testing the performance of other models [[3], [4], [5],9,23]. It was observed that deeper layers cause overfitting as our dataset was comparatively smaller. In our network, we used CNN-based transfer learning on the DenseNet model pre-trained on ImageNet.

Results

The model was validated on 419 fundus images. The validation process was fast. We obtained a validation accuracy of 84.10 %. Accuracy was not used by us as the final metric due to the skewness of data. We chose Cohen's Kappa as our final metric than F1 score as Kappa provides a relativistic accuracy with respect to the other nearby classes, thus imparting a sense a reliability and originality in identification in case of a medical diagnosis [19].CohensKappa(κ)=pope1pe=11po1pe

A literature

Discussion and conclusion

Our model has approached the classification of 4-class problem in Diabetic Retinopathy on a small dataset using deep learning. Most earlier algorithms dedicated to the classification of DR fundus images on a small dataset evaded the use of deep learning. Our method has produced comparable results with previous literature given data and hardware constraints and the presence of skewed classes. Transfer learning and fine-tuning on the pre-trained DenseNet has proved to be extremely effective on

Declaration of Competing Interest

None.

References (23)

  • M.D. Abramoff et al.

    Automated early detection `of diabetic retinopathy

    Ophthalmology

    (2010)
  • Yann Lecun et al.

    Deep learning

    Nature

    (2015)
  • Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent...
  • J. Nayak et al.

    Automated identification of diabetic retinopathy stages using digital fundus images

    J. Med. Syst.

    (2008)
  • R. Acharya et al.

    Application of higher order spectra for the identification of diabetes retinopathy stages

    J. Med. Syst.

    (2008)
  • P. Adarsh et al.

    Multiclass svm-based automated diagnosis of diabetic retinopathy

  • Harry Pratt, Frans Coenen, Deborah M. Broadbent, Simon P. Harding, Yalin Zheng, Convolutional neural networks for...
  • Xiaogang Li, Tiantian Pang, Biao Xiong, Weixiang Liu, Ping Liang, Tianfu Wang, Convolutional neural networks based...
  • O. Faust et al.

    Algorithms for the automated detection of diabetic retinopathy using digital fundus images: a review

    J. Med. Syst.

    (2012)
  • Carson Lam, Darvin Yi, Margaret Guo, Tony Lindsay, Automated detection of diabetic retinopathy using deep learning,...
  • ...
  • Cited by (86)

    • From data to insights

      2024, A Biologist's Guide to Artificial Intelligence: Building the foundations of Artificial Intelligence and Machine Learning for Achieving Advancements in Life Sciences
    View all citing articles on Scopus
    View full text