FairDomain: Achieving Fairness in Cross-Domain Medical Image Segmentation and Classification

Yu Tian, Congcong Wen, Min Shi, Muhammad Muneeb Afzal, Hao Huang, Muhammad Osama Khan, Yan Luo, Yi Fang, Mengyu Wang · DOI

Introduction

Medical AI models often struggle when deployed in environments different from their training data—a phenomenon known as domain shift. While the impact of domain shift on diagnostic accuracy is well-documented, its effect on algorithmic fairness has remained largely unexplored. A model that performs equitably on one type of scanner may exhibit significant demographic bias when applied to images from a different modality.

FairDomain presents the first systematic investigation into this intersection of domain adaptation and fairness. The researchers demonstrate that domain shifts frequently exacerbate performance disparities across racial, gender, and ethnic groups. To address this, they introduce the Fair Identity Attention (FIA) module and a comprehensive paired-modality dataset, Harvard-FairDomain20k.

Overview of the FairDomain framework, illustrating the transition between En-face and SLO fundus imaging domains and the associated demographic distributions.

The Harvard-FairDomain20k Dataset

A significant hurdle in studying fairness across domains is the presence of confounding variables. If the patient population changes between the source and target domains, it is difficult to determine if a drop in fairness is due to the imaging technology or the demographic shift itself.

To isolate the effect of the imaging modality, the authors curated the Harvard-FairDomain20k dataset. This unique resource contains 20,000 images from 10,000 subjects, featuring paired En-face and SLO fundus images for the same individuals. By maintaining a constant patient cohort across modalities, the researchers can definitively attribute changes in fairness to the domain shift. The dataset includes rich demographic metadata, covering age, gender, race, ethnicity, preferred language, and marital status, supporting both segmentation (optic cup and rim) and classification (glaucoma) tasks.

Methodology: Fair Identity Attention (FIA)

The core technical contribution is the Fair Identity Attention (FIA) module. Designed as a plug-and-play component for existing Domain Adaptation (DA) and Domain Generalization (DG) architectures, FIA integrates demographic information directly into the feature extraction process.

The architecture of the Fair Identity Attention (FIA) module, which utilizes demographic attributes to guide the self-attention mechanism.

The module employs a self-attention mechanism where demographic attributes are mapped onto query vectors. This allows the model to learn which features are most salient and robust for specific groups, ensuring that the learned representations are not only accurate but also equitable across different imaging modalities.

To evaluate these models, the authors utilize the Equity-Scaled Performance (ESP) metric. Unlike standard accuracy or Dice scores, ESP penalizes high variance in performance across demographic groups, incentivizing models that achieve a balance between overall efficacy and group-level fairness.

Key Insights and Results

The study's empirical findings confirm a troubling trend: without intervention, domain shifts significantly widen the fairness gap. For instance, in optic cup segmentation, the performance disparity based on race was found to nearly triple when moving from the source to the target domain.

Integrating the FIA module yielded substantial improvements:

  • Segmentation: In rim segmentation tasks, adding FIA to a state-of-the-art DAFormer model increased the Equity-Scaled Dice (ES-Dice) score from 0.344 to 0.528 for the gender attribute.
  • Classification: For glaucoma detection, FIA-enhanced models significantly improved diagnostic accuracy for minority groups, such as a 0.035 AUC boost for Hispanic patients compared to standard adaptation methods.
  • Consistency: The FIA module consistently outperformed baseline methods across all tested demographic categories, demonstrating its versatility in mitigating bias.

Conclusion and Future Directions

FairDomain highlights a critical vulnerability in medical AI: the fragility of algorithmic fairness under domain shift. By treating demographic identity as a guiding signal rather than a post-processing constraint, the FIA module provides a robust path toward more equitable clinical tools.

Future research will focus on extending this framework to other high-stakes modalities like MRI and CT scans. Additionally, the authors aim to develop methods for "latent" attribute discovery to maintain fairness in clinical settings where explicit demographic labels may be unavailable or restricted.

Summary updated

BibTeX
@inproceedings{tian2024fairdomain,
  author = {Yu Tian and Congcong Wen and Min Shi and Muhammad Muneeb Afzal and Hao Huang and Muhammad Osama Khan and Yan Luo and Yi Fang and Mengyu Wang},
  title = {{FairDomain: Achieving Fairness in Cross-Domain Medical Image Segmentation and Classification}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73116-7\_15},
}
Figure