Breast cancer prediction modeling based on SHAP interpretability analysis and XGBoost algorithm
Xiuliang Guan, Jiaxue Cui, Lan Bai, Xiaodan Bi, Yixuan Liu, Chong Ren, Zitong Wang, Li Shen
Dalian University of Technology · Dalian Medical University
Key points
From the paper's conclusion- This study aimed to predict breast cancer and identify associated risk factors by comparing the performance of the Extreme Gradient Boosting (XGBoost) model with four conventional machine learning models, followed by SHapley Additive exPlanations (SHAP) analysis to explain model predictions.
Abstract
This study aimed to predict breast cancer and identify associated risk factors by comparing the performance of the Extreme Gradient Boosting (XGBoost) model with four conventional machine learning models, followed by SHapley Additive exPlanations (SHAP) analysis to explain model predictions. Breast tumor datasets were retrieved from the University of California, Irvine (UCI) Machine Learning Repository. Feature selection was performed using heatmaps of correlation coefficient matrix to eliminate redundant and highly correlated variables. Five machine learning models, namely Extreme Gradient Boosting (XGBoost), Random Forest, K-Nearest Neighbors (KNN), Decision Tree, and Support Vector Machine (SVM), were comprehensively compared in terms of precision, recall, F1-score, training time, and classification accuracy. ROC curves were generated for all evaluated models, and the DeLong test was used to statistically compare the corresponding AUC values. Five-fold cross-validation was performed to assess the robustness of classification accuracy across models. Meanwhile, McNemar’s test was adopted for pairwise accuracy comparisons to further evaluate the predictive performance of models. Furthermore, SHAP analysis was employed to interpret model outputs, which enabled the identification of key predictive features associated with breast cancer pathogenesis and their interactive effects. As indicated by the confusion matrix results, XGBoost model achieved the highest accuracy at 97.3%, whereas the RF, KNN, SVM, and DT models achieved accuracies of 95.6%, 94.7%, 92.1%, and 89.5%, respectively. ROC curve analysis demonstrated that the XGBoost model yielded the highest AUC value of 0.97, whereas the AUC values for the RF, KNN, DT, and SVM models were 0.96, 0.94, 0.93, and 0.90, respectively. SHAP analysis further revealed that radius-worst, concave points-worst, and concavity-worst served as the key predictive factors associated with high risk of breast cancer. Notably, a significant interactive correlation was observed between radius-worst and concave points-worst features. Both XGBoost and RF demonstrated favorable predictive performance in the diagnosis of breast cancer. Specifically, the XGBoost model achieved superior numerical results in terms of precision, recall, F1-score and training time. Nevertheless, no statistically significant difference was observed in the overall performance between the two models. Radius-worst was identified as a pivotal feature associated with breast cancer occurrence, and a notable interactive effect was detected between radius-worst and concave points-worst.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Explainable Machine Learning for Breast Cancer Classification and Prognosis Using SHAP-Based Iterative Feature ReductionSensors · 2026
- Optimizing breast cancer prediction through stacking ensemble machine learning models: a comparative analysisJournal of Electrical Systems and Information Technology · 2026
- Explainable machine learning for breast cancer prediction in resource-constrained settings: A multi-algorithmic framework integrating shap-based transparency with clinical decision support.PLOS digital health · 2026
- Exploring prognostic factors in breast cancer: development and selection of optimal machine learning models.Frontiers in oncology · 2026
- Explainable breast cancer classification using machine learning deep learning and transfer learning across multiple data modalitiesDiscover Computing · 2026
- Explainable AI for Predicting Mortality Risk in Metastatic Cancer: Retrospective Cohort Study Using the Memorial Sloan Kettering-Metastatic DatasetJMIR Cancer · 2025