DiaRet: A browser-based application for the grading of Diabetic Retinopathy with Integrated Gradients

Shaswat Patel, Maithili Lohakare, Samyak Prajapati, Shaanya Singh, Nancy PatelarXiv 2021 · DOI · OpenReview

TL;DR

This paper introduces DiaRet, a browser-based application that uses deep learning models to grade Diabetic Retinopathy (DR) from retinal fundus images. It enhances explainability by integrating Integrated Gradients to highlight key features influencing the model's predictions, aiming to assist clinicians in diagnosis.

What Problem Does This Paper Address?

Diabetic Retinopathy (DR) is a leading cause of blindness, and its early detection is crucial for preventing vision loss. Traditionally, DR diagnosis relies on manual examination of retinal fundus images by medical experts, which is time-consuming and expensive. While deep learning models have shown promise in automating this process, a lack of transparency in their decision-making can be a barrier to clinical adoption. This paper addresses the need for an accurate, efficient, and explainable automated system for DR grading that can be readily used by medical professionals.

Methods

The core of this work involves two main components: deep learning models for DR grading and a browser-based application for deployment.

  1. Deep Learning Models: The researchers trained three pre-trained Convolutional Neural Network (CNN) architectures – InceptionV3, InceptionResNetV2, and ResNet-50 – using transfer learning. These models were initialized with ImageNet weights and then fine-tuned on various datasets. An attention mechanism was incorporated to allow the models to focus on specific regions of the image that are important for DR detection, such as microaneurysms and exudates. The final classification into DR severity grades was performed using a SoftMax classifier.
  2. Browser-Based Application (DiaRet): The trained models were integrated into a user-friendly web application built with Streamlit. A key feature of this application is the implementation of Integrated Gradients (IG). IG is an explainable AI (XAI) technique that generates an "attribution mask" overlaid on the input image. This mask highlights the pixels or regions that most significantly contributed to the model's prediction, providing valuable insights to clinicians about why a particular grade was assigned. The application also displays the probability distribution for each predicted grade and includes a module for collecting user feedback to facilitate active learning and model improvement.

Datasets

The researchers utilized three publicly available datasets for training and testing:

  • Indian Diabetic Retinopathy Image Dataset (IDRID): Contains 516 images, with 81 color fundus images showing signs of DR.
  • DDR dataset: A larger dataset with 13,673 images, including 757 fundus images with DR.
  • EYEPACS (Kaggle) dataset: A very large dataset (88,702 images) collected from domain experts, though with some quality and labeling issues.

To improve model robustness, the IDRID dataset was artificially degraded by introducing combinations of light transmission disturbance, image blurring, and retinal artifacts, creating an "IDRID Degraded Dataset" of 4128 images. A "Balanced Combined Dataset" was also created by combining images from all sources to ensure a more balanced representation across classes.

Key Insights and Ideas

  • Explainability is Crucial for Clinical Adoption: The integration of Integrated Gradients is a significant contribution. By visualizing why a model makes a prediction, it builds trust and helps clinicians understand the model's reasoning, which is vital for its acceptance in a medical setting.
  • Degradation Enhances Robustness: Artificially degrading the IDRID dataset helped create more robust models that can generalize better to real-world conditions, which often involve noisy or imperfect images.
  • Attention Mechanisms Improve Focus: The use of attention mechanisms allows the models to pinpoint specific pathological features within the fundus images, leading to more accurate grading.
  • Browser-Based Deployment for Accessibility: Creating a web application makes the advanced deep learning models accessible to a wider range of users, including medical professionals who may not have deep technical expertise.

Key Results

The paper presents performance metrics across different training and testing scenarios.

  • IDRID Degraded Dataset (Tested on EyePACS): The InceptionResNetV2 model achieved the highest overall accuracy of 66% with an AUC of 0.86.
  • IDRID Degraded Dataset (Tested on DDR): The InceptionResNetV2 model achieved an accuracy of 52.5% with an AUC of 0.80.
  • Balanced Combined Dataset (Tested on EyePACS): The Inception V3 model performed best with an accuracy of 64.09% and an AUC of 0.84.
  • Balanced Combined Dataset (Tested on DDR): The InceptionResNetV2 model achieved an accuracy of 30.7% with an AUC of 0.76.

The authors note that using only the IDRID dataset (516 images) yielded over 66% accuracy and AUC > 0.85. They also highlight that models trained on the larger Balanced Combined dataset achieved accuracies up to 64%.

Limitations and Future Work

  • Image Quality: The authors acknowledge that the eyePACS and DDR datasets contain noisy and blurred images. They suggest that further filtering of these images could improve model performance.
  • Model Generalization: While the degraded IDRID dataset helps, further work could focus on improving generalization across diverse image qualities and acquisition devices.
  • Active Learning and Ensemble Methods: The authors propose extending their work by implementing Active Learning within the browser application to continuously improve model performance based on clinician feedback. They also suggest exploring ensemble learning approaches to build more robust models.
  • Model Drifting: They identify model drifting as a common problem in production deep learning models and propose using collected data for active learning to combat this.

Summary updated

Abstract

Patients with long-standing diabetes often fall prey to Diabetic Retinopathy (DR) resulting in changes in the retina of the human eye, which may lead to loss of vision in extreme cases. The aim of this study is two-fold: (a) create deep learning models that were trained to grade degraded retinal fundus images and (b) to create a browser-based application that will aid in diagnostic procedures by highlighting the key features of the fundus image. In this research work, we have emulated the images plagued by distortions by degrading the images based on multiple different combinations of Light Transmission Disturbance, Image Blurring and insertion of Retinal Artifacts. InceptionV3, ResNet-50 and InceptionResNetV2 were trained and used to classify retinal fundus images based on their severity level and then further used in the creation of a browser-based application, which implements the Integration Gradient (IG) Attribution Mask on the input image and demonstrates the predictions made by the model and the probability associated with each class.
BibTeX
@misc{patel2021diaret,
  author = {Shaswat Patel and Maithili Lohakare and Samyak Prajapati and Shaanya Singh and Nancy Patel},
  title = {{DiaRet: A browser-based application for the grading of Diabetic Retinopathy with Integrated Gradients}},
  year = {2021},
  eprint = {2103.08501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.08501},
}
Figure