Next Article in Journal
Evaluation of the Cortical Deformation Induced by Distal Cantilevers Supported by Extra-Short Implants: A Finite Elements Analysis Study
Next Article in Special Issue
An Improved A* Algorithm Based on Hesitant Fuzzy Set Theory for Multi-Criteria Arctic Route Planning
Previous Article in Journal
Linearly Polarized UV Light-Induced Optical Anisotropy of PVA Films and Flexible Macrocycle Schiff Base Ni(II), Cu(II), Zn(II) Dinuclear Complexes
Previous Article in Special Issue
Another View of Aggregation Operators on Group-Based Generalized Intuitionistic Fuzzy Soft Sets: Multi-Attribute Decision Making Methods
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Fuzzy Logic Based Intelligent System for Measuring Customer Loyalty and Decision Making

Department of Computer Science & IT, The Islamia University Bahawalpur, Bahawalpur 63100, Pakistan
*
Author to whom correspondence should be addressed.
Symmetry 2018, 10(12), 761; https://doi.org/10.3390/sym10120761
Submission received: 10 November 2018 / Revised: 8 December 2018 / Accepted: 12 December 2018 / Published: 17 December 2018
(This article belongs to the Special Issue Fuzzy Techniques for Decision Making 2018)

Abstract

:
In this paper, an intelligent approach is presented to measure customers’ loyalty to a specific product and assist new customers regarding a product’s key features. Our approach uses an aggregated sentiment score of a set of reviews in a dataset and then uses a fuzzy logic model to measure customer’s loyalty to a product. Our approach uses a novel idea of measuring customer’s loyalty to a product and can assist a new customer to take a decision about a particular product considering its various features and reviews of previous customers. In this study, we use a large sized data set of online reviews of customers from Amazon.com to test the performance of the customer’s reviews. The proposed approach pre-processes the input text via tokenization, Lemmatization and removal of stop words and then applies fuzzy logic approach to take decisions. To find similarity and relevance to a topic, various libraries and API are used in this work such as SentiWordNet, Stanford Core NLP, etc. The approach utilized focuses on identifying polarity of the reviews that may be positive, negative and neutral. To find customer’s loyalty and help in decision making, the fuzzy logic approach is applied using a set of membership functions and rule-based system of fuzzy sets that classify data in various types of loyalty. The implementation of the approach provides high accuracy of 94% of correct loyalty to the e-commerce products that outperforms the previous approaches.

1. Introduction

