Enhancing Emotion Detection in Textual Data: A Comparative Analysis of Machine Learning Models and Feature Extraction Techniques

The digital age has resulted in a massive increase in the amount of available textual data, including articles, comments, texts, and updates on social networks. The value of analyzing such a large volume of data extends to many other industries and applications, as it provides important insights into the perspectives of customers, strategic decision-making, and market demands. Detecting emotions in texts faces challenges due to linguistic patterns and cultural nuances. This study proposes a system capable of accurately identifying emotions expressed in text using a variety of machine learning models, including logistic regression, extra randomized tree, voting, SGD, and LinearSVC. It also employs different feature extraction techniques, such as TF-IDF, Bag-of-Words, and N-grams, comparing their performance in these models. An evaluation was carried out using two English emotion datasets, namely ISEAR and AIT-2018, using F1 score, accuracy, recall, and precision. The findings demonstrate the ability and effectiveness of the system to detect emotions conveyed within texts. The LinearSVC model with N-grams achieved the highest accuracy of 88.63% on the ISEAR dataset, while the extra randomized tree classifier with N-grams achieved 89.14% accuracy on the AIT-2018 dataset. Furthermore, the SGD model with TF-IDF achieved 88.18% and 84.54% accuracy on the ISEAR and the AIT-2018 datasets, respectively.

Authors

Institutions

Publication Details

Journal
Engineering Technology & Applied Science Research
Published
2024-10-09
DOI
https://doi.org/10.48084/etasr.7806
Citations
6
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
2.08
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing Emotion Detection in Textual Data: A Comparative Analysis of Machine Learning Models and Feature Extraction Techniques

Majid Khalaf Alshammari, Amer A. Sallam, Wedad Q. A. Saif, Badiea Abdulkarem Mohammed
6 citations
Engineering Technology & Applied Science Research
Sentiment Analysis and Opinion Mining
2.08
article

Enhancing Emotion Detection in Textual Data: A Comparative Analysis of Machine Learning Models and Feature Extraction Techniques

Majid Khalaf Alshammari, Amer A. Sallam, Wedad Q. A. Saif, Badiea Abdulkarem Mohammed
article en
6 citations

Abstract

The digital age has resulted in a massive increase in the amount of available textual data, including articles, comments, texts, and updates on social networks. The value of analyzing such a large volume of data extends to many other industries and applications, as it provides important insights into the perspectives of customers, strategic decision-making, and market demands. Detecting emotions in texts faces challenges due to linguistic patterns and cultural nuances. This study proposes a system capable of accurately identifying emotions expressed in text using a variety of machine learning models, including logistic regression, extra randomized tree, voting, SGD, and LinearSVC. It also employs different feature extraction techniques, such as TF-IDF, Bag-of-Words, and N-grams, comparing their performance in these models. An evaluation was carried out using two English emotion datasets, namely ISEAR and AIT-2018, using F1 score, accuracy, recall, and precision. The findings demonstrate the ability and effectiveness of the system to detect emotions conveyed within texts. The LinearSVC model with N-grams achieved the highest accuracy of 88.63% on the ISEAR dataset, while the extra randomized tree classifier with N-grams achieved 89.14% accuracy on the AIT-2018 dataset. Furthermore, the SGD model with TF-IDF achieved 88.18% and 84.54% accuracy on the ISEAR and the AIT-2018 datasets, respectively.

Engineering Technology & Applied Science ResearchVol. 14(5)
Universiti Sains Malaysia (MY), Taiz University (YE), University of Ha'il (SA)
Peace, Justice and strong institutions
Openalex Percentile: Top 11%
Sentiment Analysis and Opinion Mining
2.08
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.