Preprint
Article

This version is not peer-reviewed.

EDBERT: Predicting Emergency Department Disposition Using a BERT-Based Architecture

Submitted:

20 July 2026

Posted:

22 July 2026

You are already at the latest version

Abstract
Objective: To develop and evaluate EDBERT (Emergency Department Bidirectional Encoder Representations from Transformers), a BERT-based architecture built around a multi-input fusion network that enriches free-text triage notes with the additional context of presenting complaints and patient age to predict Emergency Department (ED) disposition, supporting early decision-making and reduced ED length of stay (LOS). Methods: A retrospective cohort of 570,143 ED presentations to the Royal Melbourne Hospital, Australia, was used. At the core of EDBERT, a fusion network integrates three complementary input sources—triage notes, presenting complaints, and patient age—through learnable weights, with the two free-text inputs encoded by customised 8-layer BERT encoder stacks pre-trained on triage text with Masked Language Modelling (MLM). The resulting architecture is also lightweight, containing 66 million parameters, substantially fewer than the 110 million of BERT-BASE. Eighty percent of the dataset was used for training and 20% for testing. Performance was benchmarked against BERT-Base configurations of varying depth. Results: EDBERT achieved an accuracy of 83.26%, a macro-averaged F1-score of 81.99%, and an area under the receiver operating characteristic curve of 0.91, outperforming all single-input BERT-Base variants, including a depth-matched 8-layer model (82.08%), indicating that the gain derives from the fusion of complementary inputs combined with domain-adaptive pre-training rather than from model capacity. Conclusion: A fusion-based BERT architecture that supplements the triage narrative with presenting complaint and age context predicts ED disposition more accurately than larger single-input BERT models, while requiring substantially less memory and computation, making it practical for deployment in hospitals with limited computing resources.
Keywords: 
;  ;  ;  ;  

1. Introduction

