Next Article in Journal
A Momentum Contrastive Learning Framework for Low-Data Wafer Defect Classification in Semiconductor Manufacturing
Next Article in Special Issue
Prediction and Comparative Analysis of Software Reliability Model Based on NHPP and Deep Learning
Previous Article in Journal
Simultaneous Use of Digital Technologies and Industrial Robots in Manufacturing Firms
Previous Article in Special Issue
Designing a Comprehensive and Flexible Architecture to Improve Energy Efficiency and Decision-Making in Managing Energy Consumption and Production in Panama
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Fuzzy-Based Emotion Detection Method to Classify the Relevance of Pleasant/Unpleasant Emotions Posted by Users in Reviews of Service Facilities

by
Barbara Cardone
1,
Ferdinando Di Martino
1,2,* and
Vittorio Miraglia
1
1
Dipartimento di Architettura, Università degli Studi di Napoli Federico II, Via Toledo 402, 80134 Napoli, Italy
2
Centro di Ricerca Interdipartimentale “Alberto Calza Bini”, Università degli Studi di Napoli Federico II, Via Toledo 402, 80134 Napoli, Italy
*
Author to whom correspondence should be addressed.
Appl. Sci. 2023, 13(10), 5893; https://doi.org/10.3390/app13105893
Submission received: 18 April 2023 / Revised: 5 May 2023 / Accepted: 8 May 2023 / Published: 10 May 2023
(This article belongs to the Special Issue Smart Service Technology for Industrial Applications II)

Abstract

:
Many sentiment analysis methods have been proposed recently to evaluate, through the Web, the perceptions of users and their satisfaction with the use of products and services; these approaches have been applied in various fields in which it is necessary to evaluate, for example, the degree of appreciation of a product or a service or political orientations or emotional states following an event or the occurrence of a phenomenon. On the other hand, these methods are based on natural language processing models needed to capture information hidden in comments, which generally require a high computational cost which can affect their performance; for this reason, review-collecting providers prefer to synthetically evaluate user satisfaction by considering a score on a numerical scale entered by users. To overcome this criticality, we propose an emotion detection method based on a light fuzzy-based document classification model to capture the relevance of pleasant and unpleasant emotions expressed by users in their reviews of service facilities. This method is implemented in a geo-computational framework and tested to evaluate the satisfaction of customers of theater venues located in the municipality of Naples (Italy). A fuzzy-based approach is used to classify user satisfaction according to the relevance of the emotional categories of pleasant and unpleasant. We show that our emotion detection method refines service feature pleasure assessments expressed on scales by users in their reviews.

1. Introduction

