Year: 2025
Type: dissertation
Abstract: Automated medical coding aims to assign standardized diagnosis and procedure codes to clinical documents, but faces significant challenges due to severe class imbalance between common and rare codes. This thesis investigates how specialized loss functions can improve rare disease prediction in the context of automated ICD-9 code assignment using the large language models (LLMs) with the MIMIC-III dataset. We implemented and evaluated two specialized loss functions Focal Loss (FL) and Asymmetric Loss (ASL) with the state-of-the-art PLM-ICD (Pre-trained Language Model for International Classification of Diseases) model architecture. These lossfunctions were designed to address class imbalance by differentially weighting the examples based on classification difficulty and positive/negative class separation. Our experiments show that ASL achieved the best performance, improving Macro F1 scores by 0.023 to the standard Binary Cross-Entropy loss while maintaining comparable Micro-F1 performance. Focal Loss also consistently improved rare disease prediction across multiple parameter configurations. Our findings confirm that loss function engineering is an effective approach for improving rare disease prediction in automated medical coding systems. This work contributes to addressing the performance gap between common and rare codes, potentially enhancing the clinical utility of automated coding systems in healthcare settings.
Author: Reevcrona, Alexander
Institution: Halmstad University
Language: English
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W6991827155
