Skip to main content
QUICK REVIEW

[Paper Review] Demographics in Social Media Data for Public Health Research: Does it matter?

Nina Cesare, Christan Grant|arXiv (Cornell University)|Oct 30, 2017
Data-Driven Disease SurveillanceMedicine49 references15 citations
TL;DR

This paper proposes a scalable ensemble classifier that infers gender from Twitter user names to address demographic representation gaps in social media data for public health research. By combining three classifiers trained on 7,953 labeled users, the method achieves 82.8% accuracy and covers 100% of users with alphanumeric names—outperforming a data-matching approach in coverage despite lower accuracy—enabling more inclusive analysis of foodborne illness trends in the U.S.

ABSTRACT

Social media data provides propitious opportunities for public health research. However, studies suggest that disparities may exist in the representation of certain populations (e.g., people of lower socioeconomic status). To quantify and address these disparities in population representation, we need demographic information, which is usually missing from most social media platforms. Here, we propose an ensemble approach for inferring demographics from social media data. Several methods have been proposed for inferring demographic attributes such as, age, gender and race/ethnicity. However, most of these methods require large volumes of data, which makes their application to large scale studies challenging. We develop a scalable approach that relies only on user names to predict gender. We develop three separate classifiers trained on data containing the gender labels of 7,953 Twitter users from Kaggle.com. Next, we combine predictions from the individual classifiers using a stacked generalization technique and apply the ensemble classifier to a dataset of 36,085 geotagged foodborne illness related tweets from the United States. Our ensemble approach achieves an accuracy, precision, recall, and F1 score of 0.828, 0.851, 0.852 and 0.837, respectively, higher than the individual machine learning approaches. The ensemble classifier also covers any user with an alphanumeric name, while the data matching approach, which achieves an accuracy of 0.917, only covers 67% of users. Application of our method to reports of foodborne illness in the United States highlights disparities in tweeting by gender and shows that counties with a high volume of foodborne-illness related tweets are heavily overrepresented by female Twitter users.

Motivation & Objective

  • To address disparities in demographic representation within social media data used for public health research.
  • To develop a scalable method for inferring gender from Twitter user names when demographic data is missing.
  • To improve coverage and accuracy of gender prediction in large-scale public health studies using social media.
  • To assess the impact of demographic imbalances on public health surveillance using foodborne illness tweets.

Proposed method

  • An ensemble classifier is constructed using stacked generalization to combine predictions from three individual classifiers trained on 7,953 Twitter users with known gender labels.
  • The classifiers rely solely on user names as input features, enabling scalability and broad coverage across users with alphanumeric names.
  • The method uses a meta-learner to integrate predictions from base models, enhancing overall performance beyond individual models.
  • The approach is applied to a dataset of 36,085 geotagged foodborne illness-related tweets from the U.S. to assess gender representation.
  • A comparison is made with a data-matching approach that achieves 91.7% accuracy but covers only 67% of users.
  • The ensemble model is evaluated using standard metrics: accuracy, precision, recall, and F1 score.

Experimental results

Research questions

  • RQ1Does using only user names enable accurate and scalable gender inference in social media data for public health research?
  • RQ2How does the coverage of gender prediction methods compare when relying on names versus external data matching?
  • RQ3To what extent do demographic imbalances in social media data affect public health surveillance outcomes?
  • RQ4Can an ensemble learning approach outperform individual classifiers in gender prediction from user names?
  • RQ5What are the implications of gender-based disparities in social media reporting for foodborne illness surveillance?

Key findings

  • The ensemble classifier achieved an accuracy of 82.8%, precision of 85.1%, recall of 85.2%, and F1 score of 83.7% on the test set.
  • The ensemble method covered 100% of users with alphanumeric names, significantly outperforming the data-matching approach, which covered only 67% of users.
  • The data-matching approach achieved higher accuracy (91.7%) but was limited by low coverage, highlighting a trade-off between accuracy and inclusivity.
  • Analysis of foodborne illness tweets revealed that counties with high reporting volumes were disproportionately represented by female Twitter users.
  • The study demonstrates that demographic imbalances in social media data can significantly affect public health surveillance outcomes.
  • The proposed method enables more representative and scalable demographic inference, supporting more equitable public health research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.