ClinOCR-Bench
收藏资源简介:
ClinOCR-Bench是由德克萨斯大学休斯顿健康科学中心等机构创建的综合性临床扫描文档数据集,旨在评估光学字符识别模型在医疗领域的性能。该数据集包含384张合成扫描图像,涵盖正常、手写、质量差、旋转、表格和混合伪影六个子集,平均每文档约200个单词,数据来源于16个模板和12种文档类型,通过人工模板设计、大语言模型生成文本内容及物理与程序化退化方法合成。该数据集应用于临床OCR模型开发与评估,旨在解决电子健康记录中扫描文档信息提取的挑战,特别是针对手写、表格、低质量和旋转等常见伪影,以提升医疗数据处理效率与患者安全。
ClinOCR-Bench is a comprehensive clinical scanned document dataset created by institutions including the University of Texas Health Science Center at Houston, aiming to evaluate the performance of optical character recognition (OCR) models in the medical field. This dataset comprises 384 synthetic scanned images, covering six subsets: normal, handwritten, low-quality, rotated, tabular, and mixed artifacts. Each document contains an average of approximately 200 words, with the data sourced from 16 templates and 12 document types, and synthesized via manual template design, text content generation by large language models (LLMs), as well as physical and procedural degradation methods. This dataset is applied to the development and evaluation of clinical OCR models, with the goal of addressing challenges in scanned document information extraction from electronic health records (EHRs), particularly for common artifacts such as handwritten content, tabular structures, low-quality images, and rotated documents, thereby improving medical data processing efficiency and patient safety.
ClinOCR-Bench 数据集概述
ClinOCR-Bench 是一个专门用于评估光学字符识别(OCR)系统在临床文档上表现的基准数据集。它旨在模拟真实世界中扫描文档的复杂性和多样性,包括传真、皱褶打印件、照片、手写笔记和密集的表格报告等多种场景。
核心特性
- 评估场景:支持零样本和单样本评估。
- 单样本设置:每个评估文档提供两种预定义的单样本示例:
- 同质单样本:使用与查询文档相同模板的示例。
- 异质单样本:使用与查询文档不同模板(但属于同一子集)的示例。
- 基准性能:提供了基线OCR性能的参考(ClinOCR-Bench-Baseline)。
数据集结构与规模
数据集包含 6个子集、16个模板,共计 384个文档(每个子集64个文档)。子集划分如下:
| 子集 | 扫描图像路径 | 真实文本路径 | 描述 |
|---|---|---|---|
| Normal-quality | scans/normal/ |
ground_truth/normal/ |
清晰、高质量的扫描文档 |
| Handwriting | scans/handwriting/ |
ground_truth/handwriting/ |
手写字体的文档 |
| Poor-quality | scans/poor/ |
ground_truth/poor/ |
低分辨率、照片、皱褶或退化扫描件 |
| Rotation | scans/rotated/ |
ground_truth/rotated/ |
旋转/倾斜的文档 |
| Tables | scans/tables/ |
ground_truth/tables/ |
包含复杂表格布局的文档 |
| Mixed artifacts | scans/mixed/ |
ground_truth/mixed/ |
结合多种缺陷(如旋转、高亮、低分辨率)的文档 |
- 模板分配:模板1-8用于
Normal-quality、Handwriting、Poor-quality、Rotation子集;模板9-16用于Tables子集;Mixed artifacts子集包含模板1-16各4个样本。
数据划分
文档被分为训练集(示例集)和测试集(评估集):
- 训练集(示例集):每个模板中编号最小的一个样本被保留作为该模板的示例,共 56个示例。
- 测试集(评估集):其余所有文档参与评分,共 328个文档。
构建方法
数据集通过多阶段流程构建,生成逼真的临床文档:
- 模板设计:基于真实扫描文档手动创建布局。
- 嵌入图像生成:利用图像生成模型创建标识、条形码和医学图像。
- 内容生成:利用大语言模型为各文本区(如患者信息、印象、笔记)生成真实内容。
- 样式调整:采用手写字体并调整表格布局。
- 物理伪影模拟:通过打印、皱褶、塑料文件夹、多代复印、降低分辨率和旋转等方式模拟真实扫描伪影。
- 质量控制:通过小组讨论进行审核和修订。
真实文本通过从源Word文档中程序提取后,再人工审核获得。
数据获取方式
数据可通过两种方式获取:
-
直接下载(原始文件):从GitHub Release中下载包含
scans/、ground_truth/和单样本查找文件的压缩包。 -
Hugging Face Hub:使用
datasets库加载,每个子集作为一个配置,包含train(示例集)和test(评估集)划分。示例代码: python from datasets import load_dataset ds = load_dataset("ClinOCR-Bench/ClinOCR-Bench", "handwriting") test, exemplars = ds["test"], ds["train"] -
单样本映射:
oneshot_lookup.csv和oneshot_lookup.json文件记录了每个文档的同质和异质单样本示例的映射信息。
许可与引用
- 许可协议:MIT License。
- 引用信息:待补充。

- 1ClinOCR-Bench: A Comprehensive Clinical Scanned Document Dataset for Optical Character Recognition Model Evaluation德克萨斯大学休斯顿健康科学中心·麦威廉姆斯生物医学信息学院; 德克萨斯大学MD安德森癌症中心·企业开发与集成部 · 2026年



