Neural Network Approach to Modeling Settlement Account Transactions

Dmitry Koptelov26 Mar 2022

Problem

Card transactions have rich fields (terminal, merchant category code, place). Settlement account transactions (utilities, tuition, large purchases, transfers) have only an amount, a date without time of day and a direction relative to the client, yet they carry real signal. The only descriptive field is a free-text payment description, written by many bank processes and sometimes by the client. The team wanted credit scoring (default prediction, ROC-AUC) to use this history.

Example from the article: the description "Payment for heating for October 2021 according to invoice N 1 ..." tells the model the purpose of the payment, much like an MCC category would.

Solution in brief

Treat the payment description as raw text: replace numbers, names and rare words with special tokens, train word2vec, and average token vectors into a description embedding. Concatenate it with embeddings of the other features into a transaction embedding, then run a bidirectional GRU over the sequence. Blend the scorer with a card-transaction model and a boosting model.

Questions this case answers
  • How to turn a customer's long sequence of heterogeneous events, each with a noisy free-text field, into one embedding that works across several prediction tasks
  • How to add a sequence model on raw event history to a tabular model that only sees aggregates, and measure what it adds
  • How to use free-text payment descriptions of bank account transactions as model features?
  • How to build one reusable encoder of a customer's transaction history for credit scoring, churn, income and propensity models?

Tools and methods

  • Description preprocessing — token replacement, lemmatization, frequency vocabulary of 40,000 tokens.
  • Word2Vec — 50-dimensional token embeddings trained on 100 million descriptions.
  • Topic modeling — sanity check that the cleaned descriptions are interpretable.
  • Entity Embeddings and bucketization — embeddings for categorical and real-valued transaction features.
  • Bidirectional GRU with max and mean pooling — encodes the transaction sequence.
  • Weighted blend of three models — card model, account model, boosting.
Continue reading — it's free

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