Australia faces an ever-growing demand for emergency care and hospital admissions [1]. Emergency Departments (EDs) provide 24-hour assistance for people with severe or life-threatening injuries or illnesses, and have been experiencing increases in patient demand that surpass population growth [2]. In 2023–2024, an estimated 9 million patients presented to EDs in Australia [3]—24,658 patients per day—of whom approximately 31% were subsequently admitted to inpatient wards [4].
ED length of stay (LOS) is the duration between a patient’s arrival at the ED and their departure from it [5,6]. EDs are often overcrowded [7], leading to prolonged ED LOS, which correlates with increased morbidity and mortality [8]. Jones et al. reported a time-associated linear increase in all-cause 30-day mortality for patients who remain in the ED for more than 5 h after arrival, with one additional death occurring for every 82 patients delayed for over 6 to 8 h [9]. Early identification of patients who will require admission can therefore improve ED flow, optimise resource allocation, and ultimately enhance patient outcomes.
The triage process serves as the first point of contact for patients in the ED [10]. Before assessment, demographic information and the reason for presentation are collected and documented in the triage note by a triage nurse [11]. The presenting problem, also referred to as the chief complaint [12], provides a concise description of the primary concern that prompted the patient to attend the ED, whereas the triage note is a brief clinical record that typically includes the reason for presentation, relevant symptoms, medical history, and physiological observations used to determine clinical urgency. The quality and completeness of triage documentation can influence the efficiency and effectiveness of early ED assessment and care [13]. Nonetheless, ED triage notes are commonly written in a highly compressed style and may contain abbreviations, symbols, incomplete phrases, and locally used shorthand. The following de-identified example from the study dataset illustrates these characteristics:
Presenting problem: Left axillary pain and rectal bleeding.
Triage note:
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.
This short narrative includes clinically relevant information such as the timing, location, and characteristics of the pain; the additional report of rectal bleeding; previous medical history; physiological observations; pain severity; and the patient’s decision to decline analgesia. Although such documentation is efficient for rapid clinical recording, its abbreviated and locally variable form creates challenges for consistent interpretation and automated natural language processing (NLP).
With recent significant advancements in NLP, the adoption of large language models (LLMs) in the medical context has gained considerable attention [14], and these models have shown significant efficacy in downstream medical NLP tasks when trained on large datasets of clinical text [15]. LLMs such as Bidirectional Encoder Representations from Transformers (BERT) [16] and its pre-trained variants, including ClinicalBERT [17] and BioBERT [18], have shown significant potential for medical applications. In 2021, Tahayori et al. reported the first Australian application of BERT to free-text ED triage notes, predicting patient disposition with an accuracy of 83% and an area under the receiver operating characteristic curve (AUROC) of 0.88 [19]. Ferri et al. developed a deep ensemble multitask model incorporating BERT to predict emergency jurisdiction from multimodal emergency medical call incidents, reporting an accuracy of 0.80 [20]. Building on these findings, Chang et al. demonstrated that machine learning models integrating both structured and unstructured triage data could outperform emergency physicians in disposition prediction [21], and Chen et al. introduced a deep neural network integrating physicians’ clinical narratives with vital signs that outperformed traditional logistic regression and early warning scores in terms of F1-score [22]. More recently, Chen et al. used BlueBERT, a biomedical domain-specific language model [23], and achieved an AUROC of 0.9014, demonstrating that domain-adapted pre-trained models provide considerable gains over general-purpose LLMs [24].
However, two important gaps remain in this body of work. First, most existing BERT-based disposition models rely on the free-text triage note as a single input, without systematically integrating the readily available structured context that accompanies it at triage, such as the presenting complaint and patient age; indeed, Tahayori et al. anticipated that adding age as a distinct feature would further improve predictive performance [19]. Second, developing, fine-tuning, and maintaining LLMs for healthcare applications is resource-intensive [25]: BERT-BASE contains approximately 110 million parameters [26], demanding substantial computational power that makes it less practical for hospitals with limited computing resources.
In the present study, we developed EDBERT (Emergency Department Bidirectional Encoder Representations from Transformers), a BERT-based architecture organised around a multi-input fusion network that supplements the triage note with the additional context of the presenting complaint and patient age, combining the three sources through learnable weights into a single representation for disposition prediction. To our knowledge, this is the first customised BERT architecture explicitly designed for the ED context. Its encoder stacks are also deliberately lightweight, with reduced memory usage and lower computational cost compared to conventional resource-intensive BERT variants. The main contributions of this study are (i) a fusion-based BERT technique that enriches free-text triage notes with complementary structured context for ED disposition prediction, (ii) a lightweight, domain-tailored encoder design with reduced memory and computational overhead, and (iii) a comparative analysis between EDBERT and other BERT architectures on real-world ED data.

2. Materials and Methods

2.1. Data

We used a retrospective dataset of 570,143 electronic patient triage records from the Emergency Department of the Royal Melbourne Hospital, Australia. Of these, 211,810 (32.2%) presentations resulted in admission and 358,333 (62.8%) in a “Home” disposition. The remaining 5% of presentations involved other disposition categories, such as transfer to another hospital, leaving the ED before completion of care, or death in the ED, and were excluded from this study. Each record included the triage note and presenting complaint as free-text fields, and patient age as an integer value.
Eighty percent of the dataset was used for training the model and the remaining 20% was used as the test set to measure final predictive performance on unseen observations.

2.2. The EDBERT Model

EDBERT is organised around a fusion network that integrates three complementary input sources—triage notes, presenting complaints, and patient age—into a single representation for disposition prediction. The two free-text inputs are encoded by customised, lightweight BERT encoder stacks (66 million parameters in total). We first describe the encoder stack, and then the fusion network that forms the core of the architecture.

2.2.1. Customised BERT Encoder Stack

The transformer encoder stack in EDBERT (Figure 1) is a modified version of the original BERT architecture [16]. While BERT-BASE includes 12 layers with 12 attention heads and a hidden size of 768, these settings are excessive for the comparatively short, less linguistically complex triage notes and presenting complaints [19]. Statistical analysis of the input corpus revealed that unique vocabulary accounts for only ∼1% of the total vocabulary in triage notes (Table 1), indicating low lexical variability. Accordingly, we reduced the number of transformer layers from 12 to 8, the number of multi-head self-attention heads from 12 to 8, the hidden size from 768 to 512, and the feedforward intermediate size from 3072 to 2048. The model’s vocabulary was tailored to include more domain-specific tokens (expanded to 40,000), while the maximum positional embedding of 512 was retained to accommodate the short ED texts. Table 2 summarises these modifications. The empirical analysis of encoder depth that informed the 8-layer design is provided in the Supplementary Materials (Table S1, Figures S1 and S2).

