Introduction
Predicting customer purchase intensity—the exact quantity a consumer will buy—is a critical challenge for retail optimization. However, individual behavior is inherently noisy and volatile. While standard time-series models struggle with this randomness, grouping customers into behavioral clusters can provide a more stable signal. Previous attempts using the Fragmentation and Coagulation Process (FCP) were limited by their retrospective nature; they could describe past group dynamics but lacked the predictive mechanism needed for forecasting.
The FCP Filter Framework
The FCP Filter addresses these limitations by creating a closed-loop system that integrates dynamic clustering with predictive modeling. The framework consists of three pillars:
1. Dynamic Customer Segmentation
Unlike static methods like K-means, the FCP allows for a fluid number of clusters that can evolve over time. Customers are not locked into a single segment; instead, groups can split (fragmentation) or merge (coagulation) as their purchasing habits shift.
2. Probabilistic Modeling and Feedback
The framework utilizes a hierarchical Bayesian approach. As shown in the graphical model below, the partition $\pi_t$ at time $t$ influences the observed purchase data $x_{it}$ through latent intensity parameters $\lambda$.
A key innovation is the feedback loop: the predicted purchase intensity for the next time step is used to update the $\alpha$ hyperparameter (the shape parameter of the Gamma distribution) via Maximum Likelihood Estimation. This "dynamic prior" allows the model to adapt its clustering criteria based on expected future trends.
3. Intensity Tracking
To maintain continuity across changing group memberships, the model employs a "backward tracking" rule. It identifies the most similar group from the previous time step to construct a continuous trajectory, which is then fed into a model-agnostic predictor (e.g., Linear Regression or LSTM).
Performance and Key Insights
The FCP Filter treats clusters as "low-pass filters," where individual noise cancels out to reveal underlying behavioral signals. This approach was validated on both synthetic and real-world datasets:
- Synthetic Data: The FCP Filter reduced the Mean Absolute Error (MAE) from 5.58 (individual-level) to 3.34, also outperforming static K-means.
- Real-World Data (Dunnhumby): Testing on 2,500 frequent customers across 24 product categories, an LSTM-based FCP Filter achieved an MAE of 0.98, significantly better than the 1.05 MAE of an individual-level LSTM.
The results demonstrate that group-level signals are inherently more reliable for forecasting than individual-level data, especially in volatile retail environments.
Conclusion and Future Directions
The FCP Filter provides a robust, self-correcting framework for retail prediction. By allowing clusters to evolve and using predictions to inform future clustering, it tames the noise of individual behavior. Future work will focus on reducing the computational complexity of the Gibbs sampling inference and extending the framework to other types of sequential behavioral data.
Summary updated