Enhancing the Customer Experience with Machine Learning: Personalized Meal Recommendations using Embeddings

Sophie Kohoutek7 Dec 2023

Problem

HelloFresh had 7.07 million active customers in Q3 2023. Its weekly menu grew by 25% and now holds about 50 recipes plus 250 add-on items. Customers return every week and usually scan the whole menu before choosing, so a bigger menu means a longer, harder choice (the paradox of choice). The goal is to help each customer find fitting meals faster and to show that the brand knows them.

Illustrative example: a customer who declared "Veggie&Fish" gets the weekly menu, and the system has to rank a burger low while still respecting what that customer actually orders.

Solution in brief

Recipes are embedded with Node2Vec, and each customer's taste is a vector in the same space learned from past meal choices and orders. A recipe's score is the cosine similarity to the taste vector, multiplied by a predicted probability that the recipe fits the customer's declared culinary preference.

Questions this case answers
  • How to rank a large, regularly refreshed catalog for each user when a declared preference and observed behavior can disagree
  • How to represent items and user taste in a shared embedding space so that similarity gives a personal ranking
  • How to help customers pick meals from a weekly menu that keeps growing?
  • How to personalize a menu using both what customers chose and the preference they declared?

Tools and methods

  • Node2Vec — learns a vector for each recipe from its characteristics
  • User taste embedding — vector in the recipe space built from past choices and orders
  • Cosine similarity — affinity between a recipe and a customer's taste
  • Preference classifier — predicts how likely a recipe fits the declared preference
Continue reading — it's free

Google or a one-time email code. No password.