Explainable AI for Multi-Class Classification of Doctor–Patient Communication Using Transformer-Based Models

Authors

  • Selvia Ferdiana Kusuma Politeknik Elektronika Negeri Surabaya Author
  • Mohammad Farid Naufal Author
  • Rizal Furqan Ramadhan Author

Keywords:

classification, explainable AI, patient communication, transformer-based model

Abstract

Effective doctor–patient communication plays a critical role in clinical outcomes, yet analyzing and interpreting such communication remains a challenging task. This study presents an explainable artificial intelligence (XAI) approach for the multi-class classification of doctor responses into six categories: Fostering the Relationship (FR), Gathering Information (GI), Providing Information (PI), Decision Making (DM), Enabling Disease- and Treatment-Related Behaviour (EDTRB), and Responding to Emotions (RE). A transformer-based model, specifically IndoBERT, is employed to perform text classification on a labeled dataset of clinical responses. To improve transparency and interpretability, explainable AI techniques such as SHAP and LIME are employed to identify the words that most strongly influence each prediction. Experimental results show that the proposed model achieves strong classification performance on several categories, while the XAI analysis provides meaningful insights into linguistic patterns associated with each communication type. The findings highlight the potential of combining deep learning and XAI to support the analysis of clinical communication, offering both high predictive accuracy and interpretable outputs that can assist healthcare professionals in evaluating and improving patient interaction quality

References

[1] S. Juanita, D. Purwitasari, I. K. E. Purnama, A. F. Abdillah, and M. H. Purnomo, “Multi-Label Classification for Doctor’s Behavioral Pattern Matching During Online Medical Interview using Machine Learning,” International Journal on Electrical Engineering and Informatics, vol. 15, no. 3, pp. 435–452, Sep. 2023, doi: 10.15676/ijeei.2023.15.3.5.

[2] R. N. Hanami, R. Mahendra, and A. F. Wicaksono, “Semantic classification of Indonesian consumer health questions,” J. Biomed. Semantics, vol. 16, no. 1, Dec. 2025, doi: 10.1186/s13326-025-00334-5.

[3] I. A. E. Madi, A. Redjdal, J. Bouaud, and B. Seroussi, “Exploring Explainable AI Techniques for Text Classification in Healthcare: A Scoping Review,” in Studies in Health Technology and Informatics, IOS Press BV, Aug. 2024, pp. 846–850. doi: 10.3233/SHTI240544.

[4] S. Juanita, D. Purwitasari, I. K. E. Purnama, M. Raihan, and M. H. Purnomo, “Multi-Label Classification of Bilingual Doctor Responses in Online Medical Consultations Using Deep Learning,” Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI), vol. 14, no. 2, pp. 432–445, Jul. 2025, doi: 10.23887/janapati.v14i2.96980.

[5] Y. Wang, Y. Wang, Z. Peng, F. Zhang, L. Zhou, and F. Yang, “Medical text classification based on the discriminative pre-training model and prompt-tuning,” Digit. Health, vol. 9, Jan. 2023, doi: 10.1177/20552076231193213.

[6] X. Chen and Y. Du, “Enhancing medical text classification with GAN-based data augmentation and multi-task learning in BERT,” Sci. Rep., vol. 15, no. 1, Dec. 2025, doi: 10.1038/s41598-025-98281-9.

[7] Y. Setiawan and L. A. Wulandhari, “Comparative Analysis of IndoBERT and LSTM for Multi-Label Text Classification of Indonesian Motivation Letter,” Jurnal Online Informatika, vol. 10, no. 2, pp. 260–269, Aug. 2025, doi: 10.15575/join.v10i2.1499.

[8] N. K. Nissa and E. Yulianti, “Multi-label text classification of Indonesian customer reviews using bidirectional encoder representations from transformers language model,” International Journal of Electrical and Computer Engineering, vol. 13, no. 5, pp. 5641–5652, Oct. 2023, doi: 10.11591/ijece.v13i5.pp5641-5652.

[9] H. Ahmadian, T. F. Abidin, H. Riza, and K. Muchtar, “Transformer-Based Indonesian Language Model for Emotion Classification and Sentiment Analysis,” in Proceeding - International Conference on Information Technology and Computing 2023, ICITCOM 2023, Institute of Electrical and Electronics Engineers Inc., 2023, pp. 209–214. doi: 10.1109/ICITCOM60176.2023.10442970.

[10] H. F. Karim and A. P. Wibowo, “BULLETIN OF COMPUTER SCIENCE RESEARCH Kinerja Metode Fine-Tuning IndoBERT untuk Klasifikasi Emosi Multi-Kelas pada Teks Informal Bahasa Indonesia,” Media Online), vol. 6, no. 1, pp. 63–74, 2025, doi: 10.47065/bulletincsr.v6i1.850.

[11] S. S. Band et al., “Application of explainable artificial intelligence in medical health: A systematic review of interpretability methods,” Inform. Med. Unlocked, vol. 40, Jan. 2023, doi: 10.1016/j.imu.2023.101286.

[12] S. Ali et al., “Explainable Artificial Intelligence (XAI): What we know and what is left to attain Trustworthy Artificial Intelligence,” Information Fusion, vol. 99, Nov. 2023, doi: 10.1016/j.inffus.2023.101805.

[13] S. Sharma, M. Singh, L. McDaid, and S. Bhattacharyya, “XAI-based Data Visualization in Multimodal Medical Data,” Jul. 15, 2025. doi: 10.1101/2025.07.11.664302.

[14] K. Zahoor, N. Z. Bawany, and T. Qamar, “Evaluating text classification with explainable artificial intelligence,” IAES International Journal of Artificial Intelligence, vol. 13, no. 1, pp. 278–286, 2024, doi: 10.11591/ijai.v13.i1.pp278-286.

[15] A. M. Ravichandran, J. Grune, N. Feldhus, A. Burchardt, S. Möller, and R. Roller, “XAI for Better Exploitation of Text in Medical Decision Support,” 2024.

[16] K. Kitamura, M. Irvan, and R. Shigetomi Yamaguchi, “XAI for Medicine by ChatGPT Code interpreter,” in ACM International Conference Proceeding Series, Association for Computing Machinery, 2023, pp. 28–34. doi: 10.1145/3633624.3633629.

[17] A. Zevana and D. Riana, “Text Classification Using Indobert Fine-Tuning Modeling With Convolutional Neural Network And BI-LSTM,” Jurnal Teknik Informatika (Jutif), vol. 4, no. 6, pp. 1605–1610, Jan. 2024, doi: 10.52436/1.jutif.2023.4.6.1650.

[18] L. S. Darfiansa, Fitriyani, and S. S. A. Larasati, “Optimizing IndoBERT for Revised Bloom’s Taxonomy Question Classification Using Neural Network Classifier,” Journal of Information Systems Engineering and Business Intelligence, vol. 11, no. 2, pp. 226–237, Jun. 2025, doi: 10.20473/jisebi.11.2.226-237.

[19] O. Ozdemir, “Explainable AI (XAI) in Healthcare: Bridging the Gap between Accuracy and Interpretability,” 2024.

[20] A. Hedström et al., “Quantus: An Explainable AI Toolkit for Responsible Evaluation of Neural Network Explanations and Beyond,” Apr. 2023, [Online]. Available: http://arxiv.org/abs/2202.06861

Downloads

Published

2026-09-30

How to Cite

Explainable AI for Multi-Class Classification of Doctor–Patient Communication Using Transformer-Based Models. (2026). Journal of Data Science Informatics and Computer Engineering, 1(1), 34-40. https://journals.pens.ac.id/jdsice/article/view/53