Free Text Analysis: Identification of adverse drug events in clinical notes

Main Article Content

Alan Katz
Abhishek Dhankar
Christine Leong
Amani Hamad
Alex Singer

Abstract

Objective
To explore the prevalence of adverse drug events (ADE) leading to drug changes using Artificial Intelligence (AI) based free text analysis of primary care encounter notes .  


Approach
We used electronic medical record l encounter notes linked to population-based drug dispensation records. Dispensation records were used to identify drug switching to another agent in the same therapeutic class, which could suggest an undesirable side-effect requiring discontinuation of the drug. We annotated clinical notes by identifying ADEs after retrieving the last encounter note written for that patient on or before the identified date.  We ran different AI models, including BERT and Large Language Models (LLMs), to identify ADEs.


Results
We annotated 1085 notes with 362 ADEs. These were used to train BERT models (precision or PPV: 0.584 ) and prompt-based LLM (0.563) but with improved sensitivity (0.725) and specificity (0.739) .


Conclusions
Identifying ADEs requires deep medical knowledge and simple Natural Language Processing models trying to identify ADEs only on the basis of language of encounter notes was not successful based on the BERT model performance. Prompt based models have deep knowledge but were trained with the objective of producing grammatically correct, coherent sentences, not with the medical knowledge required. LLMs also require significant computational power.


Implications
While AI does have significant potential to advance our capacity for complex analytic tasks the current LLMs are not yet able to adequately identify ADEs in a corpus of electronic clinical notes.

Article Details

How to Cite
Katz, A., Dhankar, A., Leong, C., Hamad, A. and Singer, A. (2024) “Free Text Analysis: Identification of adverse drug events in clinical notes”, International Journal of Population Data Science, 9(5). doi: 10.23889/ijpds.v9i5.2553.

Most read articles by the same author(s)

1 2 3 4 5 > >>