Using CycleGANs for effectively reducing image variability across OCT devices and improving retinal fluid segmentation
Philipp Seeb\"ock, David Romo-Bucheli, Sebastian Waldstein, Hrvoje, Bogunovi\'c, Jos\'e Ignacio Orlando, Bianca S. Gerendas, Georg Langs, Ursula, Schmidt-Erfurth

TL;DR
This paper demonstrates that CycleGANs can effectively reduce variability between OCT devices, enhancing retinal fluid segmentation accuracy across different imaging sources.
Contribution
It introduces a CycleGAN-based method to minimize OCT device variability, improving segmentation performance without requiring paired training data.
Findings
CycleGAN reduces OCT device variability effectively.
Improved segmentation accuracy with F1 score gains.
Outperforms traditional image transformation methods.
Abstract
Optical coherence tomography (OCT) has become the most important imaging modality in ophthalmology. A substantial amount of research has recently been devoted to the development of machine learning (ML) models for the identification and quantification of pathological features in OCT images. Among the several sources of variability the ML models have to deal with, a major factor is the acquisition device, which can limit the ML model's generalizability. In this paper, we propose to reduce the image variability across different OCT devices (Spectralis and Cirrus) by using CycleGAN, an unsupervised unpaired image transformation algorithm. The usefulness of this approach is evaluated in the setting of retinal fluid segmentation, namely intraretinal cystoid fluid (IRC) and subretinal fluid (SRF). First, we train a segmentation model on images acquired with a source OCT device. Then we…
| Transformation | IRC | SRF | ||||
|---|---|---|---|---|---|---|
| Pr | Rec | F1 | Pr | Rec | F1 | |
| None | 0.73 | 0.01 | 0.01 | 0.39 | 0.01 | 0.01 |
| 0.73 | 0.11 | 0.19 | 0.38 | 0.23 | 0.29 | |
| 0.16 | 0.27 | 0.20 | 0.44 | 0.38 | 0.40 | |
| CGAN-64 | 0.25 | 0.18 | 0.21 | 0.18 | 0.17 | 0.17 |
| CGAN-128 | 0.39 | 0.27 | 0.31 | 0.49 | 0.35 | 0.41 |
| CGAN-256 | 0.27 | 0.38 | 0.31 | 0.44 | 0.47 | 0.45 |
| CGAN-460 | 0.60 | 0.30 | 0.40 | 0.60 | 0.45 | 0.52 |
| *Cirrus-on-Cirrus | 0.57 | 0.64 | 0.58 | 0.83 | 0.43 | 0.57 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsBatch Normalization · Residual Connection · PatchGAN · *Communicated@Fast*How Do I Communicate to Expedia? · Tanh Activation · Residual Block · Instance Normalization · Convolution · HuMan(Expedia)||How do I get a human at Expedia? · Sigmoid Activation
Using CycleGANs for effectively reducing image variability across OCT devices and improving retinal fluid segmentation
Abstract
Optical coherence tomography (OCT) has become the most important imaging modality in ophthalmology. A substantial amount of research has recently been devoted to the development of machine learning (ML) models for the identification and quantification of pathological features in OCT images. Among the several sources of variability the ML models have to deal with, a major factor is the acquisition device, which can limit the ML model’s generalizability. In this paper, we propose to reduce the image variability across different OCT devices (Spectralis and Cirrus) by using CycleGAN, an unsupervised unpaired image transformation algorithm. The usefulness of this approach is evaluated in the setting of retinal fluid segmentation, namely intraretinal cystoid fluid (IRC) and subretinal fluid (SRF). First, we train a segmentation model on images acquired with a source OCT device. Then we evaluate the model on (1) source, (2) target and (3) transformed versions of the target OCT images. The presented transformation strategy shows an score of () for IRC (SRF) segmentations. Compared with traditional transformation approaches, this means an score gain of ().
**Index Terms— ** covariate shift, optical coherence tomography, generative adversarial networks, image segmentation
1 INTRODUCTION
Automated methods are being developed for medical image analysis to solve clinical tasks, such as segmentation of anatomical structures or classification of normal/pathological cases. In the last decade, machine learning (ML) techniques have been showing an increasing ability to solve these problems. In particular, deep neural networks (DNN) have obtained impressive results in several medical imaging tasks [1]. Nevertheless, these models can still under-perform in “deployment” datasets. One important factor explaining the difference in the performance of ML models is covariate shift [2]. Covariate shift is a phenomenon observed “when the data is generated according to a model and where the distribution changes between training and test scenarios”[2].
Among the different medical imaging modalities, optical coherence tomography (OCT) provides high-resolution 3D volumes of the retina, is non-invasive and the most important diagnostic modality in ophthalmology. A single OCT volume is composed of multiple cross-sectional images known as B-scans. Current treatment and diagnosis guidelines rely on the examination of these B-scans to inform clinical decisions [3]. Several machine learning techniques have recently been proposed help identify and quantify retinal pathological features[4]. Unfortunately, ML models are often susceptible to covariate shift when training on data from a specific vendor, meaning that differences in the intensity distribution, resolution and noise level can affect the generalization ability of the model. For instance, significant differences between OCT acquisition devices in retinal fluid segmentation performance [5] or automated layer thickness measurements [6] have been reported. A common strategy to deal with image variability across multiple devices is training vendor-specific models. For instance, De Fauw *et al. * [7] proposed a two-stage deep learning approach for diagnosis and referral in retinal disease, using scans from two OCT vendors. Time-consuming manual annotations are needed for each vendor to successfully (re-)train the segmentation model and hence achieve device independence. In contrast, our approach does not require additional manual annotations.
In this work, we present a strategy based on CycleGANs [8] to reduce the covariate shift between different OCT acquisition devices, and consequently to improve the robustness of ML fluid segmentation models.
2 MATERIALS
The OCT volumes used in this work were either acquired using Spectralis OCT instruments (Heidelberg Engineering, GER) with voxel dimensions of , or Cirrus HD-OCT (Carl Zeiss Meditec, Dublin, CA, USA) with voxel dimensions of or . For both instruments, the volumes were centered at the fovea of the retina and covered a physical volume of approximately . Besides different voxel resolutions within B-scans, Spectralis OCT volumes contain a lower number of B-scans () than Cirrus (). At the same time, due to B-scan averaging performed by Spectralis devices111The Spectralis OCT scans with B-scans are usually acquired with a default of averaged frames per B-scan., which is not conducted in Cirrus, the signal-to-noise ratio (SNR) in Spectralis OCTs is usually better and retinal structures are easier to identify both for human observers and automated methods [9, 5]. All Cirrus OCTs are resampled to obtain a volume using nearest-neighbor interpolation. A visual comparison between a Cirrus and Spectralis B-scan is presented in Figure 1.
2.1 Retinal cross-domain dataset
A total set of OCT volumes ( B-scans after resampling Cirrus OCTs) comprised the retinal cross-domain dataset. From these, () OCT volumes were acquired with a Spectralis (Cirrus) device. Each Spectralis (Cirrus) OCT volume was associated with a retinal disease: () retinas with age-related macular degeneration (AMD), () with retinal vein occlusion (RVO) and () with diabetic macular edema (DME).
2.2 Retinal fluid-segmentation dataset
The retinal fluid-segmentation dataset consisted of OCT volumes with a total of B-scans (66 Heidelberg Spectralis and 162 Zeiss Cirrus volumes). The Spectralis (Cirrus) set contained pathological retinas with AMD and with RVO. Manual pixel-wise annotations of the existing two different retinal types of fluid, intraretinal cystoid fluid (IRC) and subretinal fluid (SRF), were used for all 228 volumes, as shown in the far right panel of Figure 1. The annotation was performed by experienced graders of the Vienna Reading Center, supervised by retinal expert ophthalmologists following a standardized annotation protocol.
3 METHODS
In this section we present the components used in our experiments. Traditional and unpaired image transformation algorithms were used to transform images. The segmentation model was used to evaluate the effectiveness of transformations.
3.1 Baseline transformation algorithms
Many image preprocessing techniques are used to enhance and reduce the variability in OCT images. In this work, we followed the pre-processing pipeline in [10] to define two suitable transformations from Cirrus to Spectralis OCT volumes. The first transformation strategy () uses an initial median filtering operation (with kernel size) followed by a second median filtering operation across B-scans, with a kernel size. The second transformation () performs an initial histogram matching step using a random Spectralis OCT volume as a template and subsequently, the same filtering operations as described for are applied.
3.2 Unsupervised unpaired transformation algorithm
Cycle generative adversarial networks (CycleGANs) allow a suitable transformation function between different image domains to be discovered in an unsupervised way[8]. The CycleGAN uses two discriminator-generator pairs (-, -) which are implemented as deep neural networks. is fed with an image from the source domain and transforms it into the target domain. Then, transforms the image back from the target to the source domain. () is trained to distinguish between real samples from the target (source) domain and the transformed images. Additionally, the cycle consistency and the identity loss [8] are used as regularizers to avoid trivial solutions and obtain a meaningful mapping.
3.3 Segmentation model
In this work, we performed the segmentation task in 2D, B-scan wise. Given an OCT B-scan and a corresponding target label map , the segmentation model aims at finding the function . The U-Net [11] was used as the segmentation model, which is composed of an encoding and a decoding part. The encoder consists of convolution blocks followed by max-pooling layers, which contracts the input and uses the context for segmentation. The decoder counterpart performs up-sampling operations followed by convolution blocks to enable precise localization.
4 EXPERIMENTAL SETUP
In our experiments we evaluated if the image transformation algorithms improved the generalization ability of a trained model on a new unseen domain.
4.1 Unsupervised image transformation details
For the unsupervised unpaired image transformation task, the CycleGAN models were trained by using the cross-domain dataset (Section 2.1). For each vendor, the data was randomly split into training () and validation sets (), with no patient overlap between these two sets.
Four different CycleGAN models were trained with image patches cropped within B-scans in sizes of , , , and . For each configuration, the models were trained for epochs with a batch size of . The generator and discriminator were stored at the end of each epoch. A model selection procedure found the best performing model out of to compensate for the instability of the adversarial loss during training. To select one generator model, we used the pool of generators to create transformed validation sets. For each transformed set, we applied all discriminators and used the maximum adversarial loss as the selection score. The model with the lowest selection score was chosen. This resulted in four pairs of generator models (Cirrus-to-Spectralis, Spectralis-to-Cirrus), one for each patch size configuration (CGAN-64, CGAN-128, CGAN-256, CGAN-460).
4.2 Segmentation model details
Following the original U-Net architecture, we used five levels of depth, the number of channels going down from in the first to in the bottleneck layer. Each convolutional block consisted of two convolutions, each followed by a batch-normalization layer and a rectified linear unit (ReLU). While max-pooling was used for downsampling, upsampling was performed using nearest-neighbor interpolation.
We used the negative log-likelihood loss in all our segmentation experiments. Kaiming initialization [12], Adam optimization [13], and a learning rate of which was decreased by half every epochs were used. We trained our networks for epochs and selected the model with the best average -score on the validation set. We used a random separation of training (), validation () and test set () on patient-distinct basis for all experiments.
4.3 Model generalization to a different domain
The good SNR of Spectralis OCT volumes (described in Section 2) facilitates the manual annotation of retinal structures. Hence, a typical use-case of the presented strategy would be to collect manual annotations and train a segmentation model on Spectralis scans but apply the model both on Spectralis and transformed Cirrus scans. Accordingly, this experiment involved training the segmentation model on a source dataset (Spectralis) and evaluating it on a target dataset (Cirrus). We applied common transformation techniques (Section 3.1) as well as CycleGAN transformations (Section 3.2) to convert OCTs from the Cirrus into the Spectralis domain. The underlying assumption is that a higher segmentation performance indicates a more effective transformation. We used a segmentation model, trained on the target domain, as an upper bound for our performance.
5 RESULTS
The transformation algorithms were used to generate different versions of the target dataset (Cirrus). Qualitative results are illustrated in Figure 2. Initial evaluation of the Spectralis segmentation model on the Spectralis test set yields a precision, recall and -score for the IRC (SRF) of (), (), (). The quantitative results of the Spectralis model on the Cirrus test set, comparing different transformation strategies, as well as results of the Cirrus model (*Cirrus-on-Cirrus) are shown in Table 1.
A few insights can be extracted from Table 1. First, the Spectralis DL segmentation model performance drops dramatically when directly applied on the Cirrus target dataset. The effect of the covariate shift in the model is evident. Secondly, the histogram-based combined with the filtering operations in perform better than no transformation at all. Thirdly, the best cross-vendor segmentation performance is obtained with a CycleGAN-based transformation strategy (trained with a patch size). The performance was certainly lower than those observed in Spectralis B-scans, but was closer to the performance a Cirrus model would obtain on the Cirrus B-scans. More precisely, while a direct application of the segmentation model on non-transformed data yields a -score close to [math], the CGAN- approach yielded a () -score for IRC (SRF) segmentations. With respect to the best traditional transformation technique, a () -score gain was observed.
6 CONCLUSIONS
We present a CycleGAN-based strategy to reduce the image variability across OCT acquisition devices. The results show that the transformation algorithm improves the performance of a fluid segmentation model on a target dataset, thus effectively reducing the covariate shift (i.e difference between the target and source datasets). This finding is relevant as automated fluid segmentation could potentially be part of routine diagnostic workflows and affect therapy of millions of patients. In this scenario, the presented approach would reduce device dependency of ML algorithms and therefore allow more clinicians to use them on their specific OCT device. Recently, it has been shown that the CycleGAN algorithm could induce misleading diagnosis in medical images, and hence the transformed images are not recommended for direct visualization and interpretation by a clinician [14]. This is prominent when the distribution of pathologies differs between the two domain sets. We carefully selected OCTs from the two devices, containing similar distribution of pathological and healthy retina. Therefore, we expect most of the difference to arise from image intensity properties and the SNR of the devices. Furthermore, in this work we use CycleGAN only as a pre-processing step for facilitating automated segmentation. Future work will be focused on evaluating the presented strategy in other ML tasks.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Geert Litjens, Thijs Kooi, Babak Ehteshami Bejnordi, et al., “A survey on deep learning in medical image analysis,” MED IMAGE ANAL , vol. 42, pp. 60–88, 2017.
- 2[2] Amos J. Storkey, Dataset Shift in Machine Learning , chapter When training and test sets are different: characterising learning transfer, pp. 3–28, The MIT Press, 2009.
- 3[3] James Fujimoto and Eric Swanson, “The development, commercialization, and impact of optical coherence tomography,” INVEST OPHTH VIS SCI , vol. 57, no. 9, pp. OCT 1–OCT 13, 2016.
- 4[4] Ursula Schmidt-Erfurth, Amir Sadeghipour, Bianca S. Gerendas, et al., “Artificial intelligence in retina,” PROG RETIN EYE RES , 2018.
- 5[5] Thomas Schlegl, Sebastian M. Waldstein, Hrvoje Bogunovic, et al., “Fully automated detection and quantification of macular fluid in oct using deep learning,” Ophthalmology , vol. 125, no. 4, pp. 549 – 558, 2018.
- 6[6] Louise Terry, Nicola Cassels, Kelly Lu, et al., “Automated retinal layer segmentation using spectral domain optical coherence tomography: evaluation of inter-session repeatability and agreement between devices,” Plo S one , vol. 11, no. 9, pp. e 0162001, 2016.
- 7[7] Jeffrey De Fauw, Joseph R Ledsam, Romera-Paredes, et al., “Clinically applicable deep learning for diagnosis and referral in retinal disease,” NATURE MED , vol. 24, no. 9, pp. 1342–1350, 2018.
- 8[8] J. Zhu, T. Park, P. Isola, et al., “Unpaired image-to-image translation using cycle-consistent adversarial networks,” in Proc. of IEEE ICCV , 2017, pp. 2242–2251.
