Two-stage Federated Phenotyping and Patient Representation Learning

Dianbo Liu, Dmitriy Dligach, Timothy A. Miller

TL;DR

This paper introduces a novel two-stage federated learning approach for clinical Natural Language Processing (NLP) that allows multiple hospitals to collaboratively train models without sharing sensitive patient data. This method significantly improves the accuracy of patient phenotyping (identifying specific conditions) by leveraging distributed clinical notes, paving the way for more robust and generalizable healthcare AI systems.

What Problem Does This Paper Address?

Electronic Health Records (EHRs) contain a wealth of unstructured clinical notes, which are crucial for understanding patient health. However, manually extracting information from these notes is time-consuming and prone to errors. While NLP has made strides in automating this, models trained on data from a single institution often fail to generalize due to variations in medical practices and documentation styles. Furthermore, privacy concerns and data transfer limitations make it difficult to aggregate data from multiple hospitals to build more robust models. This paper tackles the challenge of building accurate and generalizable clinical NLP models by enabling collaborative learning across institutions without direct data sharing.

Methods

The authors propose a two-stage federated learning framework:

  1. Federated Patient Representation Learning (Stage 1): This stage focuses on learning general patient representations from clinical notes. Using a deep averaging network (DAN), models are trained across multiple simulated hospital "silos" to predict ICD (International Classification of Diseases) and CPT (Current Procedural Terminology) codes from the notes. Crucially, the notes used here don't need to be directly related to a specific medical task. The core idea is to learn a dense vector (embedding) that captures essential patient information from their notes. This is done in a federated manner, where each silo trains a model locally, and only the model parameters are aggregated centrally.
  2. Federated Phenotyping Learning (Stage 2): In this stage, the learned patient representations from Stage 1 are used as input features for a phenotyping task (e.g., identifying obesity and its comorbidities). A Support Vector Machine (SVM) classifier is trained on these representations. This stage is also performed in a federated manner, allowing multiple sites to collaboratively train a phenotyping model for a specific disease without sharing their local clinical notes.

The federated learning approach involves sending identical initial models to each participating site. Each site trains the model on its local data, and then the model parameters are sent back to a central server for aggregation (weighted by the number of samples at each site). This aggregated model is then sent back to the sites for the next round of training, creating a collaborative learning cycle.

Datasets

  • MIMIC-III corpus: Used for the representation learning stage (Stage 1). This dataset contains clinical notes, ICD codes, and procedure codes from over 58,000 admissions at Beth Israel Deaconess Medical Center. For this study, it was processed to extract UMLS Concept Unique Identifiers (CUIs) and then randomly split into 10 simulated sites.
  • i2b2 Obesity challenge dataset: Used for the phenotyping stage (Stage 2). This dataset comprises 1237 discharge summaries from Partners HealthCare, annotated for obesity and its 15 most common comorbidities. This dataset was split into 3 simulated sites for the phenotyping experiments.

Key Insights and Ideas

  • Federated learning is viable for clinical NLP: The paper demonstrates that federated learning can be effectively applied to complex clinical NLP tasks, overcoming the limitations of data sharing.
  • Two-stage approach is beneficial: Separating general patient representation learning from specific phenotyping tasks allows for more robust and transferable models.
  • Generalizable representations improve phenotyping: Learning patient representations from a large, diverse dataset (MIMIC-III) significantly boosts the performance of downstream phenotyping tasks, even when the phenotyping data is limited.
  • Federated learning matches centralized performance: The federated approach achieved performance comparable to centralized training, suggesting it's a strong alternative when data cannot be pooled.
  • Handling "questionable" cases: The authors note that for rare or uncertain diagnoses, excluding "questionable" cases and performing binary classification (presence/absence) was necessary due to the small number of such instances in federated settings.

Key Results

The paper presents several experiments to evaluate their approach. Key findings include:

  • Improved Phenotyping:
    • Using only data from a single silo for phenotyping (experiment 3) yielded an F1 score of 0.542.
  • Using all i2b2 data in a centralized manner (experiment 1) improved the F1 score to 0.634.
  • The federated phenotyping approach (experiment 2) achieved a comparable F1 score of 0.632, demonstrating its effectiveness without data sharing.
  • Impact of Representation Learning:
    • Centralized representation learning (Stage 1) followed by centralized phenotyping (Stage 4) resulted in a significant F1 score of 0.714.
  • The full two-stage federated approach (Stage 1 and Stage 2 federated, experiment 7) achieved an F1 score of 0.724, which was statistically similar to centralized training and significantly better than single-source or no representation learning.
  • Overall Performance: The federated approach (experiment 7) achieved an average F1 score of 0.724 across multiple diseases, outperforming single-site training (average F1 of 0.634) and being comparable to centralized training (average F1 of 0.715).

Limitations and Future Work

  • Simulated Silos: The experiments used simulated silos, which may not perfectly replicate the complexities and variations of real-world distributed healthcare environments.
  • "Questionable" Cases: For diseases with few "questionable" cases, the authors had to exclude them and perform binary classification, which might affect direct comparability with studies using multi-class classification.
  • Future Work: The authors suggest that their federated learning strategies can also be applied to raw text, not just CUIs, which could further enhance their applicability. They also highlight the potential for their method to contribute to building "learning health systems" by facilitating knowledge progression across the healthcare ecosystem.

Summary updated

Abstract

A large percentage of medical information is in unstructured text format in electronic medical record systems. Manual extraction of information from clinical notes is extremely time consuming. Natural language processing has been widely used in recent years for automatic information extraction from medical texts. However, algorithms trained on data from a single healthcare provider are not generalizable and error-prone due to the heterogeneity and uniqueness of medical documents. We develop a two-stage federated natural language processing method that enables utilization of clinical notes from different hospitals or clinics without moving the data, and demonstrate its performance using obesity and comorbities phenotyping as medical task. This approach not only improves the quality of a specific clinical task but also facilitates knowledge progression in the whole healthcare system, which is an essential part of learning health system. To the best of our knowledge, this is the first application of federated machine learning in clinical NLP.
BibTeX
@inproceedings{liu2019two,
  author = {Dianbo Liu and Dmitriy Dligach and Timothy A. Miller},
  title = {{Two-stage Federated Phenotyping and Patient Representation Learning}},
  booktitle = {BioNLP @ ACL},
  year = {2019},
  url = {https://openreview.net/forum?id=4TByjpSVK1r},
}
Figure