Integrating chain of thought and explainable AI in BERT-based deep learning for interpretable medical diagnosis

The lack of transparency in Artificial Intelligence (AI) systems raises serious concerns in the medical field, where AI models are often perceived by healthcare practitioners as systems that are difficult to interpret. This study aims to evaluate the integration of the Chain of Thought (CoT) approach and Explainable AI (XAI) within a text-based deep learning model to enhance the interpretability of medical diagnoses. The model was developed using the "prajjwal1/bert-medium" Transformer architecture and designed to classify diagnoses based on patient complaints and electronic medical record entries. Model training employed FocalSmoothingLoss as the loss function, AdamW optimization, and learning rate adjustment through the ReduceLROnPlateau algorithm. The CoT implementation involved constructing step-by-step reasoning logs that mimic human clinical thinking processes, while XAI methods such as attention visualization, LIME, and SHAP were applied to interpret the contribution of each input feature to the final prediction. Analysis results demonstrate that the model can systematically explain symptom detection, semantic analysis, and the final diagnostic decision-making process. The consistency between CoT reasoning, attention distribution, and LIME and SHAP visualizations further reinforces the validity of the generated interpretations. The model achieved a macro accuracy of 82%, with reasoning outputs that can be clinically audited by medical professionals. This study contributes to enhancing user trust in medical AI systems by providing a strong interpretative framework. The integration of CoT and XAI not only clarifies the prediction process but also promotes the development of text-based diagnostic systems that are more accountable, adaptive, and ethical for real-world clinical practice.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2025-01-01
DOI
https://doi.org/10.1016/j.procs.2025.08.291
Primary Topic
Explainable Artificial Intelligence (XAI)
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Integrating chain of thought and explainable AI in BERT-based deep learning for interpretable medical diagnosis

Faisal Binsar, Sasmoko Sasmoko
Procedia Computer Science
Explainable Artificial Intelligence (XAI)
article

Integrating chain of thought and explainable AI in BERT-based deep learning for interpretable medical diagnosis

Faisal Binsar, Sasmoko Sasmoko
article en

Abstract

The lack of transparency in Artificial Intelligence (AI) systems raises serious concerns in the medical field, where AI models are often perceived by healthcare practitioners as systems that are difficult to interpret. This study aims to evaluate the integration of the Chain of Thought (CoT) approach and Explainable AI (XAI) within a text-based deep learning model to enhance the interpretability of medical diagnoses. The model was developed using the "prajjwal1/bert-medium" Transformer architecture and designed to classify diagnoses based on patient complaints and electronic medical record entries. Model training employed FocalSmoothingLoss as the loss function, AdamW optimization, and learning rate adjustment through the ReduceLROnPlateau algorithm. The CoT implementation involved constructing step-by-step reasoning logs that mimic human clinical thinking processes, while XAI methods such as attention visualization, LIME, and SHAP were applied to interpret the contribution of each input feature to the final prediction. Analysis results demonstrate that the model can systematically explain symptom detection, semantic analysis, and the final diagnostic decision-making process. The consistency between CoT reasoning, attention distribution, and LIME and SHAP visualizations further reinforces the validity of the generated interpretations. The model achieved a macro accuracy of 82%, with reasoning outputs that can be clinically audited by medical professionals. This study contributes to enhancing user trust in medical AI systems by providing a strong interpretative framework. The integration of CoT and XAI not only clarifies the prediction process but also promotes the development of text-based diagnostic systems that are more accountable, adaptive, and ethical for real-world clinical practice.

Procedia Computer ScienceVol. 269
Binus University (ID), Universitas Muhammadiyah Jember (ID)
Openalex Percentile: Top 83%
Explainable Artificial Intelligence (XAI)
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Integrating chain of thought and explainable AI in BERT-based deep learning for interpretable medical diagnosis — Faisal Binsar, Sasmoko Sasmoko · Procedia Computer Science (2025) | TGRS Research Map | TGRS