| Literature DB >> 36052029 |
Santosh Kumar Bharti1, S Varadhaganapathy2, Rajeev Kumar Gupta1, Prashant Kumar Shukla3, Mohamed Bouye4, Simon Karanja Hingaa5, Amena Mahmoud6.
Abstract
Sentiment analysis is a method to identify people's attitudes, sentiments, and emotions towards a given goal, such as people, activities, organizations, services, subjects, and products. Emotion detection is a subset of sentiment analysis as it predicts the unique emotion rather than just stating positive, negative, or neutral. In recent times, many researchers have already worked on speech and facial expressions for emotion recognition. However, emotion detection in text is a tedious task as cues are missing, unlike in speech, such as tonal stress, facial expression, pitch, etc. To identify emotions from text, several methods have been proposed in the past using natural language processing (NLP) techniques: the keyword approach, the lexicon-based approach, and the machine learning approach. However, there were some limitations with keyword- and lexicon-based approaches as they focus on semantic relations. In this article, we have proposed a hybrid (machine learning + deep learning) model to identify emotions in text. Convolutional neural network (CNN) and Bi-GRU were exploited as deep learning techniques. Support vector machine is used as a machine learning approach. The performance of the proposed approach is evaluated using a combination of three different types of datasets, namely, sentences, tweets, and dialogs, and it attains an accuracy of 80.11%.Entities:
Mesh:
Year: 2022 PMID: 36052029 PMCID: PMC9427219 DOI: 10.1155/2022/2645381
Source DB: PubMed Journal: Comput Intell Neurosci
Figure 1Various types of Emotions.
Figure 2Pipelined model of proposed scheme.
Individual description of all the datasets.
| Dataset | Granularity | No. of emotions | Size | Description |
|---|---|---|---|---|
| ISEAR | Sentences | 7 emotions | 7666 | Studied in 37 countries |
| WASSA | Tweets | 4 emotions | 4334 | Tweets |
| Emotion-stimulus | Dialogs | 7 emotions | 2500 | — |
Figure 3Six types of emotions in our Dataset.
Figure 4Machine Learning model to detect emotions from text.
Figure 5GRU model to detect emotions from text.
Figure 6Bi-GRU model to detect emotions from Text.
Figure 7CNN model to detect emotions from text.
Figure 8Hybrid model to detect emotions from text.
Evaluation matrix for ML Classifiers
| ML classifier | Precision | Recall | F1 score | Accuracy |
|---|---|---|---|---|
| SVM |
|
|
|
|
| RF | 79.42 | 75.66 | 77.02 | 76.25 |
| NB | 61.75 | 51.41 | 49.61 | 68.94 |
| DT | 72.48 | 69.70 | 70.94 | 69.42 |
Evaluation matrix for with DL model.
| Deep learning | Precision | Recall | F1 score | Accuracy |
|---|---|---|---|---|
| GRU | 78.37 | 78.94 | 78.65 | 78.02 |
| Bi-GRU | 80.62 | 79.64 | 80.09 |
|
| CNN |
|
|
| 79.32 |
Evaluation matrix for our hybrid model.
| Hybrid | Precision | Recall | F1 score | Accuracy |
|---|---|---|---|---|
| CNN + Bi-GRU + SVM |
|
|
|
|