A Fuzzy Logic Based Intelligent System for Measuring Customer Loyalty and Decision Making
Abstract
:1. Introduction
2. Literature Survey
3. Materials and Methods
3.1. Data Collection of Customer Reviews
3.2. Tokenization
3.3. Stop Words Removal
3.4. Lemmatization
3.5. Parts-of-Speech Tagging
- 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
3.7. Used Fuzzy Logic System
- (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.
3.7.1. Fuzzification
3.7.2. Membership Function
- positive score;
- neutral score;
- negative score.
- 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.
- (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.
- 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.
- If x is low THEN loyalty is low.
- If x is medium THEN loyalty is medium.
- If x is high THEN loyalty is high.
3.7.3. Defuzzification
- 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
- Positive Sentiment Percentage:Positive (%) = (Number of Neutral Sentiments/Total Number of Reviews) × 100 = (320/500) × 100Positive (%) = 64%
- Neutral Sentiment Percentage:Neutral (%) = (Number of Neutral Sentiments/Total Number of Reviews) × 100 = (105/500) × 100Neutral (%) = 21%
- Negative Sentiment Percentage:Negative (%) = (Number of Negative Sentiments/Total Number of Reviews) × 100 = (75/500) × 100Negative (%) = 15%
5. Conclusions and Future Work
Author Contributions
Funding
Conflicts of Interest
References
- 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).
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Chandrashekaran, M.; Rotte, K.; Tax, S.S.; Grewal, R. Satisfaction strength and customer loyalty. J. Mark. Res. 2007, 44, 153–163. [Google Scholar] [CrossRef]
- 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]
- Chamlertwat, W.; Bhattarakosol, P.; Rungkasiri, T.; Haruechaiyasak, C. Discovering Consumer Insight from Twitter via Sentiment Analysis. J. UCS 2012, 18, 973–992. [Google Scholar]
- 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]
- 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]
- Artificial Intelligence Fuzzy Logic Systems. Available online: https://www.tutorialspoint.com/artificial_intelligence/artificial_intelligence_fuzzy_logic_systems.htm (accessed on 31 May 2018).
- 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]
- Guohong, F.; Wang, X. Chinese Sentence-Level Sentiment Classification Based on Fuzzy Sets; COLING: Beijing, China, 2010; pp. 312–319. [Google Scholar]
- 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]
- 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]
- Stanfordnlp.github.io. Stanford CoreNLP—Natural Language Software|Stanford CoreNLP, 2018. Available online: https://stanfordnlp.github.io/CoreNLP/ (accessed on 31 May 2018).
- SentiWordNet. n.d. Available online: https://sentiwordnet.isti.cnr.it/ (accessed on 12 February 2018).
- 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]
- 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]
- Pang, B.; Lee, L. Opinion mining and sentiment analysis. Found. Trends Inf. Retrieval. 2008, 2, 1–135. [Google Scholar] [CrossRef]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Zadeh, L.A. Fuzzy sets. Inf. Control 1965, 8, 338–353. [Google Scholar] [CrossRef] [Green Version]
- 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]
- 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]
- 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]
- 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]
Pos_ID | Pos_Name | Pos_Abbreviation | SentiWordNet_Abr |
---|---|---|---|
1 | Noun | NN | N |
2 | Adjective | JJ | A |
3 | Verb | VB | V |
4 | Adverb | RB | R |
5 | Noun plural | NNS | N |
6 | Adjective Superlative | JJS | A |
7 | Verbs | VBZ | V |
Type | Values |
---|---|
Original sentence | iPhone 6 is one of the good models of Apple phone. |
Sentence After Drop Stop-Words | iPhone 6 + one + good + models + Apple phone. |
Tagged Stanford POS tagger To Sentence | iPhone/NNP 6/CD is/VBZ one/CD of/IN the/DT good/JJ models/NNS of/IN Apple/NNP phone/NN ./. |
After Lemmatized Sentence | iPhone 6 + one + good + model + Apple phone |
Tagged SentiWordNet POS tagger To Sentence | iPhone#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% |
Type | Linguistic Variables |
---|---|
Input Linguistic Variable | Sentiment analysis score (SA) |
Output Linguistic Variable | Customer loyalty (LO) |
Type | Linguistic Variable | Linguistic Terms |
---|---|---|
Input | Sentiment analysis score (SA) | {Positive, neutral, negative} |
Type | Linguistic Variable | Linguistic Terms |
---|---|---|
Output | Customer loyalty (LO) | {True loyalty, pseudo loyalty, latent loyalty} |
S# | RULE |
---|---|
1 | if (“SENTIMENT SCORE IS NEGATIVE”) then CUSTOMER LOYALTY is “PSEUDO” |
2 | if (“SENTIMENT SCORE IS NEUTRAL”) then CUSTOMER LOYALTY is “LATENT” |
3 | If (“SENTIMENT SCORE IS POSITIVE”) then CUSTOMER LOYALTY is “TRUE” |
Sentiment Positioning | Sentence Level Accuracy |
---|---|
Positive | 94% |
Negative | 91% |
Neutral | 85% |
Sr. No. | Work | Application | Precision % | Recall % | F-Score % |
---|---|---|---|---|---|
1 | Grabner, et al. [2] | Sentiment Analysis of customer reviews | 83.0 | 40.0 | 53.0 |
2 | Bagheri, et al. [3] | Sentiment Analysis of customer reviews | 87.5 | 65.0 | 70.3 |
3 | Guzman, et al. [39] | Sentiment Detection on Twitter | 58.2 | 52.0 | 54.9 |
4 | Thet et al. [40] | Sentiment Analysis of Movie Reviews | 76.5 | 79.44 | 77.98 |
5 | This Approach | Sentiment Analysis for Customer Loyalty | 89.32 | 80.36 | 83.69 |
© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
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
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 StyleGhani, 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