Interpretable Medical Dialogue Analysis Using Transformer-Based Explainable NLP Models
This study investigates the integration of Explainable Artificial Intelligence (XAI) into transformer-based Natural Language Processing (NLP) models for medical dialogue analysis. Using the MedDialog and MediTOD datasets, we evaluate intent detection and slot filling tasks with BERT, BioBERT, and ClinicalBERT architectures, enhanced by explainability methods including Attention Visualization, SHAP, and Integrated Gradients. Experimental results show that BioBERT combined with Integrated Gradients achieves the best balance between accuracy and interpretability, maintaining high predictive performance while providing faithful, clinically meaningful explanations. Quantitative faithfulness metrics and human expert evaluations confirm that gradient-based approaches offer the most reliable and trustworthy explanations, aligning closely with clinical reasoning. Qualitative and correlation analyses further demonstrate that improved explainability directly enhances medical experts’ trust and understanding of model behavior. These findings highlight explainable NLP as a promising pathway toward transparent, accountable, and trustworthy AI systems for medical dialogue understanding and decision support.
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.9
- Keywords Explainable AI, Medical Dialogue, Transformer Models, BioBERT, Integrated Gradients, Clinical NLP, Interpretability, Trustworthiness

This work is licensed under a Creative Commons Attribution 4.0 International License.
This work is licensed under a Creative Commons Attribution 4.0 International License.
