Generating your shopping list with AI: recommendations at Picnic

Thijs Sluijter9 Jan 2024

Problem

Picnic, an online supermarket, ranks a customer's previously bought items with a repeat-purchase model. It wants recommendations for any of its 30,000+ articles, including ones the customer never bought. Customers have fixed weekly lists of about 30 to 60 general items, and the average customer has bought fewer than 200 unique products. Data on milk and bananas is plentiful and data on rarer articles is thin. Even similar customers prefer different brands, flavours and pack sizes.

Example from the article: two customers both buy crisps, but one picks Lays Salt & Vinegar in a family bag and the other Tyrell's Chili.

Solution in brief

Picnic kept a simple feature-based model for repeat items and benchmarked sequential recommenders, adapted to predict a basket, for explore items. Repeat and explore items were scored separately. The simple model won on repeat items, explore performance was often 10x lower, and recommending explore categories is an easier substitute.

Questions this case answers
  • How to recommend new items to users whose history is dominated by repeat purchases of a small set of popular items and the catalog is huge and sparse
  • How to adapt next-item sequential recommenders to predict a whole basket of items at once
  • How to recommend products a customer has never bought when most of their orders are repeat purchases?
  • How to decide whether a complex sequential model is worth building for grocery recommendations?

Tools and methods

  • CARP (Customer Article Rebuy Prediction) — XGBoost model with handcrafted rebuy features, ranks previously bought items.
  • XGBoost — gradient boosting behind CARP.
  • RecBole — open-source library used to benchmark sequential models in a reproducible way.
  • FPMC, HRM, GRU4Rec, SASRec, BERT4Rec, LightSANS, RepeatNet, Caser, SRGNN — the sequential models compared.
  • Mean-pooled next-basket adaptation — turns next-item scores into a basket prediction.
Continue reading — it's free

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