Enhanced Sentiment Analysis of E-Commerce Product Reviews Using Luong Attention-Based Bi-LSTM
Abstract
1. Introduction
- A unified sentiment analysis framework integrating preprocessing, exploratory data analysis, and Luong attention-based Bi-LSTM for large-scale e-commerce review datasets.
- A three-class sentiment classification strategy (positive, negative, and neutral) designed to improve the detection of neutral opinions often underrepresented in existing Bi-LSTM attention-based models.
- An optimized preprocessing pipeline tailored for noisy customer reviews, including text normalization, sentiment labeling, and outlier handling to enhance model robustness.
1.1. Literature Survey
1.2. Problem Statement
2. Materials and Methods
2.1. Data Collection
2.2. Data Preprocessing
2.2.1. Text Cleaning
2.2.2. Sentiment Labeling
2.2.3. Handling Missing Data
2.2.4. Outlier Detection
2.3. EDA of Sentiment Distribution and Textual Patterns
2.4. Proposed Framework Overview
2.5. Feature Extraction and Classification Using Luong Attention-Based Bi-LSTM
2.5.1. Input Layer
2.5.2. Backward Pass Gate
2.5.3. Bi-LSTM
2.5.4. Luong Attention Layer
2.5.5. Fully Connected Layer
2.5.6. Output Layer
2.6. Experimental Setup
3. Results and Discussion
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Madanchian, M. The role of complex systems in predictive analytics for e-commerce innovations in business management. Systems 2024, 12, 415. [Google Scholar] [CrossRef]
- Diekson, Z.A.; Prakoso, M.R.B.; Putra, M.S.Q.; Syaputra, M.S.A.F.; Achmad, S.; Sutoyo, R. Sentiment analysis for customer review: Case study of Traveloka. Procedia Comput. Sci. 2023, 216, 682–690. [Google Scholar] [CrossRef]
- Idries, A.; Krogstie, J.; Rajasekharan, J. Dynamic capabilities in electrical energy digitalization: A case from the Norwegian ecosystem. Energies 2022, 15, 8342. [Google Scholar] [CrossRef]
- Bello, A.; Ng, S.-C.; Leung, M.-F. A BERT framework to sentiment analysis of tweets. Sensors 2023, 23, 506. [Google Scholar] [CrossRef] [PubMed]
- Zhang, X.; Guo, C. Research on multimodal prediction of e-commerce customer satisfaction driven by big data. Appl. Sci. 2024, 14, 8181. [Google Scholar] [CrossRef]
- Taherdoost, H.; Madanchian, M. Artificial intelligence and sentiment analysis: A review in competitive research. Computers 2023, 12, 37. [Google Scholar] [CrossRef]
- Dubey, P.; Dubey, P.; Bokoro, P.N. Unpacking sarcasm: A contextual and transformer-based approach for improved detection. Computers 2025, 14, 95. [Google Scholar] [CrossRef]
- Nicolescu, L.; Tudorache, M.T. Human-computer interaction in customer service: The experience with AI chatbots—A systematic literature review. Electronics 2022, 11, 1579. [Google Scholar] [CrossRef]
- Xiong, S.; Tian, W.; Si, H.; Zhang, G.; Shi, L. A survey of the applications of text mining for the food domain. Algorithms 2024, 17, 176. [Google Scholar] [CrossRef]
- Hassan, S.U.; Ahamed, J.; Ahmad, K. Analytics of machine learning-based algorithms for text classification. Sustain. Oper. Comput. 2022, 3, 238–248. [Google Scholar] [CrossRef]
- Wang, H.; Li, J.; Wu, H.; Hovy, E.; Sun, Y. Pre-trained language models and their applications. Engineering 2023, 25, 51–65. [Google Scholar] [CrossRef]
- Kokab, S.T.; Asghar, S.; Naz, S. Transformer-based deep learning models for the sentiment analysis of social media data. Array 2022, 14, 100157. [Google Scholar] [CrossRef]
- Saoualih, A.; Safaa, L.; Bouhatous, A.; Bidan, M.; Perkumienė, D.; Aleinikovas, M.; Šilinskas, B.; Perkumas, A. Exploring the tourist experience of the Majorelle Garden using VADER-based sentiment analysis and the latent Dirichlet allocation algorithm: The case of TripAdvisor reviews. Sustainability 2024, 16, 6378. [Google Scholar] [CrossRef]
- Ghatora, P.S.; Hosseini, S.E.; Pervez, S.; Iqbal, M.J.; Shaukat, N. Sentiment analysis of product reviews using machine learning and pre-trained LLM. Big Data Cogn. Comput. 2024, 8, 199. [Google Scholar] [CrossRef]
- Liu, C.; Chen, T.; Pu, Q.; Jin, Y. Text mining for consumers’ sentiment tendency and strategies for promoting cross-border e-commerce marketing using consumers’ online review data. J. Theor. Appl. Electron. Commer. Res. 2025, 20, 125. [Google Scholar] [CrossRef]
- Yuan, L.; Liu, H.; Fu, F.; Liu, Y.; Zuo, X.; Li, L. Study of Zhejiang tangerine e-commerce reviews based on natural language processing. Horticulturae 2025, 11, 151. [Google Scholar] [CrossRef]
- Yang, Y.; Ma, Y.; Wu, G.; Guo, Q.; Xu, H. The insights, “comfort” effect and bottleneck breakthrough of “e-commerce temperature” during the COVID-19 pandemic. J. Theor. Appl. Electron. Commer. Res. 2022, 17, 1493–1511. [Google Scholar] [CrossRef]
- Chen, T.; Tong, C.; Bai, Y.; Yang, J.; Cong, G.; Cong, T. Analysis of the public opinion evolution on the normative policies for the live streaming e-commerce industry based on online comment mining under COVID-19 epidemic in China. Mathematics 2022, 10, 3387. [Google Scholar] [CrossRef]
- Mabrouk, A.; Redondo, R.P.D.; Kayed, M. SEOpinion: Summarization and exploration of opinion from e-commerce websites. Sensors 2021, 21, 636. [Google Scholar] [CrossRef]
- Guo, P.; Li, H.; Mo, X. Quantifying post-purchase service satisfaction: A topic–emotion fusion approach with smartphone data. Big Data Cogn. Comput. 2025, 9, 125. [Google Scholar] [CrossRef]
- Fan, M.; Tang, Z.; Qalati, S.A.; Tajeddini, K.; Mao, Q.; Bux, A. Cross-border e-commerce brand internationalization: An online review evaluation based on Kano model. Sustainability 2022, 14, 13127. [Google Scholar] [CrossRef]
- Nichifor, E.; Brătucu, G.; Chițu, I.B.; Lupșa-Tătaru, D.A.; Chișinău, E.M.; Todor, R.D.; Albu, R.-G.; Bălășescu, S. Utilising artificial intelligence to turn reviews into business enhancements through sentiment analysis. Electronics 2023, 12, 4538. [Google Scholar] [CrossRef]
- Li, H.; Lu, Y.; Zhu, H.; Ma, Y. A novel AB-CNN model for multi-classification sentiment analysis of e-commerce comments. Electronics 2023, 12, 1880. [Google Scholar] [CrossRef]
- Huang, W.; Lin, M.; Wang, Y. Sentiment analysis of Chinese e-commerce product reviews using ERNIE word embedding and attention mechanism. Appl. Sci. 2022, 12, 7182. [Google Scholar] [CrossRef]
- Wang, R.; Xu, S.; Li, S.; Pang, Q. Research on influence mechanism of consumer satisfaction evaluation behavior based on grounded theory in social e-commerce. Systems 2024, 12, 572. [Google Scholar] [CrossRef]
- Li, Y.; Shen, Z.; Zhao, C.; Chin, K.-S.; Lang, X. Understanding customer opinion change on fresh food e-commerce products and services—Comparative analysis before and during COVID-19 pandemic. Sustainability 2024, 16, 2699. [Google Scholar] [CrossRef]
- Ilieva, G.; Yankova, T.; Klisarova, S.; Dzhabarova, Y. Customer satisfaction in e-commerce during the COVID-19 pandemic. Systems 2022, 10, 213. [Google Scholar] [CrossRef]
- Fici, A.; Bilucaglia, M.; Casiraghi, C.; Rossi, C.; Chiarelli, S.; Columbano, M.; Micheletto, V.; Zito, M.; Russo, V. From e-commerce to the metaverse: A neuroscientific analysis of digital consumer behavior. Behav. Sci. 2024, 14, 596. [Google Scholar] [CrossRef]
















