Submitted:
25 May 2026
Posted:
26 May 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Propose a DES model that structurally represents patient flow, resources and operational rules in the unit, allowing analysis of system behaviour under alternative organisational scenarios.
- Identify and quantify, using real historical data, the main bottlenecks and operational inefficiencies that drive the formation and persistence of waiting lists.
- Conduct a formal validation of the model, establishing its potential as a prospective tool for evaluating improvement scenarios and supporting strategic decision making.
2. Materials and Methods
2.1. Study Design
2.2. Patient Flow Definition
2.3. Data Collection and Processing
2.4. Model Construction
Definition of Key Performance Indicators (KPIs)
2.5. Validation Metrics
3. Results
3.1. Validation of Waiting Times
3.2. Validation of Number of Patients in Queue
4. Discussion
4.1. Comparison with the Literature
4.2. Study Limitations
4.3. Practical Implications and Future Work
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| AI | Artificial Intelligence |
| CPAP | Continuous Positive Airway Pressure |
| DES | Discrete-Event Simulation |
| FIFO | First In, First Out |
| KPI | Key Performance Indicator |
| MAE | Mean Absolute Error |
| OSA | Obstructive Sleep Apnoea |
| PC | Primary Care |
| PLG | Respiratory Polygraphy |
| POX | Overnight Pulse Oximetry |
| PSG | Polysomnography |
| RPD | Relative Percent Difference |
| RMSE | Root Mean Square Error |
| STRESS | Strengthening the Reporting of Empirical Simulation Studies |
References
- Álvarez-Vázquez, J.; Casal-Guisande, M.; Fernández-García, A.; Mosteiro-Añón, M.; Torres-Durán, M.; Fernández-Villar, A. Combined Applications of Artificial Intelligence and Simulation for Healthcare Process Optimization: A Systematic Review. Healthcare 2025, 13(22), 2933. [Google Scholar] [CrossRef] [PubMed]
- Box, G. E. P.; Draper, N. R. Empirical model-building and response surfaces. In Empirical model-building and response surfaces.; John Wiley & Sons, 1987. [Google Scholar]
- Casal-Guisande, M.; Mosteiro-Añón, M.; Torres-Durán, M.; Comesaña-Campos, A.; Fernández-Villar, A. Application of artificial intelligence for the detection of obstructive sleep apnea based on clinical and demographic data: a systematic review. Expert Review of Respiratory Medicine 2025, 1–18. [Google Scholar] [CrossRef]
- Chalet, F. X.; Albanese, E.; Egea Santaolalla, C.; Ellis, J. G.; Ferini-Strambi, L.; Heidbreder, A.; Léger, D.; Modi, K.; Morin, C. M.; Olopoenia, A. Epidemiology and burden of chronic insomnia disorder in Europe: an analysis of the 2020 National Health and Wellness Survey. Journal of Medical Economics 2024, 27(1), 1308–1319. [Google Scholar] [CrossRef] [PubMed]
- Chattu, V. K.; Manzar, M. D.; Kumary, S.; Burman, D.; Spence, D. W.; Pandi-Perumal, S. R. The global problem of insufficient sleep and its serious public health implications. In Healthcare (Switzerland); MDPI, 2019; Vol. 7. [Google Scholar] [CrossRef]
- Craciun, M. L.; Avram, A. C.; Buleu, F.; Badalica-Petrescu, M.; Cotet, I. G.; Mateescu, D. M.; Iurciuc, S.; Crisan, S.; Toma, A. O.; Avram, C.; Pah, A. M. Association Between Obstructive Sleep Apnea and Cardiovascular Risk: A Systematic Review and Meta-Analysis of Prospective Cohort Studies. Medicina (Kaunas, Lithuania) 2025, 61(11). [Google Scholar] [CrossRef] [PubMed]
- Dehghani, M.; Moftian, N.; Rezaei-Hachesu, P.; Samad-Soltani, T. A Step-by-Step Framework on Discrete Events Simulation in Emergency Department; A Systematic Review. In Bull Emerg Trauma; 2017; Vol. 5, p. Number 2. Available online: www.beat-journal.com.
- Doudareva, E.; Carter, M. Discrete event simulation for emergency department modelling: A systematic review of validation methods. In Operations Research for Health Care; Elsevier B.V, 2022a; Vol. 33. [Google Scholar] [CrossRef]
- Doudareva, E.; Carter, M. Discrete event simulation for emergency department modelling: A systematic review of validation methods. In Operations Research for Health Care; Elsevier B.V, 2022b; Vol. 33. [Google Scholar] [CrossRef]
- Ferreira-Santos, D.; Amorim, P.; Silva Martins, T.; Monteiro-Soares, M.; Pereira Rodrigues, P. Enabling Early Obstructive Sleep Apnea Diagnosis With Machine Learning: Systematic Review. J Med Internet Res 2022, 24(9), e39452. [Google Scholar] [CrossRef] [PubMed]
- Flemons, W. W.; Douglas, N. J.; Kuna, S. T.; Rodenstein, D. O.; Wheatley, J. Access to Diagnosis and Treatment of Patients with Suspected Sleep Apnea. In American Journal of Respiratory and Critical Care Medicine; American Lung Association, 2004; Vol. 169, Number 6, pp. 668–672. [Google Scholar] [CrossRef]
- Forbus, J. J.; Berleant, D. Discrete-Event Simulation in Healthcare Settings: A Review. In Modelling; Multidisciplinary Digital Publishing Institute (MDPI), 2022a; Vol. 3, Number 4, pp. 417–433. [Google Scholar] [CrossRef]
- Forbus, J. J.; Berleant, D. Discrete-Event Simulation in Healthcare Settings: A Review. In Modelling; Multidisciplinary Digital Publishing Institute (MDPI), 2022b; Vol. 3, Number 4, pp. 417–433. [Google Scholar] [CrossRef]
- Gartner, D.; Padman, R. Machine learning for healthcare behavioural OR: Addressing waiting time perceptions in emergency care. Journal of the Operational Research Society 2020, 71(7), 1087–1101. [Google Scholar] [CrossRef]
- Gjerloev, A.; Crowe, S.; Pagel, C.; Jani, Y.; Grieco, L. A systematic review of simulation methods applied to cancer care services. In Health Systems; Taylor and Francis Ltd, 2024; Vol. 13, Number 4, pp. 274–294. [Google Scholar] [CrossRef]
- Günal, M. M.; Pidd, M. Discrete event simulation for performance modelling in health care: A review of the literature. In Journal of Simulation; Palgrave Macmillan Ltd, 2010; Vol. 4, Number 1, pp. 42–51. [Google Scholar] [CrossRef]
- Haba-Rubio, J.; Marti-Soler, H.; Marques-Vidal, P.; Tobback, N.; Andries, D.; Preisig, M.; Waeber, G.; Vollenweider, P.; Kutalik, Z.; Tafti, M.; Heinzer, R. Prevalence and determinants of periodic limb movements in the general population. Annals of Neurology 2016, 79(3), 464–474. [Google Scholar] [CrossRef] [PubMed]
- Hribar, M. R.; Read-Brown, S.; Reznick, L.; Chiang, M. F. Evaluating and Improving an Outpatient Clinic Scheduling Template Using Secondary Electronic Health Record Data, n.d.
- Karimi, M.; Hedner, J.; Häbel, H.; Nerman, O.; Grote, L. Sleep apnea related risk of motor vehicle accidents is reduced by continuous positive airway pressure: Swedish traffic accident registry data. Sleep 2015, 38(3), 341–349. [Google Scholar] [CrossRef] [PubMed]
- Lenin, R. B.; Lowery, C. L.; Hitt, W. C.; Manning, N. A.; Lowery, P.; Eswaran, H. Optimizing appointment template and number of staff of an OB/GYN clinic - Micro and macro simulation analyses. BMC Health Services Research 2015, 15(1). [Google Scholar] [CrossRef] [PubMed]
- Liu, S.; Li, Y.; Triantis, K. P.; Xue, H.; Wang, Y. The Diffusion of Discrete Event Simulation Approaches in Health Care Management in the Past Four Decades: A Comprehensive Review. In MDM Policy and Practice; SAGE Publications Inc, 2020; Vol. 5, p. Number 1. [Google Scholar] [CrossRef]
- Monks, T.; Currie, C. S. M.; Onggo, B. S.; Robinson, S.; Kunc, M.; Taylor, S. J. E. Strengthening the reporting of empirical simulation studies: Introducing the STRESS guidelines. Journal of Simulation 2019, 13(1), 55–67. [Google Scholar] [CrossRef]
- Morin, C. M.; LeBlanc, M.; Daley, M.; Gregoire, J. P.; Mérette, C. Epidemiology of insomnia: Prevalence, self-help treatments, consultations, and determinants of help-seeking behaviors. Sleep Medicine 2006, 7(2), 123–130. [Google Scholar] [CrossRef]
- Naiker, U.; FitzGerald, G.; Dulhunty, J. M.; Rosemann, M. Time to wait: A systematic review of strategies that affect out-patient waiting times. In Australian Health Review; CSIRO, 2018; Vol. 42, Number 3, pp. 286–293. [Google Scholar] [CrossRef]
- Ouda, E.; Sleptchenko, A.; Simsekler, M. C. E. Comprehensive review and future research agenda on discrete-event simulation and agent-based simulation of emergency departments. In Simulation Modelling Practice and Theory; Elsevier B.V, 2023; Vol. 129. [Google Scholar] [CrossRef]
- Pendharkar, S. R.; Bischak, D. P.; Rogers, P.; Flemons, W.; Noseworthy, T. W. Using patient flow simulation to improve access at a multidisciplinary sleep centre. Journal of Sleep Research 2015, 24(3), 320–327. [Google Scholar] [CrossRef] [PubMed]
- Santos-Jaén, J. M.; Valls Martínez, M. D. C.; Palacios-Manzano, M.; Grasso, M. S. Analysis of Patient Satisfaction through the Effect of Healthcare Spending on Waiting Times for Consultations and Operations. Healthcare (Switzerland) 2022, 10(7). [Google Scholar] [CrossRef]
- Sauer, B.; Singh, K.; Wagner, B.; Vanden Hoek, M.; Twilley, K.; Cohn, S.; Shami, V.; Wang, A. Efficiency of endoscopy units can be improved with use of discrete event simulation modeling. Endoscopy International Open 2016, 04(11), E1140–E1145. [Google Scholar] [CrossRef]
- Singh, A. R.; Gupta, A.; Satpathy, S.; Gowda, N. Study to assess the utility of discrete event simulation software in projection & optimization of resources in the out-patient department at an apex cancer institute in India. Health Science Reports 2022, 5(3). [Google Scholar] [CrossRef]
- Song, P.; Wu, J.; Cao, J.; Sun, W.; Li, X.; Zhou, T.; Shen, Y.; Tan, X.; Ye, X.; Yuan, C.; Zhu, Y.; Rudan, I. The global and regional prevalence of restless legs syndrome among adults: A systematic review and modelling analysis. Journal of Global Health 2024, 14. [Google Scholar] [CrossRef] [PubMed]
- Van Lent, W. A.; Vanberkel, P.; Van Harten, W. H. A review on the relation between simulation and improvement in hospitals. In BMC Medical Informatics and Decision Making; BioMed Central Ltd, 2012; Vol. 12. [Google Scholar] [CrossRef]
- Vanbrabant, L.; Braekers, K.; Ramaekers, K.; Van Nieuwenhuyse, I. Simulation of emergency department operations: A comprehensive review of KPIs and operational improvements. Computers and Industrial Engineering 2019, 131, 356–381. [Google Scholar] [CrossRef]
- Vázquez-Serrano, J. I.; Peimbert-García, R. E.; Cárdenas-Barrón, L. E. Discrete-event simulation modeling in healthcare: A comprehensive review. In International Journal of Environmental Research and Public Health; MDPI, 2021; Vol. 18. [Google Scholar] [CrossRef]
- Williams, E.; Szakmany, T.; Spernaes, I.; Muthuswamy, B.; Holborn, P. Discrete-Event Simulation Modeling of Critical Care Flow: New Hospital, Old Challenges. Critical Care Explorations 2020, 2(9), E0174. [Google Scholar] [CrossRef]
- Yakutcan, U.; Demir, E.; Hurst, J. R.; Taylor, P. C.; Ridsdale, H. A. Operational Modeling with Health Economics to Support Decision Making for COPD Patients. Health Services Research 2021, 56(6), 1271–1280. [Google Scholar] [CrossRef] [PubMed]
- Young, T.; Peppard, P. E.; Gottlieb, D. J. Epidemiology of obstructive sleep apnea: A population health perspective. In American Journal of Respiratory and Critical Care Medicine; 2002; Vol. 165, Number 9, pp. 1217–1239. [Google Scholar] [CrossRef]
- Zhang, X. Application of discrete event simulation in health care: A systematic review. BMC Health Services Research 2018, 18(1). [Google Scholar] [CrossRef] [PubMed]





