DR-GAN: Conditional Generative Adversarial Network for Fine-Grained Lesion Synthesis on Diabetic Retinopathy Images

Yi Zhou, Boyang Wang, Xiaodong He, Shanshan Cui, Ling Shao · DOI

TL;DR

DR-GAN is a conditional generative adversarial network designed to synthesize high-resolution (1280x1280) fundus images with controllable diabetic retinopathy (DR) severity and lesion placement. By generating diverse, realistic training data for rare, severe stages of the disease, the authors significantly improve the performance and generalizability of automated DR grading models.

What Problem Does This Paper Address?

Diabetic Retinopathy (DR) is a leading cause of vision loss, and while deep learning models show promise in automated diagnosis, they face a massive "data imbalance" hurdle. In major datasets like EyePACS, over 73% of images are normal, while the most severe stages (Grades 3 and 4) account for less than 5% combined.

Standard data augmentation—like flipping or rotating images—doesn't add the pathological diversity needed for a model to truly learn the nuances of severe disease. Furthermore, medical images require high resolution because critical lesions, such as microaneurysms, are tiny. Previous generative models often produced blurry results or lacked the ability to control specific disease features.

Methods

The authors propose DR-GAN, a two-stage conditional GAN architecture:

  1. Retina Generator ($G_m$ and $G_l$): The model uses a coarse-to-fine approach. $G_m$ generates a 640x640 image focusing on global structure, while $G_l$ refines this into a 1280x1280 image to capture local details.
  2. Conditioning: The generator is fed structural masks (vessels, optic disk) and lesion masks (hemorrhages, exudates, etc.). This allows researchers to "paint" lesions onto a fundus structure to create specific disease states.
  3. Adaptive Grading Manipulation (AGM): This is a key innovation. The authors pre-train a ResNet-50 to learn a latent space for each DR grade. During synthesis, they sample a "grading vector" from these spaces and use Adaptive Instance Normalization (AdaIN) to inject this information into the generator, controlling the overall severity and style (see Figure 1).
  4. Multi-Scale Spatial and Channel Attention (SCA): To ensure tiny lesions aren't lost, the authors integrated an SCA module (Figure 2) that helps the network focus on important spatial regions and relevant feature channels.
  5. Multi-Scale Discriminators: Three discriminators operate at different resolutions to ensure the synthesized images look realistic both globally (overall structure) and locally (fine textures).
The DR-GAN pipeline, showing the generator stages, the adaptive grading manipulation, and the multi-scale discriminators.

Datasets

  • EyePACS (via Kaggle): The primary large-scale dataset (88,000+ images) used for training the GAN and evaluating grading performance.
  • FGADR: A newer dataset providing fine-grained pixel-level annotations for lesions. This was crucial for training the segmentation models that produce the masks used as inputs for DR-GAN (see Figure 3).
  • DRIVE & IDRID: Smaller datasets used for initial training of vessel and lesion segmentation models.

Key Insights and Ideas

  • Controllable Pathology: Unlike standard GANs that generate random images, DR-GAN allows for precise manipulation. You can take a healthy eye's vessel structure and "add" Grade 4 lesions to see how it would look, providing a powerful tool for data augmentation.
  • Latent Space Sampling for Diversity: By sampling from a learned latent grading space rather than just using a one-hot label, the model introduces natural variations in illumination and color tone, which helps the final grading model become more robust.
  • Attention Matters: The addition of the SCA module was vital for synthesizing high-fidelity "fine-grained" details like microaneurysms, which are often just a few pixels wide but clinically critical.
Comparison of synthesized images across different DR grades (0-4) for the same underlying vessel structure.

Key Results

  • High Fidelity: In a "Turing test" with three professional ophthalmologists, the experts could only correctly identify real vs. fake images 65.8% of the time (where 50% is a random guess). The synthesized images received a mean "realness" score of 7.97/10.
  • Improved Grading: Adding 50,000 synthesized images to the EyePACS training set improved the classification accuracy of a ResNet-50 model from 86.24% to 88.06% and increased the quadratic weighted kappa from 83.82 to 85.90.
  • Generalization: The model trained with DR-GAN augmentation performed better on the completely independent FGADR dataset, proving that the synthesized data helps models learn generalizable features rather than just memorizing the training set.

Limitations and Future Work

Despite the success, the authors noted a few failure cases (Figure 6):

  • Input Quality: If the input masks (vessels/lesions) are poor or blurred, the synthesized image will be too.
  • Missing Features: The current model does not yet synthesize complex features like IRMA (intra-retinal microvascular abnormalities) or neovascularization due to a lack of sufficient training samples for those specific lesions.
  • Fovea Realism: Occasionally, the fovea region looks unrealistic because the model lacks a specific fovea mask during training.

Future work will focus on incorporating more real pixel-level annotated masks to further refine the synthesis of complex vascular abnormalities.

Summary updated

BibTeX
@article{zhou2019dr,
  author = {Yi Zhou and Boyang Wang and Xiaodong He and Shanshan Cui and Ling Shao},
  title = {{DR-GAN: Conditional Generative Adversarial Network for Fine-Grained Lesion Synthesis on Diabetic Retinopathy Images}},
  journal = {IEEE J. Biomed. Health Informatics},
  year = {2019},
  doi = {10.1109/jbhi.2020.3045475},
}
Figure