Demographic Inference and Representative Population Estimates from Multilingual Social Media Data

Zijian Wang, Scott A. Hale, David Ifeoluwa Adelani, Przemyslaw A. Grabowicz, Timo Hartmann, Fabian Flöck, David Jurgens

Abstract: Social media provide access to behavioural data at an unprecedented scale and granularity. However, using these data to understand phenomena in a broader population is difficult due to their non-representativeness and the bias of statistical inference tools towards dominant languages and groups. While demographic attribute inference could be used to mitigate such bias, current techniques are almost entirely monolingual and fail to work in a global environment. We address these challenges by combining multilingual demographic inference with post-stratification to create a more representative population sample. To learn demographic attributes, we create a new multimodal deep neural architecture for joint classification of age, gender, and organization-status of social media users that operates in 32 languages. This method substantially outperforms current state of the art while also reducing algorithmic bias. To correct for sampling biases, we propose fully interpretable multilevel regression methods that estimate inclusion probabilities from inferred joint population counts and ground-truth population counts. In a large experiment over multilingual heterogeneous European regions, we show that our demographic inference and bias correction together allow for more accurate estimates of populations and make a significant step towards representative social sensing in downstream applications with multilingual social media.

Introduction: The "Funhouse Mirror" of Social Media

Social media is frequently characterized as a "real-time census," offering a window into everything from public health trends to political sentiment. However, researchers have long recognized that this data acts as a "funhouse mirror" of reality. Twitter and similar platforms are notoriously non-representative, skewed heavily toward younger, male, and urban populations.

Existing attempts to correct these biases face two primary hurdles. First, most demographic inference tools are monolingual—typically English-only—rendering them ineffective in a global, multilingual context. Second, many vision-based tools exhibit significant algorithmic bias, showing performance disparities across different skin tones. Without knowing the "inclusion probability" of different demographic groups, researchers cannot accurately project social media trends onto the general population.

The M3 Model: Multimodal and Multilingual Inference

To address these challenges, we developed M3 (Multimodal, Multilingual, Multi-attribute), a deep neural architecture designed to identify user demographics using only profile metadata. This approach is more privacy-preserving than analyzing full tweet histories and allows the system to scale to millions of users, including those who tweet infrequently.

The M3 neural architecture for joint classification of age, gender, and organization status.

The M3 model processes four data sources: username, screen name, biography, and profile image. The vision component utilizes a DenseNet architecture to classify profile pictures, while the text component employs a 2-stack bidirectional character-level LSTM. By operating at the character level and fusing language embeddings, the model handles 32 languages without the massive vocabulary requirements of word-based models. A key innovation is the Modality Dropout layer, which forces the model to remain robust even when a user lacks a profile picture or a biography.

Multilingual Performance and Robustness

A central contribution of this work is the model's ability to maintain high accuracy across a diverse array of languages. By using images as a "universal pivot" and employing a semi-supervised co-training approach, we were able to bootstrap text models for less-common languages using high-confidence image predictions.

Model accuracy across 32 languages for gender, age, and organization status.

As shown in the performance metrics across 32 languages, the model achieves consistent results for gender and organization status, with age classification remaining robust despite the inherent difficulty of the task. Notably, the M3 model outperformed major commercial APIs (such as Face++ and Microsoft) in gender classification for darker-skinned individuals, suggesting that training on diverse, "in-the-wild" social media data can produce fairer models than those trained on standard vision benchmarks.

Statistical Debiasing Framework

Once demographics are inferred, we apply a statistical debiasing framework using multilevel regression. By comparing inferred Twitter counts against ground-truth census data (such as Eurostat), we estimate "inclusion probabilities." This allows us to calculate specific weights for different demographic groups—for instance, weighting a 60-year-old female user differently than a 25-year-old male user—to ensure the final sample is representative of a specific geographic region.

Key Results and Conclusion

The combination of M3 inference and the debiasing model leads to a drastic reduction in estimation error. In population estimation tasks across Europe, raw Twitter counts yielded a Mean Absolute Percentage Error (MAPE) of 88%. Applying our framework dropped this error to 33%. On the multilingual test set, M3 achieved an F1-score of 0.915 for gender and 0.898 for organization status.

While limitations remain—such as the temporal mismatch between real-time social data and infrequent census updates, and the current binary representation of gender—this work represents a significant step toward representative social sensing. By filtering out organizational accounts and correcting for demographic skews, we can transform social media from a biased sample into a powerful tool for understanding global populations.

Summary updated

BibTeX
@inproceedings{wang2019demographic,
  author = {Zijian Wang and Scott A. Hale and David Ifeoluwa Adelani and Przemyslaw A. Grabowicz and Timo Hartmann and Fabian Flöck and David Jurgens},
  title = {{Demographic Inference and Representative Population Estimates from Multilingual Social Media Data}},
  booktitle = {The Web Conference},
  year = {2019},
  url = {https://openreview.net/forum?id=ByNlw--ubB},
}
Figure