journal article·2025Open access

Improving Fashion Sentiment Detection on X through Hybrid Transformers and RNNs

Bandar Alotaibi, Aljawhara Almutarie, Shuaa Alotaibi, Munif Alotaibi

Computers, Materials & Continua· Volume 84· Issue 3

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.
Source: openalex_inverted_index · Quality: baseline

Research context

OpenAlex topics: Sentiment Analysis and Opinion Mining

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

References (47)

Show source-provided references
1. Sentiment analysis of social media data: business insights and consumer behavior trends in the USA10.55214/25768484.v9i1.4164 ↗
2. Sentiment analysis techniques—survey10.31185/wjps.152 ↗
3. Sentiment analysis techniques in recent works
4. A novel review of various sentimental analysis techniques
5. Sentiment analysis: an overview from linguistics10.1146/annurev-linguistics-011415-040518 ↗
6. Sentiment analysis in social media texts
7. A survey of sentiment analysis: approaches, datasets, and future research10.3390/app13074550 ↗
8. TriLex: a fusion approach for unsupervised sentiment analysis of short texts10.1371/journal.pone.0317100 ↗
9. An overview of sentiment analysis: concept, techniques, and challenges10.17010/ijcs/2019/v4/i4/147302 ↗
10. Improved lexicon-based sentiment analysis for social media analytics10.1186/s13388-015-0024-x ↗
11. Kim HD, Ganesan K, Sondhi P, Zhai C. Comprehensive review of opinion summarization. Technical Report. Champaign, IL, USA: University of Illinois at Urbana-Champaign; 2011.
12. A review on sentiment analysis techniques and applications10.1088/1757-899X/551/1/012070 ↗
13. An integrated approach for analysing sentiments on social media10.31449/inf.v47i2.4390 ↗
14. Using emoticons to reduce dependency in machine learning techniques for sentiment classification
15. Twitter sentiment analysis: a case study for apparel brands
16. Sentiment analysis using hybrid approach10.22214/ijraset.2021.39202 ↗
17. Comparative analysis of online fashion retailers using customer sentiment analysis on Twitter
18. Sentiment analysis and text mining for social media microblogs using open source tools: an empirical study
19. A computational analysis of aspect-based sentiment analysis research through bibliometric mapping and topic modeling10.1186/s40537-025-01068-y ↗
20. Social recommendation incorporating topic mining and social trust analysis
21. A comprehensive overview of sentiment analysis and fake review detection
22. A survey on sentiment classification and analysis using data mining
23. Sentiment analysis using text mining: a review10.11648/j.ijdst.20180402.12 ↗
24. Perceptions of STEM education and artificial intelligence: a Twitter (X) sentiment analysis10.1186/s40594-025-00527-5 ↗
25. A comprehensive review of sentiment analysis: trends, challenges, and future directions
26. Twitter sentiment analysis
27. User sentiment analysis on Amazon fashion product review using word embedding10.15207/JKCS.2017.8.4.001 ↗
28. Sentiment analysis methods, applications, and challenges: a systematic literature review10.1016/j.jksuci.2024.102048 ↗
29. Sentiment analysis of fashion related posts in social media
30. A sentiment analysis tool for determining the promotional success of fashion images on Instagram10.3991/ijim.v11i2.6563 ↗
31. A survey on sentiment analysis methods, applications, and challenges10.1007/s10462-022-10144-1 ↗
32. Sentiment classification for beauty-fashion reviews
33. Empowering sentiment analysis for improved fashion choices
34. Sarcasm and irony detection in English tweets
35. Irony detection in twitter: the role of affective content10.1145/2930663 ↗
36. Sarcasm detection of emojis using machine learning algorithm
37. Learning about fashion exploiting the big multimedia data
38. Image sentimental analysis: an overview10.21474/IJAR01/14398 ↗
39. Shimizu R, Kimura M, Goto M. Fashion-specific attributes interpretation via dual Gaussian visual-semantic embedding. arXiv:2210.17417. 2022. doi:10.48550/arXiv.2210.17417.10.1109/CVPRW59228.2023.00353 ↗
40. Natural language processing for fashion trends detection
41. Entity set expansion for detecting fashion trends
42. BERTweet: a pre-trained language model for English Tweets
43. Liu Y, Ott M, Goyal N, Du J, Joshi M, Chen D, et al. RoBERTa: a robustly optimized BERT pretraining approach. arXiv:1907.11692. 2019.
44. Glove: global vectors for word representation
45. Attention is all you need
46. Long short-term memory10.1162/neco.1997.9.8.1735 ↗
47. Chung J, Gulcehre C, Cho K, Bengio Y. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv:1412.3555. 2014. doi:10.48550/arXiv.1412.3555.