Healthcare AI
New ranking-aware system outperforms prior methods at assigning medical diagnostic codes
Researchers introduce a framework that treats automated ICD coding as both classification and ranking task, achieving better accuracy in prioritizing critical diagnoses.
Clinical documentation systems require structured diagnostic coding for patient care coordination and insurance reimbursement. Clinicians record detailed notes during patient encounters, which must then be converted into standardized ICD (International Classification of Diseases) codes. The ordering of these codes matters significantly—primary diagnoses carry different weight than secondary ones—yet most automated systems have overlooked this crucial detail.
The Challenge of Automated Coding#
Current state-of-the-art approaches have treated ICD code assignment primarily as a classification problem, which ignores the critical sequencing of codes. While this produces reasonable overall performance, it fails to correctly prioritize which diagnoses are most important to identify first. Medical professionals rely on properly ranked codes for patient management decisions and accurate billing.
A Retrieval-Based Solution#
Researchers have developed LTR-ICD, a framework that reformulates the problem by combining classification with explicit ranking. Rather than simply predicting which codes apply, the system learns to order them by clinical priority. This approach draws from information retrieval principles—treating high-priority diagnoses much like a search engine ranks the most relevant results.
Performance Gains#
The results demonstrate meaningful improvements across multiple metrics. The model correctly ranks primary diagnosis codes with 47% accuracy, more than double the 20% achieved by previous best classifiers. Beyond ranking, the framework maintains competitive overall classification performance: micro-F1 of 0.6065 and macro-F1 of 0.2904, both surpassing prior methods (0.6035 and 0.2741 respectively).
Why This Matters#
Accurate code ranking isn't merely a technical refinement—it directly affects clinical workflows and reimbursement accuracy. By identifying and ordering high-priority diagnoses correctly, the system improves decision support for clinicians while reducing administrative errors.

