A Comparative Analysis of Transformer Architectures for Sentiment and Emotion Classification
Balkan Journal of Electrical and Computer Engineering · 31.12.2025 · 13 (4) · 470-482
DOI: 10.17694/bajece.1802918 ↗Kurz gefasst
Fachartikel in der Zeitschrift Balkan Journal of Electrical and Computer Engineering, online erschienen am 31.12.2025. Verfasst von Hayrullah Temel und 1 weiteren Autor:innen. Die Arbeit wurde bisher 5-mal zitiert (Crossref) und nennt 36 Literaturangaben.
Abstract (Originalsprache)
This paper is a comparison of four Transformer model (BERT, ALBERT, T5, and XLNet) in the case of sentiment analysis of tasks based on data from social media. Used were two data sets: the X (Twitter) data set with tweets of messages related to games and the Emotion data set labeled in the anger, joy, and fear categories. Trained was the model in the same settings of preprocessing, training, as well as in the test settings for 3, 5, 7, and 10 epochs. Presented were results that indicated that the accuracy increased with the higher number of epochs. The maximum accuracies occurred in the case of the BERT model—88.63% in the case of the X data set as well as in the case of the Emotion data set, 97.05%. XLNet established great potential for long-range dependencies, and ALBERT obtained balanced performance due to lightweight architecture. On the contrary, performance of T5 was less in comparison to others. Generally, it could be inferred that Transformer architecture is superior to traditional machine learning technique in the context of sentiment analysis due to higher accuracy and better contextual understanding.
Zitieren
APA
Temel, H., & Kına, E. (2025). A Comparative Analysis of Transformer Architectures for Sentiment and Emotion Classification. Balkan Journal of Electrical and Computer Engineering, 13(4), 470-482. https://doi.org/10.17694/bajece.1802918
Vancouver
Temel H, Kına E. A Comparative Analysis of Transformer Architectures for Sentiment and Emotion Classification. Balkan Journal of Electrical and Computer Engineering. 2025;13(4):470-482. doi:10.17694/bajece.1802918
BibTeX
@article{Temel2025,
author = {Temel, Hayrullah and Kına, Erol},
title = {A Comparative Analysis of Transformer Architectures for Sentiment and Emotion Classification},
journal = {Balkan Journal of Electrical and Computer Engineering},
year = {2025},
volume = {13},
number = {4},
pages = {470--482},
doi = {10.17694/bajece.1802918}
}
EUVIMED