Skip to main content
QUICK REVIEW

[Paper Review] Question-Answering System Extracts Information on Injection Drug Use from Clinical Notes

Maria Mahbub, Ian Goethert|arXiv (Cornell University)|May 15, 2023
Machine Learning in HealthcareComputer Science3 citations
TL;DR

This study proposes a question-answering (QA) framework to extract injection drug use (IDU) information from unstructured clinical notes in electronic health records (EHRs), using a fine-tuned transformer model on a gold-standard dataset derived from VA clinical notes. The QA model achieves 78.03% F1 score under relaxed matching criteria, demonstrating strong performance for identifying IDU-related behaviors in real-world clinical text.

ABSTRACT

Background: Injection drug use (IDU) is a dangerous health behavior that increases mortality and morbidity. Identifying IDU early and initiating harm reduction interventions can benefit individuals at risk. However, extracting IDU behaviors from patients' electronic health records (EHR) is difficult because there is no International Classification of Disease (ICD) code and the only place IDU information can be indicated is unstructured free-text clinical notes. Although natural language processing can efficiently extract this information from unstructured data, there are no validated tools. Methods: To address this gap in clinical information, we design and demonstrate a question-answering (QA) framework to extract information on IDU from clinical notes. Our framework involves two main steps: (1) generating a gold-standard QA dataset and (2) developing and testing the QA model. We utilize 2323 clinical notes of 1145 patients sourced from the VA Corporate Data Warehouse to construct the gold-standard dataset for developing and evaluating the QA model. We also demonstrate the QA model's ability to extract IDU-related information on temporally out-of-distribution data. Results: Here we show that for a strict match between gold-standard and predicted answers, the QA model achieves 51.65% F1 score. For a relaxed match between the gold-standard and predicted answers, the QA model obtains 78.03% F1 score, along with 85.38% Precision and 79.02% Recall scores. Moreover, the QA model demonstrates consistent performance when subjected to temporally out-of-distribution data. Conclusions: Our study introduces a QA framework designed to extract IDU information from clinical notes, aiming to enhance the accurate and efficient detection of people who inject drugs, extract relevant information, and ultimately facilitate informed patient care.

Motivation & Objective

  • To address the challenge of identifying injection drug use (IDU) in electronic health records (EHRs), where no ICD code exists and IDU is only documented in unstructured clinical notes.
  • To develop a validated, automated method for extracting IDU-related information from free-text clinical notes using natural language processing (NLP).
  • To evaluate the performance of a question-answering (QA) model on both in-distribution and temporally out-of-distribution clinical notes.
  • To support clinical decision-making by enabling accurate and efficient detection of patients who inject drugs for timely harm reduction interventions.
  • To establish a reusable QA framework that can be extended to extract other socio-behavioral determinants of health from clinical notes.

Proposed method

  • Constructed a gold-standard QA dataset using 2,323 clinical notes from 1,145 patients in the VA Corporate Data Warehouse (VA CDW).
  • Employed a combination of manual review, rule-based NLP techniques, and subject-matter expert validation to label questions and answers in the dataset.
  • Fine-tuned a transformer-based question-answering model (based on Hugging Face's SQuAD example) on the annotated dataset to extract IDU-relevant information.
  • Evaluated model performance using strict and relaxed matching criteria for predicted vs. gold-standard answers.
  • Tested model generalization on temporally out-of-distribution clinical notes to assess robustness over time.
  • Conducted rigorous error analysis to identify limitations and guide future improvements in data preprocessing and model generalization.

Experimental results

Research questions

  • RQ1Can a question-answering model effectively extract injection drug use (IDU) information from unstructured clinical notes in electronic health records?
  • RQ2How does the QA model perform under strict versus relaxed matching criteria for answer extraction?
  • RQ3Does the QA model maintain consistent performance when applied to clinical notes from time periods not seen during training?
  • RQ4What are the primary limitations of the current QA model in handling raw, uncleaned clinical text?
  • RQ5Can the QA framework be extended to extract information on other illicit drugs not covered in the current study, such as xylazine?

Key findings

  • The QA model achieved a 51.65% F1 score under strict matching criteria, where the predicted answer must exactly match the gold-standard answer.
  • Under relaxed matching criteria, the model achieved a 78.03% F1 score, with 85.38% precision and 79.02% recall, indicating strong performance on semantic equivalence.
  • The model demonstrated consistent performance on temporally out-of-distribution clinical notes, suggesting robustness to temporal distribution shifts.
  • Error analysis revealed challenges in handling raw, uncleaned clinical notes and limitations in capturing certain drug names or variants not included in the training data.
  • The QA framework shows potential for integration with named entity recognition (NER) to further improve information extraction from clinical notes.
  • The study establishes a foundation for extending QA-based systems to extract other socio-behavioral determinants of health, such as alcohol use disorder or substance use disorder, from EHRs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.