Development and Validation of an Electronic Health Record-Based Machine Learning Model to Estimate Delirium Risk in Newly Hospitalized Patients Without Known Cognitive Impairment
- PMID: 30646095
- PMCID: PMC6324291
- DOI: 10.1001/jamanetworkopen.2018.1018
Development and Validation of an Electronic Health Record-Based Machine Learning Model to Estimate Delirium Risk in Newly Hospitalized Patients Without Known Cognitive Impairment
Abstract
Importance: Current methods for identifying hospitalized patients at increased risk of delirium require nurse-administered questionnaires with moderate accuracy.
Objective: To develop and validate a machine learning model that predicts incident delirium risk based on electronic health data available on admission.
Design, setting, and participants: Retrospective cohort study evaluating 5 machine learning algorithms to predict delirium using 796 clinical variables identified by an expert panel as relevant to delirium prediction and consistently available in electronic health records within 24 hours of admission. The training set comprised 14 227 adult patients with non-intensive care unit hospital stays and no delirium on admission who were discharged between January 1, 2016, and August 31, 2017, from UCSF Health, a large academic health institution. The test set comprised 3996 patients with hospital stays who were discharged between August 1, 2017, and November 30, 2017.
Exposures: Patient demographic characteristics, diagnoses, nursing records, laboratory results, and medications available in electronic health records during hospitalization.
Main outcomes and measures: Delirium was defined as a positive Nursing Delirium Screening Scale or Confusion Assessment Method for the Intensive Care Unit score. Models were assessed using the area under the receiver operating characteristic curve (AUC) and compared against the 4-point scoring system AWOL (age >79 years, failure to spell world backward, disorientation to place, and higher nurse-rated illness severity), a validated delirium risk-assessment tool routinely administered in this cohort.
Results: The training set included 14 227 patients (5113 [35.9%] aged >64 years; 7335 [51.6%] female; 687 [4.8%] with delirium), and the test set included 3996 patients (1491 [37.3%] aged >64 years; 1966 [49.2%] female; 191 [4.8%] with delirium). In total, the analysis included 18 223 hospital admissions (6604 [36.2%] aged >64 years; 9301 [51.0%] female; 878 [4.8%] with delirium). The AWOL system achieved a baseline AUC of 0.678. The gradient boosting machine model performed best, with an AUC of 0.855. Setting specificity at 90%, the model had a 59.7% (95% CI, 52.4%-66.7%) sensitivity, 23.1% (95% CI, 20.5%-25.9%) positive predictive value, 97.8% (95% CI, 97.4%-98.1%) negative predictive value, and a number needed to screen of 4.8. Penalized logistic regression and random forest models also performed well, with AUCs of 0.854 and 0.848, respectively.
Conclusions and relevance: Machine learning can be used to estimate hospital-acquired delirium risk using electronic health record data available within 24 hours of hospital admission. Such a model may allow more precise targeting of delirium prevention resources without increasing the burden on health care professionals.
Conflict of interest statement
Figures


Comment in
-
Machine Learning for Prediction in Electronic Health Data.JAMA Netw Open. 2018 Aug 3;1(4):e181404. doi: 10.1001/jamanetworkopen.2018.1404. JAMA Netw Open. 2018. PMID: 30646089 No abstract available.
Similar articles
-
Development and Validation of a Routine Electronic Health Record-Based Delirium Prediction Model for Surgical Patients Without Dementia: Retrospective Case-Control Study.JMIR Perioper Med. 2025 Jan 9;8:e59422. doi: 10.2196/59422. JMIR Perioper Med. 2025. PMID: 39786865 Free PMC article.
-
Daily Automated Prediction of Delirium Risk in Hospitalized Patients: Model Development and Validation.JMIR Med Inform. 2025 Apr 18;13:e60442. doi: 10.2196/60442. JMIR Med Inform. 2025. PMID: 39721068 Free PMC article.
-
Evaluating the performance of machine learning methods for risk estimation of delirium in patients hospitalized from the emergency department.Acta Psychiatr Scand. 2023 May;147(5):493-505. doi: 10.1111/acps.13551. Epub 2023 Apr 11. Acta Psychiatr Scand. 2023. PMID: 36999191 Free PMC article.
-
A Machine Learning Approach to Predicting Need for Hospitalization for Pediatric Asthma Exacerbation at the Time of Emergency Department Triage.Acad Emerg Med. 2018 Dec;25(12):1463-1470. doi: 10.1111/acem.13655. Epub 2018 Nov 29. Acad Emerg Med. 2018. PMID: 30382605
-
Navigating the machine learning pipeline: a scoping review of inpatient delirium prediction models.BMJ Health Care Inform. 2023 Jul;30(1):e100767. doi: 10.1136/bmjhci-2023-100767. BMJ Health Care Inform. 2023. PMID: 37407226 Free PMC article.
Cited by
-
Machine Learning Algorithm Using Electronic Chart-Derived Data to Predict Delirium After Elderly Hip Fracture Surgeries: A Retrospective Case-Control Study.Front Surg. 2021 Jul 13;8:634629. doi: 10.3389/fsurg.2021.634629. eCollection 2021. Front Surg. 2021. PMID: 34327210 Free PMC article.
-
Machine Learning to Predict Outcomes in Patients with Acute Gastrointestinal Bleeding: A Systematic Review.Dig Dis Sci. 2019 Aug;64(8):2078-2087. doi: 10.1007/s10620-019-05645-z. Epub 2019 May 4. Dig Dis Sci. 2019. PMID: 31055722
-
Predicting Agitation-Sedation Levels in Intensive Care Unit Patients: Development of an Ensemble Model.JMIR Med Inform. 2025 Feb 26;13:e63601. doi: 10.2196/63601. JMIR Med Inform. 2025. PMID: 40009778 Free PMC article.
-
Machine Learning-Based Prediction Models for Different Clinical Risks in Different Hospitals: Evaluation of Live Performance.J Med Internet Res. 2022 Jun 7;24(6):e34295. doi: 10.2196/34295. J Med Internet Res. 2022. PMID: 35502887 Free PMC article.
-
Validation of a Machine Learning Model That Outperforms Clinical Risk Scoring Systems for Upper Gastrointestinal Bleeding.Gastroenterology. 2020 Jan;158(1):160-167. doi: 10.1053/j.gastro.2019.09.009. Epub 2019 Sep 25. Gastroenterology. 2020. PMID: 31562847 Free PMC article.
References
Publication types
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
Medical