JMIR medical informatics · 2026
Synthetic Medical Document Generation Pipeline (MedDocSynth) for Optical Character Recognition: Development and Validation Study on Korean Clinical Documents.
СтатьяВалидационное исследованиеНазвание и аннотация: Перевод пока не подготовлен
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…
Ошибки и ограничения
История · было → стало
Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.
Lainsa Mikel, Aguirre Javier, Hyeyoon Moon, Yejun Won, Jang Woojin, Eun Park Jong, Chul Cha Won
Аннотация
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.
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.