EHRMENEIA: a benchmark result is a domain, not a score
Foundation models trained on longitudinal electronic health records (EHRs) can encode patient histories, forecast clinical events and generate possible future trajectories. But a methodological question remains: what evidence do their outputs actually provide about clinical learning?
B2SLab researchers Joana Gelabert-Xirinachs, Sergio Gosálvez, Blanca Alaejos-Pardo, Jordi Fonollosa and Alexandre Perera-Lluna address this question in a new bioRxiv preprint. They introduce EHRMENEIA, an open, model-independent benchmark for longitudinal EHR foundation models, together with a public evaluation platform and reference implementation.
EHRMENEIA evaluates native forecasting, multi-horizon event occurrence, population-level trajectory fidelity and few-shot representation transfer within a shared clinical concept space. Its central principle is deliberately different from a conventional leaderboard: before interpreting a score, identify the clinical questions that the model–dataset interface can validly answer. In other words, EHRMENEIA makes evaluability itself an explicit and measurable property of model evaluation.
The problem is not only that models receive different scores
Longitudinal EHR models do not all see—or produce—the same mathematical objects. One model may encode diagnoses, medications and laboratory tests with age embeddings; another may use time-interval tokens; another may represent only diagnoses. Their native clinical vocabularies, levels of granularity and temporal conventions can all differ.
These differences make direct comparison deceptively difficult. If two systems receive a macro-averaged AUROC, do those numbers refer to the same clinical outcomes? Were both evaluated with the same follow-up and outcome definitions? Can both generate timed futures? Do their evaluation cohorts contain enough positive and negative outcomes to estimate the metric?
EHRMENEIA separates two spaces that are often conflated:
- the model-native space, where each system retains its architecture, vocabulary, tokenization and representation of time; and
- the shared clinical evaluation space, where eligible outputs are mapped—only when the mapping is unambiguous—to common clinical concepts with interpretable times and optional attributes.
The benchmark therefore standardizes the evidence exposed for evaluation, not the model itself. Its name reflects this purpose: EHRMENEIA derives from the Greek hermēneia, meaning interpretation or explanation, and evokes the relationship between clinical phenomena and the signs through which they become intelligible.
Three dimensions, four complementary tests
The four levels are not steps towards an aggregate score. They interrogate different properties of longitudinal model behaviour.
| Dimension | Level | Clinical evaluation question | Protocol and primary outputs |
|---|---|---|---|
| Predictive competence | 1 · Next-event prediction | Can the model forecast the next recorded clinical concept from a patient history? | At most 20 distinct targets per patient, stratified over time. Top-5 and Top-10 accuracy, macro-AUROC and macro-averaged average precision (AP), with a patient-history frequency reference. |
| Clinical and population fidelity | 2 · Temporal clinical fidelity | Does the generated autoregressive distribution reproduce event occurrence over future windows? | Monte Carlo futures at index ages 30, 50 and 80, evaluated over 30, 90, 180 and 365 days. Macro-AUROC, macro-AP and macro-Brier score, with a marginal-prevalence reference. |
| Clinical and population fidelity | 3 · Population-scale fidelity | Do complete generated trajectories preserve population outcomes and local sequential structure? | Five-year generated and observed trajectories. Integrated survival and cumulative-incidence errors, plus transition Jensen–Shannon divergence (JSD), with observed–observed split-half references where computable. |
| Representation transferability | 4 · Few-shot adaptation | Is information acquired during pretraining accessible for new clinical tasks under limited supervision? | A frozen pretrained backbone and a newly fitted linear head. For each task, \(K\) positive and \(K\) negative support examples are drawn for \(K=8,16,32,64,128\), with 20 draws. AUROC and AP are reported as functions of \(K\). |
Several design choices matter clinically. A negative future-window outcome requires sufficient follow-up; incomplete observation is not treated as evidence that an event did not occur. Level 3 treats death as a competing event for disease incidence and does not interpret trajectory termination without a death event as mortality. Level 4 retains settings as not estimable when class support is insufficient rather than assigning a misleading numerical result.
A benchmark result is a region, not a point
EHRMENEIA formalizes this perspective using a prespecified space of clinical evaluation questions, \(\mathcal{Q}\). For a model–dataset implementation \(M\), the benchmark first identifies the evaluable subset \(\mathcal{D}_M \subseteq \mathcal{Q}\), and only then estimates a metric field \(\mathcal{F}_M : \mathcal{D}_M \rightarrow \mathcal{Y}\).
This makes coverage, empirical support and non-estimability part of the result. A model without a validated timed-generation interface cannot support the same trajectory-fidelity claims as one with that interface. A diagnosis-only demonstration cannot support laboratory forecasting. Missing mortality observations prevent clinically valid survival and competing-risk incidence evaluation even if a numerical summary can be forced through the code. These are boundaries on interpretation, not zero scores to be entered into a ranking.
What the first applications show
The preprint applies EHRMENEIA to four deliberately heterogeneous implementations:
- CLMBR-T on EHRSHOT and ETHOS on MIMIC-IV 2.2, using released clinical checkpoints;
- Delphi and CEHR-GPT, as locally trained synthetic implementation demonstrations—not clinical validation studies.
Across their implementation-specific evaluation cohorts, the study processed 359,037 next-event prediction points from 33,098 patients, 2,151,600 generated futures and 2,320 frozen-backbone adaptation heads. The shared concept space contained 13,218 concepts: 12,217 diagnoses, 936 medication classes and 65 laboratory concepts.
The results illustrate why the evaluation domain must accompany the metrics.
A shared metric need not represent a shared clinical estimand. In Level 1, macro-AUROC and macro-AP were computed over 1,400 concepts for CLMBR-T, 1,697 for ETHOS, 829 for Delphi and 89 for CEHR-GPT. The evaluation scope therefore ranged from 89 to 1,697 concepts—a nearly twentyfold difference underlying ostensibly comparable performance metrics. Those panels are not interchangeable. Moreover, model ordering changed between macro-AUROC, Top-5 and Top-10 accuracy: concept-level discrimination and within-query ranking capture different properties.
Discrimination and probability prediction error can tell different stories. In Level 2, ETHOS achieved higher macro-AUROC and macro-AP than the marginal-prevalence reference in all 12 evaluable age–horizon settings, while the reference consistently produced lower macro-Brier scores. Neither observation alone adequately summarizes the generated-future probabilities; the Brier score also reflects probability error and does not isolate calibration.
Marginal agreement does not guarantee sequential fidelity. Level 3 separately evaluates survival, disease incidence and transitions between consecutive clinical events. For ETHOS, an integrated survival error of 0.0015 at index age 30 coexisted with transition JSD values of 0.38–0.49 across the three index ages: close agreement in marginal survival did not imply equally accurate local sequential structure. At index age 50, ETHOS had a transition JSD of 0.431, compared with an observed–observed split-half median of 0.164. For the Delphi synthetic demonstration, the corresponding values were 0.727 and 0.882. The observed–observed comparisons reveal how much two disjoint groups of real patients can differ under the same metric. They provide essential context, but are neither confidence intervals nor universal fidelity thresholds.
Transfer depends on the task and its empirical support. ETHOS showed gains with increasing supervision for several outcomes, including HbA1c-to-diabetes, kidney disease and cardiovascular prediction. CLMBR-T showed task-dependent improvements, while several synthetic-demonstration settings remained close to chance or were not estimable. A model may expose representations and still have too few eligible outcomes for a particular task–\(K\) combination.
Open evaluation without centralizing patient-level data
EHRMENEIA is designed for decentralized evaluation. Model execution and scoring take place in the developer’s local environment. The repository validates inputs, computes the selected levels and assembles a portable results package containing aggregate metrics, support information, metadata and, when applicable, mapping and population-curve aggregates.
Patient-level records, individual predictions, learned representations, generated trajectories and model checkpoints are not included in the submission package. An administrator reviews the package before results become public on the benchmark website.
The released repository also preserves source-only adapters for CLMBR-T, Delphi, CEHR-GPT and ETHOS. Bundled synthetic examples allow researchers to explore and scrutinize the evaluation workflow without access to restricted clinical data. The repository contains no source datasets or checkpoints: EHRSHOT, MIMIC-IV and the synthetic source data remain subject to their original providers’ access procedures. No new patient-level clinical dataset is created or redistributed by EHRMENEIA.
For a new evaluation, the workflow is:
- Run the model locally using its native vocabulary, time representation and generation procedure.
- Export the supported evaluation objects to the documented Parquet schemas, with metadata describing the model, cohort, mapping, pretraining separation and evaluation choices.
- Validate and compute only the supported levels. The reference configuration uses 100 generated futures per Level 2–3 case and a common, frozen-backbone Level 4 adaptation protocol.
- Prepare the aggregate ZIP for review following the documented submission workflow. At the time of writing, the website lists its online review form as forthcoming.
EHRMENEIA software is released under Apache-2.0. Original benchmark resources are released under CC BY 4.0, subject to third-party clinical terminology restrictions.
Why this matters
EHRMENEIA operationalizes recent methodological arguments that biomedical foundation-model benchmarks must define not only metrics, but also the questions, limitations and forms of evidence they intend to probe (Saez-Rodriguez et al., Nature Methods, 2026). Although the framework is instantiated in longitudinal EHRs, the underlying problem extends to other biomedical domains: meaningful comparison becomes difficult whenever models differ in their representations, output spaces and supported scientific questions, as in emerging foundation models for single-cell biology, pathology and molecular science.
The immediate contribution is a reusable benchmark. The broader contribution is a way to reason about evaluation claims. Longitudinal EHRs are not direct observations of underlying health: they are shaped by clinical practice, coding, measurement frequency, access to care and institutional workflows. A score estimated from those records cannot be interpreted independently of that observational process.
The current validation also has clear boundaries. Only two applications use released clinical checkpoints; Delphi and CEHR-GPT are synthetic demonstrations. The four levels and initial transfer-task catalogue are an operational map, not a definitive ontology of foundation-model capabilities. Additional checkpoints, institutions, datasets and clinically defined tasks are needed.
That is precisely why the open platform matters. EHRMENEIA allows the community to inspect not just how a model scored, but where a claim is supported, where comparison is only partial, and where no valid estimate can be made. For B2SLab, it connects the development of foundation models for chronic disease and emergency medicine with the open evaluation infrastructure needed to assess them responsibly.
EHRMENEIA project page Benchmark website Open repository
Reference: Gelabert-Xirinachs J, Gosálvez S, Alaejos-Pardo B, Fonollosa J, Perera-Lluna A. EHRMENEIA: A Benchmark for Foundation Models on Longitudinal Electronic Health Records. bioRxiv (2026), version 1 posted 27 November 2026. https://doi.org/10.64898/2026.11.27.769542. Preprint; not certified by peer review.