Skip to main content
QUICK REVIEW

[Paper Review] Comparison of Classical Machine Learning Approaches on Bangla Textual Emotion Analysis

Md. Ataur Rahman, Md. Hanif Seddiqui|arXiv (Cornell University)|Jul 18, 2019
Sentiment Analysis and Opinion MiningComputer Science5 references14 citations
TL;DR

This paper proposes a fine-grained Bangla textual emotion analysis system using classical machine learning models on a manually annotated corpus of 6,314 Facebook comments. The best-performing model, a non-linear SVM with an RBF kernel using unigram and TF-IDF features, achieved 52.98% accuracy and a macro F1-score of 0.3324, significantly outperforming baseline models.

ABSTRACT

Detecting emotions from text is an extension of simple sentiment polarity detection. Instead of considering only positive or negative sentiments, emotions are conveyed using more tangible manner; thus, they can be expressed as many shades of gray. This paper manifests the results of our experimentation for fine-grained emotion analysis on Bangla text. We gathered and annotated a text corpus consisting of user comments from several Facebook groups regarding socio-economic and political issues, and we made efforts to extract the basic emotions (sadness, happiness, disgust, surprise, fear, anger) conveyed through these comments. Finally, we compared the results of the five most popular classical machine learning techniques namely Naive Bayes, Decision Tree, k-Nearest Neighbor (k-NN), Support Vector Machine (SVM) and K-Means Clustering with several combinations of features. Our best model (SVM with a non-linear radial-basis function (RBF) kernel) achieved an overall average accuracy score of 52.98% and an F1 score (macro) of 0.3324

Motivation & Objective

  • To develop and annotate a high-quality, balanced Bangla emotion corpus for fine-grained emotion classification.
  • To evaluate classical machine learning models on Bangla text for detecting six basic emotions: sadness, happiness, disgust, surprise, fear, and anger.
  • To compare the performance of five classical classifiers—Naïve Bayes, Decision Tree, k-NN, SVM, and K-Means Clustering—across multiple feature combinations.
  • To identify the optimal feature set and hyperparameters for emotion classification in low-resource Bangla text.
  • To establish a benchmark for future research in Bangla emotion analysis using classical ML approaches.

Proposed method

  • Collected and manually annotated 6,314 Bangla social media comments from Facebook groups discussing socio-political issues.
  • Preprocessed text using POS tagging (Bengali Dandapat et al. 2009), stopword removal, and normalization to handle morphological variations.
  • Extracted multiple feature sets: unigrams, n-grams (1–3), TF-IDF, and POS tags, using scikit-learn’s feature extraction pipeline.
  • Trained and evaluated five classical classifiers: Naïve Bayes, Decision Tree, k-NN, SVM (linear and non-linear RBF), and K-Means Clustering.
  • Optimized hyperparameters for SVM using grid search over C (1.0–3.0) and gamma (0.1–1.0) values, with RBF kernel selected as optimal.
  • Evaluated models using accuracy, macro and micro F1-scores, and confusion matrices to analyze class-wise performance and misclassification patterns.

Experimental results

Research questions

  • RQ1Which classical machine learning model performs best for fine-grained Bangla emotion classification across six emotion categories?
  • RQ2How do different feature combinations (e.g., unigram, TF-IDF, n-grams, POS tags) impact the performance of emotion classifiers on Bangla text?
  • RQ3What is the optimal hyperparameter configuration for an SVM model with an RBF kernel in this context?
  • RQ4How does the performance of unsupervised K-Means clustering compare to supervised models in Bangla emotion classification?
  • RQ5To what extent does the inclusion of POS tags and stopword filtering improve classification performance?

Key findings

  • The SVM with a non-linear RBF kernel achieved the highest accuracy of 52.98% and macro F1-score of 0.3324, outperforming all other models.
  • The best feature combination for the SVM model was unigrams with TF-IDF weighting, yielding the highest performance across all metrics.
  • The micro F1-score of the best model was 0.476, indicating moderate overall classification consistency across all emotion classes.
  • K-Means clustering performed poorly, with a maximum V-measure of 0.049 and Adjusted Rand-Index of 0.059, indicating weak clustering quality.
  • The Decision Tree model achieved the second-best accuracy (44.2%) with unigram and TF-IDF features, but significantly lower F1 scores than the SVM.
  • The model showed strong performance on 'happy' (F1: 0.742) and 'angry' (F1: 0.565) classes, but struggled with 'disgust' and 'fear' (F1 < 0.05), indicating class imbalance or ambiguity issues.

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.