Skip to content
Conference

X-FEMR: A Token-level Explainable Approach for Electronic Health Records Foundation Models using Transformer-based Models

Jul 2026 · Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence · Vol abs/2607.06163 · 0 citations · 41 references
Computer Science

TL;DR

This work trains a Transformer-based surrogate model on input-output pairs from the FEMR across two prediction tasks, approximating its behavior while preserving temporal dynamics, and introduces a novel clinical alignment metric that quantifies the correspondence between the surrogate model’s key tokens and clinically validated features.

Abstract

Foundation Models for Electronic Health Records (FEMRs) are pretrained on large-scale structured patient data, enabling them to convert longitudinal patient trajectories into generalizable representations for diverse clinical prediction tasks. Despite their effectiveness, FEMRs remain black-box models, raising concerns about bias, interpretability, and clinical trust. To address this, we propose the first token-level explainability approach for FEMRs. We train a Transformer-based surrogate model on input-output pairs from the FEMR across two prediction tasks, approximating its behavior while preserving temporal dynamics. We identify the most influential tokens, providing insights into how FEMRs leverage different aspects of patient history for predictions. To evaluate clinical relevance, we introduce a novel clinical alignment metric that quantifies the correspondence between the surrogate model’s key tokens and clinically validated features. Our results demonstrate that the surrogate closely approximates FEMR predictions and that token-level explanations align well with clinical knowledge, offering a practical framework for interpretable and trustworthy clinical AI.

View source

Similar papers

Preprint Aug 2026

Explainable Transformer Models for Clinical Prediction Tasks on Structured Electronic Health Records

BERT-LER is presented, a BERT-style model for coded EHR timelines pretrained and fine-tuned from a de-identified EHR dataset of 75 million patients, that encodes laboratory test results as discrete tokens while retaining graded information through percentile-based binning, paired with Integrated Gradients for token-lev...

Jun-Ni Du, Lukas Adamek, Maxim A Kryukov et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Reinforcement Learning over Patient Trajectories for Clinical Reasoning in EHR Foundation Models

This work proposes a reinforcement learning (RL) fine-tuning framework that treats EHR foundation models as generative policies over patient trajectories, and finds that RL fine-tuning consistently improves over pre-trained backbones and strong baselines.

Yu-Xin Xiao, Sheng Zhang, C. Singh et al. · 0 citations
Open access Aug 2026

Grounding Health AI: Architecture and Evaluation of a Domain-Expert Metabolic Health Agent

General-purpose language models generate fluent health reports that can fabricate derived clinical metrics. In an illustrative comparison on identical two-week CGM and meal data, leading foundation models produced reports with invented MAGE values, inflated meal counts, and unreferenced complication-risk projections: f...

A. Diament, G. Sapir, M. Gorodetski et al. · 0 citations
Jul 2026

Pretraining EHR Foundation Models with Patient-Aware Sampling

It is shown that stochastic Patient Sampling with controllable weighting improves performance on real-world EHR data, and training and validation sequence construction are identified as important and underexplored design choices for autoregressive EHR foundation models.

Joshua Placidi, Yuxuan Liu, Jinpei Han et al. · 0 citations
Open access Aug 2026

Can GPT Be Used as an Alternative Prediction Model to Traditional Machine Learning and Neural Networks on Low-Volume Clinical Data?

The proposed GPT2-based table-to-text framework provides a practical and clinically interpretable approach for disease prediction from limited structured healthcare data and demonstrates strong potential for early risk detection, transparent clinical decision support, and reliable deployment in real-world low-resource...

S. Bin Akter, S. Akter, D. Eisenberg et al. · 0 citations
Open access Sep 2026

Rethinking Input Complexity in Transformer-Based Clinical Prediction: Implications for Feature Dimensionality and Sequence Length in Longitudinal EHR Data

Transformer-based prediction models maintained strong performance across reduced feature sets, while dimensionality reduction modestly affected calibration at the highest risk levels, moderate sequence-length reduction substantially reduced computational burden with limited change in overall discrimination.

Wan-Su Chen, Bo-Tao Zhou, R. Zeiger et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.