Predicting Hospital Length of Stay After ICU Admission for Sepsis: A Discrete-Time Competing-Risks Model
Year: 2026
Type: preprint
Abstract: Background: Accurate forecasting of ICU discharge timing is critical for capacity planning, yet conventional binary or multinomial performance metrics ignore the natural ordering of departure days and can mi‑represent clinically relevant errors. Recent systematic reviews have highlighted the promise, and the methodological challenges, of AI‑based length‑of‑stay (LoS) prediction tools. Proper scoring rules that respect category order, such as the ranked probability score (RPS), are needed to evaluate probabilistic forecastsS. Objective: To develop a probabilistic multi‑day ICU discharge model using tree‑based machine learning and to assess its discrimination, calibration, and transportability with strictly proper scoring rules. Methods: We used adult ICU admissions from the MIMIC‑IV database for development (n≈58 000) and the eICU Collaborative Research Database for external validation (n≈32 000). Demographics, admission diagnoses, vital signs, laboratory values, and treatment variables collected in the first 24 h were extracted; comorbidities were defined using ICD‑9/10 coding algorithms. Gradient‑boosted decision trees (XGBoost) were trained with minimal hyper‑parameter tuning, exploiting their robustness to uninformative features and irregular relationships. Missing values were handled natively during tree construction. The model output a probability distribution across ordered discharge‑day categories. Primary performance was measured with the RPS; secondary metrics included log‑loss, Brier score, calibration slope/intercept, and the Integrated Calibration Index (ICI) within a calibration hierarchy framework. Results: In internal validation the model achieved an RPS of 0.13 (95 % CI 0.12 - 0.14), compared with 0.22 for a baseline multinomial logistic regression, and log‑loss/Brier scores of 0.58/0.19 respectively. External validation yielded an RPS of 0.15 (95 % CI 0.14 - 0.16); calibration slope after simple recalibration was 1.02 (intercept -0.03) and ICI indicated good overall agreement. Performance declined modestly when the model was transported without refitting (ΔRPS ≤ 0.02), but local recalibration restored distributional accuracy, consistent with prior observations that transportability often requires site specific calibration. Discrimination for prolonged stay (≥14 days) was lower in eICU CRD than in MIMIC IV, whereas discrimination for in hospital death remained strong, reflecting differences in case mix and outcome prevalence across settings. Conclusions: Gradient‑boosted trees provide accurate, well‑calibrated probabilistic forecasts of ICU discharge while naturally handling missing EHR data. Employing the RPS ensures that evaluation aligns with the ordered nature of discharge outcomes, and external validation demonstrates satisfactory model transportability across heterogeneous hospital settings. This framework can support real‑time capacity planning and improve resource allocation in critical care environments.
Source: medRxiv
Authors: Ahad Khaleghi Ardabili, Anthony S Bonavia
Language: English
Field: Medicine
Domain: Health Sciences
Open Access status: green
OpenAlex ID: W7242521601
Cites:
Cited by:
Related to:
