Datasets:
doc_id stringclasses 8
values | image imagewidth (px) 1.65k 1.7k | ground_truth stringclasses 8
values | subset stringclasses 1
value | template int32 1 8 | sample int32 1 1 | homo_id stringclasses 1
value | hetero_id stringclasses 1
value |
|---|---|---|---|---|---|---|---|
handwriting_t1_s1 | Patient Name: Doe, Jane Patient ID: JG05141985 DOB: 05/14/1985 Date of Service: 2024-05-18 Accession #: IMG9876543 Ordering Physician: Dr. Emily Carter Report Date: 2024-05-20
SPRINGFIELD GENERAL HOSPITAL
Springfield General Hospital Imaging Department 123 Health Way, Springfield, IL, 62704 Phone: (217) 555-1212
Fax: ... | handwriting | 1 | 1 | |||
handwriting_t2_s1 | Lakewood Hospital - Pathology Pathology Report Patient: Peterson, Mark Alan (MRN: LH45-67-89X)
LAKEWOOD HOSPITAL
PATHOLOGY REPORT
831676002937
Patient Name: Peterson, Mark Alan
Date of Birth: March 22, 1965 Medical Record Number: LH45-67-89X
Gender: Male
Patient Address: 345 Mountain View Ave, Lakewood, CO, 80215
La... | handwriting | 2 | 1 | |||
handwriting_t3_s1 | Riverside Hospital. 742 Evergreen Terrace Springfield, IL, 62704 Main
RIVERSIDE HOSPITAL
Riverside Hospital
742 Evergreen Terrace Springfield, IL, 62704 Main
Phone: (217) 555-1212 Gastroenterology Department: (217) 555-3434
Patient Information Line: (217) 555-9090
Procedure: Colonoscopy
Date of Procedure: May 20, ... | handwriting | 3 | 1 | |||
handwriting_t4_s1 | GENERALHOSPITAL
HOSPITAL
Date of Visit: 06/21/2025
Time of Visit: 10:30 AM
Attending Physician: Dr. Emily Carter, MD
Facility: General Health Clinic
Location: 123 Health St, Anytown, USA 12345
Date of Birth: 05/15/1979 Age: 46 Gender: Female Contact: (555) 123-4567
Address: 456 Home Ave, Anytown, USA 12345
Chief Compla... | handwriting | 4 | 1 | |||
handwriting_t5_s1 | University Medical Center 456 Oak Avenue, Springfield, IL 62704 Phone: (217) 555-1234
Jane Smith MRN: 789012 DOB: 05/15/1968
Chief Complaint
Chest pain and shortness of breath for two days.
Care Team
Attending Physician: Dr. Robert Jones, MD Pager: (217) 555-5678
Pharmacies
Main Street Pharmacy 123 Main Street, Springf... | handwriting | 5 | 1 | |||
handwriting_t6_s1 | PRECISION DIAGNOSTIC LAB
831676002937
Patient Name: Jane Doe
Date of Birth: 08/15/1967
MRN: 789012
Ordering Physician: Dr. Sarah Jenkins
Date of Service: 06/15/2025
Accession #: S25-12345
Date of Report: 06/20/2025
Pathology Findings:
Clinical Information: 58-year-old female with a non-painful, pigmented lesion on the ... | handwriting | 6 | 1 | |||
handwriting_t7_s1 | HOSPITAL
Grandview Medical Center
123 Healthway Drive
Springfield, IL 62704
(217) 555-1212
Patient Name: Johnathan Smith
MRN: 8675309
DOB: 07/14/1958
Gender: Male
Age: 67
MRN: 8675309
Accession: A54892-24
Date: 06/22/2025
The patient is a 67-year-old male with a long-standing history of essential hypertension, di... | handwriting | 7 | 1 | |||
handwriting_t8_s1 | HOSPITAL
FAX
To: Dr. Evelyn Reed, Cardiology Department
Facility: Mercy General Hospital
Fax: (555) 890-1234
Phone: (555) 890-1235
Re: Cardiology Consult for Patient: WILLIAMS, Sarah
From: Dr. Alan Chen, MD, Internal Medicine
Facility: Crestwood Primary Care
Fax: (555) 456-7890
Phone: (555) 456-7891
Date: June 25, 2... | handwriting | 8 | 1 |
ClinOCR-Bench
A benchmark for evaluating Optical Character Recognition (OCR) systems on clinical documents. This dataset is presented in the paper ClinOCR-Bench: A Comprehensive Clinical Scanned Document Dataset for Optical Character Recognition Model Evaluation.
π¦ This dataset loads directly with
datasets(see Usage). The source code, construction scripts, and figures live in the GitHub repository: ClinOCR-Bench, where the benchmark is also published as a downloadable zip of raw files on each release. This card and the repo point to each other.
Overview
Scanned documents have been a headache in healthcare for decades. In the real world they arrive as faxed referrals, crumpled printouts, photographed forms, handwritten notes, and dense tabular reports β often combining several of these challenges at once. ClinOCR-Bench captures this richness of artifacts in a single, systematically organized benchmark so that OCR systems can be evaluated across the full range of conditions.
The dataset is split into subsets, each isolating a distinct document artifact (handwriting, poor-quality scans, rotation, and tables), plus a mixed subset that combines multiple artifacts to reflect the most challenging real-world cases. Every document is paired with a clean, human-audited ground-truth transcription.
File Structure
The dataset spans 6 subsets, 16 templates, and 384 documents (64 per subset). Template 1 to 8 are used by the Normal-quality, Handwriting, Poor-quality, and Rotation subsets, while template 9 to 16 are used by the Tables subset. The Mixed artifacts subset includes 4 samples of templates 1 to 16 (N=64).
Document images, grouped by artifact subset:
| Subset | Config | Description |
|---|---|---|
| Normal-quality | normal |
Clean, well-scanned documents |
| Handwriting | handwriting |
Documents rendered with handwriting fonts |
| Poor-quality | poor |
Low-resolution, photographed, crumpled, or degraded scans |
| Rotation | rotated |
Rotated / skewed documents |
| Tables | tables |
Documents dominated by complex tabular layouts |
| Mixed artifacts | mixed |
Documents combining multiple artifacts (e.g., rotation + highlight + low-resolution) |
Each row carries the following columns:
| Column | Type | Description |
|---|---|---|
doc_id |
string | Unique document key, e.g. handwriting_t3_s5 |
image |
image | The scanned document |
ground_truth |
string | Human-audited transcription |
subset |
string | Artifact subset |
template |
int | Template (layout) id |
sample |
int | Sample id within the template |
homo_id |
string | (test only) doc_id of the homogeneous one-shot exemplar |
hetero_id |
string | (test only) doc_id of the heterogeneous one-shot exemplar |
Methodology
The dataset was constructed through a multi-stage pipeline that builds realistic synthetic clinical documents and then degrades them to mimic real-world scanning artifacts:
- Template design β Manually create a template layout based on real-world scanned documents.
- Visual asset generation β Prompt image-generation models to create logos, barcodes, and medical images to be embedded in the documents.
- Content generation β Prompt LLMs to create realistic content for each text area (patient information, impression, notes, etc).
- Styling β Adopt handwriting fonts and adjust table layouts.
- Physical artifact simulation β Print out, crumple, apply plastic folders, multi-generation copy, reduce resolution, and rotate to introduce real-world scan artifacts.
- Quality control β Audit and revise through group discussion.
Ground-truth text is extracted programmatically from the source Word documents and then audited. See the GitHub repository for the full construction pipeline and figures.
Train / Test split and one-shot setup
ClinOCR-Bench is designed for both zero-shot and one-shot evaluation. Within every subset, each template contributes a small exemplar pool (the train split) that is held out from scoring, and the remaining documents are the eval set (the test split):
- Exemplar (train). For each template, the lowest-numbered sample is held out as
that template's exemplar. This gives 56 exemplars (one per template per subset:
8 each for
normal/handwriting/poor/rotated/tables, 16 formixed). - Eval (test). Every other document is scored β 328 documents in total.
Each eval document comes with two predefined one-shot demonstrations, so results are directly comparable across systems:
Homogeneous one-shot β the exemplar of the same template (same layout as the query). This mimics a real-world scenario where many scanned documents are based on the same medical form.
Heterogeneous one-shot β the exemplar of a different template in the same subset, picked by a cyclic shift that grows with the query's rank so it never collides with the query template. This reflects another scenario where scanned documents are imported from different sources, with diverse layouts.
This supports three standard regimes: 0-shot, 1-shot (homogeneous), and 1-shot (heterogeneous).
Usage
from datasets import load_dataset
# pick a subset: normal | handwriting | poor | rotated | tables | mixed
ds = load_dataset("ClinOCR-Bench/ClinOCR-Bench", "handwriting")
test, exemplars = ds["test"], ds["train"]
# one-shot demos are referenced by id; resolve against the train split
by_id = {row["doc_id"]: row for row in exemplars}
item = test[0]
homo_demo = by_id[item["homo_id"]] # same-template exemplar
hetero_demo = by_id[item["hetero_id"]] # sibling-template exemplar
# item["image"], item["ground_truth"] are the query; *_demo carry the shots
License
Released under the MIT License.
Citation
@article{clinocrbench2026,
title={ClinOCR-Bench: A Comprehensive Clinical Scanned Document Dataset for Optical Character Recognition Model Evaluation},
journal={arXiv preprint arXiv:2607.03650},
year={2026}
}
- Downloads last month
- 63