2.2.2. Fusion Network

The fusion network integrates three distinct input sources: triage notes, presenting complaints, and patient age, each providing complementary information for disposition prediction. Triage notes serve as the primary source because they contain rich, unstructured clinical information, including detailed symptom descriptions, severity indicators, contextual factors, and triage nurse observations. However, presenting complaints and age were also included because they provide concise and standardised information that may not always be stated explicitly or consistently within the triage notes. Presenting complaints capture the patient’s primary reason for attending the emergency department, while age provides an important indicator of baseline clinical risk. The inclusion of presenting complaints and age was informed by both prior literature and routine emergency department practice, as these variables provide complementary, routinely available information that may not be fully captured in the triage note. Previous studies have similarly shown that routinely collected triage features, including age, triage category, arrival mode, and vital signs, are among the strongest contributors to predictive performance [27].
Each input is first processed through a dedicated encoding pipeline. The triage notes and presenting complaints are tokenised and encoded separately using two identical customised encoder stacks (Section 2.2.1), pre-trained on domain-specific triage data, to produce contextual embeddings; during training, each embedding passes through a dropout layer to reduce overfitting. The age input is projected into the same embedding space as the BERT hidden layers via a fully connected linear transformation.
To combine the input sources, the model applies learnable scalar weights to each of the three embeddings, and the weighted embeddings are summed to form a single fused representation:
Fusion = w text · E text + w pc · E pc + w age · E age
This fused embedding is then passed through the final classification layer, which predicts the ED disposition (Figure 2).

2.3. Model Training

EDBERT was trained in two stages. In the first stage, the two customised encoder stacks were pre-trained using the Masked Language Modelling (MLM) technique [16]: 15% of the input tokens were randomly selected for masking, and the model was trained to reconstruct their original values from the surrounding context. This enables the model to learn deep, context-sensitive representations and capture the complex semantic and syntactic relationships within triage texts. In the second stage, the full model was trained end-to-end by calculating the loss between the predicted and actual disposition labels using the cross-entropy loss function.
The weights applied to the three input sources were determined through grid search optimisation: w text = 0.65 for triage notes, w pc = 0.20 for presenting complaints, and w age = 0.15 for age. The Adam optimiser [28] was used with a learning rate of 2 × 10 5 and a weight decay of 0.01. The batch size was set to 64 for training and 32 for evaluation, and a dropout rate of 0.5 was applied during training to mitigate overfitting. Table 3 summarises the hyperparameter configuration.

2.4. Evaluation

Predictive performance on the held-out test set was assessed using accuracy, macro-averaged precision, recall, and F1-score, the receiver operating characteristic (ROC) curve, and the area under the ROC curve (AUC). EDBERT was benchmarked against BERT-Base configurations with 2 to 12 transformer layers (in increments of two). Two ablation analyses were conducted to justify the final design: (i) the effect of encoder depth on predictive performance, parameter count, and training time, and (ii) the contribution of MLM pre-training. The complete results of these analyses are reported in the Supplementary Materials.

3. Results

