Skip to main content
QUICK REVIEW

[Paper Review] Pre-training of Graph Augmented Transformers for Medication Recommendation

Junyuan Shang, Tengfei Ma|arXiv (Cornell University)|Jun 2, 2019
Machine Learning in HealthcareComputer Science16 references18 citations
TL;DR

This paper proposes G-BERT, a novel graph-augmented transformer model that leverages pre-training on single-visit electronic health records (EHRs) and integrates medical code ontologies via graph neural networks (GNNs) to improve medication recommendation. By combining BERT-style pre-training with hierarchical medical knowledge, G-BERT achieves state-of-the-art performance on medication recommendation benchmarks, outperforming prior models including RETAIN and GAMENet.

ABSTRACT

Medication recommendation is an important healthcare application. It is commonly formulated as a temporal prediction task. Hence, most existing works only utilize longitudinal electronic health records (EHRs) from a small number of patients with multiple visits ignoring a large number of patients with a single visit (selection bias). Moreover, important hierarchical knowledge such as diagnosis hierarchy is not leveraged in the representation learning process. To address these challenges, we propose G-BERT, a new model to combine the power of Graph Neural Networks (GNNs) and BERT (Bidirectional Encoder Representations from Transformers) for medical code representation and medication recommendation. We use GNNs to represent the internal hierarchical structures of medical codes. Then we integrate the GNN representation into a transformer-based visit encoder and pre-train it on EHR data from patients only with a single visit. The pre-trained visit encoder and representation are then fine-tuned for downstream predictive tasks on longitudinal EHRs from patients with multiple visits. G-BERT is the first to bring the language model pre-training schema into the healthcare domain and it achieved state-of-the-art performance on the medication recommendation task.

Motivation & Objective

  • To address selection bias in medication recommendation by utilizing single-visit EHRs that are typically discarded in training.
  • To incorporate hierarchical medical knowledge, such as ICD-9 diagnosis ontologies, into medical code representation learning.
  • To adapt BERT-style pre-training to EHR data by modifying input format and pre-training objectives for clinical sequences.
  • To develop a unified framework that combines GNNs for ontology encoding with transformers for temporal modeling in longitudinal EHRs.
  • To demonstrate that pre-training on abundant single-visit data improves downstream medication recommendation performance.

Proposed method

  • Adapt BERT’s bidirectional transformer encoder to process individual EHR visits as sequences of medical codes, enabling pre-training on single-visit data.
  • Use Graph Attention Networks (GAT) to learn hierarchical embeddings for medical codes based on their ontology structure (e.g., ICD-9 hierarchy).
  • Integrate GNN-learned medical code embeddings as input features into the BERT-based visit encoder to enrich representation learning.
  • Pre-train the model on a large corpus of single-visit EHRs using masked language modeling and next sentence prediction objectives adapted for clinical sequences.
  • Fine-tune the pre-trained model on longitudinal EHRs with multiple visits for medication prediction using a supervised objective.
  • Stabilize training via alternating pre-training and fine-tuning for 15 cycles with 5 epochs each.

Experimental results

Research questions

  • RQ1Can pre-training on single-visit EHRs improve representation learning and downstream medication recommendation performance?
  • RQ2Does integrating hierarchical medical code ontologies via GNNs enhance the quality of medical code embeddings?
  • RQ3Can BERT-style pre-training be effectively adapted to clinical EHR data with non-natural language sequences?
  • RQ4How does the combination of GNN-based ontology encoding and pre-training compare to models using only one of these components?
  • RQ5Does G-BERT outperform existing state-of-the-art models in medication recommendation tasks?

Key findings

  • G-BERT achieved a Jaccard score of 0.4565, PR-AUC of 0.6960, and F1 score of 0.6152, outperforming all baseline models including RETAIN and GAMENet.
  • The variant G-BERT with both pre-training and GNN-based ontology encoding (G-BERT) achieved the highest performance across all metrics.
  • Models without pre-training (e.g., G-BERT_G⁻,P⁻) performed worse than those with pre-training, demonstrating the benefit of leveraging single-visit data.
  • The G-BERT model with only pre-training (G-BERT_P⁻) outperformed GRAM, which also uses ontology information but lacks pre-training, confirming the value of pre-training.
  • Even with additional features like DDI knowledge and procedure codes, GAMENet underperformed G-BERT, indicating G-BERT’s superior representation learning.
  • Visualization of learned embeddings using t-SNE confirmed that G-BERT captures meaningful semantic and hierarchical relationships among medical codes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.