EHR Representation Learning with Multi-Granularity Cauchy-Schwarz Contrastive Learning

Self-supervised EHR models commonly reconstruct masked medical codes or predict future events, without explicitly modeling clinical relations across patients and visits. Contrastive methods can introduce relational supervision but usually reduce these relations to binary positive and negative pairs. We introduce EHR-CSS, a multi-granularity self-supervised contrastive framework for patient, visit, and medical-code representations. The patient and visit objectives assign target weights according to clinical similarity, while the medical-code objectives assign target weights according to the medical codes to be reconstructed or predicted. At each granularity, the proposed Cauchy-Schwarz Sequence (CSS) loss aligns a model distribution over candidate representations with its target distribution and includes a uniformity term over the candidate representations. Across evaluations on EHRSHOT with few-shot labels and on MIMIC-IV with fully supervised fine-tuning, EHR-CSS achieves the best overall performance among the evaluated methods. The code is available at https://github.com/keynekassapa13/EHR-CSS.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-11-30
DOI
https://doi.org/10.48550/arxiv.2611.41419
Primary Topic
Machine Learning in Healthcare
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

EHR Representation Learning with Multi-Granularity Cauchy-Schwarz Contrastive Learning

Robert Jenssen, Shujian Yu, Keyne Kassapa Oei, Qing Liu
arXiv
Machine Learning in Healthcare
preprint

EHR Representation Learning with Multi-Granularity Cauchy-Schwarz Contrastive Learning

Robert Jenssen, Shujian Yu, Keyne Kassapa Oei, Qing Liu
preprint en

Abstract

Self-supervised EHR models commonly reconstruct masked medical codes or predict future events, without explicitly modeling clinical relations across patients and visits. Contrastive methods can introduce relational supervision but usually reduce these relations to binary positive and negative pairs. We introduce EHR-CSS, a multi-granularity self-supervised contrastive framework for patient, visit, and medical-code representations. The patient and visit objectives assign target weights according to clinical similarity, while the medical-code objectives assign target weights according to the medical codes to be reconstructed or predicted. At each granularity, the proposed Cauchy-Schwarz Sequence (CSS) loss aligns a model distribution over candidate representations with its target distribution and includes a uniformity term over the candidate representations. Across evaluations on EHRSHOT with few-shot labels and on MIMIC-IV with fully supervised fine-tuning, EHR-CSS achieves the best overall performance among the evaluated methods. The code is available at https://github.com/keynekassapa13/EHR-CSS.

arXiv
University of Copenhagen (DK), UiT The Arctic University of Norway (NO), Vrije Universiteit Amsterdam (NL)
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
EHR Representation Learning with Multi-Granularity Cauchy-Schwarz Contrastive Learning — Robert Jenssen, Shujian Yu, et al. · arXiv (2026) | TGRS Research Map | TGRS