The triage notes had a maximum length of 101 words and an average length of 391 characters, including spaces.
EDBERT achieved the highest performance of all evaluated models (see supplementary materials), with an accuracy of 83.26% and macro-averaged precision, recall, and F1-score of 82.14%, 81.85%, and 81.99%, respectively, outperforming the standard 12-layer BERT-Base model across all metrics (Table 4). Notably, EDBERT also exceeded the depth-matched 8-layer BERT-Base model trained on triage notes alone (83.26% vs. 82.08% accuracy; Supplementary Table S1), indicating that the improvement stems primarily from the fusion of complementary inputs and domain-adaptive pre-training rather than from model capacity. The ROC curve of EDBERT on the test set is shown in Figure 3, with an AUC of 0.91, indicating strong discriminative ability between the two disposition classes.
The supporting analyses that informed the final architecture are summarised as follows, with full details in the Supplementary Materials. First, varying the encoder depth of BERT-Base from 2 to 12 layers produced only marginal accuracy differences (81.47% to 82.23%; Supplementary Table S1 and Figure S1), while parameter count and training time per epoch increased substantially with depth (Supplementary Figure S2). Deeper models did not yield performance gains, which may be attributed to the low lexical variability of the triage notes (1.01% unique word ratio; Table 1), potentially leading to overfitting in larger models. The 8-layer configuration offered the most favourable balance between predictive performance and computational efficiency, and was therefore adopted for EDBERT. Second, MLM pre-training on triage notes improved EDBERT’s accuracy from 82.18% to 83.26% (Supplementary Table S2 and Figure S4), confirming the value of domain-adaptive pre-training.

4. Discussion

In the present study, we designed and evaluated a domain-tailored BERT architecture whose central component is a fusion network that enriches the free-text triage note with the additional context of the presenting complaint and patient age, predicting ED disposition with an accuracy of 83.26% and an AUC of 0.91 while using 66 million parameters—approximately 40% fewer than BERT-BASE. These results compare favourably with previous work. Tahayori et al. reported an accuracy of 83% and an AUROC of 0.88 using a full-size BERT model on triage notes alone [19], and Chen et al. achieved an AUROC of 0.9014 using BlueBERT, a domain-specific model pre-trained on large biomedical corpora [24]. EDBERT achieved comparable or better discriminative performance with a substantially smaller architecture, without relying on external biomedical pre-training corpora.
The improved performance of EDBERT relative to larger, general-purpose BERT configurations can be explained by several factors. First, and most importantly, the fusion network supplements the triage narrative with the complementary context of the presenting complaint and patient age. A depth-matched 8-layer BERT-Base model trained on triage notes alone reached 82.08% accuracy, whereas EDBERT reached 83.26%, indicating that enriching the input representation—rather than adding model capacity—drives the gain; the ablation results suggest this enrichment acts in combination with domain-adaptive pre-training, as the fusion-based model without MLM pre-training reached 82.18% (Supplementary Table S2). The grid-searched fusion weights confirm the dominant contribution of the triage narrative ( w text = 0.65 ), consistent with prior evidence that free-text triage narratives carry the greatest predictive signal for disposition [11,21], while the presenting complaint ( w pc = 0.20 ) and age ( w age = 0.15 ) contribute additional discriminative context that the note alone does not capture. Second, domain-adaptive MLM pre-training on triage text allowed the model to learn the specialised terminology, abbreviations, and contextual patterns characteristic of ED documentation, which a general-purpose model has less opportunity to capture; removing MLM pre-training reduced accuracy by more than one percentage point. Third, triage notes are short and telegraphic, with a maximum length of 101 words in our dataset, and exhibit very low lexical variability (1.01% unique word ratio); the representational capacity of a 12-layer, 110-million-parameter model is therefore excessive and may promote overfitting, whereas EDBERT’s reduced encoder depth is matched to the linguistic complexity of the input.
The lightweight design of EDBERT has direct practical implications. Full-size LLMs are resource-intensive to fine-tune and maintain [25], which is a barrier for hospitals with limited computing infrastructure. By reducing memory usage and training time while preserving predictive performance, EDBERT is more feasible for local training and deployment within existing hospital systems. Early identification of patients likely to require admission could allow bed allocation to begin at the time of presentation, streamline care, reduce the cognitive load on ED clinicians, and ultimately contribute to reduced ED LOS, which is associated with morbidity and mortality [8,9].
More recent research has also emphasised the importance of uncertainty-aware prediction and effective collaboration between clinicians and predictive models. Abdulai et al. proposed a conformal prediction framework that enables a model to abstain when a case is ambiguous, thereby reducing the risk of overconfident misclassification and supporting safer clinical use [29]. Similarly, Barak-Corren et al. directly compared clinician and algorithmic predictions in a prospective observational study: physicians correctly predicted 57% of admissions with a specificity of 88%, whereas a random forest model using EHR data from the first hour of the ED visit achieved a sensitivity of 69% and a specificity of 90%, and combining clinician judgement with algorithmic predictions produced the highest positive predictive value of 86% [30]. These findings indicate that predictive performance alone is insufficient for safe deployment in a high-risk clinical environment. Future work should therefore incorporate uncertainty estimation or abstention mechanisms, allowing EDBERT to defer ambiguous cases for clinician review, and evaluate the model within a human-in-the-loop framework to determine whether its predictions complement, rather than replace, clinician judgement. Prospective shadow-mode evaluation and subsequent clinician–model collaboration studies would help establish the safety, reliability, and practical value of EDBERT in real-world ED workflows.

