Related Experiment Video
Updated: Oct 24, 2026

A Metadata Extraction Approach for Clinical Case Reports to Enable Advanced Understanding of Biomedical Concepts
Published on: September 20, 2018
Synthetic Medical Document Generation Pipeline (MedDocSynth) for Optical Character Recognition: Development and
Mikel Lainsa1, Javier Aguirre1, Moon Hyeyoon1
1Department of Digital Health, Samsung Advanced Institute for Health Sciences and Technology (SAIHST), Sungkyunkwan University, Seoul, Republic of Korea.
Background:
The development of structured optical character recognition (OCR) systems for Korean medical documents is hindered by strict privacy regulations that limit access to real clinical data. Existing synthetic document frameworks are primarily designed for generic layouts and Western languages, and fail to capture the complex formatting, bilingual terminology, and hierarchical field semantics required for clinical OCR and document-understanding tasks in hospital environments.
Objective:
This study aimed to develop and validate a privacy-preserving, template-driven pipeline for generating realistic synthetic Korean medical documents with structured XML annotations, enabling OCR and document-understanding model training in settings where access to real clinical data is restricted.
Methods:
We designed MedDocSynth, a 7-stage synthetic document generation pipeline that reconstructs authentic medical document layouts from publicly available references, incorporates clinician-guided template selection, and uses a structured placeholder system encoding 17 medical data types. Human-curated templates were populated with exemplar content and tagged using a delimiter-based scheme, after which GPT-4o-mini generated diverse synthetic values for each field. The pipeline produced 1000 fully synthetic DOCX documents with corresponding XML annotations encoding hierarchical structure, title-answer relationships, and datatype metadata. We evaluated text fidelity, lexical diversity (type-token ratio, measure of textual lexical diversity [MTLD], n-grams, and Pareto), and compared the system with existing synthetic document pipelines. A Qwen2.5-VL model was fine-tuned exclusively on the synthetic dataset and evaluated on 50 real-world Korean clinical documents to assess OCR accuracy, information extraction, and table reconstruction.
Results:
The pipeline achieved 100% placeholder coverage, 99.68% format correctness, and 91.56% semantic accuracy. Lexical diversity analysis demonstrated high variability in free-text fields (MTLD≈456) and expected repetitiveness in structured datatypes. Compared with existing pipelines (SynthText, SynthTiger, and DocSynth), the proposed system uniquely supports complex clinical forms, bilingual content, and structured XML annotations. When trained solely on the synthetic data, Qwen2.5-VL achieved the highest real-world performance, with a character accuracy of 86.01%, word accuracy of 78.25%, field accuracy of 67.18%, datatype accuracy of 64.14%, and table reconstruction tree-edit-distance similarity score of 71.09%. Models without fine-tuning performed substantially worse, including GPT-5-mini.
Conclusions:
We present the first synthetic data generation pipeline specifically tailored to Korean medical documents, enabling the creation of realistic, richly annotated datasets for structured OCR without exposing patient information. The synthetic data significantly improves OCR performance on real clinical documents, demonstrating the pipeline's potential utility for hospital deployment and its potential extensibility to other languages and health care systems.