Skip to content
Review Open access

Beyond ICD Codes: Fine-Tuning LLMs for In-Hospital Cardiac Arrest Identification from EHR Notes

Sep 2026 · medRxiv · 0 citations · 26 references
Medicine

TL;DR

Large language model (LLM)-based systems that incorporated physician-defined clinical knowledge through guideline-enriched prompting, supervised fine-tuning, and a self-correction procedure enabled accurate identification of IHCA events and locations from routine clinical documentation.

Abstract

Background: Identification of in-hospital cardiac arrest (IHCA) through manual chart abstraction is the gold standard, but its time-consuming and resource-intensive, which naturally limits its practicality. Diagnostic codes provide an accessible automated alternative, but prior work has shown this method of extraction has poor sensitivity and poor positive predictive value. More accurate and scalable automated methods are needed to support IHCA surveillance and research. Methods: We developed large language model (LLM)-based systems that incorporated physician-defined clinical knowledge through guideline-enriched prompting, supervised fine-tuning, and a self-correction procedure. The systems identified IHCA events and their locations from electronic health record notes. Performance was evaluated at the encounter level against physician-adjudicated chart review and compared with ICD-code-based identification. Results: Compared with an ICD-code-based algorithm (precision 0.68, recall 0.91, F1 score 0.78), the supervised fine-tuned LLM offered substantially better performance for IHCA identification on a curated evaluation corpus, reaching a precision of 0.88, a recall of 1.00, and an F1 score of 0.94. When tested on a larger, unselected validation cohort of 45,525 encounters, a separate LLM configuration - relying on guideline-enriched prompting and a self-correction procedure rather than fine-tuning - achieved a precision of 0.79 for encounter-level IHCA identification, meaning most encounters flagged by the model were genuine IHCA cases. The fine-tuned LLM underperformed on this cohort due to its inability to self-correct its decisions, an issue that can be mitigated by having a separate model perform the correction step. Conclusion: Explicit integration of clinical knowledge through prompting and supervised fine-tuning enabled accurate identification of IHCA events and locations from routine clinical documentation. In a two-pass workflow, these systems could prioritize encounters for clinician adjudication, reduce manual screening requirements, and support more scalable IHCA surveillance and registry development.

Read PDF

Similar papers

#large language models Open access Sep 2026

Language model-assisted label refinement for accurate sepsis detection from electronic health records

STRIDE, a machine-learning framework for sepsis detection across seven hospitals with a scalable approach to label quality, outperformed SOFA and Epic on discrimination and showed favorable calibration by Brier score, while retaining strong discrimination among SIRS-positive non-septic encounters.

I. K. Kalyvianakis, C. De Amezaga, E. Lee et al. · 0 citations
Review Open access Oct 2026

Artificial intelligence for automated baseline cardiovascular condition identification: accuracy, confidence, and discordance

Accurate identification of baseline cardiovascular conditions is essential for clinical registries and trials but relies on labor-intensive manual abstraction. Large language models (LLMs) offer a potential solution, yet their real-world performance and reliability remain uncertain. We evaluated LLM accura...

R. Aggarwal, A. Rodman, A. K. Manrai et al. · 0 citations
Review Open access Oct 2026

Manual versus natural language processing versus large language model screening for preoperative identification of cardiovascular diseases: a prospective cohort study

Guideline-recommended surveillance for perioperative myocardial infarction/injury (PMI) depends on systematic preoperative identification of cardiovascular diseases and ordering of cardiac troponin tests. Implementation, however, is often limited by resource constraints and labour-intensive manual chart review, c...

K. Durak, C. Puelacher, D. Gualandro et al. · 0 citations
Review Open access Sep 2026

Design of a Computer-Assisted Coding System with Rule-Based Validation Based on ICD-10 at STIKES Wira Medika Bali

The coding of diagnoses and procedures is a critical activity in health information management, yet it remains prone to errors that affect claim accuracy and the financial sustainability of healthcare facilities. Inaccurate coding can lead to upcoding or downcoding, both of which carry administrative and financial risk...

Ni Luh Gita Saraswati, I. Purwanti, M. W. Aditya · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.