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