EmoBERTa-X: Enhanced Emotion Classifier
cognitive computing
Article
Computer Engineering Department, College of Engineering and Technology, Arab Academy for Science,
Technology and Maritime Transport, Alexandria 1029, Egypt; mazenelagamy@[Link]
* Correspondence: farahhlabib@[Link] (F.H.L.); sherine_nagi@[Link] (S.N.S)
Abstract: The rising prevalence of social media turns them into huge, rich repositories of hu-
man emotions. Understanding and categorizing human emotion from social media content
is of fundamental importance for many reasons, such as improvement of user experience,
monitoring of public sentiment, support for mental health, and enhancement of focused
marketing strategies. However, social media text is often unstructured and ambiguous;
hence, extracting meaningful emotional information is difficult. Thus, effective emotion
classification needs advanced techniques. This article proposes a novel model, EmoBERTa-
X, to enhance performance in multilabel emotion classification, particularly in informal and
ambiguous social media texts. Attention mechanisms combined with ensemble learning,
supported by preprocessing steps, help in avoiding issues such as class imbalance of the
dataset, ambiguity in short texts, and the inherent complexities of multilabel classification.
The experimental results on the GoEmotions dataset indicate that EmoBERTa-X has out-
performed state-of-the-art models on fine-grained emotion-detection tasks in social media
expressions with an accuracy increase of 4.32% over some popular approaches.
1. Introduction
Academic Editor: Domenico Ursino In today’s hyper-connected world, social media platforms like Facebook, Instagram,
Received: 17 November 2024
Reddit, and Twitter have become emotional microphones where people freely express their
Revised: 5 February 2025 happiness, dissatisfaction, and various other emotions. Considering the enormous amount
Accepted: 17 February 2025 of available user-generated content, there is an emerging need to understand these emotions
Published: 19 February 2025 by appropriate detection with confidence, using public sentiment analysis [1]. Emotion
Citation: Labib, F.H.; Elagamy, M.; classification is thus one of the important tasks of sentiment analysis that delineates the
Saleh, S.N. EmoBERTa-X: Advanced role of companies and academics in interpreting emotional cues. It finds applications in
Emotion Classifier with Multi-Head marketing and customer relationship domains wherein the identification of consumers’
Attention and DES for Multilabel
emotional responses could help develop better strategies [2,3].
Emotion Classification. Big Data Cogn.
Comput. 2025, 9, 48. [Link]
Emotion classification finds important applications in real-time services such as crisis
10.3390/bdcc9020048 intervention, where a timely detection of a distress signal from social media or any other
communication platform helps mental health professionals and emergency responders
Copyright: © 2025 by the authors.
Licensee MDPI, Basel, Switzerland.
reach out to them immediately, thus preventing further escalation. For example, studies
This article is an open access article have shown that methodologies for emotion classification go a long way in visually under-
distributed under the terms and standing emotional trends that may help authorities identify people in crises [4]. On the
conditions of the Creative Commons other hand, high-accuracy, real-time emotion detection has the potential to revolutionize
Attribution (CC BY) license human-computer interactions and offer a proactive approach toward mental health care by
([Link]
offering timely interventions and support for people affected by traumatic events [5].
licenses/by/4.0/).
from both the left and right of a target word [23]. Transformers have shown exceptional
effectiveness across a variety of NLP tasks, including emotion classification because they
can pre-train on vast corpora and fine-tune on specific tasks [22,23].
Transformers are a great invention, but they have many limitations. For instance,
short and unclear texts, which are frequently found on social media, are a challenge for
them [23]. Additionally, transformers struggle to generalize successfully in situations
involving informal language or slang, which differs among cultures and regions. For
instance, “This party is so lit I’m literally dead” if it were to mean something excitedly
happy, it might be misinterpreted by the transformer because of the words “dead” and “lit”
into something completely different. More importantly, expressions of this nature have
always been elusive in traditional sentiment analysis models since these informal language
characteristics can affect their performance in the text of social media [24]. Furthermore,
cultural awareness provides a strong basis for sentiment analysis, whereby language uses
vary across different speech communities and demands models that apply to various
linguistic contexts [25].
Furthermore, transformers are challenging to use in low-resource environments be-
cause they require significant computational for both training and inference [22]. In addi-
tion, transformers still have difficulties with multilabel classification, which is the catego-
rization of many emotions present in a single text passage, despite their improvements in
emotion classification [22]. Finally, hybrid models have been suggested as a solution to
the limitation of separate models. Combining the benefits of many models, such as CNNs
and LSTMs, these improve performance in emotion classification [26]. However, they also
continue to face challenges with multilabel classification and informal language, even with
gains in performance; this is especially true when it comes to social media [27].
Although emotion classification has evolved, it is still facing a tough task given short
sentences, informal language, and multilabel classification, which are very common on
social media platforms. Deep learning models, including transformer-based, require exten-
sive processing resources and large datasets, showing poor results in handling multilabel
and informal text. Emotion classification on social media presents unique challenges
due to informal and ambiguous text. Although traditional models struggle to generalize,
transformer-based models like RoBERTa have shown improvements in contextual under-
standing. Recent advances in ensemble learning approaches for multilabel classification
have shown significant improvements in handling highly unbalanced datasets, particularly
in social media applications such as vaccine-related discourse classification [28].
In this article, we propose EmoBERTa-X, an enhanced dynamic ensemble selection
(DES) framework integrated with a modified attention mechanism to best handle multilabel
emotion classification. DES has recently emerged as one of the promising approaches for
adapting a classification decision based on the varying complexity of the input. DES frame-
works offer adaptability by selecting the most competent classifiers for a given instance
based on their historical performance and context. Research suggests that DES can enhance
the selection of relevant features for tasks related to dynamic emotion recognition [29].
These approaches generally fail in emotion classification, especially in social media text,
which is essentially short, ambiguous, and informal. Social media platforms introduce
dynamic challenges, such as concept drift and the evolution of language patterns that raise
the demand for robust and adaptive classification techniques [30].
The existing DES-based approaches for emotion classification are limited by their
reliance on static feature selection strategies, which fail to capture the dynamic, multilabel
nature of emotions expressed in overlapping and context-dependent ways [31]. Similarly,
while transformers like BERT and RoBERTa have achieved state-of-the-art results in NLP
Big Data Cogn. Comput. 2025, 9, 48 4 of 23
tasks, their performance suffers when dealing with informal language, class imbalances,
and the complex multilabel structures often present in social media data [32].
To address these challenges, EmoBERTa-X enhanced the DES framework along with a
multi-head attention mechanism to create a robust solution for multilabel emotion classification.
Together, dynamic ensemble selection and multi-head attention enhance the model’s
attention to emotional cues and allow DES to adapt dynamically to shifting input com-
plexities. Our hybrid approach effectively addresses the challenges posed by informal
text and multilabel categorization, providing the best solution when compared to simpler
alternatives. For example, a study on multilabel text classification proposed a model that
fully exploits the semantic information inherent in labels utilizing BERT and a label atten-
tion mechanism to show how well attention mechanisms handle challenging classification
problems [33].
In addition, label attention and correlation network studies in multilabel text clas-
sification have shown the efficiency of the attention mechanism to grasp label relations;
therefore, this points to more integration of attention mechanisms in multilabel classification
frameworks [34].
The major contributions of this work are:
1. Enhanced DES Framework: We propose enhancements to the internal structure of
the DES framework by optimizing the handling of the complexities typical in short
and ambiguous texts found in social media.
2. Integration with a multi-head Attention Mechanism: It extends the attention mecha-
nism to enhance model focuses on relevant emotional cues within the text, which is
very useful in the case of multilabels.
3. Advanced Preprocessing: This includes new preprocessing steps, such as abbreviation
expansion and enhancement in the context of embeddings, which cope better with the
informality of the language.
Taken together, these enhancements contribute to iterative gains in emotion classifica-
tion, helping in better coping with informal and dynamic social media contexts. The rest of
this article is structured as follows: Section 2 introduces the applied methodology, including
the proposed model and the integration of the DES framework; Section 3 describes the
dataset and its challenges, in addition to the set of experiments and their results; Section 4
will conclude it all.
2. Applied Methodology
This section describes the architecture and methodology of the proposed model
EmoBERTa-X, shown in Figure 1, which is an advanced multilabel emotion-classification
system that incorporates the DES [35] framework with a value-added RoBERTa model
embedding a multi-head attention mechanism. EmoBERTa-X is designed to deal with
complex problems inherent in unstructured, ambiguous, and informal social media text to
optimize diversified contexts and label distributions.
Big Data Cogn. Comput. 2025, 9, 48 5 of 23
Figure 1. EmoBERTa-X model architecture: This diagram illustrates the sequential workflow of the
EmoBERTa-X model, beginning with data loading and preprocessing, followed by model training,
dynamic ensemble selection, and concluding with model evaluation.
social media vernacular into standardized writing, improving readability and sentiment
analysis accuracy.
ASEM is crucial for EmoBERTa-X, as social media textual content is often filled with
variability and informality. The preprocessing here can allow the model to handle such
inputs that do not fit the mold of the standard language.
dynamic ensemble framework. Essentially, these preprocessing techniques are useful for
optimizing model performance on a wide range of emotion-classification scenarios.
C ∗ = arg max ∑ αc · f c ( x )
C ⊆C c∈C
(1)
where:
• C ∗ denotes the complete set of available classifiers,
• arg maxC⊆C represents the subset C of classifiers within the ensemble C that maximizes
the weighted sum.
• αc is a weight parameter assigned to each classifier c, learned through the meta-
learning process to reflect its effectiveness in the current context,
• f c ( x ) is the output from classifier c for the input instance x,
The meta-learning component iteratively updates these weights (αc ), aided by a meta-
objective function that may contain manifold evaluation metrics such as micro, macro,
and weighted F1-scores. Past performance and nature of the recent data samples are
analyzed to update the weights dynamically by this component to improve the relevance
and contribution of each classifier. This approach enables finer tuning and optimization of
the ensemble method to have a higher degree of precision because the classifier selection
aligns with the fine details associated with each input.
Early stopping based on the training F1-score was also employed for the meta-learning
component to prevent overfitting by being on the lookout for its general performance on
the validation data and then automatically stopping the training when it has stabilized.
This makes the ensemble generalizable across a wide variety of social media data.
Figure 2. It outputs RoBERTa’s last hidden states, which have been further enhanced by the
attention mechanism to better classify emotional expression.
1. Attention Mechanism Configuration: The multi-head attention is defined with an
embedding dimension that is specified to match RoBERTa’s hidden size. These h
parallel attention heads compute the attention scores for different parts of the input
sequence and work simultaneously. This parallelism helps the model capture diverse
linguistic patterns along with emotional cues present in social media text.
2. Mathematical Formulation: The attention mechanism computes the scores using the
query, key, and value matrices derived from the hidden states output by RoBERTa.
For each attention head i, the attention scores Ai are computed as [38]:
!
Qi K T
Ai = softmax √ i Vi (2)
dk
where:
• Ai represents the output of the i-th attention head after applying the softmax
function to normalize the scores,
• The softmax function normalizes the attention scores, ensuring that they repre-
sent the relevance of each token in the sequence relative to the others,
• Qi , Ki , and Vi are the query, key, and value projections for the i-th attention head,
• dk is the dimension of the key vectors.
3. Combining Attention Heads:
The outputs from all attention heads are concatenated to provide a unified representa-
tion. This concatenation itself summarizes the evidence provided by each head; hence,
the model can jointly mesh various emotional and contextual features at once for the
input sequence. Then, this combined output undergoes a linear transformation by a
weight matrix Wo to align it with the original embedding dimension [38].
O = W o · concat( A1 , A2 , . . . , Ah ) (3)
This transformation combines the various pieces of information that each head cap-
tures into a single representation that carries syntactic and semantic information in an
integrated way.
4. Dropout and Pooling Operations:
A dropout layer to the output of the multi-head attention mechanism is applied as
a regularization technique to prevent overfitting and improve the generalizability
of this model. It works by randomly disabling a fraction of the units in the atten-
tion during training, ensuring none of these pathways are relied upon too heavily.
Afterward, the model performs an average pooling along the sequence dimension.
This combines the information from the attended representations through averaging
of token representations to emphasize the most captured emotional signals by the
attention heads into one pooled vector suitable for classification.
5. Final Classification Layer:
This pooled output now acts as a compact and enriched representation of the sequence,
which is fed into a fully connected classification layer. Comprising a linear transforma-
tion, this layer maps the pooled vector to the emotion labels; hence, the model emits a
prediction based on the attended information. Using BCEWithLogitsLoss as the loss
function ensures that the model works on multilabel classification, considering each
label of emotion as a different binary classification.
Big Data Cogn. Comput. 2025, 9, 48 9 of 23
With multiple attention heads, the model broadens its focus to capture cues for com-
plex emotions and context that might be missed with a single attention pathway. This turns
out particularly effective for multilabel emotion classification since it allows the model to
approach identifying and separating the often overlapping emotional cues of short social
media posts. Dropout is followed by pooling and classification, which forms the basis that
allows the model to ensure translations of insights coming from the attention mechanism
into the right predictions, hence enhancing its generalization capability across a wide range
of social media environments.
Figure 2. EmoBERTa-X model with integrated multi-head attention mechanism: The general model
structure is constituted of sequential layers, where the model starts with embeddings and an encoder,
followed by the multi-head attention module. This will involve attention output average pooling,
a dense layer processed by dropout, and final classification layers that lead to the output layer for
multilabel emotion classification. SDP is the Scale Dot-Product.
that the model will accommodate different types of social media text, accounting for
variations in emotional complexity, length of the text, and ambiguity. By refining the
internal structure of the DES framework, the proposed model improves performance on
numerous dimensions of multilabel emotion classification and optimizes its response to
diverse and informal data. In the proposed approach, four models were trained on different
parts of the training set, introducing diversity into the ensemble. This diversity ensures that
each model learns distinct patterns and generalizes differently, increasing the likelihood
that at least one model in the ensemble will perform well for any given test instance.
Figure 3. EmoBERTa-X training and dynamic ensemble selection process: The training of several
instances of EmoBERTa-X, each computing a competence score; the DES framework selects the
top-performing EmoBERTa-X based on the competence scores, pools its predictions, and then moves
on to model evaluation.
For any classifier c and given input x, the competence score of this classifier is com-
puted to be [39]:
Competence(c, x ) = 1 − Hamming Loss(c, x ) (4)
N L
1
Hamming Loss =
N×L ∑ ∑ 1(Yij ̸= Ŷij ) (5)
i =1 j =1
where:
• N is the number of samples.
• L is the number of labels.
• Yij and Ŷij are the true and predicted labels (1 or 0) for the j-th label of the i-th sample.
• 1(·) is an indicator function that is 1 if the argument is true and 0 otherwise.
Once the competence scores have been computed, classifiers with scores above a
pre-specified selection threshold τ are selected for the pool of the final ensemble. Such
Big Data Cogn. Comput. 2025, 9, 48 11 of 23
a threshold τ may guarantee that the selected classifiers will only present acceptable
performances, thus decreasing the noise provided by poor performance models.
C ∗ = {c ∈ C | Competence(c, x ) ≥ τ } (6)
Then, dynamic weight values are computed for each selected classifier according to the
estimated competence scores. This provides the ability of classifiers with higher scores to
provide a greater influence in the final prediction than lower-scoring ones. Therefore, the
following weighting scheme has been adopted:
Competence(c, x )
Weight(c) = (7)
∑k∈C ∗ Competence(ck , x )
The weighted aggregation strategy produces the final prediction, in which the outputs of the
selected classifiers are combined with their assigned weights. It can be a weighted majority
vote or an averaging of probabilistic outputs. This dynamic adjustment in ensemble
composition and weight allocation allows EmoBERTa-X to adapt better to different input
instances, thereby improving the robustness and accuracy of classification.
This dynamic selection and weighting mechanism enables the framework to focus on
the most relevant classifiers for any given input instance, optimizing the overall perfor-
mance while reducing misclassification errors.
Lengthsentence
AC ( x ) = (8)
Complexitywords + ϵ
where:
– Lengthsentence represents the number of words in the input text x,
– Complexitywords measures the average semantic complexity of the words based
on their embeddings and contextual information,
– ϵ is a small constant to avoid division by zero.
This AC is used by MCSM to update classifier weights, giving a higher weight to
classifiers that have performed well in the past on ambiguous or informal text. This
refinement ensures that the DES framework dynamically adapts to changing conditions of
the incoming feed to adapt better and improve its classification accuracy.
∑c∈C wc · Ŷc
Ŷ = (9)
∑c∈C wc
where:
• Ŷc represents the prediction of classifier c,
• wc is the competence-based weight assigned to classifier c,
• Ŷ is the final prediction obtained by averaging the weighted outputs of the classifiers.
This makes for a competence-based aggregation wherein the models with higher
scores of competence have a greater influence on the final prediction, therefore contributing
to an accurate and contextually aware classification of the emotions.
Hamming loss (Equation (5)) quantifies how often incorrect labels are assigned relative
to the total number of labels across all samples. For a given sample i and label j, this
metric checks whether the predicted label Ŷij matches the true label. Yij . The indicator
function 1(·) is 1 in the case of a mismatch and 0 in the case of a match. Such a metric of
error rate would carry much information in multilabel classification, where one sample
Big Data Cogn. Comput. 2025, 9, 48 13 of 23
can have more than one correct label. A lower Hamming loss would thus indicate fewer
misclassifications by the model over the labels, something quite vital for emotion detection.
The F1-score in multilabel emotion classification can be calculated using various
methods, depending on exactly what aspects of model performance are to be captured.
Micro F1-score sums the true positives, false positives, and false negatives for all labels
and then calculates a single F1-score from these. Since, in this method, every instance
of a label is taken into consideration to be equal, it turns out to be particularly useful in
handling imbalanced datasets where certain emotions come up more than others. While
the macro F1-score treats each label independently, computing its F1-score and averaging,
he adopts an approach of treating each label equally. This may serve well in assessing the
performance of the model across both common and rare emotions to single out weaknesses
in detecting infrequent labels. Finally, the weighted F1-score is that metric that merges both
elements in that, for every label, it calculates the F1-score and weighs it by the frequency of
true instances for each label. In that way, it will be a balanced metric because it reflects the
general performance of the model concerning class imbalance. The frequent emotions will
proportionally have their weight in the final score, shown in Equations (11), (12) and (13),
respectively.
2 · ∑ Lj=1 TP j
Micro F1 = (11)
2 · ∑ Lj=1 TP j + ∑ Lj=1 FP j + ∑ Lj=1 FN j
L 2 · TP j
1
Macro F1 =
L ∑ 2 · TPj + FPj + FNj (12)
j =1
L 2 · TP j
1
Weighted F1 =
∑ Lj=1 |Y |
∑ |Yj | · 2 · TPj + FPj + FNj (13)
j j =1
where:
• TP j , FP j , and FN j are the true positives, false positives, and false negatives for label j,
respectively,
• |Yj | is the number of true instances for label j.
texts. This research ensured that GoEmotions was used in the testing of EmoBERTa-X
so that it maximized its potential for more accurate multilabel emotion classification and
real-world relevance.
Table 1. Ekman mapping table. The table below depicts how the 27 original categories of emotion in
the GoEmotions dataset were mapped into Ekman’s six basic emotions.
After the mapping stage, each instance in GoEmotions, previously annotated with
one or more of the 27 labels, had to be reclassified under Ekman’s categories, as shown in
Table 2. Where appropriate, multilabel classification methods were retained so as not to
lose the richness of emotions expressed in the text. Using the same example of instances
labeled with both joy and surprise, the mapping would be done such that it reflects both
categories simultaneously. Figure 4 highlights the varying frequencies of each emotion,
with ‘Joy’ being the most represented and ‘Disgust’ being the least, illustrating the class
imbalance within the dataset.
Big Data Cogn. Comput. 2025, 9, 48 15 of 23
Table 2. Examples of multilabel vlassification from GoEmotions Ekman version: Here are some
examples from GoEmotions to illustrate how sentences are mapped even further to the emotion
categories in Ekman’s six basic emotions. Each row represents a sample text with its corresponding
multilabel emotion classification and the mapped Ekman emotion categories.
Table 3. Data before and after preprocessing: This table presents examples of sentences from the
GoEmotions dataset before and after applying ASEM. The changes in bold represent the expansion
forms of abbreviations and slang expressions such as “btw” to “by the way”, “lol” to “laugh out
loud”, and “omg” to “oh my god”.
Table 4. Performance comparison of the full model and its variations without specific components.
This table highlights the effect of removing each component on different evaluation metrics.
Experiment ID Experiment Description Accuracy (%) Micro F1 (%) Macro F1 (%) Hamming Loss
1 Baseline Model, without preprocessing 65.94 67.07 60.55 0.0935
2 Adding Multi-head Attention 66.14 67.23 60.37 0.0929
3 Applying DES 73.79 75.05 69.08 0.0703
4 Addition of ASEM 73.85 75.04 68.82 0.0704
5 With Emoji Conversion 72.80 74.25 68.39 0.0725
6 Adding TVNR 73.73 75.01 68.96 0.0704
7 Proposed Model (EmoBERTa-X) 75.52 76.10 70.13 0.0679
Note: Bold values indicate the best-performing results in each metric.
Figure 5. Trend of micro and macro F1-scores across experiments: This line chart shows the progress
of the micro and macro F1-scores of the EmoBERTa-X model across different sets of experiments.
The challenges in the emotion classification with this dataset include but are not
limited to, the informal nature of languages, the imbalance in the class distribution, the
complexity introduced by multilabel classification, and ambiguity in the short instances
Big Data Cogn. Comput. 2025, 9, 48 19 of 23
those of state-of-the-art models from earlier works. The proposed multi-head attention
mechanism and DES framework demonstrate significant improvements in accuracy, micro
F1-score, and macro F1-score compared to competing approaches.
Specifically, EmoBERTa-X obtains an accuracy of 75.5%, a micro F1-score of 76.1%,
and a macro F1-score of 70.1%, which outperforms the closest competitor UCCA-GAT [43],
which achieved 71.2% in terms of accuracy and 75.4% micro F1-score. Notably, the macro
F1-score of UCCA-GAT is significantly lower at 63.9%, indicating that EmoBERTa-X has a
better capability to achieve higher accuracy for both frequent and rare emotion labels.
The improvement from transformer-based models such as RoBERTa and Dim-RoBERTa [44]
achieving 65.9% and 65.7%, respectively, makes EmoBERTa-X’s accuracy enhancement ap-
proximately 9.6%. This highlights the impact of integrating DES with multi-head attention,
allowing the model to recognize the overlapping emotional signals from short and informal
text more precisely.
Finally, the competence-based classifier selection further enhances EmoBERTa-X’s
ability to manage imbalanced classes, achieving a lower Hamming loss compared to
baseline transformer models. This is particularly significant for handling the highly skewed
distribution of emotions often found in social media texts.
Figure 6. Performance comparison of EmoBERTa-X with the state-of-the-art models: The following
figure illustrates the accuracy, micro F1-score, and macro F1-score of EmoBERTa-X compared to the
existing graph-based, transformer-based, and hybrid approaches.
Author Contributions: Conceptualization, F.H.L., M.E. and S.N.S.; methodology, F.H.L.; software,
F.H.L.; validation, F.H.L., M.E. and S.N.S.; formal analysis, F.H.L.; investigation, F.H.L.; resources,
F.H.L.; data curation, F.H.L.; writing—original draft preparation, F.H.L.; writing—review and editing,
F.H.L., M.E. and S.N.S.; visualization, F.H.L.; supervision, M.E. and S.N.S.; project administration,
M.E. and S.N.S. All authors have read and agreed to the published version of the manuscript.
References
1. García-Hernández, R.A.; Luna-García, H.; Celaya-Padilla, J.M.; García-Hernández, A.; Reveles-Gómez, L.C.; Flores-Chaires,
L.A.; Delgado-Contreras, J.R.; Rondon, D.; Villalba-Condori, K.O. A Systematic Literature Review of Modalities, Trends, and
Limitations in Emotion Recognition, Affective Computing, and Sentiment Analysis. Appl. Sci. 2024, 14, 7165. [CrossRef]
2. Hanna, R.; Rohm, A.; Crittenden, V.L. We’re all connected: The power of the social media ecosystem. Bus. Horizons 2011,
54, 265–273. [CrossRef]
3. Tawfik, A.; Elkhodary, H.O.; Saleh, S.N. A Deep Learning-based Emotion Recognition System for Interactive E-Learning. In
Proceedings of the 2022 32nd International Conference on Computer Theory and Applications (ICCTA), Alexandria, Egypt, 17–19
December 2022; pp. 38–43. [CrossRef]
4. Brynielsson, J.; Johansson, F.; Jonsson, C.; Westling, A. Emotion classification of social media posts for estimating people’s
reactions to communicated alert messages during crises. Secur. Inform. 2014, 3, 7. [CrossRef]
5. Sharma, A.; Sharma, K.; Kumar, A. Real-time emotional health detection using fine-tuned transfer networks with multimodal
fusion. Neural Comput. Appl. 2023, 35, 22935–22948. [CrossRef]
6. Kusal, S.; Patil, S.; Kotecha, K.; Aluvalu, R.; Varadarajan, V. AI Based Emotion Detection for Textual Big Data: Techniques and
Contribution. Big Data Cogn. Comput. 2021, 5, 43. [CrossRef]
7. Mansoor, M.A.; Ansari, K.H. Early Detection of Mental Health Crises through Artifical-Intelligence-Powered Social Media
Analysis: A Prospective Observational Study. J. Pers. Med. 2024, 14, 958. [CrossRef]
8. Asghar, M.Z.; Khan, A.; Bibi, A.; Kundi, F.M.; Ahmad, H. Sentence-level emotion detection framework using rule-based
classification. Cogn. Comput. 2017, 9, 868–894. [CrossRef]
9. Berka, P. Sentiment analysis using rule-based and case-based reasoning. J. Intell. Inf. Syst. 2020, 55, 51–66. [CrossRef]
10. Wang, L.; Isomura, S.; Ptaszynski, M.; Dybala, P.; Urabe, Y.; Rzepka, R.; Masui, F. The Limits of Words: Expanding a Word-Based
Emotion Analysis System with Multiple Emotion Dictionaries and the Automatic Extraction of Emotive Expressions. Appl. Sci.
2024, 14, 4439. [CrossRef]
11. Öhman, E. The validity of lexicon-based sentiment analysis in interdisciplinary research. In Proceedings of the Workshop on
Natural Language Processing for Digital Humanities, Silchar, India, 16–19 December 2021; pp. 7–12.
12. Nandwani, P.; Verma, R. A review on sentiment analysis and emotion detection from text. Soc. Netw. Anal. Min. 2021, 11, 81.
[CrossRef] [PubMed]
13. Sujanaa, J.; Palanivel, S.; Balasubramanian, M. Emotion recognition using support vector machine and one-dimensional
convolutional neural network. Multimed. Tools Appl. 2021, 80, 27171–27185. [CrossRef]
14. Semary, N.A.; Ahmed, W.; Amin, K.; Pławiak, P.; Hammad, M. Enhancing machine learning-based sentiment analysis through
feature extraction techniques. PLoS ONE 2024, 19, e0294968. [CrossRef] [PubMed]
15. Sarsam, S.M.; Al-Samarraie, H.; Alzahrani, A.I.; Wright, B. Sarcasm detection using machine learning algorithms in Twitter: A
systematic review. Int. J. Mark. Res. 2020, 62, 578–598. [CrossRef]
16. Bouazizi, M.; Ohtsuki, T.O. A pattern-based approach for sarcasm detection on twitter. IEEE Access 2016, 4, 5477–5488. [CrossRef]
17. Shiri, F.M.; Perumal, T.; Mustapha, N.; Mohamed, R. A comprehensive overview and comparative analysis on deep learning
models: CNN, RNN, LSTM, GRU. arXiv 2023, arXiv:2305.17473.
18. Iyer, A.; Das, S.S.; Teotia, R.; Maheshwari, S.; Sharma, R.R. CNN and LSTM based ensemble learning for human emotion
recognition using EEG recordings. Multimed. Tools Appl. 2023, 82, 4883–4896. [CrossRef]
19. Chen, M. Emotion analysis based on deep learning with application to research on development of Western culture. Front.
Psychol. 2022, 13, 911686. [CrossRef]
20. Bodapati, S.; Bandarupally, H.; Shaw, R.N.; Ghosh, A. Comparison and analysis of RNN-LSTMs and CNNs for social reviews
classification. In Advances in Applications of Data-Driven Computing; Springer: Singapore, 2021; pp. 49–59.
21. Liu, N.; Ren, F. Emotion classification using a CNN_LSTM-based model for smooth emotional synchronization of the humanoid
robot REN-XIN. PLoS ONE 2019, 14, e0215216. [CrossRef]
22. Acheampong, F.A.; Nunoo-Mensah, H.; Chen, W. Transformer models for text-based emotion detection: A review of BERT-based
approaches. Artif. Intell. Rev. 2021, 54, 5789–5829. [CrossRef]
23. Rezapour, M. Emotion Detection with Transformers: A Comparative Study. arXiv 2024, arXiv:2403.15454.
24. Ganie, A.G. Presence of informal language, such as emoticons, hashtags, and slang, impact the performance of sentiment analysis
models on social media text? arXiv 2023, arXiv:2301.12303.
25. Aliyu, Y.; Sarlan, A.; Danyaro, K.U.; Rahman, A.S. Comparative Analysis of Transformer Models for Sentiment Analysis in
Low-Resource Languages. Int. J. Adv. Comput. Sci. Appl. 2024, 15, 353. . [CrossRef]
26. Ramaswamy, S.L.; Chinnappan, J. RecogNet-LSTM+ CNN: A hybrid network with attention mechanism for aspect categorization
and sentiment classification. J. Intell. Inf. Syst. 2022, 58, 379–404. [CrossRef]
Big Data Cogn. Comput. 2025, 9, 48 23 of 23
27. Ramirez-Alcocer, U.M.; Tello-Leal, E.; Hernandez-Resendiz, J.D.; Romero, G. A Hybrid CNN-LSTM Approach for Sentiment
Analysis. In Proceedings of the Congress on Intelligent Systems, Bengaluru, India, 4–5 September 2023; Springer: Singapore,
2023; pp. 425–437.
28. Saleh, S.N. Enhancing multilabel classification for unbalanced COVID-19 vaccination hesitancy tweets using ensemble learning.
Comput. Biol. Med. 2025, 184, 109437. [CrossRef] [PubMed]
29. Yang, Y.; Wang, G.; Kong, H. Emotion Recognition Based on Dynamic Ensemble Feature Selection. In Man-Machine Interactions;
Springer: Berlin/Heidelberg, Germany, 2009; pp. 217–225.
30. Costa, J.; Silva, C.; Antunes, M.; Ribeiro, B. Boosting dynamic ensemble’s performance in twitter. Neural Comput. Appl. 2020,
32, 10655–10667. [CrossRef]
31. Pan, B.; Hirota, K.; Jia, Z.; Zhao, L.; Jin, X.; Dai, Y. Multimodal emotion recognition based on feature selection and extreme
learning machine in video clips. J. Ambient. Intell. Humaniz. Comput. 2023, 14, 1903–1917. [CrossRef]
32. Patwardhan, N.; Marrone, S.; Sansone, C. Transformers in the real world: A survey on nlp applications. Information 2023, 14, 242.
[CrossRef]
33. Chen, X.; Yin, Y.; Feng, T. Multi-Label Text Classification Based on BERT and Label Attention Mechanism. In Proceedings
of the 2023 Asia-Pacific Conference on Image Processing, Electronics and Computers (IPEC), Dalian, China, 14–16 April 2023;
pp. 386–390.
34. Yuan, L.; Xu, X.; Sun, P.; Yu, H.P.; Wei, Y.Z.; Zhou, J.J. Research of multi-label text classification based on label attention and
correlation networks. PLoS ONE 2024, 19, e0311305. [CrossRef]
35. Zhou, Z.H. Ensemble Methods: Foundations and Algorithms; CRC Press: Boca Raton, FL, USA, 2012.
36. Rokach, L. Ensemble-based classifiers. Artif. Intell. Rev. 2010, 33, 1–39. [CrossRef]
37. Lowe, S. RoBERTa-Base Model on GoEmotions. 2022. Available online: [Link]
emotions (accessed on 4 November 2024).
38. Vaswani, A. Attention is all you need. In Advances in Neural Information Processing Systems; NeurIPS Foundation; Curran
Associates, Inc.: Red Hook, NY, USA, 2017.
39. Sokolova, M.; Lapalme, G. A systematic analysis of performance measures for classification tasks. Inf. Process. Manag. 2009,
45, 427–437. [CrossRef]
40. McNamara, D.S.; Graesser, A.C.; McCarthy, P.M.; Cai, Z. Automated Evaluation of Text and Discourse with Coh-Metrix; Cambridge
University Press: Cambridge, UK, 2014.
41. Kuncheva, L.I. Combining Pattern Classifiers: Methods and Algorithms; John Wiley & Sons: Hoboken, NJ, USA, 2014.
42. Ekman, P. Are there basic emotions? Psychol. Rev. 1992, 99, 550–553. [CrossRef] [PubMed]
43. Ameer, I.; Bölücü, N.; Sidorov, G.; Can, B. Emotion classification in texts over graph neural networks: Semantic representation is
better than syntactic. IEEE Access 2023, 11, 56921–56934. [CrossRef]
44. Ameer, I.; Bölücü, N.; Siddiqui, M.H.F.; Can, B.; Sidorov, G.; Gelbukh, A. Multi-label emotion classification in texts using transfer
learning. Expert Syst. Appl. 2023, 213, 118534. [CrossRef]
45. Demszky, D.; Movshovitz-Attias, D.; Ko, J.; Cowen, A.; Nemade, G.; Ravi, S. GoEmotions: A dataset of fine-grained emotions.
arXiv 2020, arXiv:2005.00547.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual
author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to
people or property resulting from any ideas, methods, instructions or products referred to in the content.