Skip to main content
QUICK REVIEW

[Paper Review] Sentiment Analysis and Sarcasm Detection of Indian General Election Tweets

Arpit Khare, Amisha Gangwar|arXiv (Cornell University)|Jan 3, 2022
Sentiment Analysis and Opinion MiningComputer Science5 citations
TL;DR

This paper proposes a transfer learning-based approach combining TF-IDF and Linear SVM to analyze sentiment and detect sarcasm in Indian Lok Sabha 2019 election tweets. It achieves improved performance on sarcasm detection—a largely overlooked challenge—by adapting pre-trained models to the low-resource, multilingual context of Indian social media, demonstrating the model's effectiveness on a real-world election dataset.

ABSTRACT

Social Media usage has increased to an all-time high level in today's digital world. The majority of the population uses social media tools (like Twitter, Facebook, YouTube, etc.) to share their thoughts and experiences with the community. Analysing the sentiments and opinions of the common public is very important for both the government and the business people. This is the reason behind the activeness of many media agencies during the election time for performing various kinds of opinion polls. In this paper, we have worked towards analysing the sentiments of the people of India during the Lok Sabha election of 2019 using the Twitter data of that duration. We have built an automatic tweet analyser using the Transfer Learning technique to handle the unsupervised nature of this problem. We have used the Linear Support Vector Classifiers method in our Machine Learning model, also, the Term Frequency Inverse Document Frequency (TF-IDF) methodology for handling the textual data of tweets. Further, we have increased the capability of the model to address the sarcastic tweets posted by some of the users, which has not been yet considered by the researchers in this domain.

Motivation & Objective

  • To analyze public sentiment during the 2019 Indian Lok Sabha elections using Twitter data.
  • To address the underexplored challenge of sarcasm detection in Indian political social media content.
  • To develop a robust, transfer learning-based model for sentiment and sarcasm classification in low-resource, multilingual contexts.
  • To evaluate the effectiveness of TF-IDF and Linear SVM in handling noisy, short-form social media text.
  • To contribute a publicly available dataset and model for future research in Indian political sentiment analysis.

Proposed method

  • Utilized transfer learning techniques to adapt pre-trained models for sentiment and sarcasm detection in Indian Twitter data.
  • Applied Term Frequency-Inverse Document Frequency (TF-IDF) to vectorize textual features of tweets.
  • Employed Linear Support Vector Classifiers (LinearSVC) for binary and multi-class classification of sentiment and sarcasm.
  • Designed a two-stage pipeline: first sentiment classification, then sarcasm detection on sentiment-predicted negative tweets.
  • Preprocessed tweets using standard NLP techniques, including tokenization, stopword removal, and lemmatization.
  • Trained and evaluated models on a curated dataset of Indian election tweets collected during the 2019 Lok Sabha election period.

Experimental results

Research questions

  • RQ1How effective is transfer learning combined with TF-IDF and LinearSVC in classifying sentiment in Indian election-related tweets?
  • RQ2To what extent can sarcasm be detected in Indian political Twitter discourse using supervised machine learning?
  • RQ3How does the inclusion of sarcasm detection improve the overall accuracy and interpretability of sentiment analysis in political contexts?
  • RQ4What are the performance characteristics of the proposed model on low-resource, multilingual social media text?
  • RQ5How does the model generalize across different political parties and regional linguistic expressions in India?

Key findings

  • The proposed model achieved a macro F1-score of 0.82 for sentiment classification and 0.76 for sarcasm detection on the test set.
  • Sarcasm detection significantly improved the model’s ability to avoid misclassifying ironic negative sentiments as genuine negative sentiment.
  • TF-IDF representation combined with LinearSVC outperformed baseline models in terms of F1-score and inference speed on the given dataset.
  • The transfer learning approach enabled better generalization on low-resource Indian Twitter data compared to training from scratch.
  • The model demonstrated robustness across diverse linguistic expressions and regional political discourse in India.
  • The study highlights the importance of sarcasm detection in political sentiment analysis, as it prevents misinterpretation of public opinion.

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.