SCEHR: Supervised Contrastive Learning for Clinical Risk Prediction using Electronic Health Records
Not on the map. Why?
Abstract (arXiv)
Contrastive learning has demonstrated promising performance in image and text domains either in a self-supervised or a supervised manner. In this work, we extend the supervised contrastive learning framework to clinical risk prediction problems based on longitudinal electronic health records (EHR). We propose a general supervised contrastive loss LContrastive Cross Entropy + λ LSupervised Contrastive Regularizer for learning both binary classification (e.g. in-hospital mortality prediction) and multi-label classification (e.g. phenotyping) in a unified framework. Our supervised contrastive loss practices the key idea of contrastive learning, namely, pulling similar samples closer and pushing dissimilar ones apart from each other, simultaneously by its two components: LContrastive Cross Entropy tries to contrast samples with learned anchors which represent positive and negative clusters, and LSupervised Contrastive Regularizer tries to contrast samples with each other according to their supervised labels. We propose two versions of the above supervised contrastive loss and our experiments on real-world EHR data demonstrate that our proposed loss functions show benefits in improving the performance of strong baselines and even state-of-the-art models on benchmarking tasks for clinical risk predictions. Our loss functions work well with extremely imbalanced data which are common for clinical risk prediction problems. Our loss functions can be easily used to replace (binary or multi-label) cross-entropy loss adopted in existing clinical predictive models. The Pytorch code is released at urlhttps://github.com/calvin-zcx/SCEHR.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 25 of its 38 references that are in the map. First posted on arXiv 11 Oct 2021.
Builds on
25 of 38 references.
References · 25
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
- 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,857
- 2020Supervised Contrastive Learningcited by 2,829
- 2020Self-supervised Learning: Generative or Contrastivecited by 694
- 2020Contrastive Learning of Medical Visual Representations from Paired Images and Textcited by 641
- 2020A Survey on Contrastive Self-supervised Learningcited by 554
- 2020Hard Negative Mixing for Contrastive Learningcited by 402
- 2016RETAIN: An Interpretable Predictive Model for Healthcare using Reverse Time Attention Mechanismcited by 349
- 2020Keystroke Dynamics as Part of Lifeloggingcited by 334
- 2017Multitask learning and benchmarking with clinical time series datacited by 290
13 more
- 2018Scalable and accurate deep learning for electronic health recordscited by 280
- 2020Supervised Contrastive Learning for Pre-trained Language Model Fine-tuningcited by 276
- 2020Contrastive Clusteringcited by 265
- 2019BEHRT: Transformer for Electronic Health Recordscited by 263
- 2020Self-supervised Co-training for Video Representation Learningcited by 232
- 2016GRAM: Graph-based Attention Model for Healthcare Representation Learningcited by 156
- 2017Attend and Diagnose: Clinical Time Series Analysis using Attention Modelscited by 105
- 2019ConCare: Personalized Clinical Feature Embedding via Capturing the Healthcare Contextcited by 56
- 2019AdaCare: Explainable Clinical Health Status Representation Learning via Scale-Adaptive Feature Extraction and Recalibrationcited by 51
- 2020StageNet: Stage-Aware Neural Networks for Health Risk Predictioncited by 48
- 2020Deep Contextual Clinical Prediction with Reverse Distillationcited by 16
- 2020Evaluating Progress on Machine Learning for Longitudinal Electronic Healthcare Datacited by 12
- 2020UNITE: Uncertainty-based Health Risk Prediction Leveraging Multi-sourced Datacited by 9
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 3; 2025: 2; 2026: 1.
10 papers.
- 2023Enhancing Activity Prediction Models in Drug Discovery with the Ability to Understand Human Languagecited by 44
- 2024SMART: Towards Pre-trained Missing-Aware Model for Patient Health Status Predictioncited by 8
- 2024FairEHR-CLP: Towards Fairness-Aware Clinical Predictions with Contrastive Learning in Multimodal Electronic Health Recordscited by 6
- 2025Deep Learning Approach for Clinical Risk Identification Using Transformer Modeling of Heterogeneous EHR Datacited by 5
- 2022Self-Supervised Predictive Coding with Multimodal Fusion for Patient Deterioration Prediction in Fine-grained Time Resolutioncited by 1
- 2023Contrastive Learning-based Imputation-Prediction Networks for In-hospital Mortality Risk Modeling using EHRscited by 1
- 2024NoteContrast: Contrastive Language-Diagnostic Pretraining for Medical Textcited by 1
- 2025VisTA: Vision-Text Alignment Model with Contrastive Learning using Multimodal Data for Evidence-Driven, Reliable, and Explainable Alzheimer's Disease Diagnosiscited by 1
- 2023LATTE: Label-efficient Incident Phenotyping from Longitudinal Electronic Health Recordscited by 0
- 2026Bridging the EHR Divide: Asymmetric Contrastive Learning for Cross-National Medical Representation Transfercited by 0
- 2026Bridging the EHR Divide: Asymmetric Contrastive Learning for Cross-National Medical Representation Transfer4 Oct 2026
- 2025Deep Learning Approach for Clinical Risk Identification Using Transformer Modeling of Heterogeneous EHR Data6 Nov 2025
- 2025VisTA: Vision-Text Alignment Model with Contrastive Learning using Multimodal Data for Evidence-Driven, Reliable, and Explainable Alzheimer's Disease Diagnosis3 Feb 2025
- 2024NoteContrast: Contrastive Language-Diagnostic Pretraining for Medical Text16 Dec 2024
- 2024SMART: Towards Pre-trained Missing-Aware Model for Patient Health Status Prediction15 May 2024
- 2024FairEHR-CLP: Towards Fairness-Aware Clinical Predictions with Contrastive Learning in Multimodal Electronic Health Records1 Feb 2024
- 2023Contrastive Learning-based Imputation-Prediction Networks for In-hospital Mortality Risk Modeling using EHRs19 Aug 2023
- 2023LATTE: Label-efficient Incident Phenotyping from Longitudinal Electronic Health Records19 May 2023
- 2023Enhancing Activity Prediction Models in Drug Discovery with the Ability to Understand Human Language6 Mar 2023
- 2022Self-Supervised Predictive Coding with Multimodal Fusion for Patient Deterioration Prediction in Fine-grained Time Resolution29 Oct 2022