4.1. Limitations

This study has several limitations. First, it used data from a single site. Because triage documentation style varies considerably between hospitals, the model may need to be re-trained on local data before implementation elsewhere, and a multi-centre study is required to evaluate the generalisability of the proposed architecture. Second, presentations with dispositions other than “Admit” and “Home” (approximately 5% of the cohort) were excluded, so the model’s behaviour on these less common outcomes remains untested.
Third, EDBERT currently produces point predictions without uncertainty estimates or an abstention mechanism. Recent work has emphasised the importance of uncertainty-aware prediction for safe clinical use: Abdulai et al. proposed a conformal prediction framework that enables a model to abstain when a case is ambiguous, reducing the risk of overconfident misclassification [29]. Incorporating such mechanisms would allow EDBERT to defer ambiguous cases for clinician review rather than producing potentially unreliable predictions.
Finally, EDBERT was evaluated retrospectively, without clinician interaction, so whether its predictions complement rather than replace clinician judgement remains untested. Barak-Corren et al. directly compared clinician and algorithmic predictions in a prospective observational study: physicians correctly predicted 57% of admissions with a specificity of 88%, whereas a random forest model using EHR data from the first hour of the ED visit achieved a sensitivity of 69% and a specificity of 90%, and combining clinician judgement with algorithmic predictions produced the highest positive predictive value of 86% [30]. These findings indicate that predictive performance alone is insufficient for safe deployment in a high-risk clinical environment; prospective shadow-mode evaluation and subsequent clinician–model collaboration studies within a human-in-the-loop framework would help establish the safety, reliability, and practical value of EDBERT in real-world ED workflows.

5. Conclusions

This study introduced EDBERT, a specialised transformer-based architecture for ED disposition prediction whose central component is a fusion network that integrates the free-text triage note with the complementary context of the presenting complaint and patient age through learnable weights. Supplementing the triage narrative with this additional context, together with domain-adaptive MLM pre-training, enabled EDBERT to consistently outperform larger single-input BERT baselines. By further tailoring the encoder stacks to the specific characteristics of ED text—including reduced transformer layers, attention heads, and hidden dimensions—EDBERT delivers this performance with fewer parameters and reduced training time. Overall, EDBERT offers a scalable, high-performing, and resource-efficient solution for predicting patient disposition in emergency settings, supporting timely and informed clinical decision-making. Future work will explore the generalisability of EDBERT across multiple hospital sites, the incorporation of additional patient features, uncertainty-aware prediction, and real-time deployment in ED triage workflows.

Supplementary Materials

The following supporting information can be downloaded at the website of this paper posted on Preprints.org, Table S1: Performance of BERT-Base models with varying numbers of transformer layers; Table S2: Performance of EDBERT with and without MLM pre-training; Figure S1: ROC curves of BERT-Base configurations; Figure S2: Parameter counts and training time per epoch; Figure S3: Confusion matrices of BERT-Base configurations; Figure S4: Performance of EDBERT without MLM pre-training.

Author Contributions

