AToP: An Explainability Framework for Transformer-Based EHR Predictions Using Attribution-Guided Temporal Pattern Mining.
Anas Belouali, Hadi Kharrazi
Key points
From the paper's conclusion- Conclusion: AToP turns a Transformer's attributions into visit-anchored temporal pattern narratives, showing which events, in which order, contribute to its readmission predictions.
Abstract
OBJECTIVE: To develop and evaluate AToP (Attribution to Temporal Patterns), a post-hoc explainability framework that converts per-token Integrated Gradients (IG) from a Transformer into structured temporal pattern narratives. MATERIALS AND METHODS: AToP was applied to a single-stream Transformer trained on MIMIC-IV v3.1 (218,196 patients; 12.6% unplanned 30-day readmission). It mines frequent episodes from salient-token subsequences in the training cohort, aggregates attribution among patients whose records contain each token or pattern, and collapses near-duplicates by patient overlap. Validation used masking, reversed-order analysis, token-level faithfulness tests, and KernelSHAP comparison. RESULTS: The Transformer achieved AUROC 0.77 and PR-AUC 0.34. Population-weighted attribution emphasized high-prevalence codes with small per-patient impact. Carrier-conditional attribution, the mean among patients with the token, surfaced rare high-attribution psychiatric markers including psychosis, self-harm overdose, suicidal ideation (SI), and severe major depressive disorder (MDD). Pattern-level attribution identified within-visit co-occurrences and cross-visit trajectories not captured by token rankings. Risk-increasing patterns included psychiatric sequences ({MDD, SI} → SI) and oncologic progressions (cancer anemia → ascites). Obstetric and chest pain evaluation patterns were associated with lower predicted readmission. DISCUSSION: The framework provides two complementary views of model predictions: carrier-conditional aggregation highlights rare, highly attributed clinical features, while temporal pattern analysis identifies within-visit combinations and cross-visit trajectories missed by token-level rankings. Masking and visit-order reversal provided evidence of correspondence with model behavior, but pattern attributions do not represent unique effects or establish clinical validity. CONCLUSION: AToP turns a Transformer's attributions into visit-anchored temporal pattern narratives, showing which events, in which order, contribute to its readmission predictions.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Sequential pattern transformer (SPT): a generative and interpretable framework for predicting disease trajectoriesNeural Computing and Applications · 2026
- Interpretability-Guided Auditing for Clinical Language Models for Discharge PredictionarXiv · 2026
- Temporal graph transformer for next visit diagnosis prediction on electronic health recordsScientific Reports · 2026
- Explainable Transformer Models for Early Prediction of Chronic Diseases Using Longitudinal Electronic Health Records (EHRs)EAI Endorsed Transactions on AI and Robotics · 2026
- Temporal Island Sparse Autoencoders for Interpreting Clinical Time-Series ModelsarXiv · 2026
- Continuous-Time Transformer with Adaptive Mutation-Locking for Early Prediction of Acute Kidney Injury.IEEE transactions on bio-medical engineering · 2026