Skip to content
Preprint

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

Aug 2026 · 0 citations · 52 references
Computer Science

TL;DR

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-level attributions grounded in the input EHR sequence.

Abstract

Predictive models over structured electronic health records (EHRs) remain central to machine learning for healthcare, but few have jointly emphasized quantitative laboratory information and interpretability with respect to input medical events. We present BERT-LER, 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-level attributions grounded in the input EHR sequence. We benchmark our approach on the public EHRShot benchmark suite and on an asthma severity progression study based on real-world data. This addresses a methodological gap in EHR foundation-style modeling by unifying laboratory value representation and explainability in a single framework, while assessing whether both predictive performance and explanations generalize beyond standard clinical prediction tasks. Across EHRShot and asthma tasks, BERT-LER achieves predictive performance that is competitive with, and on laboratory-related tasks often exceeds, publicly available benchmark models, and provides attributions that align with clinically known risk factors. Our architecture and explainability approach can be applied to many therapeutic areas and prediction tasks using language models trained on structured EHRs.

View source

Similar papers

Conference Jul 2026

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

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...

Jie Huang, Peng Yin, Zihan Xu et al. · 0 citations
Book Open access Aug 2026

OneEHR: Reproducible and AI Agent-Ready Longitudinal EHR Analysis Toolkit

This tutorial presents OneEHR, an open-source toolkit that defines a unified experiment contract for modern EHR modeling and enables head-to-head comparison among conventional, neural, LLM-based, and agentic methods through a single configuration-driven interface.

Yinghao Zhu, Zixiang Wang, Lei Gu et al. · 0 citations
Open access Jul 2026

An explainable transformer model learning from entire treatment timelines for pan-cancer risk profiling across healthcare systems

Chronicle is introduced, an explainable transformer that learns from entire patient trajectories, predicts diverse clinical outcomes throughout the disease course while capturing both short- and long-term temporal dependencies, providing a scalable framework to support individualized treatment decisions.

P. Keyl, N. Kiermeyer, J. Bosserhoff et al. · 0 citations
Aug 2026

GuardMLLM: Overconfidence-Aware Dynamic Fusion for Early Outcome Prediction.

Experimental results show that the proposed GuardMLLM improves performance on tasks such as predicting patient mortality and ICU length of stay, and effectively alleviates overconfidence in LLM.

Gang Fu, Xiao-Long Xu, Hao-Long Xiang et al. · 0 citations
Jul 2026

Large Language Models as Unified Multimodal Learners for Clinical Prediction

Results indicate that a single serialization-based paradigm, without bespoke fusion architectures, is sufficient for multimodal clinical prediction - substantially reducing system complexity while matching or exceeding specialized designs.

A. Ravichandran, Bilgin Osmandoja, Klemens Budde 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.