Delayed activation of the Code Stroke pathway is associated with worse outcomes in acute stroke. Emergency Department (ED) triage notes contain unstructured, free-text clinical information that could support automated, real-time pathway activation. This study evaluated whether a locally deployed multi-pass large language model (LLM) pipeline can accurately identify patients meeting Code Stroke criteria from ED triage notes.
A retrospective cross-sectional study was conducted at Monash Medical Centre, Melbourne, Australia. The analysis used de-identified ED triage notes from 3,023 presentations collected during a one-month period (September–October 2023). All data reported here derive from that dataset as described by the authors.
The automated pipeline applied sequential processing passes to each triage note: translation (where applicable), stroke symptom identification, mimic exclusion, baseline functional status assessment, temporal window classification (to assess time-from-onset considerations), and symptom resolution determination. Six locally deployed language models with open weights were evaluated within this multi-pass pipeline. The pipeline was implemented to operate without internet connectivity and without retraining on patient data.
Model performance was assessed against two reference standards: a neurologist-labelled diagnosis (primary reference) and documented ED Code Stroke activation recorded in clinical workflow. To assess the reliability of the neurologist reference standard, a blinded second neurologist independently re-reviewed a stratified random sample of 200 presentations. Agreement metrics were reported for this reliability subsample.
The primary outcomes were sensitivity and specificity for identifying presentations meeting Code Stroke criteria. Secondary metrics included positive predictive value (PPV), negative predictive value (NPV), and Gwet's AC1. Pairwise statistical comparisons between models used McNemar testing with Holm correction for multiple comparisons.
Of the 3,023 presentations analysed, 136 were labelled positive by the neurologist reference standard. The documented ED workflow included 140 Code Stroke activations; median age for that activated cohort was 69 years (IQR 56–81). Among those activated, 83 (59.2%) had a confirmed stroke diagnosis. Interventions recorded for the activated cohort included endovascular clot retrieval in 16 patients (11.4%) and thrombolysis in 4 patients (2.9%).
Reliability assessment of the neurologist reference standard on the 200-note subsample showed almost perfect agreement: raw agreement 95.0% and Cohen’s kappa 0.900 (95% CI 0.838–0.959).
Across the six evaluated models, the best-performing model was Qwen 2.5 14B. Its reported diagnostic metrics versus the neurologist-labelled reference were: sensitivity 0.890 (95% CI 0.826–0.932), specificity 0.993 (95% CI 0.989–0.996), PPV 0.858 (95% CI 0.791–0.906), and NPV 0.995 (95% CI 0.991–0.997).
Pairwise McNemar tests with Holm correction indicated that Qwen 2.5 14B had statistically superior overall accuracy compared with Llama 3.1 8B, Phi-4 14B, and Mistral 3 14B (all p<0.001 after correction). No significant difference in overall accuracy was detected between Qwen 2.5 14B and Nemotron-Nano-12B-v2 or Qwen 3 14B.
A locally deployed LLM pipeline demonstrated high sensitivity and specificity for automated identification of Code Stroke presentations from free-text ED triage notes in this single-centre retrospective sample. The top-performing open-weight models in this parameter range achieved comparable performance, suggesting that capable local models may be adequate for further internal testing and external validation.
The authors highlight practical considerations: the pipeline operates offline (no internet connectivity) and did not require model retraining on local patient data, which supports potential feasibility for real-world ED integration while limiting data-exfiltration risks. The findings indicate promise for automated early identification to support timely Code Stroke activation, but the study is a preprint and has not undergone peer review.
The authors report that the study received ethics approval from the Monash Health Human Research Ethics Committee A (QA/127358/MonH-2026-524757). They declare no competing interests. The manuscript states that all data produced in the study are available upon reasonable request to the authors.
Note: This summary is constrained to findings and details explicitly reported in the source preprint. The article is a preprint and has not been certified by peer review; the authors advise it should not be used to guide clinical practice.