Feature level fine grained sentiment analysis using boosted long short-term memory with improvised local search whale optimization

PeerJ Comput Sci. 2023 Apr 24:9:e1336. doi: 10.7717/peerj-cs.1336. eCollection 2023.

Abstract

Background: In the modern era, Internet-based e-commerce world, consumers express their thoughts on the product or service through ranking and reviews. Sentiment analysis uncovers contextual inferences in user sentiment, assisting the commercial industry and end users in understanding the perception of the product or service. Variations in textual arrangement, complex logic, and sequence length are some of the challenges to accurately forecast the sentiment score of user reviews. Therefore, a novel improvised local search whale optimization improved long short-term memory (LSTM) for feature-level sentiment analysis of online product reviews is proposed in this study.

Methods: The proposed feature-level sentiment analysis method includes 'data collection', 'pre-processing', 'feature extraction', 'feature selection', and finally 'sentiment classification'. First, the product reviews given from different customers are acquired, and then the retrieved data is pre-processed. These pre-processed data go through a feature extraction procedure using a modified inverse class frequency algorithm (LFMI) based on log term frequency. Then the feature is selected via levy flight-based mayfly optimization algorithm (LFMO). At last, the selected data is transformed to the improvised local search whale optimization boosted long short-term memory (ILW-LSTM) model, which categorizes the sentiment of the customer reviews as 'positive', 'negative', 'very positive', 'very negative', and 'neutral'. The 'Prompt Cloud dataset' is used for the performance study of the suggested classifiers. Our suggested ILW-LSTM model is put to the test using standard performance evaluation. The primary metrics used to assess our suggested model are 'accuracy', 'recall', 'precision', and 'F1-score'.

Results and conclusion: The proposed ILW-LSTM method provides an accuracy of 97%. In comparison to other leading algorithms, the outcome reveals that the ILW-LSTM model outperformed well in feature-level sentiment classification.

Keywords: Levy flight-based mayfly optimization algorithm (LFMO); Log term frequency-based modified inverse class frequency (LFMI); Long short-term memory (LSTM); Sentiment analysis; Whale optimization.

Grants and funding

The authors state that this work has not received any funding.