Interpretable Medical Dialogue Analysis Using Transformer-Based Explainable NLP Models

Felinda Aprilia Rahma
Master’s Program in Teacher Education, School of Postgraduate Studies, Universitas Pendidikan Indonesia, Bandung, Indonesia
Li Qingmei
Master’s Program in Teacher Education, School of Postgraduate Studies, Universitas Pendidikan Indonesia, Bandung, Indonesia

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.

Aprilia Rahma, F., & Qingmei, L. (2026). Interpretable Medical Dialogue Analysis Using Transformer-Based Explainable NLP Models. Explainable Artificial Intelligence in Healthcare, 1(2), 136–152. https://doi.org/10.63913/xaih.v1i2.9
Views 4
PDF Downloads 6
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.