RFormer: Transformer-Based Generative Adversarial Network for Real Fundus Image Restoration on a New Clinical Benchmark

Zhuo Deng, Yuanhao Cai, Lu Chen, Zheng Gong, Qiqi Bao, Xue Yao, Dong Fang, Wenming Yang, Shaochong Zhang, Lan MaIEEE JBHI 2022 · DOI · OpenReview

TL;DR

This paper introduces RFormer, a novel Transformer-based Generative Adversarial Network (GAN) designed to restore low-quality (LQ) real-world fundus images. To address the lack of suitable benchmarks, they also release "Real Fundus" (RF), a new dataset of 120 LQ/HQ fundus image pairs, demonstrating RFormer's superior performance over existing methods and its benefit to downstream clinical tasks.

What Problem Does This Paper Address?

Ophthalmologists rely heavily on fundus images for diagnosing eye diseases. However, the quality of these images can vary significantly due to differences in equipment, patient cooperation, and capturing techniques. Low-quality (LQ) fundus images, often characterized by blur, uneven illumination, or artifacts, can lead to misdiagnosis and hinder automated analysis. While synthetic degradation models exist, they fail to capture the nuances of real-world degradation. Crucially, there's a lack of a dedicated clinical benchmark for evaluating fundus image restoration methods on real-world degraded images, making it difficult to assess their true clinical utility.

Methods

The core of this work is the RFormer, a Transformer-based GAN. Its generator employs a U-shaped architecture with a novel Window-based Self-Attention Block (WSAB). WSABs are designed to efficiently capture long-range dependencies and non-local self-similarities within image features, a key advantage over traditional CNNs. The discriminator is also Transformer-based, aiming to better distinguish restored images from real high-quality (HQ) ones. The training objective is a weighted sum of four loss functions: Charbonnier loss for pixel-wise accuracy, a custom Fundus Quality Perception Loss (FQPLoss) to capture fundus-specific features, adversarial loss for realism, and edge loss for preserving fine details.

Datasets

The paper introduces the Real Fundus (RF) dataset, a new benchmark consisting of 120 LQ and HQ fundus image pairs. These images were captured using a ZEISS VISUCAM200 camera and represent real-world degradations encountered in clinical practice, including blur, artifacts, and uneven illumination. The dataset was curated by manually selecting pairs from the same eye and calibrating them for spatial alignment and cropping. For comparison, they also utilize synthetic degradation models to highlight the domain gap between synthetic and real data.

Key Insights and Ideas

  • The "Real" Degradation Gap: Artificially generated LQ fundus images, while useful for some tasks, fundamentally differ from real clinical degradations. Models trained solely on synthetic data perform poorly when applied to real-world LQ fundus images, underscoring the need for realistic benchmarks.
  • Transformer for Fundus Restoration: Leveraging the power of Transformers, specifically their ability to model long-range dependencies via self-attention, is a promising direction for improving fundus image restoration. The proposed WSAB makes this computationally feasible.
  • Domain-Specific Perception Loss: A custom FQPLoss, trained on a fundus image quality dataset, helps the model learn to restore images in a way that is perceptually relevant to ophthalmologists, going beyond simple pixel-wise metrics.
  • Transformer Discriminator Advantage: A Transformer-based discriminator, unlike its CNN counterparts, is shown to be more effective at recovering detailed contents and preserving anatomical structures in the restored fundus images.

Key Results

RFormer achieved state-of-the-art performance on the newly established Real Fundus (RF) dataset, outperforming seven other SOTA methods. For instance, it achieved a PSNR of 28.32 dB and an SSIM of 0.873, showing significant improvements over methods like RealSR and ESRGAN. Qualitative results demonstrate RFormer's ability to restore finer details and structural integrity compared to other methods, which often produced overly smooth results or introduced artifacts. Furthermore, using RFormer as a pre-processing step significantly improved the performance of downstream tasks like vessel segmentation and optic disc/cup detection. A user study with ophthalmologists also ranked RFormer's restored images highest in quality.

Limitations and Future Work

The authors acknowledge that RFormer still has limitations, particularly in handling very bright spots and enhancing extremely low-light regions where contrast is insufficient. They plan to address these issues in future work. The paper also highlights the ongoing challenge of data scarcity for real-world fundus image restoration, which their RF dataset aims to mitigate. Future work could involve expanding the RF dataset and exploring more advanced Transformer architectures for even better restoration performance.

Summary updated

Abstract

Ophthalmologists have used fundus images to screen and diagnose eye diseases. However, different equipments and ophthalmologists pose large variations to the quality of fundus images. Low-quality (LQ) degraded fundus images easily lead to uncertainty in clinical screening and generally increase the risk of misdiagnosis. Thus, real fundus image restoration is worth studying. Unfortunately, real clinical benchmark has not been explored for this task so far. In this paper, we investigate the real clinical fundus image restoration problem. Firstly, We establish a clinical dataset, Real Fundus (RF), including 120 low- and high-quality (HQ) image pairs. Then we propose a novel Transformer-based Generative Adversarial Network (RFormer) to restore the real degradation of clinical fundus images. The key component in our network is the Window-based Self-Attention Block (WSAB) which captures non-local self-similarity and long-range dependencies. To produce more visually pleasant results, a Transformer-based discriminator is introduced. Extensive experiments on our clinical benchmark show that the proposed RFormer significantly outperforms the state-of-the-art (SOTA) methods. In addition, experiments of downstream tasks such as vessel segmentation and optic disc/cup detection demonstrate that our proposed RFormer benefits clinical fundus image analysis and applications.
BibTeX
@article{deng2022rformer,
  author = {Zhuo Deng and Yuanhao Cai and Lu Chen and Zheng Gong and Qiqi Bao and Xue Yao and Dong Fang and Wenming Yang and Shaochong Zhang and Lan Ma},
  title = {{RFormer: Transformer-Based Generative Adversarial Network for Real Fundus Image Restoration on a New Clinical Benchmark}},
  journal = {IEEE J. Biomed. Health Informatics},
  year = {2022},
  doi = {10.1109/jbhi.2022.3187103},
}
Figure