An Ensemble Technique to Classify Multi-Class Textual Emotion
Tanzia Parvin, Mohammed Moshiul Hoque
Abstract
Classifying textual emotion plays a critical role in several HCI applications where the text is utilized as a central means of communication such as messages, reviews, blogs and other Web 2.0 platforms. The extensive usage of the Internet has emerged as an unprecedented means for people to express their feelings or emotion on blogs, social media, and e-commerce sites in recent years. Most of the emotions displayed on the online platforms are in textual forms (such as posts, tweets, comments and reviews), which are unorganized and time-consuming to structured due to their disordered forms. Although several emotion analysis tools are available in high-resource languages, it is critical to developing an automatic emotion classification system for low-resource languages, including Bengali, due to its constrained resources. This paper presents an ML-based ensemble method to classify six primary textual emotions (anger, fear, disgust, sadness, surprise and joy) from Bengali texts. An emotion corpus containing 8047 Bengali texts is developed to perform the textual emotion classification task. This work investigates eight standard ML-based techniques such as logistic regression (LR), multinomial naive Bayes (MNB), support vector machine (SVM), random forest (RF), decision tree (DT), K-nearest neighbour (KNN) and adaptive boosting (AdaBoost) and an ensemble method (a combination of LR, RF, SVM) with Bag of words (BoW) and tf-idf feature extraction techniques. The experimental result demonstrates that the ensemble with tf-idf achieved the highest weighted f1-score of 62.39% compared to other methods.