MedErrBench Medical Error Detection and Correction
Flag medical errors in clinical notes with radio, span, and text schemes plus display logic. Notes are illustrative and written for the design.
Try it live — no install
Boot the real Potato server in your browser (WebAssembly) and annotate with this exact config. Nothing leaves your machine.
Run live in your browserGet This Design
Clone or download from the repository
Quick start:
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/text/domain-specific/mederrbench-medical-error-detection
potato start config.yamlAbout this dataset
MedErrBench is a multilingual benchmark for detecting and correcting errors in clinical text, by Congbo Ma, Yichun Zhang, Yousef Al-Jazzazi, Ahamed Foisal, Laasya Sharma, Yousra Sadqi, Khaled Saleh, Jihad Mallat, and Farah E. Shamout. The paper appeared in Findings of ACL 2026. Errors fall into ten clinician-defined types, from Diagnosis and Management to Histology, Anatomy, and Epidemiology. Each record also carries a difficulty level (Easy, Medium, or Hard) and a reasoning type (Factual Recall, Single-hop Reasoning, or Multi-hop Reasoning). Errors were injected into notes, then verified by three NLP researchers and by two clinicians per language.
The paper does not publish an annotator-facing form, so the design turns the record fields into a reviewer form. A radio scheme flags whether a note holds an error. Display logic then reveals a span scheme for the erroneous sentence, a radio scheme for the error type, and a text scheme for the corrected sentence. Difficulty and reasoning type close the form. Question wording is written for the design, the sentence is marked as a span instead of typed as an index, and the important-medical-words attribute is left out. The notes are illustrative and were written for the design, because the benchmark rows derive from MedQA and MedArabiQ. Some notes contain deliberately wrong statements, and the instructions say so.
- Error types
- 10 clinician-defined types (Table 1)
- Difficulty levels
- 3 (Easy, Medium, Hard)
- Reasoning types
- 3 (Factual Recall, Single-hop, Multi-hop)
- Human verification
- 3 NLP researchers, then 2 clinicians per language
- Sample items in this design
- 10 illustrative notes
Configuration File
This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.
# yaml-language-server: $schema=https://potatoannotator.readthedocs.io/en/latest/schemas/potato-config.schema.json
# MedErrBench: medical error detection, localization and correction
# Paper: Ma et al., Findings of ACL 2026, doi 10.18653/v1/2026.findings-acl.573 (https://aclanthology.org/2026.findings-acl.573/)
# Dataset: https://github.com/congboma/MedErrBench (MIT licence on the repository, HTTP 200)
# Protocol (paper sections 3.2 to 3.5, Table 1, and the dataset README columns):
# The benchmark's record fields are Error Flag, Error Sentence ID, Error Type (ten clinician-defined
# categories, Table 1), Corrected Sentence, Difficulty ("Easy, Medium, or Hard") and Reasoning Type
# ("Factual Recall, Single-hop Reasoning, and Multi-hop Reasoning"). Errors were injected into notes
# (section 3.3); humans then verified and labelled them (section 3.5: three NLP researchers, then two clinicians per language).
# Error types: Diagnosis, Management, Treatment, Pharmacotherapy, Causal Organism/Pathogen,
# Lab/Serum Value Interpretation, Physiology, Histology, Anatomy, Epidemiology. Tooltips are the Table 1 definitions
# (Management reads "medical decision" there; Table S1 reads "clinical decision").
# Adaptations: the paper does not publish an annotator-facing form. The paper's own error-detection task is the
# model task (appendix prompt), and its human stage verified injected errors. This design turns the record fields
# into a reviewer form for one person on one note, and the question wording is ours. The sentence is marked as a
# span instead of typed as a sentence ID. The "important medical words" attribute is left out.
# Sample notes are illustrative, written for this design (not rows of the dataset).
annotation_task_name: MedErrBench Medical Error Review
task_dir: .
output_annotation_dir: annotation_output/
export_annotation_format: jsonl
annotation_codebook_url: ''
data_files:
- sample-data.json
item_properties:
id_key: id
text_key: text
user_config:
allow_all_users: true
users: []
alert_time_each_instance: 10000000
annotation_schemes:
- annotation_type: radio
name: error_flag
description: "Does this clinical note contain a medical error?"
labels:
- name: "Error present"
tooltip: "One sentence states something medically incorrect"
- name: "No error"
tooltip: "The note is medically correct"
- annotation_type: span
name: error_sentence
description: "Highlight the sentence that contains the error."
labels:
- name: "Erroneous sentence"
color: "#dc2626"
display_logic:
show_when:
- schema: error_flag
operator: equals
value: "Error present"
- annotation_type: radio
name: error_type
description: "Which kind of error is it?"
labels:
- name: "Diagnosis"
tooltip: "Failure to correctly identify the underlying condition based on medical presentation"
- name: "Management"
tooltip: "Inappropriate non-pharmacologic, non-surgical medical decision such as observation, monitoring, or disposition"
- name: "Treatment"
tooltip: "Inappropriate definitive intervention (surgical, procedural, or pharmacologic); distinct from general management"
- name: "Pharmacotherapy"
tooltip: "Incorrect drug selection, dosage, route, timing, interaction, or duration"
- name: "Causal Organism / Pathogen"
tooltip: "Misidentification of the causative microorganism in infectious disease"
- name: "Lab / Serum Value Interpretation"
tooltip: "Misreading or misapplying diagnostic thresholds, reference ranges, or derived values"
- name: "Physiology"
tooltip: "Misconception or misinterpretation of physiological principles (e.g., ECG, PFT)"
- name: "Histology"
tooltip: "Misinterpretation of tissue morphology, cellular structures, or microscopic patterns"
- name: "Anatomy"
tooltip: "Errors in anatomical structure, relation, or spatial understanding"
- name: "Epidemiology"
tooltip: "Misuse of statistical tools or misstatement of incidence, prevalence, or risk factors"
display_logic:
show_when:
- schema: error_flag
operator: equals
value: "Error present"
- annotation_type: text
name: corrected_sentence
description: "Write the medically correct version of the erroneous sentence."
multiline: true
rows: 3
cols: 60
display_logic:
show_when:
- schema: error_flag
operator: equals
value: "Error present"
- annotation_type: radio
name: difficulty
description: "How difficult is this case?"
labels:
- name: "Easy"
- name: "Medium"
- name: "Hard"
- annotation_type: radio
name: reasoning_type
description: "What kind of reasoning does the case require?"
labels:
- name: "Factual recall"
- name: "Single-hop reasoning"
- name: "Multi-hop reasoning"
annotation_instructions: |
The notes in this task are illustrative, and some of them contain deliberately wrong medical statements. They are not clinical advice.
Read the clinical note. Decide whether one sentence is medically wrong. If so, mark that sentence,
choose the error type, and write the corrected sentence. Then rate the case difficulty and the reasoning it needs.
site_dir: default
Sample Data
[
{
"id": "mederr_001",
"text": "A 58-year-old man presents with crushing substernal chest pain radiating to the left arm. An ECG shows ST-segment elevation in leads II, III and aVF. The troponin level is elevated. The diagnosis is gastroesophageal reflux disease."
},
{
"id": "mederr_002",
"text": "A 24-year-old woman has a two-day history of dysuria and urinary frequency. A urine culture grows a gram-negative rod. The most likely causative organism is Staphylococcus aureus, and she is started on an oral antibiotic."
}
]
// ... and 8 more itemsTry it live — no install
Boot the real Potato server in your browser (WebAssembly) and annotate with this exact config. Nothing leaves your machine.
Run live in your browserGet This Design
Clone or download from the repository
Quick start:
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/text/domain-specific/mederrbench-medical-error-detection
potato start config.yamlDataset & paper
Ma et al., Findings of ACL 2026
- Paper DOI
- 10.18653/v1/2026.findings-acl.573
Citation (BibTeX)
@inproceedings{ma-etal-2026-mederrbench,
title = "{M}ed{E}rr{B}ench: A Fine-Grained Multilingual Benchmark for Medical Error Detection and Correction with Clinical Expert Annotations",
author = "Ma, Congbo and
Zhang, Yichun and
Al-Jazzazi, Yousef and
Foisal, Ahamed and
Sharma, Laasya and
Sadqi, Yousra and
Saleh, Khaled and
Mallat, Jihad and
Shamout, Farah E.",
editor = "Liakata, Maria and
Moreira, Viviane P. and
Zhang, Jiajun and
Jurgens, David",
booktitle = "Findings of the {A}ssociation for {C}omputational {L}inguistics: {ACL} 2026",
month = jul,
year = "2026",
address = "San Diego, California, United States",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.findings-acl.573/",
doi = "10.18653/v1/2026.findings-acl.573",
pages = "11802--11827",
ISBN = "979-8-89176-395-1"
}Details
Annotation Types
Domain
Use Cases
Tags
Found an issue or want to improve this design?
Open an Issue(opens in a new tab)Related Designs
RadQA: Radiology Report Question Answering Dataset
RadQA is an extractive QA dataset of physician questions answered by spans in MIMIC-III radiology reports, including unanswerable questions. This Potato config reproduces the span-marking and answerability task.
Biomedical Entity Linking (MedMentions)
Entity mention detection and UMLS concept linking for biomedical text based on MedMentions. Annotators identify biomedical entity mentions in PubMed abstracts and link them to UMLS Concept Unique Identifiers (CUIs), supporting large-scale biomedical knowledge base construction and clinical NLP.
Check-COVID: Fact-Checking COVID-19 News Claims
Fact-checking COVID-19 news claims. Annotators verify claims against evidence, identify supporting/refuting spans, and provide verdicts with explanations. Based on the Check-COVID dataset targeting misinformation during the pandemic.