| Model | Embedding Method | Preprocessing Depth | Neutral Class Handling | Dataset Domain | Attention Type | Attention Scoring | Outlier Handling | Domain Generalization | Novel Technical Component |
|---|---|---|---|---|---|---|---|---|---|
| Conventional Bi-LSTM + Attention | Word2Vec/GloVe | Basic cleaning only | No | Single domain | Generic | Additive | No | Weak | No contextual refinement |
| Existing Luong Attention Bi-LSTM | Word embeddings | Partial cleaning | No | Limited categories | Luong | Dot-product | No | Limited | Standard Luong mechanism without optimization |
| Proposed Model | Custom-trained embeddings | Optimized pipeline: noise reduction, sentiment balancing, outlier removal | Explicit 3-class representation | Multi-category Amazon dataset | Luong Attention | Refined scoring mechanism for sentiment-bearing token prioritization | Yes | Strong cross-domain generalization | Integrated EDA, unified workflow, ablation-validated improvements |
| Evaluation Strategy | Dataset | Purpose |
|---|---|---|
| Train–Test Split (80/20) | Amazon Reviews | Baseline performance evaluation |
| k-fold Cross-Validation | Amazon Reviews | Validates model stability and robustness |
| Study/Model | Key Finding in Literature | Comparison with Our Findings | Practical Implications for E-Commerce |
|---|---|---|---|
| Cross-border review analysis (Liu et al.) [15] | Identified major consumer concerns | Our model provides higher sentiment accuracy | Better understanding of customer needs |
| Aspect-based summarization (Mabrouk et al.) [19] | Extracted product aspects but no deep sentiment | Our model adds strong sentiment classification | Better automated review summarization |
| Attention-BiLSTM sentiment (H. Li et al.) [23] | Improved 3-class classification | Our model offers competitive performance + scalability | Supports large-scale sentiment analysis |
| NLP + ML for retailers (Nichifor et al.) [22] | Found hidden neutral tone | Our model detects polarity more precisely | Improves customer feedback interpretation |
| Fresh food sentiment (Li et al.) [26] | Logistics issues identified via text mining | Our model provides deeper emotional analysis | Enhances service-quality monitoring |
| Model | Accuracy (%) | Precision (%) | Recall (%) | F1-Score (%) |
|---|---|---|---|---|
| BERT | 97.1 | 96.95 | 97.02 | 96.98 |
| RoBERTa | 97.35 | 97.12 | 97.2 | 97.16 |
| Bi-LSTM | 94.76 | 94.2 | 94.55 | 94.37 |
| Proposed Model | 96.67 | 96.21 | 96.48 | 96.34 |
| Model | Accuracy (%) | Precision (%) | Recall (%) | F1-Score (%) |
|---|---|---|---|---|
| SVM | 89.2 | 88.5 | 89 | 88.7 |
| Random Forest | 91 | 90.3 | 90.8 | 90.5 |
| CNN | 93.5 | 93 | 93.2 | 93.1 |
| Bi-LSTM | 94.76 | 94.2 | 94.55 | 94.37 |
| BERT | 97.35 | 97.12 | 97.2 | 97.16 |
| Proposed Model | 96.67 | 96.21 | 96.48 | 96.34 |
| Model | Accuracy (%) | Precision (%) | Recall (%) | F1-Score (%) |
|---|---|---|---|---|
| Bi-LSTM | 94.76 | 94.2 | 94.55 | 94.37 |
| Bi-LSTM + Luong Attention (Proposed Model) | 96.67 | 96.21 | 96.48 | 96.34 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Mamyrbayev, O.; Mussayeva, D.; Kurmetkan, T. Enhanced Sentiment Analysis of E-Commerce Product Reviews Using Luong Attention-Based Bi-LSTM. Information 2026, 17, 398. https://doi.org/10.3390/info17050398
Mamyrbayev O, Mussayeva D, Kurmetkan T. Enhanced Sentiment Analysis of E-Commerce Product Reviews Using Luong Attention-Based Bi-LSTM. Information. 2026; 17(5):398. https://doi.org/10.3390/info17050398
Chicago/Turabian StyleMamyrbayev, Orken, Dinara Mussayeva, and Turdybek Kurmetkan. 2026. "Enhanced Sentiment Analysis of E-Commerce Product Reviews Using Luong Attention-Based Bi-LSTM" Information 17, no. 5: 398. https://doi.org/10.3390/info17050398
APA StyleMamyrbayev, O., Mussayeva, D., & Kurmetkan, T. (2026). Enhanced Sentiment Analysis of E-Commerce Product Reviews Using Luong Attention-Based Bi-LSTM. Information, 17(5), 398. https://doi.org/10.3390/info17050398

