Here’s Part III. of my series about Machine Learning and personalization – read the first article here, and the second one here.
Simply recommending specific and relevant products to customers cannot be called “personalization.” To really personalize recommendations, beyond the what question, we need to grasp the bigger picture by addressing three additional questions:
Now let’s take a deep dive into the 3 questions of personalization! To address the when question, we are used to taking a binary label of loyal vs. churning customer at a specific snapshot in time as a key performance indicator (KPI) and then training in a binary classification fashion propensity-to-churn models that output likelihoods.
Once such models have been trained, we can use them to address the why question.
More specifically, from model explainability techniques (e.g. most important features, most prominent decision rules), we can extract insights explaining what makes a customer churn.
Let’s dive a little deeper into such insights and, more precisely, about what they provide.
Let’s take the example of a propensity-to-churn model to train.
Usually we engineer features from very different, even heterogeneous, data sources. For example, from Google Analytics 360 data to, let’s say, some weather forecast data.
When we are faced with such different data sources, we generally encounter two caveats:
To perform robust customer segmentation, instead of using the original features, normalized or not, we work from instances.
Since these instances are embedded into the space of the decision rules generated from the decision trees, embedding makes sparse representations lying on the same scale.
Such embedding was democratized by Friedman and Popescu when they published their seminal paper about RuleFit in 2005.
Once we have our customer segments, the trends are basically given by the most prominent decision rules ticked in each group, like:
Such decision rules can also be evaluated in terms of importance, such as feature importance.
Simple linear models like a Lasso regression can do the job, exactly as in Friedman and Popescu’s RuleFit.
Now let’s talk in details about the diagnosis of personalization! Trends are made out of a group of instances, i.e., a subgroup of the population.
In this sense, the model analysis is a global interpretation.
To diagnose a specific instance, we need to go to a local interpretation, at the scale of a single instance/point, i.e., a single customer.
To do so, various methods exist: Local Surrogate models like LIME, computing Shapley values in a Monte-Carlo fashion, or explanation models such as KernelSHAP and TreeSHAP.
Local surrogate models suffer from various caveats, beginning with setting the right neighborhood in terms of the kernel and its related hyperparameters, which greatly fluctuate the output.
Shapley methods are usually preferred as their interpretation is more straightforward. For each customer, we know precisely the most prominent feature values influencing the model’s decision to output such a customer as more or less likely to churn.
Moreover, we also know the force and the direction of the contribution of each prominent feature value to the churn prediction.
Here is an illustration of using Shapley values on a dummy use case.
We are a hypothetical website selling all sorts of electronics, from TVs to cameras to drones or weight balances, whatever.
Our problem statement is straightforward:
Let’s run our propensity-to-churn model to discover which customers are likely to churn, i.e., not purchase the items put in their cart at the end of the session.
Our churn model is running in real-time giving online predictions while our customers are still in session.
We are also running SHAP real-time to interpret for each customer, especially the churning ones, what makes the model think that they can churn.
Customer A is checking products related to TVs.
Customer A is not churning, with a predicted likelihood to churn of only 0.06.
Feature values which drive the 0.06 prediction are:
Those feature values are highlighted in blue and make the prediction drop.
Since Customer A is not likely to churn, let’s not take any action.
Customer B is checking products related to weight balances.
Customer B is churning with a predicted likelihood to churn of 0.71.
Feature values which drive the 0.71 prediction are:
All those features are highlighted in red, i.e., they increase the prediction, the churn likelihood.
For the sake of simplicity, let’s assume that such features should move monotonically and inversely to the churning likelihood, i.e., if such feature values were increased, then the likelihood of churn should decrease.
To increase the number of similar products to check and the number of comparisons to make, we just have to suggest similar products to the customer and compare them with one another.
We can do so with a small sliding window popping up from the right of the checkout page or the main product page while the customer is still in session.
And if the customer checks the additional products presented in the pop-up window, inevitably their time spent in session will increase.
So the three most prominent feature insights are actionable with a simple change in the website layout.
Regarding the other, less important feature values, nothing is really actionable.
We cannot change the time period and we can neither suggest to the customer to check other product categories nor come back to our website once they’re in front of a laptop for instance.
We can extrapolate the feature direction to reverse the tendency to churn and take the right actions.
Such actions address the last question: the how.
Product recommendations are widespread.
They quantitatively improve the customer experience and create diversification as well as upgrading personalization. But recommending specific products relevant to a customer is not enough to personalize the customer experience.
Targeting the customer at the right time is mandatory so as not to confuse them. Doing so qualitatively improves their experience.
Applying a custom strategy to retain our customer is one step further toward a qualitative improvement of their experience.
Sometimes recommending new or similar products is not the right move to convert customers into a purchase, especially for expensive goods.
It may be better to leverage actionable insights behind the scenes to convince the customer to buy a product while they are in session.
Adding this additional layer of personalization is a must-have.
In summary, a fully personalized recommendation engine should handle all the aspects described:
Such tasks are generally complex but are customizable to the specificities of the company’s industry and its customers.
That’s why personalization and fully personalized recommendation engines cannot be easily standardized, and automated Machine Learning may never be able to handle them entirely.