These are my recent research articles; the entire manuscripts were written by me.
These are my recent research articles; the entire manuscripts were written by me.
Writing Sample 1
Writing Sample 2
Abstract
Customers of e-commerce platforms exchange their thoughts in such kinds of languages. In the age of the present competitive business world, sentiment analysis is widely used in the e-commerce industry to improve efficiency and better understanding to make business decisions. Earlier research on sentiment analysis was in English, but there is no such significant work in Bangla language and Romanized Bangla language reviews. Therefore, we have developed a machine learning model where reviews on three different languages (Bangla, English, and Romanized Bangla) are used and applied six machine learning algorithms. We have demonstrated a comparative analysis with existing work and have discussed the detailed accuracy, precision, recall, F1 scores, and ROC area. We have prepared three datasets and labeled all the review data as Negative, Positive, Neutral, Slightly Negative, and Slightly Positive sentiment. To perform analysis, the preprocessed datasets were trained using machine learning techniques, and the model performances is evaluated. For the Bangla dataset, the Support Vector Machine(SVM) algorithm performed best by achieving 94% accuracy and for the English and Romanized Bangla dataset, the Random Forest algorithm performed best by achieving 93% and 94% accuracy respectively.
Introduction
E-commerce refers to the purchase and sale of products and services through the internet. It contains a large number of data, processes, and tools for customers and sellers, such as smart device shopping, cash on delivery, and online payment encryption [1]. According to a research report, due to the covid-19 pandemic, online sales have increased [16]. Customers are accustomed to submitting reviews or comments after receiving deliveries to share their opinions about the quality of the products and services. However, in the instance of online buying, e-commerce service providers go to great lengths to assist users in selecting trustworthy products. Various businesses, particularly e-commerce, heavily rely on sentiment analysis to boost product quality and make the right business decisions in today's competitive business world. E-commerce companies want to know what their customers think about their sellers and products that help them to maintain their online reputation [13]. Shoppers can easily get ideas about which product will be best for them compared to other products using this active feedback information [14]. Sentiment analysis is a procedure of gathering customer feedback about a product and categorizing it into distinct polarities using contextual data [15]. The task of classifying text is known as polarity classification. Texts have evolved into a treasure trove of important information and people's perspectives on a variety of topics [11].
Consumers value other people's opinions and experiences and reading a review on a product is the sole method to learn what other customers think about it. Opinions derived from consumers’ experiences with certain products have a direct impact on future customer purchases [1]. Negative and slightly negative ratings, on the contrary, frequently result in sales loss. The target for entrepreneurs who want to be successful in business is to understand their clients' input and polarize correctly over a large amount of data [9]. Some research has been completed only in positive, negative, and neutral classes. Research deals with some human sentiment that is not related to e-commerce business [11]. To establish a better e-commerce system it is necessary to work on all types of human sentiment based on consumers. There is no research completed on five (Negative, Positive, Neutral, Slightly Negative, and Slightly Positive) types of human sentiment that can be established a better electronic commerce business system. This core inspires us to work on it.
The fundamental purpose of this research is to improve the limitations of datasets and existing preprocessing and feature extraction techniques on product reviews in Bangla, English, and Romanized Bangla. Different types of customer reviews are present in the e-commerce review section but working with only a selected language and labeling data according to very fewer human sentiments can never perfectly contribute to developing a better e-commerce system. So our main goal is to polarize all types of reviews in the review section. Opinion mining of reviewers is the procedure of gathering information from the internet to determine customers’ thoughts, hence we labeled our dataset into five classes [13]. Our research presents an ML-based model for sentiment identification in e-commerce product evaluations for three languages. Working with a new domain of three different languages, five types of human sentiment is the main contribution of our work and also some previous research in the same area has been improved by the proposed technique.
Related Works
Sentiment analysis is now an active field of research. Many researchers are performing research on sentiment analysis. Some researchers performed sentiment analysis on product review data of different e-commerce websites in various languages. Some of the previous work related to our research are discussed. In this section, we have summarized past findings and have shown the limitations and how these limitations are handled by our proposed technique.
In [1], authors used amazon reviews data to perform research only in English language and applied six machine learning algorithms, where Linear SVM achieved the highest accuracy of 94.02%. By observing the amazon review section, we noticed that customers express a variety of sentiments in their reviews. According to positive and negative sentiments, they categorized their data into only positive and negative. In this research, we made an addition of product review sentiment analysis in three different languages and have categorized our datasets into negative, positive, neutral, slightly negative, and slightly positive.
Shafin et al. [2] used 1020 reviews data and applied five machine learning algorithms. They got the highest of 88.81% accuracy in SVM. They used only Bangla positive and negative data in their research whether in our research we have used three different product reviews. Aspect-based sentiment analysis is performed by Satuluri Vanaja and Meena Belwal [3]. They used amazon reviews and got the highest 90.423% accuracy in the Naive Bayes algorithm. They labeled their data into three types of sentiments and did classification using only Naive Bayes and SVM but in our research, we have applied six machine learning algorithms that have got better accuracy in SVM and Random Forest.
In [4], the authors used IMDb, blogs, and social media data, to research sentiment analysis whereby applying machine learning algorithms and got the highest of 83% accuracy which is not better than our research's best-obtained accuracy. They labeled their dataset into only two classes. Mst. Tuhin Akter, Manoara Begum, and Rashed Mustafa performed research on Bangla product reviews where they collected data from ‘Daraz’ [5]. They applied five machine learning algorithms and got the highest of 96.25% accuracy in KNN. They collected only Bangla reviews from daraz and labeled their dataset into three types of sentiments which are less than our research.
A feature-based opinion mining was performed where they collected their data from kaggle.com [6]. Their proposed approaches were analyzed by SVM and Random Forest, where Random Forest gave the best accuracy of 97%. Their used dataset had only negative, positive, and neutral classes. There are lots of fake reviews given on any e-commerce platform. In [7], their proposed approach covered three basic phases to get a model for fake review detection. They applied five machine learning algorithms and achieved 87.87% accuracy in Logistic Regression which is not greater than the best-obtained accuracy of our research. Comparative sentiment analysis of sentence embedding was performed by Poornima A. and K. Sathiya Priya [8]. They used tweeter data and applied MNB, SVM, and Logistic regression. They got the highest of 86.23% accuracy in Logistic regression which is 7.77% less than our best-obtained accuracy. In [9], they completed research on product reviews using machine learning approaches, where they used only 900 daraz reviews data which is a very small dataset. By applying various machine learning algorithms they got the highest 78% of accuracy in Ridge Algorithm and the lowest accuracy is 66% in Random forest which can be improved more. Character-level supervised RNN approach was proposed where they developed a deep learning model [10]. They collected data from social media platforms and applied recurrent neural networks (LSTM, GRU) for training their model and got the highest of 80% accuracy. Though the above-mentioned works are compatible, there are still some lacking in some perspectives according to the sentiment analysis of the e-commerce review. The best of our investigation, there is currently no work presented in the e-commerce review from Romanized Bangla texts, it is one of the novelties of our research. Our research contains three different datasets. We have labeled our datasets into five types of human sentiments (negative, positive, neutral, slightly negative, and slightly positive) which is another novelty of our research.
A. Workflow
In this research, our prime focus is to deploy machine learning algorithms to perform sentiment analysis of e-commerce site visitors. This work is based on the client's opinion and evaluation of the e-commerce business. We have used the review data of daraz.com.bd, and we preprocessed the collected review text using NLP techniques. To train the machine learning techniques we extract features. After that, we evaluated the model performances. The proposed methodology is shown in Fig. 1.
B. Dataset
For data collection, we chose daraz.com.bd, as it is the largest e-commerce platform in Bangladesh [5]. We have built a scraper using a beautiful soup framework to gather customer reviews. However, daraz reviews were mostly in three types, English, Bangla, and Romanized Bangla. So we separate the review data using Langdetect to measure performance independently. We manually labeled these data into five types of human sentiment according to TABLE I. Our dataset contains a total of 7181 data, where 3964 Bangla, 2059 English, and 1161 Romanized Bangla data. TABLE (I). demonstrates some of the labeled data.
C. Preprocessing
It is necessary to clean the data due to the existence of extremely noisy texts. At first, we remove punctuation and uppercase characters from our datasets and convert them to lowercase. Then we removed special characters, unwanted characters, digits, emoji, and emoticons from three datasets. Bangla and Romanized Bangla text were mixed in several of the comments. We removed them from the dataset to achieve accurate outcomes. [12]. Then we have removed stop words, but we kept negation to get better outcomes. We have used stemming in the Bangla and English Datasets since Bengali is a strongly inflected language.
Figure 1. Research Methodology
TABLE I. SOME OF THE LABELED DATA
D. Oversampling
An imbalanced training data set will certainly affect prediction accuracy in sentiment analysis [5]. The term "class imbalance" refers to a significant disparity in class sizes. In this circumstance, any classifier becomes biased in favor of the dominant class, ignoring the minority class, resulting in incorrect predictions. To overcome this limitation, we applied random oversampling techniques and made all minority classes equal to the majority classes. When the data amount is insufficient, oversampling is a strategy for resampling the data to address imbalance dataset difficulties. By creating additional samples, it enlarges the minority class dataset. After applying the random oversampling technique dataset has a total of 15630 review data. There are 8785 Bangla Data, 4440 English, and 2405 Romanized Bangla Data. Fig.2 demonstrated the datasets before oversampling, and Fig. 3 demonstrated the datasets after oversampling.
Figure. 2 Visualization of Datasets Without Oversampling
Figure. 3 Visualization of Datasets After Oversampling
E. Feature Extraction
To increase classification efficiency and accuracy, the technique of projecting greater feature space into lesser feature space is known as feature extraction. [5]. It is basically a process to remove unnecessary data elements that may impact the model's accuracy. To decrease the dimensionality of the classification algorithm, it is necessary to limit the number of resources used to describe a large set of data by developing new features from a combination of the genuine set [18]. It has been established that the key to good model creation is optimal feature extraction. To solve the challenges, we have used the TF-IDF feature extraction technique. We applied the feature extraction technique TF-IDF in machine learning algorithms. TF-IDF converts strings to numbers in order to provide numerical data to ML models[12].
F. Splitting the dataset into train and test
We split all three datasets into 80% for training and 20% for testing, respectively. After preprocessing and oversampling all three datasets and performing feature extraction, Bangla Dataset had 7028 texts for training and 1757 for testing after it was separated. English Dataset has 3552 texts for training and 888 texts for testing. 1924 texts were placed to use in training and 481 for testing in the Romanized Bangla Dataset. The models are trained with training sets and then tested with testing sets.
G. Machine Learning Algorithms
To anticipate categorical labels, machine learning-based classification algorithms are widely utilized [12]. We have used supervised learning because in additionally it is a classification model problem. Although there are various machine learning classification methods, we have employed six in our study: Multinomial Naive Bayes, Support Vector Machine(SVM), Logistic Regression, Random Forest, k-Nearest Neighbors(KNN), and Decision Tree.
H. Performance Analysis
Our models were evaluated using the testing datasets, and the parameters were assessed after they had been trained. The performance was assessed using the confusion matrix, accuracy, precision, and recall, f1-score, and ROC area. The confusion matrix is a set of four expected and actual values used to assess the effectiveness of machine learning classification techniques. [12]. In Fig. 4. True Positive, False Positive, False Negative and True Negative are denoted by the letters TP, FP, FN, and TN, respectively. The confusion matrix is critical for determining accuracy, precision, recall, and, most significantly, the ROC area. The accuracy, precision, recall, and f1-score are calculated using (1), (2), (3), and (4) [17].
Figure. 4 Confusion Matrix
Results & Discussion
In this section, accuracy results are discussed. We have applied six machine learning algorithms and demonstrate only the confusion matrix and ROC area of best-performing algorithms on all datasets.
Figure. 5 Confusion Matrix of SVM for Bangla Data
Fig. 6. ROC area of SVM for Bangla Data.
Figure. 7 Confusion Matrix of Random Forest for English
Fig. 8. ROC area of Random Forest for English Data.
Figure. 9 Confusion Matrix of Random Forest for Romanized Bangla
Fig. 10. ROC area of Random Forest for Romanized Bangla Data.
Fig. 5, Fig. 7, Fig. 9 show that for Bangla Dataset, Support Vector Machine, and for English and Romanized Bangla Dataset, Random Forest was the most accurate algorithm and classified maximum negative, positive, neutral, slightly negative, and slightly positive labeled testing data correctly. Furthermore, in Fig. 6. Support Vector Machine occupied more ROC area for every class in Bangla Dataset, in Fig. 8. Random Forest occupied more ROC area for English Dataset, and in Fig. 10. again Random Forest occupied the more ROC area in Romanized Bangla Dataset. Finally, more detailed results of all machine learning algorithms respectively shown on all datasets in TABLE II, TABLE III, and TABLE IV.
It can be shown in TABLE II. that among all machine learning algorithms, for Bangla Dataset, SVM got the best results with a 0.94 precision score and also obtained the same recall and f1-score. SVM got the highest accuracy 0.94 and the highest cross-validation score 0.95. The fewer scores were got by Multinomial Naive Bayes. There are 0.81 precision scores and also got 0.81 recall along with 0.81 f1-scores respectively. Multinomial Naive Bayes got the 0.81 accuracies and 0.82 Cross-validation score.
In TABLE III. for English Dataset, Random Forest performed the most with a 0.93 precision score and achieve the same recall and f1-score. Random Forest got the highest accuracy 0.93, and cross-validation scores of 0.93. The fewer scores were achieved by Multinomial Naive Bayes. MNB got a 0.80 precision score and also recall scores is 0.89, and 0.80 f1-scores respectively. Multinomial Naive Bayes got the 0.80 accuracies and 0.77 Cross-validation score.
In TABLE IV. for Romanized Bangla Dataset, again Random Forest got the most with a 0.94 precision score and also obtained the same recall and f1-score. Random Forest got the highest accuracy and cross-validation score which is 0.94 and 0.95. The fewer scores were shown by again Multinomial Naive Bayes. There are 0.88 precision scores and also got 0.87 recall along with 0.87 f1-scores respectively. Multinomial Naive Bayes got 0.87 accuracies and 0.88 Cross-validation score. Fig. 11 shows the comparative analysis of all machine learning algorithms respectively on all datasets.
Fig. 11. Comparison among all datasets
Fig. 11. indicates that SVM obtained the better accuracy of 94% for the Bangla and Random Forest achieved the best accuracy of 93% in English Dataset and again Random Forest algorithms obtained the best accuracy score of 94% in the Romanized Bangla Dataset. Considering the confusion matrix's values, as well as the highest number of properly categorized and lowest number of wrongly classified occurrences, SVM and Random Forest performed best compared to other algorithms.