arXiv:2610.40536cs.CEOct 2026

Manuscript Offprint

arXiv:2610.40536

TRACER, a time-to-event EHR foundation model for disease detection across health systems

Mara Pleasure, Ekaterina Redekop, Vedrana Ivezic, Rushikesh Kulkarni, Aaron Chin, William Speier, Corey W. Arnold

Mara Pleasure ∗1,2,3^{*1,2,3}, Ekaterina Redekop ∗1,2,4^{*1,2,4}, Vedrana Ivezic 1,2,3^{1,2,3}, Rushikesh Kulkarni 1,2^{1,2}, Aaron Chin 5,6^{5,6}, William Speier 1,2^{1,2}, and Corey W. Arnold †1,2,4,7^{\dagger1,2,4,7}

1^{1}Biomedical AI Research Lab, University of California, Los Angeles, Los Angeles, CA, USA

2^{2}Department of Radiology, University of California, Los Angeles, Los Angeles, CA, USA

3^{3}Bioinformatics, University of California, Los Angeles, Los Angeles, CA, USA

4^{4}Department of Bioengineering, University of California, Los Angeles, Los Angeles, CA, USA

5^{5}Department of Pediatrics, Division of Immunology, Allergy and Rheumatology, University of California, Los Angeles, Los Angeles, CA, USA

6^{6}UCLA Health Department of Information Services and Solutions, University of California, Los Angeles, Los Angeles, CA, USA

7^{7}Department of Computational Medicine, University of California, Los Angeles, Los Angeles, CA, USA

∗^{*}These authors contributed equally to this work.

†^{\dagger}Corresponding author: cwarnold@mednet.ucla.edu

Foundation models trained on longitudinal electronic health records (EHRs) can predict clinical diagnoses years in the future, making them a potential tool for disease screening. We developed TRACER (Temporal Risk Assessment with Clinical EHR Representations), a decoder-based foundation model pretrained on data from over 4.5 million patients from four health systems, and evaluated it on 16 incident diseases at 1-, 2-, and 5-year horizons in more than 2 million patients from two health systems excluded from model development. In contrast to typical evaluations that focus on global metrics (e.g., AUROC), we measured performance at the low false-positive rates that are realistic for screening. We found that TRACER retained its discrimination in external health systems, and at 95% specificity, the patients it flagged were up to eight times more likely to be diagnosed within a year than unselected patients. Evaluating at this operating point also revealed what global metrics alone did not: detection and false-alert burden varied across diseases and health systems, even when discrimination appeared stable. Our results illustrate the potential of foundation models for screening and underscore the need for evaluation in health systems excluded from development to assess disease detection and false-alert burden at levels appropriate for intended clinical use.

Introduction

Electronic health records (EHRs) capture longitudinal clinical histories containing signals of disease years before diagnosis [1, 2]. Foundation models pretrained on millions of structured clinical events learn patterns from these histories that can be used to estimate patients' risk of developing disease [3–6]. Common approaches include encoder-only transformers trained to reconstruct hidden clinical codes and decoder-only transformers trained to predict subsequent codes in a patient's sequence [4, 7–13]. Epic's Curiosity illustrates the growing scale of these efforts, using decoder-only transformers pretrained on longitudinal, structured EHR data from Cosmos, a resource that aggregates records from 310 participating health systems [14]. To support screening and early detection, these models must identify future cases while limiting false alerts to a level that clinicians and health systems can manage. In clinical decision support, more frequent and repeated reminders have been associated with alert fatigue, leading to lower clinical acceptance [15], while perceived EHR alert workload has also been associated with physical fatigue and cognitive weariness, two dimensions of clinical burnout [16].

Evaluations of EHR foundation models commonly emphasize global discrimination metrics, such as the area under the receiver operating characteristic curve (AUROC) and the concordance index (C-index), supplemented by measures of calibration or prediction error [3, 5, 12, 17]. Neither measure quantifies how many future cases a model would identify while keeping false alerts manageable nor how often patients flagged as high risk would develop disease. This distinction is especially important for rare outcomes, for which very high specificity might not translate into a high proportion of true cases among patients flagged for review. For example, a retrospective evaluation of 42 case-finding algorithms for 34 rare diseases reported a median specificity of 99.9966%, but a median positive predictive value (PPV) of 3.1% after adjustment [18]. Although some recent studies report sensitivity at high-specificity thresholds [19], these measures have rarely been jointly evaluated across multiple diseases, prediction horizons, and held-out health systems.

Disease detection and false alerts should also be evaluated in health systems excluded from model development, as broad generalization in one clinical setting does not establish clinical usefulness in another [20]. Prognostic systems can lose calibration while maintaining discrimination [21], and differences in patient populations and care practices can cause over- or under-prediction [22]. Recent benchmarks include subpopulation performance and testing across institutions [23–25], but comparisons at clinically relevant false-positive rates remain limited in systems excluded from both pretraining and downstream model development [5, 17, 19]. Existing EHR foundation-model studies have evaluated prediction predominantly with the C-index, AUROC, ranking metrics, and Brier-type calibration scores [3, 6, 10, 11, 13, 17, 23–26]. These metrics summarize ranking across all thresholds and suit comparisons between representations, but they do describe how many future cases a model would identify, or how many patients it would flag, at the false-positive rates a clinical care setting could tolerate. Where operating points have been reported it has been for single diseases [1, 19, 27], and not in health systems excluded from both pretraining and downstream model development. Performance over one year does not establish usefulness over longer horizons, particularly when distinguishing near-term diagnostic assessment from prevention. Comparisons must account for incomplete follow-up rather than assume that patients remain disease-free throughout that horizon, as excluding them or labeling them as event-free can introduce bias [28–30]. Time-to-event (TTE) modeling provides a framework to estimate risk across multiple horizons while accounting for right-censored follow-up [29–31]. MOTOR and SurvivEHR have demonstrated the feasibility of this approach at the scale of EHR foundation models [13, 17, 26]. However, it remains unclear whether models favored by overall survival discrimination also identify future cases at low false-positive rates across prediction horizons.

To address these gaps, we developed TRACER (Temporal Risk Assessment with Clinical

EHR Representations), a decoder-based foundation model for predicting disease risk over time from longitudinal structured EHRs. We pretrained TRACER on more than 4.5 million patients from four University of California health systems. External validation included more than 2 million patients from two health systems excluded from both pretraining and the training of disease-prediction models. Using a time-to-event approach, we evaluated 16 incident disease endpoints—12 chronic diseases and four rare cancers—at 1-, 2-, and 5-year horizons, with the cancers additionally evaluated at 6 months. We performed a detailed evaluation of TRACER, assessing disease detection, PPV, and case yield under specified false-positive constraints across prediction horizons and health systems. For heart failure we additionally quantified patient-selection rates alongside disease detection, using published cardiac screening to contextualize potential review requirements [32]. Finally, to investigate the impact of different model architectures, we implemented an encoder-based version of the model and compared its performance with TRACER's under matched pretraining data and model scale.

References (42)