Conceptualization, A.R., D.A. and H.A.; Methodology, A.H.; Formal Analysis, A.H.; Investigation, A.R., D.A. and H.A.; Data Curation, S.F. and H.A.; Writing – Original Draft Preparation, M.W.; Writing – Review & Editing, I.S., K.C., S.F., A.R., S.K., M.P., D.A. and H.A.; Visualization, A.H.; Funding Acquisition, A.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the La Trobe Business School, La Trobe University, grant number 4.1165.09.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki 1964 as revised in 2008, and the National Health and Medical Research Council National Statement on Ethical Conduct in Human Research (2023) Guidelines, and approved by the St Vincent’s Hospital Melbourne Human Research Ethics Committee (Project ID: 85929). Each site has received governance approval and Site Specific Assessment.

Data Availability Statement

De-identified data will be provided upon written request to the corresponding author.

Conflicts of Interest

None.

Abbreviations

The following abbreviations are used in this manuscript:
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

  1. 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]
  2. 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).
  3. 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).
  4. 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/.
  5. 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]
  6. 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]
  7. 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]
  8. 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]
  9. 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]
  10. 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]
  11. 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]
  12. 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]
  13. Group, M.T. Emergency triage; John Wiley & Sons, 2008. [Google Scholar]
  14. 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]
  15. 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]
  16. Devlin, J.; Chang, M.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. CoRR 2018. [Google Scholar] [CrossRef]
  17. 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]
  18. 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]
  19. 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]
  20. 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]
  21. 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]
  22. 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]
  23. 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]
  24. 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]
  25. Sharaf, S.; Anoop, V. An analysis on large language models in healthcare: a case study of BioBERT. arXiv 2023, arXiv:2310.07282. [Google Scholar]
  26. Koroteev, M.V. BERT: a review of applications in natural language processing and understanding. arXiv 2021, arXiv:2103.11943. [Google Scholar]
  27. 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]
  28. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
  29. 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]
  30. 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]
Figure 1. 8-layer custom BERT encoder stack of the EDBERT model.
Figure 1. 8-layer custom BERT encoder stack of the EDBERT model.
Preprints 224080 g001
Figure 2. Overall architecture of the proposed EDBERT model, consisting of two 8-layer custom encoder stacks to extract contextual and semantic features from triage notes and presenting complaints, followed by a fusion network that integrates three distinct embeddings to generate a unified representation for final patient disposition prediction.
Figure 2. Overall architecture of the proposed EDBERT model, consisting of two 8-layer custom encoder stacks to extract contextual and semantic features from triage notes and presenting complaints, followed by a fusion network that integrates three distinct embeddings to generate a unified representation for final patient disposition prediction.
Preprints 224080 g002
Figure 3. Performance of the proposed EDBERT model on the test set: (a) Receiver Operating Characteristic (ROC) curve (AUC = 0.91) and (b) confusion matrix.
Figure 3. Performance of the proposed EDBERT model on the test set: (a) Receiver Operating Characteristic (ROC) curve (AUC = 0.91) and (b) confusion matrix.
Preprints 224080 g003
Table 1. Statistical analysis of the input triage notes.
Table 1. Statistical analysis of the input triage notes.
Item Quantity
Total Vocabulary 46,944,023
Unique Vocabulary 480,326
Uniqueness 1.01%
Table 2. Architectural differences between BERT-BASE and EDBERT’s customised BERT encoder stack.
Table 2. Architectural differences between BERT-BASE and EDBERT’s customised BERT encoder stack.
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
Table 3. Hyperparameter values used during model training.
Table 3. Hyperparameter values used during model training.
Hyperparameter Value
Learning Rate 2 × 10 5
Weight Decay 0.01
Train Batch Size 64
Test Batch Size 32
Dropout Percentage 0.5
Table 4. Performance comparison of EDBERT and the standard BERT-Base model, evaluated using accuracy and macro-averaged precision, recall, and F1-score. Results for all intermediate BERT-Base configurations (2–10 layers) are provided in Supplementary Table S1.
Table 4. Performance comparison of EDBERT and the standard BERT-Base model, evaluated using accuracy and macro-averaged precision, recall, and F1-score. Results for all intermediate BERT-Base configurations (2–10 layers) are provided in Supplementary Table S1.
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings