Abstract
This paper details a machine learning approach for the PAN at CLEF-2013 author profiling task, which involves predicting an author's age and gender from user-generated text. The proposed system integrates standard stylistic features with pre-built lexicons and novel information-theoretic corpus statistics. Using a logistic regression framework, the system demonstrated strong performance, particularly in the Spanish language track, ranking 6th out of 17 participants.
Introduction
With the proliferation of user-generated content online, identifying demographic traits such as age and gender has become a critical task in Natural Language Processing (NLP), known as author profiling. The challenge lies in identifying linguistic signals—ranging from punctuation habits to vocabulary richness—that reliably differentiate demographic groups. This paper presents the methodology developed by the Universidad Nacional de Colombia for the PAN at CLEF-2013 shared task, targeting English and Spanish texts.
Methodology
The authors represented documents as feature vectors and trained separate logistic regression classifiers for each language and target class. The feature space comprised up to 198 features, categorized into three intersecting sets:
- Stylistic Features (S): Metrics such as character density, punctuation frequency, and vocabulary richness (e.g., hapax legomena density).
- Lexicon-based Features (L): Metrics like lexical density and entropy derived from specialized word lists (e.g., emotions, sports, "bad words").
- Corpus Statistics (C): Novel features comparing document-level statistics against the broader training corpus. This included unsupervised metrics (TF-IDF, KL-divergence) and supervised metrics (a custom "Bayes score" and T-test extracted lexicons).
Datasets
The system utilized the official PAN at CLEF-2013 author profiling corpus. For calculating broad corpus statistics, the entire training set was used (236,600 English and 75,900 Spanish documents). For training the logistic classifiers, a subset of the first 20,000 documents per language was employed to manage computational complexity.
Results
The system's performance was evaluated against a baseline of 16.50%. In the official PAN 2013 ranking, the Spanish model placed 6th out of 17 systems.
Cross-validation results highlighted the dominance of statistical features. The "Statistic" feature set alone achieved approximately 83.9% gender accuracy in English and 80.3% in Spanish, significantly outperforming purely stylistic (55-59%) or lexicon-based (59-62%) approaches.
Discussion
Several key insights emerged from the experiments:
- The Power of Bayes: The custom "Bayes score" was the most effective statistical predictor, capturing demographic signals that stylistic features missed.
- Demographic Signal Variation: Supervised attributes like T-test lexicons were better for age prediction, while gender prediction required a holistic combination of all feature types.
- Lexicon Limitations: Off-the-shelf lexicons proved useful for age discrimination but were largely ineffective for gender profiling.
- Information Theory: Metrics like KL-divergence and cross-entropy effectively captured the "information loss" between individual documents and demographic-specific word distributions.
Conclusion
While the system performed well in Spanish, its performance in English was lower due to the direct adaptation of Spanish-optimized features. This suggests that effective author profiling requires language-specific engineering. Future work will focus on deeper linguistic analysis to improve cross-language generalization.
Summary updated