Submitted:
20 July 2026
Posted:
22 July 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Data
2.2. The EDBERT Model
2.2.1. Customised BERT Encoder Stack
2.2.2. Fusion Network
2.3. Model Training
2.4. Evaluation
3. Results
4. Discussion
4.1. Limitations
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| ED | Emergency Department |
| BERT | Bidirectional Encoder Representations from Transformers |
| EDBERT | Emergency Department Bidirectional Encoder Representations from Transformers |
| LOS | Length of Stay |
| NLP | Natural Language Processing |
| LLM | Large Language Model |
| MLM | Masked Language Modelling |
| AUROC | Area Under the Receiver Operating Characteristic Curve |
| ROC | Receiver Operating Characteristic |
| AUC | Area Under the Curve |
References
- Payne, K.; Risi, D.; O’Hare, A.; Binks, S.; Curtis, K. Factors that contribute to patient length of stay in the emergency department: A time in motion observational study. Australas. Emerg. Care 2023, 26, 321–325. [Google Scholar] [CrossRef] [PubMed]
- Australian Institute of Health and Welfare (AIHW). Emergency department care, 2023. Available online: https://www.aihw.gov.au/reports-data/myhospitals/sectors/emergency-department-care (accessed on 26 November 2024).
- Australian Institute of Health and Welfare. Emergency department care activity, 2025. MyHospitals. Available online: https://www.aihw.gov.au/reports-data/myhospitals/sectors/emergency-department-care (accessed on 26 November 2024).
- Australian Institute of Health and Welfare. Emergency department care 2016–17: Australian hospital statistics, 2017. Available online: https://www.aihw.gov.au/reports/hospitals/ahs-2016-17-emergency-department-care/.
- Farimani, R.M.; Karim, H.; Atashi, A.; Tohidinezhad, F.; Bahaadini, K.; Abu-Hanna, A.; Eslami, S. Models to predict length of stay in the emergency department: a systematic literature review and appraisal. BMC Emerg. Med. 2024, 24, 54. [Google Scholar] [CrossRef] [PubMed]
- Rahman, M.A.; Lim, D.Z.; Davoren, M.; Lok, I.; Rahman, S.; Hough, P.; Mosa, T.; Begum, S. Mapping the patient journey: utilizing clinical informatics for a conceptual approach to identify aspects of emergency department access block. Netw. Model. Anal. Health Inform. Bioinform. 2024, 13, 54. [Google Scholar] [CrossRef]
- Kuo, K.M.; Lin, Y.L.; Chang, C.S.; Kuo, T.J. An ensemble model for predicting dispositions of emergency department patients. BMC Med. Inform. Decis. Mak. 2024, 24, 105. [Google Scholar] [CrossRef] [PubMed]
- Gurazada, S.G.; Gao, S.; Burstein, F.; Buntine, P. Predicting patient length of stay in Australian emergency departments using Data Mining. Sensors 2022, 22, 4968. [Google Scholar] [CrossRef] [PubMed]
- Jones, S.; Moulton, C.; Swift, S.; Molyneux, P.; Black, S.; Mason, N.; Oakley, R.; Mann, C. Association between delays to patient admission from the emergency department and all-cause 30-day mortality. Emerg. Med. J. 2022, 39, 168–173. [Google Scholar] [CrossRef] [PubMed]
- Janerka, C.; Leslie, G.D.; Gill, F.J. Patient experience of emergency department triage: an integrative review. Int. Emerg. Nurs. 2024, 74, 101456. [Google Scholar] [CrossRef] [PubMed]
- Sterling, N.W.; Patzer, R.E.; Di, M.; Schrager, J.D. Prediction of emergency department patient disposition based on natural language processing of triage notes. Int. J. Med. Inform. 2019, 129, 184–188. [Google Scholar] [CrossRef] [PubMed]
- Arvig, M.D.; Mogensen, C.B.; Skjøt-Arkil, H.; Johansen, I.S.; Rosenvinge, F.S.; Lassen, A.T. Chief complaints, underlying diagnoses, and mortality in adult, non-trauma emergency department visits: a population-based, multicenter cohort study. West. J. Emerg. Med. 2022, 23, 855. [Google Scholar] [CrossRef] [PubMed]
- Group, M.T. Emergency triage; John Wiley & Sons, 2008. [Google Scholar]
- Wang, D.; Zhang, S. Large language models in medical and healthcare fields: applications, advances, and challenges. Artif. Intell. Rev. 2024, 57, 299. [Google Scholar] [CrossRef]
- Luo, X.; Deng, Z.; Yang, B.; Luo, M.Y. Pre-trained language models in medicine: A survey. Artif. Intell. Med. 2024, 102904. [Google Scholar] [CrossRef] [PubMed]
- Devlin, J.; Chang, M.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. CoRR 2018. [Google Scholar] [CrossRef]
- Alsentzer, E.; Murphy, J.R.; Boag, W.; Weng, W.H.; Jin, D.; Naumann, T.; McDermott, M. Publicly available clinical BERT embeddings. arXiv 2019, arXiv:1904.03323. [Google Scholar]
- Lee, J.; Yoon, W.; Kim, S.; Kim, D.; Kim, S.; So, C.H.; Kang, J. BioBERT: a pre-trained biomedical language representation model for biomedical text mining. Bioinformatics 2020, 36, 1234–1240. [Google Scholar] [PubMed]
- Tahayori, B.; Chini-Foroush, N.; Akhlaghi, H. Advanced natural language processing technique to predict patient disposition based on emergency triage notes. Emerg. Med. Australas. 2021, 33, 480–484. [Google Scholar] [PubMed]
- Ferri, P.; Sáez, C.; Félix-De Castro, A.; Juan-Albarracín, J.; Blanes-Selva, V.; Sánchez-Cuesta, P.; García-Gómez, J.M. Deep ensemble multitask classification of emergency medical call incidents combining multimodal data improves emergency medical dispatch. Artif. Intell. Med. 2021, 117, 102088. [Google Scholar] [CrossRef] [PubMed]
- Chang, Y.H.; Lin, Y.C.; Huang, F.W.; Chen, D.M.; Chung, Y.T.; Chen, W.K.; Wang, C.C. Using machine learning and natural language processing in triage for prediction of clinical disposition in the emergency department. BMC Emerg. Med. 2024, 24, 237. [Google Scholar] [CrossRef] [PubMed]
- Chen, C.H.; Hsieh, J.G.; Cheng, S.L.; Lin, Y.L.; Lin, P.H.; Jeng, J.H. Emergency department disposition prediction using a deep neural network with integrated clinical narratives and structured data. Int. J. Med. Inform. 2020, 139, 104146. [Google Scholar] [CrossRef] [PubMed]
- Peng, Y.; Yan, S.; Lu, Z. Transfer learning in biomedical natural language processing: an evaluation of BERT and ELMo on ten benchmarking datasets. In Proceedings of the Proceedings of the 18th BioNLP workshop and shared task, 2019; pp. 58–65. [Google Scholar]
- Chen, T.Y.; Huang, T.Y.; Chang, Y.C. Using a clinical narrative-aware pre-trained language model for predicting emergency department patient disposition and unscheduled return visits. J. Biomed. Inform. 2024, 155, 104657. [Google Scholar] [CrossRef] [PubMed]
- Sharaf, S.; Anoop, V. An analysis on large language models in healthcare: a case study of BioBERT. arXiv 2023, arXiv:2310.07282. [Google Scholar]
- Koroteev, M.V. BERT: a review of applications in natural language processing and understanding. arXiv 2021, arXiv:2103.11943. [Google Scholar]
- Williams, E.L.; Huynh, D.; Estai, M.; Sinha, T.; Summerscales, M.; Kanagasingam, Y. Predicting inpatient admissions from emergency department triage using machine learning: a systematic review. Mayo Clin. Proc. Digit. Health 2025, 3, 100197. [Google Scholar] [CrossRef] [PubMed]
- Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
- Abdulai, A.S.B.; Storm, J.; Ehrlich, M. “I don’t know”: An uncertainty-aware machine learning model for predicting patient disposition at emergency department triage. Int. J. Med. Inform. 2025, 105957. [Google Scholar] [CrossRef] [PubMed]
- Barak-Corren, Y.; Agarwal, I.; Michelson, K.A.; Lyons, T.W.; Neuman, M.I.; Lipsett, S.C.; Kimia, A.A.; Eisenberg, M.A.; Capraro, A.J.; Levy, J.A.; et al. Prediction of patient disposition: comparison of computer and human approaches and a proposed synthesis. J. Am. Med. Inform. Assoc. 2021, 28, 1736–1745. [Google Scholar] [CrossRef] [PubMed]



| Item | Quantity |
|---|---|
| Total Vocabulary | 46,944,023 |
| Unique Vocabulary | 480,326 |
| Uniqueness | 1.01% |
| Component | BERT-BASE | EDBERT |
|---|---|---|
| Hidden Size (H) | 768 | 512 |
| Number of Transformer Layers (L) | 12 | 8 |
| Number of Multi-Head Self-Attention Heads (A) | 12 | 8 |
| Maximum Position Embeddings | 512 | 512 |
| Intermediate Size (I) | 3072 | 2048 |
| Hyperparameter | Value |
|---|---|
| Learning Rate | |
| Weight Decay | 0.01 |
| Train Batch Size | 64 |
| Test Batch Size | 32 |
| Dropout Percentage | 0.5 |
| Model | Accuracy (%) | Precision (%) | Recall (%) | F1-Score (%) |
|---|---|---|---|---|
| BERT-Base (12 layers) | 82.19 | 81.22 | 80.16 | 80.62 |
| EDBERT (8 layers) | 83.26 | 82.14 | 81.85 | 81.99 |
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/).