Ensemble Maximum Entropy Classification and Linear Regression for Author Age Prediction

Joey Hong, Chris A. Mattmann, Paul M. RamirezIRI 2016 · DOI

Introduction

Predicting an author's demographics, or author profiling, is a critical task in digital forensics, security, and marketing. Among various traits, age remains one of the most challenging to predict accurately. Traditional approaches typically treat this as either a classification task (sorting into broad buckets) or a regression task (predicting a specific year). While classification lacks granularity, pure regression often fails to capture the non-linear linguistic shifts that occur across a human lifespan. This paper presents a hybrid "ensemble chain" architecture designed to bridge these two methodologies.

Methodology: The Ensemble Chain

The core innovation of this research is a two-stage pipeline that uses classification results to "anchor" a regression model. The process follows a structured workflow from raw data to final prediction:

  1. Feature Extraction: The system processes raw text to extract content-based features (unigrams and bigrams) and stylistic features (Parts-of-Speech tags, word counts, and LIWC categories).
  2. Stage 1: Maximum Entropy (MaxEnt) Classification: Text features are fed into a MaxEnt classifier to assign the author to one of several broad age categories.
  3. Stage 2: LASSO Regression: The original features are augmented with the predicted category from Stage 1. This combined vector is processed by an L1-regularized (LASSO) regression model to estimate the specific age.
System architecture of the ensemble chain for age prediction.

Datasets and Data Handling

The researchers utilized four diverse datasets to ensure linguistic variety: the Blog Authorship Corpus, Fisher English Transcripts, a Cancer Forum, and the PAN16 Twitter dataset. To combat the natural "youth bias" found in online text data, oversampling was employed to balance the representation of older age groups, ensuring the model did not default to predicting younger ages for every entry.

Results and Performance

The ensemble approach demonstrated a clear advantage over standalone linear models. The "Global" model, which incorporates both content and stylistic features, achieved the highest classification accuracy, validating the inclusion of stylistic markers like POS tags and sentence structure.

Performance metrics for different feature sets in the MaxEnt classification stage.

Key performance metrics include:

  • Classification Accuracy: The Global model reached 52.1% accuracy across age categories, significantly outperforming the 33% baseline.
  • Regression Accuracy: The ensemble method reduced the Mean Absolute Error (MAE) from 12.05 years to 10.32 years, with a correlation coefficient (r) of 0.701.

Discussion and Limitations

The study highlights that while content (N-grams) is a strong predictor, stylistic markers provide a subtle but necessary signal for refinement. However, a "life stage plateau" was observed; the model performed exceptionally well for authors under 50 but struggled with older demographics, where it tended to under-predict age. This is likely due to the extreme data skew in available corpora, where the oldest categories remain underrepresented despite oversampling efforts. Future work will focus on refining age boundaries based on developmental life stages rather than arbitrary decade-long intervals.

Summary updated

BibTeX
@inproceedings{hong2016ensemble,
  author = {Joey Hong and Chris A. Mattmann and Paul M. Ramirez},
  title = {{Ensemble Maximum Entropy Classification and Linear Regression for Author Age Prediction}},
  booktitle = {IRI},
  year = {2016},
  doi = {10.1109/iri.2017.48},
}
Figure