Domain Adaptation from User-level Facebook Models to County-level Twitter Predictions

Daniel Rieman, Kokil Jaidka, H. Andrew Schwartz, Lyle H. UngarIJCNLP 2017

Introduction

Psychologists are increasingly turning to "Geographical Psychology" to understand how personality traits—specifically the "Big Five": Openness, Conscientiousness, Extraversion, Agreeableness, and Neuroticism—vary across different regions. While Facebook offers rich data for training personality models due to user participation in quizzes, this data is often private and difficult to map geographically. Conversely, Twitter data is public and easily geocoded to U.S. counties but lacks the "ground truth" labels necessary for training.

Simply applying a model trained on Facebook to Twitter data fails due to domain shift. This shift is driven by vocabulary differences between platforms, local "noise" (such as regional sports memes), and the absence of county-level labels for traditional supervised adaptation. To bridge this gap, researchers have developed Target Side Domain Adaptation (TSDA), an unsupervised method that adjusts word frequencies on the target side to produce stable and geographically accurate personality maps.

The TSDA Method: Cleaning the Target Side

TSDA is a two-step algorithm that modifies the input data (Twitter word counts) to match the model's expectations (Facebook distributions) without altering the underlying model weights.

  1. Target-Side (County) Adjustment: This step mitigates local noise. For every word, the algorithm identifies counties where the word's frequency is an outlier (top 5%). These extreme values are replaced with the global mean frequency for that word. This prevents localized events, like a specific sports game or a viral regional meme, from skewing a county's entire personality profile.
  2. Source-to-Target (Platform) Adjustment: This addresses platform-specific differences. The algorithm calculates the ratio of a word's frequency on Facebook versus Twitter. If the difference exceeds a threshold ($\epsilon = 0.8$), the word is either removed or its frequency is replaced with the source mean. This effectively filters out platform-specific slang and time-sensitive jargon.

Experimental Setup and Validation

The researchers used status updates from 65,896 Facebook users with known personality scores as the source data. The target data consisted of a 10% random sample of tweets from 2012–2014, mapped to approximately 2,400 U.S. counties (over 150 million geolocated tweets).

In the absence of a "gold standard" county-level personality database, the authors validated their results using state-level personality scores from traditional surveys and external validity criteria: normality of distribution, year-to-year stability, and correlation with known regional outcomes like education and health.

Key Results and External Validity

The application of TSDA led to significant improvements across several metrics:

  • Improved Accuracy: When aggregated to the state level, TSDA increased the Pearson correlation with survey-based ground truth for Openness from 0.47 to 0.71.
  • Normalization of Data: Without adaptation, some counties showed extreme outliers—the "Indonesian Meme" problem, where a viral song lyric led to Openness scores 10 standard deviations from the mean. TSDA reduced the kurtosis for Openness predictions from 35.33 to 2.99, resulting in a nearly perfect normal distribution.
  • Geographical Accuracy: The resulting maps provide a plausible and stable view of regional personality traits across the United States.
Figure 1: County-level map of Openness scores across the US after applying TSDA.
  • External Validity: TSDA-adjusted predictions showed much stronger correlations with real-world outcomes. For instance, the correlation between a county's predicted Openness and its actual high education level rose from 0.32 to 0.55.
Figure 2: Comparison of correlations between personality traits and external outcomes (Education, Income, etc.) for the hypothesis, baseline, and TSDA models.

Conclusion

TSDA demonstrates that state-of-the-art domain adaptation can be achieved by "cleaning" the target side to look like the source side, rather than retraining complex models. While the method relies on heuristic thresholds that may require tuning for different contexts, it offers a powerful tool for applying individual-level psychological models to community-level data, opening new doors for regional health and social science research.

Summary updated

BibTeX
@inproceedings{rieman2017domain,
  author = {Daniel Rieman and Kokil Jaidka and H. Andrew Schwartz and Lyle H. Ungar},
  title = {{Domain Adaptation from User-level Facebook Models to County-level Twitter Predictions}},
  booktitle = {IJCNLP},
  year = {2017},
}
Figure