Thanks to the expansion of the Web and social media, most of the world’s population today shares textual and multimedia content to express their opinions and feelings about entities, events, places, or people. The use of sentiment analysis (SA) and emotion detection (ED) algorithms makes it possible to analyze the unstructured flows generated on the Web to recognize the predominance of pleasant or unpleasant emotions and to detect the characterizing ones.
The arrival of Web 3.0, in which the Web will evolve into a complex decentralized database based on ontological languages, will allow access to a much wider, more structured and complete set of information related to users’ experiences and preferences, while maintaining necessary transparency in compliance with all privacy constraints. Already today the Web lives towards a progressive evolution from dynamic Web 2.0 to Web 2.5 in which there are more and more artificial intelligence applications such as SIRI, Google Assistant, and Alexa, which are able to understand the context; moreover, the opportunity to receive benefits and also economic benefits, determines an increasing involvement of users in interacting with applications.
In this context, the SA and ED techniques play an even more significant role, with them being capable of capturing and classifying consumers’ sensations and likings in the use of products and services.
SA and ED techniques are today applied in various fields to analyze unstructured texts posted on the Web and apply natural language processing (NLP) methods to determine the positive or negative opinion of users.
In particular, ED methods analyze the text to detect and identify the presence and predominance of different types of feelings and emotions using a specific model of partitioning the types of emotions. Dimensional emotions models define emotions by two or three independent dimensions. In the Russel model [1], all emotions are controlled by two independent dimensions: hedonic (pleasure–displeasure) and arousal (rest–activated). In [2], the emotional state of a person is determined by three parameters: valence, arousal, and power, representing polarity, excitation intensity, and the capacity for restriction on emotions.
Categorical emotion models are used to detect and classify emotions in documents. These models are based on the fact that the emotional state is recognizable through the analysis of a basic set of pleasant and unpleasant emotions. Two emotion models are generally used to classify emotions: the Elkman model [3], in which emotions are reduced to six basic emotional categories, and the Plutchik model [4], which classifies emotions into eight pleasant and unpleasant basic emotion categories and eight secondary emotion categories derived from combinations of two basic emotion categories.
NLP methods are generally applied to carry out the morphological, syntactic, and semantic analysis of the text, in order to extract information necessary to detect emotional states. Recently, to ensure the accurate text analysis of documents, highly performing NLP neural network models have been proposed [5,6] and some authors apply deep learning methods for sentiment classification and sentiment extraction in data streams [7,8]. However, in some cases neural and deep learning models are unsuitable due to the difficulty of obtaining training data; this happens especially in streaming environments where the data flow varies continuously [9], making it impractical to label and extract data samples and causing the presence of unbalanced classified data over time.
In some cases, semi-supervised classification methods can be used to classify unbalanced data points [10]. However, to obtain high classification accuracy, a long training phase is necessary, which, computationally, is very expensive.
To reach a trade-off between the computational cost and the accuracy of the classifications in [11], an emotion detection method was proposed to classify social documents according to the prevailing emotional category in which a lightweight NLP approach was used for the detection and annotation in the text of terms belonging to specific emotional categories. An extension of the Fuzzy C-means (FCM) partitive clustering algorithm is applied to classify documents where the term frequency inverse document frequency measure (TF-IDF) is used to assess the relevance of emotion categories in the document. A variation of this framework is used in [12] to classify document extracts from tweets; the authors applied an entropy variation of FCM to classify documents using the primary and secondary pleasant and unpleasant Plutchik emotion categories and they showed that their approach improves the classification accuracy of the emotion classification framework [11]. In [13], a new emotion classification framework called FREDoC is proposed; it is based on a fuzzy-based emotion classification model applied instead of the FCM clustering algorithm to classify documents considering the primary and secondary Plutchik emotion categories. This approach overcomes the critical issues of the frameworks proposed in [11,12], with it not requiring a mapping process between the final cluster and the emotional categories and providing an immediate linguistic interpretation of the final classification of the documents. In [13], the authors used a multi-classification technique to assign the document to the emotional categories with relevance greater than a preset threshold. The authors showed that this approach provides a better emotional classification with respect to [11,12], also assigning to the document significant and not negligible emotions, even if non-predominant.
An important use of the lightweight document emotion classification approach concerns the assessment of the prevailing emotions of citizens and tourists about the places and events experienced as revealed on a social network. Each document is associated with a particular place in the area of study and with a specific time interval. The results of the classification are thematic maps in which the spatial distribution of the prevailing emotional categories and their evolution over time are highlighted. The framework [11] is implemented in a geographical information system (GIS) in [14] for classifying urban districts based on the feelings of citizens detected from social streams. In [15], a GIS-based emotion classification framework is proposed in which the emotion document classification model [11] is used to classify the subzones in which the area of study is partitioned based on the relevance of pleasant and unpleasant emotion categories.
In this study, we provide a technique for capturing the prevailing feelings of users about service facilities located within the area of study expressed through reviews, opinions, and comments posted on the web. In order to carry out multi-classification of the prevailing emotions, the FREDoC model is executed to measure the relevance of each emotional category.
We implement this method on a GIS-based platform where the analyzed infrastructures on which the classification is made are located on the map.
The proposed method has the advantage of providing, with short computation times, a multi-classification of the prevailing emotional categories assigned by users to each service facility, allowing the spatial distribution of its relevance to be constructed for each emotional category and to evaluate where they are located in the service facilities in which pleasant and unpleasant emotions prevail.
Another goal of our research is to improve the assessments made by approval scales produced by review-collecting providers which are based on the subjective scores entered by users on a scale of 1 to 5. An analysis of the prevailing emotional categories expressed in user comments allows, instead, to make a more accurate evaluation of the evaluation assigned to the service infrastructure.
The main strengths of the proposed method are summarized below:
-
A more in-depth analysis of users’ approvals and opinions with respect to the synthetic evaluations by the approval scale carried out by review-collecting providers;
-
A complete emotional category relevance classification based on the prevailing emotional states of users that enables the determination of the spatial distribution of the relevance of each category and to determine which are the most critical and the most pleasant characteristics of each service facility;
-
An optimal balance between the accuracy of user assessments and the computational speed provided by FREDOC in detecting the prevailing emotional categories.
The remaining sections are organized as follows: Section 2 introduces the FREDoC framework and discusses the FREDoC fuzzy-based emotion classification method. Section 3 presents our method applied to classify service facilities in the area of study based on the prevailing emotions detected in comments posted on the web. Finally, Section 4 shows and discusses the results of our experiments in which we test our GIS platform to classify theater infrastructures present in the municipality of Naples (Italy) based on the prevailing emotions of the users. The conclusions and future perspectives of the research are included in Section 5.

Related Work

