Few-shot Generation of Medical Incident Causal Factors and Preventive Measures Using Category-based Example Selection

In high-stakes domains such as healthcare, the reliability of Large Language Models (LLMs) is critical, particularlywhen generating clinical insights from incident reports. This study proposes a category-based few-shot exampleselection method for prompting LLMs to generate background/causal factors and preventive measures from detailsof the medical incidents. For our experiments, we use the Japanese Medical Incident Dataset (JMID), a structureddataset of 3,884 real-world medical accident and near-miss reports. These reports are variably annotated with a widerange of tags―some include descriptive information (e.g.,“ medications, ”“ blood transfusion therapy ”). We alsomake this dataset publicly available to support future research. We compare a zero-shot baseline and three few-shotexample selection strategies―random sampling, cosine similarity-based selection, and our proposed category-basedmethod―using GPT-4o and Llama 3.3. Results show that the category-based approach achieves the highest precisionand most stable generation behavior, while similarity-based selection often leads to unintended outputs and safety filteractivation. These findings suggest that selecting examples based on human-interpretable dataset tags can improvegeneration precision and stability in clinical LLM applications.

Authors

Institutions

Publication Details

Journal
Transactions of the Japanese Society for Artificial Intelligence
Published
2026-07-01
DOI
https://doi.org/10.1527/tjsai.41-4_an40-e
Primary Topic
Risk and Safety Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Few-shot Generation of Medical Incident Causal Factors and Preventive Measures Using Category-based Example Selection

Hiroki Sakaji, Tomoki Ito, Itsuki Noda, Yuna Haseyama
Transactions of the Japanese Society for Artificial Intelligence
Risk and Safety Analysis
article

Few-shot Generation of Medical Incident Causal Factors and Preventive Measures Using Category-based Example Selection

Hiroki Sakaji, Tomoki Ito, Itsuki Noda, Yuna Haseyama
article en

Abstract

In high-stakes domains such as healthcare, the reliability of Large Language Models (LLMs) is critical, particularlywhen generating clinical insights from incident reports. This study proposes a category-based few-shot exampleselection method for prompting LLMs to generate background/causal factors and preventive measures from detailsof the medical incidents. For our experiments, we use the Japanese Medical Incident Dataset (JMID), a structureddataset of 3,884 real-world medical accident and near-miss reports. These reports are variably annotated with a widerange of tags―some include descriptive information (e.g.,“ medications, ”“ blood transfusion therapy ”). We alsomake this dataset publicly available to support future research. We compare a zero-shot baseline and three few-shotexample selection strategies―random sampling, cosine similarity-based selection, and our proposed category-basedmethod―using GPT-4o and Llama 3.3. Results show that the category-based approach achieves the highest precisionand most stable generation behavior, while similarity-based selection often leads to unintended outputs and safety filteractivation. These findings suggest that selecting examples based on human-interpretable dataset tags can improvegeneration precision and stability in clinical LLM applications.

Transactions of the Japanese Society for Artificial IntelligenceVol. 41(4)
Hokkaido University (JP), National Institute of Information and Communications Technology (JP)
Openalex Percentile: Top 7%
Risk and Safety Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.