Dynamic customer embeddings: Understanding customer intent

Modeling customer behavior using sequential recommendation and representation learning

By Sam Sharpe, Senior Software Engineer and Karthik Rajasethupathy, Senior Manager, Data Science

Updated September 22, 2023

Digitization has made its way into the financial services industry with the explosion of online services for credit cards, rewards, loans, banking, investing and budgeting. Innovation in this field has roughly mirrored similar trends in ecommerce, where ecommerce companies have mastered personalization, marketing and efficiency. From providing automated customer service to alerting customers about potentially fraudulent transactions, all the necessary services we provide are only improved by having a deep understanding of our customers.

Online activities on the web and through mobile apps has opened a completely new lens through which to gain this understanding. Not only is digital activity always changing, but similar to transactions, these activities are highly dimensional and require feature engineering for specific tasks. In our paper accepted to the ICML 2021 Workshop on Representation Learning for Finance and E-Commerce Applications, Dynamic Customer Embeddings for Financial Service Applications, we explored methods to learn dynamic representations of user online activity to simplify and improve utilization of digital activity data in downstream applications.

Sequential recommendation and representation learning with RNN

Much of the progress in sequential recommendation has been made since the introduction of collaborative filtering and the famous Netflix recommendation challenge with fixed functional forms for modeling time effects on recommendations. Recurrent neural networks (RNN) have accelerated research on methods that adapt to evolving user behavior.

The first methods to take advantage of RNNs were DeepCoevolve—a point process model parameterized by an RNN to capture the mutual influence between users and items over time—and Recurrent Recommender Networks—RNNs that update user/movie representations used to predict ratings.

example of recurrent recommender network

Recurrent Recommender Network (Wu et al 2017 - https://cseweb.ucsd.edu/classes/fa17/cse291-b/reading/rrn_wsdm2017.pdf)

Dynamic user embeddings and interactions in DeepCoevolve as a toy example

Toy example of interactions and dynamic user embeddings in DeepCoevolve (Dai et. al 2016 - https://arxiv.org/pdf/1609.03675.pdf)

Over the past few years, other methods have tweaked how recommendation systems incorporate another context (e.g., app device, user characteristics, etc). Most recently, Kumar et al introduced some important and unique concepts with their framework JODIE. They were the first to propose mutually recursive updates to items and users using a shared RNN. More importantly, they reframed the problem as representation learning for interaction networks where the main goal is to create user embeddings that can predict embeddings of items users would interact with next.

JODIE recommendation framework illustration

Illustration of the JODIE recommendation framework (Kumar et al 2019 - https://cs.stanford.edu/~srijan/pubs/jodie-kdd2019.pdf)

Digital customer embedding framework based on self-supervised RNNs

Inspired by JODIE and Spotify’s recommendation framework, we designed a method to learn dynamic representations of Capital One user’s online activity.

We treat each customer’s sequence of click-stream events (e.g., page views or actions), beginning with a login and ending with a logout, as a single digital session and encode each session into an embedding via seq2seq autoencoders.

diagram of embedding digital sessions using seq2seq autoencoders

Embedding of digital sessions via seq2seq autoencoders (Chitsazan et al. 2021 - https://arxiv.org/abs/2106.11880)

We jointly model the sequence of embedded customer sessions along with time and financial context to fully represent users’ implicit intent and the temporal dynamics of customer behavior.

We can utilize the customer’s latent representation at any point in this sequence to more effectively predict the intents of the next session, anticipate customer service calls, and identify account takeover. For more details about our methodology, comparisons to previous dynamic recommendation tasks, and results on various downstream applications check out our paper Dynamic Customer Embeddings for Financial Service Applications!

example of a dynamic customer embedding framework

Dynamic Customer Embedding framework (Chitsazan et al. 2021 - https://arxiv.org/abs/2106.11880)

Capital One uses dynamic customer embeddings to improve customer experience

Through dynamic customer embeddings we have shown that a customer’s previous digital activity is representative of digital intent, behavioral preferences, and predictive of future activity. Therefore, the first applications of this at Capital One have been to help customers find relevant servicing messaging and insights related to their accounts, and to help Capital One servicing agents select the best digital channels to use when communicating with our customers.

Dynamic customer embeddings served on-demand

To support these applications, we have deployed customer embeddings as a batch scoring job running multiple times daily. After each batch run, we refresh representations of existing customers with recent activity, and also generate representations for newly active customers. Once refreshed, a job is triggered to publish our embeddings to our centralized feature platform. This feature platform serves embeddings via an API - enabling these and other downstream applications to consume and utilize the representations on demand.

Any major changes in our digital assets (pages, events, layouts, etc) and/or other exogenous events (such as Covid-19), can cause drift in the source data and customer representations. To detect such changes, we deploy a monitoring solution that triggers alerts based on the change in distribution of the cosine distances between newer and older representations for each customer. With this monitoring, we can detect, alert and respond to large shifts in the representations.

Capturing granular shifts in customer behavior at Capital One

We are constantly evolving our modeling framework at Capital One to capture and respond to granular shifts in customer behavior. Representation learning and temporal sequence modeling remain essential building blocks for providing teams across Capital One with meaningful features to build effective, personalized systems for the best customer experience. Check out our paper for more details!

References


Capital One Tech

Stories and ideas on development from the people who build it at Capital One.

Related Content

alternating light and dark blue triangles with blue dots flowing diagonally across a dark blue background
Article | October 14, 2020
dark navy background with light blue outline of a clock in foreground
Article | October 8, 2020
vector image of scattered blue thought bubbles, with a half brain/half thought bubble in the middle
Article | June 23, 2021