Predicting Hospital Length of Stay After ICU Admission for Sepsis: A Discrete-Time Competing-Risks Model

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.

Authors

Institutions

Publication Details

Journal
medRxiv
Published
2026-12-03
DOI
https://doi.org/10.64898/2026.12.01.26368844
Primary Topic
Sepsis Diagnosis and Treatment
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Predicting Hospital Length of Stay After ICU Admission for Sepsis: A Discrete-Time Competing-Risks Model

Ahad K. Ardabili, Anthony S. Bonavia
medRxiv
Sepsis Diagnosis and Treatment
preprint

Predicting Hospital Length of Stay After ICU Admission for Sepsis: A Discrete-Time Competing-Risks Model

Ahad K. Ardabili, Anthony S. Bonavia
preprint en

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.

medRxiv
Pennsylvania State University (US), Penn State Milton S. Hershey Medical Center (US)
Sepsis Diagnosis and Treatment
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.

Laika access coming soon