Skip to main content
QUICK REVIEW

[Paper Review] Code-Mixed Sentiment Analysis Using Machine Learning and Neural Network Approaches

Pruthwik Mishra, Prathyusha Danda|arXiv (Cornell University)|Aug 9, 2018
Natural Language Processing TechniquesComputer Science11 references12 citations
TL;DR

This paper presents a machine learning and neural network approach for code-mixed sentiment analysis on Indian language pairs (Hi-En and Ben-Hi-En), using TF-IDF character n-grams (n=2 to 6) with linear SVM and ensemble voting classifiers. The linear SVM model (Run2) achieved the highest performance, securing first place in the SAIL-Code Mixed tools contest with F-scores of 0.569 (Hi-En) and 0.526 (Ben-Hi-En).

ABSTRACT

Sentiment Analysis for Indian Languages (SAIL)-Code Mixed tools contest aimed at identifying the sentence level sentiment polarity of the code-mixed dataset of Indian languages pairs (Hi-En, Ben-Hi-En). Hi-En dataset is henceforth referred to as HI-EN and Ben-Hi-En dataset as BN-EN respectively. For this, we submitted four models for sentiment analysis of code-mixed HI-EN and BN-EN datasets. The first model was an ensemble voting classifier consisting of three classifiers - linear SVM, logistic regression and random forests while the second one was a linear SVM. Both the models used TF-IDF feature vectors of character n-grams where n ranged from 2 to 6. We used scikit-learn (sklearn) machine learning library for implementing both the approaches. Run1 was obtained from the voting classifier and Run2 used the linear SVM model for producing the results. Out of the four submitted outputs Run2 outperformed Run1 in both the datasets. We finished first in the contest for both HI-EN with an F-score of 0.569 and BN-EN with an F-score of 0.526.

Motivation & Objective

  • To address the challenge of sentiment analysis in code-mixed Indian language text, particularly in Hindi-English (Hi-En) and Bengali-Hindi-English (Ben-Hi-En) language pairs.
  • To develop robust machine learning and neural network models capable of accurately classifying sentence-level sentiment polarity in low-resource, mixed-language text.
  • To participate in and achieve top performance in the SAIL-Code Mixed tools contest for code-mixed sentiment analysis.
  • To compare the effectiveness of ensemble voting classifiers versus standalone linear SVM models in this low-resource, multilingual setting.

Proposed method

  • Feature extraction using TF-IDF vectors of character n-grams with n ranging from 2 to 6 to capture subword linguistic patterns.
  • Implementation of a voting ensemble classifier combining linear SVM, logistic regression, and random forests for improved generalization.
  • Use of a standalone linear SVM model as a baseline and alternative approach for comparison.
  • Model training and evaluation using the scikit-learn (sklearn) library on the SAIL-Code Mixed dataset.
  • Submission of four model outputs, with Run1 (ensemble) and Run2 (linear SVM) used for performance comparison.
  • Evaluation based on F-score in the SAIL-Code Mixed tools contest for both Hi-En and Ben-Hi-En datasets.

Experimental results

Research questions

  • RQ1How effective is a linear SVM model with TF-IDF character n-grams for sentiment classification in code-mixed Hindi-English text?
  • RQ2Can an ensemble of diverse classifiers outperform individual models in code-mixed sentiment analysis for low-resource language pairs?
  • RQ3What is the relative performance of machine learning models versus neural network approaches in this specific code-mixed sentiment task?
  • RQ4How do TF-IDF character n-grams compare to other feature representations in capturing sentiment in code-mixed Indian languages?
  • RQ5What level of performance can be achieved on the SAIL-Code Mixed dataset using traditional machine learning methods alone?

Key findings

  • The linear SVM model (Run2) outperformed the ensemble voting classifier (Run1) on both the Hi-En and Ben-Hi-En datasets.
  • The linear SVM achieved an F-score of 0.569 on the Hi-En dataset, securing first place in the SAIL-Code Mixed tools contest.
  • The linear SVM achieved an F-score of 0.526 on the Ben-Hi-En dataset, also ranking first in the contest.
  • The ensemble model (Run1) delivered lower performance than the standalone linear SVM, indicating that model complexity did not improve results in this context.
  • TF-IDF character n-grams (n=2 to 6) proved effective for capturing sentiment-relevant patterns in code-mixed text.
  • The results demonstrate that traditional machine learning models with appropriate feature engineering can achieve state-of-the-art performance in low-resource code-mixed sentiment analysis tasks.

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.