---
title: "Diagnostic accuracy of a local LLM pipeline for automated Code Stroke identification from ED triag"
id: "medrxiv-20-diagnostic-accuracy-of-a-locally-deployed-large-language-model-algorithm-for"
canonical_url: "https://medichelpline.com/clinical-feed/medrxiv-20-diagnostic-accuracy-of-a-locally-deployed-large-language-model-algorithm-for"
content_type: "clinical_feed_article"
specialty: "Neurology"
source_name: "medRxiv (Clinical Preprints)"
source_url: "https://www.medrxiv.org/content/10.64898/2026.08.03.26359639v1?rss=1"
published_at: "2026-08-05T12:00:00.000Z"
evidence_level: "Verified Feed"
license: "CC-BY-NC-4.0 / Informational Use"
---
# Diagnostic accuracy of a local LLM pipeline for automated Code Stroke identification from ED triag
## Provenance & Clinical Metadata
- **Canonical URL:** https://medichelpline.com/clinical-feed/medrxiv-20-diagnostic-accuracy-of-a-locally-deployed-large-language-model-algorithm-for
- **Specialty:** [Neurology](https://medichelpline.com/clinical-feed/neurology.md)
- **Primary Source:** medRxiv (Clinical Preprints)
- **Source URL:** [Original Journal Publication](https://www.medrxiv.org/content/10.64898/2026.08.03.26359639v1?rss=1)
- **Published At:** 2026-08-05T12:00:00.000Z
- **Evidence Rating:** Verified Feed
## Executive GIST (TL;DR)
- A retrospective cross-sectional study evaluated a multi-pass **large language model (LLM)** pipeline to detect patients meeting **Code Stroke** criteria from free-text emergency department (ED) triage notes at Monash Medical Centre, Melbourne. - The dataset comprised 3,023 de-identified triage notes collected over one month (September–October 2023). - The pipeline applied sequential passes: translation, stroke symptom identification, mimic exclusion, baseline functional status, temporal window classification, and symptom resolution. - Six locally deployed language models were tested; performance was measured against two reference standards: neurologist-labelled diagnosis and documented ED Code Stroke activation. - Primary outcomes were sensitivity and specificity; secondary outcomes included PPV, NPV, and Gwet's AC1. Reliability of the neurologist reference was assessed by blinded re-review of 200 randomly sampled presentations. - Of 3,023 presentations, 136 were neurologist-labelled positive for Code Stroke criteria. Agreement between the primary neurologist and a blinded second neurologist on the 200-note subsample was almost perfect (95.0% raw agreement; Cohen's kappa 0.900, 95% CI 0.838–0.959). - The cohort included 140 documented ED Code Stroke activations (median age 69, IQR 56–81 years); 83 (59.2%) of these had confirmed stroke. Sixteen patients (11.4%) underwent endovascular clot retrieval and 4 (2.9%) received thrombolysis. - The top-performing model, **Qwen 2.5 14B**, achieved sensitivity 0.890 (95% CI 0.826–0.932), specificity 0.993 (0.989–0.996), PPV 0.858 (0.791–0.906), and NPV 0.995 (0.991–0.997). - Pairwise testing found Qwen 2.5 14B was statistically superior to Llama 3.1 8B, Phi-4 14B, and Mistral 3 14B (p<0.001 after Holm correction), with no significant difference versus Nemotron-Nano-12B-v2 or Qwen 3 14B. - The pipeline runs with locally deployed models, without internet connectivity or retraining on patient data, supporting feasibility for internal testing and external validation in real-world ED settings. - The authors report no competing interests and indicate ethical approval from Monash Health Human Research Ethics Committee A (QA/127358/MonH-2026-524757). Data are available upon reasonable request.
## Clinical Analysis & Structured Key Points
Diagnostic Accuracy of a locally deployed Large Language Model Algorithm for Automated Code Stroke Pathway Identification in Emergency Department Triage Notes | medRxiv Skip to main content Diagnostic Accuracy of a locally deployed Large Language Model Algorithm for Automated Code Stroke Pathway Identification in Emergency Department Triage Notes View ORCID Profile Michael Joseph Valente , View ORCID Profile Angelos` Sharobeam , View ORCID Profile Jason Vuong , Wing Kiu Chan doi: https://doi.org/10.64898/2026.08.03.26359639 Michael Joseph Valente 1 Department of Neurology, Monash Health, Clayton, Victoria, Australia; Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Michael Joseph Valente For correspondence: michael.valente{at}monash.edu Angelos` Sharobeam 1 Department of Neurology, Monash Health, Clayton, Victoria, Australia; Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Angelos` Sharobeam Jason Vuong 1 Department of Neurology, Monash Health, Clayton, Victoria, Australia; Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Jason Vuong Wing Kiu Chan 2 Monash University, Faculty of Medicine, Nursing and Health Sciences, Clayton, VIC, Australia Find this author on Google Scholar Find this author on PubMed Search for this author on this site Abstract Info/History Metrics Supplementary material Data/Code Preview PDF Abstract Background: Delayed Code Stroke activation contributes to worse outcomes in acute stroke. Emergency Department (ED) triage notes contain free-text clinical information that could enable automated, real-time pathway activation. We evaluated the diagnostic accuracy of a multi-pass large language model (LLM) pipeline for identifying patients meeting Code Stroke criteria from ED triage notes. Methods: A retrospective cross-sectional study was conducted at Monash Medical Centre, Melbourne, Australia. De-identified triage notes from 3,023 ED presentations over a one-month period (September-October 2023) were analysed. The pipeline applied sequential passes for translation, stroke symptom identification, mimic exclusion, baseline functional status, temporal window classification, and symptom resolution. Six locally deployed language models were evaluated. Performance was assessed against two reference standards: neurologist-labelled diagnosis and documented ED Code Stroke activation. Primary outcomes were sensitivity and specificity; secondary outcomes included PPV, NPV, and Gwet's AC1. Reliability of the neurologist reference standard was assessed by blinded independent re-review of a stratified random sample of 200 presentations by a second neurologist. Results: Of 3,023 presentations, 136 were neurologist-labelled positive. Agreement between the primary and a blinded second neurologist on a 200-note reliability sub-sample was almost perfect (raw agreement 95.0%, Cohen's K; 0.900, 95% CI 0.838-0.959). The cohort included 140 ED Code Stroke activations (median age 69, IQR 56-81 years), of whom 83 (59.2%) had confirmed stroke diagnosis. Sixteen patients (11.4%) underwent endovascular clot retrieval and 4 (2.9%) received thrombolysis. The best-performing model (Qwen 2.5 14B) achieved sensitivity 0.890 (95% CI 0.826-0.932), specificity 0.993 (0.989-0.996), PPV 0.858 (0.791-0.906), and NPV 0.995 (0.991-0.997). Pairwise McNemar testing demonstrated statistically superior overall accuracy for Qwen 2.5 14B over Llama 3.1 8B, Phi-4 14B, and Mistral 3 14B (all p<0.001 after Holm correction), with no significant difference detected versus Nemotron-Nano-12B-v2 or Qwen 3 14B. Conclusions: A locally deployed language model demonstrates acceptable sensitivity and specificity for automated Code Stroke identification from free-text triage notes. Performance was comparable across the two best models, suggesting that capable open-weight models in this parameter range may be sufficient to proceed with ongoing internal testing and external validation. The pipeline operates without internet connectivity or model retraining on patient data, supporting feasibility for real-world ED integration. Competing Interest Statement The authors have declared no competing interest. Author Declarations I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained. Yes The details of the IRB/oversight body that provided approval or exemption for the research described are given below: The study was approved by the Monash Health Human Research Ethics Committee A (QA/127358/MonH-2026-524757). I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals. Yes I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance). Yes I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable. Yes Data Availability All data produced in the present study are available upon reasonable request to the authors Copyright The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-NC-ND 4.0 International license . Back to top Previous Next Posted August 05, 2026. Download PDF Supplementary Material Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Diagnostic Accuracy of a locally deployed Large Language Model Algorithm for Automated Code Stroke Pathway Identification in Emergency Department Triage Notes Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Diagnostic Accuracy of a locally deployed Large Language Model Algorithm for Automated Code Stroke Pathway Identification in Emergency Department Triage Notes Michael Joseph Valente , Angelos` Sharobeam , Jason Vuong , Wing Kiu Chan medRxiv 2026.08.03.26359639; doi: https://doi.org/10.64898/2026.08.03.26359639 Share This Article: Copy Citation Tools Diagnostic Accuracy of a locally deployed Large Language Model Algorithm for Automated Code Stroke Pathway Identification in Emergency Department Triage Notes Michael Joseph Valente , Angelos` Sharobeam , Jason Vuong , Wing Kiu Chan medRxiv 2026.08.03.26359639; doi: https://doi.org/10.64898/2026.08.03.26359639 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Areas All Articles Addiction Medicine (595) Allergy and Immunology (888) Anesthesia (322) Cardiovascular Medicine (4689) Dentistry and Oral Medicine (466) Dermatology (403) Emergency Medicine (631) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1597) Epidemiology (15665) Forensic Medicine (32) Gastroenterology (1179) Genetic and Genomic Medicine (6886) Geriatric Medicine (717) Health Economics (1035) Health Informatics (4862) Health Policy (1414) Health Systems and Quality Improvement (1699) Hematology (568) HIV/AIDS (1307) Infectious Diseases (except HIV/AIDS) (16154) Intensive Care and Critical Care Medicine (1147) Medical Education (651) Medical Ethics (149) Nephrology (706) Neurology (7046) Nursing (358) Nutrition (1058) Obstetrics and Gynecology (1207) Occupational and Environmental Health (988) Oncology (3511) Ophthalmology (1015) Orthopedics (381) Otolaryngology (433) Pain Medicine (455) Palliative Medicine (135) Pathology (695) Pediatrics (1756) Pharmacology and Therapeutics (724) Primary Care Research (751) Psychiatry and Clinical Psychology (5730) Public and Global Health (9561) Radiology and Imaging (2330) Rehabilitation Medicine and Physical Therapy (1407) Respiratory Medicine (1229) Rheumatology (628) Sexual and Reproductive Health (756) Sports Medicine (568) Surgery (751) Toxicology (105) Transplantation (299) Urology (278)
## Related Clinical Research

- [Bilateral Carotid Artery Stenosis Linked to Slightly Higher Restless Legs Syndrome Risk](https://medichelpline.com/clinical-feed/medrxiv-23-carotid-artery-stenosis-is-associated-with-restless-legs-syndrome-in-the.md)
- [Exercise Prescriptions for Concussion Recovery: An Urgent Call to Action](https://medichelpline.com/clinical-feed/stat-news-2-opinion-more-doctors-should-prescribe-exercise-after-a-concussion.md)
- [U.S. POINTER: Structured lifestyle program slows brain aging and cardiometabolic risk over 24 mont](https://medichelpline.com/clinical-feed/medical-news-today-0-combining-physical-mental-and-social-habits-slows-brain-aging-in-2-year-trial.md)
- [Simulated ICU Trajectories After Stroke: Temporal Validation Using MIMIC‑IV](https://medichelpline.com/clinical-feed/medrxiv-1-simulation-and-temporal-validation-of-icu-trajectories-after-stroke-patient.md)
- [Capsida follow-up: investigators report progress after death in gene therapy trial](https://medichelpline.com/clinical-feed/stat-news-0-stat-after-death-in-gene-therapy-trial-for-a-brain-disease-progress-is-reported.md)

## Navigation
- [← Back to Neurology Feed](https://medichelpline.com/clinical-feed/neurology.md)
- [← All Clinical Specialties](https://medichelpline.com/clinical-feed.md)
## Medical & Regulatory Disclaimer

> [!CAUTION]
> MedicHelpline content is structured for research, educational, and professional discovery purposes. It does not constitute individual medical advice, clinical diagnosis, or treatment recommendations.
> Always verify dosing, contraindications, and regulatory alerts against official product labeling and primary regulatory sources before clinical decision-making.