Introduction
Predicting demographic information such as age and gender from text—a task known as author profiling—is a critical challenge in digital forensics, targeted advertising, and business intelligence. Traditional approaches typically rely on content-based features (e.g., word n-grams) or style-based features (e.g., Part-of-Speech patterns). However, these methods often struggle with polysemy (where one word has multiple meanings) and fail to capture semantic relations between different words that refer to the same underlying interest.
This research proposes a novel approach that moves beyond a "bag of words" model by representing documents as a collection of structured concepts mapped to Wikipedia’s extensive category hierarchy.
Methodology
The proposed system utilizes a two-phase approach to capture the semantic interests of authors.
1. Semantic Representation
The authors first employ the TAGME API to perform entity linking, identifying Wikipedia concepts within blog posts. TAGME is specifically chosen for its ability to handle ambiguity by considering the surrounding context. Following identification, the system recursively crawls Wikipedia’s category tree up to five levels deep. For example, a mention of "Python" might map to "Programming Languages," then "Software," and so on. This hierarchical mapping allows the model to group disparate terms under broader thematic umbrellas.
2. Prediction Models
Two primary classification strategies were explored:
- K-Nearest Neighbors (KNN): Utilizing the Okapi-BM25F distance metric, the model treats different levels of the Wikipedia hierarchy as distinct "fields" to identify similar authors.
- Support Vector Machines (SVM): SVM classifiers were trained using a combination of Wikipedia semantic features, traditional word n-grams, and style-based POS n-grams.
Experimental Setup
The study was conducted using the PAN 2013 Author Profiling Task datasets. The data includes labels for gender (Male/Female) and age groups (10s, 20s, and 30s). The training set comprised over 236,000 instances, providing a robust foundation for learning complex semantic patterns.
Key Results and Analysis
The integration of semantic features with traditional linguistic markers yielded significant performance gains. The hybrid model—combining Wikipedia features, word n-grams, and POS n-grams—set a new benchmark for the PAN 2013 dataset.
As shown in the results table, the proposed hybrid model reached 62.12% accuracy for gender and 66.51% accuracy for age, outperforming the previous state-of-the-art results established by Meina et al. (59.21% and 64.91%, respectively).
The Impact of Hierarchical Depth
A key insight from the research is the "Power of the Hierarchy." By mapping specific entities to broader categories, the model can recognize shared interests between authors who use different vocabularies. For instance, authors discussing "The Avengers" and "Batman" are both identified as having an interest in "Comic Books."
The analysis of accuracy across hierarchy levels demonstrates that parent categories provide crucial signals. As seen in the figure, accuracy for age prediction improves significantly when moving from specific entities to Level 1 and Level 2 categories, validating the benefit of hierarchical abstraction.
Conclusion
By leveraging Wikipedia as a structured knowledge base, this approach successfully bridges the gap between raw text and high-level author interests. While the method currently relies heavily on the accuracy of initial entity linking, it demonstrates that semantic abstraction is a powerful tool for author profiling. Future work will focus on reducing dependency on external APIs and exploring more robust learning algorithms to further refine prediction accuracy in diverse digital environments.
Summary updated