Emotions, Demographics and Sociability in Twitter Interactions

Kristina Lerman, Megha Arora, Luciano Gallegos, Ponnurangam Kumaraguru, David Garcia

TL;DR

By linking millions of geo-tagged tweets to US Census data, this paper reveals how online social structures mirror our psychological states and offline demographics. The authors find that happier, more affluent, and highly educated areas are characterized by weak online ties and high spatial mobility, whereas less prosperous areas exhibit stronger, more cohesive, but less diverse social networks.

What Problem Does This Paper Address?

Sociologists have long known that offline social networks are shaped by socioeconomic status and psychology. "Strong ties" (close friends and family) offer emotional support, while "weak ties" (acquaintances) act as bridges to novel information and career opportunities.

However, whether these dynamics hold true in online spaces—and how they intertwine with local demographics and emotional states—remains under-explored. This paper tackles this gap by mapping digital interactions on Twitter to physical neighborhoods, exploring how geography, wealth, and emotion converge to shape our digital social structures.

Methods

The authors developed a framework combining spatial data linkage, natural language processing (NLP), and network analysis:

  • Spatial Linkage: Geo-tagged tweets are mapped directly to US Census tracts, which represent relatively homogeneous neighborhoods of about 4,000 residents.
  • Emotion Analysis: To capture the nuance of human emotion, the text is analyzed using two tools: SentiStrength (for positive/negative sentiment polarity) and the Warriner, Kuperman, and Brysbaert (WKB) lexicon to measure finer dimensions like valence (pleasure), arousal (intensity), and dominance (power).
  • Social Tie Strength: Instead of assuming a flat network, "tie strength" is calculated using the frequency of @mentions between users. High-frequency communication signifies a strong tie.
  • Spatial Diversity: The authors use Shannon's Entropy ratio to measure how evenly a tract's users distribute their tweets across other geographic tracts, serving as a proxy for physical mobility and geographic diversity.

Datasets

The study relies on two primary data sources:

  1. Twitter Corpus: A dataset of 6 million geo-tagged tweets from 340,000 unique users in Los Angeles (LA) County, collected over a 4-month period starting in July 2014.
  2. 2012 US Census Data: Tract-level demographic metrics including mean household income, education levels (percentage of residents with a Bachelor's degree or higher), median age, and racial/ethnic composition.

Key Insights and Ideas

  • The Happiness-Mobility Loop: Happier neighborhoods aren't just more pleasant; their residents are more digitally mobile and maintain more diverse, far-reaching social networks.
  • The Cohesion of Adversity: Areas expressing more negative emotions (sadness, anger) rely on tightly-knit, highly repetitive social circles. This aligns with psychological theories suggesting that negative experiences prompt people to seek comfort and solidarity within strong, local ties.
  • Cultural Footprints Online: Tightly clustered online networks are strongly correlated with high-Hispanic census tracts. The authors note this reflects collectivist cultural values that prioritize deep sociability over individualistic, sparse networking.
  • Digital Inequity: Because weak ties are crucial for discovering new jobs and information, the fact that affluent, highly educated individuals naturally form more weak ties suggests an invisible structural advantage that compounds existing offline privileges.
Figure 2: Mentions graphs of two different tracts showing (a) strong ties (average tie strength Si = 7.33) and (b) weak ties (Si = 1.08). Tweeting users are represented as white nodes, while mentioned users are red nodes. Users who tweet and are mentioned are pink in color. The width of an edge represents the number of mentions.

Key Results

  • Valence vs. Tie Strength: There is a significant negative correlation (-0.36) between tweet valence (happiness) and tie strength. As shown in the data, neighborhoods with the weakest social ties express the highest happiness levels.
Figure 4: Box plot of mean valence of tweets posted from tracts, after they were grouped by mean tie strength into three equal-sized groups, or tertiles. Lines inside the boxes indicate median value of valence, whereas the boxes them- selves show interquartile ranges.
  • Valence vs. Spatial Diversity: Valence positively correlates with spatial diversity (0.32), meaning happier users tweet from a wider variety of places rather than clustering in a single location.
  • Socioeconomic Predictors: Education is a powerful predictor of network structure, showing a negative correlation with tie strength (-0.27) and a strong positive correlation with spatial diversity (0.35).
  • Demographic Clusters: Conversely, the proportion of Hispanic residents in a tract strongly predicts higher tie strength (0.35) and lower spatial diversity (-0.27).

Limitations and Future Work

  • Selection Bias: The study only captures users who explicitly enable geo-referencing on Twitter, a demographic subset that may not accurately represent the general population of LA County.
  • The Language Barrier: The sentiment analysis was restricted entirely to English tweets. Given that low-valence, high-tie-strength tracts often correlated with high-Hispanic populations, omitting Spanish tweets may have introduced a systematic bias. The authors plan to integrate Spanish sentiment lexicons in future iterations.
  • Proxy Assumptions: The study assumes that the demographics of a tract where a tweet originates reflect the user, without explicitly resolving the users' actual home locations.

Summary updated

Abstract

The social connections people form online affect the quality of information they receive and their online experience. Although a host of socioeconomic and cognitive factors were implicated in the formation of offline social ties, few of them have been empirically validated, particularly in an online setting. In this study, we analyze a large corpus of geo-referenced messages, or tweets, posted by social media users from a major US metropolitan area. We linked these tweets to US Census data through their locations. This allowed us to measure emotions expressed in the tweets posted from an area, the structure of social connections, and also use that area's socioeconomic characteristics in analysis. %We extracted the structure of online social interactions from the people mentioned in tweets from that area. We find that at an aggregate level, places where social media users engage more deeply with less diverse social contacts are those where they express more negative emotions, like sadness and anger. Demographics also has an impact: these places have residents with lower household income and education levels. Conversely, places where people engage less frequently but with diverse contacts have happier, more positive messages posted from them and also have better educated, younger, more affluent residents. Results suggest that cognitive factors and offline characteristics affect the quality of online interactions. Our work highlights the value of linking social media data to traditional data sources, such as US Census, to drive novel analysis of online behavior.
BibTeX
@inproceedings{lerman2016emotions,
  author = {Kristina Lerman and Megha Arora and Luciano Gallegos and Ponnurangam Kumaraguru and David Garcia},
  title = {{Emotions, Demographics and Sociability in Twitter Interactions}},
  booktitle = {ICWSM},
  year = {2016},
}
Figure