Fig. 6

SHAP Analysis of Feature Importance. (A) SHAP Value Distribution: This plot illustrates the SHAP values for individual predictions of the XGBoost model, showcasing the impact of each feature on the output. Each dot represents a SHAP value for a feature in a specific prediction. Red dots indicate high feature values, while blue dots represent low feature values. (B) Mean SHAP Values: This bar chart displays the average SHAP values for each feature, highlighting their overall contribution to the model’s predictions. Higher mean SHAP values indicate greater importance in predicting PTB risk.