Papers › Event-Based Contrastive Learning for Medical Time Series

Event-Based Contrastive Learning for Medical Time Series

16 Dec 2023arXiv:2312.10308archive 2025-07-28

Hyewon Jeong, Nassim Oufattole, Matthew McDermott, Aparna Balagopalan, Bryan Jangeesingh, Marzyeh Ghassemi, Collin Stultz

In clinical practice, one often needs to identify whether a patient is at high risk of adverse outcomes after some key medical event. For example, quantifying the risk of adverse outcomes after an acute cardiovascular event helps healthcare providers identify those patients at the highest risk of poor outcomes; i.e., patients who benefit from invasive therapies that can lower their risk. Assessing the risk of adverse outcomes, however, is challenging due to the complexity, variability, and heterogeneity of longitudinal medical data, especially for individuals suffering from chronic diseases like heart failure. In this paper, we introduce Event-Based Contrastive Learning (EBCL) - a method for learning embeddings of heterogeneous patient data that preserves temporal information before and after key index events. We demonstrate that EBCL can be used to construct models that yield improved performance on important downstream tasks relative to other pretraining methods. We develop and test the method using a cohort of heart failure patients obtained from a large hospital network and the publicly available MIMIC-IV dataset consisting of patients in an intensive care unit at a large tertiary care center. On both cohorts, EBCL pretraining yields models that are performant with respect to a number of downstream tasks, including mortality, hospital readmission, and length of stay. In addition, unsupervised EBCL embeddings effectively cluster heart failure patients into subgroups with distinct outcomes, thereby providing information that helps identify new heart failure phenotypes. The contrastive framework around the index event can be adapted to a wide array of time-series datasets and provides information that can be used to guide personalized care.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2312.10308")

Code

Syntology Ran 8 of 14 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 6 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mit-ccrg/ebcl officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 8 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
6ran
6unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mit-ccrg/ebcl. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

CVE mit-ccrg/ebcl/src/model/ebcl_model.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 69d80d4524739a8a · report
EBCLPretrainOutput mit-ccrg/ebcl/src/model/ebcl_model.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 2111533cca8418e0 · report
FFAttention mit-ccrg/ebcl/src/model/ebcl_model.py official repository ran fingerprinted MIT (permissive) · 9fb5d2d2844f8a56 · report
OutputBase mit-ccrg/ebcl/src/model/ebcl_model.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 11cab82b5016e637 · report
StratsModelConfig mit-ccrg/ebcl/src/model/ebcl_model.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 5aa07e7c9e4e7cdc · report
SupervisedOutput mit-ccrg/ebcl/src/model/ebcl_model.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 47502c05315c780f · report
hydra_dataclass mit-ccrg/ebcl/src/model/ebcl_model.py official repository ran · our draft was wrong MIT (permissive) · 567a16ae6c552b3a · report
sequence_mask mit-ccrg/ebcl/src/model/ebcl_model.py official repository ran · our draft was wrong MIT (permissive) · edd8dd6147b4ded8 · report
Architecture mit-ccrg/ebcl/src/model/ebcl_model.py official repository unverified MIT (permissive) · 2847195cff078ccc · report
Dtype mit-ccrg/ebcl/src/model/ebcl_model.py official repository unverified MIT (permissive) · df0b4dffc58cc48c · report
EBCLModule mit-ccrg/ebcl/src/model/ebcl_model.py official repository unverified MIT (permissive) · abe335dfe4a571a9 · report
SupervisedModule mit-ccrg/ebcl/src/model/ebcl_model.py official repository unverified MIT (permissive) · 55d7852fe9814e49 · report
SupervisedView mit-ccrg/ebcl/src/model/ebcl_model.py official repository unverified MIT (permissive) · bbbc72e4a38d2348 · report
TransformerModel mit-ccrg/ebcl/src/model/ebcl_model.py official repository unverified MIT (permissive) · 55450ad42bd86a07 · report

Tasks

Contrastive LearningDecision MakingRepresentation LearningTime Series

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections