Back To Projects

Diabetic Retinopathy Evaluation: A ViT Approach

Adi M.

This study explores the use of a Vision Transformer (ViT) model to classify diabetic retinopathy severity from fundus images, demonstrating promising accuracy through transfer learning and data augmentation techniques. While results fell short of state-of-the-art benchmarks, the model shows potential for improving early diagnosis through AI-driven medical imaging.


Diabetic Retinopathy (DR) is a complication of diabetes, which afflicts about 400 million people in today's world, that causes the blood vessels of the retina to swell and to leak fluids and blood. Early detection of DR can help manage it with lifestyle changes and medical interventions, preventing the need for costly treatments like laser or surgery, and providing a much better standard of life. This motivates the search for easier, affordable and accessible DR detection technology using the help of Artificial Intelligence given the huge number of potential patients. This paper investigates the application of a Vision Transformer (ViT) model for classifying diabetic retinopathy severity levels from fundus images, aiming to provide accurate predictions essential for early diagnosis and treatment. To optimize model performance, images were preprocessed to appropriate resolutions, and the dataset was divided into training, validation, and test sets. Data augmentation techniques, including geometric transformations and color adjustments, were employed to enhance data diversity and prevent overfitting. The ViT model was modified by freezing upper layers and adjusting the final fully connected layer to classify images across five severity levels, leveraging transfer learning for efficient fine-tuning. With a learning rate of 0.0002 and a batch size of 52, the model was trained with early stopping, achieving a validation accuracy of 75.96%, a loss of 0.58, a recall of 0.72, a precision of 0.700, and an F1-score of 0.675.These results demonstrate the model’s balanced performance, capturing most positive cases while maintaining reasonable precision. Yet, the results fell short of 90%+ accuracy obtained in [8] throughout our testing period and more analysis is necessary to assess. Future work will explore dynamic learning rate schedules and alternative batch sizes to further enhance model accuracy to reach the higher goal. This study highlights the Vision Transformer model’s potential for nuanced medical image classification tasks, contributing to advancements in automated diagnostic tools.

Explore More!

Source Code
Adi M.
Abdullah Rashed Ahmed

Related Projects

Predicting Drug-Drug Interaction Severity Using Network Characteristics

Drug-drug interactions (DDIs), which can add to or diminish the effect of one drug or impact the metabolism of one drug, have harmful effects on health in patients that take multiple drugs. Testing for DDIs is slow and costly, so computational models have recently been used to predict them. Network information is useful in describing a drug’s known interactions and mechanisms to determine whether two drugs could be interacting. This research explores various machine learning models to predict the severity of unknown interactions of existing drugs (major, minor, or moderate), using the DDInter database.
Deetya N.
Mentored by Linda Banh
workspace_premium
Using Machine Learning to Detect Alzheimer’s Disease in MRI Scans

We aimed to answer the question about if Magnetic Resonance Imaging (MRI) scans, which are often used in the diagnosing of other neurological disorders, can be used to diagnose AD in patients.
Sam L.
Mentored by Ivan Villa-Renteria
Brain Cancer Detection

Current methods for determining the presence and type of brain tumor in a given patient’s MRI scan can oftentimes be inefficient and are prone for error. By using a machine learning algorithm, the error in these classifications is reduced significantly, and the process is made much more efficient.
Rohan T.
Mentored by