Machine Learning Models for Predicting in-Hospital Cardiac Arrest: A Comparative Analysis with Logistic Regression.
Wei-Shan Chang1, Kai-Yuan Hsiao2, Lian-Yu Lin3,4
1Institute of Statistical Science, Academia Sinica, Taipei, Taiwan.
International Journal of General Medicine
|October 27, 2025
Summary
Machine learning models significantly improve in-hospital cardiac arrest (IHCA) prediction compared to logistic regression. XGBoost and random forest offer enhanced risk stratification for timely clinical intervention.
Area of Science:
- Medical Informatics
- Machine Learning in Healthcare
- Clinical Prediction Models
Background:
- Early risk stratification for in-hospital cardiac arrest (IHCA) is crucial for timely intervention.
- Conventional early-warning scores have limitations in predicting IHCA.
- Electronic health records (EHRs) offer rich data for developing advanced prediction models.
Purpose of the Study:
- To develop and compare machine learning (ML) algorithms against logistic regression for IHCA prediction.
- To enhance early risk stratification for IHCA using EHR data.
- To explore the integration of ML models into hospital early warning systems.
Main Methods:
- Retrospective case-control study at a tertiary medical center (800 IHCA cases, 3,464 controls).
- Candidate predictors included demographics, comorbidities, vital signs, and laboratory measurements.
- Five models (logistic regression, decision tree, random forest, XGBoost, MARS) were trained and validated; performance evaluated using AUC, accuracy, sensitivity, specificity, and F1 score.
Main Results:
- XGBoost achieved the highest accuracy (0.883) with strong discrimination (AUC 0.909).
- Random forest showed comparable discrimination (AUC 0.910) and slightly lower accuracy (0.876).
- ML models identified key predictors like blood urea nitrogen, heart rate, and heart failure, offering deeper insights than traditional regression.
Conclusions:
- Integrating ML with regression enhances IHCA risk prediction by capturing complex relationships.
- ML approaches can strengthen hospital early-warning systems for earlier detection and intervention.
- Improved prediction models can ultimately lead to better patient outcomes.
Related Concept Videos
Comparing the Survival Analysis of Two or More Groups
548
Survival analysis is a cornerstone of medical research, used to evaluate the time until an event of interest occurs, such as death, disease recurrence, or recovery. Unlike standard statistical methods, survival analysis is particularly adept at handling censored data—instances where the event has not occurred for some participants by the end of the study or remains unobserved. To address these unique challenges, specialized techniques like the Kaplan-Meier estimator, log-rank test, and...
548
Cardiopulmonary Resuscitation IV: Pharmacological Management
639
Pharmacologic intervention is crucial in treating cardiac arrest patients during ACLS or Advanced Cardiovascular Life Support. The ACLS algorithms guide the administration of specific drugs based on the patient's cardiac arrest rhythm, which includes pulseless ventricular tachycardia (VT), ventricular fibrillation (VF), asystole, and pulseless electrical activity (PEA).EpinephrineIndication: Epinephrine is the first-line drug for all cardiac arrest rhythms.Mechanism of Action: Epinephrine...
639
Cardiopulmonary Resuscitation III: AED Use
521
Introduction to AEDAn Automated External Defibrillator (AED) is a portable medical device that analyzes the heart's rhythm and, if necessary, delivers an electrical shock to help the heart re-establish an effective rhythm during sudden cardiac arrest (SCA). SCA occurs when the heart suddenly and unexpectedly stops beating, leading to a loss of blood flow to the brain and other vital organs. In such emergencies, time is of the essence, and using an AED, combined with Cardiopulmonary...
521
