LTR-ICD: A Learning-to-Rank Approach for Automatic Medical Coding (Preprint)

<sec> <title>BACKGROUND</title> Clinical notes contain unstructured text provided by clinicians during patient encounters. These notes are usually accompanied by a sequence of diagnostic codes following the International Classification of Diseases (ICD). Correctly assigning and ordering ICD codes are essential for medical diagnosis and reimbursement. However, automating this task remains challenging. State-of-the-art methods treated this problem as a classification task, leading to ignoring the order of ICD codes that is essential for different purposes. </sec> <sec> <title>OBJECTIVE</title> In this work, as a first attempt, we approach this task from a retrieval system perspective to consider the order of codes, thus formulating this problem as a classification and ranking task. Thereby addressing the limitations of existing classifier-based approaches and improving the order-aware prediction of ICD codes. </sec> <sec> <title>METHODS</title> We propose a novel language model-based framework that integrates classification and ranking to recommend order-aware ICD codes for clinical notes. Our model consists of a classifier module which predicts diagnoses codes for an input clinical note and a generative module which is used to identify the order of the codes. Finally, a ranking algorithm integrates the outputs of both components to produce a final ranked list of recommended ICD codes. The framework is evaluated on benchmark datasets and compared against state-of-the-art multi-label classifiers using standard classification and ranking metrics. </sec> <sec> <title>RESULTS</title> Our results and analysis show that the proposed framework has a superior ability to identify high-priority codes compared to other methods. For instance, our model’s accuracy in correctly ranking primary diagnosis codes is ~47%, compared to ~20% for the state-of-the-art classifier. Additionally, in terms of classification metrics, the proposed model achieves a micro- and macro-F1 scores of 0.6065 and 0.2904, respectively, surpassing the previous best model with scores of 0.597 and 0.2660. </sec> <sec> <title>CONCLUSIONS</title> Reformulating ICD coding as a combined classification and ranking task enhances both sequencing and predictive accuracy. The proposed framework provides a more effective solution for real-world automated ICD coding and has the potential to better support clinical, billing, and research applications. </sec>

Authors

Publication Details

Published
2025-09-09
DOI
https://doi.org/10.2196/preprints.83846
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

LTR-ICD: A Learning-to-Rank Approach for Automatic Medical Coding (Preprint)

Mohammad Mansoori, Kobra Etminani, Amira Soliman
Medical Coding and Health Information
article

LTR-ICD: A Learning-to-Rank Approach for Automatic Medical Coding (Preprint)

Mohammad Mansoori, Kobra Etminani, Amira Soliman
article en

Abstract

<sec> <title>BACKGROUND</title> Clinical notes contain unstructured text provided by clinicians during patient encounters. These notes are usually accompanied by a sequence of diagnostic codes following the International Classification of Diseases (ICD). Correctly assigning and ordering ICD codes are essential for medical diagnosis and reimbursement. However, automating this task remains challenging. State-of-the-art methods treated this problem as a classification task, leading to ignoring the order of ICD codes that is essential for different purposes. </sec> <sec> <title>OBJECTIVE</title> In this work, as a first attempt, we approach this task from a retrieval system perspective to consider the order of codes, thus formulating this problem as a classification and ranking task. Thereby addressing the limitations of existing classifier-based approaches and improving the order-aware prediction of ICD codes. </sec> <sec> <title>METHODS</title> We propose a novel language model-based framework that integrates classification and ranking to recommend order-aware ICD codes for clinical notes. Our model consists of a classifier module which predicts diagnoses codes for an input clinical note and a generative module which is used to identify the order of the codes. Finally, a ranking algorithm integrates the outputs of both components to produce a final ranked list of recommended ICD codes. The framework is evaluated on benchmark datasets and compared against state-of-the-art multi-label classifiers using standard classification and ranking metrics. </sec> <sec> <title>RESULTS</title> Our results and analysis show that the proposed framework has a superior ability to identify high-priority codes compared to other methods. For instance, our model’s accuracy in correctly ranking primary diagnosis codes is ~47%, compared to ~20% for the state-of-the-art classifier. Additionally, in terms of classification metrics, the proposed model achieves a micro- and macro-F1 scores of 0.6065 and 0.2904, respectively, surpassing the previous best model with scores of 0.597 and 0.2660. </sec> <sec> <title>CONCLUSIONS</title> Reformulating ICD coding as a combined classification and ranking task enhances both sequencing and predictive accuracy. The proposed framework provides a more effective solution for real-world automated ICD coding and has the potential to better support clinical, billing, and research applications. </sec>

Openalex Percentile: Top 67%
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.