Predicting heart failure using MIMIC-IV and MIMIC-IV-ED: a comparative study of machine learning and deep learning models

Heart failure (HF) is a leading cause of morbidity and mortality worldwide, yet early identification remains a challenge in clinical practice. This study presents a comprehensive comparison of machine learning (ML) and deep learning (DL) models for HF prediction using large-scale, International Classification of Diseases (ICD)-coded cohorts derived from the MIMIC-IV and MIMIC-IV-ED databases. A total of 17,892 adult patients were included, comprising 9,373 HF cases and 8,519 non-HF controls. Structured clinical variables were extracted from electronic health records (EHR), while unstructured admission notes were encoded using BioClinicalBERT and integrated via dimensionality reduction. Rigorous preprocessing was applied, including outlier handling, feature selection guided by clinical guidelines, data imputation, and Z-score standardization. We evaluated multiple ML models (Random Forest (RF), Logistic Regression (LR), Decision Tree (DT), Naïve Bayes (NB), adaptive boosting) and DL models (Multilayer Perceptron (MLP), Convolutional Neural Network (CNN), Dense Neural Network (DNN)). Model performance was assessed using accuracy, precision, recall, F1-score, and area under the receiver operating characteristic (AUROC) with 95% confidence intervals (CI) estimated via bootstrap resampling. Among all models, Random Forest (RF) achieved the best overall performance (accuracy = 0.8994, AUROC = 0.9659), consistently outperforming both traditional ML and DL approaches. An ablation study demonstrated that incorporating bidirectional encoder representations from transformers (BERT)-derived admission note embeddings substantially improved RF performance but yielded more modest gains for neural models. A sensitivity analysis including patients with other heart-related conditions in the control group confirmed the robustness of the proposed framework under more clinically realistic settings. Overall, the findings of this study highlight the strong utility of ensemble-based ML models for structured EHR data and provide empirical insights into the model-dependent value of unstructured clinical text for HF risk stratification. Future work should validate these models externally and explore more advanced multimodal fusion strategies for clinical deployment.

Authors

Institutions

Publication Details

Journal
PeerJ Computer Science
Published
2026-04-06
DOI
https://doi.org/10.7717/peerj-cs.3743
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting heart failure using MIMIC-IV and MIMIC-IV-ED: a comparative study of machine learning and deep learning models

Lik Voon Kiew, Jing Ru Teoh, Jeannie Hsiu Ding Wong, Khairunnisa Hasikin‬ et al.
PeerJ Computer Science
Machine Learning in Healthcare
article

Predicting heart failure using MIMIC-IV and MIMIC-IV-ED: a comparative study of machine learning and deep learning models

Lik Voon Kiew, Jing Ru Teoh, Jeannie Hsiu Ding Wong, Khairunnisa Hasikin‬, Kee Wei Lee, Khin Wee Lai, Wei Lin Ng, Xiang Wu
article en

Abstract

Heart failure (HF) is a leading cause of morbidity and mortality worldwide, yet early identification remains a challenge in clinical practice. This study presents a comprehensive comparison of machine learning (ML) and deep learning (DL) models for HF prediction using large-scale, International Classification of Diseases (ICD)-coded cohorts derived from the MIMIC-IV and MIMIC-IV-ED databases. A total of 17,892 adult patients were included, comprising 9,373 HF cases and 8,519 non-HF controls. Structured clinical variables were extracted from electronic health records (EHR), while unstructured admission notes were encoded using BioClinicalBERT and integrated via dimensionality reduction. Rigorous preprocessing was applied, including outlier handling, feature selection guided by clinical guidelines, data imputation, and Z-score standardization. We evaluated multiple ML models (Random Forest (RF), Logistic Regression (LR), Decision Tree (DT), Naïve Bayes (NB), adaptive boosting) and DL models (Multilayer Perceptron (MLP), Convolutional Neural Network (CNN), Dense Neural Network (DNN)). Model performance was assessed using accuracy, precision, recall, F1-score, and area under the receiver operating characteristic (AUROC) with 95% confidence intervals (CI) estimated via bootstrap resampling. Among all models, Random Forest (RF) achieved the best overall performance (accuracy = 0.8994, AUROC = 0.9659), consistently outperforming both traditional ML and DL approaches. An ablation study demonstrated that incorporating bidirectional encoder representations from transformers (BERT)-derived admission note embeddings substantially improved RF performance but yielded more modest gains for neural models. A sensitivity analysis including patients with other heart-related conditions in the control group confirmed the robustness of the proposed framework under more clinically realistic settings. Overall, the findings of this study highlight the strong utility of ensemble-based ML models for structured EHR data and provide empirical insights into the model-dependent value of unstructured clinical text for HF risk stratification. Future work should validate these models externally and explore more advanced multimodal fusion strategies for clinical deployment.

PeerJ Computer ScienceVol. 12
University Malaya Medical Centre (MY), Xuzhou Medical College (CN), University of Malaya (MY)
Good health and well-being
Openalex Percentile: Top 30%
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.