JOURNAL ARTICLE

Emotion Detection from Textual Data Using Supervised Machine Learning Models

Abstract

Emotion detection and recognition from text is a recent field of research that is closely related to Sentiment analysis. Many people express themselves using text, photographs, music, and video. Text communication using web-based networking platforms, however, could be a little overwhelming. Every second, a substantial amount of unstructured data is produced on the Internet as a result of social media sites. This is where sentiment analysis, which recognises polarity in texts, can be useful. It assesses the author's attitude towards a specific object, administration, person, or location and concludes if it is positive, negative, or neutral. In some cases, sentiment analysis is inadequate, necessitating emotion detection, which precisely ascertains a person's mental/emotional state. The development of a text-based emotion detection and prediction model is the primary goal of this work. The development of emotion analysis is confronting several market hurdles, with accuracy being the key one. As a result, the Decision Trees, Naive Bayes, Support Vector Machine, Logistic Regression, k-Nearest Neighbors and Random Forest, supervised machine learning classification algorithms were examined. The six main emotions recognized by Ekman are joy, fear, anger, love, surprise, and sadness, these were the foundation through which the model was constructed. strategies for preprocessing data containing stemming, stop-words, numerals, and punctuation marks removal, tokenization, and spelling correction were implemented. This review paper delves into the degrees of several emotion models as well as the technique of emotion detection from text.

Keywords:
Computer science Sentiment analysis Artificial intelligence Machine learning Support vector machine Lexical analysis Social media Natural language processing Emotion detection Naive Bayes classifier Emotion classification Sadness Information retrieval Anger World Wide Web Psychology Emotion recognition Social psychology

Metrics

12
Cited By
3.07
FWCI (Field Weighted Citation Impact)
32
Refs
0.90
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Sentiment Analysis and Opinion Mining
Physical Sciences →  Computer Science →  Artificial Intelligence
Text and Document Classification Technologies
Physical Sciences →  Computer Science →  Artificial Intelligence
Advanced Text Analysis Techniques
Physical Sciences →  Computer Science →  Artificial Intelligence
© 2026 ScienceGate Book Chapters — All rights reserved.