An Explainable AI Framework for Medical Entity Extraction and Patient Summarization Using Transformer Models
This study presents an Explainable Artificial Intelligence (XAI) framework for medical natural language processing tasks, focusing on entity extraction and patient summarization using transformer-based models. The framework combines BioBERT for Named Entity Recognition and LongformerEncoderDecoder for clinical text summarization, both evaluated on the PMC-Patients dataset. To enhance interpretability, three XAI techniques, namely Attention Rollout, LIME, and SHAP, were applied to generate transparent explanations of model predictions. The experimental results show that BioBERT achieved an average F1-score of 0.86 for entity extraction, while LongformerEncoderDecoder obtained a ROUGE-L score of 44.7 for summarization. Among the interpretability methods, SHAP produced the most faithful and comprehensible explanations, as confirmed by both quantitative evaluation and expert assessment. The findings demonstrate that the proposed framework effectively balances accuracy and interpretability, providing a reliable foundation for the integration of explainable NLP systems in clinical environments.
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.10
- Keywords Explainable Artificial Intelligence, Medical NLP, Transformer Models, Entity Extraction, Clinical Summarization, SHAP, Interpretability, BioBERT, Longformer
This work is licensed under a Creative Commons Attribution 4.0 International License.
