If you re-run customer segmentation every month, how would you keep segments stable and comparable over time?
Last updated
Treat segmentation as a versioned model: persist the fitted scaler + model pipeline and
predictnew data, so segment movement reflects customer change rather than random init or label permutation.When re-fitting, anchor to the old solution: warm-start k-means with previous centroids, match clusters via the Hungarian algorithm (
linear_sum_assignment), and name segments by business profile, not integer IDs.Monitor stability with Adjusted Rand Index, segment sizes, centroid shift and transition matrices. Re-fit on a schedule or drift threshold and backfill history so trends stay comparable.