Modelling in-hospital length of stay: A comparison of linear and ensemble models for competing risk analysis
Length of Stay (LoS) for in-hospital patients is a relevant indicator of efficiency in healthcare. Moreover, it is often related to the occurrence of hospital-acquired complications. In this work, we aim to explore time-to-event analysis for modelling LoS. We employed competing risk models (CR), as we considered two mutually exclusive outcomes: favorable discharge and deterioration. The explanatory variables included the patient's sex, age, and longitudinal vital signs collected from a dataset comprising [Formula: see text] admissions. To address sparse measurements, we transformed longitudinal vital signs into cross-sectional statistics. Our approach involves data pre-processing, imputation of missing data, and variable selection. We proposed four types of CR models: Cause-specific Cox, Sub-distribution hazard, and two variants of Random Survival Forests, with both generalised Log-Rank test (cause-specific hazard estimates) and Gray's test (cumulative incidences estimations) as node splitting rules. Performance in LoS CR models was evaluated over a time frame from 2 to 15 days. Additionally, we considered baselines with two well-established clinical early warning scores the National Early Warning Score (NEWS) and the Modified Early Warning Score (MEWS). The best model was Random Survival Forest using Gray's test split, with Integrated Brier Score[×100] of 0.386, C-Index above 99%, and Brier Score below 0.006, along the entire time frame. Employing cross-sectional statistics derived from vital signs, along with rigorous data pre-processing, outperformed the degree of correctness of modelling LoS, compared to NEWS and MEWS.
Authors
- María José Legarreta (ORCID: https://orcid.org/0000-0002-1778-5196)
- Juan Carlos Espinosa Moreno (ORCID: https://orcid.org/0000-0002-4906-0798)
- Susana García‐Gutiérrez (ORCID: https://orcid.org/0000-0002-8474-2479)
- Dae‐Jin Lee (ORCID: https://orcid.org/0000-0002-8995-8535)
- Fernando García-García (ORCID: https://orcid.org/0000-0001-6605-9038)
- Naia Mas-Bilbao (ORCID: https://orcid.org/0000-0003-4308-2723)
Institutions
- IE University (ES)
- University of the Basque Country (ES)
- Basque Center for Applied Mathematics (ES)
- BioCruces Health research Institute (ES)
- Red de Investigación en Actividades Preventivas y Promoción de la Salud (ES)
- Hospital de Galdakao (ES)
- Fundación Biofísica Bizkaia (ES)
Publication Details
- Journal
- PLoS ONE
- Published
- 2025-08-26
- DOI
- https://doi.org/10.1371/journal.pone.0322101
- Primary Topic
- Sepsis Diagnosis and Treatment
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Eusko Jaurlaritza
- European Regional Development Fund
- Agencia Estatal de Investigación