Enhancing Multi-Emotion Detection in Text: A Comparative Study of Feature Extraction Techniques and Machine Learning Models
Emotion detection in text is one of the major tasks in NLP that might have tremendous applications in sentiment analysis, human-computer interaction, and mental health diagnosis. This study evaluates the performance of various feature extraction techniques and classification models for multi-emotion detection, using a dataset of 15,996 samples divided with six emotion labels: Sadness, Joy, Love, Anger, Fear, and Surprise. Three feature extraction methods—TF-IDF, Count Vectorization, and N-grams—were applied to preprocess the text data. Six models—KNN, SVM, NB, DT, LR, and BiLSTM—were then used to classify emotions. The best results among the 18 feature-model combinations are TF-IDF with SVM at 86.15%, Count Vectorization with Logistic Regression at 86.25%, and N-grams with SVM at 86.06%. N-grams combined with LR also performed well, achieving an accuracy of 88.09%, underlining the importance of capturing contextual and sequential information in text classification. This research contributes to improving NLP-based emotion detection systems and provides insights for future work, particularly in domains requiring nuanced emotion recognition from text data.
Authors
- Khan Md. Hasib (ORCID: https://orcid.org/0000-0001-6504-4192)
- M. F. Mridha (ORCID: https://orcid.org/0000-0001-5738-1631)
- Mohammad Tanvir Parvez (ORCID: https://orcid.org/0000-0001-9033-014X)
- Meherunnesa Hossain Ibnath
Institutions
- American International University-Bangladesh (BD)
- Ahsanullah University of Science and Technology (BD)
- Bangladesh Medical University (BD)
- Bangladesh University of Business and Technology (BD)
Publication Details
- Published
- 2025-02-13
- DOI
- https://doi.org/10.1109/ecce64574.2025.11013403
- Citations
- 2
- Primary Topic
- Sentiment Analysis and Opinion Mining
- Type
- article
- Field-Weighted Citation Impact
- 4.96