{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T13:09:21Z","timestamp":1788959361678,"version":"build-2803163510"},"reference-count":28,"publisher":"MDPI AG","issue":"5","license":[{"start":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T00:00:00Z","timestamp":1788912000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Med. Sci.","Medical Sciences"],"abstract":"<jats:p>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\u20132.15; MAE: 1.08 days, 95% CI: 0.80\u20131.42; P20: 58.7%, 95% CI: 46.0\u201369.8), significantly outperforming XGBoost (p = 0.03 for RMSE). BART demonstrated comparable accuracy (RMSE: 1.57 days, 95% CI: 1.21\u20132.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 \u22656 days (RMSE: 4.13 days, P20: 0%). Sensitivity analysis confirmed robustness of imputation (Spearman\u2019s rho: 0.782\u20130.927). Conclusions: ML models, particularly Random Forest, predict LOS in pediatric appendicitis using clinical features. XAI provides clinically interpretable insights.<\/jats:p>","DOI":"10.3390\/medsci14050556","type":"journal-article","created":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T12:26:11Z","timestamp":1788956771000},"page":"556","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["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"],"prefix":"10.3390","volume":"14","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3811-6503","authenticated-orcid":false,"given":"Kannan","family":"Sridharan","sequence":"first","affiliation":[{"name":"Department of Pharmacology & Therapeutics, College of Medicine & Health Sciences, Arabian Gulf University, Manama P.O. Box 26671, Bahrain"}],"role":[{"vocabulary":"crossref","role":"author"},{"role":"conceptualization","vocabulary":"credit"},{"role":"formal-analysis","vocabulary":"credit"},{"role":"writing-original-draft","vocabulary":"credit"},{"role":"project-administration","vocabulary":"credit"},{"role":"methodology","vocabulary":"credit"},{"role":"investigation","vocabulary":"credit"},{"role":"writing-review-editing","vocabulary":"credit"},{"role":"software","vocabulary":"credit"},{"role":"resources","vocabulary":"credit"},{"role":"visualization","vocabulary":"credit"},{"role":"validation","vocabulary":"credit"},{"role":"data-curation","vocabulary":"credit"}]},{"given":"Gowri","family":"Sivaramakrishnan","sequence":"additional","affiliation":[{"name":"Bahrain Defence Force Royal Medical Services, Riffa P.O. Box 28743, Bahrain"}],"role":[{"vocabulary":"crossref","role":"author"},{"role":"formal-analysis","vocabulary":"credit"},{"role":"writing-original-draft","vocabulary":"credit"},{"role":"investigation","vocabulary":"credit"},{"role":"methodology","vocabulary":"credit"},{"role":"writing-review-editing","vocabulary":"credit"},{"role":"software","vocabulary":"credit"},{"role":"resources","vocabulary":"credit"},{"role":"data-curation","vocabulary":"credit"}]}],"member":"1968","published-online":{"date-parts":[[2026,9,9]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"e2023484","DOI":"10.1001\/jamanetworkopen.2020.23484","article-title":"Trends in appendicitis and perforated appendicitis prevalence in children in the United States, 2001\u20132015","volume":"3","author":"Gray","year":"2020","journal-title":"JAMA Netw. Open"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"373","DOI":"10.3928\/01477447-20200910-02","article-title":"The effect of length of hospital stay and patient factors on patient satisfaction in an academic hospital","volume":"43","author":"Diwan","year":"2020","journal-title":"Orthopedics"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"205","DOI":"10.1016\/j.jhin.2004.06.003","article-title":"Comparative impact of hospital-acquired infections on medical costs, length of hospital stay and outcome between community hospitals and medical centres","volume":"59","author":"Sheng","year":"2005","journal-title":"J. Hosp. Infect."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"2809","DOI":"10.1287\/msom.2021.0971","article-title":"Predicting inpatient flow at a major hospital using interpretable analytics","volume":"24","author":"Bertsimas","year":"2022","journal-title":"Manuf. Serv. Oper. Manag."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Almeida, G., Brito Correia, F., Borges, A.R., and Bernardino, J. (2024). Hospital length-of-stay prediction using machine learning algorithms\u2014A literature review. Appl. Sci., 14.","DOI":"10.3390\/app142210523"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"2175","DOI":"10.1175\/BAMS-D-18-0195.1","article-title":"Making the black box more transparent: Understanding the physical implications of machine learning","volume":"100","author":"McGovern","year":"2019","journal-title":"Bull. Am. Meteorol. Soc."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"2070","DOI":"10.1111\/ans.18610","article-title":"Artificial intelligence for predicting acute appendicitis: A systematic review","volume":"93","author":"Lam","year":"2023","journal-title":"ANZ J. Surg."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Marcinkevics, R., Reis Wolfertstetter, P., Wellmann, S., Knorr, C., and Vogt, J.E. (2021). Using machine learning to predict the diagnosis, management and severity of pediatric appendicitis. Front. Pediatr., 9.","DOI":"10.3389\/fped.2021.662183"},{"key":"ref_9","unstructured":"(2026, May 09). UC Irvine Machine Learning Repository. Regensburg Pediatric Appendicitis. Available online: https:\/\/archive.ics.uci.edu\/dataset\/938\/regensburg+pediatric+appendicitis."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"557","DOI":"10.1016\/S0196-0644(86)80993-3","article-title":"A practical score for the early diagnosis of acute appendicitis","volume":"15","author":"Alvarado","year":"1986","journal-title":"Ann. Emerg. Med."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"877","DOI":"10.1053\/jpsu.2002.32893","article-title":"Pediatric appendicitis score","volume":"37","author":"Samuel","year":"2002","journal-title":"J. Pediatr. Surg."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"390","DOI":"10.1136\/bmjebm-2025-113825","article-title":"Reporting guideline for the use of Generative Artificial intelligence tools in MEdical Research: The GAMER Statement","volume":"30","author":"Luo","year":"2025","journal-title":"BMJ Evid.-Based Med."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"362","DOI":"10.1213\/ANE.0000000000005593","article-title":"Multicollinearity in logistic regression models","volume":"133","author":"Bayman","year":"2021","journal-title":"Anesth. Analg."},{"key":"ref_14","first-page":"331","article-title":"Investigating the Impact of Train\/Test Split Ratio on the Performance of Pre-Trained Models with Custom Datasets","volume":"15","author":"Bichri","year":"2024","journal-title":"Int. J. Adv. Comput. Sci. Appl."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"5","DOI":"10.1023\/A:1010933404324","article-title":"Random forests","volume":"45","author":"Breiman","year":"2001","journal-title":"Mach. Learn."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Chen, T., and Guestrin, C. (2016, January 13). Xgboost: A scalable tree boosting system. Proceedings of the 22nd Acm Sigkdd International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA.","DOI":"10.1145\/2939672.2939785"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"266","DOI":"10.1214\/09-AOAS285","article-title":"BART: Bayesian Additive Regression Trees","volume":"4","author":"Chipman","year":"2010","journal-title":"Ann. Appl. Stat."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"3628","DOI":"10.1007\/s00464-020-07841-9","article-title":"Predictors for prolonged length of stay after laparoscopic appendectomy for complicated acute appendicitis in adults","volume":"35","year":"2021","journal-title":"Surg. Endosc."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"1355","DOI":"10.1007\/s00068-023-02225-9","article-title":"Risk factors for postoperative morbidity, prolonged length of stay and hospital readmission after appendectomy for acute appendicitis","volume":"49","author":"Maak","year":"2023","journal-title":"Eur. J. Trauma Emerg. Surg."},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Angela Trunfio, T., Scala, A., Giglio, C., Rossi, G., Borrelli, A., Gargiulo, P., and Romano, M. (2021, January 13). Modelling the hospital length of stay for patients undergoing laparoscopic appendectomy through a Multiple Regression Model. Proceedings of the 2021 International Symposium on Biomedical Engineering and Computational Biology, Nanchang, China.","DOI":"10.1145\/3502060.3503644"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"12772","DOI":"10.1038\/s41598-024-63513-x","article-title":"Applying an explainable machine learning model might reduce the number of negative appendectomies in pediatric patients with a high probability of acute appendicitis","volume":"14","author":"Males","year":"2024","journal-title":"Sci. Rep."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"162151","DOI":"10.1016\/j.jpedsurg.2024.162151","article-title":"Machine-learning-assisted preoperative prediction of pediatric appendicitis severity","volume":"60","author":"Erman","year":"2025","journal-title":"J. Pediatr. Surg."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Kendall, J., Gaspar, G., Berger, D., and Levman, J. (2025). Machine learning and feature selection in pediatric appendicitis. Tomography, 11.","DOI":"10.3390\/tomography11080090"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Turki, A., Raml, E., and Aboulola, J.E. (2026). Explainable Machine Learning for Predicting Complicated Appendicitis and Expected Hospital Length of Stay in Children: An Exploratory Single-Center Study. Medicina, 62.","DOI":"10.3390\/medicina62081438"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Liu, M., Yang, P., Gou, Y., Chen, Q., and Xu, D. (2024). Nomogram prediction model for length of hospital stay following laparoscopic appendectomy in pediatric patients: A retrospective study. Front. Pediatr., 12.","DOI":"10.3389\/fped.2024.1441263"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Liu, M., Yang, P., and Gou, Y. (2024). Non-linear association between C-reactive protein levels and length of stay in pediatric appendicitis patients undergoing laparoscopic appendectomy. Front. Pediatr., 12.","DOI":"10.3389\/fped.2024.1464193"},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"757","DOI":"10.1097\/PEC.0000000000001278","article-title":"Revisiting the appendiceal diameter via ultrasound for the diagnosis of acute appendicitis","volume":"34","author":"Chicaiza","year":"2018","journal-title":"Pediatr. Emerg. Care"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"300","DOI":"10.1089\/sur.2023.370","article-title":"Ultrasound assessment in children with suspected appendicitis: Time to revise diagnostic criteria: A prospective cohort study","volume":"25","author":"Zouari","year":"2024","journal-title":"Surg. Infect."}],"container-title":["Medical Sciences"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2076-3271\/14\/5\/556\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T12:57:26Z","timestamp":1788958646000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2076-3271\/14\/5\/556"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,9,9]]},"references-count":28,"journal-issue":{"issue":"5","published-online":{"date-parts":[[2026,9]]}},"alternative-id":["medsci14050556"],"URL":"https:\/\/doi.org\/10.3390\/medsci14050556","relation":{},"ISSN":["2076-3271"],"issn-type":[{"value":"2076-3271","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,9,9]]}}}