EDBERT: Predicting Emergency Department Disposition Using a BERT-Based Architecture
Abstract
1. Introduction
SP: this PM, intermittent L) axilla pain, sharp localised, also c/o blood in stool few times this week, small, bright. PHx nil. GCS 15, RR 16, SpO2 100%, BP 126/72, T 36.3, pain 2/10--declines analgesia, BOC 0, nil COVID sx.
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
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 |
| EHR | Electronic Health Record |
| 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] [Scilit]
- 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 2016–17: Australian Hospital Statistics. 2017. Available online: https://www.aihw.gov.au/reports/hospitals/ahs-2016-17-emergency-department-care/ (accessed on 26 November 2024).
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- Group, M.T. Emergency Triage; John Wiley & Sons: Hoboken, NJ, USA, 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] [Scilit]
- Luo, X.; Deng, Z.; Yang, B.; Luo, M.Y. Pre-trained language models in medicine: A survey. Artif. Intell. Med. 2024, 154, 102904. [Google Scholar] [CrossRef] [Scilit]
- Devlin, J.; Chang, M.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv 2018, arXiv:1810.04805. [Google Scholar]
- 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] [CrossRef] [Scilit]
- 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] [CrossRef] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- Boughorbel, S.; Jarray, F.; Homaid, A.A.; Niaz, R.; Alyafei, K. Multi-Modal Perceiver Language Model for Outcome Prediction in Emergency Department. arXiv 2023, arXiv:2304.01233. [Google Scholar]
- 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 18th BioNLP Workshop and Shared Task, Florence, Italy, 1 August 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] [Scilit]
- Zhang, B.; Li, Z.; Ma, Q.; Zhang, J.; Xiang, Z.; Jiang, D. Silhouette-Based Cross-View Motion Gait Recognition via a Multi-Scale Temporal Difference Unit. Electronics 2026, 15, 2512. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]
- Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
- Rasmy, L.; Xiang, Y.; Xie, Z.; Tao, C.; Zhi, D. Med-BERT: Pretrained contextualized embeddings on large-scale structured electronic health records for disease prediction. npj Digit. Med. 2021, 4, 86. [Google Scholar] [CrossRef] [Scilit]
- Sanh, V.; Debut, L.; Chaumond, J.; Wolf, T. DistilBERT, a distilled version of BERT: Smaller, faster, cheaper and lighter. arXiv 2019, arXiv:1910.01108. [Google Scholar]
- Jiao, X.; Yin, Y.; Shang, L.; Jiang, X.; Chen, X.; Li, L.; Wang, F.; Liu, Q. Tinybert: Distilling bert for natural language understanding. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2020, Online, 16 November 2020; pp. 4163–4174. [Google Scholar]
- Lan, Z.; Chen, M.; Goodman, S.; Gimpel, K.; Sharma, P.; Soricut, R. Albert: A lite bert for self-supervised learning of language representations. arXiv 2019, arXiv:1909.11942. [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, 201, 105957. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]



| 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 |
| (81.97–82.41) | (80.98–81.46) | (79.91–80.41) | (80.38–80.86) | |
| EDBERT (8 layers) | 83.26 | 82.14 | 81.85 | 81.99 |
| (83.05–83.47) | (81.92–82.36) | (81.63–82.07) | (81.77–82.21) |
| Model | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|
| BERT-Base | 81.70(81.48–81.92) | 80.73(80.51–80.95) | 79.68(79.45–79.91) | 80.13(79.90–80.36) |
| MedBERT | 82.19(81.97–82.41) | 81.22(81.00–81.44) | 80.16(79.93–80.39) | 80.16(79.93–80.39) |
| DistilBERT | 81.60(81.38–81.82) | 79.75(79.52–79.98) | 79.58(79.35–79.81) | 79.13(78.90–79.36) |
| TinyBERT | 80.90(80.68–81.12) | 79.75(79.52–79.98) | 78.90(78.67–79.13) | 79.13(78.90–79.36) |
| ALBERT | 81.40(81.18–81.62) | 79.75(79.52–79.98) | 79.39(79.16–79.62) | 79.13(78.90–79.36) |
| Age | Presenting Complaint | Triage Note | Predicted Disposition (Probability Score) | Actual Disposition |
|---|---|---|---|---|
| 63 | Gastrointestinal | Due for ascitic tap on 7/10. Awoke this AM with worsening SOB and severe abdominal distension. Last tap on 20/09 drained 5L. PMHx: liver CA, CKD, HTN, T2DM, IHD. | Admission (98.3%) | Discharge |
| 20 | Other Medical | Right hand burned on hot oil; partial-thickness/superficial dermal burn with blistering to fingers. First aid applied. PHx: nil. | Discharge (98.1%) | Admission |
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.
Share and Cite
Hossain, M.A.; Chavinda, K.; Woodbright, M.D.; Senadheera, I.; Kogul, S.; Freeman, S.; Putland, M.; Akhlaghi, H.; Alahakoon, D.; Rahman, M.A. EDBERT: Predicting Emergency Department Disposition Using a BERT-Based Architecture. Algorithms 2026, 19, 729. https://doi.org/10.3390/a19090729
Hossain MA, Chavinda K, Woodbright MD, Senadheera I, Kogul S, Freeman S, Putland M, Akhlaghi H, Alahakoon D, Rahman MA. EDBERT: Predicting Emergency Department Disposition Using a BERT-Based Architecture. Algorithms. 2026; 19(9):729. https://doi.org/10.3390/a19090729
Chicago/Turabian StyleHossain, Md Ali, Krishan Chavinda, Mitchell D. Woodbright, Isuru Senadheera, Srikandabala Kogul, Sam Freeman, Mark Putland, Hamed Akhlaghi, Damminda Alahakoon, and Md Anisur Rahman. 2026. "EDBERT: Predicting Emergency Department Disposition Using a BERT-Based Architecture" Algorithms 19, no. 9: 729. https://doi.org/10.3390/a19090729
APA StyleHossain, M. A., Chavinda, K., Woodbright, M. D., Senadheera, I., Kogul, S., Freeman, S., Putland, M., Akhlaghi, H., Alahakoon, D., & Rahman, M. A. (2026). EDBERT: Predicting Emergency Department Disposition Using a BERT-Based Architecture. Algorithms, 19(9), 729. https://doi.org/10.3390/a19090729

