Digitizing Clinical Insights: An End-to-End OCR and MCP-Enhanced Conversational Agent
To appear in Proceedings of the Innovative Applications of Artificial Intelligence Conference (IAAI 2027), Oral
Abstract: In low-resource healthcare settings, the prevalence of paper-based documentation renders vast amounts of clinical data inaccessible for longitudinal analysis and data-driven decision-making. To bridge this gap, we present an end-to-end framework developed in collaboration with the Hospital Infantil de México Federico Gómez (HIMFG) that transforms heterogeneous, handwritten, and multilingual physical records into analysis-ready, provenance-preserving clinical data assets. Unlike existing solutions that demand costly infrastructure, our system integrates seamlessly with established workflows through three core technical contributions: (1) a collaborative parsing architecture combining OCR with meta-prompt–driven Large Language Models (LLMs) to reliably extract semantics from noisy Spanish text; (2) a graph-based alignment algorithm that maps unstructured entities to standardized clinical schemas (e.g., MIMIC) via hierarchical domain knowledge; and (3) a provenance-preserving analysis-oriented agent built on the Model Context Protocol (MCP) that converts natural language queries into executable data pipelines. Experiments on anonymized, real-world patient records demonstrate that the complete extraction pipeline achieves a weighted F1 score of 0.868 on 160 pages from one patient and 0.901 on a cross-patient set of 100 pages from 50 additional patients, while graph-constrained alignment improves schema matching across the evaluated models. This work offers a scalable, practical pathway for unlocking historical clinical data in infrastructure-constrained environments.
Recommended citation: Hou, S.*, Pan, D.*, García-Martínez, A., Márquez-González, H., Sánchez-Cruz, F., Ye, Y., Chawla, N. (2026). "Digitizing Clinical Insights: An End-to-End OCR and MCP-Enhanced Conversational Agent." To appear in Proceedings of the Innovative Applications of Artificial Intelligence Conference (IAAI 2027), Oral.
