Abstract
Microblogging systems such as Twitter have seen explosive use in public and private sectors. The age information of microbloggers can be very useful for many applications such as viral marketing and social studies/surveys. Current microblogging systems, however, have very sparse age information. In this paper, we present MAIF, a novel framework that explores public content and interaction information in microblogging systems to explore the hidden ages of microbloggers. We thoroughly evaluate the accuracy of MAIF with a real-world dataset with 54,879 Twitter users. Our results show that MAIF can achieve up to 81.38% inference accuracy and outperforms the state of the art by 9.15%. We also discuss some countermeasures to alleviate the possible privacy concerns caused by MAIF.
1. Introduction
While platforms like Facebook often contain detailed demographic profiles, microblogging services like Twitter are characterized by "age sparsity." Users rarely disclose their birth dates, creating a significant data gap for researchers and marketers. Existing age inference methods typically rely on either linguistic patterns (content) or social connections (network) in isolation. We propose the Microbloggers’ Age Inference Framework (MAIF), a unified approach that leverages both content and interaction data to predict user ages with high precision.
2. Methodology
MAIF addresses the challenges of noisy, short-form text and sparse social labels through a joint optimization framework.
2.1 Content Modeling
We process tweets into $\tau$-grams (1-grams and 2-grams) and apply TF-IDF weighting. To manage the high dimensionality and noise of microblog text, we employ sparse representation with $\ell_1$-norm regularization. This ensures the model focuses on "age-defining" keywords—such as "homework" for students or "mortgage" for older adults—while ignoring irrelevant linguistic noise.
2.2 Interaction Modeling and Homophily
The framework incorporates social structure by identifying communities using the Louvain method. We assume a principle of "age smoothness" or homophily: users within the same tightly-knit community are likely to belong to the same age group. By maximizing this smoothness alongside content-based accuracy, MAIF creates a more robust prediction model.
3. Data Analysis and Observations
To evaluate MAIF, we collected a ground-truth dataset of 54,879 Twitter users by identifying public birthday greetings (e.g., "Happy 21st birthday to @user"). This dataset includes over 51 million tweets and 58,000 social edges.
As illustrated in the figure above, the dataset is naturally skewed toward younger demographics. Our analysis of vocabulary usage reveals distinct "generation gaps." For instance, the word "home" peaks in usage around ages 18–21, likely corresponding to students moving for university. Conversely, professional terms like "hard work" show a steady increase as users age into the workforce.
The strength of the homophily signal is further evidenced by interest similarity. As shown in the plot above, the Jaccard similarity between users' interests tends to decrease as the age difference between them increases. Our data confirms that 93.6% of friend pairs on Twitter have an age difference of less than five years, making social connections a powerful proxy for age.
4. Results and Discussion
MAIF achieved an overall inference accuracy of 81.38%, a 9.15% improvement over previous state-of-the-art methods. The model proved robust even when social data was sparse, thanks to its sophisticated text regularization.
4.1 Privacy Implications
The high accuracy of MAIF highlights potential privacy risks. We suggest that users concerned about age inference should consider "protecting" their profiles or intentionally diversifying their social interactions and posting styles to disrupt the homophily and linguistic signals that these algorithms exploit.
5. Conclusion
By unifying content and interaction analysis, MAIF provides a powerful tool for demographic inference in sparse-data environments. Future research will focus on incorporating more granular interaction types, such as retweets and mentions, to further enhance prediction accuracy across diverse age groups.
Summary updated