Cargando…

Predicting in-hospital length of stay: a two-stage modeling approach to account for highly skewed data

BACKGROUND: In the early stages of the COVID-19 pandemic our institution was interested in forecasting how long surgical patients receiving elective procedures would spend in the hospital. Initial examination of our models indicated that, due to the skewed nature of the length of stay, accurate pred...

Descripción completa

Detalles Bibliográficos
Autores principales: Xu, Zhenhui, Zhao, Congwen, Scales, Charles D., Henao, Ricardo, Goldstein, Benjamin A.
Formato: Online Artículo Texto
Lenguaje:English
Publicado: BioMed Central 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9035272/
https://www.ncbi.nlm.nih.gov/pubmed/35462534
http://dx.doi.org/10.1186/s12911-022-01855-0
Descripción
Sumario:BACKGROUND: In the early stages of the COVID-19 pandemic our institution was interested in forecasting how long surgical patients receiving elective procedures would spend in the hospital. Initial examination of our models indicated that, due to the skewed nature of the length of stay, accurate prediction was challenging and we instead opted for a simpler classification model. In this work we perform a deeper examination of predicting in-hospital length of stay. METHODS: We used electronic health record data on length of stay from 42,209 elective surgeries. We compare different loss-functions (mean squared error, mean absolute error, mean relative error), algorithms (LASSO, Random Forests, multilayer perceptron) and data transformations (log and truncation). We also assess the performance of two stage hybrid classification-regression approach. RESULTS: Our results show that while it is possible to accurately predict short length of stays, predicting longer length of stay is extremely challenging. As such, we opt for a two-stage model that first classifies patients into long versus short length of stays and then a second stage that fits a regresssor among those predicted to have a short length of stay. DISCUSSION: The results indicate both the challenges and considerations necessary to applying machine-learning methods to skewed outcomes. CONCLUSIONS: Two-stage models allow those developing clinical decision support tools to explicitly acknowledge where they can and cannot make accurate predictions. SUPPLEMENTARY INFORMATION: The online version contains supplementary material available at 10.1186/s12911-022-01855-0.