<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">JMIR Med Inform</journal-id><journal-id journal-id-type="publisher-id">medinform</journal-id><journal-id journal-id-type="index">7</journal-id><journal-title>JMIR Medical Informatics</journal-title><abbrev-journal-title>JMIR Med Inform</abbrev-journal-title><issn pub-type="epub">2291-9694</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v13i1e77297</article-id><article-id pub-id-type="doi">10.2196/77297</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Predicting Waiting Times for Medical Tasks in a Pediatric Hospital Using Machine Learning: Comprehensive, Retrospective, Real-World Study</article-title></title-group><contrib-group><contrib contrib-type="author" equal-contrib="yes"><name name-style="western"><surname>Guo</surname><given-names>Lin Lin</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author" equal-contrib="yes"><name name-style="western"><surname>Tang</surname><given-names>Rui</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Wang</surname><given-names>Jia Yang</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Zheng</surname><given-names>Si</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Zeng</surname><given-names>Yin</given-names></name><degrees>BSc</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Hou</surname><given-names>Jun</given-names></name><degrees>BSc</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Dong</surname><given-names>Mo Chen</given-names></name><degrees>BSc</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Li</surname><given-names>Jiao</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Cui</surname><given-names>Ying</given-names></name><degrees>BSc</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib></contrib-group><aff id="aff1"><institution>Capital Center for Children's Health, Capital Medical University</institution><addr-line>No.2 Yabao Road, ChaoYang District</addr-line><addr-line>Beijing</addr-line><country>China</country></aff><aff id="aff2"><institution>Institute of Medical Information, Chinese Academy of Medical Sciences and Peking Union Medical College</institution><addr-line>Beijing</addr-line><country>China</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Benis</surname><given-names>Arriel</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Adewumi</surname><given-names>Gbenga</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Shingru</surname><given-names>Pratik</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Ding</surname><given-names>Xun</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Ying Cui, BSc, Capital Center for Children's Health, Capital Medical University, No.2 Yabao Road, ChaoYang District, Beijing, 100020, China, 86 18380382165; <email>Tracyqiqi2014@126.com</email></corresp><fn fn-type="equal" id="equal-contrib1"><label>*</label><p>these authors contributed equally</p></fn></author-notes><pub-date pub-type="collection"><year>2025</year></pub-date><pub-date pub-type="epub"><day>29</day><month>9</month><year>2025</year></pub-date><volume>13</volume><elocation-id>e77297</elocation-id><history><date date-type="received"><day>11</day><month>05</month><year>2025</year></date><date date-type="rev-recd"><day>25</day><month>07</month><year>2025</year></date><date date-type="accepted"><day>04</day><month>08</month><year>2025</year></date></history><copyright-statement>&#x00A9; Lin Lin Guo, Rui Tang, Jia Yang Wang, Si Zheng, Yin Zeng, Jun Hou, Mo Chen Dong, Jiao Li, Ying Cui. Originally published in JMIR Medical Informatics (<ext-link ext-link-type="uri" xlink:href="https://medinform.jmir.org">https://medinform.jmir.org</ext-link>), 29.9.2025. </copyright-statement><copyright-year>2025</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://medinform.jmir.org/">https://medinform.jmir.org/</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://medinform.jmir.org/2025/1/e77297"/><abstract><sec><title>Background</title><p>The shortage of pediatric medical resources and overcrowding in children&#x2019;s hospitals are severe issues in China. Accurately predicting waiting times can help optimize hospital operational efficiency.</p></sec><sec><title>Objective</title><p>This study aims to develop machine learning models to predict waiting times for various laboratory and radiology examinations at a pediatric hospital.</p></sec><sec sec-type="methods"><title>Methods</title><p>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 (<italic>R</italic>&#x00B2;) were used as evaluation metrics. Shapley additive explanations values were used to assess feature importance.</p></sec><sec sec-type="results"><title>Results</title><p>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 <italic>R</italic>&#x00B2; 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 <italic>R</italic><sup>2</sup> 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.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>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.</p></sec></abstract><kwd-group><kwd>waiting time</kwd><kwd>pediatric hospital</kwd><kwd>machine learning</kwd><kwd>queue</kwd><kwd>medical tasks</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><sec id="s1-1"><title>Background</title><p>Pediatric health care resources are considerably more scarce compared to other medical specialties. From 2015 to 2020, the growth rate of categorical pediatric residency positions in the United States was only 7%, which was far slower than the growth rate of other specialties during that time [<xref ref-type="bibr" rid="ref1">1</xref>]. In China, the lack of resources for pediatric medicine is much more severe. According to national statistical data [<xref ref-type="bibr" rid="ref2">2</xref>], the number of pediatricians per child in China is approximately half that in the United States. Furthermore, China has a very unequal distribution of pediatric experts, with a heavy concentration in developed metropolitan areas [<xref ref-type="bibr" rid="ref3">3</xref>]. This leads to patient clustering and increased overcrowding in tertiary pediatric hospitals. A typical pediatric medical visit consists of multiple steps, including consultation, radiology examination or laboratory tests, and medication dispensing. Excessive waiting times at each of these stages not only reduce patient satisfaction [<xref ref-type="bibr" rid="ref4">4</xref>] but may also contribute to adverse clinical outcomes [<xref ref-type="bibr" rid="ref5">5</xref>,<xref ref-type="bibr" rid="ref6">6</xref>]. Therefore, accurately predicting waiting times and improving operational effectiveness in pediatric hospitals is of critical importance.</p><p>Queue management systems in hospitals can enhance operational efficiency through features such as real-time queue updates, automated notifications, and online appointment scheduling [<xref ref-type="bibr" rid="ref7">7</xref>]. Prior research has examined queue-related issues using techniques such as time series analysis (TSA) [<xref ref-type="bibr" rid="ref8">8</xref>], discrete event simulation [<xref ref-type="bibr" rid="ref9">9</xref>], and queue theory (QT) [<xref ref-type="bibr" rid="ref10">10</xref>]. These methods simulate queue dynamics under various parameters to assess operational performance and identify the optimal resource allocation strategies. However, there are several obstacles to overcome before they may be used in actual health care settings. The application of these approaches is limited in practice because health care queues often deviate from the fundamental assumptions that underlie them, such as known initial probability distributions, exponentially distributed waiting times, or stationary queue states [<xref ref-type="bibr" rid="ref11">11</xref>]. As a result, these models frequently fail to capture the variability and fluctuations inherent in actual queue dynamics, reducing their accuracy in predicting waiting times.</p><p>Machine learning models are developed using data-driven approaches and usually do not require restrictive assumptions. To overcome the drawbacks of conventional techniques, machine learning presents a viable substitute for forecasting wait times in hospital lines. In previous studies, Chen et al [<xref ref-type="bibr" rid="ref12">12</xref>] applied an improved random forest algorithm to predict patient waiting times for each treatment task, such as blood tests, computed tomography (CT) scan, and pharmacy dispensing, and the hospital queuing-recommendation system based on the prediction algorithm reduced waiting times by guiding patient flow. Similarly, Lin et al [<xref ref-type="bibr" rid="ref13">13</xref>] evaluated the performance of several machine learning algorithms for waiting time prediction and selected the best-performing model for prediction in a pediatric ophthalmology outpatient clinic. Chocron et al [<xref ref-type="bibr" rid="ref14">14</xref>] compared machine learning algorithms with classical QT models for waiting time prediction and found that machine learning models produced better predictions than traditional methods in complex real-world scenarios. Therefore, machine learning techniques provide a more reliable way to capture variations in actual queue dynamics and improve the prediction accuracy of waiting time. Furthermore, multitask queues in pediatric hospitals have received less attention in the majority of studies, which have concentrated on emergency departments (EDs) [<xref ref-type="bibr" rid="ref15">15</xref>-<xref ref-type="bibr" rid="ref17">17</xref>] or radiology departments [<xref ref-type="bibr" rid="ref18">18</xref>]. Nevertheless, the operational effectiveness of different medical task windows varies, and research focusing on a specific queue may not adequately capture the dynamics of other hospital medical tasks. A comprehensive investigation of waiting time prediction for different medical tasks can offer deeper insights into the use of medical resources and can be used as an alternative method to support medical resource optimization.</p></sec><sec id="s1-2"><title>Objectives</title><p>This study investigates the dynamic characteristics of multiple medical task queues using real-world data from a large pediatric hospital in northern China. By incorporating principles from QT for feature selection, key features were extracted from actual hospital queue data, and then, we used machine learning techniques to predict waiting times after patient check-in across various medical tasks in the hospital. The predictive performance of different machine learning models is systematically evaluated. Additionally, feature importance analysis is conducted to assess the contribution of individual predictors and to provide insights for optimizing hospital operational efficiency. We also plan to deploy the best-performing model for waiting time prediction to improve the patient experience and help reduce hospital overcrowding in the future.</p></sec></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Problem Definition</title><p>During a hospital visit, patients usually have one or more medical tasks, which are frequently spread out over several hospital departments. For instance, a pediatric patient with an acute respiratory tract infection might undergo a series of steps, starting with a consultation in the respiratory department. After blood sampling and throat swab collection, the patient has an X-ray examination and then returns to the pulmonary department when all diagnostic reports are ready and the physician has ordered medicine. Finally, the patient goes to the pharmacy to pick up the necessary medications.</p><p>As illustrated, there may be unforeseen waiting times at each step of the medical tasks, which can significantly affect the patient&#x2019;s overall experience [<xref ref-type="bibr" rid="ref19">19</xref>]. Furthermore, hospital operational efficiency may be lowered by disorderly queue arrangements. Targeted optimization of medical resource allocation based on key factors influencing waiting time represents a practical and effective strategy. As a result, in actual hospital settings, queue notifications may be provided by predictive algorithms that estimate waiting times with great accuracy, which will assist in reducing patient anxiety.</p></sec><sec id="s2-2"><title>Data Collection</title><p>This study retrospectively collected records of patients who visited the Capital Center for Children&#x2019;s Health, Capital Medical University, between November 1, 2024, and March 13, 2025, for various laboratory tests and radiology examinations; the total raw dataset comprised 326,701 entries. The time stamp of these records was retrieved from the health information system for patients who attended the hospital during this period. The key information is summarized in <xref ref-type="table" rid="table1">Table 1</xref>.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Information extracted from the health information system.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Records name</td><td align="left" valign="bottom">Description</td></tr></thead><tbody><tr><td align="left" valign="top">Patient ID</td><td align="left" valign="top">A unique identifier assigned to each patient during their visit to the hospital</td></tr><tr><td align="left" valign="top">Medical task name</td><td align="left" valign="top">The specific examination conducted during a patient&#x2019;s visit, including throat swab, blood sampling, laboratory test for patients with fever, CT<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup>, MRI<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup>, X-ray, laryngoscopy, ultrasound, and echocardiography</td></tr><tr><td align="left" valign="top">Visit category</td><td align="left" valign="top">The department from which the patient is referred, including outpatient and ED<sup><xref ref-type="table-fn" rid="table1fn3">c</xref></sup></td></tr><tr><td align="left" valign="top">Service location</td><td align="left" valign="top">The specific location where the patient receives medical services</td></tr><tr><td align="left" valign="top">Check-in time</td><td align="left" valign="top">The time when the patient completes check-in upon arriving for a specific medical task</td></tr><tr><td align="left" valign="top">Sampling or examination start time</td><td align="left" valign="top">The time when the patient begins a specific medical examination: the start time of laboratory tests is recorded as the sampling time, while the start time of the radiology examination is recorded as the examination start time</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><p><sup>a</sup>CT: computed tomography.</p></fn><fn id="table1fn2"><p><sup>b</sup>MRI: magnetic resonance imaging.</p></fn><fn id="table1fn3"><p><sup>c</sup>ED: emergency department.</p></fn></table-wrap-foot></table-wrap><p>Following the retrieval of all records, the data were arranged according to the practical medical tasks performed by the institution. In this hospital, the tasks for laboratory tests include throat swab at the first floor (throat swab&#x2013;first floor) and the second floor (throat swab&#x2013;second floor), blood sampling, and laboratory test for patients with fever (laboratory test&#x2013;fever). The radiology examination includes CT, magnetic resonance imaging (MRI), X-ray, laryngoscopy, ultrasound, and echocardiography. Blood sampling, ultrasound, and echocardiography are further divided into outpatient and ED windows at this facility.</p></sec><sec id="s2-3"><title>Ethical Considerations</title><p>All data used in our study was anonymized and deidentified and did not involve data related to humans. Therefore, our research was exempted from the requirement of written informed consent and was approved by the Ethics Committee of the Capital Center for Children's Health, Capital Medical University (SHERLLM2024037).</p></sec><sec id="s2-4"><title>Data Preprocessing</title><p>We define the waiting time as the duration from the patient&#x2019;s check-in to the start of the sampling or examination, as follows:</p><disp-formula id="E1"><label>(1)</label><mml:math id="eqn1"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mtext>Waiting time</mml:mtext><mml:mo>=</mml:mo><mml:mtext>Sampling/Examination start time</mml:mtext><mml:mo>&#x2212;</mml:mo><mml:mtext>Check-in time</mml:mtext></mml:mrow></mml:mstyle></mml:math></disp-formula><p>First, we removed records that do not include the sampling or examination start time and check-in time. Due to the presence of numerous duplicate records in the health information system, we then performed a deduplication procedure on the extracted data. If the patient ID and sampling or examination start time are identical in the records, it will be removed as a redundant duplicate. To avoid negative waiting times, we then removed data when the check-in time is later than the sampling or examination start time. In addition, there may be very long waiting time outliers because some patients may not line up for the medical service window immediately after check-in&#x2014;possibly leaving the hospital for a period or coming back on a subsequent day to continue their tests or examinations. To address this issue, we applied an IQR method to denoise the data using the following criterion:</p><p><inline-formula><mml:math id="ieqn1"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mtext>Noise record</mml:mtext><mml:mo>&#x003E;</mml:mo><mml:mn>75</mml:mn><mml:mi mathvariant="normal">%</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mtext>quantile</mml:mtext><mml:mo>+</mml:mo><mml:mn>1.5</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:mn>75</mml:mn><mml:mi mathvariant="normal">%</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mtext>quantile</mml:mtext><mml:mo>&#x2212;</mml:mo><mml:mn>25</mml:mn><mml:mi mathvariant="normal">%</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mtext>quantile</mml:mtext><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mstyle></mml:math></inline-formula>  (2)</p><p>Records with waiting times exceeding the IQR were classified as noise and discarded. Model development was then conducted using the remaining data.</p></sec><sec id="s2-5"><title>Feature Construction</title><p>Queue-length (QL) predictors and delay-history predictors are the 2 types of predictors used in earlier QT experiments to forecast waiting times [<xref ref-type="bibr" rid="ref20">20</xref>]. While the latter makes predictions based on past waiting times, the former refers to projecting waiting time based on the queue&#x2019;s present status factors. As we have access to the precise time stamps for every patient&#x2019;s test or examination, we make predictions using QL predictors, which comprise the following two categories of features:</p><list list-type="order"><list-item><p>Time-based feature; these include the month, day, hour, and day of the week when a patient undergoes a specific medical task. These indicators can all be derived from the abovementioned records. Given that patient data vary significantly across different periods, these 4 time-related factors were considered as potential predictors.</p></list-item><list-item><p>Queue-related feature; these include the patient arrival rate per hour, calculated by counting the number of patients registering for a particular task each hour, and the number of queuing patients, that is, the number of patients who have checked in but have not yet started the sampling or examination.</p></list-item></list><p>In summary, we selected only 6 indicators, including month, day, hour, day of the week, arrival rate, and the number of queuing patients, to predict the waiting time using a concise set of predictors.</p></sec><sec id="s2-6"><title>Model Development and Feature Importance Analysis</title><p>In our experiment, we use linear regression (LR) as a baseline model and 8 machine learning models for waiting time prediction, including k-nearest neighbor (KNN), support vector regression (SVR), classification and regression tree (CART), elasticNet, random forest (RF), light gradient boosting machine (LightGBM), extreme gradient boosting (XGBoost), and multilayer perceptron (MLP). As the waiting time is a continuous variable, we evaluate the models using the following performance metrics: mean absolute error (MAE), mean square error (MSE), root mean square error (RMSE), and the coefficient of determination (<italic>R</italic>&#x00B2;). Equations 3&#x2013;6 show the formula of MAE, MSE, RMSE, and <italic>R</italic><sup>2</sup>, where the <inline-formula><mml:math id="ieqn2"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the prediction value, the <inline-formula><mml:math id="ieqn3"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mo>-</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the mean value of the waiting time, and the <inline-formula><mml:math id="ieqn4"><mml:msub><mml:mrow><mml:mi mathvariant="normal">y</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the actual value.</p><disp-formula id="E3"><label>(3)</label><mml:math id="eqn2"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>M</mml:mi><mml:mi>A</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:munderover><mml:mfrac><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mover><mml:mi>y</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow><mml:mi>i</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow></mml:mrow><mml:mi>n</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><disp-formula id="E4"><label>(4)</label><mml:math id="eqn3"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:munderover><mml:mfrac><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mrow><mml:mover><mml:mi>y</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow><mml:mi>i</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msup><mml:mo stretchy="false">)</mml:mo><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mi>n</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><disp-formula id="E5"><label>(5)</label><mml:math id="eqn4"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>R</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:msqrt><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:munderover><mml:mfrac><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mrow><mml:mover><mml:mi>y</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow><mml:mi>i</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msup><mml:mo stretchy="false">)</mml:mo><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mi>n</mml:mi></mml:mfrac></mml:msqrt></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><disp-formula id="E6"><label>(6)</label><mml:math id="eqn5"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:msup><mml:mi>R</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mfrac><mml:mrow><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>n</mml:mi></mml:munderover><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mrow><mml:mover><mml:mi>y</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow><mml:mi>i</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msup><mml:mo stretchy="false">)</mml:mo><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>n</mml:mi></mml:munderover><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mover><mml:mi>y</mml:mi><mml:mo stretchy="false">&#x00AF;</mml:mo></mml:mover></mml:mrow><mml:msup><mml:mo stretchy="false">)</mml:mo><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>A randomized search and 10-fold cross-validation were used to fine-tune each model&#x2019;s hyperparameters. The performance of the models was evaluated using the abovementioned metrics, and the model with the best performance across these metrics was selected for prediction. To further evaluate the stability and reliability of the chosen model, a bootstrap approach was applied. MAE, MSE, RMSE, and <italic>R</italic><sup>2</sup> were calculated for each bootstrap sample by comparing the model&#x2019;s predictions with the true values. The 95% CIs for each metric were derived to quantify the uncertainty in the model&#x2019;s predictive performance. Feature contributions to the waiting time prediction were quantified using Shapley additive explanations (SHAP) values [<xref ref-type="bibr" rid="ref21">21</xref>]. For tree-based models, SHAP values were computed directly; for others (KNN and SVR), a background dataset was used to simulate feature absence, allowing for marginal contribution estimation via the KernelExplainer function. The entire research process is shown in <xref ref-type="fig" rid="figure1">Figure 1</xref>. All analyses were performed using Python (version 3.12; Python Software Foundation).</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Flowchart of waiting time prediction. CART: classification and regression tree; HIS: health information system; KNN: k-nearest neighbor; LightGBM: light gradient boosting machine; MLP: multilayer perceptron; RF: random forest; SVR: support vector regression; XGBoost: extreme gradient boosting.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v13i1e77297_fig01.png"/></fig></sec></sec><sec id="s3" sec-type="results"><title>Results</title><sec id="s3-1"><title>Basic Characteristics of the Medical Queue</title><p>From November 1, 2024, to March 13, 2025, a total of 230,864 records were included after preprocessing the raw data. The required tasks were classified into 2 main categories: laboratory tests, which included 5 types of tasks, and radiology examinations, which included 8 types of tasks. The most frequently performed laboratory test was blood sampling for outpatient patients (76,587/230,864, 33.17%), while the most common radiology examination was X-ray (31,125/230,864, 13.48%; <xref ref-type="table" rid="table2">Table 2</xref>).</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Basic characteristics of queuing in different medical tasks (N=230,864).</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="top" colspan="2">Tests and examinations</td><td align="left" valign="top">Tasks, n (%)</td><td align="left" valign="top">Time, range (min)</td><td align="left" valign="top">Time, median (IQR)</td></tr></thead><tbody><tr><td align="left" valign="top" colspan="5">Laboratory test</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Throat swab&#x2014;first floor</td><td align="left" valign="top">26,314 (11.05)</td><td align="left" valign="top">0.017&#x2010;28.4</td><td align="left" valign="top">1.617 (0.483&#x2010;5.799)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Throat swab&#x2014;second floor</td><td align="left" valign="top">13,296 (5.75)</td><td align="left" valign="top">0.017&#x2010;26.967</td><td align="left" valign="top">1.467 (0.417&#x2010;6.971)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Blood sampling&#x2014;ED<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup></td><td align="left" valign="top">23,558 (10.20)</td><td align="left" valign="top">0.150&#x2010;5.533</td><td align="left" valign="top">1.650 (1.049&#x2010;2.483)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Blood sampling&#x2014;outpatient</td><td align="left" valign="top">76,587 (33.17)</td><td align="left" valign="top">0.199&#x2010;25.5</td><td align="left" valign="top">3.225 (2.583&#x2010;10.700)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Laboratory test&#x2014;fever</td><td align="left" valign="top">9533 (4.13)</td><td align="left" valign="top">0.017&#x2010;8.667</td><td align="left" valign="top">1.783 (1.017&#x2010;3.349)</td></tr><tr><td align="left" valign="top" colspan="5">Radiology examination</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Ultrasound&#x2014;ED</td><td align="left" valign="top">22,601 (9.79)</td><td align="left" valign="top">0.199&#x2010;48.050</td><td align="left" valign="top">10.883 (5.283&#x2010;20.717)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Ultrasound&#x2014;outpatient</td><td align="left" valign="top">8031 (3.48)</td><td align="left" valign="top">0.517&#x2010;85.299</td><td align="left" valign="top">23.400 (12.750&#x2010;37.067)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Echocardiography&#x2014;ED</td><td align="left" valign="top">394 (0.17)</td><td align="left" valign="top">0.033&#x2010;9.683</td><td align="left" valign="top">3.958 (3.054&#x2010;5.212)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Echocardiography&#x2014;outpatient</td><td align="left" valign="top">5067 (2.19)</td><td align="left" valign="top">0.550&#x2010;7.983</td><td align="left" valign="top">3.200 (2.600&#x2010;4.167)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Laryngoscope</td><td align="left" valign="top">4856 (2.10)</td><td align="left" valign="top">0.467&#x2010;43.267</td><td align="left" valign="top">11.975 (5.217&#x2010;19.771)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">X-ray</td><td align="left" valign="top">31125 (13.48)</td><td align="left" valign="top">0.065&#x2010;6.566</td><td align="left" valign="top">5.106 (10.872&#x2010;21.852)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">MRI<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="left" valign="top">3324 (1.44)</td><td align="left" valign="top">0.008&#x2010;80.157</td><td align="left" valign="top">8.389 (17.825&#x2010;33.262)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">&#x0421;&#x0422;<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup></td><td align="left" valign="top">6178 (2.68)</td><td align="left" valign="top">0.002&#x2010;19.412</td><td align="left" valign="top">2.406 (3.933&#x2010;6.947)</td></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>ED: emergency department.</p></fn><fn id="table2fn2"><p><sup>b</sup>MRI: magnetic resonance imaging. </p></fn><fn id="table2fn3"><p><sup>c</sup>CT: computed tomography. </p></fn></table-wrap-foot></table-wrap><p>In the laboratory test category, we observed that blood sampling&#x2013;ED (median 1.650, IQR 1.049-2.483 min) had the narrowest waiting time range, while the task for blood sampling&#x2013;outpatient (median 3.225, IQR 2.583-10.700 min) had a relatively extensive waiting time range (<xref ref-type="fig" rid="figure2">Figure 2</xref>). For radiology examinations, the range of waiting time for the echocardiography task was narrow (median 3.958, IQR 3.054-5.212 min for ED; median 3.200, IQR 2.600-4.167 min for outpatient). In contrast, outpatients had to wait much longer for an ultrasound (median 37.067, IQR 12.750-23.400 min; <xref ref-type="fig" rid="figure2">Figure 2</xref>). Compared to laboratory tests, patients experienced longer waiting times in most radiology examinations.</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Box plot of distribution of waiting time. CT: computed tomography; ED: emergency department; MRI: magnetic resonance imaging.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v13i1e77297_fig02.png"/></fig><p>The distribution of waiting time of the total medical task followed an exponential pattern (Figure S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). At different time points, we observed average arrival rate peaks for medical tasks at approximately 10:00 AM, 15:00 PM, and 8:00 PM. Similarly, 3 peaks were also present for the average number of queuing patients across different days of the week (Figures S2 and S3 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). However, the waiting time of patients showed a first earlier peak at approximately 7:00 AM, with 2 lower peaks at approximately 12:00 AM and 8:00 PM (Figure S4 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). In addition, the distribution of waiting time for different medical tasks before and after denoising is shown in Figure S5 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p></sec><sec id="s3-2"><title>Model Evaluation</title><p>We used 8 different models for predicting waiting times before laboratory and radiology tasks, while LR was used as the baseline model. After hyperparameter optimization, the optimal performance of the selected models for different tasks is shown in Table S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>. In 6 medical task queues, RF demonstrated the best predictive performance, with RMSE ranging from 1.925 (SD 0.015) to 2.395 (SD 0.033) for laboratory tests and from 1.217 (SD 0.015) to 15.204 (SD 0.207) for radiology examinations. In addition, XGBoost demonstrated effective performance in predicting waiting times for the throat swab&#x2013;first floor (RMSE: mean 2.395, SD 0.033; <italic>R</italic><sup>2</sup>: mean 0.880, SD 0.003), echocardiography-ED (RMSE: mean 1.224, SD 0.048; <italic>R</italic><sup>2</sup>: mean 0.612, SD 0.021), and CT (RMSE: mean 3.191, SD 0.043; <italic>R</italic><sup>2</sup>: mean 0.382, SD 0.011), and CART, LightGBM, SVR, and KNN can also be used for waiting time prediction. All selected models outperformed the baseline LR model (<xref ref-type="fig" rid="figure3">Figures 3</xref> and <xref ref-type="fig" rid="figure4">4</xref>). The optimal hyperparameters identified through randomized search are provided in Table S2 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>. In addition, the calibration and residual plots are provided in Figures S8-S18 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Root mean square error (RMSE) of different machine learning (ML) models for each medical task compared with linear regression (LR). CT: computed tomography; ED: emergency department; MRI: magnetic resonance imaging.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v13i1e77297_fig03.png"/></fig><fig position="float" id="figure4"><label>Figure 4.</label><caption><p><italic>R</italic>2 score of different machine learning (ML) models for each medical task compared with linear regression (LR). CT: computed tomography; ED: emergency department; MRI: magnetic resonance imaging.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v13i1e77297_fig04.png"/></fig></sec><sec id="s3-3"><title>Feature Importance Analysis</title><p>On the basis of the QT principle, we ultimately selected the number of queuing patients, arrival rate, month, day, day of the week, and hour as independent features for predicting waiting time. To evaluate the contribution of each feature to the machine learning model, we computed SHAP values, which quantify the impact of individual features on the predicted waiting time. The mean SHAP value was used to rank each feature. The rankings of feature importance across different models are visualized in a heat map plot (<xref ref-type="fig" rid="figure5">Figure 5</xref>). Notably, for the majority of medical tasks, queue-related features, such as the number of queuing patients, emerged as the most influential predictor of waiting time, and the arrival rate was also expressed as another important feature for waiting time prediction. The details of the mean SHAP value are provided in Table S3 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p><fig position="float" id="figure5"><label>Figure 5.</label><caption><p>Heat map of feature importance ranking in different models (x-axis: predictive features; y-axis: medical tasks). The numbers in each cell represent the ranking order obtained based on the Shapley additive explanations values. CT: computed tomography; ED: emergency department; MRI: magnetic resonance imaging.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v13i1e77297_fig05.png"/></fig></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>This study collected patient data from the Capital Center for Children&#x2019;s Health, Capital Medical University, spanning the period from November 1, 2024, to March 13, 2025, comprising a total of 230,864 records after data preprocessing. The distribution of waiting times for overall medical tasks followed an exponential pattern, with a median value of 4.817 minutes. Notably, peak periods in the average patient arrival rate and the average number of queuing patients were observed at 10:00 AM, 3:00 PM, and 8:00 PM. The waiting time exhibited a different pattern, with an earlier peak occurring at approximately 7:00 AM, along with 2 additional, smaller peaks around 12:00 PM and 8:00 PM, indicating the periods of highest congestion within the hospital. During model selection, tree-based algorithms such as RF, XGBoost, CART, and LightGBM demonstrated better accuracy in predicting waiting times for most medical task queues, while SVR and KNN can also be used as appropriate algorithms. Additionally, feature importance analysis revealed that the number of queuing patients was the most influential predictor of waiting time.</p><p>QT and TSA are classical approaches used to model and simulate queue dynamics in health care settings [<xref ref-type="bibr" rid="ref22">22</xref>,<xref ref-type="bibr" rid="ref23">23</xref>]. The application of QT requires the key input parameters, including the average arrival rate (&#x03BB;) and average service rate (&#x03BC;). Several queue parameters, including average waiting time (Wq), total time spent in the system (Ws), average QL (Ls), and average number of individuals waiting (Lq), can be calculated based on these inputs. For example, waiting time can be estimated using the formula <inline-formula><mml:math id="ieqn5"><mml:msub><mml:mrow><mml:mi>W</mml:mi></mml:mrow><mml:mrow><mml:mi>q</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi mathvariant="normal">&#x03BB;</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x03BC;</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="normal">&#x03BC;</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mi mathvariant="normal">&#x03BB;</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mfrac></mml:math></inline-formula> in an M/M/1 queue [<xref ref-type="bibr" rid="ref24">24</xref>]. By simulating the queuing status and adjusting service rates, different operational scenarios can be modeled for service optimization. However, QT has several limitations when applied to the prediction of waiting times in real-world hospital settings. First, as demonstrated in our study, QT assumes that patient arrivals follow a Poisson process and that service times conform to exponential distributions. While the entire waiting time across all tasks approximates an exponential distribution in our study, this assumption does not universally hold for each medical task queue (the distribution of waiting times for each task was provided on our Github website). Second, QT estimates queue parameters relying on average arrival and service rates, which are dynamic in clinical practice. Because patient volume and service effectiveness are constantly changing, QT&#x2019;s static assumptions are inadequate for simulating operating situations in real time [<xref ref-type="bibr" rid="ref25">25</xref>]. Third, accurately measuring the actual service rates for each medical task is challenging. As a result, we had to rely on estimations based on prior experience, which likely reduced the precision of the modeled parameters. Additionally, TSA, which involves modeling sequences of observations indexed over time, has been applied in previous studies to forecast ED attendances [<xref ref-type="bibr" rid="ref8">8</xref>,<xref ref-type="bibr" rid="ref23">23</xref>,<xref ref-type="bibr" rid="ref26">26</xref>-<xref ref-type="bibr" rid="ref28">28</xref>]. While effective at capturing periodic trends in patient volumes, TSA is more suited to predicting daily volumes rather than individual-level waiting times. Instead of depending on the strict presumptions of QT or TSA, machine learning models may directly use real-world waiting time data, enabling flexible, data-driven prediction.</p><p>This study assessed a variety of models for the waiting time prediction task to achieve the optimal predictive performance. In most scenarios, the tree-based model performed better than other models and demonstrated strong predictive capability. The RMSE of the models in our study was lower than that reported in previous studies [<xref ref-type="bibr" rid="ref11">11</xref>,<xref ref-type="bibr" rid="ref12">12</xref>,<xref ref-type="bibr" rid="ref17">17</xref>,<xref ref-type="bibr" rid="ref29">29</xref>]. Strong predictive performance was shown by high <italic>R</italic><sup>2</sup> values for a number of tasks, including throat swab&#x2013;second floor (<italic>R</italic>&#x00B2;: mean 0.934, SD 0.003), blood sampling&#x2013;outpatient (<italic>R</italic>&#x00B2;: mean 0.893, SD 0.002), and throat swab&#x2013;first floor (<italic>R</italic>&#x00B2;: mean 0.880, SD 0.003). As widely recognized, machine learning models are generally more effective than LR in capturing nonlinear relationships [<xref ref-type="bibr" rid="ref30">30</xref>], and tree-based models typically handle tabular data more efficiently than deep learning models [<xref ref-type="bibr" rid="ref31">31</xref>]. However, for several tasks, such as MRI, CT, ultrasound-outpatient, and echocardiography-outpatient queues, we observed weak associations between the features and waiting time. We believe that the small sample sizes for these tasks may contribute to the poor model performance. A longer data collection period could help improve performance. Additionally, the 6 features used in our model may not be sufficient for predicting waiting times across all medical tasks. Some medical tasks may have inherent complexities or variability in waiting times that are not fully captured by the current available features. For example, the waiting time for outpatient ultrasound and MRI may depend on factors such as the age and urgency of the case or physician workload, which are difficult to quantify with the current feature set. While we aim to develop a lightweight prediction model with simplified features for easier deployment, it is clear that for certain tasks, feature engineering and the inclusion of additional variables&#x2014;such as patient age, gender, department, and diagnosed diseases&#x2014;are necessary to improve performance. These strategies can help improve the prediction models for underperforming tasks and support their future deployment.</p><p>Notably, the data used to train our predictive models were primarily derived from the first and fourth quarters of the year, when patient visit patterns are different from those observed in other periods. According to surveillance data from the Chinese Center for Disease Control and Prevention, the prevalence of acute respiratory infections is elevated between November 2024 and January 2025 [<xref ref-type="bibr" rid="ref32">32</xref>-<xref ref-type="bibr" rid="ref34">34</xref>]. This seasonal trend aligns with epidemiological surveillance data from the United States, which indicate a predominance of respiratory tract infections among children during the winter months [<xref ref-type="bibr" rid="ref35">35</xref>,<xref ref-type="bibr" rid="ref36">36</xref>]. Throughout this time, pediatric attendance was consistently high from late December to January (Figure S19 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>), with January having the most visits (44,808/145,739, 30.75%). This phenomenon is probably caused by a confluence of environmental and school-related factors: lower temperatures and humidity promote viral stability and propagation, while more interpersonal interaction in school facilitates the spread of infectious illnesses. Children&#x2019;s hospital visits are accelerated by these 2 factors. The most frequent combinations for pediatric patients who received multiple medical services during a single visit were related to acute respiratory infections, including throat swab &#x2192; laryngoscopy &#x2192; X-ray &#x2192; echocardiography, throat swab &#x2192; X-ray &#x2192; blood sampling, and throat swab &#x2192; blood sampling [<xref ref-type="bibr" rid="ref37">37</xref>,<xref ref-type="bibr" rid="ref38">38</xref>]. These findings imply that queue loads for various services are considerably impacted by fluctuations in illness occurrence. Although feature importance analysis suggests that the contribution of the month feature is not particularly important across different prediction models, this may be attributed to the short data collection period, which constrains the ability to capture long-term temporal trends. Therefore, seasonal demand fluctuations can also be considered when optimizing patient flow and resource allocation (Figure S20 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). Strategies such as increasing the number of service windows during high-demand periods could alleviate queue burdens and improve operational efficiency. For example, at times when respiratory infections were most common at this institution, a second throat swab window was opened.</p></sec><sec id="s4-2"><title>Limitations</title><p>This study has several limitations. First, our study is a single-center investigation that was mostly carried out at a pediatric hospital during the winter. The findings of this study might not apply to circumstances outside of a children&#x2019;s hospital due to the unique characteristics of the patients at this facility. Second, although medicine dispensing is a critical component of the clinical workflow, it was excluded from the analysis since the pharmacy did not have a procedure for patients to check in, making it impossible to calculate waiting times. Lastly, waiting times for various medical tasks were predicted using numerous models, which complicated the overall predictive framework and posed challenges for real-world implementation.</p></sec><sec id="s4-3"><title>Conclusions</title><p>In conclusion, the distribution of patient waiting times exhibits 3 distinct peak periods. However, waiting time patterns differ markedly across various medical task queues, each displaying unique characteristics that do not align with the overall trend. Consequently, developing task-specific predictive models for each medical task queue can enhance prediction accuracy. Feature importance analysis reveals that although queue-related features are the most influential in predicting patient waiting time, time-based features might also contribute meaningfully and should be considered to further optimize hospital operational efficiency.</p></sec></sec></body><back><ack><p>This work was supported by the Chinese Academy of Medical Sciences Innovation Fund for Medical Sciences (2021-I2M-1&#x2014;056) and the Capital Institute of Pediatrics Foundation for Youths (QN-2024&#x2014;37).</p></ack><notes><sec><title>Data Availability</title><p>The datasets generated or analyzed during this study are available from the corresponding author on reasonable request.</p></sec></notes><fn-group><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">CART </term><def><p>classification and regression tree</p></def></def-item><def-item><term id="abb2">CT</term><def><p>computed tomography</p></def></def-item><def-item><term id="abb3">ED</term><def><p>emergency department</p></def></def-item><def-item><term id="abb4">KNN</term><def><p>k-nearest neighbor</p></def></def-item><def-item><term id="abb5">LightGBM</term><def><p>light gradient boosting machine</p></def></def-item><def-item><term id="abb6">LR</term><def><p>linear regression</p></def></def-item><def-item><term id="abb7">MAE</term><def><p>mean absolute error</p></def></def-item><def-item><term id="abb8">MLP</term><def><p>multilayer perceptron</p></def></def-item><def-item><term id="abb9">MRI</term><def><p>magnetic resonance imaging</p></def></def-item><def-item><term id="abb10">MSE</term><def><p>mean square error</p></def></def-item><def-item><term id="abb11">QL</term><def><p>queue length</p></def></def-item><def-item><term id="abb12">QT</term><def><p>queue theory</p></def></def-item><def-item><term id="abb13">RF </term><def><p>random forest</p></def></def-item><def-item><term id="abb14">RMSE</term><def><p>root mean square error</p></def></def-item><def-item><term id="abb15">SHAP</term><def><p>Shapley additive explanations</p></def></def-item><def-item><term id="abb16">SVR</term><def><p>support vector regression</p></def></def-item><def-item><term id="abb17">TSA</term><def><p>time series analysis</p></def></def-item><def-item><term id="abb18">XGBoost</term><def><p>extreme gradient boosting</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Vinci</surname><given-names>RJ</given-names> </name></person-group><article-title>The pediatric workforce: recent data trends, questions, and challenges for the future</article-title><source>Pediatrics</source><year>2021</year><month>06</month><volume>147</volume><issue>6</issue><fpage>e2020013292</fpage><pub-id pub-id-type="doi">10.1542/peds.2020-013292</pub-id><pub-id pub-id-type="medline">33692163</pub-id></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Russ</surname><given-names>CM</given-names> </name><name name-style="western"><surname>Gao</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Karpowicz</surname><given-names>K</given-names> </name><etal/></person-group><article-title>The pediatrician workforce in the United States and China</article-title><source>Pediatrics</source><year>2023</year><month>06</month><day>1</day><volume>151</volume><issue>6</issue><fpage>e2022059143</fpage><pub-id pub-id-type="doi">10.1542/peds.2022-059143</pub-id><pub-id pub-id-type="medline">37158018</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Yan</surname><given-names>X</given-names> </name><name name-style="western"><surname>Yu</surname><given-names>J</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>P</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>J</given-names> </name><name name-style="western"><surname>Luo</surname><given-names>S</given-names> </name><name name-style="western"><surname>Yu</surname><given-names>Y</given-names> </name></person-group><article-title>Innovative management strategies for addressing paediatric medical staff shortages in underdeveloped cities in developing countries</article-title><source>BMJ Lead</source><year>2024</year><month>10</month><day>24</day><fpage>leader-2023-000894</fpage><pub-id pub-id-type="doi">10.1136/leader-2023-000894</pub-id><pub-id pub-id-type="medline">39448256</pub-id></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Anderson</surname><given-names>RT</given-names> </name><name name-style="western"><surname>Camacho</surname><given-names>FT</given-names> </name><name name-style="western"><surname>Balkrishnan</surname><given-names>R</given-names> </name></person-group><article-title>Willing to wait?: the influence of patient wait time on satisfaction with primary care</article-title><source>BMC Health Serv Res</source><year>2007</year><month>02</month><day>28</day><volume>7</volume><fpage>31</fpage><pub-id pub-id-type="doi">10.1186/1472-6963-7-31</pub-id><pub-id pub-id-type="medline">17328807</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Doan</surname><given-names>Q</given-names> </name><name name-style="western"><surname>Wong</surname><given-names>H</given-names> </name><name name-style="western"><surname>Meckler</surname><given-names>G</given-names> </name><etal/></person-group><article-title>The impact of pediatric emergency department crowding on patient and health care system outcomes: a multicentre cohort study</article-title><source>CMAJ</source><year>2019</year><month>06</month><day>10</day><volume>191</volume><issue>23</issue><fpage>E627</fpage><lpage>E635</lpage><pub-id pub-id-type="doi">10.1503/cmaj.181426</pub-id><pub-id pub-id-type="medline">31182457</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kwak</surname><given-names>DS</given-names> </name><name name-style="western"><surname>Park</surname><given-names>J</given-names> </name></person-group><article-title>Analysis of the prognosis outcomes and treatment delay among ST-segment elevation myocardial infarction patients in emergency department based on the presence of symptoms suggestive of COVID-19</article-title><source>Int J Health Policy Manag</source><year>2024</year><volume>13</volume><fpage>8207</fpage><pub-id pub-id-type="doi">10.34172/ijhpm.2024.8207</pub-id><pub-id pub-id-type="medline">39099504</pub-id></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="web"><article-title>Clinic queue management system: enhancing patient experience and streamlining operations</article-title><source>Qtech, Queuing System Pte Ltd</source><access-date>2025-04-28</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://qtechqueueingsystem.com/clinic-queue-management-system/#real-time-queue-updates">https://qtechqueueingsystem.com/clinic-queue-management-system/#real-time-queue-updates</ext-link></comment></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kadri</surname><given-names>F</given-names> </name><name name-style="western"><surname>Harrou</surname><given-names>F</given-names> </name><name name-style="western"><surname>Chaabane</surname><given-names>S</given-names> </name><name name-style="western"><surname>Tahon</surname><given-names>C</given-names> </name></person-group><article-title>Time series modelling and forecasting of emergency department overcrowding</article-title><source>J Med Syst</source><year>2014</year><month>09</month><volume>38</volume><issue>9</issue><fpage>107</fpage><pub-id pub-id-type="doi">10.1007/s10916-014-0107-0</pub-id><pub-id pub-id-type="medline">25053208</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Montazeri</surname><given-names>M</given-names> </name><name name-style="western"><surname>Multmeier</surname><given-names>J</given-names> </name><name name-style="western"><surname>Novorol</surname><given-names>C</given-names> </name><name name-style="western"><surname>Upadhyay</surname><given-names>S</given-names> </name><name name-style="western"><surname>Wicks</surname><given-names>P</given-names> </name><name name-style="western"><surname>Gilbert</surname><given-names>S</given-names> </name></person-group><article-title>Optimization of patient flow in urgent care centers using a digital tool for recording patient symptoms and history: simulation study</article-title><source>JMIR Form Res</source><year>2021</year><month>05</month><day>21</day><volume>5</volume><issue>5</issue><fpage>e26402</fpage><pub-id pub-id-type="doi">10.2196/26402</pub-id><pub-id pub-id-type="medline">34018963</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ang</surname><given-names>E</given-names> </name><name name-style="western"><surname>Kwasnick</surname><given-names>S</given-names> </name><name name-style="western"><surname>Bayati</surname><given-names>M</given-names> </name><name name-style="western"><surname>Plambeck</surname><given-names>EL</given-names> </name><name name-style="western"><surname>Aratow</surname><given-names>M</given-names> </name></person-group><article-title>Accurate emergency department wait time prediction</article-title><source>M&#x0026;SOM</source><year>2016</year><month>02</month><volume>18</volume><issue>1</issue><fpage>141</fpage><lpage>156</lpage><pub-id pub-id-type="doi">10.1287/msom.2015.0560</pub-id></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="web"><person-group person-group-type="author"><name name-style="western"><surname>Gajanan</surname><given-names>A</given-names> </name></person-group><article-title>Reducing wait time prediction in hospital emergency room: lean analysis using a random forest model</article-title><source>University of Tennessee</source><access-date>2025-09-08</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://trace.tennessee.edu/utk_gradthes/4722">https://trace.tennessee.edu/utk_gradthes/4722</ext-link></comment></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Chen</surname><given-names>JG</given-names> </name><name name-style="western"><surname>Li</surname><given-names>KL</given-names> </name><name name-style="western"><surname>Tang</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Bilal</surname><given-names>K</given-names> </name><name name-style="western"><surname>Li</surname><given-names>KQ</given-names> </name></person-group><article-title>A parallel patient treatment time prediction algorithm and its applications in hospital queuing-recommendation in a big data environment</article-title><source>IEEE Access</source><year>2016</year><volume>4</volume><fpage>1767</fpage><lpage>1783</lpage><pub-id pub-id-type="doi">10.1109/ACCESS.2016.2558199</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lin</surname><given-names>WC</given-names> </name><name name-style="western"><surname>Goldstein</surname><given-names>IH</given-names> </name><name name-style="western"><surname>Hribar</surname><given-names>MR</given-names> </name><name name-style="western"><surname>Sanders</surname><given-names>DS</given-names> </name><name name-style="western"><surname>Chiang</surname><given-names>MF</given-names> </name></person-group><article-title>Predicting wait times in pediatric ophthalmology outpatient clinic using machine learning</article-title><source>AMIA Annu Symp Proc</source><year>2019</year><volume>2019</volume><fpage>1121</fpage><lpage>1128</lpage><pub-id pub-id-type="medline">32308909</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Chocron</surname><given-names>E</given-names> </name><name name-style="western"><surname>Cohen</surname><given-names>I</given-names> </name><name name-style="western"><surname>Feigin</surname><given-names>P</given-names> </name></person-group><article-title>Delay prediction for managing multiclass service systems: an investigation of queueing theory and machine learning approaches</article-title><source>IEEE Trans Eng Manage</source><year>2024</year><volume>71</volume><fpage>4469</fpage><lpage>4479</lpage><pub-id pub-id-type="doi">10.1109/TEM.2022.3222094</pub-id></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Guo</surname><given-names>LL</given-names> </name><name name-style="western"><surname>Guo</surname><given-names>LY</given-names> </name><name name-style="western"><surname>Li</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Characteristics and admission preferences of pediatric emergency patients and their waiting time prediction using electronic medical record data: retrospective comparative analysis</article-title><source>J Med Internet Res</source><year>2023</year><month>11</month><day>1</day><volume>25</volume><fpage>e49605</fpage><pub-id pub-id-type="doi">10.2196/49605</pub-id><pub-id pub-id-type="medline">37910168</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hemaya</surname><given-names>SAK</given-names> </name><name name-style="western"><surname>Locker</surname><given-names>TE</given-names> </name></person-group><article-title>How accurate are predicted waiting times, determined upon a patient&#x2019;s arrival in the emergency department?</article-title><source>Emerg Med J</source><year>2012</year><month>04</month><volume>29</volume><issue>4</issue><fpage>316</fpage><lpage>318</lpage><pub-id pub-id-type="doi">10.1136/emj.2010.106534</pub-id><pub-id pub-id-type="medline">21429872</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Walker</surname><given-names>KJ</given-names> </name><name name-style="western"><surname>Jiarpakdee</surname><given-names>J</given-names> </name><name name-style="western"><surname>Loupis</surname><given-names>A</given-names> </name><etal/></person-group><article-title>Predicting ambulance patient wait times: a multicenter derivation and validation study</article-title><source>Ann Emerg Med</source><year>2021</year><month>07</month><volume>78</volume><issue>1</issue><fpage>113</fpage><lpage>122</lpage><pub-id pub-id-type="doi">10.1016/j.annemergmed.2021.02.010</pub-id><pub-id pub-id-type="medline">33972127</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Curtis</surname><given-names>C</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>C</given-names> </name><name name-style="western"><surname>Bollerman</surname><given-names>TJ</given-names> </name><name name-style="western"><surname>Pianykh</surname><given-names>OS</given-names> </name></person-group><article-title>Machine learning for predicting patient wait times and appointment delays</article-title><source>J Am Coll Radiol</source><year>2018</year><month>09</month><volume>15</volume><issue>9</issue><fpage>1310</fpage><lpage>1316</lpage><pub-id pub-id-type="doi">10.1016/j.jacr.2017.08.021</pub-id><pub-id pub-id-type="medline">29079248</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Camacho</surname><given-names>F</given-names> </name><name name-style="western"><surname>Anderson</surname><given-names>R</given-names> </name><name name-style="western"><surname>Safrit</surname><given-names>A</given-names> </name><name name-style="western"><surname>Jones</surname><given-names>AS</given-names> </name><name name-style="western"><surname>Hoffmann</surname><given-names>P</given-names> </name></person-group><article-title>The relationship between patient&#x2019;s perceived waiting time and office-based practice satisfaction</article-title><source>N C Med J</source><year>2006</year><volume>67</volume><issue>6</issue><fpage>409</fpage><lpage>413</lpage><pub-id pub-id-type="medline">17393701</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Thiongane</surname><given-names>M</given-names> </name><name name-style="western"><surname>Chan</surname><given-names>W</given-names> </name><name name-style="western"><surname>L&#x2019;Ecuyer</surname><given-names>P</given-names> </name></person-group><article-title>New history-based delay predictors for service systems</article-title><conf-name>2016 Winter Simulation Conference (WSC)</conf-name><conf-date>Dec 11-14, 2016</conf-date><conf-loc>Washington, DC, USA</conf-loc><fpage>425</fpage><lpage>436</lpage><pub-id pub-id-type="doi">10.1109/WSC.2016.7822109</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Lundberg</surname><given-names>SM</given-names> </name><name name-style="western"><surname>Lee</surname><given-names>S</given-names> </name></person-group><article-title>A unified approach to interpreting model predictions</article-title><conf-name>In Proceedings of the 31st International Conference on Neural Information Processing Systems (NIPS&#x2019;17)</conf-name><conf-date>Dec 4-9, 2017</conf-date><conf-loc>Red Hook, NY</conf-loc><publisher-name>Curran Associates Inc</publisher-name><fpage>4768</fpage><lpage>4777</lpage></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Joseph</surname><given-names>JW</given-names> </name></person-group><article-title>Queuing theory and modeling emergency department resource utilization</article-title><source>Emerg Med Clin North Am</source><year>2020</year><month>08</month><volume>38</volume><issue>3</issue><fpage>563</fpage><lpage>572</lpage><pub-id pub-id-type="doi">10.1016/j.emc.2020.04.006</pub-id><pub-id pub-id-type="medline">32616279</pub-id></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Juang</surname><given-names>WC</given-names> </name><name name-style="western"><surname>Huang</surname><given-names>SJ</given-names> </name><name name-style="western"><surname>Huang</surname><given-names>FD</given-names> </name><name name-style="western"><surname>Cheng</surname><given-names>PW</given-names> </name><name name-style="western"><surname>Wann</surname><given-names>SR</given-names> </name></person-group><article-title>Application of time series analysis in modelling and forecasting emergency department visits in a medical centre in Southern Taiwan</article-title><source>BMJ Open</source><year>2017</year><month>12</month><day>1</day><volume>7</volume><issue>11</issue><fpage>e018628</fpage><pub-id pub-id-type="doi">10.1136/bmjopen-2017-018628</pub-id><pub-id pub-id-type="medline">29196487</pub-id></nlm-citation></ref><ref id="ref24"><label>24</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Yang</surname><given-names>H</given-names> </name></person-group><article-title>Research on M/M/1 queue of exponential departure intensity</article-title><source>Math Probl Eng</source><year>2022</year><month>08</month><day>19</day><volume>2022</volume><fpage>1</fpage><lpage>7</lpage><pub-id pub-id-type="doi">10.1155/2022/6139847</pub-id></nlm-citation></ref><ref id="ref25"><label>25</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Winston</surname><given-names>WL</given-names> </name><name name-style="western"><surname>Goldberg</surname><given-names>JB</given-names> </name></person-group><source>Operations Research: Applications and Algorithms</source><year>2004</year><volume>3</volume><publisher-name>Duxbury Press</publisher-name></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Jones</surname><given-names>SA</given-names> </name><name name-style="western"><surname>Joy</surname><given-names>MP</given-names> </name><name name-style="western"><surname>Pearson</surname><given-names>J</given-names> </name></person-group><article-title>Forecasting demand of emergency care</article-title><source>Health Care Manag Sci</source><year>2002</year><month>11</month><volume>5</volume><issue>4</issue><fpage>297</fpage><lpage>305</lpage><pub-id pub-id-type="doi">10.1023/a:1020390425029</pub-id><pub-id pub-id-type="medline">12437279</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Abdel-Aal</surname><given-names>RE</given-names> </name><name name-style="western"><surname>Mangoud</surname><given-names>AM</given-names> </name></person-group><article-title>Modeling and forecasting monthly patient volume at a primary health care clinic using univariate time-series analysis</article-title><source>Comput Methods Programs Biomed</source><year>1998</year><month>06</month><volume>56</volume><issue>3</issue><fpage>235</fpage><lpage>247</lpage><pub-id pub-id-type="doi">10.1016/s0169-2607(98)00032-7</pub-id><pub-id pub-id-type="medline">9725649</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Milner</surname><given-names>PC</given-names> </name></person-group><article-title>Ten-year follow-up of ARIMA forecasts of attendances at accident and emergency departments in the Trent region</article-title><source>Stat Med</source><year>1997</year><month>09</month><day>30</day><volume>16</volume><issue>18</issue><fpage>2117</fpage><lpage>2125</lpage><pub-id pub-id-type="doi">10.1002/(sici)1097-0258(19970930)16:18&#x003C;2117::aid-sim649&#x003E;3.0.co;2-e</pub-id><pub-id pub-id-type="medline">9308136</pub-id></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Rastpour</surname><given-names>A</given-names> </name><name name-style="western"><surname>McGregor</surname><given-names>C</given-names> </name></person-group><article-title>Predicting patient wait times by using highly deidentified data in mental health care: enhanced machine learning approach</article-title><source>JMIR Ment Health</source><year>2022</year><month>08</month><day>9</day><volume>9</volume><issue>8</issue><fpage>e38428</fpage><pub-id pub-id-type="doi">10.2196/38428</pub-id><pub-id pub-id-type="medline">35943774</pub-id></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kuo</surname><given-names>YH</given-names> </name><name name-style="western"><surname>Chan</surname><given-names>NB</given-names> </name><name name-style="western"><surname>Leung</surname><given-names>JMY</given-names> </name><etal/></person-group><article-title>An integrated approach of machine learning and systems thinking for waiting time prediction in an emergency department</article-title><source>Int J Med Inform</source><year>2020</year><month>07</month><volume>139</volume><fpage>104143</fpage><pub-id pub-id-type="doi">10.1016/j.ijmedinf.2020.104143</pub-id><pub-id pub-id-type="medline">32330853</pub-id></nlm-citation></ref><ref id="ref31"><label>31</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Grinsztajn</surname><given-names>L</given-names> </name><name name-style="western"><surname>Oyallon</surname><given-names>E</given-names> </name><name name-style="western"><surname>Varoquaux</surname><given-names>G</given-names> </name></person-group><article-title>Why do tree-based models still outperform deep learning on tabular data?</article-title><source>arXiv</source><comment>Preprint posted online on  Jul 18, 2022</comment><comment><ext-link ext-link-type="uri" xlink:href="https://arxiv.org/abs/2207.08815">https://arxiv.org/abs/2207.08815</ext-link></comment></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="web"><article-title>China National Influenza Center homepage</article-title><source>China National Influenza Center</source><access-date>2025-09-08</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://ivdc.chinacdc.cn/cnic/">https://ivdc.chinacdc.cn/cnic/</ext-link></comment></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="web"><article-title>National sentinel surveillance of acute respiratory infectious diseases</article-title><source>Chinese Center for Disease Control and Prevention</source><access-date>2025-09-08</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.chinacdc.cn/jksj/jksj04_14275/">https://www.chinacdc.cn/jksj/jksj04_14275/</ext-link></comment></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kang</surname><given-names>L</given-names> </name><name name-style="western"><surname>Huang</surname><given-names>JL</given-names> </name></person-group><article-title>The impact of infectious disease outbreaks on the pediatric healthcare system and countermeasures</article-title><source>J Clin Pediatr</source><year>2024</year><volume>42</volume><issue>6</issue><fpage>475</fpage><lpage>479</lpage><pub-id pub-id-type="doi">10.12372/jcp.2024.24e0432</pub-id></nlm-citation></ref><ref id="ref35"><label>35</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Schrijver</surname><given-names>TV</given-names> </name><name name-style="western"><surname>Brand</surname><given-names>PLP</given-names> </name><name name-style="western"><surname>Bekhof</surname><given-names>J</given-names> </name></person-group><article-title>Seasonal variation of diseases in children: a 6-year prospective cohort study in a general hospital</article-title><source>Eur J Pediatr</source><year>2016</year><month>04</month><volume>175</volume><issue>4</issue><fpage>457</fpage><lpage>464</lpage><pub-id pub-id-type="doi">10.1007/s00431-015-2653-y</pub-id><pub-id pub-id-type="medline">26494134</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lipsett</surname><given-names>SC</given-names> </name><name name-style="western"><surname>Monuteaux</surname><given-names>MC</given-names> </name><name name-style="western"><surname>Fine</surname><given-names>AM</given-names> </name></person-group><article-title>Seasonality of common pediatric infectious diseases</article-title><source>Pediatr Emerg Care</source><year>2021</year><month>02</month><day>1</day><volume>37</volume><issue>2</issue><fpage>82</fpage><lpage>85</lpage><pub-id pub-id-type="doi">10.1097/PEC.0000000000001496</pub-id><pub-id pub-id-type="medline">29768293</pub-id></nlm-citation></ref><ref id="ref37"><label>37</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><collab>China Medicine Education Association Committee on Pediatrics</collab><collab>The Subspecialty Group of Respiratory Diseases</collab><collab>The Society of Pediatrics</collab><collab>Chinese Medical Association</collab><collab>Chinese Medical Doctor Association Committee on Respirology Pediatrics</collab></person-group><article-title>Guideline for diagnosis, treatment and prevention of influenza in children (medical version, 2024)</article-title><source>Chin J Appl Clin Pediatr</source><year>2024</year><volume>39</volume><issue>12</issue><fpage>881</fpage><lpage>895</lpage><pub-id pub-id-type="doi">10.3760/cma.j.cn101070-20241105-00719</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><collab>National Health Commission of the People&#x2019;s Republic of China</collab></person-group><article-title>Guidelines for diagnosis and treatment of Mycoplasma pneumonae pneumonia in children (2023 Edition)</article-title><source>Chin J Ration Drug Use</source><year>2023</year><volume>3</volume><issue>330</issue><fpage>16</fpage><lpage>24</lpage><pub-id pub-id-type="doi">10.3969/j.issn.2096-3327.2023.03.003</pub-id></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>Distribution of waiting time, hyperparameters, and performance of the model.</p><media xlink:href="medinform_v13i1e77297_app1.docx" xlink:title="DOCX File, 5724 KB"/></supplementary-material></app-group></back></article>