Explainable Transformer Models for Clinical Outcome Prediction from Unstructured Electronic Health Records
This study presents an Explainable Artificial Intelligence (XAI) framework for predicting clinical outcomes from unstructured clinical notes using transformer-based language models. Leveraging the MIMIC-IV dataset, we fine-tuned domain-specific models, including BioClinicalBERT and Longformer, to predict in-hospital mortality and prolonged length of stay. To ensure interpretability, we evaluated four XAI methods—Attention, LIME, SHAP, and Integrated Gradients—based on faithfulness, stability, and human agreement metrics. The results demonstrate that Longformer achieved the highest predictive performance (AUC = 0.88), while gradient-based explanations, particularly Integrated Gradients, provided the most clinically coherent and trustworthy interpretations. Physician assessments confirmed that these explanations were clear, relevant, and consistent with medical reasoning, reinforcing the clinical reliability of the model. Correlation analysis between XAI importance scores and key clinical terms further validated that the model captured meaningful physiological and prognostic indicators rather than spurious patterns. These findings highlight the potential of explainable transformer-based models to enhance transparency, trust, and accountability in AI-driven clinical decision support systems.
Citation data is supplied by Dimensions. New or unindexed publications may not yet have citation metrics.
- Published 2026-08-31
- Issue Vol. 1 No. 2 (2026): Regular Issue: August 2026
- Section Articles
- DOI https://doi.org/10.63913/xaih.v1i2.8
- Keywords Explainable AI, Clinical NLP, Transformer Models, Electronic Health Records, Clinical Notes, Outcome Prediction, Interpretability
This work is licensed under a Creative Commons Attribution 4.0 International License.