In the last decade, many researchers have proposed SA and ED methods to analyze comments posted on social networks to detect prevailing emotions.
In [16], the authors propose a SA method that analyzes customer reviews of tourist attractions by making a 5-star classification of user satisfaction; this method incorporates a lexicon-based process to classify customer reviews of hotels using an existing domain corpus. The study in [17] evaluated user satisfaction scores for political party candidates using an SA algorithm that uses NLP algorithms to collect phrases in tweets linked to political discourse and to calculate the frequency of words associated with the issues discussed by political participants.
In [18] an SA emotion classification method is proposed whereby a semantic text segmentation method is applied to capture sentiments in emails. It involves a data augmentation process in which synthetically labelled data are generated and added to the training set to reduce the probability of overfitting.
To refine the classification of documents, some multi-label classification approaches based on deep learning algorithms have been recently proposed. In [19], a hybrid text multi-label classification method is constructed by combining a deep learning algorithm and a back-propagation neural network. In order to extend the size of the training data, a multi-label text classification based on a contrastive learning method is tested in [20] to classify disaster data extracted from social streams. The critical point of the multi-label text classification methods is the computational slowness in the semantic extraction and neural network construction processes.
Recently some authors proposed aspect-based sentiment analysis methods (ABSA) [21] to extract emotions from a text with respect to a specific aspect of the product/service analyzed. A survey on the ABSA methods is provided in [22]. Various deep learning algorithms have been used recently in many ABSA frameworks to optimize feature extraction in text [23]. An ABSA framework based on a recurrent neural network is tested in [24]; the authors showed that their framework provides better accuracy than other ABSA methods. In [25], a cascade-target-oriented neural ABSA model is applied in multi-label classifications of user reviews extracted from tweets. The limitation of neural-based ABSA methods is domain dependency; as consumers’ comments are strongly linked to product–service, the application of these methods to different domains does not guarantee the same performance.
Categorical ED text classification methods have been proposed by some researchers to detect emotions and to classify documents based on categorical emotion models. Comparison between supervised and unsupervised ED text classification methods shows that supervised ED methods provide better performance than unsupervised methods [26].
In [27,28], the naive Bayes and support vector machine classification algorithms were used to classify tweets using the six Elkmann-based emotion categories. In [29], emotion classification frameworks based on the Elkman models for annotating and classifying tweets using NLP techniques to detect emotional words in a text are proposed.
Other authors apply Plutchik’s wheel of emotions to annotate and classify sentences based on the prevailing detected emotion category. In [30], a panel of annotators evaluated which of the emotional categories of Plutchik’s wheel was the most relevant in each sentence of a training set of documents; then, bi-directional long-short-term memory and a convolutional neural network were used to classify the documents.
In [31], a convolutional neural network text classification method was applied to classify tweets based on the eight emotion categories in Plutchik’s model. The training set was constructed by collecting tweets with hashtags given by a base emotion word or similar words and classifying them with the corresponding emotional category.
Comparison tests among the neural categorical ED methods are shown in [32]; the main critical points found in these methods are the limited training data and the high computational complexity of the model.

2. The FREDoC Emotion Document Classification Model

In this section, the FREDoC model is briefly discussed. An architectural schematization of the FREDoC framework is shown in Figure 1.
The text parsing component analyzes the input data stream filtering only relevant terms; it brings together texts with similar characteristics such as tweets with a common hashtag relating to a subject or to a topic. The joined texts constitute documents of the corpus of documents.
Each document’s words expressing emotions are annotated by the term filtering component; these words match terms inserted into their stemmed forms in the dictionary of emotional category word, a list of terms assigned to each emotional category.
The TF-IDF calculus component calculates the TF-IDF measure for each term in the dictionary of emotional words appearing in a document.
Let the corpus of documents be composed of N documents d1, d2, …, dN. Let t be a term appearing in the ith document. Its TF-IDF index, measuring the importance of the term t in the document di and in the whole corpus of documents, is given by the formula:
T F - I D F t , d i = t f t , d i · i d f ( t )
where the first term in the Equation (1), called term frequency, measures the relative frequency of the term t in the document di; it is determined by the ratio between the frequency of occurrence of the term in the document and the number of terms annotated in the document. The second term, called inverse document frequency, measures the relevance of the term t in the corpus of the document; it is given by the decimal logarithm of the ratio between the number N of documents and the number of documents in which the term t appears.
After calculating the TF-IDF values of all terms annotated in the ith document, the TF-IDF values of the terms assigned to each emotional category are summed up. If cj is the jth emotional category and {tj1, tj2, tjNj} are the set of terms related to cj, the TF-IDF value assigned to the jth emotional category in the ith document is:
T F - I D F ( c j , d i ) = k = 1 N j T F - I D F ( t k , d i )
The output of the TF-IDF calculus component is the emotional category matrix (in short, the ECM), whose element R ( c j , d i ) provides a measure of the relevance of the jth emotional category in the ith document. It is obtained by normalizing in the close interval [0, 1] the value T F - I D F c j , d i through applying the following formula:
R ( c j , d i ) = T F - I D F ( c j , d i ) k = 1 M T F - I D F ( c k , d i )
The ith row of the ECM contains the relevancies of the M emotional categories in the ith document, where the sum of all the relevancies is the unit.
A fuzzy partition of the emotion category relevance domain [0, 1] (emotional relevance fuzzy partition) is constructed in order to fuzzify the relevancies of an emotional category.
The document classification component classifies a document assigning as relevance of the jth emotional category in the ith document the label of the fuzzy set to whom the crisp value R ( c j , d i ) belongs with the greatest membership degree.
As an example, let us consider an emotional relevance fuzzy partition given seven fuzzy sets, labelled: very low, low, medium–low, medium, medium–high, high, and very high and let us suppose that the membership degrees of the relevance of an emotional category in three documents to these fuzzy sets are as they are shown in Table 1.
In the last column, the relevance assigned to this emotional category in each document is shown; it corresponds with the label of the fuzzy set with the highest membership degree.

3. The Proposed Method

