Machine Learning-Predicted Length of Hospital Stay in Pediatric Appendicitis: An Exploratory Comparative Study of Clinical and Ultrasound-Based Models with Explainable Artificial Intelligence and Bayesian Analysis.
Kannan Sridharan, Gowri Sivaramakrishnan
Department of Pharmacology & Therapeutics, College of Medicine & Health Sciences, Arabian Gulf University, Manama P.O. Box 26671, Bahrain. · Bahrain Defence Force Royal Medical Services, Riffa P.O. Box 28743, Bahrain.
Key points
From the paper's conclusion- This study aimed to explore the potential of machine learning (ML) models for predicting LOS using clinical and ultrasound features, compare the added value of ultrasound findings, and provide interpretable insights using explainable artificial intelligence (XAI) and Bayesian analysis.
Abstract
Background: Accurate prediction of hospital length of stay (LOS) in pediatric appendicitis is essential for optimizing resource allocation, guiding discharge planning, and improving patient outcomes. This study aimed to explore the potential of machine learning (ML) models for predicting LOS using clinical and ultrasound features, compare the added value of ultrasound findings, and provide interpretable insights using explainable artificial intelligence (XAI) and Bayesian analysis. Methods: A retrospective cohort of 323 pediatric patients with uncomplicated appendicitis was analyzed from publicly available open-access data from the UCI Machine Learning Repository. Clinical-only and clinical-plus-ultrasound feature sets were used to train Random Forest, XGBoost, and Bayesian Additive Regression Trees (BART) models. Performance was evaluated using mean absolute error (MAE), root mean square error (RMSE), mean absolute percentage error (MAPE), and P20 (percentage of predictions within 20% of actual values) with 95% confidence intervals (CIs) from bootstrap resampling. XAI analysis was employed for model interpretability, with exploratory, hypothesis-generating subgroup analyses and sensitivity analyses conducted across patient demographics and imputation strategies. Results: The Random Forest clinical model achieved the best performance (RMSE: 1.66 days, 95% CI: 1.20-2.15; MAE: 1.08 days, 95% CI: 0.80-1.42; P20: 58.7%, 95% CI: 46.0-69.8), significantly outperforming XGBoost (p = 0.03 for RMSE). BART demonstrated comparable accuracy (RMSE: 1.57 days, 95% CI: 1.21-2.12). SHAP analysis identified absence of peritonitis and appendix diameter as the most influential predictors. Subgroup analysis revealed a potentially better performance in female patients (RMSE: 1.21 days, P20: 75.8%) but poor accuracy for prolonged LOS ≥6 days (RMSE: 4.13 days, P20: 0%). Sensitivity analysis confirmed robustness of imputation (Spearman's rho: 0.782-0.927). Conclusions: ML models, particularly Random Forest, predict LOS in pediatric appendicitis using clinical features. XAI provides clinically interpretable insights.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Predicting Pediatric Appendicitis: A Comparative Explainable Machine Learning Analysis of Routine Laboratory Parameters.Medical sciences (Basel, Switzerland) · 2026
- PRIMARCH-APP AI: Development and Internal Validation of an Explainable Machine Learning Model for Preoperative Prediction of Complicated Acute Appendicitis.Chirurgia (Bucharest, Romania : 1990) · 2026
- Artificial Intelligence Length-of-Stay Forecasting and Pediatric Surgical CapacityArchives of Pediatrics and Adolescent Medicine · 2026
- Interpretable Machine Learning to support early planning of hospital Length Of StayEuropean Journal of Public Health · 2026
- Do Severity Prediction Models for Paediatric Appendicitis Work in Another Hospital? A Bidirectional External Validation and Local Recalibration Study.Diagnostics (Basel, Switzerland) · 2026
- Machine Learning Applications in Pediatric Ultrasound for Appendicitis Diagnosis and Severity Stratification: A Systematic ReviewSonography · 2026