Abstract
In recent times, sentiment analysis research has gained wide popularity. That situation causes the importance of online applications that allow users to express their opinions on events, services, or products through social media applications such as Twitter, Facebook, and Amazon. This paper proposes a novel sentiment classification method according to the fuzzy rule-based system (FRBS) with the crow search algorithm (CSA). FRBS is used to classify the polarity of sentences or documents, and the CSA is employed to optimize the best output from the fuzzy logic algorithm. The FRBS is applied to extract the sentiment and classify its polarity into negative, neutral, and positive. Sometimes, the outputs of the FRBS must be enhanced, especially since many variables are present and the rules between them overlap. For such cases, the CSA is used to solve this limitation faced by FRBS to optimize the outputs of FRBS and achieve the best result. This study compares the performance of the proposed model with different machine learning algorithms, such as SVM, maximum entropy, boosting, and SWESA. It tests the model on three famous data sets collected from Amazon, Yelp, and IMDB. Experimental results demonstrate the effectiveness of the proposed model and achieve competitive performance in terms of accuracy, recall, precision, and the F–score.
Similar content being viewed by others
Data availability
The datasets analyzed during the current study are available in the: Amazon and Yelp: https://github.com/ss12345656/FuzzySentiment/tree/master/Data/Test. IMDB https://www.kaggle.com/lakshmi25npathi/imdb-dataset-of-50k-movie-reviews.
References
Abboud R, Tekli J (2020) Integration of nonparametric fuzzy classification with an evolutionary-developmental framework to perform music sentiment-based analysis and composition. Soft Comput 24(13):9875–9925. https://doi.org/10.1007/s00500-019-04503-4
Al-Deen HSS, Zeng Z, Al-Sabri R, Hekmat A (2021) An improved model for analyzing textual sentiment based on a deep neural network using multi-head attention mechanism. Appl Syst Innov. https://doi.org/10.3390/asi4040085
Al Shboul B, Al-Ayyouby M, Jararwehy Y (2015) Multi-way sentiment classification of Arabic reviews. In: 2015 international conference on information and communication systems ICICS 2015, pp 206–211, 2015. https://doi.org/10.1109/IACS.2015.7103228
Askarzadeh A (2016) A novel metaheuristic method for solving constrained engineering optimization problems: crow search algorithm. Comput Struct 169:1–12. https://doi.org/10.1016/j.compstruc.2016.03.001
Baccianella S, Esuli A, Sebastiani F (2010) “SENTIWORDNET 3.0: an enhanced lexical resource for sentiment analysis and opinion mining. In: Proceeding of 7th international conference on language resources and evaluation 2010, pp 2200–2204
Dodds PS et al (2015) Human language reveals a universal positivity bias. Proc Natl Acad Sci USA 112(8):2389–2394. https://doi.org/10.1073/pnas.1411678112
Fares M, Moufarrej A, Jreij E, Tekli J, Grosky W (2019) Unsupervised word-level affect analysis and propagation in a lexical knowledge graph. Knowl Based Syst 165:432–459. https://doi.org/10.1016/j.knosys.2018.12.017
Ghosh S, Hazra A, Raj A (2020) A comparative study of different classification techniques for sentiment analysis. Int J Synth Emot 11(1):49–57. https://doi.org/10.4018/ijse.20200101.oa
Gupta G, Malhotra S (2015) Text document tokenization for word frequency count using rapid miner (taking resume as an example). In: International conference on advanced engineering and technology no. ICAET, pp 24–26 2015
Jefferson C, Liu H, Cocea M (2017) Fuzzy approach for sentiment analysis. IEEE Int Conf Fuzzy Syst. https://doi.org/10.1109/FUZZ-IEEE.2017.8015577
Kabir M, Kabir MMJ, Xu S, Badhon B (2021) An empirical research on sentiment analysis using machine learning approaches. Int J Comput Appl 43(10):1011–1019. https://doi.org/10.1080/1206212X.2019.1643584
Katarya R, Yadav A (2018) A comparative study of genetic algorithm in sentiment analysis. In: Proceedings of the 2nd international conference on inventive systems and control, ICISC 2018, no. ICISC, pp 136–141, 2018. https://doi.org/10.1109/ICISC.2018.8399051
Kaur P (2016) Design and implementation of boosting classification algorithm for sentiment analysis on newspaper articles. Int J Comput Sci Info Technol 7(4):1767–1770
López V, Del Río S, Benítez JM, Herrera F (2015) Cost-sensitive linguistic fuzzy rule based classification systems under the MapReduce framework for imbalanced big data. Fuzzy Sets Syst 258:5–38. https://doi.org/10.1016/j.fss.2014.01.015
Ma T, Al-Sabri R, Zhang L, Marah B, Al-Nabhan N (2020) The impact of weighting schemes and stemming process on topic modeling of arabic long and short texts. ACM Trans Asian Low Resour Lang Inf Process. https://doi.org/10.1145/3405843
Madhoushi Z, Hamdan AR, Zainudin S (2015) Sentiment analysis techniques in recent works. In: Proceedings of 2015 science and information conference SAI 2015, no. March, pp 288–291. https://doi.org/10.1109/SAI.2015.7237157
Medhat W, Hassan A, Korashy H (2014) Sentiment analysis algorithms and applications: a survey. Ain Shams Eng J 5(4):1093–1113. https://doi.org/10.1016/j.asej.2014.04.011
Nasim Z, Rajput Q, Haider S (2017) Sentiment analysis of student feedback using machine learning and lexicon based approaches. In: International conference on research and innovation in information systems, ICRIIS, no. March 2021. https://doi.org/10.1109/ICRIIS.2017.8002475
Nielsen F (2011) Afinn. Richard Petersens Plads, Building 321, DK-2800 Kgs. Lyngby. 2011
Poria S, Cambria E, Winterstein G, Bin Huang G (2014) Sentic patterns: dependency-based rules for concept-level sentiment analysis. Knowl Based Syst 69(1):45–63. https://doi.org/10.1016/j.knosys.2014.05.005
Ravi K, Ravi V, Prasad PSRK (2017) Fuzzy formal concept analysis based opinion mining for CRM in financial services. Appl Soft Comput J 60:786–807. https://doi.org/10.1016/j.asoc.2017.05.028
Ravi K, Ravi V (2015) A survey on opinion mining and sentiment analysis: tasks, approaches and applications, vol 89, no. November, 2015
Ross TJ (2010) Fuzzy logic with engineering applications, 3rd edn. Wiley, Hoboken. https://doi.org/10.1002/9781119994374
Saif H, He Y, Fernandez M, Alani H (2016) Contextual semantics for sentiment analysis of Twitter. Inf Process Manag 52(1):5–19. https://doi.org/10.1016/j.ipm.2015.01.005
Sarma PK, Sethares WA (2018) Simple algorithms for sentiment analysis on sentiment rich, data poor domains. In: COLING 2018—27th international conference on computational linguistics proceedings, pp 3422–3435, 2018
Serrano-Guerrero J, Olivas JA, Romero FP, Herrera-Viedma E (2015) Sentiment analysis: a review and comparative analysis of web services. Inf Sci (NY) 311:18–38. https://doi.org/10.1016/j.ins.2015.03.040
Tang D, Wei F, Yang N, Zhou M, Liu T, Qin B (2014) Learning sentiment-specific word embedding. In: Acl, pp 1555–1565, 2014
Vashishtha S, Susan S (2019) Fuzzy rule based unsupervised sentiment analysis from social media posts. Expert Syst Appl. https://doi.org/10.1016/j.eswa.2019.112834
Vashishtha S, Susan S (2020a) Inferring sentiments from supervised classification of text and speech cues using fuzzy rules. Procedia Comput Sci 167(2019):1370–1379. https://doi.org/10.1016/j.procs.2020.03.348
Vashishtha S, Susan S (2019) Fuzzy logic based dynamic plotting of mood swings from tweets, vol 939, no. May 2020b. Springer
Verma T, Renu R, Gaur D (2014) Tokenization and filtering process in rapidminer. Int J Appl Inf Syst 7(2):16–18. https://doi.org/10.5120/ijais14-451139
Zadeh A, Zellers R, Pincus E, Morency L-P (2016) MOSI: multimodal corpus of sentiment intensity and subjectivity analysis in online opinion videos, 2016, [Online]. http://arxiv.org/abs/1606.06259
Funding
This work was partially supported by the National Natural Science Foundation of China (Z201G10110G20003).
Author information
Authors and Affiliations
Contributions
All authors contributed to the study conception and design. Material preparation, data collection and analysis were performed by MazenSharaf AL-Deen, Yu lasheng, Gamil R. S. Qaid and Ali Aldhubri. The first draft of the manuscript was written by MazenSharaf AL-Deen, and all authors commented on previous versions of the manuscript. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Conflict of intrest
We wish to confirm that there are no known conflicts of interest associated with this publication and there has been no significant financial support for this work that could have influenced its outcome.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
AL-Deen, M.S., Yu, L., Aldhubri, A. et al. Study on sentiment classification strategies based on the fuzzy logic with crow search algorithm. Soft Comput 26, 12611–12622 (2022). https://doi.org/10.1007/s00500-022-07243-0
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00500-022-07243-0