A Hybrid of Syntactic Structure and Contextual Semantics for Enhanced Product Review Sentiment Analysis
Main Article Content
Abstract
With the rapid growth of e-commerce platforms, analyzing customer reviews has become essential for understanding product perception and supporting data-driven decision-making. Traditional sentiment analysis methods often rely solely on sequential text representations, which may overlook the syntactic structures and contextual nuances present in customer feedback. This study aims to develop an interpretable hybrid framework that effectively captures both semantic meaning and syntactic dependencies to enhance sentiment prediction accuracy. The proposed model combines contextual embeddings from SentBERT with syntactic features extracted via Graph Feature Fusion. The process involves preprocessing customer reviews, extracting aspect-based semantic representations using SentBERT, and constructing syntactic graphs via dependency parsing. These features are merged in a fusion layer and refined using supervised contrastive learning to improve class separability in the sentiment space. SHAP Explainable AI is integrated to provide human-interpretable explanations for the sentiment predictions. The hybrid model achieves a sentiment classification accuracy of 97%, outperforming baseline methods, including BERT (93%) and GCN (88%), as well as classical machine learning algorithms. These findings highlight the effectiveness of integrating syntactic and contextual features in sentiment analysis. The framework can be applied to real-world e-commerce platforms to enhance automated review analysis, improve customer service insights, and support product development strategies.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
เนื้อหาข้อมูล
References
K. Qiu and L. Zhang, “How online reviews affect purchase intention: A meta-analysis across contextual and cultural factors,” Data Inf. Manag., vol. 8, no. 2, p. 100058, Jun. 2024.
V. Shrirame, J. Sabade, H. Soneta, and M. Vijayalakshmi, “Consumer behavior analytics using machine learning algorithms,” in Proc. 2020 IEEE Int. Conf. Electron., Comput. Commun. Technol. (CONECCT), 2020, pp. 1-6, https://doi.org/10.1109/CONECCT50063.2020.9198562
T. Brown et al., “Language models are few-shot learners, ” in Proc. 34th Int. Conf. Neural Inf. Process. Syst. (NeurIPS), 2020, pp. 1877-1901.
J. J. Rahman, T. M. A. Riaz, M. Partha, K. M. Mohsin, N. Kamruddin, and M. F. Mridha, “Recent advancements and challenges of NLP-based sentiment analysis: A state-of-the-art review,” Nat. Lang. Process. J., vol. 6, Art. no.100059, Mar. 2024.
C. Dewi, R.-C. Chen, H. J. Christanto, and F. Cauteruccio, “Multinomial naïve Bayes classifier for sentiment analysis of internet movie database,” Vietnam J. Comput. Sci., vol. 10, no. 4, pp. 485-498, Jan. 2023, https://doi.org/10.1142/S2196888823500100
I. A. K. Shaikh, R. P. Pujar, S. P. Kishore, S. Ragamayi, P. V. Krishna, and A. B. Nadaf, “A novel approach for e-commerce system for sale prediction with denoised autoencoder and SVM-based approach,” in Proc. 2023 Int. Conf. Sustain. Comput. Smart Syst. (ICSCSS), 2023, pp. 1684-1689.
N. Karina and Sriani, “Sentiment analysis of skincare products using the naïve Bayes method,” J. Inf. Syst. Informatics, vol. 6, no. 3, pp. 1663-1676, Sep. 2024, https://doi.org/10.51519/journalisi.v6i3.817
T. A. Khan, R. Sadiq, Z. Shahid, M. M. Alam, and M. B. Mohd Su’ud, “Sentiment analysis using support vector machine and random forest,” J. Informatics Web Eng., vol. 3, no. 1, pp. 67-75, Feb. 2024, https://doi.org/10.33093/jiwe.2024.3.1.5
J. Devlin, M. -W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of deep bidirectional transformers for language understanding,” in Proc. NAACL-HLT, 2019, pp. 4171-4186.
A. Vaswani et al., “Attention is all you need,” in Proc. 30th Int. Conf. Neural Inf. Process. Syst. (NeurIPS), 2017, pp. 5998-6008.
C. Li, D. Cheng, and Y. Morimoto, “Leveraging deep neural networks for aspect-based sentiment classification,” arXiv, pp. 1-19, Mar. 2025, https://doi.org/10.48550/arXiv.2503.12803
J. Hu and Y. Li, “Aspect-level sentiment analysis of bi-graph convolutional networks based on enhanced syntactic structural,” J. Comput. Commun., vol. 13, no. 1, pp. 72-89, Jul. 2025, https://doi.org/10.4236/jcc.2025.131006
M. Peal, M. S. Hossain, and J. Chen, “Summarizing consumer reviews,” J. Intell. Inf. Syst., vol. 59, no. 1, pp. 193-212, Feb. 2022, https://doi.org/10.1007/s10844-022-00694-9
K. S. Kumar, M. Priyanka, M. Rishitha, D. D. Teja, and N. Madhuri, “Text summarization with sentiment analysis,” Int. J. Innov. Res. Comput. Sci. Technol., vol. 9, no. 4, Jul. 2021.
L. Yang, Y. Li, J. Wang, and R. S. Sherratt, “Sentiment analysis for e-commerce product reviews in Chinese based on sentiment lexicon and deep learning,” IEEE Access, vol. 8, pp. 23522-23530, Jan. 2020.
A. R. Sulthana, K. Jaithunbi, H. Harikrishnan, and V. Vijayakumar, “Sentiment analysis on movie reviews dataset using support vector machines and ensemble learning,” Int. J. Inf. Technol. Web Eng., vol. 17, pp. 1-23, Jan. 2022.
D. Šandor and M. Bagić Babac, “Sarcasm detection in online comments using machine learning,” Inf. Discov. Deliv., vol. 52, no. 2, pp. 213-226, Mar. 2024, https://doi.org/10.1108/IDD-01-2023-0002
E. Wahyudi and R. Kusumaningrum, “Aspect-based sentiment analysis in e-commerce user reviews using latent Dirichlet allocation (LDA) and sentiment lexicon,” in Proc. 3rd Int. Conf. Informatics Comput. Sci. (ICICoS), 2019, pp. 1-6.
L. Luo, C. -H. Wei, P. -T. Lai, R. Leaman, Q. Chen, and Z. Lu, “AIONER: All-in-one scheme- based biomedical named entity recognition using deep learning,” Bioinformatics, vol. 39, no. 5, pp. 1-9, May 2023, https://doi.org/10.1093/bioinformatics/btad310
M. A. Sejan, M. H. Rahman, M. A. Aziz, J. -I. Baik, Y. -H. You, and H. -K. Song, “Graph convolutional network design for node classification accuracy improvement,” Mathematics, vol. 11, no. 17, p. 3680, Aug. 2023.
P. Khosla et al., “Supervised contrastive learning,” arXiv, 2020. [Online]. Available: https://arxiv.org/abs/2004.11362 [Accessed: Jun. 8, 2025].
X. Zhao, P. -F. Zhang, Q. Zhao, D. Zhang, Y. Tuerxunmaimaiti, and H. Cao, “ASHAP algorithm-based prediction of the interlaminar shear strength degradation of G/BFRP bars embedded in concrete exposed to marine environment,” Case Stud. Constr. Mater., vol. 22, pp. 1-19, Jul. 2025.