Preoperative predictions of in-hospital mortality using electronic medical record data

Brian L. Hill, Robert J. Brown, Eilon Gabel, Christine Lee, Maxime Cannesson, Loes M. Olde Loohuis, Ruth Johnson, Brandon Jew, Uri Maoz, Aman Mahajan, Sriram Sankararaman, Ira Hofer, Eran HalperinbioRxiv 2018

Abstract

Predicting preoperative in-hospital mortality using readily-available electronic medical record (EMR) data can aid clinicians in accurately and rapidly determining surgical risk. While previous work has shown that the American Society of Anesthesiologists (ASA) Physical Status Classification is a useful, though subjective, feature for predicting surgical outcomes, obtaining this classification requires a clinician to review the patient’s medical records. Our goal here is to create an improved risk score using electronic medical records and demonstrate its utility in predicting in-hospital mortality without requiring clinician-derived ASA scores. Data from 49,513 surgical patients were used to train logistic regression, random forest, and gradient boosted tree classifiers for predicting in-hospital mortality. We found that the random forest classifier (AUC 0.921, 95%CI 0.908-0.934) outperforms logistic regression and gradient boosted trees. Features easily extracted from EMR data can be used to preoperatively predict the risk of in-hospital post-surgical mortality in a fully automated fashion, with accuracy comparable to models trained on features that require clinical expertise.

Introduction

In modern healthcare, identifying high-risk surgical patients early is essential for allocating intensive resources and preventing complications. Currently, clinicians rely heavily on the American Society of Anesthesiologists (ASA) Physical Status Classification. While effective, the ASA score is subjective and requires a trained clinician to manually review a patient's chart before surgery. Other common metrics, like the Charlson Comorbidity Index, often rely on ICD codes that are only available after a patient is discharged, limiting their utility for real-time preoperative planning.

This study sought to bridge this gap by creating a fully automated, objective risk score. The objective was to determine if machine learning could match or exceed the predictive power of clinician-derived scores using only the structured data available in the Electronic Medical Record (EMR) at the time of surgery.

Methods

The study utilized the Perioperative Data Warehouse (PDW) at UCLA Health, a repository containing records for all patients who underwent surgery since 2013. The initial cohort of 214,212 surgeries was filtered to a final cohort of 49,513 patients, restricted to adults undergoing inpatient or overnight stays under general anesthesia.

The model utilized 35 preoperative features, including demographics, vital signs (BMI, blood pressure), and common laboratory results. To handle the extreme class imbalance (mortality occurred in only 0.61% of cases), the researchers employed the Synthetic Minority Over-sampling Technique (SMOTE). Missing data were addressed using the SoftImpute algorithm. Four architectures were evaluated: Logistic Regression (with L2 and ElasticNet regularization), Random Forest, and Gradient Boosted Trees (XGBoost). Additionally, a gradient-boosted tree regression model was trained to "impute" the ASA score based on objective features, allowing the team to test the value of this clinician-derived metric in an automated context.

Results

The Random Forest classifier achieved the highest performance, with an AUC of 0.921 (95% CI 0.908-0.934) for the fully automated model. This significantly outperformed both the ASA score alone (AUC 0.865) and the Charlson Comorbidity Index (AUC 0.706).

Table 1: Performance comparison (AUC) of various machine learning models and feature sets for predicting in-hospital mortality. The Random Forest model consistently demonstrated superior predictive power.

A significant finding was that models using only automatically extracted EMR data performed just as well as models including the clinician-derived ASA score. This suggests that objective data contains sufficient signal for accurate risk assessment. Furthermore, the researchers discovered that laboratory result timestamps—how long before surgery a test was performed—were highly predictive. This likely captures "clinical intuition," as clinicians order tests more frequently for patients they perceive as high-risk.

Figure 1: (a) Receiver Operating Characteristic (ROC) and (b) Precision-Recall (PR) curves for the predictive models. The curves illustrate the high discriminative ability of the preoperative feature sets.

Discussion

The integration of preoperative risk predictions into a postoperative Deep Neural Network (DNN) resulted in an AUC of 0.924, demonstrating that preoperative data provides a critical "prior" for postoperative assessments. By comparing pre- and post-surgical risk scores, the authors showed that patient risk is dynamic. For patients who eventually died, 78% showed a significant increase in their risk percentile after surgery, highlighting the need for continuous, longitudinal monitoring.

Limitations include the study's single-center nature and the challenges of real-time data accessibility in many hospital systems. Future work should focus on multi-center validation and expanding the model to predict specific complications like Acute Kidney Injury (AKI) or respiratory failure.

Conclusion

Features easily extracted from EMR data can be used to preoperatively predict the risk of in-hospital post-surgical mortality in a fully automated fashion. This preoperative risk score can be compared to postoperative scores to monitor how risk changes over time, enabling more responsive and personalized patient care.

Summary updated

BibTeX
@misc{hill2018preoperative,
  author = {Brian L. Hill and Robert J. Brown and Eilon Gabel and Christine Lee and Maxime Cannesson and Loes M. Olde Loohuis and Ruth Johnson and Brandon Jew and Uri Maoz and Aman Mahajan and Sriram Sankararaman and Ira Hofer and Eran Halperin},
  title = {{Preoperative predictions of in-hospital mortality using electronic medical record data}},
  year = {2018},
  doi = {10.1101/329813},
  howpublished = {bioRxiv},
}
Figure