Introducing Melange: A Customer Journey Embedding System for Improving Fraud and Policy Abuse Detection

Viacheslav Dubrov4 Apr 2023

Problem

Fraudsters keep changing tactics, so fraud models need fresh signal. Wayfair's models already used hand-made tabular features in the feature store, such as average visits or orders over the last 7 or 30 days. Such statistics capture only a limited part of customer behavior, cost domain expertise and time to build, and may carry biases or oversights. A browsing session is an ordered sequence of pages, and these aggregates flatten the patterns in it.

Example from the article: a customer lands on the homepage, searches "TV Stands", opens a results grid, clicks one product and moves to checkout.

Solution in brief

Train a sequence model on session history to predict the type of the next page the customer will visit. This pretext task needs no fraud labels. Keep the model's embedding layers, embed recent sessions every hour, aggregate them into one customer vector and add that vector to the downstream fraud models as extra input features.

Questions this case answers
  • How to capture sequential behavior patterns that hand-made aggregate features miss, when the actors adapt their tactics and labels are too scarce to train a sequence model directly
  • How to turn raw event sequences into a reusable per-entity vector that several downstream models consume as input features
  • How to add behavioral signal from raw browsing sessions to a fraud model without hand-crafting more tabular features?
  • How to learn customer-journey embeddings from clickstream without fraud labels?

Tools and methods

  • Self-supervised representation learning — learns behavior vectors from unlabeled sessions via a pretext task
  • Next-page-type prediction — the pretext task for the sequence model
  • Hourly batch inference pipeline — embeds recent sessions and aggregates them per customer
  • Vertex AI (Vertex Pipelines) — hosts the batch inference pipeline on Google Cloud
  • Downstream fraud models — consume the embedding next to the existing features
Continue reading — it's free

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