[Paper Review] Medical Data Augmentation via ChatGPT: A Case Study on Medication Identification and Medication Event Classification
This study proposes a data augmentation framework using ChatGPT to improve medication identification and medication event classification in electronic health records (EHRs). By generating diverse, contextually accurate paraphrases of clinical sentences, the method enhances training data, which when fine-tuned with pre-trained BERT models—especially BioClinicalBERT and RoBERTa-large—significantly improves performance, particularly in recall and F1 scores for medication event classification.
The identification of key factors such as medications, diseases, and relationships within electronic health records and clinical notes has a wide range of applications in the clinical field. In the N2C2 2022 competitions, various tasks were presented to promote the identification of key factors in electronic health records (EHRs) using the Contextualized Medication Event Dataset (CMED). Pretrained large language models (LLMs) demonstrated exceptional performance in these tasks. This study aims to explore the utilization of LLMs, specifically ChatGPT, for data augmentation to overcome the limited availability of annotated data for identifying the key factors in EHRs. Additionally, different pre-trained BERT models, initially trained on extensive datasets like Wikipedia and MIMIC, were employed to develop models for identifying these key variables in EHRs through fine-tuning on augmented datasets. The experimental results of two EHR analysis tasks, namely medication identification and medication event classification, indicate that data augmentation based on ChatGPT proves beneficial in improving performance for both medication identification and medication event classification.
Motivation & Objective
- To address the scarcity of annotated EHR data by leveraging large language models for synthetic data generation.
- To evaluate the effectiveness of ChatGPT-generated augmented data in improving downstream NLP tasks on clinical text.
- To compare multiple pre-trained BERT variants fine-tuned on original and augmented datasets for medication-related classification tasks.
- To investigate whether data augmentation via LLMs enhances model generalization and robustness in clinical NLP applications.
- To provide a practical, prompt-engineered pipeline for data augmentation in low-resource clinical NLP settings.
Proposed method
- Utilize ChatGPT to rephrase original EHR sentences through prompt engineering, generating semantically equivalent but linguistically diverse training samples.
- Combine the original CMED training data with the augmented data to form an expanded training set.
- Fine-tune multiple pre-trained BERT variants—including BioBERT, ClinicalBERT, RoBERTa, and BioClinicalBERT—on the combined dataset.
- Evaluate the fine-tuned models on two N2C2 2022 benchmark tasks: medication identification and medication event classification.
- Apply both strict and lenient evaluation metrics (precision, recall, F1) to assess performance across macro and micro-averages.
- Use zero-shot prompting and few-shot few-shot prompting strategies to generate diverse, contextually accurate paraphrases from clinical notes.
Experimental results
Research questions
- RQ1Can ChatGPT-generated data augmentation improve the performance of BERT-based models in medication identification from EHRs?
- RQ2Does data augmentation via ChatGPT lead to measurable improvements in medication event classification, particularly in recall and F1 scores?
- RQ3Which pre-trained BERT variant yields the best performance when fine-tuned on augmented EHR data?
- RQ4How does the performance of models trained on augmented data compare to those trained on original data alone across different evaluation metrics?
- RQ5To what extent does data augmentation mitigate data scarcity issues in low-resource clinical NLP tasks?
Key findings
- The enhanced RoBERTa-large model achieved a macro F1 score of 0.7356 on medication identification and 0.8268 on medication event classification with lenient evaluation after data augmentation.
- Data augmentation significantly improved recall for medication event classification, with the enhanced RoBERTa-large model achieving 0.7426 macro recall, up from 0.7235 without augmentation.
- BioClinicalBERT and BioRedditBERT showed strong performance, with BioRedditBERT achieving 0.6976 macro F1 on medication identification and 0.7096 macro recall on medication event classification.
- The RoBERTa-large model outperformed all other variants, achieving 0.7317 macro F1 on medication identification and 0.8237 F1 on medication event classification under lenient evaluation.
- The use of augmented data led to consistent improvements across multiple metrics, especially in recall, indicating better capture of rare or complex medication event patterns.
- The results demonstrate that LLM-based data augmentation is a viable and effective strategy for enhancing model generalization in low-resource clinical NLP tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.