Customer Segmentation and Purchase Prediction Using Explainable AI
Tsion Melkamu Abay, Melkamu Abay Mersha
Customer segmentation can reveal differences in observed purchasing behavior without necessarily improving individual-level prediction. We investigate this distinction using a single simulated cohort of 10,000 customer records generated from fitted class-conditional Gaussian mixtures. Four classifiers are evaluated with original predictors, cluster memberships, centroid distances and matched random-anchor distances. Five stratified folds each contain 8,000 training and 2,000 test observations; nested training subsets assess sample-size sensitivity without changing the test partition. Random forest achieves mean AUROC of 0.8500 with original predictors, 0.8528 with centroid distances and 0.8530 with random-anchor distances. Its original-feature AUROC increases from 0.8264 to 0.8500 across the training-size sweep. Three-means yields the highest sampled silhouette (0.5034), while DBSCAN exhibits pronounced sensitivity to neighborhood parameters. Exact finite-background SHAP and a weighted mask-based local surrogate reveal model-specific reliance on spending and purchase history. These findings distinguish descriptive cluster quality from predictive utility and demonstrate the…