[Paper Review] Predicting Inpatient Discharge Prioritization With Electronic Health Records
This study develops and evaluates machine learning models using eight years of Stanford Hospital EHR data to predict inpatient discharge within 24 hours. The XGBoost model achieved an AUROC of 0.85 and AUPRC of 0.53, demonstrating strong discrimination and calibration, with potential utility gains in clinical decision-making when integrated into discharge workflows.
Identifying patients who will be discharged within 24 hours can improve hospital resource management and quality of care. We studied this problem using eight years of Electronic Health Records (EHR) data from Stanford Hospital. We fit models to predict 24 hour discharge across the entire inpatient population. The best performing models achieved an area under the receiver-operator characteristic curve (AUROC) of 0.85 and an AUPRC of 0.53 on a held out test set. This model was also well calibrated. Finally, we analyzed the utility of this model in a decision theoretic framework to identify regions of ROC space in which using the model increases expected utility compared to the trivial always negative or always positive classifiers.
Motivation & Objective
- To improve hospital resource management and care quality by identifying patients ready for discharge within 24 hours.
- To develop machine learning models that predict 24-hour inpatient discharge using comprehensive EHR data.
- To evaluate model performance across multiple metrics, including AUROC, AUPRC, and calibration.
- To assess the marginal utility of the model compared to trivial classifiers using a decision-theoretic framework.
- To identify actionable use cases in standardized service lines such as Orthopaedic Surgery and Neurosurgery.
Proposed method
- Used EHR data from Stanford Hospital spanning 2010–2018, including diagnosis, procedure, medication, and lab codes with results.
- Constructed patient representations using ICD-9 and CPT codes, lab results categorized as normal, abnormal, or panic.
- Trained and compared multiple models: Random Forest, GBM, XGBoost, and GRU on the prediction task.
- Evaluated models using AUROC, AUPRC, and Brier score for calibration on a held-out test set.
- Performed a decision-theoretic analysis to estimate expected utility gains relative to always-positive or always-negative classifiers.
- Focused on service lines with standardized discharge protocols to assess real-world actionability.
Experimental results
Research questions
- RQ1Can machine learning models trained on EHR data accurately predict inpatient discharge within 24 hours across a diverse inpatient population?
- RQ2How do different models (e.g., XGBoost, GBM, GRU) compare in performance on AUROC, AUPRC, and calibration metrics?
- RQ3In which regions of the ROC space does the model provide a marginal utility gain over trivial classifiers?
- RQ4Which clinical service lines show the highest predictive performance, indicating greater potential for clinical deployment?
- RQ5What is the expected utility of using the model in clinical workflows, given varying assumptions about costs and benefits of false positives and true positives?
Key findings
- The XGBoost model achieved the highest performance with an AUROC of 0.85 and AUPRC of 0.53 on the held-out test set.
- All models demonstrated good calibration, with the XGBoost model achieving a Brier score of 0.10, indicating well-calibrated probability estimates.
- The model showed particularly strong performance in Orthopaedic Surgery (highest AUROC) and Neurosurgery (highest AUPRC).
- A decision-theoretic analysis revealed that the model provides positive expected utility across all scenarios, even under pessimistic assumptions about costs and benefits.
- The model’s predictions were conservative at a 0.5 threshold, suggesting reliable ranking for clinical prioritization without overestimation.
- The results suggest that integrating such models into clinical workflows could improve discharge efficiency and reduce unnecessary inpatient days.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.