LLM-based Prompt Ensemble for Reliable Medical Entity Recognition from EHRs

K M Sajjadul Islam, Ayesha Siddika Nipu, Jiawei Wu, Praveen Madiraju
5/13/2025
cs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Electronic Health Records (EHRs) are digital records of patient information, often containing unstructured clinical text. Named Entity Recognition (NER) is essential in EHRs for extracting key medical entities like problems, tests, and treatments to support downstream clinical applications. This paper explores prompt-based medical entity recognition using large language models (LLMs), specifically GPT-4o and DeepSeek-R1, guided by various prompt engineering techniques, including zero-shot, few-shot, and an ensemble approach. Among all strategies, GPT-4o with prompt ensemble achieved the highest classification performance with an F1-score of 0.95 and recall of 0.98, outperforming DeepSeek-R1 on the task. The ensemble method improved reliability by aggregating outputs through embedding-based similarity and majority voting.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{islam2025llmbased,
  title  = {LLM-based Prompt Ensemble for Reliable Medical Entity Recognition from EHRs},
  author = {K M Sajjadul Islam and Ayesha Siddika Nipu and Jiawei Wu and Praveen Madiraju},
  year   = {2025},
  eprint = {2505.08704},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.08704v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.08704.svg)](https://codeofpaper.com/paper/2505.08704)

Discussion