Building A Recipe Recommender System For the Thermomix on Cookidoo – Part 1

Simon Weiß18 Mar 2022

Problem

Cookidoo is the recipe platform for the Thermomix cooking appliance, with over 5 million users and over 80 thousand recipes in twelve languages. Editors and simple rules such as trending recipes cannot match individual tastes, and users can feel that there are no recipes for them. Most recipes exist in one language only, and cooking habits differ by region, so one global model is a poor fit. The team also had to keep user data private and GDPR compliant from the start.

Example from the article: the raw data is rows such as "User A cooked recipe Gazpacho" and "User A viewed the recipe details page of Vegan Bean Burgers".

Solution in brief

Train a matrix factorization model on cooking interactions, one model per language. Use LightFM, which accepts recipe and user metadata. Filter recipes by region and measurement system at candidate selection. Treat offline metrics as a rough direction, and subtract item biases to remove the pull toward popular recipes.

Questions this case answers
  • How to ship a first personalized recommender quickly when each item exists in one language only and local taste differs across markets
  • How to pick a training-data scope and offline evaluation setup for a first recommender when offline metrics are hard to tie to business outcomes
  • How to build a first personalized recommender when the catalog is split across languages and regions?
  • How to choose between implicit-feedback matrix factorization libraries and deep learning for a first version?

Tools and methods

  • Matrix factorization — latent-factor model trained on user-recipe interactions
  • LightFM — chosen library; adds user and recipe metadata to matrix factorization
  • implicit — compared library; fast factorization for interaction data, no side information
  • NDCG, Precision@k, Mean Reciprocal Rank — starter offline metrics
Continue reading — it's free

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