Background/Objectives: Despite the increasing rates of disability associated with aging, obesity, and osteoarthritis requiring surgery, optimizing rehabilitation after hospital discharge remains a major challenge and a key determinant of care safety, quality, and sustainability. The aim of this exploratory study is to evaluate the predictive performance of machine learning (ML) models for predicting Inpatient Rehabilitation Length Of Stay (IRLOS), Function in the Activities of Daily Living (FADL) and discharge destination (DD) in patients who underwent total joint replacement for hip and knee osteoarthritis, using Real-World Data routinely collected in a tertiary orthopedic hospital. Methods: 2103 patients were included and temporally split into a development cohort (2019; n = 1711) and a temporal validation cohort (2018; n = 392). A total of 73 routinely collected perioperative variables were used to train multiple ML models, including both black-box and transparent methods. IRLOS and FADL were modeled as regression tasks, while DD was treated as a binary classification task. Model development followed a rigorous pipeline with feature selection, cross-validation, and hyperparameter tuning. Performance was assessed using appropriate metrics and evaluated across joint type (hip/knee) and via temporal validation. Model interpretability was examined using SHAP and model-specific analyses, further supported by clinical analysis. Results: In temporal validation, models achieved modest performance for IRLOS (R2 = 0.17; MAE = 2.52 days) and FADL (R2 = 0.25; MAE = 2.25 days), with no significant performance degradation over time. DD prediction showed good discrimination (AUC = 0.85; balanced accuracy = 0.80) despite outcome imbalance, with high sensitivity (0.92) and negative predictive value (≈1.00), but low positive predictive value (0.09). Performance was stable across hip and knee subgroups. The interpretability analysis further highlighted several key predictors related to perioperative complexity (e.g., surgical duration and transfusion), baseline functional status, and social factors (e.g., living situation and employment), confirming that rehabilitation outcomes are multidimensional and influenced by both medical and non-medical determinants. Conclusions: The analysis identified several relevant predictors related to perioperative complexity, baseline functional status, and social context. The models showed stable behavior across intervention type and across time through temporal validation, suggesting that they capture relevant patterns in rehabilitation pathways, although predictive performance was moderate.

Predictive Factors of Inpatient Rehabilitation Outcomes and Stay: A Machine Learning Study with Temporal Validation / A. Campagner, C.C.. - In: HEALTHCARE. - ISSN 2227-9032. - 14:14(2026 Jul 02), pp. 2176.1-2176.23. [10.3390/healthcare14142167]

Predictive Factors of Inpatient Rehabilitation Outcomes and Stay: A Machine Learning Study with Temporal Validation

C. Cordani
Co-primo
;
S. Negrini;
2026

Abstract

Background/Objectives: Despite the increasing rates of disability associated with aging, obesity, and osteoarthritis requiring surgery, optimizing rehabilitation after hospital discharge remains a major challenge and a key determinant of care safety, quality, and sustainability. The aim of this exploratory study is to evaluate the predictive performance of machine learning (ML) models for predicting Inpatient Rehabilitation Length Of Stay (IRLOS), Function in the Activities of Daily Living (FADL) and discharge destination (DD) in patients who underwent total joint replacement for hip and knee osteoarthritis, using Real-World Data routinely collected in a tertiary orthopedic hospital. Methods: 2103 patients were included and temporally split into a development cohort (2019; n = 1711) and a temporal validation cohort (2018; n = 392). A total of 73 routinely collected perioperative variables were used to train multiple ML models, including both black-box and transparent methods. IRLOS and FADL were modeled as regression tasks, while DD was treated as a binary classification task. Model development followed a rigorous pipeline with feature selection, cross-validation, and hyperparameter tuning. Performance was assessed using appropriate metrics and evaluated across joint type (hip/knee) and via temporal validation. Model interpretability was examined using SHAP and model-specific analyses, further supported by clinical analysis. Results: In temporal validation, models achieved modest performance for IRLOS (R2 = 0.17; MAE = 2.52 days) and FADL (R2 = 0.25; MAE = 2.25 days), with no significant performance degradation over time. DD prediction showed good discrimination (AUC = 0.85; balanced accuracy = 0.80) despite outcome imbalance, with high sensitivity (0.92) and negative predictive value (≈1.00), but low positive predictive value (0.09). Performance was stable across hip and knee subgroups. The interpretability analysis further highlighted several key predictors related to perioperative complexity (e.g., surgical duration and transfusion), baseline functional status, and social factors (e.g., living situation and employment), confirming that rehabilitation outcomes are multidimensional and influenced by both medical and non-medical determinants. Conclusions: The analysis identified several relevant predictors related to perioperative complexity, baseline functional status, and social context. The models showed stable behavior across intervention type and across time through temporal validation, suggesting that they capture relevant patterns in rehabilitation pathways, although predictive performance was moderate.
discharge destination; functional outcomes; hip and knee osteoarthritis; inpatient rehabilitation; length of stay; machine learning; patient stratification
Settore MEDS-26/C - Scienze delle professioni sanitarie della riabilitazione
Settore MEDS-19/B - Medicina fisica e riabilitativa
Settore MEDS-19/A - Malattie dell'apparato locomotore
   Personalized rehabilitation via novel ai patient stratification stategies (PREPARE)
   PREPARE
   EUROPEAN COMMISSION
   101080288
2-lug-2026
17-lug-2026
Article (author)
File in questo prodotto:
File Dimensione Formato  
healthcare-14-02167-v2.pdf

accesso aperto

Tipologia: Publisher's version/PDF
Licenza: Creative commons
Dimensione 2.32 MB
Formato Adobe PDF
2.32 MB Adobe PDF Visualizza/Apri
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2434/1266495
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
  • OpenAlex 0
social impact