Evaluation of Care Quality for Atrial Fibrillation Across Non-Interoperable Electronic Health Record Data using a

Philip Adejumo1,2, Phyllis Thangaraj1,2, Sumukh Vasisht Shankar1,2

  • 1Section of Cardiovascular Medicine, Department of Internal Medicine, Yale School of Medicine, New Haven, CT.

Insights

A novel Retrieval-Augmented Generation (RAG) model accurately extracts stroke risk factors from clinical notes for atrial fibrillation (AF) patients. This enhances risk assessment and guides anticoagulation therapy decisions.

Area of Science:

  • Medical Informatics
  • Artificial Intelligence in Healthcare
  • Clinical Decision Support

Background:

  • Accurate stroke risk assessment in atrial fibrillation (AF) is vital for effective anticoagulation therapy.
  • Current methods rely on manual CHA₂DS₂-VASc score calculation or limited structured Electronic Health Record (EHR) data.
  • Unstructured clinical notes offer rich, underutilized data for improving risk stratification.

Purpose of the Study:

  • To develop and validate a Retrieval-Augmented Generation (RAG) approach for extracting CHA₂DS₂-VASc risk factors from unstructured clinical notes in AF patients.
  • To enhance the accuracy of stroke risk assessment by leveraging information from free-text clinical narratives.
  • To facilitate computable risk assessment for guiding anticoagulation therapy.

Main Methods:

  • A RAG architecture, utilizing the Llama3.1 large language model, was employed to extract CHA₂DS₂-VASc risk factors from 1,000 clinical notes.
  • A subset of 200 notes was manually annotated by two clinicians to establish a gold standard for validation.
  • Performance was assessed using macro-averaged area under the receiver operating characteristic (AUROC), with external validation on MIMIC-IV data.

Main Results:

  • The RAG model significantly outperformed structured data in identifying key risk factors like hypertension, stroke/TIA, vascular disease, and diabetes.
  • High AUROCs (0.96-0.98) were achieved for hypertension, diabetes, and age ≥75 years in expert-annotated notes.
  • Incorporating RAG-identified factors led to increased CHA₂DS₂-VASc scores compared to using structured data alone.

Conclusions:

  • Large language model-optimized RAG accurately extracts crucial CHA₂DS₂-VASc risk factors from unstructured AF patient notes.
  • This automated approach enables more precise, computable risk assessment.
  • The findings support improved guidance for appropriate anticoagulation therapy in AF patients.
Abstract