Predicting Waiting Times for Medical Tasks in a Pediatric Hospital Using Machine Learning: Comprehensive, Retrospective, Real-World Study
JMIR Medical Informatics · 2025
DOI: 10.2196/77297 ↗At a glance
Journal article in JMIR Medical Informatics, 2025. Written by Lin Lin Guo and 8 co-authors. Institution: Capital Center for Children's Health, Capital Medical University, No.2 Yabao Road, ChaoYang District, Beijing, 100020, China, 86 18380382165. Major MEDLINE topics: Machine Learning, Hospitals, Pediatric, Waiting Lists. Cited 3 times so far (Crossref); 38 references. The full text is freely available in PubMed Central.
Abstract (original language)
Background
The shortage of pediatric medical resources and overcrowding in children’s hospitals are severe issues in China. Accurately predicting waiting times can help optimize hospital operational efficiency.
Objective
This study aims to develop machine learning models to predict waiting times for various laboratory and radiology examinations at a pediatric hospital.
Methods
Time stamp data from laboratory and radiology examinations were retrospectively collected from the pediatric hospital information system between November 1, 2024, and March 13, 2025. Two queue-related and 4 time-based features were extracted using queue theory. Linear regression and 8 machine learning models were trained to predict waiting times for each medical task. Hyperparameters were fine-tuned using randomized search and 10-fold cross-validation, and the bootstrap method was used for model evaluation. Mean absolute error, mean square error, root mean square error, and the coefficient of determination ( R ²) were used as evaluation metrics. Shapley additive explanations values were used to assess feature importance.
Results
A total of 230,864 time-stamped records were included after data preprocessing. The median waiting time was 4.817 (IQR 1.867-12.050) minutes for all medical tasks. Waiting times for radiology examinations were generally longer than those for laboratory tests. Tree-based algorithms, such as random forest and classification and regression trees, performed best in predicting laboratory test waiting times, with R ² values ranging from mean 0.880(SD 0.003) to mean 0.934 (SD 0.003). However, the machine learning models did not perform well in predicting radiology examination waiting times, with R 2 ranging from 0.114 (SD 0.005) to 0.719 (SD 0.004). Feature importance analysis revealed that queue-related predictors, especially the number of queuing patients, were the most important in predicting waiting times.
Conclusions
Task-specific prediction models are more appropriate for accurately predicting waiting times across various medical tasks. Guided by queue theory principles, we developed machine learning models for the waiting time prediction of each medical task and highlighted the importance of queue-related predictors.
Subjects
MeSH terms (MEDLINE)
Author keywords
Authors and institutions
- Capital Center for Children's Health, Capital Medical University, No.2 Yabao Road, ChaoYang District, Beijing, 100020, China, 86 18380382165.
- Institute of Medical Information, Chinese Academy of Medical Sciences and Peking Union Medical College, Beijing, China.
ORCID profiles: Lin Lin Guo, Rui Tang, Jia Yang Wang, Si Zheng, Yin Zeng, Jun Hou, Mo Chen Dong, Jiao Li, Ying Cui
Cite
APA
Guo, L. L., Tang, R., Wang, J. Y., Zheng, S., Zeng, Y., Hou, J., Dong, M. C., Li, J., & Cui, Y. (2025). Predicting Waiting Times for Medical Tasks in a Pediatric Hospital Using Machine Learning: Comprehensive, Retrospective, Real-World Study. JMIR Medical Informatics. https://doi.org/10.2196/77297
Vancouver
Guo LL, Tang R, Wang JY, Zheng S, Zeng Y, Hou J, et al. Predicting Waiting Times for Medical Tasks in a Pediatric Hospital Using Machine Learning: Comprehensive, Retrospective, Real-World Study. JMIR Medical Informatics. 2025. doi:10.2196/77297
BibTeX
@article{Guo2025,
author = {Guo, Lin Lin and Tang, Rui and Wang, Jia Yang and Zheng, Si and Zeng, Yin and Hou, Jun and Dong, Mo Chen and Li, Jiao and Cui, Ying},
title = {Predicting Waiting Times for Medical Tasks in a Pediatric Hospital Using Machine Learning: Comprehensive, Retrospective, Real-World Study},
journal = {JMIR Medical Informatics},
year = {2025},
doi = {10.2196/77297}
}
EUVIMED