| Category | Checklist item | Present simulation model |
|---|---|---|
| Objectives | ||
| 1.1 Purpose of the model | To develop and validate a DES model of patient flow in the Sleep-Disordered Breathing Unit, capable of reproducing real-world operation and serving as a basis for subsequent evaluation of organisational scenarios aimed at reducing diagnostic waiting lists. | |
| 1.2 Model Outputs | Mean waiting time and queue length at each care stage, using Relative Percent Difference (RPD), Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) as validation metrics. | |
| 1.3 Experimentation Aims | To replicate the retrospective care pathway and assess model reliability. | |
| Logic | ||
| 2.1 Base model overview diagram | See Figure 2. | |
| 2.2 Base model logic | The model logic is stochastic and relies on a State-transition matrix, where the next patient state depends only on the current state, with probabilities estimated from 2024 historical data and validated by unit experts. | |
| 2.3 Scenario logic | Not applicable (N/A). | |
| 2.4 Algorithms | N/A. | |
| 2.5 Components | 2.5.1 Entities Patients progressing through the different clinical stages of the pathway. |
|
| 2.5.2 Activities e-Consultation, face-to-face consultation, diagnostic tests and follow-up consultation. | ||
| 2.5.3 Resources Healthcare professionals whose availability is constrained by work schedules: when resources are unavailable, the stage is closed and patients remain in queue. | ||
| 2.5.4 Queues FIFO waiting lists associated with each stage, monitoring queue length and mean waiting time. | ||
| 2.5.5 Entry/Exit Points Entries consist of referrals from Primary Care and other specialties, modelled as Poisson arrival processes. Exits occur after triage, diagnosis or treatment. | ||
| Data | ||
| 3.1 Data sources | See section 2.2 and 2.3. | |
| 3.2 Pre-processing | N/A. | |
| 3.3 Input parameters | See Table 2 and Table 3. | |
| 3.4 Assumptions | State-transition matrix: when specific registry data were unavailable, transition probabilities between stages were elicited from the Unit Head’s expert judgement. | |
| Experimentation | ||
| 4.1 Initialisation | The model is initialised with the actual queue state as of 1 January 2024 and excludes an initial warm-up period from the computation of outcome indicators to mitigate bias from initial conditions. | |
| 4.2 Run length | The simulation runs over a two-year horizon, until 31 December 2025. | |
| 4.3 Estimation approach |
Ten independent replications with different random seeds were executed to capture stochastic variability. Results were averaged across replications at 10 weekly cut-off points and compared with real data using RMSE, MAE and RPD. | |
| Implementation | ||
| 5.1 Software or programming language | MATLAB R2025b using the Simulink graphical environment and the SimEvents toolbox. | |
| 5.2 Random sampling | The default Mersenne Twister random-number generator in MATLAB was used, with distinct seeds for each of the 10 independent replications. | |
| 5.3 Model execution | SimEvents uses a DES engine on top of Simulink, primarily based on an event-driven/event-scheduling mechanism. No explicit priority rules were defined for resource use, so entities are processed strictly in order of arrival. | |
| 5.4 System Specification | AMD Ryzen 5 5600H with Radeon Graphics (3.30 GHz), 16 GB RAM and Windows 11 Pro 25H2 64-bit operating system. | |
| Code Access | ||
| 6.1 Computer Model Sharing Statement | The computational model and source code are not publicly available. |
| Care Stages | e-Consultation | Face-to-face consultation | POX | PLG | PSG | Follow-up consultation |
Discharge |
|---|---|---|---|---|---|---|---|
| PC | 94.75 | 0 | 0 | 0 | 0 | 0 | 5.25 |
| Other specialties | 0 | 74.35 | 8.27 | 10.27 | 1 | 0 | 6.25 |
| e-Consultation | 0 | 20 | 25.81 | 44.75 | 1 | 0 | 8.44 |
| Face-to-face consultation | 0 | 0 | 27.5 | 30.72 | 1 | 0 | 40.78 |
| POX | 0 | 77.5 | 0 | 0 | 0 | 0 | 22.5 |
| PLG | 0 | 0 | 0 | 0 | 0 | 79.7 | 20.3 |
| PSG | 0 | 0 | 0 | 0 | 0 | 10.3 | 89.7 |
| Follow-up consultation | 0 | 80.16 | 0 | 0 | 1 | 0 | 18.84 |
| Variable | Comments |
|---|---|
| Daily capacity (patients/day) | |
| e-Consultation | Deterministic model with noise, mean 6.28 (variance 4.53). Activity present on 99.96% of working days. |
| Face-to-face consultation | Negative binomial distribution, mean 15.43 (variance 33.95), truncated between 0 and 32. Activity present on 65.2% of working days. |
| POX | Deterministic model with noise, mean 5.37 (variance 2.33). Activity present on 85.2% of working days. |
| PLG | Deterministic model with noise, mean 5.88 (variance 2.44). Activity present on 98.4% of working days. |
| PSG | Deterministic model with noise, mean 2.76 (variance 0.32). Activity present on 73.2% of working days. |
| Follow-up consultation | Negative binomial distribution, mean 10.16 (variance 15.99), truncated between 0 and 16. Activity present on 45.2% of working days. |
| Arrival rates (patients/day) | |
| From PC | Poisson distribution, mean 6.32, with daily weights to reflect weekly variation (1.48, 0.96, 0.79, 0.91, 0.85). |
| From other specialties | Poisson distribution, mean 2.68, using the same daily weights. |
| Initial queue (patients) and mean waiting time (days) | |
| e-Consultation | 112 patients (mean waiting time: 18.05 days). |
| Face-to-face consultation | 1,632 patients (mean waiting time: 149.17 days). |
| POX | 591 patients (mean waiting time: 108.31 days). |
| PLG | 644 patients (mean waiting time: 108.06 days). |
| PSG | 286 patients (mean waiting time: 99.12 days). |
| Follow-up consultation | 179 patients (mean waiting time: 68.44 days). |
| No-show rate (%) | |
| e-Consultation | 0%. |
| Face-to-face consultation | 9.13%. |
| POX | 9.71%. |
| PLG | 6.81%. |
| PSG | 3.44%. |
| Follow-up consultation | 4.50%. |
| Work calendar | Activity from Monday to Friday, with 14 public holidays per year according to the local work calendar. |
| Care Stages | MAE (days) | RMSE (days) | RPD (%) |
|---|---|---|---|
| e-Consultation | 3.6 | 4.44 | 21.1 |
| Face-to-face consultation | 65.15 | 65.27 | 44.5 |
| POX | 35.73 | 35.86 | 28.1 |
| PLG | 4.34 | 5.48 | 2.9 |
| Follow-up consultation | 179.08 | 180.47 | 73.7 |
| Weighted overall | 55.8 | 56.28 | 34.6 |
| Full patient pathway | 72.32 | 75.29 | 10.9 |
| Care Stages | MAE (patients) | RMSE (patients) | RPD (%) |
|---|---|---|---|
| e-Consultation | 6.61 | 7.62 | 16.9 |
| Face-to-face consultation | 38.52 | 40.66 | 1.9 |
| POX | 20.28 | 23.72 | 3.1 |
| PLG | 24.53 | 28 | 2.7 |
| Follow-up consultation | 43.5 | 61.45 | 14.7 |
| Weighted overall | 32.33 | 36.41 | 3.6 |
| Full patient pathway | 99.26 | 134.23 | 3.5 |
| Field of Application |
Objectives | Software | Validation strategy | ||
|---|---|---|---|---|---|
| (Pendharkar et al., 2015) | Multidisciplinary sleep centre | Improve access and test capacity/prioritisation configurations | Not specified | Comparison with real data. No formal metrics. | |
| = | - | - | |||
| (Williams et al., 2020) | Critical care | Determine optimal bed capacity and what-if scenarios | Simul8 | Comparison with real data. No formal metrics | |
| - | - | ||||
| (Sauer et al., 2016) | Endoscopy unit | Improve daily efficiency (room utilisation, blocked flow) | MedModel | Compare deviations between simulated and real times. No formal metrics | |
| - | - | ||||
| (Yakutcan et al., 2021) | COPD pathway | Assess cost-effectiveness of increased pulmonary rehabilitation | Simul8 | Face validity with clinical team and comparison with real data. No formal metrics | |
| - | - | ||||
| Present study | Sleep-Disordered Breathing Unit | Retrospective validation as basis for analyse waiting lists | MATLAB | Formal retrospective validation using MAE, RMSE and RPD | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).