Uncertainty-aware diabetic retinopathy detection using deep learning enhanced by Bayesian approaches

Abstract Deep learning-based medical image analysis has shown strong potential in disease categorization, segmentation, detection, and even prediction. However, in high-stakes and complex domains like healthcare, the opaque nature of these models makes it challenging to trust predictions, particular...

Full description

Saved in:
Bibliographic Details
Main Authors: Mohsin Akram, Muhammad Adnan, Syed Farooq Ali, Jameel Ahmad, Amr Yousef, Tagrid Abdullah N. Alshalali, Zaffar Ahmed Shaikh
Format: Article
Language:English
Published: Nature Portfolio 2025-01-01
Series:Scientific Reports
Online Access:https://doi.org/10.1038/s41598-024-84478-x
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1841544803630710784
author Mohsin Akram
Muhammad Adnan
Syed Farooq Ali
Jameel Ahmad
Amr Yousef
Tagrid Abdullah N. Alshalali
Zaffar Ahmed Shaikh
author_facet Mohsin Akram
Muhammad Adnan
Syed Farooq Ali
Jameel Ahmad
Amr Yousef
Tagrid Abdullah N. Alshalali
Zaffar Ahmed Shaikh
author_sort Mohsin Akram
collection DOAJ
description Abstract Deep learning-based medical image analysis has shown strong potential in disease categorization, segmentation, detection, and even prediction. However, in high-stakes and complex domains like healthcare, the opaque nature of these models makes it challenging to trust predictions, particularly in uncertain cases. This sort of uncertainty can be crucial in medical image analysis; diabetic retinopathy is an example where even slight errors without an indication of confidence can have adverse impacts. Traditional deep learning models rely on single-point predictions, limiting their ability to provide uncertainty measures essential for robust clinical decision-making. To solve this issue, Bayesian approximation approaches have evolved and are gaining market traction. In this work, we implemented a transfer learning approach, building upon the DenseNet-121 convolutional neural network to detect diabetic retinopathy, followed by Bayesian extensions to the trained model. Bayesian approximation techniques, including Monte Carlo Dropout, Mean Field Variational Inference, and Deterministic Inference, were applied to represent the posterior predictive distribution, allowing us to evaluate uncertainty in model predictions. Our experiments on a combined dataset (APTOS 2019 + DDR) with pre-processed images showed that the Bayesian-augmented DenseNet-121 outperforms state-of-the-art models in test accuracy, achieving 97.68% for the Monte Carlo Dropout model, 94.23% for Mean Field Variational Inference, and 91.44% for the Deterministic model. We also measure how certain the predictions are, using an entropy and a standard deviation metric for each approach. We also evaluated the model using both AUC and accuracy scores at multiple data retention levels. In addition to overall performance boosts, these results highlight that Bayesian deep learning does not only improve classification accuracy in the detection of diabetic retinopathy but also reveals beneficial insights about how uncertainty estimation can help build more trustworthy clinical decision-making solutions.
format Article
id doaj-art-24092fb0b3064326a09fcf5253c30374
institution Kabale University
issn 2045-2322
language English
publishDate 2025-01-01
publisher Nature Portfolio
record_format Article
series Scientific Reports
spelling doaj-art-24092fb0b3064326a09fcf5253c303742025-01-12T12:16:53ZengNature PortfolioScientific Reports2045-23222025-01-0115112610.1038/s41598-024-84478-xUncertainty-aware diabetic retinopathy detection using deep learning enhanced by Bayesian approachesMohsin Akram0Muhammad Adnan1Syed Farooq Ali2Jameel Ahmad3Amr Yousef4Tagrid Abdullah N. Alshalali5Zaffar Ahmed Shaikh6Department of Computer Science, School of Systems and Technology, University of Management and TechnologyDepartment of Computer Science, School of Systems and Technology, University of Management and TechnologyDepartment of Computer Science, School of Systems and Technology, University of Management and TechnologyDepartment of Computer Science, School of Systems and Technology, University of Management and TechnologyElectrical Engineering Department, University of Business and TechnologyDepartment of Information Systems, College of Computer and Information Sciences, Princess Nourah bint Abdulrahman UniversityDepartment of Computer Science and Information Technology, Benazir Bhutto Shaheed University LyariAbstract Deep learning-based medical image analysis has shown strong potential in disease categorization, segmentation, detection, and even prediction. However, in high-stakes and complex domains like healthcare, the opaque nature of these models makes it challenging to trust predictions, particularly in uncertain cases. This sort of uncertainty can be crucial in medical image analysis; diabetic retinopathy is an example where even slight errors without an indication of confidence can have adverse impacts. Traditional deep learning models rely on single-point predictions, limiting their ability to provide uncertainty measures essential for robust clinical decision-making. To solve this issue, Bayesian approximation approaches have evolved and are gaining market traction. In this work, we implemented a transfer learning approach, building upon the DenseNet-121 convolutional neural network to detect diabetic retinopathy, followed by Bayesian extensions to the trained model. Bayesian approximation techniques, including Monte Carlo Dropout, Mean Field Variational Inference, and Deterministic Inference, were applied to represent the posterior predictive distribution, allowing us to evaluate uncertainty in model predictions. Our experiments on a combined dataset (APTOS 2019 + DDR) with pre-processed images showed that the Bayesian-augmented DenseNet-121 outperforms state-of-the-art models in test accuracy, achieving 97.68% for the Monte Carlo Dropout model, 94.23% for Mean Field Variational Inference, and 91.44% for the Deterministic model. We also measure how certain the predictions are, using an entropy and a standard deviation metric for each approach. We also evaluated the model using both AUC and accuracy scores at multiple data retention levels. In addition to overall performance boosts, these results highlight that Bayesian deep learning does not only improve classification accuracy in the detection of diabetic retinopathy but also reveals beneficial insights about how uncertainty estimation can help build more trustworthy clinical decision-making solutions.https://doi.org/10.1038/s41598-024-84478-x
spellingShingle Mohsin Akram
Muhammad Adnan
Syed Farooq Ali
Jameel Ahmad
Amr Yousef
Tagrid Abdullah N. Alshalali
Zaffar Ahmed Shaikh
Uncertainty-aware diabetic retinopathy detection using deep learning enhanced by Bayesian approaches
Scientific Reports
title Uncertainty-aware diabetic retinopathy detection using deep learning enhanced by Bayesian approaches
title_full Uncertainty-aware diabetic retinopathy detection using deep learning enhanced by Bayesian approaches
title_fullStr Uncertainty-aware diabetic retinopathy detection using deep learning enhanced by Bayesian approaches
title_full_unstemmed Uncertainty-aware diabetic retinopathy detection using deep learning enhanced by Bayesian approaches
title_short Uncertainty-aware diabetic retinopathy detection using deep learning enhanced by Bayesian approaches
title_sort uncertainty aware diabetic retinopathy detection using deep learning enhanced by bayesian approaches
url https://doi.org/10.1038/s41598-024-84478-x
work_keys_str_mv AT mohsinakram uncertaintyawarediabeticretinopathydetectionusingdeeplearningenhancedbybayesianapproaches
AT muhammadadnan uncertaintyawarediabeticretinopathydetectionusingdeeplearningenhancedbybayesianapproaches
AT syedfarooqali uncertaintyawarediabeticretinopathydetectionusingdeeplearningenhancedbybayesianapproaches
AT jameelahmad uncertaintyawarediabeticretinopathydetectionusingdeeplearningenhancedbybayesianapproaches
AT amryousef uncertaintyawarediabeticretinopathydetectionusingdeeplearningenhancedbybayesianapproaches
AT tagridabdullahnalshalali uncertaintyawarediabeticretinopathydetectionusingdeeplearningenhancedbybayesianapproaches
AT zaffarahmedshaikh uncertaintyawarediabeticretinopathydetectionusingdeeplearningenhancedbybayesianapproaches