Our framework imports unstructured data inserted into reviews and comments posted on the Web that refer to N service facilities (called spatial entities) located in the area of study and uses the FREDoC model to assess the relevance of user emotions.
For each spatial entity, the relevance of a set of M pleasant and unpleasant emotional categories is assessed; for this purpose, the dictionary of emotional words including in the stemmed form the terms belonging to each pleasant and unpleasant emotional category is created; in addition, the emotional relevance fuzzy partition is created.
The emotional relevance fuzzy partition is constructed as a Ruspini fuzzy partition [33] on the domain [0, 1] of the normalized relevance values,
Let {A1, A2, …, An}, a family of n fuzzy sets defined in a domain X . It is a Ruspini fuzzy partition if the following constraints hold:
x X : A k x 0             k = 1 , 2 , n
k = 1 n A k x = 1 x X
The emotional relevance fuzzy partition on the domain [0, 1] is composed of a Ruspini fuzzy partition given by a family of n fuzzy sets given by trapezoidal fuzzy numbers, in the form:
A k x = 0                             x < a k 1 x a k 1 a k 2 a k 1         a k 1 x < a k 2 1                             a k 2 x a k 3 x a k 4 a k 3 a k 4         a k 3 < x a k 4 0                             x > a k 4                             k = 1 , 2 , , n x [ 0 , 1 ]
where 0 < ak1 ≤ ak2 ≤ ak3 ≤ ak4 < 1. If ak2 = ak3, then Ak is given by a triangular fuzzy number; if ak1 = ak2 = 0, then Ak is given by an R-function fuzzy number; and if ak3 = ak4 = 1, Ak is given by a L-function fuzzy number.
All comments posted by users relating to a spatial entity ei, after the analysis and cleaning of their content performed by the text parsing component, are grouped to form a document Di. After performing this process for each spatial entity, the corpus of documents D = {d1, d2, …, dN} will be created.
Then, the term filtering and the TF-IDF components are executed in order to obtain the emotional category matrix, whose element R(di,cj) i = 1, …, N j = 1, …, M represents the crisp normalized relevance of the emotional category cj in the ith document di.
For each document, the document classification component is executed in order to obtain the fuzzy relevance of each pleasant and unpleasant emotional category in the document; these results will be added to the correspondent spatial entity. The fuzzy relevance of the jth emotional category cj in the ith document di is given by the label of the fuzzy set of the relevance fuzzy partition to whom the element R(di,cj) belongs with the highest membership degree.
Thematic maps showing the spatial distribution of the fuzzy relevance of each emotional category are produced. In addition, a thematic map of the relevance of pleasant/unpleasant emotions is constructed.
Our method is shown structured in pseudocode in Algorithm 1.
Algorithm 1: Emotional relevance of service facilities assessment
1.
Select the N spatial entities in the area of study
2.
Create the dictionary of emotional words
3.
Create the emotional relevance fuzzy partition on the domain [0, 1]
4.
For each spatial entity ei i = 1, 2, …, N
5.
Extract the data stream given by reviews and comments from the web network
6.
Execute the text parsing component
7.
Create the ith document Di
8.
Next i
9.
Execute the term filtering component on the corpus of documents D = {D1, D2, …, DN}
10.
Execute the TF-IDF calculus component
11.
For each document di i = 1, 2, …, N
12.
Execute the document classification component
13.
Join the data with relevance of each emotion category to the ith spatial entity
14.
Next i
15.
For each emotion category cj j = 1, 2, …, M
16.
Construct the thematic map of the emotion category cj
17.
Next j
18.
Construct the pleasant/unpleasant emotions thematic map
We tested our framework to analyze the relevance of pleasant and unpleasant emotions expressed in reviews and comments on the Web by users who attended theatrical performances in theaters located in the municipality of Naples (Italy). For each spatial entity, the relevance of the sixteen primary and secondary emotional categories of Plutchik’s wheel were assessed.
The following section presents and discusses the test results.

4. Results and Discussion

