DOI: 10.1093/eurpub/ckag169.844 ISSN: 1464-360X

AI/ML models for heart failure in-hospital mortality prediction using RWE: a retrospective cohort

JM Diniz, S Duarte, A Dionísio, A Freitas, MH Almeida, AC Fernandes, JC Queimado, P Sousa

Abstract

Background

Heart failure (HF) represents a major public health challenge in Portugal, associated with high mortality and healthcare costs. This study aimed to develop and validate artificial intelligence models to predict in-hospital mortality among HF patients at the Baixo Alentejo Local Health Unit, using integrated primary and hospital care data from 2017-2023.

Methods

In this retrospective observational study, we analysed 7,462 adult HF patients using data from primary care records and hospital admissions. Models were developed using various machine learning approaches (Neural Networks, LightGBM, XGBoost) incorporating clinical, sociodemographic, and deprivation index data. Performance was evaluated using AUROC, AUPRC, and other metrics, with 10-fold cross-validation.

Results

The cohort, 54.9% female, median age 81, showed 5-year survival of 68.5%. Of 5,796 hospital admissions, 1,135 resulted in death. Only 46.6% of hospitalized patients had HF documented in primary care. The best-performing models (LightGBM and XGBoost) achieved AUROC values up to 0.98, with age, recent clinical monitoring, NT-proBNP levels, and comorbidities as key predictors. Different imputation strategies and SMOTE balancing were evaluated, with Reference and Median imputation methods showing superior performance.

Conclusions

This pioneering study in Portugal demonstrates the potential of machine learning to predict HF mortality using routinely collected healthcare data. The robust performance of our models suggests their potential utility in clinical settings, while highlighting opportunities for improving care integration between primary and hospital services. Further validation in other Portuguese healthcare organizations is necessary.

Key messages

• This study demonstrates that machine learning models can effectively predict in-hospital mortality for HF patients using routinely collected Portuguese healthcare data.

• The finding that only 46.6% of hospitalised patients had HF documented in primary care highlights important care integration gaps.

More from our Archive