Abstract
We present discussion graphs, a hyper-graph-based representation of social media discussions that captures both the structural features of the relationships among entities as well as the context of the discussions from which they were derived. Building on previous analyses of social media networks that focus on the strength of relationships between entities, our discussion graphs explicitly include contextual features such as who is participating in the discussions, when and where the discussions are occurring, and what else is being discussed in conjunction. There are two contributions of this work. First, we extend standard hyper-graph representations of networks to include the distribution of contexts surrounding discussions in social media networks. Second, we demonstrate how this context is useful for understanding the results of common graph measures and analyses, such as network centrality and pseudo-cliques, when applied to the analysis of textual social media content. We apply our framework across several domains captured in Twitter, including the mining of peoples' statements about their locations and activities and discussions of the U.S.
Introduction
Traditional social media network analysis typically focuses on the strength of relationships—for instance, measuring how many times two users interact or how frequently two hashtags co-occur. While these metrics provide a high-level view of connectivity, they often strip away the rich context of the original conversation. Without context, interpreting a relationship becomes a matter of guesswork. For example, if "The Empire State Building" and "Burj Khalifa" appear together in a dataset, is it because a traveler is visiting both, or because an architect is comparing their heights? To truly understand social phenomena, such as the spread of information or political polarization, a framework is needed that treats the "who, what, where, and when" as fundamental components of the graph representation.
The Discussion Graph Framework
To address this, we introduce Discussion Graphs, a framework based on hyper-graphs. In this model, nodes represent typed feature values, such as specific hashtags, locations (e.g., "Seattle"), or user attributes (e.g., "Gender: Female"). Unlike standard edges that connect only two nodes, hyper-edges connect all features extracted from a single social media message.
The "secret sauce" of this framework lies in its handling of contextual statistics. When the graph is simplified (projected) to focus on specific relationships—such as the link between locations and activities—the information from "dropped" dimensions (like mood or time of day) is not discarded. Instead, it is aggregated into statistical distributions and attached to the remaining edges. This allows researchers to move beyond knowing that two entities are related to understanding the specific conditions and "why" behind their relationship.
Datasets and Scalability
The framework was evaluated using two primary datasets derived from the Twitter Firehose (September to October 2012):
- Location-Activity Dataset: This included 580,000 unambiguous locations from Wikipedia and 16,000 activity-related phrases (e.g., "jogging," "hiking") mined from search logs.
- 2012 U.S. Election Dataset: This focused on mentions of politicians and key political issues (e.g., "Obamacare," "taxes") during the final weeks of the presidential election.
To handle these massive datasets, the framework includes a compiler that transforms high-level analysis specifications into distributed Map-Reduce jobs, ensuring scalability across millions of messages.
Key Insights: Context as a Differentiator
One of the most significant findings of this work is that context can differentiate between structural look-alikes. In the New York City location graph, we identified two "pseudo-cliques" (dense clusters of nodes) that appeared structurally similar. However, by examining the contextual metadata attached to these clusters, we discovered they represented entirely different social behaviors.
As shown in the table above, one cluster was dominated by "tourists" (non-locals with high joviality), while the other was dominated by "commuters" (local workers with higher levels of fatigue and sadness). This level of nuance is invisible in standard co-occurrence graphs.
Furthermore, the framework allowed for the identification of "guilty pleasures." By analyzing mood distributions, we found that while most activities are associated with "joviality," activities like "eating" and "kissing" had a uniquely high association with "guilt." In the political domain, we used "conditional centrality" to see which issues drove a candidate's importance. For instance, President Obama’s centrality was highly tied to "healthcare" and the "economy," while being negatively correlated with mentions of "Republicans."
Conclusion and Future Work
Discussion graphs provide a powerful tool for qualitative and quantitative social media analysis by preserving the multi-dimensional context of every connection. While the current system successfully processes millions of tweets, there are opportunities for refinement. Future work will focus on capturing context at the level of entire conversations or threads rather than single messages. Additionally, improving the accuracy of feature extractors (e.g., for gender and mood) and employing more advanced statistical methods like kernel density estimation will further enhance the precision of contextual distributions.
Summary updated