Skip to main content
QUICK REVIEW

[论文解读] Leveraging Large Language Models to Extract and Translate Medical Information in Doctors' Notes for Health Records and Diagnostic Billing Codes

Peter Hartnett, Chung-Chi Huang|arXiv (Cornell University)|Jan 14, 2026
Machine Learning in HealthcareComputer Science被引用 0
一句话总结

这篇论文提出了一种在设备上、隐私保护的 LLM/RAG 流水线,用于从医生笔记中提取临床信息并将其翻译为 ICD-10-CM 代码,评估开放权重模型与提示策略,并倡导人机协同的环节。

ABSTRACT

Physician burnout in the United States has reached critical levels, driven in part by the administrative burden of Electronic Health Record (EHR) documentation and complex diagnostic codes. To relieve this strain and maintain strict patient privacy, this thesis explores an on-device, offline automatic medical coding system. The work focuses on using open-weight Large Language Models (LLMs) to extract clinical information from physician notes and translate it into ICD-10-CM diagnostic codes without reliance on cloud-based services. A privacy-focused pipeline was developed using Ollama, LangChain, and containerized environments to evaluate multiple open-weight models, including Llama 3.2, Mistral, Phi, and DeepSeek, on consumer-grade hardware. Model performance was assessed for zero-shot, few-shot, and retrieval-augmented generation (RAG) prompting strategies using a novel benchmark of synthetic medical notes. Results show that strict JSON schema enforcement achieved near 100% formatting compliance, but accurate generation of specific diagnostic codes remains challenging for smaller local models (7B-20B parameters). Contrary to common prompt-engineering guidance, few-shot prompting degraded performance through overfitting and hallucinations. While RAG enabled limited discovery of unseen codes, it frequently saturated context windows, reducing overall accuracy. The findings suggest that fully automated unsupervised coding with local open-source models is not yet reliable; instead, a human-in-the-loop assisted coding approach is currently the most practical path forward. This work contributes a reproducible local LLM architecture and benchmark dataset for privacy-preserving medical information extraction and coding.

研究动机与目标

  • 通过在保护患者隐私的前提下,自动将医学笔记提取为结构化数据和账单代码,减轻医生的行政负担。
  • 在本地设备上使用零-shot、少-shot 和 RAG 提示,对临床编码任务评估开放权重的 LLM。
  • 提供一个可重复的基准,使用虚构笔记支持测试、评估与未来私有化医疗编码自动化研究。
  • 实现对不断演进的医学代码数据库的灵活整合,支持本地、可定制的编码工作流。

提出的方法

  • 构建一个以隐私为核心的本地 LLM 流水线,使用 Ollama、LangChain,并通过容器化环境实现本地推理。
  • 在合成笔记上对开放权重 LLM(7B–20B)进行零-shot、少-shot 和 RAG 提示的医学编码任务评估。
  • 使用 JSON 主导的输出模式,强制结构化结果并便于与 EHR 的互操作。
  • 加入 Retrieval-Augmented Generation(RAG)层,从本地文档和代码数据库中检索 ICD-10-CM 背景信息。
  • 在私有、功能检查的基准上评估提示与模型,以分析准确性、一致性和效率。
  • 提出一个模块化的多代理扩展,以在未来工作中提升任务专注度。

实验结果

研究问题

  • RQ1开放权重的 LLMs 在消费级硬件上是否能够准确从医生笔记中提取诊断并映射到 ICD-10-CM 代码?
  • RQ2零-shot、少-shot 与 RAG 提示策略如何影响编码准确性、输出一致性和上下文窗口使用,特别是在小到中等规模的模型上?
  • RQ3具有隐私保护的本地架构和灵活的代码数据库是否能满足自动化医疗编码的实际需求,还是应采用人机协同的方法?

主要发现

  • 严格的 JSON 格式可以实现近 100% 的合规性,但对于小模型(7B–20B)而言,准确的代码生成仍具挑战性。
  • 少-shot 提示在该设置中常常降低性能,并可能导致过拟合和幻觉。
  • RAG 能提升对未见代码的识别,但可能会使上下文窗口饱和,降低较小架构的准确性。
  • 在本地、开源的管道虽有潜力,但尚不足以实现完全自动化,因此人机协同是实际可行的解决方案。
  • 提供一个开源、可重复的本地 LLM 架构与基准数据集,用于提取并翻译医疗信息为诊断代码。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。