Abstract
This study aims to develop and implement an efficient hospital queue management system by integrating the Priority Queue algorithm with Reinforcement Learning (RL). The primary objective is to enhance the prioritization of emergency patients, ensuring that those with the most critical conditions receive timely care. The Priority Queue algorithm facilitates the sorting of patients based on the severity of their medical conditions, while RL enables the system to continuously learn and optimize the queue management process using historical data and real-time feedback. The research methodology includes data collection from hospital queues, algorithm model development, and simulated and real-world data validation. The results demonstrate that the combination of these algorithms significantly reduces waiting times for emergency patients and improves overall hospital operational efficiency. Additionally, implementing this algorithm has increased patient satisfaction due to shorter wait times and more timely services. The study concludes that the Priority Queue algorithm enhanced by RL is an effective solution for hospital queue management and recommends further research on larger scales and with more complex algorithms.
Article Details
How to Cite
Citation FormatReferences
26 References- Armony, M., Israelit, S., Mandelbaum, A., Marmor, Y., Tseytlin, Y., & Yom-Tov, G. (2015). On patient flow in hospitals: A data-based queueing-science perspective. Stochastic Systems, 5(1), 146-194. https://doi.org/10.1287/14-ssy153
- Benevento, E., Aloini, D., Squicciarini, N., Dulmin, R., & Mininno, V. (2019). Queue-based features for dynamic waiting time prediction in emergency departments. Measuring Business Excellence, 23(4), 458-471. https://doi.org/10.1108/mbe-12-2018-0108
- Liang, C. (2016). Queueing management and improving customer experience: Empirical evidence regarding enjoyable queues. Journal of Consumer Marketing, 33(4), 257-268. https://doi.org/10.1108/jcm-07-2014-1073
- Brown, R. (1988). Calendar queues: A fast 0(1) priority queue implementation for the simulation event set problem. Communications of the ACM, 31(10), 1220-1227. https://doi.org/10.1145/63039.63045
- Thorup, M. (2007). Equivalence between priority queues and sorting. Journal of the ACM, 54(6), 28. https://doi.org/10.1145/1314690.1314692
- He, Q., Xie, J., & Zhao, X. (2012). Priority queue with customer upgrades. Naval Research Logistics (NRL), 59(5), 362-375. https://doi.org/10.1002/nav.21494
- Liu, B., Xie, Q., & Modiano, E. (2019). Reinforcement learning for optimal control of queueing systems. Proceedings of Allerton Conference on Communication, Control, and Computing, 2019. https://doi.org/10.1109/allerton.2019.8919665
- Maity, I., & Taleb, T. (2022). Resq: Reinforcement learning-based queue allocation in software-defined queuing framework. Journal of Networking and Network Applications, 2(4), 143-152. https://doi.org/10.33969/j-nana.2022.020402
- Yousif, A., Hassan, H., & Muttasher, G. (2022). Applying reinforcement learning for random early detection algorithm in adaptive queue management systems. Indonesian Journal of Electrical Engineering and Computer Science, 26(3), 1684. https://doi.org/10.11591/ijeecs.v26.i3.pp1684-1691
- Turnip, H., & Soewondo, P. (2022). Analisis manajemen anggaran pada rumah sakit rujukan di masa pandemi COVID-19. Jurnal Ekonomi Kesehatan Indonesia, 7(2), 124. https://doi.org/10.7454/eki.v7i2.5993
- Suhartatik, S., Putra, D., Farlinda, S., & Wicaksono, A. (2022). Evaluasi keberhasilan implementasi SIMRS di rumah sakit X Kabupaten Jember dengan pendekatan metode TTF. J-Remi Jurnal Rekam Medik dan Informasi Kesehatan, 3(3), 231-242. https://doi.org/10.25047/j-remi.v3i3.2586
- Armono, D. (2022). Pengukuran dan Evaluasi Kinerja Lembaga Rumah Sakit dalam Rangka Meningkatkan Kualitas Layanan Publik. Jurnal Aplikasi Bisnis, 19(2), 201-208. https://doi.org/10.20885/jabis.vol19.iss2.art1
- Cho, Y., & Hong, P. (2023). Applying machine learning to healthcare operations management: CNN-based model for malaria diagnosis. Healthcare, 11(12), 1779. https://doi.org/10.3390/healthcare11121779
- Elalouf, A., & Wachtel, G. (2021). Queueing problems in emergency departments: A review of practical approaches and research methodologies. Operations Research Forum, 3(1). https://doi.org/10.1007/s43069-021-00114-8
- Zheng, L., Li, W., Wang, L., & Ou, J. (2023). Development and validation of machine learning-based models for prediction of adolescent idiopathic scoliosis: A retrospective study. Medicine, 102(14), e33441. https://doi.org/10.1097/md.0000000000033441
- Imran, M., Zaman, U., Imtiaz, J., Fayaz, M., & Gwak, J. (2021). Comprehensive survey of IoT, machine learning, and blockchain for health care applications: A topical assessment for pandemic preparedness, challenges, and solutions. Electronics, 10(20), 2501. https://doi.org/10.3390/electronics10202501
- Brown, N. (2024). Predicting accurate batch queue wait times on production supercomputers by combining machine learning techniques. Concurrency and Computation: Practice and Experience, 36(15). https://doi.org/10.1002/cpe.8112
- Tassew, T., & Xu, M. (2022). A comprehensive review of the application of machine learning in medicine and healthcare. TechRxiv Preprints. https://doi.org/10.36227/techrxiv.21204779
- Mishra, R. (2024). Deep learning techniques for forecasting emergency department patient wait times in healthcare queue systems. Research Square Preprints, 2024. https://doi.org/10.21203/rs.3.rs-4392800/v1
- Davalos, D. (2024). A conceptual swarm intelligence framework for deriving a global healthcare machine learning model. International Journal of Business and Applied Social Science, 12(27). https://doi.org/10.33642/ijbass.v10n5p2
- López Martínez, F. E. (2020). A Big Data and Machine Learning Model to Improve Medical Decision Support in Population Health Management (Doctoral dissertation).
- Hijry, H., & Olawoyin, R. (2021). Predicting patient waiting time in the queue system using deep learning algorithms in the emergency room. International Journal of Industrial Engineering and Operations Management, 03(01), 33-45. https://doi.org/10.46254/j.ieom.20210103
- Mtange, M. (2023). Log-in, track-it and customer-care: Women’s perspective of queueing technology system in healthcare in Kenya. Jurnal Komunikasi Ikatan Sarjana Komunikasi Indonesia, 8(1), 192-197. https://doi.org/10.25008/jkiski.v8i1.863
- Septian, E. (2021). Penerapan sistem pelayanan aplikasi pendaftaran online di Rumah Sakit Umum Pusat Dr. Sardjito Yogyakarta. Matra Pembaruan, 5(1), 53-64. https://doi.org/10.21787/mp.5.1.2021.53-64
- Sherzer, E., Senderovich, A., Baron, O., & Krass, D. (2022). Can machines solve general queueing systems? arXiv Preprint, 2022. https://doi.org/10.48550/arxiv.2202.01729
- Vucevic, N., Perez-Romero, J., Sallent, O., & Agusti, R. (2007). Reinforcement learning for active queue management in mobile all-IP networks. Proceedings of the IEEE International Symposium on Personal, Indoor, and Mobile Radio Communications (PIMRC). https://doi.org/10.1109/pimrc.2007.4394713.
License
Copyright (c) 2024 Iwan Adhicandra, Safitri Nurhidayati, Tribowo Rachmat Fauzan

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
This is an open-access journal distributed under the Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits unrestricted use, distribution, reproduction, and adaptation in any medium (even commercially), provided appropriate credit is given to the original author(s), a link to the license is provided, and any changes made are indicated. Authors retain copyright without restrictions and grant the journal the right of first publication as well as non-exclusive publishing rights for archiving, indexing, and scholarly dissemination.
Downloads
OJS UsageStats PluginSimilar Articles
- Design of a Birth Certificate Information System (Neonatal) Using the Waterfall Method at Santosa Hospital Bandung Kopo Rizty May Agustien, Falaah Abdussalaam, Ade Irma Suryani · International Journal Software Engineering and Computer Science (IJSECS) · Vol. 4 No. 2 (2024): AUGUST 2024
- Web-Based Inpatient Medical Record Review Information System Design Using the Agile Method: Implementation at RSUD Bandung City Mely Fahmalia, Yuyun Yunengsih, Falaah Abdussalaam · International Journal Software Engineering and Computer Science (IJSECS) · Vol. 5 No. 3 (2025): DECEMBER 2025
- Design of Recapitulation System Pending Inpatient Claims to Enhance BPJS Verification Efficiency Using Extreme Programming Belinda Nuryania Prameswari, Falaah Abdussalaam, Yuyun Yunengsih · International Journal Software Engineering and Computer Science (IJSECS) · Vol. 5 No. 3 (2025): DECEMBER 2025
- Development of a Web-Based Educational Information System Using the RAD Method: A Case Study at Persahabatan Hospital Reza Setiawan, Veri Arinal · International Journal Software Engineering and Computer Science (IJSECS) · Vol. 5 No. 3 (2025): DECEMBER 2025
- Electronic Medical Record Management in Monitoring Loan and Return of Medical Records at Majalaya Hospital Sri Haryati, Yuda Syahidin, Desy Widyaningrum · International Journal Software Engineering and Computer Science (IJSECS) · Vol. 3 No. 2 (2023): AUGUST 2023
You may also start an advanced similarity search for this article.
Most read articles by the same author(s)
- Sentiment and Public Emotion Classification of Viral Content Using Transformer-Based Model Ferdi Antonio, Handry Eldo, Arrazy Elba Ridha, Iwan Adhicandra, Cut Susan Octiva · Vol. 6 No. 1 (2026): APRIL 2026
- Optimizing E-commerce Inventory to prevent Stock Outs using the Random Forest Algorithm Approach Achmad Ridwan, Ully Muzakir, Safitri Nurhidayati · Vol. 4 No. 1 (2024): APRIL 2024
- Integration of Geographic Information Systems and Spatial Data Analysis in Location Decision Making for Manufacturing Industries Nofirman, Naufal Haidar Ahmada, Tribowo Rachmat Fauzan · Vol. 4 No. 1 (2024): APRIL 2024
- Enhancing Logistic Efficiency in Product Distribution through Genetic Algorithms (GAs) for Route Optimization Loso Judijanto, Tribowo Rachmat Fauzan, Bobby Fisher · Vol. 3 No. 3 (2023): DECEMBER 2023
Recommended Articles
Journal Transparency
Additional InformationLearn more about how this journal ensures quality, ethics, and transparency.