Providing Insights for Open-Response Surveys via End-to-End Context-Aware Clustering

Soheil Esmaeilzadeh, Brian Williams, Davood Shamsi, Onar Vikingstad29 Sep 2022

Problem

Teachers run surveys with open-ended questions and get many free-text answers. Reading and grouping them by hand takes a lot of time and effort. Keyword grouping is faster but misses context: it cannot tell apart the senses of a polysemous word and cannot capture meaning that no single word expresses. The authors also built an on-device version so answers can stay private.

Example from the article: a teacher surveys students about a chemistry review question and needs a short report of the main themes in their answers.

Solution in brief

Encode every response into a sentence vector with a pre-trained model. Then either cluster the vectors with k-means, choosing the number of clusters by silhouette score, or assign each vector to the nearest of the author's own category titles. Label each cluster with the words closest to its centroid and draw a wordcloud per cluster.

Questions this case answers
  • How to turn a large set of short free-text responses into a small set of labeled themes without manual reading and without a fixed keyword list
  • How to assign free-text items to a predefined set of named categories without labeled training data
  • How to group hundreds of free-text survey answers into themes without reading each one?
  • How to label each theme with a few keywords so a report reader sees what it is about?

Tools and methods

  • Sentence-BERT (MiniLM paraphrase model) — turns each response into a 384-dimensional vector.
  • k-means with silhouette score — groups the vectors and picks the number of clusters.
  • Cosine similarity to the cluster centroid — scores each word to produce the cluster's keyword label.
  • Cosine similarity to pre-specified titles — assigns responses to categories defined by the survey author.
  • UMAP — 2D plot to inspect clusters visually.
Continue reading — it's free

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