Sentiment and topic analysis on social media

Shu Huang, Wei Peng, Jingxuan Li, Dongwon Lee2013 · DOI

TL;DR

This paper introduces a novel Multi-Task Multi-Label (MTML) classification model designed to simultaneously analyze sentiment and topics in social media posts, like tweets. By leveraging the inherent correlations between sentiment and topic, and by allowing for multiple labels per post, the MTML model significantly improves classification accuracy compared to traditional, isolated approaches.

What Problem Does This Paper Address?

Social media platforms like Twitter have become rich sources of public opinion, making sentiment and topic analysis crucial for businesses in areas like customer care and marketing. However, existing methods often treat sentiment and topic classification as separate tasks, missing out on valuable interdependencies (e.g., "customer care" posts are often negative). Furthermore, social media data is inherently noisy and ambiguous, making it difficult to assign a single sentiment and a single topic label accurately. This paper addresses these limitations by proposing a unified approach that considers both the multi-task nature of sentiment and topic analysis and the multi-label reality of social media posts.

Methods

The core innovation is the Multi-Task Multi-Label (MTML) classification model. This model tackles the problem by:

  • Joint Classification: Simultaneously classifying both sentiment and topic for each social media post.
  • Inter-Task Correlation: Incorporating the predicted labels from one task (e.g., sentiment) as features for the other task (e.g., topic), and vice-versa, in an iterative process. This allows the tasks to mutually reinforce each other.
  • Multi-Label Learning: Training each classification task with the possibility of assigning multiple labels. This is crucial for handling the ambiguity and sparsity of social media data, where a single post might relate to several topics or express nuanced sentiment.
  • Maximum Entropy (ME) with Gaussian Prior: The model uses Maximum Entropy for probabilistic classification, allowing for flexibility and producing probabilistic outputs. A Gaussian prior is integrated to mitigate potential overfitting, especially with sparse data.

Datasets

The study utilizes a dataset of real tweets crawled from August 2010 to April 2011, focusing on keywords related to "virginmobile," "VMUcare," "boostmobile," and "boostcare." After filtering out company-generated posts, a dataset of 6,496 user-generated tweets was used.

  • Sentiment Classes: Positive, Negative, Neutral.
  • Topic Classes: Care/Support, Lead/Referral, Mention, Promotion, Review, Complaint, Inquiry/Question, Compliment, News, Company/Brand (10 classes in total).

Ground truth labels for sentiment and topic were obtained through crowdsourcing via Amazon Mechanical Turk (AMT), employing a majority voting mechanism for label assignment to ensure quality. For evaluation, a subset of 500 tweets with majority-voted labels was used for testing, while the remaining tweets formed the training set.

Key Insights and Ideas

  • Interdependence is Key: The paper strongly demonstrates that sentiment and topic are not independent. Exploiting this correlation significantly boosts classification accuracy for both tasks.
  • Ambiguity is the Norm: Social media posts are often ambiguous. The multi-label approach is essential for accurately capturing the nuances of these posts, moving beyond simplistic single-label assignments.
  • Iterative Refinement Works: The iterative nature of the MTML model, where predictions from one task inform the other, allows for a more robust and accurate classification outcome.
  • Topic Helps Sentiment, Sentiment Helps Topic: The study suggests that incorporating sentiment labels can be particularly helpful in distinguishing between topics, and vice-versa.

Key Results

The MTML model consistently outperformed baseline methods across various experimental settings:

  • Overall Accuracy: Achieved an accuracy of 0.744 for sentiment classification and 0.558 for topic classification.
  • Improvements over ME/EPME: MTML improved sentiment accuracy by 5% and topic accuracy by 12% compared to the Maximum Entropy (ME) and EM with Prior on Maximum Entropy (EPME) baselines.
  • Performance on Reorganized Datasets: Even when the multi-task, multi-label problem was converted into single-task, single-label settings (using LP and DMI methods), the MTML model still showed superior performance.
  • Class-Specific Performance: MTML performed particularly well on larger, more explicit classes like "Complaint" and "Promotion" (e.g., 0.869 and 0.853 accuracy respectively). However, it was noted that simpler models like NB sometimes outperformed MTML on very small classes.

Limitations and Future Work

  • Class Imbalance: The topic classes exhibit unbalanced distributions, with some classes having very few instances. The authors suggest that increasing the dataset size could help improve accuracy for these under-represented classes.
  • Extending to More Tasks: The authors plan to explore incorporating more related classification tasks beyond just sentiment and topic.
  • Hybrid Approaches: Investigating hybrid models that combine crowdsourcing for challenging tasks with algorithm-based classification for the rest is a promising future direction.
  • Improving Accuracy: While the model shows superior performance, the authors aim to further improve accuracy by exploring additional ideas.

Summary updated

Abstract

Both sentiment analysis and topic classification are frequently used in customer care and marketing. They can help people understand the brand perception and customer opinions from social media, such as online posts, tweets, forums, and blogs. As such, in recent years, many solutions have been proposed for both tasks. However, we believe that the following two problems have not been addressed adequately: (1) Conventional solutions usually treat the two tasks in isolation. When the two tasks are closely related (e.g., posts about "customer care" often have a "negative" tone), exploring their correlation may yield a better accuracy; (2) Each post is usually assigned with only one sentiment label and one topic label. Since social media is, compared to traditional document corpus, more noisy, ambiguous, and sparser, single label classification may not be able to capture the post classes accurately. To address these two problems, in this paper, we propose a multi-task multi-label (MTML) classification model that performs classification of both sentiments and topics concurrently. It incorporates results of each task from prior steps to promote and reinforce the other iteratively. For each task, the model is trained with multiple labels so that they can help address class ambiguity. In the empirical validation, we compare the accuracy of MTML model against four competing methods in two different settings. Results show that MTML produces a much higher accuracy of both sentiment and topic classifications.
BibTeX
@misc{huang2013sentiment,
  author = {Shu Huang and Wei Peng and Jingxuan Li and Dongwon Lee},
  title = {{Sentiment and topic analysis on social media}},
  year = {2013},
  doi = {10.1145/2464464.2464512},
}
Figure