Medical Coding with Biomedical Transformer Ensembles and Zero/Few-shot Learning
Angelo Ziletti, Alan Akbik, Christoph Berns, Thomas Herold, Marion Legler, Martina Viell
TL;DR
The paper tackles medical coding (MC) in MedDRA with an extremely large label space of about $80{,}000$ LLTs and long-tail data. It proposes xTARS, a hybrid approach that combines a BERT-based multiclass classifier with a zero/few-shot learner, using top-$n$ candidate labels and enhanced negative sampling to scale to large label sets. Experiments show xTARS outperforms strong baselines, especially in few-shot/uncertain cases, and the system is deployed at Bayer with promising real-world performance (LLT accuracy ~90% at 80% coverage). The authors release their code to the research community, highlighting practical impact for automated medical coding and potential extensions beyond MC.
Abstract
Medical coding (MC) is an essential pre-requisite for reliable data retrieval and reporting. Given a free-text reported term (RT) such as "pain of right thigh to the knee", the task is to identify the matching lowest-level term (LLT) - in this case "unilateral leg pain" - from a very large and continuously growing repository of standardized medical terms. However, automating this task is challenging due to a large number of LLT codes (as of writing over 80,000), limited availability of training data for long tail/emerging classes, and the general high accuracy demands of the medical domain. With this paper, we introduce the MC task, discuss its challenges, and present a novel approach called xTARS that combines traditional BERT-based classification with a recent zero/few-shot learning approach (TARS). We present extensive experiments that show that our combined approach outperforms strong baselines, especially in the few-shot regime. The approach is developed and deployed at Bayer, live since November 2021. As we believe our approach potentially promising beyond MC, and to ensure reproducibility, we release the code to the research community.
