Exploiting Machine Learning Algorithms and Methods for the Prediction of Agitated Delirium After Cardiac Surgery: Models Development and Validation Study
- PMID: 31558433
- PMCID: PMC6913743
- DOI: 10.2196/14993
Exploiting Machine Learning Algorithms and Methods for the Prediction of Agitated Delirium After Cardiac Surgery: Models Development and Validation Study
Abstract
Background: Delirium is a temporary mental disorder that occasionally affects patients undergoing surgery, especially cardiac surgery. It is strongly associated with major adverse events, which in turn leads to increased cost and poor outcomes (eg, need for nursing home due to cognitive impairment, stroke, and death). The ability to foresee patients at risk of delirium will guide the timely initiation of multimodal preventive interventions, which will aid in reducing the burden and negative consequences associated with delirium. Several studies have focused on the prediction of delirium. However, the number of studies in cardiac surgical patients that have used machine learning methods is very limited.
Objective: This study aimed to explore the application of several machine learning predictive models that can pre-emptively predict delirium in patients undergoing cardiac surgery and compare their performance.
Methods: We investigated a number of machine learning methods to develop models that can predict delirium after cardiac surgery. A clinical dataset comprising over 5000 actual patients who underwent cardiac surgery in a single center was used to develop the models using logistic regression, artificial neural networks (ANN), support vector machines (SVM), Bayesian belief networks (BBN), naïve Bayesian, random forest, and decision trees.
Results: Only 507 out of 5584 patients (11.4%) developed delirium. We addressed the underlying class imbalance, using random undersampling, in the training dataset. The final prediction performance was validated on a separate test dataset. Owing to the target class imbalance, several measures were used to evaluate algorithm's performance for the delirium class on the test dataset. Out of the selected algorithms, the SVM algorithm had the best F1 score for positive cases, kappa, and positive predictive value (40.2%, 29.3%, and 29.7%, respectively) with a P=.01, .03, .02, respectively. The ANN had the best receiver-operator area-under the curve (78.2%; P=.03). The BBN had the best precision-recall area-under the curve for detecting positive cases (30.4%; P=.03).
Conclusions: Although delirium is inherently complex, preventive measures to mitigate its negative effect can be applied proactively if patients at risk are prospectively identified. Our results highlight 2 important points: (1) addressing class imbalance on the training dataset will augment machine learning model's performance in identifying patients likely to develop postoperative delirium, and (2) as the prediction of postoperative delirium is difficult because it is multifactorial and has complex pathophysiology, applying machine learning methods (complex or simple) may improve the prediction by revealing hidden patterns, which will lead to cost reduction by prevention of complications and will optimize patients' outcomes.
Keywords: cardiac surgery; delirium; machine learning; predictive modeling.
©Hani Nabeel N Mufti, Gregory Marshal Hirsch, Samina Raza Abidi, Syed Sibte Raza Abidi. Originally published in JMIR Medical Informatics (http://medinform.jmir.org), 23.10.2019.
Conflict of interest statement
Conflicts of Interest: None declared.
Figures
![Figure 1](https://www.ncbi.nlm.nih.gov/pmc/articles/instance/6913743/bin/medinform_v7i4e14993_fig1.gif)
Similar articles
-
A machine learning-based prediction model for postoperative delirium in cardiac valve surgery using electronic health records.BMC Cardiovasc Disord. 2024 Jan 18;24(1):56. doi: 10.1186/s12872-024-03723-3. BMC Cardiovasc Disord. 2024. PMID: 38238677 Free PMC article.
-
Postoperative delirium prediction after cardiac surgery using machine learning models.Comput Biol Med. 2024 Feb;169:107818. doi: 10.1016/j.compbiomed.2023.107818. Epub 2023 Dec 12. Comput Biol Med. 2024. PMID: 38134752
-
Online interpretable dynamic prediction models for postoperative delirium after cardiac surgery under cardiopulmonary bypass developed based on machine learning algorithms: A retrospective cohort study.J Psychosom Res. 2024 Jan;176:111553. doi: 10.1016/j.jpsychores.2023.111553. Epub 2023 Nov 20. J Psychosom Res. 2024. PMID: 37995429
-
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. Review.
-
Data-driven modeling and prediction of blood glucose dynamics: Machine learning applications in type 1 diabetes.Artif Intell Med. 2019 Jul;98:109-134. doi: 10.1016/j.artmed.2019.07.007. Epub 2019 Jul 26. Artif Intell Med. 2019. PMID: 31383477 Review.
Cited by
-
Characterizing medical patients with delirium: A cohort study comparing ICD-10 codes and a validated chart review method.PLoS One. 2024 May 13;19(5):e0302888. doi: 10.1371/journal.pone.0302888. eCollection 2024. PLoS One. 2024. PMID: 38739670 Free PMC article.
-
Identification of risk factors for the onset of delirium associated with COVID-19 by mining nursing records.PLoS One. 2024 Jan 19;19(1):e0296760. doi: 10.1371/journal.pone.0296760. eCollection 2024. PLoS One. 2024. PMID: 38241284 Free PMC article.
-
Development of postoperative delirium prediction models in patients undergoing cardiovascular surgery using machine learning algorithms.Sci Rep. 2023 Nov 30;13(1):21090. doi: 10.1038/s41598-023-48418-5. Sci Rep. 2023. PMID: 38036664 Free PMC article.
-
Temporal Generalizability of Machine Learning Models for Predicting Postoperative Delirium Using Electronic Health Record Data: Model Development and Validation Study.JMIR Perioper Med. 2023 Oct 26;6:e50895. doi: 10.2196/50895. JMIR Perioper Med. 2023. PMID: 37883164 Free PMC article.
-
Machine learning risk estimation and prediction of death in continuing care facilities using administrative data.Sci Rep. 2023 Oct 18;13(1):17708. doi: 10.1038/s41598-023-43943-9. Sci Rep. 2023. PMID: 37853045 Free PMC article.
References
-
- The Society of Thoracic Surgeons. [2019-10-08]. STS National Database https://www.sts.org/registries-research-center/sts-national-database.
-
- American Psychiatric Association . Practice Guideline for the Treatment of Patients with Delirium. Washington, DC: American Psyciatric Assosiation; 2010.
-
- American Psychiatric Association . Diagnostic And Statistical Manual Of Mental Disorders. Fifth Edition. Washington, DC: American Psychiatric Publishing; 2013. Diagnostic and statistical manual of mental disorders : DSM-52013.
LinkOut - more resources
Full Text Sources