Skip to main content
QUICK REVIEW

[Paper Review] GAMedX: Generative AI-based Medical Entity Data Extractor Using Large Language Models

Mohammed-Khalil Ghali, Abdelrahman Farrag|arXiv (Cornell University)|May 31, 2024
Topic ModelingComputer Science5 citations
TL;DR

GAMedX uses open-source LLMs (Mistral 7B, Gemma 7B) with a unified prompt/Pydantic schema to extract medical entities from unstructured text, achieving high ROUGE scores and strong VAERS semantic analysis.

ABSTRACT

In the rapidly evolving field of healthcare and beyond, the integration of generative AI in Electronic Health Records (EHRs) represents a pivotal advancement, addressing a critical gap in current information extraction techniques. This paper introduces GAMedX, a Named Entity Recognition (NER) approach utilizing Large Language Models (LLMs) to efficiently extract entities from medical narratives and unstructured text generated throughout various phases of the patient hospital visit. By addressing the significant challenge of processing unstructured medical text, GAMedX leverages the capabilities of generative AI and LLMs for improved data extraction. Employing a unified approach, the methodology integrates open-source LLMs for NER, utilizing chained prompts and Pydantic schemas for structured output to navigate the complexities of specialized medical jargon. The findings reveal significant ROUGE F1 score on one of the evaluation datasets with an accuracy of 98\%. This innovation enhances entity extraction, offering a scalable, cost-effective solution for automated forms filling from unstructured data. As a result, GAMedX streamlines the processing of unstructured narratives, and sets a new standard in NER applications, contributing significantly to theoretical and practical advancements beyond the medical technology sphere.

Motivation & Objective

  • Address the challenge of extracting structured information from unstructured medical narratives and notes.
  • Develop an NER system using open-source LLMs with a unified output structure.
  • Ensure cost-effective integration suitable for healthcare IT environments.
  • Evaluate the approach on real and synthetic medical datasets while considering privacy constraints.

Proposed method

  • Wrap open-source LLMs with a unified prompt and Pydantic schema to output structured NER data.
  • Use LangChain Recursive Text Splitter to chunk documents and translate non-English text to English.
  • Apply in-context learning (one-shot and few-shot) with Mistral 7B and Gemma 7B, optimizing prompts for medical data extraction.
  • Evaluate with ROUGE-1 F1 and ROUGE-L F1; for VAERS use semantic analysis via embeddings (BGE and Instruct Embeddings) and t-SNE visualization.
  • Compare zero-shot to few-shot settings to assess robustness across datasets.

Experimental results

Research questions

  • RQ1Can open-source LLMs with unified prompting achieve high-accuracy medical NER on unstructured narratives?
  • RQ2What is the impact of one-shot vs few-shot prompting on extraction quality for medical transcripts and VAERS reports?
  • RQ3How do ROUGE-based and semantic embedding analyses compare in evaluating VAERS extraction performance?

Key findings

  • On the Competition dataset, ROUGE-1 F1 and ROUGE-L F1 scores are between 97% and 98% across models and one-/few-shot settings.
  • On the VAERS dataset, ROUGE-1 F1 and ROUGE-L F1 scores range from 57% to 63% depending on model and shot setting.
  • Few-shot prompting improves VAERS performance modestly for both Mistral 7B and Gemma 7B.
  • Semantic analysis using BGE and Instruct Embeddings with t-SNE helps interpret VAERS outputs beyond ROUGE metrics.

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.