arrow
Return

Evaluating XAI techniques under class imbalance using CPRD data

delete2025-11-18
delete0
delete
OA
AI
T
Teena Rai *
J
Jun He
K
Kaur, Jaspreet
Y
Yuan Shen
M
Mufti Mahmud
D
David J. Brown
E
Emma O’Dowd
D
David Baldwin
DOI:10.3389/frai.2025.1682919delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
IntroductionThe need for eXplainable Artificial Intelligence (XAI) in healthcare is more critical than ever; especially as regulatory frameworks such as the European Union Artificial Intelligence (EU AI) Act mandate transparency in clinical decision support systems. Post hoc XAI techniques such as Local Interpretable Model-Agnostic Explanations (LIME); SHapley Additive exPlanations (SHAP) and Partial Dependence Plots (PDPs) are widely used to interpret Machine Learning (ML) models for disease risk prediction; particularly in tabular Electronic Health Record (EHR) data. However; their reliability under real-world scenarios is not fully understood. Class imbalance is a common challenge in many real-world datasets; but it is rarely accounted for when evaluating the reliability and consistency of XAI techniques.MethodsIn this study; we design a comparative evaluation framework to assess the impact of class imbalance on the consistency of model explanations generated by LIME; SHAP; and PDPs. Using UK primary care data from the Clinical Practice Research Datalink (CPRD); we train three ML models: XGBoost (XGB); Random Forest (RF); and Multi-layer Perceptron (MLP); to predict lung cancer risk and evaluate how interpretability is affected under class imbalance when compared against a balanced dataset. To our knowledge; this is the first study to evaluate explanation consistency under class imbalance across multiple models and interpretation methods using real-world clinical data.ResultsOur main finding is that class imbalance in the training data can significantly affect the reliability and consistency of LIME and SHAP explanations when evaluated against models trained on balanced data. To explain these empirical findings; we also present a theoretical analysis of LIME and SHAP to understand why explanations change under different class distributions. It is also found that PDPs exhibit noticeable variation between models trained on imbalanced and balanced datasets with respect to clinically relevant features for predicting lung cancer risk.DiscussionThese findings highlight a critical vulnerability in current XAI techniques; i.e.; their interpretability are significantly affected under skewed class distributions; which is common in medical data and emphasises the importance of consistent model explanations for trustworthy ML deployment in healthcare.
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

F
Frontiers in Artificial Intelligence
IF:
4.7
Papers:
2.3K
Citations:
4.4K

Organization

U
University of Nottingham
Scholars:
3.4W
Papers: 3.2W
Citations: 5.5W
K
king fahd university of petroleum and minerals
Scholars:
1.9K
Papers: 1.1K
Citations: 0
N
Nottingham Trent University
Scholars:
4.5K
Papers: 4.6K
Citations: 6.6K
researcher View more organizations