Ann Lab Med.  2025 Mar;45(2):209-217. 10.3343/alm.2024.0315.

A Machine Learning Approach for Predicting In-Hospital Cardiac Arrest Using Single-Day Vital Signs, Laboratory Test Results, and International Classification of Disease-10 Block for Diagnosis

Affiliations
  • 1Department of Laboratory Medicine, College of Medicine, The Catholic University of Korea, Seoul, Korea
  • 2Division of Cardiology, Department of Internal Medicine, College of Medicine, The Catholic University of Korea, Seoul, Korea

Abstract

Background
Predicting in-hospital cardiac arrest (IHCA) is crucial for potentially reducing mortality and improving patient outcomes. However, most models, which rely solely on vital signs, may not comprehensively capture the patients’ risk profiles. We aimed to improve IHCA predictions by combining vital sign indicators with laboratory test results and, optionally, International Classification of Disease-10 block for diagnosis (ICD10BD).
Methods
We conducted a retrospective cohort study in the general ward (GW) and intensive care unit (ICU) of a 680-bed secondary healthcare institution. We included 62,061 adults admitted to the Department of Internal Medicine from January 2010 to August 2022. IHCAs were identified based on cardiopulmonary resuscitation prescriptions. Patient-days within three days preceding IHCAs were labeled as case days; all others were control days. The eXtreme Gradient Boosting (XGBoost) model was trained using daily vital signs, 14 laboratory test results, and ICD10BD.
Results
In the GW, among 1,299,448 patient-days from 62,038 patients, 1,367 days linked to 713 patients were cases. In the ICU, among 117,190 patient-days from 16,881 patients, 1,119 days from 444 patients were cases. The area under the ROC curve for IHCA prediction model was 0.934 and 0.896 in the GW and ICU, respectively, using the combination of vital signs, laboratory test results, and ICD10BD; 0.925 and 0.878, respectively, with vital signs and laboratory test results; and 0.839 and 0.828, respectively, with only vital signs.
Conclusions
Incorporating laboratory test results or combining laboratory test results and ICD10BD with vital signs as predictor variables in the XGBoost model potentially enhances clinical decision-making and improves patient outcomes in hospital settings.

Keyword

Cardiac arrest; Diagnosis; Hospital; International Classification of Disease; Machine learning; Prediction

Figure

  • Fig. 1 Assignment of patient-days to case and control groups. IHCA events were assigned using CPR codes in prescription records, categorizing 1–3 days before CPR as cases and ≥4 days before cardiopulmonary resuscitation or all days for patients without CPR as controls. Days of and after CPR were excluded from the modeling dataset. Abbreviations: IHCA, in-hospital cardiac arrest; CPR, cardiopulmonary resuscitation.

  • Fig. 2 Flowchart of data compilation. Patient-day was used as the unit of analysis.

  • Fig. 3 ROC curves for three feature sets derived from the three-stage expansion of variable groups in (A) the general ward and (B) the intensive care unit. Abbreviations: LR, logistic regression; XGBoost, eXtreme Gradient Boosting; FS1, feature set 1; FS2, feature set 2; FS3, feature set 3.

  • Fig. 4 Top 10 predictor variables identified by the XGBoost algorithm. The predictor variables are categorized by the three stages of variable group expansion in (A) the general ward and (B) the intensive care unit. (A) K90-K93, other diseases of the digestive system; R10-R19, symptoms and signs involving the digestive system and abdomen; I30-I52, other forms of heart disease; M86-M90, other osteopathies; and G40-G47, episodic and paroxysmal disorders. (B) I60-I69, cerebrovascular diseases; F99-F99, unspecified mental disorders; C15-C26, malignant neoplasms of the digestive organs; R00-R09, symptoms and signs involving the circulatory and respiratory systems; K65-K67, diseases of the peritoneum; K55-K64, other diseases of the intestines; and I30-I52, other forms of heart disease. Abbreviation: XGBoost, eXtreme Gradient Boosting; FS1, feature set 1; FS2, feature set 2; FS3, feature set 3; RR, respiration rate; PR, pulse rate; DBP, diastolic blood pressure; MBP, mean blood pressure; BMI, body mass index; BT, body temperature; WBC, white blood cell; SBP, systolic blood pressure.


