Open Access iconOpen Access

ARTICLE

crossmark

Improving Fashion Sentiment Detection on X through Hybrid Transformers and RNNs

Bandar Alotaibi1,*, Aljawhara Almutarie2, Shuaa Alotaibi3, Munif Alotaibi4

1 Department of Information Technology, Faculty of Computers and Information Technology, University of Tabuk, Tabuk, 71491, Saudi Arabia
2 College of Humanities and Social Sciences, Mass Communication Department, King Saud University, Riyadh, 11451, Saudi Arabia
3 Department of Advertising and Marketing Communication, College of Media and Communication, Imam Mohammad Ibn Saud Islamic University, Riyadh, 11432, Saudi Arabia
4 Department of Computer Science, Faculty of Computing and Information Technology, University of Shaqra, Shaqra, 11911, Saudi Arabia

* Corresponding Author: Bandar Alotaibi. Email: email

Computers, Materials & Continua 2025, 84(3), 4451-4467. https://doi.org/10.32604/cmc.2025.066050

Abstract

X (formerly known as Twitter) is one of the most prominent social media platforms, enabling users to share short messages (tweets) with the public or their followers. It serves various purposes, from real-time news dissemination and political discourse to trend spotting and consumer engagement. X has emerged as a key space for understanding shifting brand perceptions, consumer preferences, and product-related sentiment in the fashion industry. However, the platform’s informal, dynamic, and context-dependent language poses substantial challenges for sentiment analysis, mainly when attempting to detect sarcasm, slang, and nuanced emotional tones. This study introduces a hybrid deep learning framework that integrates Transformer encoders, recurrent neural networks (i.e., Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU)), and attention mechanisms to improve the accuracy of fashion-related sentiment classification. These methods were selected due to their proven strength in capturing both contextual dependencies and sequential structures, which are essential for interpreting short-form text. Our model was evaluated on a dataset of 20,000 fashion tweets. The experimental results demonstrate a classification accuracy of 92.25%, outperforming conventional models such as Logistic Regression, Linear Support Vector Machine (SVM), and even standalone LSTM by a margin of up to 8%. This improvement highlights the importance of hybrid architectures in handling noisy, informal social media data. This study’s findings offer strong implications for digital marketing and brand management, where timely sentiment detection is critical. Despite the promising results, challenges remain regarding the precise identification of negative sentiments, indicating that further work is needed to detect subtle and contextually embedded expressions.

Keywords

Sentiment analysis; deep learning; natural language processing; transformers; recurrent neural networks

Cite This Article

APA Style
Alotaibi, B., Almutarie, A., Alotaibi, S., Alotaibi, M. (2025). Improving Fashion Sentiment Detection on X through Hybrid Transformers and RNNs. Computers, Materials & Continua, 84(3), 4451–4467. https://doi.org/10.32604/cmc.2025.066050
Vancouver Style
Alotaibi B, Almutarie A, Alotaibi S, Alotaibi M. Improving Fashion Sentiment Detection on X through Hybrid Transformers and RNNs. Comput Mater Contin. 2025;84(3):4451–4467. https://doi.org/10.32604/cmc.2025.066050
IEEE Style
B. Alotaibi, A. Almutarie, S. Alotaibi, and M. Alotaibi, “Improving Fashion Sentiment Detection on X through Hybrid Transformers and RNNs,” Comput. Mater. Contin., vol. 84, no. 3, pp. 4451–4467, 2025. https://doi.org/10.32604/cmc.2025.066050



cc Copyright © 2025 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 1127

    View

  • 652

    Download

  • 0

    Like

Share Link