A machine-assisted framework for systematic error analysis in clinical concept extraction
Error analysis is critical for evaluating and improving clinical natural language processing (NLP) models, yet no standardized framework exists to support systematic error analysis for clinical concept extraction. Here we present MedError, a machine-assisted, human-in-the-loop framework integrating a validated error taxonomy, large language model (LLM)-assisted classification, and a structured annotation workflow. MedError is developed from 1187 unique errors manually curated from 4227 clinical notes across three institutions, spanning 25 error types and 48 clinical concept categories. Here we show that MedError supports both single-site and federated multisite error analysis through three complementary evaluations. First, benchmarking of six proprietary and open-source LLMs shows that automated error classification alone is insufficient without human involvement. Second, MedError-derived error feedback improves NLP extraction performance by 34–62% over an unstructured baseline across 11 cognitive status concepts. Third, prospective external validation at two independent institutions demonstrates improved agreement with expert-adjudicated annotations by up to 30% (McNemar exact test, p = 0.035, φ = 0.38) and reduced annotation time by 26–33%, providing a systematic and practical framework for real-world clinical NLP deployment. MedError, a machine-assisted human-in-the-loop framework, improves the standardization, validity, and efficiency of clinical NLP error analysis, supporting more transparent and trustworthy model deployment.
Authors
- Andrew Wen (ORCID: https://orcid.org/0000-0001-9090-8028)
- Qiuhao Lu (ORCID: https://orcid.org/0000-0003-2368-8410)
- Sunyang Fu (ORCID: https://orcid.org/0000-0003-1691-5179)
- Julia Wen
- Min Ji Kwak (ORCID: https://orcid.org/0000-0003-2778-3984)
- Xiaoyang Ruan (ORCID: https://orcid.org/0009-0006-7085-744X)
- Yanshan Wang (ORCID: https://orcid.org/0000-0003-4433-7839)
- Fang Chen (ORCID: https://orcid.org/0000-0001-7531-4264)
- Hanyun Yin
- Hongfang Liu (ORCID: https://orcid.org/0000-0003-2570-3741)
- Zhiyi Yue (ORCID: https://orcid.org/0009-0002-3440-0902)
- Jaerong Ahn
- Ming Huang
- Taylor Harrison
- Nahid Rianon
- Jiang Jun
- Ruihong Huang
- Liwei Wang
Institutions
- Mayo Clinic (US)
- University of Pittsburgh (US)
- Mayo Clinic in Arizona (US)
- Mayo Clinic in Florida (US)
- The University of Texas Health Science Center (US)
- The University of Texas at Austin (US)
- Texas A&M University (US)
- The University of Texas Health Science Center at Houston (US)
Publication Details
- Journal
- Nature Communications
- Published
- 2026-08-26
- DOI
- https://doi.org/10.1038/s41467-026-77067-1
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Cancer Prevention and Research Institute of Texas
- University of Texas Health Science Center at Houston
- National Institutes of Health
- U.S. Food and Drug Administration
- National Institute on Aging
- National Heart, Lung, and Blood Institute
- National Human Genome Research Institute
- National Institute of Biomedical Imaging and Bioengineering
- U.S. National Library of Medicine
- National Center for Advancing Translational Sciences