Investigation of Federated Learning Algorithms for Retinal Optical Coherence Tomography Image Classification with Statistical Heterogeneity

Sanskar Amgain, Prashant Shrestha, Sophia Bano, Ignacio del Valle Torres, Michael Cunniffe, Victor Hernandez, Phil Beales, Binod BhattaraiarXiv 2024

TL;DR

This paper investigates how Federated Learning (FL) performs when training retinal disease classifiers on decentralized, "messy" medical data. The authors demonstrate that while data heterogeneity across different clinics significantly degrades performance, the FedProx algorithm proves more robust than the standard FedAvg, offering a viable path for privacy-preserving AI in ophthalmology.

What Problem Does This Paper Address?

Optical Coherence Tomography (OCT) is a cornerstone of modern ophthalmology, but training high-performing AI models for OCT classification typically requires massive, centralized datasets. In the medical world, centralizing data is a logistical and ethical minefield due to patient privacy concerns.

Federated Learning (FL) offers a solution by allowing models to be trained locally at different institutions—sharing only model weights rather than raw images. However, real-world medical data is rarely "Identically and Independently Distributed" (IID). One clinic might specialize in rare pathologies, while another sees mostly healthy patients. This statistical heterogeneity (or Non-IID data) often causes standard FL algorithms to diverge or perform poorly. This paper specifically explores how FL handles scenarios where clients lack certain disease categories entirely.

Methods

The researchers compared two primary FL algorithms:

  1. FedAvg (Federated Averaging): The baseline FL approach where local models are trained on client data and their weights are averaged by a central server.
  2. FedProx: An extension of FedAvg that adds a "proximal term" to the local objective function. This term penalizes local updates that stray too far from the global model, effectively tethering local training to the global consensus to prevent divergence caused by heterogeneous data.

The training process is illustrated in the figure below:

Fig. 1: Illustration of FedAvg and FedProx training process. In each communication round, a subset of clients trained locally on their respective data splits with objective Lmethod are selected for aggregation and used to update the global model. The updated global model parameters, wg are copied back to all the clients.

For the model architecture, they used a ResNet18 encoder pretrained on ImageNet. To simulate a realistic resource-constrained scenario, they froze the backbone and only fine-tuned the classification head.

Datasets

The study utilized a publicly available OCT dataset from Kermany et al., containing 84,484 images across four categories:

  • CNV (Choroidal Neovascularization)
  • DME (Diabetic Macular Edema)
  • DRUSEN
  • NORMAL

To test the limits of FL, they partitioned this data into 10 clients under two settings:

  • IID: Data is randomly and evenly distributed.
  • Non-IID (Sharding): Data is grouped by labels and assigned to clients such that each client only sees 2 or 3 of the 4 possible categories (referred to as 2SPC and 3SPC).
Fig. 2: (a) Label distribution of 4 randomly selected clients for IID and 2 SPC Non- IID settings. For the IID setting, the distribution of labels across clients is similar, while for 2 SPC, every client has multiple missing labels and distinct distributions (b) Image samples from the dataset

Key Insights and Ideas

  • The "Tethering" Effect: The core "aha" moment is the effectiveness of FedProx's proximal term. By forcing local models to stay somewhat similar to the global model, it prevents a client that only sees "Normal" scans from drastically overwriting the features needed to recognize "CNV" or "DME."
  • IID is Easy, Non-IID is the Real Test: Under perfect IID conditions, FL performs almost identically to centralized training. The performance gap only appears when we simulate the "siloed" nature of real medical institutions.
  • Scaling Challenges: Unlike previous studies that used only 3-4 clients, this work uses 10 clients with 50% participation per round, highlighting that as the network grows, the impact of label distribution skew becomes more pronounced.

Key Results

The experiments showed a clear hierarchy in performance based on data distribution:

Method IID Accuracy 2SPC (High Heterogeneity) 3SPC (Moderate Heterogeneity)
Centralized Baseline 98.93% - -
FedAvg 98.93 ± 0.05% 87.22 ± 5.97% 88.32 ± 2.30%
FedProx 98.80 ± 0.10% 90.57 ± 3.09% 91.01 ± 2.51%

While both algorithms saw a performance drop in Non-IID settings, FedProx consistently outperformed FedAvg by ~3% and showed lower standard deviation, indicating it is more stable when faced with missing labels.

Limitations and Future Work

The authors acknowledge that even with FedProx, there is a significant performance gap between IID and Non-IID settings (a drop from ~98% to ~90%). This suggests that simple weight averaging and proximal penalties may not be enough for highly skewed medical datasets.

Future directions include: * Investigating more sophisticated FL algorithms designed for extreme heterogeneity. * Moving beyond label shifts to address "domain shifts" (e.g., different clinics using different OCT hardware). * Exploring how these models handle dynamic, evolving datasets where new data is added to clients over time.

Summary updated

BibTeX
@misc{amgain2024investigation,
  author = {Sanskar Amgain and Prashant Shrestha and Sophia Bano and Ignacio del Valle Torres and Michael Cunniffe and Victor Hernandez and Phil Beales and Binod Bhattarai},
  title = {{Investigation of Federated Learning Algorithms for Retinal Optical Coherence Tomography Image Classification with Statistical Heterogeneity}},
  year = {2024},
  eprint = {2402.10035},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.10035},
}
Figure