Explainable Transformer Models for Clinical Outcome Prediction from Unstructured Electronic Health Records

Mesra betty Yel
ST Ilmu Komputer Cipta Karya Informatika, Indonesia
Rodhiyah Rodhiyah
ST Ilmu Komputer Cipta Karya Informatika, Indonesia

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.

betty Yel, M., & Rodhiyah, R. (2026). Explainable Transformer Models for Clinical Outcome Prediction from Unstructured Electronic Health Records. Explainable Artificial Intelligence in Healthcare, 1(2), 116–135. https://doi.org/10.63913/xaih.v1i2.8
Views 9
PDF Downloads 10
Dimensions Citations

Citation data is supplied by Dimensions. New or unindexed publications may not yet have citation metrics.

Downloads

Download data is not yet available.