Medical Incident Causal Factors and Preventive Measures Generation Using Tag-based Example Selection in Few-shot Learning
Yuna Haseyama, Tomoki Ito, Hiroki Sakaji, Itsuki Noda

TL;DR
This paper introduces a tag-based few-shot example selection method for prompting LLMs to generate medical incident causal factors and preventive measures, improving precision and stability in clinical applications.
Contribution
It proposes a novel tag-based selection strategy for few-shot learning that outperforms traditional methods in medical incident report analysis.
Findings
Tag-based selection achieves highest precision in generation.
It results in more stable and reliable outputs.
Similarity-based methods often trigger safety filters.
Abstract
In high-stakes domains such as healthcare, the reliability of Large Language Models (LLMs) is critical, particularly when generating clinical insights from incident reports. This study proposes a tag-based few-shot example selection method for prompting LLMs to generate background/causal factors and preventive measures from details of the medical incidents. For our experiments, we use the Japanese Medical Incident Dataset (JMID), a structured dataset of 3,884 real-world medical accident and near-miss reports. These reports are variably annotated with a wide range of tags--some include descriptive information (e.g., "medications," "blood transfusion therapy"). We compare three few-shot example selection strategies--random sampling, cosine similarity-based selection, and our proposed tag-based method--using GPT-4o and LLaMA 3.3. Results show that the tag-based approach achieves the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
