Graph-Based Clinical Recommender: Predicting Specialists Procedure Orders using Graph Representation Learning

Sajjad Fouladvand, Federico Reyes Gomez, Hamed Nilforoshan, Matthew Schwede, Morteza Noshad, Olivia Jee, Jiaxuan You, Rok Sosič, Jure Leskovec, Jonathan H. Chen

Abstract

Objective: To determine whether graph neural network based models of electronic health records can predict specialty consultation care needs for endocrinology and hematology more accurately than the standard of care checklists and other conventional medical recommendation algorithms in the literature. Methods: Demand for medical expertise far outstrips supply, with tens of millions in the US alone with deficient access to specialty care. Rather than potentially months long delays to initiate diagnostic workup and medical treatment with a specialist, referring primary care supported by an automated recommender algorithm could anticipate and directly initiate patient evaluation that would otherwise be needed at subsequent a specialist appointment. We propose a novel graph representation learning approach with a heterogeneous graph neural network to model structured electronic health records and formulate recommendation/prediction of subsequent specialist orders as a link prediction problem. Results: Models are trained and assessed in two specialty care sites: endocrinology and hematology. Our experimental results show that our model achieves an 8% improvement in ROC-AUC for endocrinology (ROC-AUC=0.88) and 5% improvement for hematology (ROC-AUC=0.84) personalized procedure recommendations over prior medical recommender systems. These recommender algorithm approaches provide medical procedure recommendations for endocrinology referrals more effectively than manual clinical checklists (recommender: precision=0.60, recall=0.27, F1-score=0.37) vs. (checklist: precision=0.16, recall=0.28, F1-score=0.20), and similarly for hematology referrals (recommender: precision=0.44, recall=0.38, F1-score=0.41) vs. (checklist: precision=0.27, recall=0.71, F1-score=0.39). Conclusion: Embedding graph neural network models into clinical care can improve digital specialty consultation systems and expand the access to medical experience of prior similar cases.

Introduction

In modern healthcare, the demand for specialists far exceeds the supply. When a primary care physician (PCP) refers a patient to a specialist, such as an endocrinologist or hematologist, patients often face long wait times for an initial appointment. Once seen, the specialist frequently orders diagnostic tests and schedules a follow-up visit to review results, creating a "referral loop" that significantly delays treatment.

While manual clinical checklists exist to help PCPs order tests before a referral, they are often labor-intensive to maintain and lack personalization. This paper introduces a heterogeneous Graph Neural Network (GNN) designed to predict specialist procedure orders based on a patient’s primary care history, allowing PCPs to initiate necessary workups earlier and streamline the diagnostic journey.

Methods

The researchers framed the prediction of specialist orders as a link prediction problem on a heterogeneous graph.

Overview of the clinical referral workflow and the Graph Neural Network (GNN) approach for predicting specialist orders.
  1. Graph Construction: Electronic Health Record (EHR) data was modeled as a graph where nodes represent patients or procedure orders.
  2. Features: Patient nodes were assigned multi-hot encoded vectors representing diagnoses, prior procedures, and lab results (categorized as high, low, or normal).
  3. Architecture: The team utilized a custom Heterogeneous Graph Attention Network (GAT). This architecture enables the model to learn which "neighbors" in the graph—such as similar patients or related procedures—are most relevant for a specific prediction.
  4. The Task: The model predicts the probability of an "ordered-with" edge existing between a specific patient and a specific procedure after the referral date.

By capturing the relational structure of medical data—how specific diagnoses cluster with lab abnormalities and subsequent orders—the GNN outperforms traditional "flat" machine learning models like Logistic Regression.

Datasets

The study utilized two primary cohorts from Stanford University:

  • Endocrinology Cohort: 6,821 new referrals (2008–2018) with a target set of 60 common procedure orders.
  • Hematology Cohort: 2,007 new referrals (2008–2021) with a target set of 33 medical procedures.
Demographic characteristics of the Endocrinology and Hematology patient cohorts.

The GNN (CR-GNN) was compared against several baselines, including Singular Value Decomposition (SVD), Collaborative Filtering Auto-encoders (AE), and manual clinical checklists currently used in practice.

Key Results and Insights

The GNN model demonstrated significant improvements in predictive accuracy and clinical utility:

  • Superior Accuracy: The CR-GNN achieved a ROC-AUC of 0.88 for endocrinology (an 8% improvement over the best non-graph baseline) and 0.84 for hematology (a 5% improvement).
  • Precision vs. Checklists: The model was significantly more precise than manual checklists. For endocrinology, the recommender achieved a precision of 0.60 compared to just 0.16 for the manual checklist, suggesting that AI can provide more "surgical" recommendations than broad, one-size-fits-all guidelines.
  • Clinical Consistency: Qualitative analysis showed that for specific conditions like anemia, the GNN’s top recommendations (e.g., Vitamin B12, Ferritin) closely mirrored the actual behavior of expert hematologists.

Discussion and Conclusion

The primary advantage of this approach is its ability to capture the "neighborhood" effect within EHR data. A patient is not just a list of features but a node in a complex web of clinical decisions. By "pre-arming" PCPs with high-confidence predictions of what a specialist will require, the first specialist visit can become far more productive.

While the model shows great promise, limitations include its primary focus on outpatient data and the potential for "mimicking" current practice (including human errors) rather than identifying an ideal clinical path. Future work may involve Reinforcement Learning to optimize for long-term patient outcomes rather than just predicting physician behavior.

In conclusion, embedding GNN models into clinical care can improve digital specialty consultation systems and expand access to medical expertise by leveraging the patterns found in millions of prior cases.

Summary updated

BibTeX
@article{fouladvand2023graph,
  author = {Sajjad Fouladvand and Federico Reyes Gomez and Hamed Nilforoshan and Matthew Schwede and Morteza Noshad and Olivia Jee and Jiaxuan You and Rok Sosič and Jure Leskovec and Jonathan H. Chen},
  title = {{Graph-Based Clinical Recommender: Predicting Specialists Procedure Orders using Graph Representation Learning}},
  journal = {J. Biomed. Informatics},
  year = {2023},
  doi = {10.1016/j.jbi.2023.104407},
}
Figure