# A machine learning model exploring the relationship between chronic medication and COVID-19 clinical outcomes

**Authors:** Berta Miró, Natalia Díaz González, Juan-Francisco Martínez-Cerdá, Clara Viñas-Bardolet, Alex Sánchez-Pla, Adrián Sánchez-Montalvá, Marta Miarons

PMC · DOI: 10.1007/s11096-025-01955-7 · International Journal of Clinical Pharmacy · 2025-07-28

## TL;DR

This study uses machine learning to show that certain chronic medications may protect against severe outcomes in COVID-19 patients.

## Contribution

A novel machine learning approach to identify specific chronic medications linked to better or worse COVID-19 outcomes.

## Key findings

- Machine learning models predicted mortality risk with high accuracy (AUCROC 0.89).
- ACE inhibitors and ARBs were associated with lower mortality in older hypertensive patients.
- Metformin showed a protective effect in patients over 65, while DPP-4 inhibitors increased mortality risk in younger patients.

## Abstract

The impact of chronic medication on COVID-19 outcomes has been a topic of ongoing debate since the onset of the pandemic. Investigating how specific long-term treatments influence infection severity and prognosis is essential for optimising patient management and care.

This study aimed to investigate the association between chronic medication and COVID-19 outcomes, using machine learning to identify key medication-related factors.

We analysed 137,835 COVID-19 patients in Catalonia (February–September 2020) using eXtreme Gradient Boosting to predict hospitalisation, ICU admission, and mortality. This was complemented by univariate logistic regression analyses and a sensitivity analysis focusing on diabetes, hypertension, and lipid disorders.

Participants had a mean age of 53 (SD 20) years, with 57% female. The best model predicted mortality risk in 18 to 65-year-olds (AUCROC 0.89, CI 0.85–0.92). Key features identified included the number of prescribed drugs, systemic corticoids, 3-hydroxy-3-methylglutaryl coenzyme A (HMG-CoA) reductase, and hypertension drugs. A sensitivity analysis identified that hypertensive participants over 65 taking angiotensin-converting enzyme (ACE) inhibitors or angiotensin II receptor blockers (ARBs) had lower mortality risk (OR 0.78 CI 0.68–0.92) compared to those on other antihypertensive medication (OR 0.8 CI 0.68–0.95). Treatment with inhibitors of dipeptidyl peptidase 4 was associated to higher mortality in participants aged 18–65, while metformin showed a protective effect in those over 65 (OR 0.79, 95% CI 0.68–0.92).

Machine learning models effectively distinguished COVID-19 outcomes. Patients under ACEi or ARBs or biguanides should continue their prescribed medications, which may offer protection over alternative treatments.

The online version contains supplementary material available at 10.1007/s11096-025-01955-7.

## Linked entities

- **Chemicals:** HMG-CoA (PubChem CID 445127), angiotensin-converting enzyme (PubChem CID 37056), metformin (PubChem CID 4091)
- **Diseases:** diabetes (MONDO:0005015), COVID-19 (MONDO:0100096)

## Full-text entities

- **Genes:** DPP4 (dipeptidyl peptidase 4) [NCBI Gene 1803] {aka ADABP, ADCP2, CD26, DPPIV, TP103}
- **Diseases:** COVID-19 (MESH:D000086382), lipid disorders (MESH:D011017), hypertension (MESH:D006973), infection (MESH:D007239), diabetes (MESH:D003920)
- **Chemicals:** ACEi (-), metformin (MESH:D008687), biguanides (MESH:D001645)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12335402/full.md

## Figures

6 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12335402/full.md

## References

4 references — full list in the complete paper: https://tomesphere.com/paper/PMC12335402/full.md

---
Source: https://tomesphere.com/paper/PMC12335402