Dataset Viewer
Auto-converted to Parquet Duplicate
image
imagewidth (px)
1k
1k
case_id
stringlengths
37
49
role
stringclasses
1 value
record_seed
int64
101
112
corruption_seed
int64
5k
5.01k
⌀
template
stringclasses
3 values
image_sha256
stringlengths
64
64
source_page_sha256
stringlengths
64
64
⌀
synthetic_patient_id
stringlengths
13
13
synthetic_report_id
stringlengths
17
17
critical_field_count
int64
6
6
regions_json
stringlengths
2.77k
3.21k
labgold-calibration-000101-classic-clean
calibration
101
null
classic
09b3eab0b7fd1892a945e136c3535ee93d7ca3de16a8d511425d15ab443d95d9
null
SAFE-30596824
SAFE-RPT-50103402
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 46906"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-30596824"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-50103402"}...
labgold-calibration-000101-classic-corrupt-005001
calibration
101
5,001
classic
4e1af22a9d66787345dbb2710c8f0af9feca75635ab0c23b6acffae4f56c1ae3
09b3eab0b7fd1892a945e136c3535ee93d7ca3de16a8d511425d15ab443d95d9
SAFE-30596824
SAFE-RPT-50103402
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 46906"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-30596824"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-50103402"}...
labgold-calibration-000102-compact-clean
calibration
102
null
compact
a68ced96b5b6c26891451bcd3335459cf4b0daafbd791084ded70fea06761ed3
null
SAFE-79983504
SAFE-RPT-11085681
6
[{"box":{"x1":40,"x2":228,"y1":83,"y2":98},"role":"patient_name","row_id":null,"text":"Synthetic Patient 61161"},{"box":{"x1":420,"x2":546,"y1":84,"y2":95},"role":"patient_id","row_id":null,"text":"SAFE-79983504"},{"box":{"x1":40,"x2":204,"y1":112,"y2":123},"role":"report_id","row_id":null,"text":"SAFE-RPT-11085681"},{...
labgold-calibration-000102-compact-corrupt-005002
calibration
102
5,002
compact
15149b7081c8d4c309f88a3e62be28683f79516a2f701ec24f36bc6dd809834e
a68ced96b5b6c26891451bcd3335459cf4b0daafbd791084ded70fea06761ed3
SAFE-79983504
SAFE-RPT-11085681
6
[{"box":{"x1":40,"x2":228,"y1":83,"y2":98},"role":"patient_name","row_id":null,"text":"Synthetic Patient 61161"},{"box":{"x1":420,"x2":546,"y1":84,"y2":95},"role":"patient_id","row_id":null,"text":"SAFE-79983504"},{"box":{"x1":40,"x2":204,"y1":112,"y2":123},"role":"report_id","row_id":null,"text":"SAFE-RPT-11085681"},{...
labgold-calibration-000103-grid-clean
calibration
103
null
grid
27bf030be1192abe206891aeefa75ac75fd72728fc7a9175f825a8d70f20cad1
null
SAFE-59199955
SAFE-RPT-16846074
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 94620"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-59199955"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-16846074"}...
labgold-calibration-000103-grid-corrupt-005003
calibration
103
5,003
grid
9543d083db75a8f5aa73232156cba975fa97c964ab59e5e2326172f194f947a9
27bf030be1192abe206891aeefa75ac75fd72728fc7a9175f825a8d70f20cad1
SAFE-59199955
SAFE-RPT-16846074
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 94620"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-59199955"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-16846074"}...
labgold-calibration-000104-classic-clean
calibration
104
null
classic
bcf471d72afaba1c3b76ea04355d86e11903fd54f520ad4f1df0dfa8972a1ad4
null
SAFE-99581130
SAFE-RPT-92281919
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 01862"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-99581130"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-92281919"}...
labgold-calibration-000104-classic-corrupt-005004
calibration
104
5,004
classic
c77f257e30ab7f24a0ca3fa569b129e7f4c50b7a981a70e6399d17bd7ae42495
bcf471d72afaba1c3b76ea04355d86e11903fd54f520ad4f1df0dfa8972a1ad4
SAFE-99581130
SAFE-RPT-92281919
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 01862"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-99581130"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-92281919"}...
labgold-calibration-000105-compact-clean
calibration
105
null
compact
b444a9417a69c33683bab1238867d5c6c7d9169d2794f9d2c104d3f22a0be60f
null
SAFE-58109515
SAFE-RPT-41216610
6
[{"box":{"x1":40,"x2":228,"y1":83,"y2":98},"role":"patient_name","row_id":null,"text":"Synthetic Patient 56477"},{"box":{"x1":420,"x2":546,"y1":84,"y2":95},"role":"patient_id","row_id":null,"text":"SAFE-58109515"},{"box":{"x1":40,"x2":204,"y1":112,"y2":123},"role":"report_id","row_id":null,"text":"SAFE-RPT-41216610"},{...
labgold-calibration-000105-compact-corrupt-005005
calibration
105
5,005
compact
a2e987353f7973a8333aa00716fb1079fb9c16a2a613c3ef8e185da9d601d6e4
b444a9417a69c33683bab1238867d5c6c7d9169d2794f9d2c104d3f22a0be60f
SAFE-58109515
SAFE-RPT-41216610
6
[{"box":{"x1":40,"x2":228,"y1":83,"y2":98},"role":"patient_name","row_id":null,"text":"Synthetic Patient 56477"},{"box":{"x1":420,"x2":546,"y1":84,"y2":95},"role":"patient_id","row_id":null,"text":"SAFE-58109515"},{"box":{"x1":40,"x2":204,"y1":112,"y2":123},"role":"report_id","row_id":null,"text":"SAFE-RPT-41216610"},{...
labgold-calibration-000106-grid-clean
calibration
106
null
grid
facea41ecf0431a4bf2afccbdd1dc73a239e4a4af859c15c9cb6c083a6001f3f
null
SAFE-52853705
SAFE-RPT-79067356
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 34342"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-52853705"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-79067356"}...
labgold-calibration-000106-grid-corrupt-005006
calibration
106
5,006
grid
fe4a0dd7165c3fea0944887e99689a8ff1de4340cd3f6a1dcbfb7810442e543c
facea41ecf0431a4bf2afccbdd1dc73a239e4a4af859c15c9cb6c083a6001f3f
SAFE-52853705
SAFE-RPT-79067356
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 34342"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-52853705"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-79067356"}...
labgold-calibration-000107-classic-clean
calibration
107
null
classic
661f2773bdc7912f35cb65b77cc0cd1b246aa2a8c1e7c9eb30f06242d932cb7d
null
SAFE-29542152
SAFE-RPT-47028212
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 17286"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-29542152"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-47028212"}...
labgold-calibration-000107-classic-corrupt-005007
calibration
107
5,007
classic
5a638142d22aa71c0953cc590f66db2a1546879d1c2022ee0ec84c6951529904
661f2773bdc7912f35cb65b77cc0cd1b246aa2a8c1e7c9eb30f06242d932cb7d
SAFE-29542152
SAFE-RPT-47028212
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 17286"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-29542152"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-47028212"}...
labgold-calibration-000108-compact-clean
calibration
108
null
compact
f54cdae42e6756926c4f6f0e62ff0a0df717bf3c30fb31691ef6c5035a0e8e82
null
SAFE-68255282
SAFE-RPT-00103017
6
[{"box":{"x1":40,"x2":228,"y1":83,"y2":98},"role":"patient_name","row_id":null,"text":"Synthetic Patient 62004"},{"box":{"x1":420,"x2":546,"y1":84,"y2":95},"role":"patient_id","row_id":null,"text":"SAFE-68255282"},{"box":{"x1":40,"x2":204,"y1":112,"y2":123},"role":"report_id","row_id":null,"text":"SAFE-RPT-00103017"},{...
labgold-calibration-000108-compact-corrupt-005008
calibration
108
5,008
compact
57bfba36fb1e2b8ff6d9dd282b75f8743cbd2dd34d2a62fb9e02ab6e7f97b8e6
f54cdae42e6756926c4f6f0e62ff0a0df717bf3c30fb31691ef6c5035a0e8e82
SAFE-68255282
SAFE-RPT-00103017
6
[{"box":{"x1":40,"x2":228,"y1":83,"y2":98},"role":"patient_name","row_id":null,"text":"Synthetic Patient 62004"},{"box":{"x1":420,"x2":546,"y1":84,"y2":95},"role":"patient_id","row_id":null,"text":"SAFE-68255282"},{"box":{"x1":40,"x2":204,"y1":112,"y2":123},"role":"report_id","row_id":null,"text":"SAFE-RPT-00103017"},{...
labgold-calibration-000109-grid-clean
calibration
109
null
grid
257836c9c01df095d32fd268b068a930d53b83e524faa7fde0b0acd54000cde8
null
SAFE-69499544
SAFE-RPT-91587190
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 01201"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-69499544"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-91587190"}...
labgold-calibration-000109-grid-corrupt-005009
calibration
109
5,009
grid
a9a20598fc92a2337ec06b839cd8737142d74f77c641c44b80dd7e701cd32874
257836c9c01df095d32fd268b068a930d53b83e524faa7fde0b0acd54000cde8
SAFE-69499544
SAFE-RPT-91587190
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 01201"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-69499544"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-91587190"}...
labgold-calibration-000110-classic-clean
calibration
110
null
classic
0d835ceaa3d68245db65288a1ab7d3300b5de95dfc2f98b6c0401b692c14fe21
null
SAFE-64015901
SAFE-RPT-25818159
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 08722"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-64015901"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-25818159"}...
labgold-calibration-000110-classic-corrupt-005010
calibration
110
5,010
classic
cce5d618da58af47fe01fcc10865671a8417b16c96ec1ccb5313cd288ea6b955
0d835ceaa3d68245db65288a1ab7d3300b5de95dfc2f98b6c0401b692c14fe21
SAFE-64015901
SAFE-RPT-25818159
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 08722"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-64015901"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-25818159"}...
labgold-calibration-000111-compact-clean
calibration
111
null
compact
7b508b8453d1d9fa3d08378e07926931d7914448741d16609d873e06aa7f8500
null
SAFE-78930334
SAFE-RPT-07696552
6
[{"box":{"x1":40,"x2":228,"y1":83,"y2":98},"role":"patient_name","row_id":null,"text":"Synthetic Patient 95137"},{"box":{"x1":420,"x2":546,"y1":84,"y2":95},"role":"patient_id","row_id":null,"text":"SAFE-78930334"},{"box":{"x1":40,"x2":204,"y1":112,"y2":123},"role":"report_id","row_id":null,"text":"SAFE-RPT-07696552"},{...
labgold-calibration-000111-compact-corrupt-005011
calibration
111
5,011
compact
32c9f79644da57c54a47a4e291a17e388a6f154be2b684161913774ee79bc39e
7b508b8453d1d9fa3d08378e07926931d7914448741d16609d873e06aa7f8500
SAFE-78930334
SAFE-RPT-07696552
6
[{"box":{"x1":40,"x2":228,"y1":83,"y2":98},"role":"patient_name","row_id":null,"text":"Synthetic Patient 95137"},{"box":{"x1":420,"x2":546,"y1":84,"y2":95},"role":"patient_id","row_id":null,"text":"SAFE-78930334"},{"box":{"x1":40,"x2":204,"y1":112,"y2":123},"role":"report_id","row_id":null,"text":"SAFE-RPT-07696552"},{...
labgold-calibration-000112-grid-clean
calibration
112
null
grid
96d3b3e0d2b7f3e44dcda6d00b0f76e7b25b443346e7362c9c21ff115ba052bd
null
SAFE-84238080
SAFE-RPT-70803143
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 92108"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-84238080"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-70803143"}...
labgold-calibration-000112-grid-corrupt-005012
calibration
112
5,012
grid
4cb90d48cb019449d2ef2c4919b15e3eab095fc3d7312a008a9338e8002ee1ed
96d3b3e0d2b7f3e44dcda6d00b0f76e7b25b443346e7362c9c21ff115ba052bd
SAFE-84238080
SAFE-RPT-70803143
6
[{"box":{"x1":40,"x2":255,"y1":95,"y2":114},"role":"patient_name","row_id":null,"text":"Synthetic Patient 92108"},{"box":{"x1":420,"x2":571,"y1":96,"y2":110},"role":"patient_id","row_id":null,"text":"SAFE-84238080"},{"box":{"x1":40,"x2":234,"y1":130,"y2":144},"role":"report_id","row_id":null,"text":"SAFE-RPT-70803143"}...

SafeOCR-LabGold

SafeOCR-LabGold is the synthetic laboratory-report benchmark used to develop and evaluate the frozen SafeOCR v0.1 verification policy.

Dataset summary

The complete frozen split contains:

Split Synthetic records Rendered documents Critical fields
Calibration 12 24 144
Final evaluation 24 48 288
Total 36 72 432

Each synthetic record is rendered as a clean document and a deterministic corrupted counterpart. Three controlled templates are used: classic, compact, and grid. Every document contains six laboratory fields.

The paper reports the 48-document / 288-critical-field final evaluation split.

Intended use

Use SafeOCR-LabGold for:

  • deterministic clinical-OCR verification research;
  • regression tests for evidence binding and selective-decision policies;
  • reproducible demonstrations of review/abstention behavior;
  • studying automation-versus-review trade-offs under the frozen v0.1 benchmark.

Do not use this dataset as evidence of real-world clinical deployment performance. It is synthetic and does not represent the full distribution of real laboratory reports.

Frozen result boundary

In the final evaluation split, the primary OCR baseline produced 0/288 observed errors. SafeOCR accepted 209/288 fields with 0/209 observed errors and routed 79 correct fields to review. Because the ungated baseline also had zero observed errors, this benchmark does not establish a safety benefit from gating.

Data generation and byte-level reproducibility

The benchmark generator is deterministic for a fixed renderer stack:

python scripts/prepare_hf_labgold.py --output dist/SafeOCR-LabGold

The canonical Hugging Face v0.1 publication package is bound by:

  • manifest_sha256 = 3a3fcdf1e3e045c0b6f8b334457d1e22dbd247a6a556e08235f808143abf5cec;
  • Python 3.12.13;
  • Pillow 12.3.0;
  • FreeType 2.14.3;
  • JPEG feature version 8.0;
  • zlib 1.3.1.zlib-ng;
  • platform win32:AMD64.

SafeOCR's corruption pipeline includes a JPEG round-trip. Pillow can therefore produce different corrupted PNG bytes when its underlying JPEG implementation differs across platforms even when the frozen seeds, case identities, layouts, and policy are unchanged. A package whose manifest hash differs from the canonical value above must not be presented as the byte-identical v0.1 publication artifact. For exact reproduction of the released benchmark, use the published Hugging Face artifacts or a matching renderer stack.

This renderer dependency does not change the frozen evaluation results or claim boundaries; it is a byte-level reproducibility constraint on regenerated corrupted images.

The generator records exact case identity, template, source seed, corruption seed, document hash, page hash, image filename, and truth-region metadata. The canonical root metadata.jsonl remains byte-identical to manifest.jsonl.

The Hugging Face Dataset Viewer uses a separate derived Parquet layer under viewer/. It is generated only after verifying the canonical manifest and every source-image SHA-256. The viewer layer embeds the same image bytes and exposes the frozen metadata as tabular columns, with explicit calibration (24 rows) and evaluation (48 rows) splits. It is a convenience representation only; manifest.jsonl and images/ remain the audit source of truth.

Privacy

All records are synthetic. Synthetic patient names and identifiers are generated by SafeOCR; no real patient data are used.

Repository and demo

Dataset contents

The published repository contains:

  • images/*.png: canonical synthetic laboratory report pages;
  • manifest.jsonl: canonical audit manifest for the frozen release;
  • metadata.jsonl: root metadata byte-identical to the canonical manifest;
  • images/metadata.jsonl: compatibility ImageFolder metadata adapter;
  • viewer/calibration.parquet: derived 24-row viewer split with embedded canonical images and metadata;
  • viewer/evaluation.parquet: derived 48-row viewer split with embedded canonical images and metadata;
  • viewer/viewer_info.json: viewer-layer counts and SHA-256 identities;
  • dataset_info.json: canonical release counts and SHA-256 identities;
  • README.md: this dataset card.

External datasets used in the paper are not redistributed here.

License

The SafeOCR project and generated SafeOCR-LabGold artifacts are released under Apache-2.0 where applicable. Third-party datasets used in the paper retain their own terms and are not included in this Hugging Face dataset.

Downloads last month
83