Enhancing E-Commerce Recommender System Inputs Using Transformer-Based Aspect-Based Sentiment Analysis
Article Sidebar
Main Article Content
Aspect-based sentiment analysis (ABSA) has become an important analytical technique in e-commerce research for understanding how customers perceive specific product features. Conventional sentiment analysis approaches typically treat a review as a single unit and assign an overall sentiment label, even though customers frequently express differing opinions about multiple product attributes within the same review. Such aggregation often obscures feature-level preferences and limits the usefulness of sentiment outputs for personalization and decision support. To address this limitation, this study proposes a transformer-based ABSA pipeline that integrates KeyBERT for unsupervised aspect extraction with Bidirectional Encoder Representations from Transformers (BERT) for contextual sentiment classification at the aspect level. The proposed approach is evaluated using a dataset of 10,000 Amazon product reviews obtained from publicly available open-source review data and is benchmarked against a widely used lexicon-based sentiment analysis method, Valence Aware Dictionary and Sentiment Reasoner (VADER). Model performance is assessed using precision, recall, and F1-score to capture both classification accuracy and balance across sentiment classes. Experimental results demonstrate that the transformer-based pipeline consistently outperforms the lexicon-based baseline, particularly in reviews containing mixed or contrasting sentiments across different product attributes. The findings show that contextual embeddings enable more accurate identification of sentiment polarity shifts and nuanced opinion expressions that are frequently missed by rule-based methods. Overall, the results indicate that transformer-based ABSA provides more reliable and interpretable sentiment representations, making it well suited for supporting personalized recommendations, feature-level analysis, and improved customer insight generation in e-commerce systems.
Downloads
References
Babaali, M., Fatemi, A., & Nematbakhsh, M. A. (2024). Aspect extraction with enriching word representation and post-processing rules. Expert Systems with Applications, 240, Article 120304. https://doi.org/10.1016/j.eswa.2024.124174
Bellar, O., Baina, A., & Ballafkih, M. (2024). Sentiment analysis: Predicting product reviews for e-commerce recommendations using deep learning and transformers. Mathematics, 12(15), Article 2403. https://doi.org/10.3390/math12152403
Cai, H., Xie, Q., Zhao, Q., & Li, K. (2023). Memd-absa: A multi-element multi-domain dataset for aspect-based sentiment analysis. Language Resources and Evaluation, 59(3), 2501–2529. https://doi.org/10.1007/s10579-025-09820-9
Chauhan, G. S., Nahta, R., & Meena, Y. K. (2023). Aspect-based sentiment analysis using deep learning approaches: A survey. Computer Science Review, 48, Article 100505. https://doi.org/10.1016/j.cosrev.2023.100576
5.Cui, Y., Zhou, P., Yu, H., Sun, P., Cao, H., & Yang, P. (2024). ASKAT: Aspect sentiment knowledge graph attention network for recommendation. Electronics, 13(1), Article 216. https://doi.org/10.3390/electronics13010216
6.Darraz, N., Karabila, I., El-Ansari, A., Alami, N., & El Mallahi, M. (2025). Integrated sentiment analysis with BERT for enhanced hybrid recommendation systems. Expert Systems with Applications, 261, Article 125533. https://doi.org/10.1016/j.eswa.2024.125533
7.Davoodi, L., Mezei, J., & Heikkilä, M. (2025). Aspect-based sentiment classification of user reviews to understand customer satisfaction of e-commerce platforms. Electronic Commerce Research, 1–43. https://doi.org/10.1007/s10660-025-09948-4
8.Dogra, V. (2024, July). Aspect-based approaches for measuring customer feedback in the e-commerce industry. In Proceedings of the 2024 2nd International Conference on Sustainable Computing and Smart Systems (ICSCSS) (pp. 479–484). IEEE. https://doi.org/10.1109/ICSCSS60660.2024.10625381
9.Elzeheiry, S., Gab-Allah, W. A., & Mekky, N. (2023). Sentiment analysis for e-commerce product reviews: Current trends and future directions. Preprints. https://doi.org/10.20944/preprints202305.1649.v1
10.Haq, B., Daudpota, S. M., Imran, A. S., Kastrati, Z., & Noor, W. (2023). A semi-supervised approach for aspect category detection and aspect term extraction from opinionated text. Computers, Materials & Continua, 77(1), 115–137. https://doi.org/10.32604/cmc.2023.040638
11.Xu, Y., & Ibrahim, N. F. (2022). Cross-domain aspect-based sentiment analysis for enhancing customer experience in electronic commerce. Advances in Artificial Intelligence and Machine Learning, 2(1), 112–127. https://doi.org/10.54364/aaiml.2024.43151
12.Zhao, Z., Fan, W., Li, J., Liu, Y., Mei, X., Wang, Y., & Li, Q. (2024). Recommender systems in the era of large language models. IEEE Transactions on Data Engineering, 36, 6889-6907. https://doi.org/10.1109/tkde.2024.3392335

This work is licensed under a Creative Commons Attribution 4.0 International License.
All articles published in our journal are licensed under CC-BY 4.0, which permits authors to retain copyright of their work. This license allows for unrestricted use, sharing, and reproduction of the articles, provided that proper credit is given to the original authors and the source.