SCEHR: Supervised Contrastive Learning for Clinical Risk Prediction using Electronic Health Records

10/11/2021
by   Chengxi Zang, et al.
9

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 ℒ_Contrastive Cross Entropy + λℒ_Supervised 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: ℒ_Contrastive Cross Entropy tries to contrast samples with learned anchors which represent positive and negative clusters, and ℒ_Supervised 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 <https://github.com/calvin-zcx/SCEHR>.

READ FULL TEXT
research
06/01/2022

A Generalized Supervised Contrastive Learning Framework

Based on recent remarkable achievements of contrastive learning in self-...
research
04/07/2021

Bootstrapping Your Own Positive Sample: Contrastive Learning With Electronic Health Record Data

Electronic Health Record (EHR) data has been of tremendous utility in Ar...
research
11/09/2022

Clinical Contrastive Learning for Biomarker Detection

This paper presents a novel positive and negative set selection strategy...
research
05/24/2023

Clinically Labeled Contrastive Learning for OCT Biomarker Classification

This paper presents a novel positive and negative set selection strategy...
research
01/11/2021

Contrastive Learning Improves Critical Event Prediction in COVID-19 Patients

Machine Learning (ML) models typically require large-scale, balanced tra...
research
06/13/2023

Supervised-Contrastive Loss Learns Orthogonal Frames and Batching Matters

Supervised contrastive loss (SCL) is a competitive and often superior al...
research
09/13/2023

ConR: Contrastive Regularizer for Deep Imbalanced Regression

Imbalanced distributions are ubiquitous in real-world data. They create ...

Please sign up or login with your details

Forgot password? Click here to reset