Asymmetric contrastive learning improves health record sharing across countries
Bridging the EHR Divide: Asymmetric Contrastive Learning for Cross-National Medical Representation Transfer
Machine Learning
Summary
Sharing medical data between countries is hard because hospitals use different codes and serve different patients. The authors developed a way for computer models to learn from one country's health records and apply that knowledge to another's. Their method focuses on recognizing patients who will have similar positive health outcomes without confusing different negative outcomes. Tests showed their method worked well transferring data from Taiwan to the US, especially when only a small amount of new data was available. This approach could help improve medical predictions across different healthcare systems.
What this means in practice
- •For hospital data teams: Improve predictive models by transferring patient data representations between national healthcare systems despite differences in coding and populations.
- •For healthcare software engineers: Design pre-trained models that use asymmetric contrastive learning to enhance performance on disease prediction tasks with limited local data.
Authors
Qingyang Zhang
Abstract
Cross-system transfer of longitudinal Electronic Health Record (EHR) representations is challenging because clinical coding, patient populations, and healthcare workflows differ substantially across institutions and countries. We introduce Asymmetric Supervised Contrastive Learning (Asymmetric SupCon), a task-specific pre-training objective motivated by the heterogeneity of negative clinical outcomes. The objective clusters patients sharing a target positive outcome without explicitly attracting negative trajectories toward one another. We pre-train temporal Transformer encoders on longitudinal records from 3.98 million patients in the Taiwanese National Health Insurance Research Database (NHIRD) and transfer them to two U.S. EHR datasets, MIMIC-IV and EHRSHOT. A hybrid semantic mapping pipeline combining direct mappings with embedding-based retrieval enables transfer across heterogeneous clinical vocabularies. On MIMIC-IV, NHIRD pre-training consistently improves over random initialization while substantially narrowing the performance gap to task-specific in-domain pre-training. On EHRSHOT, the transferred models show particularly strong few-shot performance for incident disease prediction. A controlled objective ablation shows that Asymmetric SupCon achieves the best AUPRC on three of four evaluated tasks and is 0.003 AUPRC below Standard SupCon on the fourth. These results support asymmetric contrastive pre-training as an effective approach for task-specific cross-national EHR representation transfer. Code is available at https://github.com/qingYzhang/Asymmetric_SupCon.