Predicting Inpatient Discharge Prioritization With Electronic Health Records

Anand Avati, Stephen Pfohl, Chris Lin, Thao Nguyen, Meng Zhang, Philip Hwang, Jessica Wetstone, Kenneth Jung, Andrew Y. Ng, Nigam H. ShaharXiv 2018

TL;DR

This paper tackles the challenge of predicting which hospitalized patients will be discharged within 24 hours, a crucial step for improving hospital efficiency and patient care. They developed and evaluated several machine learning models using Electronic Health Records (EHR) data, with XGBoost emerging as the top performer, achieving a strong AUROC of 0.85. The authors also explored the potential utility gains of deploying such a model in a clinical setting.

What Problem Does This Paper Address?

Hospitals face constant pressure to optimize resource allocation and improve the quality of care. A key bottleneck is the timely discharge of patients who are medically ready to leave. Delays in discharge can lead to increased costs, reduced bed availability, and potentially longer exposure to hospital-acquired conditions. Identifying patients likely to be discharged within the next 24 hours allows hospitals to proactively manage resources, such as scheduling necessary tests (e.g., imaging, labs) and arranging for post-discharge care or transportation. This paper aims to build predictive models using readily available EHR data to automate and improve this identification process.

Methods

The researchers formulated this as a supervised learning problem. They explored several machine learning models:

  • Random Forest: An ensemble of decision trees trained on bootstrapped data.
  • Gradient Boosting Machines (GBM): An ensemble method that builds trees iteratively, with a focus on correcting previous errors. They used both scikit-learn's implementation and XGBoost.
  • Recurrent Neural Networks (RNNs): Specifically, a Gated Recurrent Unit (GRU) network designed to handle sequential data, like the temporal progression of a patient's medical history within the EHR.

For fixed-length models like Random Forest and GBM, they engineered features by summarizing historical and recent clinical codes (diagnoses, procedures, medications, labs) and lab results. For RNNs, they fed the sequential daily data directly, allowing the model to learn temporal patterns. They also incorporated auxiliary prediction tasks (predicting current and next-step inpatient status) within the RNN to potentially improve representation learning.

Datasets

The study utilized Electronic Health Records (EHR) data from Stanford University Medical Center, specifically from the STRIDE (Stanford Translational Research Integrated Database Environment) clinical data warehouse. The dataset comprised demographic and clinical information for approximately 3.3 million patients.

For their cohort, they extracted data on about 1 million adult patients from encounters between January 1, 2010, and February 10, 2018. They carefully handled nested and overlapping encounters. The data was split into:

  • Training set: Encounters before January 1, 2017.
  • Validation set: Encounters on or after January 1, 2017, randomly split 50-50 with the test set.
  • Test set: Encounters on or after January 1, 2017, randomly split 50-50 with the validation set.

To prevent data leakage, patients in the test set were excluded from the training set. The prevalence of positive cases (inpatient discharge in the next day) was around 18% across all data splits.

Key Insights and Ideas

  • EHRs are a rich source for predictive healthcare: The study demonstrates that readily available EHR data can be effectively leveraged to predict important clinical outcomes like timely discharge, moving beyond traditional research-focused datasets.
  • XGBoost excels in this task: Among the tested models, XGBoost provided the best balance of discrimination (AUROC) and precision-recall performance, suggesting its suitability for complex EHR data.
  • Calibration matters, but imperfect calibration might be acceptable: While models were generally well-calibrated, the authors note that even with imperfect calibration, the ranking of patient priority might not be significantly affected, which is crucial for clinical deployment.
  • Potential for tangible utility gains: The decision-theoretic analysis suggests that implementing these predictive models, coupled with appropriate downstream interventions, could lead to significant improvements in expected utility for the hospital. This moves the discussion from mere prediction accuracy to real-world impact.
  • Service line specificity can improve performance: Predictions were notably better for specific service lines (e.g., Orthopaedic Surgery, Neurosurgery) where discharge protocols are more standardized, highlighting opportunities for targeted model deployment.

Key Results

  • Best Model Performance: The XGBoost model achieved the highest AUROC of 0.85 and AUPRC of 0.53 on the held-out test set.
  • Model Comparison: Other models like Random Forest and GRU also performed comparably, with AUROCs ranging from 0.80 to 0.82 and AUPRCs from 0.46 to 0.50.
  • Calibration: All models were well-calibrated, with Brier scores for XGBoost being 0.102.
  • Service Line Performance: Predictions in Orthopaedic Surgery and Neurosurgery showed the highest AUROC and AUPRC, indicating domain-specific advantages.
  • Utility Analysis: Even under pessimistic assumptions about costs and benefits, the analysis indicated that a decision threshold could be set to achieve positive marginal utility, suggesting practical value.

Limitations and Future Work

  • Single Medical Center Data: The models were developed and evaluated on data from a single medical center (Stanford Hospital). The authors acknowledge that results may not be directly transferable to other institutions due to variations in data collection, patient populations, and clinical practices.
  • Assumptions in Utility Analysis: The cost-benefit analysis relied on potentially unrealistic assumptions regarding the utility of false positives and true positives.
  • Future Work:
    • Elicit more precise utility estimates from domain experts.
  • Perform simulations to refine estimates of model utility and suggest optimal decision thresholds.
  • Conduct prospective trials at Stanford Hospital to validate the models in a real-world clinical setting.
  • Explore the impact of these models with domain experts to design effective downstream interventions.

Summary updated

BibTeX
@misc{avati2018predicting,
  author = {Anand Avati and Stephen Pfohl and Chris Lin and Thao Nguyen and Meng Zhang and Philip Hwang and Jessica Wetstone and Kenneth Jung and Andrew Y. Ng and Nigam H. Shah},
  title = {{Predicting Inpatient Discharge Prioritization With Electronic Health Records}},
  year = {2018},
  eprint = {1812.00371},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.00371},
}
Figure