Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Previously submitted to: JMIRx Med (no longer under consideration since May 22, 2025)

Date Submitted: Jan 13, 2025

Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.

Enhancing Early Diabetic Retinopathy Detection through Synthetic DR1 Image Generation: A StyleGAN3 Approach

  • Sagarnil Das; 
  • Pradeep Walia

Background:

Diabetic Retinopathy (DR) remains a leading cause of preventable blindness globally. The earliest stage, DR1, is marked by microaneurysms that are challenging to detect due to their small size, low contrast, and resemblance to other retinal structures. High-quality annotated datasets of DR1 images are scarce, limiting the performance of AI models in early detection. Advances in Generative Adversarial Networks (GANs), specifically StyleGAN3, offer a potential solution by generating synthetic images that closely mimic real DR1 fundus images. This study explores the utility of StyleGAN3-generated synthetic images in augmenting datasets to improve classifier performance in detecting early DR.

Objective:

To generate high-fidelity, diverse synthetic DR1 fundus images using StyleGAN3 and evaluate their effectiveness in augmenting training datasets for improved early detection of Diabetic Retinopathy.

Methods:

A dataset of 2,602 real DR1 images was compiled from publicly available and proprietary sources. Images were annotated by optometrists, preprocessed to 512×512 pixels, and augmented using flipping, rotation, scaling, and color adjustments. StyleGAN3 was trained from scratch with specific hyperparameters to optimize fidelity and diversity. Evaluation metrics included Fréchet Inception Distance (FID), Kernel Inception Distance (KID), and translation/rotation equivariance (EQ-T, EQ-R). Qualitative assessments involved Human Turing tests by ophthalmologists and spectral analysis using Fast Fourier Transform (FFT).

Results:

The model achieved a final FID score of 17.29, outperforming the bootstrap-resampled mean FID of 21.18 (95% CI: 20.83–21.56). The KID score was 0.018, and equivariance metrics (EQ-T: 65.65, EQ-R: 64.64) confirmed robustness under geometric transformations. In Human Turing tests, ophthalmologists correctly identified 89.5% of real images and misclassified 54% of synthetic images as real, indicating the high realism of synthetic images. Spectral analysis demonstrated fidelity in diagnostically relevant regions, though minor artifacts were noted near boundaries. Training a classifier with augmented datasets improved early DR detection accuracy by 8% compared to using real images alone.

Conclusions:

StyleGAN3-generated synthetic DR1 images closely replicate the visual and spectral properties of real fundus images, addressing the scarcity of annotated datasets. This approach improves classifier performance in detecting early DR and holds promise for broader applications in medical imaging. Future work will focus on expanding datasets and extending this methodology to higher DR stages and other medical domains.


 Citation

Please cite as:

Das S, Walia P

Enhancing Early Diabetic Retinopathy Detection through Synthetic DR1 Image Generation: A StyleGAN3 Approach

JMIR Preprints. 13/01/2025:71226

DOI: 10.2196/preprints.71226

URL: https://preprints.jmir.org/preprint/71226

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.