[논문 리뷰] Leveraging Large Language Models to Extract and Translate Medical Information in Doctors' Notes for Health Records and Diagnostic Billing Codes
이 논문은 의사 노트에서 임상의 정보를 추출하고 이를 ICD-10-CM 코드로 번역하는 온-디바이스, 프라이버시 보호 LLM/RAG 파이프라인을 제시하며, 오픈-웨이트 모델과 프롬프트 전략을 평가하고 인간-개입(human-in-the-loop) 접근을 옹호한다.
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.
연구 동기 및 목표
- 의료 노트를 구조화된 데이터와 청구 코드로 자동 추출하여 의사 행정 부담을 줄이고 환자 프라이버시를 보존한다.
- 로컬 디바이스에서 제로샷, 퀵샷, 그리고 RAG 프롬팅을 활용하여 임상 코딩 작업에 대해 개방-웨이트 LLM을 평가한다.
- 가상의 노트로 재현 가능한 벤치마크를 제공하여 프라이버시를 고려한 의료 코딩 자동화의 테스트, 평가 및 향후 연구를 지원한다.
- 로컬에서 맞춤형 코딩 워크플로를 위한 발전하는 의료 코드 데이터베이스의 유연한 통합을 가능하게 한다.
제안 방법
- Ollama, LangChain 및 컨테이너화된 환경을 사용하여 온-디바이스 추론을 위한 프라이버시 중심의 로컬 LLM 파이프라인을 구축한다.
- 합성 노트를 대상으로 제로샷, 퀵샷 및 RAG 프롬팅으로 의료 코딩 작업에 대한 오픈-웨이트 LLM(7B–20B)을 평가한다.
- 구조화된 결과를 강제하고 EHR와의 손쉬운 상호운용성을 가능하게 하는 JSON 주도 출력 스키마를 사용한다.
- 로컬 문서 및 코드 데이터베이스에서 ICD-10-CM 맥락을 검색하기 위한 RAG( Retrieval-Augmented Generation) 계층을 도입한다.
- 프라이빗하고 기능 검사된 벤치마크에서 프롬프트와 모델을 평가하여 정확도, 일관성 및 효율성을 분석한다.
- 향후 연구에서 작업 전문화를 개선하기 위한 모듈식 다중 에이전트 확장을 제안한다.
실험 결과
연구 질문
- RQ1의사 노트에서 진단을 정확히 추출하고 이를 ICD-10-CM 코드로 매핑하기 위해 소비자 하드웨어의 오픈-웨이트 LLM이 가능할까?
- RQ2제로샷, 퀵샷, 및 RAG 프롬 prompts가 소형에서 중형 모델의 코딩 정확도, 출력 일관성, 맥락 창 사용에 어떤 영향을 미치는가?
- RQ3개인정보를 보호하는 온-디바이스 아키텍처와 유연한 코드 데이터베이스가 자동 의료 코딩의 실용적 요구를 충족하는가, 아니면 인간-개입이 바람직한가?
주요 결과
- 엄격한 JSON 형식은 거의 100%의 준수로 달성할 수 있지만 작은 모델(7B–20B)에서 정확한 코드 생성은 여전히 도전적이다.
- 퀵샷 프롬anning은 성능을 저하시킬 수 있으며 이 설정에서 과적합과 환각이 발생할 수 있다.
- RAG는 보이지 않는 코드의 식별을 개선하지만 작은 아키텍처에서 맥락 창을 포화시켜 정확도를 감소시킬 수 있다.
- 온-디바이스의 오픈소스 파이프라인은 가능성을 보이지만 자동화를 위한 완전한 신뢰성에 이르지는 못하며 인간-개입이 실용적 해결책으로서 제시된다.
- 의료 정보를 진단 코드로 추출하고 번역하기 위한 오픈소스, 재현 가능한 로컬 LLM 아키텍처 및 벤치마크 데이터세트가 제공된다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.