Skip to main content
QUICK REVIEW

[Paper Review] Sentiment Identification in Code-Mixed Social Media Text

Souvick Ghosh, Satanu Ghosh|arXiv (Cornell University)|Jul 4, 2017
Sentiment Analysis and Opinion MiningComputer Science25 references36 citations
TL;DR

This paper presents the first machine learning-based sentiment classifier for code-mixed social media text, focusing on bilingual Facebook posts in English and Bengali. Using a multilayer perceptron with word-level, semantic, and syntactic features, the model achieves 68.5% accuracy in classifying sentiment as positive, negative, or neutral, with POS tags and polar smiley lists being the most impactful features.

ABSTRACT

Sentiment analysis is the Natural Language Processing (NLP) task dealing with the detection and classification of sentiments in texts. While some tasks deal with identifying the presence of sentiment in the text (Subjectivity analysis), other tasks aim at determining the polarity of the text categorizing them as positive, negative and neutral. Whenever there is a presence of sentiment in the text, it has a source (people, group of people or any entity) and the sentiment is directed towards some entity, object, event or person. Sentiment analysis tasks aim to determine the subject, the target and the polarity or valence of the sentiment. In our work, we try to automatically extract sentiment (positive or negative) from Facebook posts using a machine learning approach.While some works have been done in code-mixed social media data and in sentiment analysis separately, our work is the first attempt (as of now) which aims at performing sentiment analysis of code-mixed social media text. We have used extensive pre-processing to remove noise from raw text. Multilayer Perceptron model has been used to determine the polarity of the sentiment. We have also developed the corpus for this task by manually labeling Facebook posts with their associated sentiments.

Motivation & Objective

  • Address the lack of sentiment analysis tools for code-mixed social media texts, particularly bilingual English-Bengali content.
  • Develop a gold-standard dataset of 565 manually annotated Facebook posts with sentiment polarity (positive, negative, neutral).
  • Improve sentiment classification performance through tailored feature engineering for informal, noisy, code-mixed social media text.
  • Investigate the impact of diverse feature types—word-level, semantic, syntactic, and stylistic—on sentiment classification accuracy.
  • Overcome challenges such as sarcasm, negation, and context switching in low-resource, multilingual social media text.

Proposed method

  • Collected and pre-processed 882 Facebook posts, removing noise, normalizing spelling, and translating abbreviations.
  • Constructed a gold-standard dataset by having two human annotators label sentiment polarity, retaining only 565 posts with unanimous agreement (kappa = 0.4354).
  • Extracted features including word-level (e.g., sentiment lexicons), semantic (e.g., SWN, OL, ESW, BSW, CBW), syntactic (POS tags: JJ, RB, RB_JJ), and stylistic features (UW, E, Q, R, CS, S1, S2).
  • Trained a multilayer perceptron (MLP) model using combinations of these features to classify sentiment polarity.
  • Evaluated performance using accuracy, precision, recall, and F-measure, with ablation studies to assess feature impact.
  • Used iterative feature addition and individual feature elimination to identify the most influential features in classification.

Experimental results

Research questions

  • RQ1How effective is a multilayer perceptron model in classifying sentiment in code-mixed social media text compared to baseline approaches?
  • RQ2Which combination of word-level, semantic, syntactic, and stylistic features yields the highest accuracy in sentiment classification?
  • RQ3What is the impact of including stylistic features (e.g., uppercase words, emoticons) on classification performance?
  • RQ4How do individual features contribute to classification, and which features are most critical for accurate sentiment detection?
  • RQ5To what extent does the model’s performance suffer from bias toward neutral sentiment, and how can this be mitigated?

Key findings

  • The best-performing model achieved 68.5% accuracy using a combination of word-based (Group 1) and syntactic features (Group 2), outperforming the baseline model (55.2% accuracy).
  • The inclusion of style-based features (UW, E, Q, R, CS) reduced accuracy, indicating they may introduce noise in code-mixed text.
  • Eliminating POS tags (JJ, RB, RB_JJ) and the polar smiley list caused the largest drop in accuracy (to 60.6%), highlighting their critical role.
  • Removing BSW (Bengali-specific words) did not affect accuracy, suggesting that traditional lexicons are less effective for social media code-mixed text.
  • The model showed a significant bias toward neutral classification, with 23 positive and 10 negative posts misclassified as neutral, indicating room for improvement in handling polarity imbalance.
  • The confusion matrix revealed that neutral class had the highest recall (85.7%), while positive and negative classes had lower F-measures (0.55 and 0.513, respectively), indicating classification challenges for non-neutral sentiments.

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.