Claim Missing Document
Check
Articles

Found 1 Documents
Search

Machine Learning Application for Predicting Stroke Patient Length of Stay: A Gradient Boosting Approach Asmuliardi Muluk; Hilal Hamdi; Ibrahim Kucukkoc
Andalasian International Journal of Applied Science, Engineering and Technology Vol. 6 No. 2 (2026): July 2026
Publisher : LPPM Universitas Andalas

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.25077/aijaset.v6i2.336

Abstract

Hospital length of stay (LoS) prediction is critical for operational planning and resource allocation in stroke care. This study developed and validated machine learning models for predicting binary LoS (short <=7 days vs prolonged >7 days) at a Type A teaching hospital in Indonesia. Random Forest and Gradient Boosting algorithms were trained on 250 stroke patients admitted in 2023 and validated on an independent test set of 62 patients, using 42 clinical features. Gradient Boosting achieved 77.4% accuracy, 78.6% sensitivity, 77.8% specificity, and AUC-ROC of 0.849, outperforming Random Forest by 4.8 percentage points (p=0.008). Hyperparameter optimization via grid search improved baseline accuracy from 74.2% to 77.4%. Feature importance analysis identified primary stroke diagnosis (18.7%), serum AST (12.4%), consciousness level (9.8%), patient age (8.6%), and ICU admission (7.3%) as dominant predictors. Cross-validation showed minimal overfitting, confirming strong generalizability. The optimized model demonstrated high computational efficiency (8.6-second training, 1.9-millisecond prediction per patient), suitable for real-time clinical deployment. This study contributes a validated, locally-optimized tool for Indonesian healthcare, supporting operational decisions on bed allocation, rehabilitation planning, and staff scheduling, with broader applicability to similar lower-middle-income healthcare systems.