[Paper Review] Sentiment Analysis of Code-Mixed Social Media Text (Hinglish)
This paper presents a comprehensive study on sentiment analysis of Hinglish (Hindi-English code-mixed) Twitter text using multiple NLP techniques. It applies iterative data cleaning, various feature extraction methods (TF-IDF, word embeddings), and diverse machine learning models, achieving the best F1-score of 69.07 with an ensemble voting classifier on the SemEval-2020 Task 9 dataset.
This paper discusses the results obtained for different techniques applied for performing the sentiment analysis of social media (Twitter) code-mixed text written in Hinglish. The various stages involved in performing the sentiment analysis were data consolidation, data cleaning, data transformation and modelling. Various data cleaning techniques were applied, data was cleaned in five iterations and the results of experiments conducted were noted after each iteration. Data was transformed using count vectorizer, one hot vectorizer, tf-idf vectorizer, doc2vec, word2vec and fasttext embeddings. The models were created using various machine learning algorithms such as SVM, KNN, Decision Trees, Random Forests, Naive Bayes, Logistic Regression, and ensemble voting classifiers. The data was obtained from a task on Codalab competition website which was listed as Task:9 on the Semeval-2020 competition website. The models created were evaluated using the F1-score (macro). The best F1-score of 69.07 was achieved using ensemble voting classifier.
Motivation & Objective
- To address the challenge of sentiment analysis in low-resource, code-mixed social media text, particularly Hinglish (Hindi-English mixed) content.
- To evaluate the effectiveness of various data preprocessing, feature engineering, and machine learning techniques on code-mixed text.
- To identify the optimal combination of preprocessing, feature extraction, and modeling approaches for sentiment classification in Hinglish.
- To contribute a reproducible pipeline for sentiment analysis on multilingual, informal social media text.
Proposed method
- Data was collected from the SemEval-2020 Task 9 competition on Codalab, focusing on Hinglish Twitter posts.
- Iterative data cleaning was applied in five stages to improve text quality and consistency.
- Feature representation was performed using count vectorizer, one-hot encoding, TF-IDF, and word embeddings (Word2Vec, FastText, Doc2Vec).
- Multiple machine learning models were trained, including SVM, KNN, Decision Trees, Random Forests, Naive Bayes, Logistic Regression, and ensemble voting classifiers.
- Model evaluation was conducted using macro F1-score to account for class imbalance in the sentiment labels.
- The ensemble voting classifier combined predictions from multiple base models to improve overall performance.
Experimental results
Research questions
- RQ1Which data cleaning strategy yields the most effective improvement in sentiment classification performance for Hinglish text?
- RQ2How do different feature representation techniques (e.g., TF-IDF vs. word embeddings) impact model accuracy on code-mixed text?
- RQ3Which machine learning algorithm performs best for sentiment classification on Hinglish social media content?
- RQ4Can ensemble methods outperform individual models in this low-resource, code-mixed NLP setting?
- RQ5What is the optimal pipeline combining preprocessing, feature extraction, and modeling for sentiment analysis in Hinglish?
Key findings
- The iterative data cleaning process significantly improved model performance, with the best results observed after five cleaning iterations.
- The ensemble voting classifier achieved the highest F1-score of 69.07, outperforming all individual models.
- TF-IDF and word embedding-based features (especially FastText) showed strong performance, with TF-IDF slightly outperforming others in some configurations.
- Among individual models, Random Forest and SVM showed relatively high F1-scores, but were surpassed by the ensemble approach.
- The study confirms that combining multiple models through voting is an effective strategy for improving sentiment classification in code-mixed, low-resource text.
- The results demonstrate that careful preprocessing and feature engineering are critical for achieving high performance on informal, multilingual social media text.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.