Schoolchildren at «Big Challenges 2022»: How We Trained Data Clustering Models for the Banking Sector

Stepan Yunda, Alexey Shcherbakov, Yuri Sokolov, Ilya Grinyuk, Vsevolod Kirichuk, Kirill Osintsev14 Oct 2022

Problem

Banks collect a stream of free text: social media posts, news, app store reviews and call center complaints. Reading it by hand does not scale, and outsourced analysis is paid for. The first step is usually exploratory: cluster the texts, look at the themes, then let the business pick the ones that matter. Today that step needs a data scientist every time. The authors claim an automated service could cut the extra resources needed by up to 90% (no evidence given).

Example from the article: a call center wants to know what customers complain about. Clustering the complaints may lead it to rebuild its inquiry classifier, the routing of complaints to the right specialist.

Solution in brief

Run several clustering models on the same dataset and let the user pick the one that reads best. Then the user keeps only the clusters of interest and trains a classifier for one subtopic. Active learning chooses which texts to label next.

Questions this case answers
  • How to turn an unlabeled collection of short texts into thematic clusters and then into a classifier for one chosen subtopic, when labeling is expensive and the language is not English
  • How to compare classical topic models, embedding clustering and deep clustering on labeled samples when no single model wins everywhere
  • How to find the themes in a large pile of unlabeled customer reviews, news or complaints without a data scientist doing it by hand?
  • How to choose a text clustering model when LDA, embedding clustering and deep clustering all give different answers on different datasets?

Tools and methods

  • LDA Mallet — classic topic model, a fast first version of the whole system
  • BERT + mean pooling, UMAP, DBSCAN, TF-IDF — embeddings, compression, density clustering, cluster keywords
  • BERT Clustering — BERT trained with a clustering loss plus a masked language model loss
  • Deep K-means — autoencoder on frozen BERT embeddings with trainable cluster centers
  • Uncertainty sampling — picks the texts the classifier is least sure about for labeling
Continue reading — it's free

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