Back to all papers

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.

September 9, 2026pubmed logopapers

Authors

Sridharan K,Sivaramakrishnan G

Affiliations (2)

  • 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.

Abstract

<b>Background:</b> 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. <b>Methods:</b> 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. <b>Results:</b> 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 (<i>p</i> = 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). <b>Conclusions:</b> ML models, particularly Random Forest, predict LOS in pediatric appendicitis using clinical features. XAI provides clinically interpretable insights.

Topics

AppendicitisMachine LearningLength of StayJournal ArticleComparative Study

Ready to Sharpen Your Edge?

Subscribe to join 11k+ peers who rely on RadAISlice. Get the essential weekly briefing that empowers you to navigate the future of radiology.

We respect your privacy. Unsubscribe at any time.