Social Media Comment Map

Role: Researcher, Designer, and Front-End Developer
Duration: February 2026 - Present
Tools: Python, OpenAI Embeddings, UMAP, HDBSCAN, Plotly


Table of Contents


Project Overview

When people scroll social media, comment sections often become a central part of how they interpret the original post. Comments provide social context: they signal what other users agree or disagree with, what kinds of reactions gain visibility, and what forms of expression appear socially approved.

Yet what we see in comment sections is rarely a neutral sample of public opinion. It is shaped by opaque ranking algorithms, engagement metrics, and visibility dynamics that amplify certain voices over others. As a result, readers may overestimate extreme views, misjudge the distribution of opinions, or misperceive social norms (Muchnik et al., 2013).

This project asks:

Can we make collective voices visible without flattening individual ones?

Social Media Comment Map is an exploratory public-facing prototype that offers an alternative way of visualizing comment sections. Instead of presenting comments as a linear list ranked by engagement, it uses language-model embeddings and clustering methods to organize comments as a semantic space while preserving access to individual comments.

Why Comment Spaces Matter

Comment sections are a major site of social inference. People form impressions of what “most people think” based on what they can see, and that visibility is platform-mediated.

Comments matter because they provide more than isolated viewpoints. They show how people respond to one another: what gets endorsed, amplified, ignored, or challenged. Comment sections may therefore be an important environment for social-norm learning, shaping not only what people think others believe, but also what they infer about which forms of interaction are common, acceptable, or socially rewarded.

Research on social media ranking has largely focused on the main feed. Comment sections have received less attention, even though they are often central to how users interpret social media content. This design problem is also a social cognition problem.


The Prototype

I built an interactive prototype that transforms a comment thread into a semantic map.

Each comment is embedded using a language model and projected into a two-dimensional space. Comments with similar meanings appear closer together, forming clusters that reflect recurring themes, framings, or narrative styles.

Crucially, this map does not summarize away individual voices. Users can click any point to view:

Instead of simply replacing comments with AI summaries, this approach makes the structure of the comments visible.

By allowing users to explore both individual comments and broader patterns, the prototype offers one way to study how different forms of comment presentation may shape what people infer from online discussions.


Demo

Alternatively, open the interactive map in a new tab


Method

This system uses a lightweight NLP and visualization pipeline:

  1. Data Collection
    Comment threads are exported as csv/excel files (currently from Xiaohongshu and Reddit-style formats).
  2. Text Embedding
    Sentence-level embeddings are generated using OpenAI embedding models.
  3. Dimensionality Reduction
    UMAP projects high-dimensional embeddings into a 2D semantic space.
  4. Clustering
    HDBSCAN identifies dense thematic clusters without predefining cluster counts.
  5. Interactive Visualization
    Plotly renders an interactive scatterplot where each point represents a comment.

Findings and Implications

Across multiple datasets, several patterns emerged:

These observations suggest that comment sections often contain patterns that are hard to see in a standard ranked feed. A typical interface highlights what is recent, popular, or engaging. A semantic map instead makes relationships among comments more visible: which comments are similar, which themes appear most often, and which perspectives fall between more prominent positions.

From a research perspective, the map can serve as a testbed for studying how comment presentation shapes perceived social norms, perceived polarization, perceived toxicity, and willingness to express minority views.

From a product perspective, it raises design questions: Could alternative representations reduce misperception and polarization? Could visible distribution maps improve deliberative quality? How might platforms expose diversity without suppressing engagement?

From a policy perspective, transparency in how comment spaces are ranked and represented could be part of broader conversations about algorithmic accountability.


Selected References