Accurate and explainable ICD-10-CM diagnosis coding through multi-stage model adaptation and evidence-guided verification

The International Classification of Diseases (ICD) coding system is central to reimbursement, registry construction, and secondary analysis, yet automated inpatient International Classification of Diseases, Tenth Revision, Clinical Modification (ICD-10-CM) diagnosis coding from discharge documentation remains difficult because clinical notes are long, diagnoses are multi-label, and supporting evidence is often scattered across multiple note sections. Existing systems also provide limited justification for why a code was assigned. This study develops and evaluates a Large Language Model (LLM)-based approach for accurate and evidence-grounded ICD-10-CM coding. Our framework combines three components: a two-stage Supervised Fine-Tuning (SFT) strategy that first aligns the base model with medical instructions and then specializes it for ICD coding, an ICD-aligned Reinforcement Learning (RL) algorithm with reward and advantage functions tailored to the hierarchical structure of ICD codes, and a Retrieval-Augmented Generation (RAG)-based verifier that removes predictions lacking external support. On the Medical Information Mart for Intensive Care IV (MIMIC-IV) benchmark, two-stage SFT improves Micro-F1 from 14.4% to 64.0%, ICD-specific RL further raises it to 66.7%, and the verifier reaches 67.5%, exceeding the strongest previously reported MIMIC-IV result by 8.8 points. These results show that domain adaptation, task-aligned optimization, and evidence-guided verification can improve both coding accuracy and the auditability of model outputs. The resulting system is intended as a decision-support tool for professional coders rather than a fully autonomous deployment.

Authors

Institutions

Publication Details

Journal
PeerJ Computer Science
Published
2026-09-10
DOI
https://doi.org/10.7717/peerj-cs.4079
Primary Topic
Medical Coding and Health Information
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Accurate and explainable ICD-10-CM diagnosis coding through multi-stage model adaptation and evidence-guided verification

Xiaotong Xie, Jianhua Qiu, Hu Pin, Zheng Qin et al.
PeerJ Computer Science
Medical Coding and Health Information
article

Accurate and explainable ICD-10-CM diagnosis coding through multi-stage model adaptation and evidence-guided verification

Xiaotong Xie, Jianhua Qiu, Hu Pin, Zheng Qin, Xin Wei, Wei Zhao, Yeling Zhang, Kaili Ma
article en

Abstract

The International Classification of Diseases (ICD) coding system is central to reimbursement, registry construction, and secondary analysis, yet automated inpatient International Classification of Diseases, Tenth Revision, Clinical Modification (ICD-10-CM) diagnosis coding from discharge documentation remains difficult because clinical notes are long, diagnoses are multi-label, and supporting evidence is often scattered across multiple note sections. Existing systems also provide limited justification for why a code was assigned. This study develops and evaluates a Large Language Model (LLM)-based approach for accurate and evidence-grounded ICD-10-CM coding. Our framework combines three components: a two-stage Supervised Fine-Tuning (SFT) strategy that first aligns the base model with medical instructions and then specializes it for ICD coding, an ICD-aligned Reinforcement Learning (RL) algorithm with reward and advantage functions tailored to the hierarchical structure of ICD codes, and a Retrieval-Augmented Generation (RAG)-based verifier that removes predictions lacking external support. On the Medical Information Mart for Intensive Care IV (MIMIC-IV) benchmark, two-stage SFT improves Micro-F1 from 14.4% to 64.0%, ICD-specific RL further raises it to 66.7%, and the verifier reaches 67.5%, exceeding the strongest previously reported MIMIC-IV result by 8.8 points. These results show that domain adaptation, task-aligned optimization, and evidence-guided verification can improve both coding accuracy and the auditability of model outputs. The resulting system is intended as a decision-support tool for professional coders rather than a fully autonomous deployment.

PeerJ Computer ScienceVol. 12
Hunan University (CN), Beijing Academy of Artificial Intelligence (CN)
Peace, Justice and strong institutions
Openalex Percentile: Top 3%
Medical Coding and Health Information
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.