[Paper Review] An Ensemble Model for Sentiment Analysis of Hindi-English Code-Mixed Data
This paper proposes an ensemble model combining a character-trigram-based LSTM and a word-ngram-based Multinomial Naive Bayes (MNB) classifier for sentiment analysis on Hindi-English code-mixed social media text. By leveraging sequential pattern learning from LSTM and keyword polarity detection from MNB, the ensemble achieves state-of-the-art performance, attaining 70.8% accuracy on a real-world dataset, outperforming both traditional and deep learning baselines.
In multilingual societies like India, code-mixed social media texts comprise the majority of the Internet. Detecting the sentiment of the code-mixed user opinions plays a crucial role in understanding social, economic and political trends. In this paper, we propose an ensemble of character-trigrams based LSTM model and word-ngrams based Multinomial Naive Bayes (MNB) model to identify the sentiments of Hindi-English (Hi-En) code-mixed data. The ensemble model combines the strengths of rich sequential patterns from the LSTM model and polarity of keywords from the probabilistic ngram model to identify sentiments in sparse and inconsistent code-mixed data. Experiments on reallife user code-mixed data reveals that our approach yields state-of-the-art results as compared to several baselines and other deep learning based proposed methods.
Motivation & Objective
- To address the challenge of sentiment analysis in low-resource, noisy, and linguistically inconsistent Hindi-English code-mixed social media texts.
- To overcome the limitations of deep learning models in handling rare or out-of-vocabulary tokens common in code-mixed data.
- To improve sentiment classification accuracy by combining the strengths of sequential modeling (LSTM) and keyword-level polarity detection (MNB).
- To validate the hypothesis that traditional n-gram models can enhance deep learning models in low-resource code-mixed settings.
- To present a robust, hybrid approach that generalizes better than standalone models on sparse and inconsistent code-mixed data.
Proposed method
- The model uses character trigrams as sub-word features in a bidirectional LSTM network to capture sequential and morphological patterns in code-mixed text.
- A separate Multinomial Naive Bayes (MNB) classifier is trained on word n-grams (unigrams and bigrams) to detect sentiment from keyword combinations.
- The outputs of both models are combined using probability multiplication, weighted by their respective validation set accuracy to produce the final prediction.
- The ensemble strategy leverages LSTM’s ability to model long-range dependencies and MNB’s strength in detecting sentiment from rare or slang keywords.
- The final prediction is made by selecting the class with the highest combined probability from the product of individual model probabilities.
- The method is evaluated on a real-life Hindi-English code-mixed dataset, with hyperparameters tuned on a development set.
Experimental results
Research questions
- RQ1Can a hybrid model combining deep learning and traditional probabilistic models improve sentiment classification accuracy on low-resource, code-mixed Hindi-English text?
- RQ2How do character-trigram-based LSTMs and word-ngram-based MNB models complement each other in handling linguistic sparsity and inconsistency in code-mixed data?
- RQ3Does the integration of n-gram features from MNB help mitigate the generalization failure of LSTMs on rare or misspelled sentiment-bearing words?
- RQ4What is the optimal method for combining the outputs of a deep learning model and a traditional classifier in this context?
- RQ5To what extent does the ensemble model outperform standalone deep learning and traditional machine learning baselines on code-mixed sentiment analysis?
Key findings
- The proposed ensemble model achieves 70.8% accuracy on the test set, outperforming all baseline models, including SVM, MNB, and other deep learning approaches.
- The ensemble model achieves an F1-score of 0.661, significantly higher than the next best model (sub-word composition-based LSTM at 0.652).
- The multiplication-based fusion of model probabilities yielded better performance (70.8%) than the weighted-linear combination (69.1%), indicating stronger synergy between the models.
- Qualitative analysis shows that the MNB model excels in detecting sentiment from rare or slang keywords like 'fadu' (awesome) or 'c******' (stupid), which LSTM fails to generalize due to low frequency in training data.
- The LSTM model performs better on longer, complex sentences due to its ability to model sequential dependencies, while MNB is more robust to spelling variations and lexical diversity.
- The results validate the hypothesis that combining sequential modeling with keyword-level polarity detection improves robustness and accuracy in low-resource, noisy code-mixed environments.
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.