We tested the proposed framework to analyze the emotions expressed by users for the 50 theaters located in the municipality of Naples (NA).
All 50 theaters have been georeferenced as point features on the map. Subsequently, for each theater the reviews and opinions of users posted on a set of Italian websites dedicated to reviews of service facilities were acquired; in particular, reviews written on the websites TripAdvisor (https://www.tripadvisor.it/ accessed on 1 April 2023) and Google Maps (https://www.google.it/maps/ accessed on 1 April 2023) were acquired, considering the reviews inserted in the last five years. Four theaters (Tasso, Spazio Libero, Auditorium di Scampia, and Villa Patrizi) were closed during this period. They were georeferenced but were not evaluated.
In Figure 2, the area of study is shown. The 46 analyzed theaters are shown on the map filled by the light green color.
To analyze the relevance of the emotions, we use the sixteen primary and secondary emotion categories in Plutchik’s wheel of emotions (Figure 3a). A secondary emotion category was obtained from the combination of two primary emotion categories, as displayed in the graph of the emotion primary dyads in Figure 3b where the secondary emotion categories are displayed as connecting arrows of two primary emotions.
Table 2 shows the sixteen emotional categories where each emotional category is classified as primary/secondary and pleasant/unpleasant.
To create the emotional relevance fuzzy partition, we used a fuzzy partition composed of n = 7 fuzzy sets labelled as: null, low, medium–low, medium, medium–high, and very-high. The fuzzy set null is an R-function, the fuzzy set very-high is an L-function, and the other fuzzy sets are triangular fuzzy numbers. Figure 4 shows these seven fuzzy sets.
Then, we constructed, in the Italian language, the dictionary of emotional words for the sixteen primary and secondary pleasant and unpleasant emotion categories in Plutchik’s wheel. To construct the dictionary, for each emotional category, all the known terms associated with it were analyzed; subsequently, for each term, additional terms present in synonym dictionaries were selected. Each term in the dictionary was subsequently reduced to its inflectional form.
Finally, we executed our algorithm to classify the 46 spatial entities. For each of the sixteen pleasant and unpleasant emotional categories, the thematic map of the relevance of the emotional category was extracted. Each thematic class in the map represents the fuzzy relevance label assigned to the emotional category.
In Figure 5, the eight thematic maps of the relevance of the primary emotional categories are shown.
The relevance of the pleasant emotion categories joy, trust, and surprise are at least medium for most theatres, as well as the relevance of the unpleasant emotion category sadness.
In Figure 6, the eight thematic maps of the secondary emotional categories are shown.
The two pleasant secondary emotional categories love and optimism are present in practically all theaters with a predominant medium relevance, whereas the unpleasant secondary emotional categories are only found in a certain number of them with a medium–high or high relevance.
These results show that our approach improves the performance of the GIS-based emotion classification platform [14] in which the spatial entity is classified with only the prevailing emotional category and, sometimes, emotions of different polarities may be co-present. In fact, for some theaters, both pleasant emotional categories such as joy or trust and unpleasant ones such as sadness are relevant; in fact, for a complete analysis of the prevailing emotions, a multi-classification is necessary in which to also take into account emotional categories whose relevance is not negligible.
In general, the resultant maps show that the unpleasant emotional categories are present in fewer theaters than the pleasant emotional categories for the both primary and secondary emotional categories. The emotional category sadness is the only exception, as it appears in the majority of the theaters in the study area with mostly medium relevance.
The final pleasant/unpleasant emotions thematic map, which displays the theaters based on the predominance of pleasant or unpleasant emotions, is presented in Figure 7.
The unpleasant emotional category is prevalent with a frequency of 25 theaters out of 46, which is 54% of the total, while the pleasant ones are the remaining 46%. The districts in the city center are the ones that most frequently belong to the emotional category pleasant while the western area turns out to have the largest number of theatres that belong to the emotionally unpleasant category.

Approval Scale Comparisons

To compare our results with the synthetic evaluations by using an approval scale produced by the review-collecting providers, we produced a thematic map of the relevance of pleasant emotion categories, partitioning the closed interval [0, 1] in nine thematic classes of equal breadth.
We created a thematic map of the relevance of pleasant emotional categories, partitioning the closed interval [0, 1] into nine thematic classes of equal breadth in order to compare our findings with the synthetic assessments by using approval scale produced by the review-collecting providers. We call this map the pleasant ranking map. This partitioning into nine classes is due to the fact that the rating assigned to the element by the providers is a value between 1 to 5 with a minimum sensitivity of 0.5. Each user, when entering the review, assigns a rating given by an integer from 1 to 5; the element is assigned an overall score equal to the average value of the scores assigned by all users with a minimum sensitivity of 0.5.
The nine thematic classes are displayed in Table 3. Each class has a breadth of 0.111111.
The map with the relevance of pleasant emotion categories is shown in Figure 8.
The preponderance of theaters (52%) falls into the less than 3 points classification with a total of 24 theaters while the remaining 48% (22 theaters) belong to the classes of 3 points or more. However, the number of theaters belonging to the 5-point class (9 theaters) is higher than those classified with 1 point (5 theaters).
The high concentration of theaters rated at 5 points resides mainly among the southern area of Naples, while a prevalence of theaters rated below 2.5 is present in the central-western area.
To compare our class rating with the rating assigned to the theaters by the providers, we measured the absolute difference between the class rating and the one assigned by the providers (scale difference). Figure 9 shows the trend of the scale difference with respect to the pleasant emotional category’s relevance.
The plotting graph in Figure 9 shows that on average, the difference between the two ratings increase, decreasing the pleasant emotions’ relevance.
For a relevance of less than 0.4, the average difference in the absolute value between the two scores is between 2 and 2.5. Conversely, for a significance value greater than 0.4, this difference is between 0.5 and 1.
This result shows that, probably, the subjective assignment of the score made by the user overestimates their actual evaluation inserted in the posted comment. This is in line with the result provided in [16] in which the frequencies of scores on a scale of 1 to 5 assigned on the TripAdvisor web platform by customers to hotels and restaurants located in the city of New York (USA) were calculated. The customer, after entering their comment, can decide to assign a score. This result shows that the frequency of assignments made increases as the score increases, pointing out that the customer tends to enter a higher overall score than the one detectable from their review.
From this it can be deduced that the proposed framework, in addition to providing an in-depth analysis of the relevance of emotional categories perceived by users, provides an overall evaluation of the entity analyzed, summarized in terms of the score, which is more accurate than that provided by the review-collecting providers.

5. Conclusions and Future Works

We have proposed a new emotion detection method based on fuzzy document emotion classification to assess the relevance of pleasant and unpleasant emotions expressed by users of service facilities in their reviews. We implemented our method in a GIS platform and tested it to evaluate the degree of satisfaction of users who attended performances in theatre facilities in the municipality of Naples (Italy). A fuzzy-based approach was used to classify user satisfaction according to the relevance of the emotional categories of pleasant and unpleasant.
Plutchik’s wheel of emotions considering the primary and secondary pleasant and unpleasant emotion categories was used and the FREDoC model was implemented in a GIS platform to produce thematic maps of the relevance of each emotional category measured by analyzing user reviews on the liking of service facilities. In addition, a final thematic map of the relevance of pleasant/unpleasant emotions was produced.
We compared our results with the synthetic evaluations by using an approval scale produced by the review-collecting providers, showing that our method, in addition to providing a detailed analysis of the relevance of the emotions perceived by users, provides a more reliable overall assessment of user satisfaction than that provided by the review-collecting providers based on the score that the user enters together with their review, as, probably, the score attributed by the user overestimates the level of satisfaction found in their review.
We intend to carry out new research in the future, optimizing the proposed method to further refine the accuracy of the results in terms of the relevance of the pleasant and unpleasant emotional categories expressed in the reviews posted by users.
Furthermore, we intend to test our method in different contexts to measure the levels of satisfaction with the service facilities expressed by users.
In order to gauge the degree of customer satisfaction with the service facilities, we also plan to test our methodology in different scenarios.

Author Contributions

Conceptualization, B.C., F.D.M. and V.M.; methodology, B.C., F.D.M. and V.M.; software, B.C., F.D.M. and V.M.; validation, B.C., F.D.M. and V.M.; formal analysis, B.C., F.D.M. and V.M.; investigation, B.C., F.D.M. and V.M.; resources, B.C., F.D.M. and V.M.; data curation, B.C., F.D.M. and V.M.; writing—original draft preparation, B.C., F.D.M. and V.M.; writing—review and editing, B.C., F.D.M. and V.M.; visualization, B.C., F.D.M. and V.M.; supervision, B.C., F.D.M. and V.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data sharing is not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Barrett, L.; Russell, J. They Psychological Construction of Emotion; Guildofrd Press: New York, NY, USA, 2015; Volume 479, ISBN 9781462516971. [Google Scholar]
  2. Bakker, I.; Van Der Voordt, T.; Vink, P.; De Boon, J. Pleasure, arousal, dominance: Mehrabian and Russell revisited. Curr. Psychol. 2014, 33, 405–421. [Google Scholar] [CrossRef]
  3. Ekman, W.; Friesen, M.V.; O’Sullivan, A.; Chan, I.; Diacoyanni-Tarlatzis, K.; Heider, R.; Krause, W.A.; LeCompte, T.; Pitcairn, P.E.; Ricci-Bitti, K.; et al. Universals and cultural differences in the judgments of facial expressions of emotion. J. Personal. Soc. Psychol. 1987, 53, 712–717. [Google Scholar] [CrossRef] [PubMed]
  4. Plutchik, R. A General Psychoevolutionary Theory of Emotion. In Theories of Emotion; Plutchik, R., Kellerman, H., Eds.; Academic Press: Cambridge, MA, USA, 1980; pp. 3–33. [Google Scholar] [CrossRef]
  5. Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, K. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Minneapolis, MN, USA, 2–7 June 2019; pp. 4171–4186. [Google Scholar] [CrossRef]
  6. Li, W.; Wu, Y. Hierarchical gated recurrent neural tensor network for answer triggering. In Chinese Computational Linguistics and Natural Language Processing Based on Naturally Annotated Big Data; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2017; pp. 287–294. [Google Scholar] [CrossRef]
  7. Tang, D.; Qin, B.; Liu, T. Deep learning for sentiment analysis: Successful approaches and future challenges. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 2015, 5, 292–303. [Google Scholar] [CrossRef]
  8. Zhang, L.; Wang, S.; Liu, B. Deep learning for sentiment analysis: A survey. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 2018, 8, e1253. [Google Scholar] [CrossRef]
  9. Elkan, C. The foundations of cost-sensitive learning. In Proceedings of the Seventeenth International Joint Conference on Artificial Intelligence 2001, Seattle, WA, USA, 4–10 August 2001; Volume 17, pp. 973–978. [Google Scholar]
  10. Triguero, I.; García, S.; Herrera, F. Self-labeled techniques for semi-supervised learning: Taxonomy, software and empirical study. Knowl. Inf. Syst. 2013, 42, 245–284. [Google Scholar] [CrossRef]
  11. Di Martino, F.; Senatore, S.; Sessa, S. A lightweight clustering-based approach to discover different emotional shades from social message streams. Int. J. Intell. Syst. 2019, 34, 1505–1523. [Google Scholar] [CrossRef]
  12. Cardone, B.; Di Martino, F.; Senatore, S. Improving the emotion-based classification by exploiting the fuzzy entropy in FCM clustering. Int. J. Intell. Syst. 2021, 36, 6944–6967. [Google Scholar] [CrossRef]
  13. Cardone, B.; Di Martino, F.; Senatore, S. A fuzzy partition-based method to classify social messages assessing their emotional relevance. Inf. Sci. 2022, 594, 60–75. [Google Scholar] [CrossRef]
  14. Cardone, B.; Di Martino, F.; Sessa, S. GIS-based fuzzy sentiment analysis framework to classify urban elements according to the orientations of citizens and tourists expressed in social networks. Evol. Intell. 2022, 15, 1959–1968. [Google Scholar] [CrossRef]
  15. Cardone, B.; Di Martino, F.; Miraglia, V. A GIS-Based Hot and Cold Spots Detection Method by Extracting Emotions from Social Streams. Future Internet 2023, 15, 23. [Google Scholar] [CrossRef]
  16. Gräbner, D.; Zanker, M.; Fliedl, G.; Fuchs, M. Classification of Customer Reviews based on Sentiment Analysis; Fuchs, M., Ricci, F., Cantoni, L., Eds.; Information and Communication Technologies in Tourism 2012; Springer: Vienna, Austria, 2012. [Google Scholar] [CrossRef]
  17. Onyenwe, I.; Nwagbo, S.; Mbeledogu, N.; Onyedinma, E. The impact of political party/candidate on the election results from a sentiment analysis perspective using #AnambraDecides2017 tweets. Soc. Netw. Anal. Min. 2020, 10, 55. [Google Scholar] [CrossRef]
  18. Liu, S.; Lee, K.; Lee, I. Document-level multi-topic sentiment classifcation of email data with bilstm and data augmentation. Knowl.-Based Syst. 2020, 197, 105918. [Google Scholar] [CrossRef]
  19. Wang, T.; Liu, L.; Liu, N.; Zhang, H.; Zhang, L.; Feng, S. A multi-label text classification method via dynamic semantic representation model and deep neural network. Appl. Intell. 2020, 50, 2339–2351. [Google Scholar] [CrossRef]
  20. Xie, S.; Hou, C.; Yu, H.; Zhang, Z.; Luo, X.; Zhu, N. Multi-label disaster text classification via supervised contrastive learning for social media data. Comput. Electr. Eng. 2022, 104, 108401. [Google Scholar] [CrossRef]
  21. Liu, B. Sentiment Analysis and Opinion Mining. Synthesis Lectures on Human Language Technologies. Morgan Claypool 2012, 5, 1–167. [Google Scholar] [CrossRef]
  22. Zohreh, M.; Razak Hamdan, A.; Suhaila, Z. Aspect-Based Sentiment Analysis Methods in Recent Years. Asia-Pac. J. Inf. Technol. Multimed. 2019, 7, 79–96. [Google Scholar] [CrossRef]
  23. Do, H.H.; Prasad, P.W.C.; Maag, A.; Alsadoon, A. Deep Learning for Aspect-Based Sentiment Analysis: A Comparative Review. Expert Syst. Appl. 2019, 118, 272–299. [Google Scholar] [CrossRef]
  24. Jin, W.; Zhao, B.; Zhang, L.; Liu, C.; Yu, H. Back to common sense: Oxford dictionary descriptive knowledge augmentation for aspect-based sentiment analysis. Inf. Process. Manag. 2023, 3, 103260. [Google Scholar] [CrossRef]
  25. Ding, H.; Huang, S.; Jin, W.; Shan, Y.; Yu, H. A Novel Cascade Model for End-to-End Aspect-Based Social Comment Sentiment Analysis. Electronics 2022, 11, 1810. [Google Scholar] [CrossRef]
  26. Canales, L.; Martínez-Barco, P. Emotion detection from text: A survey. In Proceedings of the Workshop on Natural Language Processing in the 5th Information Systems Research Working Days (JISIC), Quito, Ecuador, 25–29 October 2014; Association for Computational Linguistics: Cedarville, OH, USA, 2014; pp. 37–43. [Google Scholar]
  27. Jain, V.K.; Kumar, S.; Fernandes, S.L. Extraction of emotions from multilingual text using intelligent text processing and computational linguistics. J. Comput. Sci. 2017, 21, 316–326. [Google Scholar] [CrossRef]
  28. Hasan, M.; Rundensteiner, E.; Agu, E. Automatic emotion detection in text streams by analyzing twitter data. Int. J. Data Sci. Anal. 2018, 7, 35–51. [Google Scholar] [CrossRef]
  29. Sailunaz, K.; Alhajj, R. Emotion and sentiment analysis from twitter text. J. Comput. Sci. 2019, 18, 101003. [Google Scholar] [CrossRef]
  30. Ahmad, Z.; Jindal, R.; Ekbal, A.; Bhattachharyya, P. Borrow from rich cousin: Transfer learning for emotion detection using cross lingual embedding. Expert Syst. Appl. 2020, 139, 112851. [Google Scholar] [CrossRef]
  31. Park, S.H.; Bae, B.C.; Cheong, Y.G. Emotion Recognition from Text Stories Using an Emotion Embedding Model. In Proceedings of the IEEE International Conference on Big Data and Smart Computing (BigComp), Busan, Republic of Korea, 19–22 February 2020; pp. 579–583. [Google Scholar] [CrossRef]
  32. Acheampong, F.A.; Wenyu, C.; Nunoo-Mensah, H. Text-based emotion detection: Advances, challenges, and opportunities. Eng. Rep. 2020, 2, e12189. [Google Scholar] [CrossRef]
  33. Ruspini, E.H. A new approach to clustering. Inform. Control 1969, 15, 22–32. [Google Scholar] [CrossRef]
Figure 1. Schema of the FREDoC framework.
Figure 1. Schema of the FREDoC framework.
Applsci 13 05893 g001
Figure 2. Map of the area of study where the theaters are located.
Figure 2. Map of the area of study where the theaters are located.
Applsci 13 05893 g002
Figure 3. Plutchik’s wheel of emotions (a) and emotion primary dyads (b).
Figure 3. Plutchik’s wheel of emotions (a) and emotion primary dyads (b).
Applsci 13 05893 g003
Figure 4. The emotional relevance fuzzy partition used in the tests.
Figure 4. The emotional relevance fuzzy partition used in the tests.
Applsci 13 05893 g004
Figure 5. Thematic maps of the eight primary emotional categories.
Figure 5. Thematic maps of the eight primary emotional categories.
Applsci 13 05893 g005
Figure 6. Thematic maps of the eight secondary emotional categories.
Figure 6. Thematic maps of the eight secondary emotional categories.
Applsci 13 05893 g006
Figure 7. Pleasant/unpleasant emotions thematic map.
Figure 7. Pleasant/unpleasant emotions thematic map.
Applsci 13 05893 g007
Figure 8. Pleasant ranking map.
Figure 8. Pleasant ranking map.
Applsci 13 05893 g008
Figure 9. Scale difference trend.
Figure 9. Scale difference trend.
Applsci 13 05893 g009
Table 1. Example of assignment of the relevance of an emotional category to documents.
Table 1. Example of assignment of the relevance of an emotional category to documents.
DocumentFuzzy Set
Very LowLowMedium–LowMediumMedium–HighHighVery HighRelevance
Document 10.000.050.230.440.230.050.00Medium
Document 20.000.000.000.000.110.780.11High
Document 30.510.380.120.000.000.000.00Very Low
Table 2. Primary and secondary emotional categories in Plutchik’s wheel of emotions.
Table 2. Primary and secondary emotional categories in Plutchik’s wheel of emotions.
Emotional CategoryPrimary/SecondaryPleasant/Unpleasant
JoyPrimaryPleasant
TrustPrimaryPleasant
FearPrimaryUnpleasant
SurprisePrimaryPleasant
SadnessPrimaryUnpleasant
DisgustPrimaryUnpleasant
AngerPrimaryUnpleasant
ExpectationPrimaryPleasant
AggressionSecondaryUnpleasant
OptimismSecondaryPleasant
LoveSecondaryPleasant
SubmissionSecondaryUnpleasant
DisapprovalSecondaryUnpleasant
ContemptSecondaryUnpleasant
RemorseSecondaryUnpleasant
AweSecondaryUnpleasant
Table 3. Thematic classes used for creating the pleasant/unpleasant emotions thematic map.
Table 3. Thematic classes used for creating the pleasant/unpleasant emotions thematic map.
ClassInfimumSupremum
100.111111
1.50.1111110.222222
20.2222220.333333
2.50.3333330.444444
30.4444440.555556
3.50.5555560.666667
40.6666670.777778
4.50.7777780.888889
50.8888891
Each theater is assigned to the class in which the value of pleasant emotion relevance attributed to it falls.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Cardone, B.; Di Martino, F.; Miraglia, V. A Fuzzy-Based Emotion Detection Method to Classify the Relevance of Pleasant/Unpleasant Emotions Posted by Users in Reviews of Service Facilities. Appl. Sci. 2023, 13, 5893. https://doi.org/10.3390/app13105893

AMA Style

Cardone B, Di Martino F, Miraglia V. A Fuzzy-Based Emotion Detection Method to Classify the Relevance of Pleasant/Unpleasant Emotions Posted by Users in Reviews of Service Facilities. Applied Sciences. 2023; 13(10):5893. https://doi.org/10.3390/app13105893

Chicago/Turabian Style

Cardone, Barbara, Ferdinando Di Martino, and Vittorio Miraglia. 2023. "A Fuzzy-Based Emotion Detection Method to Classify the Relevance of Pleasant/Unpleasant Emotions Posted by Users in Reviews of Service Facilities" Applied Sciences 13, no. 10: 5893. https://doi.org/10.3390/app13105893

APA Style

Cardone, B., Di Martino, F., & Miraglia, V. (2023). A Fuzzy-Based Emotion Detection Method to Classify the Relevance of Pleasant/Unpleasant Emotions Posted by Users in Reviews of Service Facilities. Applied Sciences, 13(10), 5893. https://doi.org/10.3390/app13105893

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