Machine Learning in Healthcare Open access

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

Jie Huang, Pengfei Yin, Zhewei Xu, Daniel Capurro and 2 more

arXiv (Cornell University) | Jul 7, 2026

Abstract

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.

Direct answer

What can I do from this paper page?

Use this page to scan "X-FEMR: A Token-level Explainable Approach for Electronic Health Records Foundation Models using Transformer-based Models" quickly: start with the summary and abstract, then check the authors, source, topics, and related papers. From here, open Scollr to follow Machine Learning in Healthcare research, save the paper, or map adjacent work.

Authors

Researchers on this paper

Jie Huang

first

Pengfei Yin

middle

Zhewei Xu

middle | ORCID 0000-0003-4718-6175

Daniel Capurro

middle | ORCID 0000-0002-9256-1256

Mike Conway

middle

Ting Dang

last

Research areas

Follow related topics

Citation

BibTeX

@article{Huang2026FEMR,
  title = {X-FEMR: A Token-level Explainable Approach for Electronic Health Records Foundation Models using Transformer-based Models},
  author = {Jie Huang and Pengfei Yin and Zhewei Xu and Daniel Capurro and Mike Conway and Ting Dang},
  journal = {arXiv (Cornell University)},
  year = {2026},
  doi = {10.48550/arxiv.2607.06163},
  url = {https://doi.org/10.48550/arxiv.2607.06163}
}

FAQ

Using this paper in a discovery workflow

How do I find related work for this paper?

Use the related papers and topic links on this page as starting points. In Scollr, you can also open the paper and build a literature map around its references, citing papers, and related work.

How can I keep up with new Machine Learning in Healthcare research papers?

Follow Machine Learning in Healthcare research in Scollr. New papers from the topic flow into a personalized feed, and you can save useful studies to revisit later.

Can I cite this paper from this page?

This page includes a static BibTeX block for X-FEMR: A Token-level Explainable Approach for Electronic Health Records Foundation Models using Transformer-based Models. Always verify the DOI, source, and publication details against the publisher record before submitting a manuscript.

Follow this research in Scollr

Follow the topics and authors behind this paper, save useful studies, and build a literature map when you are ready to go deeper.

Get the app