A prompt framework for enhancing LLM-based explainability of medical machine learning models: an intensive care unit application
Explainable AI (XAI) techniques like SHAP provide valuable insights into machine learning model predictions by quantifying feature contributions. However, interpreting these quantitative outputs remains unintuitive for many clinicians, hindering their practical adoption in clinical decision-making. This exploratory feasibility study aims to propose and evaluate a prompting framework designed to guide large language models (LLMs) in generating consistent, clinically relevant explanations from SHAP values. We developed a structured zero-shot prompting framework incorporating variable definitions, safety principles, and a three-step reasoning process; (1) key risk factors, (2) prediction-outcome reconciliation, (3) clinical recommendations. This framework guided GPT-4 to explain SHAP-based predictions from an ICU extubation failure model (trained on MIMIC-III data). The framework’s performance was assessed using quantitative consistency metrics (entropy, accuracy) and a qualitative clinician survey (n = 7). The LLM achieved a fidelity of 0.783 and entropy of 0.226, indicating consistent structured reasoning. On a 5-point Likert scale, clinicians rated the LLM-generated explanations as helpful (mean: 3.94 ± 0.48) and safe (4.21 ± 0.68). However, critical care specialists assigned lower scores than non-critical care physicians (helpfulness: 3.48 vs. 4.29; safety: 3.45 vs. 4.79), suggesting domain-specific caution in perceived utility. A structured prompting framework shows feasibility in leveraging LLMs to enhance the clinical interpretability of SHAP explanations. This methodological approach warrants further investigation and refinement for broader clinical application.
Authors
- Jungyo Suh (ORCID: https://orcid.org/0000-0002-3867-4778)
- Kyeng Hyun Nam (ORCID: https://orcid.org/0000-0003-1372-3956)
- Youngrong Lee (ORCID: https://orcid.org/0000-0003-1367-4381)
- Taehoon Ko (ORCID: https://orcid.org/0000-0002-4045-0036)
- Duck Ju Kim
- Sang Min Lee (ORCID: https://orcid.org/0000-0002-2173-2193)
- Won Ik Cho (ORCID: https://orcid.org/0000-0002-8882-9125)
- Sujung Lee (ORCID: https://orcid.org/0000-0001-6151-2497)
Institutions
- Ulsan College (KR)
- Catholic Medical Center (US)
- Seoul National University (KR)
- Asan Medical Center (KR)
- University of Ulsan (KR)
- Seoul Medical Center (KR)
- Jeju National University Hospital (KR)
- Jeju National University (KR)
- Catholic University of Korea (KR)
Publication Details
- Journal
- BMC Medical Informatics and Decision Making
- Published
- 2025-11-26
- DOI
- https://doi.org/10.1186/s12911-025-03239-6
- Primary Topic
- Explainable Artificial Intelligence (XAI)
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Seoul National University
- Soonchunhyang University
- Catholic University of Korea
- Korea Health Industry Development Institute
- Seoul National University Hospital