A graph-based approach to customer segmentation using the RFM model
André Luiz Corrêa Vianna Filho, Leonardo de Lima, Mariana Kleina
TL;DR
The paper addresses customer segmentation by leveraging RFM scores within a max-$k$-cut formulation on a graph whose vertices represent customers and whose edge weights are the Manhattan distances between $(R,F,M)$-scores. A reduced graph $G'$ is constructed by merging identical $(R,F,M)$-scores, yielding at most $n' \le T^3$ vertices (with $T=5$, $n' \le 125$), and the authors prove that the optimal objective value of the original problem equals that of the reduced problem, enabling exact solution transfer via a mapping procedure. The method is validated on the Online Retail II dataset, showing that solving on $G'$ is feasible for large $n$ and that the resulting clusterings (notably $k=2$ and $k=4$) yield meaningful business insights, with $k=4$ offering richer segmentation from a practical perspective. This work demonstrates how graph reduction coupled with a max-$k$-cut formulation can scale exact segmentation to thousands of customers while preserving optimality, providing actionable customer groups for targeted marketing.
Abstract
The present article proposes a graph-based approach to customer segmentation, combining the RFM analysis with the classical optimization max-$k$-cut problem. We consider each customer as a vertex of a weighted graph, and the edge weights are given by the distances between the vectors corresponding to the $(R,F,M)$-scores of the customers. We design a procedure to build a reduced graph with fewer vertices and edges, and the customer segmentation is obtained by solving the max-$k$-cut for this reduced graph. We prove that the optimal objective function values of the original and the reduced problems are equal. Additionally, we show that an optimal solution to the original problem can be easily obtained from an optimal solution to the reduced problem, which provides an advantage in dealing with computational complexity in large instances. Applying our methodology to a real customer dataset allowed us to identify distinct behaviors between groups and analyze their meaning and value from a business perspective.
