A Machine Learning Approach for Textual Sentiment Classification

Authors

  • Huma Tauseef Computer Science Department, Lahore College for Women University, Lahore, Pakistan. https://orcid.org/0000-0003-0700-6125
  • Tehmina Shahid Computer Science Department, Lahore College for Women University, Lahore, Pakistan
  • Naveed Iqbal Department of Mass Communication, Lahore College for Women University, Lahore, Pakistan https://orcid.org/0009-0009-6263-2322
  • Aqsa Shabbir Department of Electrical Engineering, Lahore College for Women University, Lahore, Pakistan https://orcid.org/0000-0002-3798-1223
  • Sahar Zia Department of Geography, Lahore College for Women University, Lahore, Pakistan https://orcid.org/0000-0002-0629-5423
  • Ahmad Faisal Department of Electrical Engineering, National University of Science & Technology, Islamabad, Pakistan
  • Sajjad Rabbani Department of Electrical Engineering, Lahore College for Women University, Lahore, Pakistan

DOI:

https://doi.org/10.62019/abbdm.v3i1.140

Abstract

The proliferate use of microblogs and social networks have become valuable sources to determine individuals’ opinion about an entity, product, topic, events, and politics etc. Main challenges implicated by the literature review include; contextual understanding and domain adaptation. Another challenge is that models trained on one domain may not generalize well to other domains due to differences sentiment expressions, or domain-specific terms. Therefore, textual sentiment analysis has become hotspot for research purpose. The paper proposes deep learning neural network models: LSTM and Bidirectional LSTM aims to automatically predict the sentiment polarity from given user posted text review into positive or negative class. Further, feature vectors are formed for each input sentence using Global vector for word representation (Glove) algorithm. Our proposed model utilizes 300-dimensional Glove for feature embedding. This high dimensional pre train vector contains semantically closer words. The impact of varying nature of datasets on the performance of both models for sentiment analysis is also investigated. Experiment is conducted on two Amazon product reviews datasets. The proposed research concluded that BLSTM achieved higher accuracy than Single LSTM and also outperforms the state -of-the-art models on document level reviews. Both models excel in capturing the temporal dependencies and linguistic structures. Highest accuracies of 94% and 96% are achieved on Amazon food reviews and Mobile reviews respectively using the BLSTM based model. The proposed model proved robust to changing sentiment trends or evolving language use as the datasets used are real-time datasets of thousands of users from different countries having variation in sentiment expression. The proposed model grasps the contextual understanding and domain adaptation very well.

Downloads

Published

2023-09-19

How to Cite

Tauseef, H., Shahid, T., Iqbal, N., Shabbir, A., Zia, S., Faisal, A., & Rabbani, S. (2023). A Machine Learning Approach for Textual Sentiment Classification. The Asian Bulletin of Big Data Management, 3(1), 260–273. https://doi.org/10.62019/abbdm.v3i1.140

Most read articles by the same author(s)