Cited by  1 articles

Enhancing Clinical Cardiac Care: Predicting In-Hospital Cardiac Arrest With Machine Learning
Sollip Kim
Ann Lab Med. 2025;45(2):117-120.    doi: 10.3343/alm.2024.0696.


Reference

References

1. Grasner JT, Herlitz J, Tjelmeland IBM, Wnent J, Masterson S, Lilja G, et al. 2021; European Resuscitation Council Guidelines 2021: Epidemiology of cardiac arrest in Europe. Resuscitation. 161:61–79. DOI: 10.1016/j.resuscitation.2021.02.007. PMID: 33773833.
Article
2. Andersen LW, Holmberg MJ, Berg KM, Donnino MW, Granfeldt A. 2019; In-Hospital Cardiac Arrest: A Review. JAMA. 321:1200–10. DOI: 10.1001/jama.2019.1696. PMID: 30912843. PMCID: PMC6482460.
3. Choi Y, Kwon IH, Jeong J, Chung J, Roh Y. 2016; Incidence of Adult In-Hospital Cardiac Arrest Using National Representative Patient Sample in Korea. Healthc Inform Res. 22:277–84. DOI: 10.4258/hir.2016.22.4.277. PMID: 27895959. PMCID: PMC5116539. PMID: 508fdcedb54b4a2ea2d6126522de2fa5.
Article
4. Andersen LW, Kim WY, Chase M, Berg KM, Mortensen SJ, Moskowitz A, et al. 2016; The prevalence and significance of abnormal vital signs prior to in-hospital cardiac arrest. Resuscitation. 98:112–7. DOI: 10.1016/j.resuscitation.2015.08.016. PMID: 26362486. PMCID: PMC4715919.
Article
5. Brady WJ, Gurka KK, Mehring B, Peberdy MA, O'Connor RE. American Heart Association's Get with the Guidelines I. 2011; In-hospital cardiac arrest: impact of monitoring and witnessed event on patient survival and neurologic status at hospital discharge. Resuscitation. 82:845–52. DOI: 10.1016/j.resuscitation.2011.02.028. PMID: 21454008.
Article
6. Churpek MM, Yuen TC, Park SY, Gibbons R, Edelson DP. 2014; Using electronic health record data to develop and validate a prediction model for adverse outcomes in the wards*. Crit Care Med. 42:841–8. DOI: 10.1097/CCM.0000000000000038. PMID: 24247472. PMCID: PMC3959228.
Article
7. Churpek MM, Yuen TC, Winslow C, Robicsek AA, Meltzer DO, Gibbons RD, et al. 2014; Multicenter development and validation of a risk stratification tool for ward patients. Am J Respir Crit Care Med. 190:649–55. DOI: 10.1164/rccm.201406-1022OC. PMID: 25089847. PMCID: PMC4214112.
Article
8. Churpek MM, Yuen TC, Winslow C, Meltzer DO, Kattan MW, Edelson DP. 2016; Multicenter Comparison of Machine Learning Methods and Conventional Regression for Predicting Clinical Deterioration on the Wards. Crit Care Med. 44:368–74. DOI: 10.1097/CCM.0000000000001571. PMID: 26771782. PMCID: PMC4736499.
Article
9. Kwon JM, Lee Y, Lee Y, Lee S, Park J. 2018; An Algorithm Based on Deep Learning for Predicting In-Hospital Cardiac Arrest. J Am Heart Assoc. 7:DOI: 10.1161/JAHA.118.008678. PMID: 29945914. PMCID: PMC6064911. PMID: 8016cec78ea048a8976e8c8a3d8fec81.
Article
10. Kim J, Chae M, Chang HJ, Kim YA, Park E. 2019; Predicting Cardiac Arrest and Respiratory Failure Using Feasible Artificial Intelligence with Simple Trajectories of Patient Data. J Clin Med. 8:DOI: 10.3390/jcm8091336. PMID: 31470543. PMCID: PMC6780058.
Article
11. Cho KJ, Kwon O, Kwon JM, Lee Y, Park H, Jeon KH, et al. 2020; Detecting Patient Deterioration Using Artificial Intelligence in a Rapid Response System. Crit Care Med. 48:e285–e9. DOI: 10.1097/CCM.0000000000004236. PMID: 32205618.
Article
12. Romero-Brufau S, Whitford D, Johnson MG, Hickman J, Morlan BW, Therneau T, et al. 2021; Using machine learning to improve the accuracy of patient deterioration predictions: Mayo Clinic Early Warning Score (MC-EWS). J Am Med Inform Assoc. 28:1207–15. DOI: 10.1093/jamia/ocaa347. PMID: 33638343. PMCID: PMC8661441.
Article
13. Subbe CP, Kruger M, Rutherford P, Gemmel L. 2001; Validation of a modified Early Warning Score in medical admissions. QJM. 94:521–6. DOI: 10.1093/qjmed/94.10.521. PMID: 11588210.
Article
14. Churpek MM, Adhikari R, Edelson DP. 2016; The value of vital sign trends for detecting clinical deterioration on the wards. Resuscitation. 102:1–5. DOI: 10.1016/j.resuscitation.2016.02.005. PMID: 26898412. PMCID: PMC4834231.
Article
15. Su CF, Chiu SI, Jang JR, Lai F. 2022; Improved inpatient deterioration detection in general wards by using time-series vital signs. Sci Rep. 12:11901. DOI: 10.1038/s41598-022-16195-2. PMID: 35831415. PMCID: PMC9279370. PMID: ffbab2964df4424a9a6e989d5022e9fd.
Article
16. Chen MC, Huang TY, Chen TY, Boonyarat P, Chang YC. 2023; Clinical narrative-aware deep neural network for emergency department critical outcome prediction. J Biomed Inform. 138:104284. DOI: 10.1016/j.jbi.2023.104284. PMID: 36632861.
Article
17. Ueno R, Xu L, Uegami W, Matsui H, Okui J, Hayashi H, et al. 2020; Value of laboratory results in addition to vital signs in a machine learning algorithm to predict in-hospital cardiac arrest: A single-center retrospective cohort study. PLoS One. 15:e0235835. DOI: 10.1371/journal.pone.0235835. PMID: 32658901. PMCID: PMC7357766. PMID: 11edd5cf72e74d58b9488a95fdeb6345.
Article
18. Chae M, Han S, Gil H, Cho N, Lee H. 2021; Prediction of In-Hospital Cardiac Arrest Using Shallow and Deep Learning. Diagnostics (Basel). 11:DOI: 10.3390/diagnostics11071255. PMID: 34359337. PMCID: PMC8307337. PMID: 4bed9da20e7b46c8858cdce4cd0293f8.
Article
19. Choi A, Choi SY, Chung K, Chung HS, Song T, Choi B, et al. 2023; Development of a machine learning-based clinical decision support system to predict clinical deterioration in patients visiting the emergency department. Sci Rep. 13:8561. DOI: 10.1038/s41598-023-35617-3. PMID: 37237057. PMCID: PMC10220080. PMID: b740ad01f7e94b0ea9945a9038ae7e97.
Article
20. Kim S, Min WK. 2025; Toward High-Quality Real-World Laboratory Data in the Era of Healthcare Big Data. Ann Lab Med. 45:1–11. DOI: 10.3343/alm.2024.0258. PMID: 39344148. PMCID: PMC11609703.
Article
21. Choi IY, Kim TM, Kim MS, Mun SK, Chung YJ. 2013; Perspectives on clinical informatics: integrating large-scale clinical, genomic, and health information for clinical care. Genomics Inform. 11:186–90. DOI: 10.5808/GI.2013.11.4.186. PMID: 24465229. PMCID: PMC3897845. PMID: c60f8762a0f24f5a9a911dc9e37c5857.
Article
22. Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. 2011; Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 12:2825–30.
23. Fluss R, Faraggi D, Reiser B. 2005; Estimation of the Youden Index and its associated cutoff point. Biom J. 47:458–72. DOI: 10.1002/bimj.200410135. PMID: 16161804.
Article
Full Text Links
  • ALM
Actions
Cited
CITED
export Copy
Close
Share
  • Twitter
  • Facebook
Similar articles
Copyright © 2025 by Korean Association of Medical Journal Editors. All rights reserved.     E-mail: koreamed@kamje.or.kr