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

Similar articles
-
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
-
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
-
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.
-
Machine learning applications in cancer prognosis and prediction.Comput Struct Biotechnol J. 2014 Nov 15;13:8-17. doi: 10.1016/j.csbj.2014.11.005. eCollection 2015. Comput Struct Biotechnol J. 2014. PMID: 25750696 Free PMC article. Review.
Cited by
-
Comparison of logistic regression and machine learning methods for predicting postoperative delirium in elderly patients: A retrospective study.CNS Neurosci Ther. 2023 Jan;29(1):158-167. doi: 10.1111/cns.13991. Epub 2022 Oct 11. CNS Neurosci Ther. 2023. PMID: 36217732 Free PMC article.
-
Definition and Classification of Postoperative Complications After Cardiac Surgery: Pilot Delphi Study.JMIR Perioper Med. 2022 Oct 12;5(1):e39907. doi: 10.2196/39907. JMIR Perioper Med. 2022. PMID: 36222812 Free PMC article.
-
The future of Cardiothoracic surgery in Artificial intelligence.Ann Med Surg (Lond). 2022 Jul 31;80:104251. doi: 10.1016/j.amsu.2022.104251. eCollection 2022 Aug. Ann Med Surg (Lond). 2022. PMID: 36045824 Free PMC article. Review.
-
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.
-
Dynamic predictive scores for cardiac surgery-associated agitated delirium: a single-center retrospective observational study.J Cardiothorac Surg. 2023 Jul 6;18(1):219. doi: 10.1186/s13019-023-02339-6. J Cardiothorac Surg. 2023. PMID: 37415226 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