Large language models improve transferability of electronic health record-based predictions across countries and coding systems

Read full text
Authors: Matthias Kirchler, Matteo Ferro, Veronica Lorenzini, Robin van de Water, FinnGen, Andrea Ganna, Christoph Lippert, Andrea Ganna
Cited by: 4
References: 48

Abstract

Variation in medical practices and reporting standards across healthcare systems limits the transferability of prediction models based on structured electronic health record data. Prior studies have demonstrated that embedding medical codes into a shared semantic space can help address these discrepancies, but real-world applications remain limited. Here, we show that leveraging embeddings from a large language model alongside a transformer-based prediction model provides an effective and scalable solution to enhance generalizability. We call this approach GRASP and apply it to predict the onset of 21 diseases and all-cause mortality in over one million individuals. Trained on the UK Biobank (UK) and evaluated in FinnGen (Finland) and Mount Sinai (USA), GRASP achieved an average ΔC-index that was 88% and 47% higher than language-unaware models, respectively. GRASP also showed significantly higher correlations with polygenic risk scores for 62% of diseases, and maintained robust performance even when datasets were not harmonized to the same data model.

Fields of Study & Subjects

Machine Learning in Healthcare Artificial Intelligence in Healthcare and Education Medical Coding and Health Information

Publication details

Journal / source
npj Digital Medicine
Publisher
Springer Science and Business Media LLC
Volume
9
Issue
1
Pages
177–177
Publication date
22 January 2026
Language
EN