The World Wide Web (WWW) has revolutionized our lives with many different services to facilitate its users such as online shopping, online study courses, online banking and many more. For the last decade, e-commerce (the act of buying and selling of products through internet) is growing day by day and has emerged into the future of shopping. The trend setters in modern e-commerce are Amazon, E-Bay, Ali Baba Express, olx, Daraz.com, and many others. One of the largest retailing e-commerce website is AMAZON.com. Recently, there are approximately 244 million Active buyer accounts, 200 million active products on Amazon and 2.2 billion sales in the past 12 months (average 6 million sales a day [1]. Shopping by e-commerce creates much ease for the customers and businesses as well. However, a challenge faced by the e-commerce users is the need for a better and improved platform to compare and select products and its prices for best choice selection [2]. If such a platform is available, it can save a customer’s time, money and energy and can help in buying better products that fulfill their requirements. A big source of knowledge is customers’ reviews and feedbacks of a product at social media and e-commerce websites that can effectively guide new customers about previous customers’ opinions, interests, past experience and brand loyalty [3,4,5,6,7]. Such information can be very helpful for new customers to buy online with satisfaction and select a right product.
To know about a customer’s loyalty to a product, the easiest and widely used technique for measuring customer satisfaction is to understand their sentiments or opinions, which they expressed in the form of comments [8,9,10]. The most important way to understand their feelings, mood and sentiments or what they are trying to say is to judge their reviews and comments about the product and services [11]. After collecting the information about the consumer’s opinion, we can distinguish what is necessary and what is not. The tracking of opinions, feeling, responses and mood of the customers is known as opinion mining and sentiment analysis [12]. The recent type of text analysis that targets to conclude the opinion and polarity of reviews is referred to as Sentiment Analysis. It is a kind of text analysis that deals with a wide aspect of natural language processing, computational semantics and text mining [13].
The current web is a huge repository of valuable information in the scattered form such as micro-blogging websites, such as Twitter or Facebook, have billions of comments and opinions uploaded on daily basis. Sentiments, such as opinions, attitudes, views and emotions, are personal experiences of individuals that are not open to impartial observation. They are stated in language that uses subjective opinions which express sentiment analysis. Most of the organizations carried opinion mining and sentiment analysis of the reviews of online posts [14,15,16,17]. The opinions expressed on social networking sites are very effective for the decision making process of business organizations. Organizations use these posts to extract the opinions of the people and to perform sentiment analysis. Sentiment analysis provides a part of text to be positive, neutral or negative in sense.
Previously, general purpose sentiment analysis of tweets and posts have been carried out [3,4,5,6,7,8,9,10,11,12], however a task-oriented sentiment analysis of users’ reviews of a product to find key features liked by the users and measuring their confidence level is a new idea. A challenge in performing a task-oriented sentiment analysis is measuring a customer’s loyalty to a specific product on the basis of customers’ views about a product. In this paper, we propose a novel idea of using sentiment score of each customer review of a product and then take the aggerate of the sentiment score and then use such a score to measure customers’ loyalty with a product. In this paper, a fuzzy logic method is used for measuring customers’ loyalty to a product with the help of sentiment analysis score as shown in Figure 1.
In our approach, we identify sentiments of users by reading their comments of social network users and by analyzing this we can view them as positive, neutral or negative. We measure the “PN-polarity” of subjective terms, i.e., recognizes whether a text can be positive or negative in which opinions and emotions are expressed. Stanford core NLP is a set of tools and techniques that provides sense to the computer to understand the speech of a human. Stanford Core NLP is transcribed in Java and requires Java 1.8+. Java is required to be connected to execute Core NLP. However, other languages for code writing, e.g., Python or JS (Java Script), can be used and some other languages [18]. With the help of Core NLP, our approach easily understands what people are trying to express through their words. To retrieve sentiments and polarity of input text apply, SentiWordNet library [19] is used to measure the customer involvement level towards a product. Here, we apply the sentiment analysis on the products reviews and also performs P-N polarity on this set of data that tells the positivity, neutral and negativity of reviews and tries to provides accurate results.
Finally, to measure customers’ loyalty on the basis of sentiment score calculated from the reviews, the fuzzy logic method is applied. Fuzzy Logic is a process of reasoning that looks a lot like human reasoning [20]. This approach replicates the way of decision making in a human being that includes all the possibilities between digital values YES and NO. The standard logic that a computer can easily understand is to takes specific input and produces a certain output as TRUE or FALSE, or1 or 0, which is equal to the human YES or NO. The fuzzy logic works on the levels of possibilities of input to achieve the definite output and is also called many valued logic which only deals with the truth values [4]. It is also known as many valued logic and deals with truth values only. The values of truth varies from all the values in between 0 and 1. These truth values can encompasses all the numbers between 0 and 1. It does not hold only with both true and false values such as Boolean algebra. The membership functions organized these truth values. It basically provides approximate reasoning.
The rest of the paper is structured into a set of sections. Section 2 discusses the related work of sentiment analysis. Section 3 presents an architecture of the designed approach based on fuzzy logic for measuring customer loyalty using sentiment analysis. Section 4 presents the results of the experiments and the paper is concluded with the future work in Section 5.

2. Literature Survey

In the recent years, sentiment analysis has gained much attention in the field of research. It has many paybacks and useful applications in the field of business, most probably in e-commerce [3,4,5,6,7]. It can give business many profitable gains and visions into how customers think and feel about products and services [8]. It also provides people a better option when they are trying to buy anything online. They know everything which they want to know just by clicking the button and reading the previous reviews about the product [9,10]. Sentiment analysis is a vast area of research because it is a very valuable action for businesses running online. Many people performed research on the sentiment analysis from the previous years and it always provides a remarkable gain in the business. Many researchers show much interest towards it and nowadays it gains major attention [11]. It takes a wide range of importance in industry as well as from a study point of view. Sentiment analysis provides measurable study for mining out the knowledge coming from a consumer’s opinion, moods, emotions and feelings towards the product and their characteristics [12]. Today the world has become a global village and the use of internet is excessively growing day by day. So, the demand of the internet is also increased and people prefer online shopping rather than going to malls. So, the review (sentiments) from online customers becomes a need for businesses, other consumers and producers as well [13].
Fuzzy logic is a method which calculates value based on degrees of truth other than the typical 1 or 0. The modern computer is based on Boolean logic (True or False). A lot of work has done on sentiment analysis by using fuzzy logic approach. A method for feature mining from the online reviews of the product was suggested by Indhuja et al. [14]. The feature-based sentiment extraction method categorized into positive, negative and neutral features. Research has been done on it to eliminate noises and for feature mining. It was prolonged to include the result of linguistic borders and fuzzy roles to copy the product of concentrators, transformers and also dilators. The technique was evaluated on SFU (Simon Fraser University) review corpus and the conclusions indicated that fuzzy logic executed flawlessly in sentiment analysis. A theory based on fuzzy logic approach in which sentiment sorting of Chinese sentence-level was projected [15]. This theory of fuzzy set provides the direct way to allocate the core fuzziness between the polarity modules of sentiments [20,21]. For a further procedure of fuzzy sentiment extraction, at the beginning it mentions a technique for measuring the intensity of sentiment sentences. After this it describes fuzzy set which determines the sentiment polarity score. It provides three fuzzy sets which are positive, negative and neutral sentiments. It builds a membership functions on the basis of sentiment intensities which designate the sentiment text measure in many fuzzy sets. The conclusion gives polarity of sentiment sentence level by the use of the maximum membership value.
A technique used for the collection of reviews, blogs and comments from the social networking sites, it differentiates subjective and objective reviews. We take a subjective type review in order to extract sentiment scores from the dictionary of SentiWordNet. Here the polarity of relative sentence structure is obtained from the SentiWordNet dictionary which are positive, negative and neutral scores. This technique of research performs machine learning and word-level approaches [17]. This proposed technique attains a precision of 97.8% at the view andfeedback level and 86.6% at the sentence level.
In a paper addressing sentiment analyzing techniques using movie reviews using sentiment sorting methods [18], the text at document level yields the polarity scores of the person discussed in reviews. It uses a dictionary of SentiWordNet to analyze every word scores involved in the reviews or comments. There are three types of scores of sentiment words which are positive, negative and neutral as well. It also uses a fuzzy logic technique and its rule base method for carrying out the output. It also uses precision, Recall and accuracy method in order to determine the efficiency of the project. In a similar research, a fuzzy logic approach was used to solve the cloudiness in natural languages. This paper proposed an aspect oriented sentiment classification. They use fuzzy logic for extracting the polarity scores of opinions such as positive, strongly positive, negative and strongly negative [20,21]. It includes objective and subjective types of sentences. It also involves non-opinionated reviews by using the IMS (Imputation of Missing Sentiment) technique. IMS is used for extracting accurate results. Researchers used fuzzy logic for the sentiment modules of reviews. The results explore that for mining of the effective conclusions, this framework is feasible [22].
A model [23] was proposed which provides broadcasting of the fuzzy logic for conception polarities. The researchers describe the ambiguity created by the fuzzy logic useful to diverse areas. This technique joined two linguistic properties, which are named as SenticNet and WordNet. After that a graph is plotted by the propagation algorithm of consequent data. It was broadcasted sentiment of characterized (labeled and un-labeled) datasets. The proposed work was implemented and performed on the dataset. The conclusions show the achievability in problems. Applications of Sentiment analysis took a very vital role in the social networking sites [24]. Nowadays social media becomes a place where mostly people express their emotion, feelings and also comment about their current shopping from any social networking. A particular attention should be given also to the application of sentiment analysis in social networks. The social network environment explores new tasks because many different behaviors and people show their opinions, as defined in this paper, which discuss “noisy data”, which is actually the main obstacle in the analysis of the text extracted from social networks [25,26].
Negation recognition and polarity enhancer influence the polarity score in a very unusual way. So, the polarity of a specific word is not sufficient and dependable for overall results. This paper describes all the probable techniques which are used to sense problems for the exact polarity of sentences and for the accuracy of sentiment analysis [27,28,29]. Some other works in sentiment analysis and opinion mining are addressing the problem in general [30,31,32]. None of these works target task-oriented sentiment analysis.

3. Materials and Methods

An approach is presented for measuring sentiments of users regarding their comments of a particular product. In our approach, we have attributed polarity analysis and then used a fuzzy logic approach to attribute the loyalty of a customer to a product. The used approach also involves a set of libraries such as core NLP, SentiWordNet library, etc. The users’ comments, or reviews are collected from social media and famous e-shopping website AMAZON.com. The sentiment analysis is performed on the products’ reviews to measure P-N polarity. Afterwards, to measure customer loyalty on the basis of sentiment score calculated from the reviews, a fuzzy logic method [20] is applied. This approach replicates the way of decision making in human being that includes all the possibilities between digital values YES and NO. The standard logic that a computer can easily understand takes specific input and produces a certain output as TRUE or FALSE or 1 or 0, which is equal to the human YES or NO. The fuzzy logic works on the levels of possibilities of input to achieve the definite output and is also called many valued logic, which only deals with the truth values [4]. It is also known as many valued logic and deals with truth values only. The values of truth varies from all the values in between 0 and 1. These truth values can encompasses all the numbers between 0 and 1. It does not hold only with both true and false values such as Boolean algebra. The membership functions organized these truth values. It basically provides approximate reasoning.
Figure 2 shows the basic structure of sentiment analysis architecture. Sentiment analysis has many different structures based on a phrase, sentence and documents level. The process of collection of data and recognition is the calculating the data obtained from different means.
After the lemmatization process, we tagged text by PoS (Parts-of-Speech) tagger. We take POS tagger of Stanford Core NLP (natural language processing). A PoS tagger is very beneficial for sentiment analysis because a POS tagger can differentiate words that can be used in different parts of speech and it is capable of filtering out the words which are not necessary, i.e., we do not need nouns or pronouns because they do not contain any type of sentiments and at the same time adjectives express the sentiments. After this step, we do the most important thing which is sentiment analysis on the text reviews which are being parsed by Stanford POS tagger. We use SentiWordNet 3.0.0 (ISTI, CNR, Rome, Italy) for the analysis. We use a technique for calculating in which a review is positive, negative or neutral and calculate the polarity of reviews by focusing upon adjectives because an adjective names an attribute or quality from which one canit easily discern the positivity, negativity and neutrality scores of the reviews. Then we find out the polarity scores using SentiWordNet database dictionary.

3.1. Data Collection of Customer Reviews

The processing of the used approach starts with the collection of users’ reviews, comments, posts and tweets regarding a particular product from various sources such as social media, shopping websites, etc. In our approach, we have collected the dataset from Facebook and AMAZON.com website. The data is collected for a particular product suggested by the user. In this study, the customers’ views and reviews of Apple products (such as Apple iPhone 6 and iPhone 7) are collected. The user gives reviews dependent of their feelings, experience or like and dislike of the product. In this study 3500 reviews were collected from social media and Amazon’s website.

3.2. Tokenization

Each review in the data set is individually processed. The preprocessing of the reviews starts by the tokenization phase that splits a piece of review into small units such tokens. A typical tokenization process can confiscate punctuation marks from the given text and create tokens of the text. A token can be anything, a word or a symbol, etc. Here, we use Core NLP PTB Tokenizer which is actually PENN TREEBANK way of tokenization of English writing and it splits the reviews into sentences in order to make a simple review file.

3.3. Stop Words Removal

A set of meaningless or irrelevant words in a piece of text can seriously affect the accuracy of the output. Hence, removal of such stop words from the input text is an important phase in sentiment analysis of the text. In the collected user reviews, a stop word can be a number, a preposition or a person’s name, a product’s name, etc. Each review after tokenization goes through the stop words removal phase. The used approach uses Core NLP library [33], which helps in identifying a list of stop words.

3.4. Lemmatization

Lemmatization is a process that extracts core form of a word to a common base. The used approach banks on lemmatization phase to extract core form of a token or a word to achieve more accurate results in sentiment analysis phase [34]. It can drive linked forms of words to a mutual base. Many textual documents use dissimilar forms of a word, e.g., mobile, mobiles, mobile’s are all attributed to ‘mobile’.

3.5. Parts-of-Speech Tagging

After the lemmatization phase, the review’s text is Parts-of-Speech tagged to identify the lexical position and significance of that word in the sentence. Such lexical position and significance helps in identifying the impact of the word in the sentence. The used approach performs PoS tagging with the help of the Stanford POS tagger that is part of the Stanford CoreNLP library [33]. In this PoS tagging phase, each word in a review text, gives a list of its parts of speech, e.g., Noun, Verb, Adjective, etc. The used PoS tagger “Penn Treebank Tag set” is used for PoS tagging. Besides its three English models, here we use a POS tagger which is also an English tagger and it is known as the “Penn Treebank Tag” set. It can also tokenize the sentence which means it splits the sentences for the quick understanding. It can break down the text into pieces, e.g.,
  • Input: This phone has best features e.g., screen, sound system, etc.
  • Output: [This/DT] [phone/NN] [has/VBZ] [best/JJS] [features/NNS] [e.g.,/VBG] [screen/NN] [,/,] [sound/JJ] [system/NN] [,/,] [etc./FW] [./.]

3.6. Polarity Analysis of Reviews

Measuring polarity of a customer’s review is a key phase in the used approach. In the used approach, the SentiWordNet 3.0.0 library [35] is used to identify the polarity score of each word in a user’s review. The polarity score of each word is further accumulated to find the accumulative polarity score of each review. It can formed by examining an automated classifier Φ to coordinate to each synsets of WordNet. It produces numerical scores of three types, Φ(s, p) (for p P = {Positive, Negative, Objective}) telling the powerfulness of the words in s, which consists of each of these three score values. The hypothesis shows change terms to synsets is that dissimilar nature of the same term with unlike opinion properties sometimes. Each of the three Φ(s, p) scores ranges from 0.0 to 1.0, and their sum is 1.0 for each synsets.
The Figure 3 shows the graphical representation used by SentiWordNet which represents the properties of opinion of a synset [13]. This shows that for all of the three classes, synset may have non-zero scores that specify the similar terms have, in the sense for the synset. Therefore, it shows that SentiWordNet is used for the identifying and extracting polarity for subjectivity sentences. Table 1 shows output of PoS tag process and Table 2 shows the processed example of a review statement.
By applying all the methods and techniques of sentiment analysis process, we reach our results. The first line explains that we enter a simple review in a sentence form, then we remove stop words from a review in the second step. In the third step, we apply lemmatization on that review. In the fourth step, we use the Stanford Parts-of-Speech (POS) tagger which is used specify the important and useful parts of speech in the context. After applying POS tagging, we use another tagger of SentiWordNet POS tagger in the fifth step, which is almost same as that of the POS tagger but it calculates the score of that POS words by its weights. Here, we apply some constraints on it that it only calculates the score of adjectives in the given reviews. We only focus on the adjective based reviews because adjective is a quality word or the word that describes a noun, which is clearly represents the sentiment behind the reviews.
In the sixth step, we calculate Sentence token score per word using Equation (1) but we only use the score of adjective words in the text. In the seventh step, the score sum is used to identify the sum of all sentiment words in the given sentence. Equation (1) shows how the score sum is calculated by adding score of all words in a review:
S u m _ S c o r e = k = 0 n ( n k ) W k
After that the eighth step shows the most important feature of sentiment analysis, which is the sentence type of the review. The sentence type of the review shows that whether the review is considered positive, neutral or negative. The sentence type of this review is positive obtained by using SentiWordNet dictionary. In the last three lines, the code executes that how much a review is positive, neutral or negative and the final result shows that it is positive because it has the highest positive score percentage.

3.7. Used Fuzzy Logic System

For finding the customer loyalty to a product, a fuzzy logic system is used. This system is based on the fuzzy set theory [36]. The fuzzy sets and rule-based approach provides high performance and working for the sentiment analysis purpose. It provides a degree of truth and human reasoning. It is also used in decision making techniques. The used fuzzy logic system is based on following principles of fuzzy logic [37]:
(1)
In fuzzy logic, accurate reasoning is experimented as a case of limit for approximate reasoning.
(2)
All relation used are the relation of degree in fuzzy logic.
(3)
It also provides that each logical method can be fuzzified.
(4)
Fuzzy logic restricts on the choice of on a collecting the variables and knowledge is understood as a flexible collection.
(5)
The result of inference system is broadcasting of flexible limitation.
The used fuzzy logic system introduces fractional truth values, between YES and NO.
A = { ( x ,   µ A ( x ) ) |   x   X }
Here, Equation (2) shows that µA (X) is called the membership function or grade of membership, it is also a degree of truth, of x in A that plots X to the membership position M. While M contains only the two points 0 and 1, A is non-fuzzy and µA (X) is alike to the distinctive function of a non-fuzzy set. Zero degree elements of membership are usually not taken. It can show the fractional membership to that set. It shows that the element from the set has particular degree and some particular membership functions are used that provides the degree of membership of fuzzy logic. These membership functions are the trapezoidal membership function, triangular membership function, Bell membership function and Gaussian membership function. In the proposed research, we apply a triangular membership function which is completely discussed in fuzzy membership functions approach. The core of a membership function for some fuzzy set A is defined asthat area of the universe that is specified by the whole membership in the set A. It shows that the core consists of those elements x of the universe such that μA(x) = 1. The membership function’s support for some fuzzy set A is defined as the area of the universe that is indicated by nonzero membership in the set A. Figure 4 shows, the support contains by the elements x of the universe such that μA(x) > 0.

3.7.1. Fuzzification

The first step in the used fuzzy logic systems is to recognize the input and output variables. In this process, the crisp input data is converted into a fuzzy set with the membership functions [38]. Input variables of the fuzzy logic system are represented on the fuzzy sets by use of linguistic terms, membership functions and linguistic variables. The linguistic terms and variables are frequently the terms or the complete sentences of used natural language. When we are setting the linguistic variables, we are confident enough that no numerical values are used in the linguistic variables. The two vital points Fuzzy sets and fuzzy membership functions which are needed to be used to obtain the fuzzified values. The conversion of crisp input values into fuzzy values are performed by use of Membership Functions and this method of transformation is known as fuzzification. Every membership function signifies a feature of the linguistic variable being fuzzified. As we take this the membership function approach of linguistic variables in our research, we take “Sentiment Score” and “Customer Loyalty” as an input variables which may “Pos” “Neu” “Neg”, and the membership function of linguistic variable “Customer Loyalty” is “Pesudo” and “Latent”, ”True”. We described the fuzzified set by following relation:
A = µ1K(x1) + µ2K(x2) + … + µnK(xn)
In equation (3), the fuzzy set K(xi) is called as kernel of fuzzification. To apply this technique, µA is constant and xA is being converted to a fuzzy set K(xi). This equation is used in the fuzzification process in which Universe of Discourse and membership function are being applied.
In our paper, we take the sentiment analysis score as an input linguistic variable and customer loyalty as an output linguistic variable as shown in Table 3.
We again define linguistic terms for each input and output linguistic variables. The input linguistic variable is sentiment scores and we assigned mainly three linguistic terms. These linguistic terms are Positive, neutral, negative as shown in Table 4.
The output linguistic variable we taken Customer loyalty (LO) also have three linguistic terms, these linguistic terms are True loyalty, pseudo loyalty and latent loyalty, shown in Table 5.

3.7.2. Membership Function

For taking decision on the input crisp values, a triangular membership function is used in our approach. The function of fuzzy sets that are achieved by crisp values of linguistic variables and show the relationships of these crisp values to the set are divided as a membership function. It is actually degree of truth that occurs between 0 and 1. There are many different kinds of membership functions, i.e., triangular MF, Trapezoidal MF, Gaussian MF, etc. It is used to plot the values of non-fuzzy sets to linguistic fuzzy sets.
Triangular Membership Function: In our research we use a triangular membership function which describes in fuzzy membership functions approach as shown in Figure 5. Fuzzy logic involves precise logical operations and these are little bit unlike those used in logic of approximate degree of truth, they are conjunction, disjunction and negation. In order to get the smallest values from the all available fuzzy variables, we use a minimum function known as conjunction.
Figure 5 shows a triangular membership function. For example, we take three fuzzy variables a, b and m and also with their truth values of 0.3, 0.6 and 0.9, correspondingly; as shown in Equation (4):
a ^ b ^ m = min(a; b; m) = 0:3.
Just like the last solved example, we take the max function now just as we find the min function. Here, disjunction involves the maximum function as shown in Equation (5):
a _ b _ m = max(a; b; m) = 0:9.
In our research, we use a triangular membership function. We use this membership function because it maintains three variables and creates a relation between them. Here we categorize sentiments analysis score into three linguistic terms that identifies the sentiment scoring of reviews. These linguistic variables are used for evaluating customer loyalty. These terms are Positive (a), Negative (b), Neutral (m). Here we take only the subjective reviews for sentiment analysis because subjective reviews can easily state the opinion of the consumer. Here we prefer triangular membership function also known as trimf because we take three linguistic variables, i.e., a, b and x, where trimf describe by a lower limit a, an upper limit b, and a value c, where a < c < b as shown in Equation (6).
Triangular ( x ; a , b , m ) = { x < a 0 a x m ( x a ) ( m a ) m x b ( b x ) ( b m ) m x 0
where a, b and m represent the x-coordinates for triangle, x represents the crisp value from the isolated variable fuzzy universe of discourse. We classified the sentiment score into three parts:
  • positive score;
  • neutral score;
  • negative score.
We use these sentiment scores in order to evaluate loyalty of customers towards online products. In our proposed method, we use three types of loyalty which distinguish how much the consumer is loyal towards the product and services and their values lies according the fuzzy logic triangular membership function.
  • In Pseudo Loyalty, the value in trimf lies between 0.0 < x < 0.30 because the consumer is not long-lasting whether they are buying from you in the future or choose any other opportunity. It is referred as low loyalty.
  • In Latent Loyalty, the value in trimf lies between 0.30 ≤ x < 0.70 because the consumer prefers not to purchase anything from any brand but if they are going to purchase they will always buy from one brand. It is referred as medium loyalty.
  • In True loyalty, the value in trimf lies between 0.70 ≤ x ≤ 1.0 because the consumer is only loyal to a product. They are trustworthy and always refer the product to their family, friends and relatives. They will never switch from the brand. It is also known as High Loyalty.
Here we take three different types of customer loyalty which are denoted by triangular membership functions as shown in Equation (7):
L O ( x ) = { if   0.0 x < 0.3 PseudoLoyalty if   0.3 x < 0.7 LatentLoyalty if   0.7 x 1.0 TrueLoyalty
Fuzzy Rules Based System: Three most common types of fuzzy rule based systems, which are named as Mamdani, Sugeno, Tsukamoto, etc. These first two kinds of fuzzy rule-based systems are used to executed on regression problems and the output of these systems is a real value, and the third type is used to implement to problems which relates to categorization. We use Mamdani inference system in our research.
Mamdani Fuzzy Inference System: Mamdani fuzzy inference system is proposed by Ebrahim Mamdani it in 1975. It is most general and highly useful approach used in the research methods. It was the first control system constructed by the use of fuzzy set theory. It has six basic stages:
(1)
Building of fuzzy rules.
(2)
By using membership function, find fuzzification of input.
(3)
The fuzzified inputs are shared by following the fuzzy set theory.
(4)
The allocation of rule strength and output membership function to find results of the rules. MISO (Multiple Input Single Output) and MIMO (Multiple Input Multiple Output) systems is used in Mamdani FIS.
(5)
In order to obtain an allocation of output just by sum up the outcomes.
(6)
Output membership function can be Defuzzified.
In this study, we use Mamdani fuzzy inference: Mamdani systems are instinctive that means it is usually based on what a person feels about something to be true even without knowing a reasonable answer. It is fully appropriate to human input.
We used Mamdani rule based systems which is being implemented on MATLAB. When we plot a graph for membership functions, the curve of membership function is built in MATLAB and it is used to plot membership values between 0 and 1 where 0 shows the starting point and 1 is the peak point. The values occurs between 0 and 1 represents that how input is plotted to membership function value. The membership function for sentiment analysis is given in Equation (8):
A = {x, pA(x), oA(x), nA(x)| xX}
where “x” is the review taken from the file, “pA(x)” is the membership of positive reviews, oA(x) is the membership of neutral reviews and nA(x) is the membership of negative reviews.
We take sentiment analysis as an input, which shows that the value lies between
  • 0.0 to 0.3 is taken as negative.
  • 0.3 to 0.7 is taken as neutral.
  • 0.7 to 1.0 is taken as positive.
We plot a graph showing these sentiment values and terms by using MATLAB which is given below:
By taking the input linguistic variables- Sentiment analysis score. The Figure 6 shows indicates that Sentiment analysis score greater 0.7 is positive. Hence, all scores lie between 0.7 and 1 will always be positive.
Fuzzy Rules: The backbone of any fuzzy logic system is its fuzzy rules. By using these rules, we can easily describe the controlled output and the conclusion is taken. These are simple IF-ELSE rules. Suppose we have a variable x included in the problem (which is our sentiment score), so the loyalty output has its own membership function which is low, medium and high e.g., when we apply rules (shown in Table 6), it will give:
  • If x is low THEN loyalty is low.
  • If x is medium THEN loyalty is medium.
  • If x is high THEN loyalty is high.
Table 6 defines rules which are written in the form of given technique in MATLAB. The given figure shows that if our sentiment score is positive, i.e., it lies in the values between 0.7 to 1, then our loyalty is true.
By following these rules, suppose the degree of membership for x is 0.45 to the MF medium, then the loyalty will be also 0.45 medium.

3.7.3. Defuzzification

Defuzzification is the method which generates quantifiable results in crisp logic which is achieved from fuzzy sets and membership functions with consistent degrees. It is the method that plots a fuzzy set to a crisp set. It uses a set of rules that change a number of variables into a fuzzy result. It produces computable results which contains fuzzy sets and membership functions. It performs mapping output of fuzzy sets into crisp values. Here, we take triangular MF which defines the exact conclusions. If the degree of the membership function is not equal to 1, we have to use a trapezoidal shape instead of a triangle shape. Here are some rules which tell us relation between sentiment score and type of loyalty [14].
The last step in the fuzzy logic system is the defuzzification. After the implementation is complete in the inference step, we achieve an output value and the output value obtained from it is known as fuzzy value. In order to signify this fuzzy value in a proper way, we required to convert it into Crisp Output Value. The process of converting the fuzzy value into Crisp Output Value is known as Defuzzification
Output Membership Function for “Customer Loyalty”: We convert the fuzzy output to the crisp output which is formed by the steps of fuzzy inference system, the Customer Loyalty Membership function is taken as output MF. It consists of the different types of Customer Loyalty which are calculated by firm value of sentiment score. Such as, if sentiment score is in between 0.75 then loyalty will also be increase at the almost same level of 0.75 and this type of loyalty is known as “True Loyalty”. We apply defuzzification rules to clarify the relation process between sentiment score and customer loyalty.
Defuzzification rules: Here are some rules of defuzzification where ‘x’ denotes the sentiment score while ‘y’ denotes the type of loyalty:
if (0.0 ≤ x < 0.30), then y = ‘Pseudo Loyalty’
if (0.30 ≤ x < 0.70), then y = ‘Latent Loyalty’
if (0.70 ≤ x ≤ 1.0), then y = ‘True Loyalty’
Figure 7 shows a graphical representation of triangular membership functions in which we consider sentiment score on the x-axis while membership on the y-axis. These score of sentiments analysis shows how much loyalty we achieved from the reviews of the online products. We noticed that the most of the sentiment values occurs between 0 and 1; this shows our graph gives almost positive results. Here is algorithm which presents the functionality and working of triangular membership function graph. This graph shows x as a vector and three points a, b and c are the scalar, where “a” is the lower limit from where our sentiment score starts increasing, it is also known as “min” function while “b” is the peak limit or level from the sentiment score are stop increasing and it is also known as “max” function and “c” is the middle point or the value where our sentiment score achieve its highest point, such as in the following chart, the curve of the graph is at the highest level of 0.7, which means that most of our reviews lies at this point between positive and neutral. Here x-axis denotes the sentiment score lie between 0.0–1.0 and the y-axis denotes the values of membership.
Algorithm:
  • x = 0:0.1:1;
  • y = trimf(x, [0.30 0.70 1.0]);
  • plot(x,y)
  • xlabel(‘trimf, P = [0.3 0.7 1.0]’)
  • ylim([−0.05 1.05]

4. Experiments and Results

The results can be obtained by the use of algorithm of SentiWordNet and fuzzy logic. We collect reviews as an input. These are opinion sentences collection which is collected from the website www.Amazon.com and these are the reviews or comments expressed by the customers. We collect and store 1000 comments for two different Apple products. Once the reviews are taken out, then we applied pre-processing on it, parsed, tokenize and lemmatize these reviews. These sentences show positive, negative and neutral type sentiments scores. So the results of sentiments scores are measured by using SentiWordNet 3.0 software. Here we show sentiment analysis process of a single review and we applied these above mentioned techniques in Java by using the platform “Eclipse”. We choose this software because it takes less effort and made our task easier. We take simple review as an input and achieve our desired results.
We take the complete results of the sentiments analysis achieved by the reviews. We take a sentence level approach in which we take a single review and apply sentiment analysis on it. In order to calculate the percentage of total number of positive reviews, total number of neutral reviews and total number of negative reviews, we collect the total results obtained from sentiment analysis and take their percentage. From the above mentioned results shows that we have 320 reviews are positive, 105 are neutral reviews while 75 are negative reviews from the collection of 500 reviews. In order to calculate the percentage of positive, neutral and negative, we use a following formula.
  • Positive Sentiment Percentage:
    Positive (%) = (Number of Neutral Sentiments/Total Number of Reviews) × 100 = (320/500) × 100
    Positive (%) = 64%
  • Neutral Sentiment Percentage:
    Neutral (%) = (Number of Neutral Sentiments/Total Number of Reviews) × 100 = (105/500) × 100
    Neutral (%) = 21%
  • Negative Sentiment Percentage:
    Negative (%) = (Number of Negative Sentiments/Total Number of Reviews) × 100 = (75/500) × 100
    Negative (%) = 15%
Table 7 shows the accuracy of different types of reviews. We can more explain the number of Positive, neutral and negative reviews in the form of bar graph and their corresponding percentages in the form of pie graph of Apple iPhone 6s plus as shown in Figure 8 and Figure 9.
We also use fuzzy logic for the evaluating the loyalty with sentiment scores. We apply the rules which are simulated in MATLAB, these rules show the relation between sentiment score with types of loyalty, e.g., we see in the following figure that if we have sentiment score say 0.5 than our loyalty is also 0.5. Sentiment score are directly proportional to the type of customer loyalty, we can also say that if our sentiment score is 0.5, it is considered as neutral, the loyalty also lies at 0.468, very close to the value of sentiment score and this type of loyalty is considered as Latent loyalty (see Figure 10).
We reached the conclusion that the online customers of Apple iPhone 6s plus mobile are very loyal as compared to other mobiles. It achieves the loyalty score of 64%. The features of Apple iPhone 6s plus are more reliable and their most of the online customers are satisfied with this product and services as well. It supports all the new versions and feature such as camera, memory and battery timings, etc. Table 8 shows a comparison of the results of our approach with the results of previous approaches.
The results shown in Table 8 represent that previous approaches mainly performed in precision that varies from 58.2 to 87.5% whereas recall for the previous approaches is quite low and ranges from 52.0 to 79.44%. Similarly, the F-Score of previous approaches is also lower 53.0 to 77.98%. Our approach performs better as precision of our approach is 89.32%, recall is 80.36% and F-Score is 83.69%. The improvement in precision is minor however, the major improvement is in recall and F-measure.
The results of the presented approach for measuring customer loyalty to a product using sentiment analysis are shown in Figure 11 and the results are also compared with the previous approaches. The results show that our approach performs better than the previous approaches available in literature.
A limitation of the presented implementation is that it processes only English language text that is grammatically correct and has no spelling mistakes in text.

5. Conclusions and Future Work

This paper addresses an important problem of measuring customer’s loyalty to a specific product. Previously, general purpose sentiment analysis of tweets and posts are carried out however a task-oriented sentiment analysis of users’ reviews of a product to find key features liked by the users and their confidence level is a new idea. In this paper, we presented a novel idea of using a fuzzy logic approach for measuring customer’s loyalty to a product with the help of a sentiment analysis score. We use a Fuzzy logic approach which used membership functions and rule-based system of fuzzy sets which is used classifies the types of loyalty. It attained the average accuracy of 94% of positive which shows the number of customers which are loyal to the e-commerce products.
In this study we have experimented with the small sized reviews that are processing in separate sentences. In future, we aim to extend the ability of the implementation to process and handle large sized text. In the future, this work can be extended by considering both sentence types, i.e., subjective as well as objective. It aims to achieve more accuracy by these techniques. It also improves the speed when dealing with a large amount of data. Additionally, every organization or e-commerce site can use sentiment analysis because it is a very beneficial technique and, by using this, organizations take their business at the peak and will grow rapidly.

Author Contributions

U.G. is the main author of this paper and he has contributed in investigation of the problem, research design, experiments design and writing the original draft. I.S.B. has supervised this research work and contributed in design of the approach, writing, review and editing this paper. A.A. has contributed in implementation and coding of this research.

Funding

No funding is involved in this research.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Inc.com. Amazon Just Eclipsed Records, Selling over 600 Items Per Second. Available online: https://www.inc.com/tom-popomaronis/amazon-just-eclipsed-records-selling-over-600-items-per-second.html (accessed on 31 May 2018).
  2. Gräbner, D.; Zanker, M.; Fliedl, G.; Fuchs, M. Classification of customer reviews based on sentiment analysis. In Proceedings of the 19th Conference on Information and Communication Technologies in Tourism (ENTER), Helsingborg, Sweden, 24–27 January 2012; pp. 460–470. [Google Scholar]
  3. Bagheri, A.; Saraee, M.; De Jong, F. Care more about customers: Unsupervised domain-independent aspect detection for sentiment analysis of customer reviews. Knowl.-Based Syst. 2013, 52, 201–213. [Google Scholar] [CrossRef]
  4. Wilson, T.; Wiebe, J.; Hoffmann, P. Recognizing contextual polarity in phrase-level sentiment analysis. In Proceedings of the Conference on Human Language Technology and Empirical Methods in Natural Language Processing, Vancouver, BC, Canada, 6–8 October 2005; pp. 347–354. [Google Scholar]
  5. Hu, M.; Liu, B. Mining and summarizing customer reviews. In Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Seattle, WA, USA, 22–25 August 2014; pp. 168–177. [Google Scholar]
  6. Neri, F.; Aliprandi, C.; Capeci, F.; Cuadros, M.; By, T. Sentiment analysis on social media. In Proceedings of the IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM), Istanbul, Turkey, 26–29 August 2012; pp. 919–926. [Google Scholar]
  7. He, W.; Zha, S.; Li, L. Social media competitive analysis and text mining: A case study in the pizza industry. Int. J. Inf. Manag. 2013, 33, 464–472. [Google Scholar] [CrossRef]
  8. Chandrashekaran, M.; Rotte, K.; Tax, S.S.; Grewal, R. Satisfaction strength and customer loyalty. J. Mark. Res. 2007, 44, 153–163. [Google Scholar] [CrossRef]
  9. Kang, D.; Park, Y. Review-based measurement of customer satisfaction in mobile service: Sentiment analysis and VIKOR approach. Expert Syst. Appl. 2014, 41, 1041–1050. [Google Scholar] [CrossRef]
  10. Chamlertwat, W.; Bhattarakosol, P.; Rungkasiri, T.; Haruechaiyasak, C. Discovering Consumer Insight from Twitter via Sentiment Analysis. J. UCS 2012, 18, 973–992. [Google Scholar]
  11. Bauman, K.; Liu, B.; Tuzhilin, A. Recommending Items with Conditions Enhancing User Experiences Based on Sentiment Analysis of Reviews. In Proceedings of the CBRecSys@ RecSys; CEUR Workshop 2016, Boston, MA, USA, 16 September 2016; Volume 1677, pp. 19–22. [Google Scholar]
  12. Dubey, A.; Gupta, A.; Raturi, N.; Saxena, P. Item-Based Collaborative Filtering Using Sentiment Analysis of User Reviews. In Proceedings of the International Conference on Application of Computing and Communication Technologies, Delhi, India, 9 March 2018; pp. 77–87. [Google Scholar]
  13. Artificial Intelligence Fuzzy Logic Systems. Available online: https://www.tutorialspoint.com/artificial_intelligence/artificial_intelligence_fuzzy_logic_systems.htm (accessed on 31 May 2018).
  14. Indhuja, K.; Reghu, P.C. Fuzzy Logic Based Sentiment Analysis of Product Review Documents. In Proceedings of the 1st International Conference on Computational Systems and Communications, Trivandrum, India, 17–18 December 2014; pp. 18–22. [Google Scholar]
  15. Guohong, F.; Wang, X. Chinese Sentence-Level Sentiment Classification Based on Fuzzy Sets; COLING: Beijing, China, 2010; pp. 312–319. [Google Scholar]
  16. Tumsare, P.; Sambare, A.S.; Jain, S.R. Opinion Mining in Natural Language Processing using SentiWordNet and Fuzzy. Int. J. Emerg. Trends Technol. Comput. Sci. 2014, 3, 154–158. [Google Scholar]
  17. Khan, A.; Baharudin, B.; Khan, K. Sentiment Classification Using Sentence-level Lexical Based Semantic Orientation of Online Reviews. Trends Appl. Sci. Res. 2011, 6, 1141–1157. [Google Scholar] [CrossRef]
  18. Stanfordnlp.github.io. Stanford CoreNLP—Natural Language Software|Stanford CoreNLP, 2018. Available online: https://stanfordnlp.github.io/CoreNLP/ (accessed on 31 May 2018).
  19. SentiWordNet. n.d. Available online: https://sentiwordnet.isti.cnr.it/ (accessed on 12 February 2018).
  20. Zadeh, L.A. Toward a theory of fuzzy information granulation and its centrality in human reasoning and fuzzy logic. Fuzzy Sets Syst. 1997, 90, 111–127. [Google Scholar] [CrossRef]
  21. Mamdani, E.H.; Assilian, S. An experiment in linguistic synthesis with a fuzzy logic controller. Int. J. Man-Mach. Stud. 1975, 7, 1–13. [Google Scholar] [CrossRef]
  22. Pang, B.; Lee, L. Opinion mining and sentiment analysis. Found. Trends Inf. Retrieval. 2008, 2, 1–135. [Google Scholar] [CrossRef]
  23. Yuan, H.; Xu, W.; Li, Q.; Lau, R. Topic sentiment mining for sales performance prediction in e-commerce. Ann. Oper. Res. 2018, 270, 553–576. [Google Scholar] [CrossRef]
  24. Al-Smadi, M.; Qawasmeh, O.; Al-Ayyoub, M.; Jararweh, Y.; Gupta, B. Deep Recurrent neural network vs. support vector machine for aspect-based sentiment analysis of Arabic hotels’ reviews. J. Comput. Sci. 2018, 27, 386–393. [Google Scholar] [CrossRef]
  25. Pham, D.H.; Le, A.C. Learning multiple layers of knowledge representation for aspect based sentiment analysis. Data Knowl. Eng. 2018, 114, 26–39. [Google Scholar] [CrossRef]
  26. Mubarok, M.S.; Adiwijaya; Aldhi, M.D. Aspect-based sentiment analysis to review products using Naïve Bayes. In AIP Conference Proceedings; AIP Publishing: Melville, NY, USA, 2017; Volume 1867, p. 020060. [Google Scholar]
  27. Liu, Y.; Bi, J.W.; Fan, Z.P. Ranking products through online reviews: A method based on sentiment analysis technique and intuitionistic fuzzy set theory. Inf. Fusion 2017, 36, 149–161. [Google Scholar] [CrossRef]
  28. Giatsoglou, M.; Vozalis, M.G.; Diamantaras, K.; Vakali, A.; Sarigiannidis, G.; Chatzisavvas, K.C. Sentiment analysis leveraging emotions and word embeddings. Exp. Syst. Appl. 2017, 69, 214–224. [Google Scholar] [CrossRef]
  29. Phillips, P.; Barnes, S.; Zigan, K.; Schegg, R. Understanding the impact of online reviews on hotel performance: An empirical analysis. J. Travel Res. 2017, 56, 235–249. [Google Scholar] [CrossRef]
  30. Salehan, M.; Kim, D.J. Predicting the performance of online consumer reviews: A sentiment mining approach to big data analytics. Decis. Support Syst. 2016, 81, 30–40. [Google Scholar] [CrossRef]
  31. Jin, J.; Ji, P.; Gu, R. Identifying comparative customer requirements from product online reviews for competitor analysis. Eng. Appl. Artif. Intell. 2016, 49, 61–73. [Google Scholar] [CrossRef]
  32. Jothi, A.J.; Santiago, M.S.; Arockiam, L. A Methodological Framework to Identify the Students’ Opinion using Aspect based Sentiment Analysis. Int. J. Eng. Res. 2016, 5. [Google Scholar] [CrossRef]
  33. Manning, C.; Surdeanu, M.; Bauer, J.; Finkel, J.; Bethard, S.; McClosky, D. The Stanford CoreNLP natural language processing toolkit. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations, Baltimore, MD, USA, 23–24 June 2014; pp. 55–60. [Google Scholar]
  34. Barbosa, L.; Feng, J. Robust sentiment detection on twitter from biased and noisy data. In Proceedings of the 23rd International Conference on Computational Linguistics, Beijing, China, 36–44 August 2010. [Google Scholar]
  35. Baccianella, S.; Esuli, A.; Sebastiani, F. Sentiwordnet 3.0: An enhanced lexical resource for sentiment analysis and opinion mining. Lrec 2010, 10, 2200–2204. [Google Scholar]
  36. Zadeh, L.A. Fuzzy sets. Inf. Control 1965, 8, 338–353. [Google Scholar] [CrossRef] [Green Version]
  37. Zadeh, L.A.; Fu, K.S.; Tanaka, K. Fuzzy sets and their applications to cognitive and decision processes. In Proceedings of the US-Japan Seminar on Fuzzy Sets and Their Applications, University of California, Berkeley, CA, USA, 1–4 July 1974. [Google Scholar]
  38. Herrera-Viedma, E. Fuzzy sets and fuzzy logic in multi-criteria decision making. The 50th anniversary of Prof. Lotfi Zadeh’s theory: Introduction. Technol. Econ. Dev. Econ. 2015, 21, 677–683. [Google Scholar] [CrossRef]
  39. Guzman, E.; Maalej, W. How do users like this feature? A fine grained sentiment analysis of app reviews. In Proceedings of the 2014 IEEE 22nd International on Requirements Engineering Conference (RE), Karlskrona, Sweden, 25–29 August 2014; pp. 153–162. [Google Scholar]
  40. Thet, T.T.; Na, J.C.; Khoo, C.S. Aspect-based sentiment analysis of movie reviews on discussion boards. J. Inf. Sci. 2010, 36, 823–848. [Google Scholar] [CrossRef]
Figure 1. A sketch of proposed approach for Customer Loyalty Measurement.
Figure 1. A sketch of proposed approach for Customer Loyalty Measurement.
Symmetry 10 00761 g001
Figure 2. Research Architecture of proposed methodology.
Figure 2. Research Architecture of proposed methodology.
Symmetry 10 00761 g002
Figure 3. The graphical representation of sentiment analysis.
Figure 3. The graphical representation of sentiment analysis.
Symmetry 10 00761 g003
Figure 4. Support of element x in a membership function.
Figure 4. Support of element x in a membership function.
Symmetry 10 00761 g004
Figure 5. Graphical representation of Triangular Membership Function.
Figure 5. Graphical representation of Triangular Membership Function.
Symmetry 10 00761 g005
Figure 6. The triangular fuzzy membership function plot for sentiment analysis as inputs.
Figure 6. The triangular fuzzy membership function plot for sentiment analysis as inputs.
Symmetry 10 00761 g006
Figure 7. The triangular fuzzy membership function plot for loyalty as an outputs.
Figure 7. The triangular fuzzy membership function plot for loyalty as an outputs.
Symmetry 10 00761 g007
Figure 8. Bar chart for the number of reviews of Apple iPhone 6s plus.
Figure 8. Bar chart for the number of reviews of Apple iPhone 6s plus.
Symmetry 10 00761 g008
Figure 9. Pie chart for the sentiment score Apple iPhone 6s plus (In percentage).
Figure 9. Pie chart for the sentiment score Apple iPhone 6s plus (In percentage).
Symmetry 10 00761 g009
Figure 10. Rule Inference System in MATLAB.
Figure 10. Rule Inference System in MATLAB.
Symmetry 10 00761 g010
Figure 11. Rule Inference System in MATLAB.
Figure 11. Rule Inference System in MATLAB.
Symmetry 10 00761 g011
Table 1. PoS Type output of user reviews.
Table 1. PoS Type output of user reviews.
Pos_IDPos_NamePos_AbbreviationSentiWordNet_Abr
1NounNNN
2AdjectiveJJA
3VerbVBV
4AdverbRBR
5Noun pluralNNSN
6Adjective SuperlativeJJSA
7VerbsVBZV
Table 2. Methodology applied for sentiment analysis.
Table 2. Methodology applied for sentiment analysis.
TypeValues
Original sentenceiPhone 6 is one of the good models of Apple phone.
Sentence After Drop Stop-WordsiPhone 6 + one + good + models + Apple phone.
Tagged Stanford POS tagger To SentenceiPhone/NNP 6/CD is/VBZ one/CD of/IN the/DT good/JJ models/NNS of/IN Apple/NNP phone/NN ./.
After Lemmatized SentenceiPhone 6 + one + good + model + Apple phone
Tagged SentiWordNet POS tagger To SentenceiPhone#n 6#n one#n good#a model#n Apple#n phone#n
Sentence token score per word:iPhone#n ==> SentiWordNet Score: 0.0
one#v ==> SentiWordNet Score: 0.0
good#a ==> SentiWordNet Score: 0.634
model#n ==> SentiWordNet Score: 0.0
Apple#n ==> SentiWordNet Score: 0.0
phone#n ==> SentiWordNet Score: 0.0
review#n ==> SentiWordNet Score: 0.053
scoreSum:0.343
Sentence Score:Positive
Positive:34.35%
Negative:0.0%
Neutral:5.0%
Table 3. Input and output Linguistic Variables for proposed method.
Table 3. Input and output Linguistic Variables for proposed method.
TypeLinguistic Variables
Input Linguistic VariableSentiment analysis score (SA)
Output Linguistic VariableCustomer loyalty (LO)
Table 4. Input Linguistic Variable and Terms.
Table 4. Input Linguistic Variable and Terms.
TypeLinguistic VariableLinguistic Terms
InputSentiment analysis score (SA){Positive, neutral, negative}
Table 5. Output Linguistic Variable and Terms.
Table 5. Output Linguistic Variable and Terms.
TypeLinguistic VariableLinguistic Terms
OutputCustomer loyalty (LO){True loyalty, pseudo loyalty, latent loyalty}
Table 6. The fuzzy rules for calculating Customer Loyalty.
Table 6. The fuzzy rules for calculating Customer Loyalty.
S#RULE
1if (“SENTIMENT SCORE IS NEGATIVE”) then CUSTOMER LOYALTY is “PSEUDO”
2if (“SENTIMENT SCORE IS NEUTRAL”) then CUSTOMER LOYALTY is “LATENT”
3If (“SENTIMENT SCORE IS POSITIVE”) then CUSTOMER LOYALTY is “TRUE”
Table 7. Overall percentage of Sentiment Analysis of Samsung Galaxy S8.
Table 7. Overall percentage of Sentiment Analysis of Samsung Galaxy S8.
Sentiment PositioningSentence Level Accuracy
Positive94%
Negative91%
Neutral85%
Table 8. Comparison of results with other approaches.
Table 8. Comparison of results with other approaches.
Sr. No.WorkApplicationPrecision %Recall %F-Score %
1Grabner, et al. [2]Sentiment Analysis of customer reviews83.040.053.0
2Bagheri, et al. [3]Sentiment Analysis of customer reviews87.565.070.3
3Guzman, et al. [39]Sentiment Detection on Twitter58.252.054.9
4Thet et al. [40]Sentiment Analysis of Movie Reviews76.579.4477.98
5This ApproachSentiment Analysis for Customer Loyalty89.3280.3683.69

Share and Cite

MDPI and ACS Style

Ghani, U.; Bajwa, I.S.; Ashfaq, A. A Fuzzy Logic Based Intelligent System for Measuring Customer Loyalty and Decision Making. Symmetry 2018, 10, 761. https://doi.org/10.3390/sym10120761

AMA Style

Ghani U, Bajwa IS, Ashfaq A. A Fuzzy Logic Based Intelligent System for Measuring Customer Loyalty and Decision Making. Symmetry. 2018; 10(12):761. https://doi.org/10.3390/sym10120761

Chicago/Turabian Style

Ghani, Usman, Imran Sarwar Bajwa, and Aimen Ashfaq. 2018. "A Fuzzy Logic Based Intelligent System for Measuring Customer Loyalty and Decision Making" Symmetry 10, no. 12: 761. https://doi.org/10.3390/sym10120761

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop