Federated attention consistent learning models for prostate cancer diagnosis and Gleason grading

Fei Kong, Xiyue Wang, Jinxi Xiang, Sen Yang, Xinran Wang, Meng Yue, Jun Zhang, Junhan Zhao, Xiao Han, Yuhan Dong, Biyue Zhu, Fang Wang, Yueping Liu

This paper introduces Federated Attention Consistent Learning (FACL), a novel framework designed to train high-performing AI models for prostate cancer diagnosis and Gleason grading across multiple medical centers without ever sharing sensitive patient data. By enforcing "attention consistency" between local hospital models and a central server model, the researchers achieved state-of-the-art diagnostic accuracy on a massive dataset of nearly 20,000 whole-slide images, even when faced with significant data heterogeneity between sites.

TL;DR

FACL uses federated learning and an attention-consistency mechanism to collaboratively train pathology models across hospitals while preserving privacy. It achieves an impressive AUC of 0.9718 for cancer diagnosis, outperforming individual centers and standard federated methods by aligning what the models "look at" across different datasets.

What Problem Does This Paper Address?

Training deep learning models for digital pathology requires enormous amounts of data. However, medical data is often siloed in different institutions due to strict privacy regulations (like HIPAA or GDPR) and the sheer technical challenge of moving gigapixel-sized Whole-Slide Images (WSIs).

While Federated Learning (FL) allows models to be trained locally at each hospital and then aggregated at a central server, it struggles with data heterogeneity. Different hospitals use different scanners, staining protocols, and patient populations, leading to "non-IID" (non-identically and independently distributed) data. This often causes local models to diverge, resulting in a global model that generalizes poorly. The authors specifically tackle how to make FL robust for the complex, large-scale images used in prostate cancer grading.

Methods

The FACL framework builds on Attention-based Multiple Instance Learning (AbMIL). In this setup, a gigapixel image is broken into thousands of small patches. An attention mechanism assigns weights to these patches, identifying which ones are most relevant for a diagnosis (e.g., containing cancerous cells).

The core innovations of FACL are:

  1. Attention Consistency: During training, the central server model acts as a "teacher." Each local client model is forced to align its attention distribution with a replica of the server model. This is achieved by adding a Kullback-Leibler (KL) divergence term to the loss function, ensuring that local models learn to "look" at the same diagnostic features that the global model deems important.
  2. Differential Privacy: To prevent "membership inference attacks" (where someone might deduce private data from model weights), the authors incorporate a noise generator ($N_g$) that adds Gaussian noise to the parameters before they are sent to the server.
  3. Feature Extraction Pipeline: The system uses CTransPath, a Swin Transformer-based encoder pre-trained on diverse histopathology datasets, to convert raw image patches into compact feature vectors, making the federated process computationally efficient.
Framework of feature extraction and model training process for the FACL model

Datasets

The study utilized a massive collection of 19,461 WSIs from multiple sources:

  • Private Hospital Data: Three centers in China (Hebei-1, Hebei-2, and Nanchang).
  • Public Benchmarks: The PANDA and DiagSet-B datasets.
  • External Validation: The QHD dataset (765 images) and DiagSet-A (430 images) were used to test the model's ability to generalize to entirely new institutions.

This scale is significantly larger than many previous FL studies in pathology, which often rely on smaller, single-source public datasets (see Table 1 in the paper for a comparison).

Table 1: Comparison of FL studies and datasets

Key Insights and Ideas

  • Attention as a Universal Language: The most striking "aha moment" is that aligning attention maps is more effective for pathology than just averaging model weights. Because pathology features (like gland structure) are visually distinct, forcing models to agree on where the cancer is helps overcome the "noise" introduced by different staining styles at different hospitals.
  • The Power of Collective Wisdom: The server model, by aggregating updates from diverse centers, develops a more generalized view of what cancer looks like. By redistributing this knowledge back to clients via the consistency constraint, local models become less prone to overfitting their specific site's quirks.
  • Balancing Privacy and Utility: The authors found that a noise factor of $z=0.1$ for differential privacy provided a robust safeguard without significantly degrading the model's diagnostic performance.

Key Results

FACL consistently outperformed both individual center training and the standard FedAvg algorithm:

  • Diagnosis (Binary): FACL achieved an AUC of 0.9718, significantly higher than the average AUC of 0.9499 achieved by individual centers.
  • Gleason Grading (6-class): The model attained a Kappa score of 0.8463, surpassing the average center performance of 0.7379.
  • Interpretability: Visualization via heatmaps confirmed that the model accurately identifies cancerous regions, providing a "reasoning" path that pathologists can verify.
Visualization of FACL identifying cancerous regions

Limitations and Future Work

  • Cancer Type Specificity: The study focused exclusively on prostate cancer. The authors note that future work should validate FACL on more diverse cancer types (e.g., breast or lung cancer).
  • Communication Efficiency: The experiments were conducted in a simulated environment. In real-world deployments, network latency and unreliable connections between hospitals remain a challenge for federated systems.
  • Center Scale: While the image count was high, the number of participating centers (6-7) was relatively small. Scaling to dozens or hundreds of global institutions would be the ultimate test of the framework.

Summary updated

BibTeX
@inproceedings{kong2024federated,
  author = {Fei Kong and Xiyue Wang and Jinxi Xiang and Sen Yang and Xinran Wang and Meng Yue and Jun Zhang and Junhan Zhao and Xiao Han and Yuhan Dong and Biyue Zhu and Fang Wang and Yueping Liu},
  title = {{Federated attention consistent learning models for prostate cancer diagnosis and Gleason grading}},
  booktitle = {Computational},
  year = {2024},
  doi = {10.1016/j.csbj.2024.03.028},
}
Figure