Second place at Data Fusion Contest 2024

22 Aug 2024

Problem

A bank's deep-learning team had to predict when customers churn, using synthetic transaction data. It was a time-to-event task. For each monthly reporting date, a separate, non-overlapping set of users came with six months of transaction history, a churn flag and the date of the last transaction before leaving. The metric was the concordance index (CI). The dataset was small, so validation did not always match the leaderboard.

Example from the article: the Sber AI Laboratory team took second place in the churn task of Data Fusion Contest 2024.

Solution in brief

The team built an ensemble of sequence models. Customer embeddings from contrastive learning (CoLES) and last-month risk embeddings (WTTE-RNN) were combined with two open-source solutions and a TF-IDF feature over merchant category codes. Preprocessing and some models came from pytorch-lifestream.

Questions this case answers
  • How to predict the time until a user leaves from a sequence of timestamped events when the censoring structure differs per reporting date
  • How to predict when a bank customer will churn from their transaction history
  • How to build a time-to-event churn model on event sequences with a small dataset
  • How to combine embeddings of transaction sequences with open-source solutions in one ensemble

Tools and methods

  • CoLES — contrastive learning that turns a customer's event sequence into an embedding; one of the main ensemble members
  • WTTE-RNN — recurrent model that gives risk embeddings of the customer for the last month
  • WTTE-CoLES — the team's new variant: CoLES embeddings computed on a uniform time grid
  • TF-IDF over mcc — sparse features from merchant category codes, added to two open-source solutions (nazarovo and kdimon15)
  • pytorch-lifestream — open-source library for event-sequence models
Continue reading — it's free

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