Cross-Genre Age and Gender Identification in Social Media

Anam Zahid, Aadarsh Sampath, Anindya Dey, Golnoosh FarnadiCLEF (Working Notes) 2016

Introduction

Author profiling—the task of predicting demographic traits such as age and gender from written text—has become a cornerstone of modern natural language processing (NLP). Its applications range from targeted marketing and personalized user experiences to digital forensics and security. However, most existing profiling models suffer from a significant limitation: they are typically "single-genre," meaning they are trained and tested on data from the same platform (e.g., Twitter).

In real-world scenarios, representative training data for a specific target platform is often unavailable. This "cross-genre" challenge is difficult because linguistic styles vary wildly across domains; the shorthand of a 140-character tweet differs fundamentally from the structured prose of a long-form blog. This paper addresses this gap by proposing a robust ensemble framework designed to generalize across hidden genres.

The Two-Level Ensemble Architecture

The core contribution of this research is a hierarchical machine learning framework that leverages diverse data sources to make predictions on unseen platforms. The process is divided into two distinct levels of ensembling.

Overview of the two-level ensemble architecture for cross-genre prediction.

Level 1: Single-Genre (S-G) Models

The system begins by training individual logistic regression classifiers for every specific genre and language combination available in the training corpus. For example, one model is optimized for English Twitter data, while another is tailored for Spanish blogs.

To capture both the content and the stylistic nuances of the authors, the researchers extract three types of features using TF-IDF weighting:

  • Word n-grams: Capturing vocabulary and topics.
  • Character n-grams: Capturing sub-word patterns and spelling habits.
  • Part-of-Speech (POS) n-grams: Capturing grammatical structures and writing style.

To maintain efficiency and reduce noise, Chi-square hypothesis testing is employed to select the top 5,000 most predictive features for each model.

Level 2: Multi-Genre (M-G) Ensemble

To handle the cross-genre setting, the system aggregates the outputs of the Level 1 classifiers. Instead of a hard-voting system, the authors use a "soft-voting" mechanism that averages the prediction scores from all relevant single-genre models. This allows the system to synthesize insights from multiple writing styles, creating a more generalized representation of age and gender that is less dependent on the quirks of a single platform.

Experimental Setup and Datasets

The models were evaluated using datasets from the PAN 2014 and 2015 author profiling competitions. The training data covered three languages (English, Spanish, and Dutch) across three primary genres: Social Media, Blogs, and Twitter. Age labels were categorized into five distinct buckets: 18-24, 25-34, 35-49, 50-64, and 65+.

Results and Discussion

The experimental results demonstrate that the ensemble approach significantly outperforms standard baselines in cross-genre scenarios. In these tests, the model was trained on two genres and tested on a third, completely hidden genre.

Performance of the Multi-Genre (M-G) ensemble in cross-genre testing scenarios.

As shown in the results, the Multi-Genre (M-G) ensemble consistently beat the majority baseline (0.50 for gender). For instance, when testing on English blogs using models trained only on Twitter and social media, the system achieved a gender accuracy of 0.62 and an age accuracy of 0.46 (surpassing the 0.37 baseline).

These findings suggest that while platform similarity is important, a diverse ensemble of models can effectively "triangulate" demographic traits even when the target platform's specific linguistic conventions are unknown. The combination of stylistic (POS) and content-based features provides the necessary foundation for this cross-domain robustness.

Conclusion and Future Directions

This research proves that cross-genre author profiling is attainable through multi-level ensembling. By combining specialized models via soft-voting, the authors created a system capable of identifying age and gender on hidden platforms with accuracy levels well above baseline.

A current limitation of the study is the use of uniform weights for all models in the ensemble, regardless of their training set size or historical performance. Future work will explore weighted ensembles, where models with higher confidence or better performance on validation sets are given more influence in the final prediction, potentially further closing the gap between single-genre and cross-genre performance.

Summary updated

BibTeX
@inproceedings{zahid2016cross,
  author = {Anam Zahid and Aadarsh Sampath and Anindya Dey and Golnoosh Farnadi},
  title = {{Cross-Genre Age and Gender Identification in Social Media}},
  booktitle = {CLEF (Working Notes)},
  year = {2016},
}
Figure