Sentiment Analysis of Political Parties on social media: A Machine Learning and Lexicon-Based Approach

  • Mr. Swapnil P. Goje
  • Dr. Rupali H. Patil
N/ACitations
Citations of this article
12Readers
Mendeley users who have this article in their library.

Abstract

Social media platforms like Facebook, Twitter, Instagram, and YouTube have become central to communication and entertainment, with users sharing opinions on various topics. These opinions, often categorized as positive, negative, or neutral sentiments, provide valuable data for sentiment analysis. Our research analyzed political YouTube comments related to India’s Bhartiya Janata Party (BJP) and Indian National Congress (INC) using a combination of the AFINN lexicon and machine learning techniques. We applied feature representation methods such as Bag of Words (BoW) and Term Frequency-Inverse Document Frequency (TF-IDF), alongside five machine learning algorithms: Multinomial Naïve Bayes, Logistic Regression, Random Forest, Support Vector Machine (SVM), and K-nearest neighbor (K-NN). We aimed to determine the most efficient sentiment analysis approach by comparing the performance of these models using standard evaluation metrics. For the BJP dataset, Logistic Regression performed best with BoW, while SVM was most effective with TF-IDF. Similarly, for the INC dataset, Random Forest excelled with BoW, and SVM outperformed others with TF-IDF. The AFINN lexicon showed poor performance across both datasets, and K-NN consistently achieved lower accuracy. Our findings suggest that SVM and Random Forest are more suitable for political sentiment analysis.

Cite

CITATION STYLE

APA

Mr. Swapnil P. Goje, & Dr. Rupali H. Patil. (2024). Sentiment Analysis of Political Parties on social media: A Machine Learning and Lexicon-Based Approach. International Journal of Scientific Research in Computer Science, Engineering and Information Technology, 10(5), 233–246. https://doi.org/10.32628/cseit24105103

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free