Introduction

The rapid development of the Internet has brought great convenience to people's lives, and online consumer groups are increasing. Online reviews contain a great deal of information about consumers' purchasing preferences, which seriously affects potential consumers' purchasing decisions. It becomes an essential information source for consumers to make purchasing decisions and significantly impacts consumers' decision-making behavior [1,2,3]. However, due to the complexity of online reviews, consumers cannot effectively use online review data. Therefore, fully and effectively using the online review data to make it the basis of purchasing decisions has become a concern of many scholars, merchants, and consumers.

In the existing research [18], the ranking product methods through online reviews include two parts: sentiment analysis and multi-attribute decision-making. The first part is to identify the sentiment orientation of online reviews by analyzing online reviews extracted from online platforms. The second part is to select the best alternative product considering selected criteria based on sentiment analysis. However, some product ranking methods based on online reviews only consider online reviews' positive and negative sentiment tendencies [4,5,6,7,8,9]. The sentiment tendency of each sentence is divided into positive or negative, and ignore the information that the sentiment orientation in online reviews is neutral, resulting in a loss of information in the product purchase decision process.

The sentiment orientations of online reviews are classified into positive, negative, and neutral to avoid the loss of online review information. Intuitionistic fuzzy set (IFS) includes membership, non-membership, and hesitation simultaneously, providing a useful tool to represent the positive, negative, and neutral sentiments in online review data. The IFS is widely used to describe sentiment orientation and sentiment intensity [18]. However, the existing research ignores the customers’ psychological behavior and gain and loss during purchasing. TODIM method is suitable for describing the psychological behavior of the customers in the product ranking process [32,33,34,35]. The main idea of the TODIM method is to compare the product feature value of each alternative product and obtain the gain and loss value, then calculate the dominance degree between every two alternative products and the overall prospect values of each product [36,37,38,39]. According to the overall prospect values, the alternative products are ranked.

Therefore, an online review-based product selection model combined with an intuitionistic fuzzy TODIM (IF-TODIM) method is developed. Firstly, the Apriori algorithm is used to extract the product features that customers focus on based on online reviews. Then the sentiment orientation and intensity of the sentiment words for the product features are identified by the lexicon-based sentiment analysis approach. The proportion of the sentiment orientations of the product features are represented by an intuitionistic fuzzy value (IFV). Finally, the IF-TODIM method is used to determine the final ranking results of the alternative products.

The rest of our work is organized as follows. “Related works” introduces some related works on the ranking selection. Considering the advantages of IFVs and intuitionistic fuzzy sets (IFSs) representing the sentiment orientations of product features, “Preliminaries” provides some concepts of IFVs and IFSs. “The IF-TODIM method for product ranking based on online review” develops a new IF-TODIM method for product selection based on online reviews. A case study is given to illustrate the effectiveness of the developed IF-TODIM method in “Case study”. “Conclusion” takes some conclusions.

Related works

Recently, some scholars have concentrated on ranking products through online reviews [4,5,6,7,8,9, 18]. Zhang et al. [4] identified multiple important product features, then extracted sentences about each feature from online reviews, divided the online reviews into subjective and comparative reviews using a dynamic programming algorithm. The online reviews' sentiment orientation was determined to construct a weighted product graph and rank the products using an improved PageRank algorithm. Later, Zhang et al. [5] improved the algorithm by considering the importance of different reviews. The weight of each review was determined by the review's usefulness and time. Kang et al. [6] proposed a customer satisfaction analysis framework based on customer review mining analysis for product improvement decision making. Najmi et al. [7] calculated each product's score by both review and brand. The review score was derived from sentiment analysis and usefulness analysis, and the brand score was calculated by an improved PageRank algorithm, and the products were ranked based on their combined scores. Li et al. [8] used the value function of prospect theory to determine the perceived value of alternative products based on consumers' expectations of product attributes and the sentiment orientation of product attributes in online reviews. Fan et al. [9] used the stochastic PROMETHEE-II method to determine product ranking based on online ratings.

Fuzzy set theory has been applied in the product ranking or recommendation to represent the uncertainty in the online review data [10,11,12]. Different forms of fuzzy sets have been used to represent product feature values, such as fuzzy set, hesitant fuzzy set (HFS), Pythagorean fuzzy set (PFS), interval type-2 fuzzy set (IT2 FS), and IFS. Peng et al. [13] calculated the similarity measures of words to cluster each product feature synonyms, then determined the important product features based on the total frequency of each product feature in the reviews. The subjective evaluation of experts was contributed to obtaining a fuzzy decision matrix of important product features, and finally, the products were ranked by the fuzzy PROMETHEE method. Zhang et al. [14] regarded different sentiment scores of product features as different membership values and integrated different sentiment scores by HFS. A product ranking method based on 2-additive fuzzy measures and Choquet integral was developed. Considering IT2 FS was more accurate than the traditional fuzzy set in representing the uncertainty, Bi et al. [15] represented the uncertainty of the product features’ sentiment orientations using IT2 FS. Fu et al. [16] used deep learning models and K-means clustering algorithms to identify sentiment tendencies, considered the credibility of the number of online reviews for different products. Interval-valued PFS sets were used to represent product attribute values, and finally, the Heronian mean operator was used to integrate product attribute information to derive product ranking. To retain both the online review sentiment propensity and its probability, Liu and Teng [17] used probabilistic linguistic term sets (PLTSs). The PL-TODIM method was proposed for alternative products based on the new entropy measures and possibility degrees. The probability multivalued neutrosophic linguistic numbers (PMVNLNs) was developed by Ji et al. [18] to characterize online reviews and reflect the differences in positive (negative) information. Regret theory was combined with outranking methods to construct a review-based decision support model. Liang et al. [19] considered the randomness and ambiguity of online reviews and the interrelationship between product features in the decision support model and developed a linguistic intuitionistic normal cloud (LINC) model. Liang et al. [20] represented tourists’ sentiment preferences by distributed linguistic according to the online reviews, developed a method for determining the ideal and minimum value solutions, and proposed a DL-VIKOR to rank the alternative hotels for tourists.

IFS has been widely used to describe sentiment orientation and sentiment intensity [21]. In the transforming process, the proportions of the positive, negative, and neutral sentiment orientations were transformed into the membership, non-membership, and hesitance values in IFVs, respectively. Therefore, the IFS has strong flexibility and practicality in the product ranking problem. Liu et al. [22] constructed a purchase decision model based on the IF-TOPSIS method, which focuses on product preference through similarity to the ideal solution. Liu et al. [23] ranked the alternative products using the combined intuitionistic fuzzy weighted average (IFWA) operator with the PROMETHEE II method. Çalı and Balaman [24] represented the online ratings of hotel customers by IFSs, and IF-ELECTRE was used to rank alternative hotels with VIKOR integration. Zhang et al. [25] calculated the feature weights considering the customers’ attention and developed a product ranking model combining 2-additive fuzzy measures, non-linear programming, and Choquet integration.

Therefore, the main contributions of the developed IF-TODIM method for ranking products are as follows. Firstly, a new product selection method based on online reviews is proposed to consider the consumers’ online reviews and psychological behavior. Secondly, the product features are exacted by the Apriori algorithm, which is different from the previous research. Thirdly, in the IF-TODIM method, new ranking methods of intuitionistic fuzzy values (IFVs) are developed to compare the gain and loss of each product feature. The objective weight values of product features are calculated by considering entropy measures. Fourthly, compared with the previous method, product ranking with the IF-TODIM method has advantages over the intuitionistic fuzzy TOPSIS (IF-TOPSIS) method.

Preliminaries

The IFVs have the advantage of representing the feature values of products. In the transforming process, the proportions of the positive, negative, and neutral sentiment orientations are transformed into the membership, non-membership, and hesitance values in IFVs, respectively. Therefore, some basic concepts of IFVs and IFSs are introduced.

Definition 1 [26]. Let \(A = \left\{ {\left\langle {x_{i} ,\mu_{A} \left( {x_{i} } \right),\nu_{A} \left( {x_{i} } \right)} \right\rangle \left| {x_{i} \in X} \right.} \right\}\) and \(B = \left\{ {\left\langle {x_{i} ,\mu_{B} \left( {x_{i} } \right),\nu_{B} \left( {x_{i} } \right)} \right\rangle \left| {x_{i} \in X} \right.} \right\}\) be two IFSs representing the feature values of products, where \(\mu_{A} \left( {x_{i} } \right)\), \(\nu_{A} \left( {x_{i} } \right)\) and \(\pi_{A} \left( {x_{i} } \right)\) are the membership value, non-membership value, and hesitance value in IFV, \(\mu_{A} \left( {x_{i} } \right) + \nu_{A} \left( {x_{i} } \right) + \pi_{A} \left( {x_{i} } \right) = 1\). The Hamming, Euclidean, and generalized distances between the two product features \(A\) and \(B\) are defined as follows.

$$ \begin{aligned}d_{h} \left( {A,B} \right) &= \frac{1}{2n}\sum\limits_{i = 1}^{n} \left( \left| \mu_{A} \left( x_{i} \right) - \mu_{B} \left( x_{i} \right) \right|\right. \\ &\quad \left.+ \left| \nu_{A} \left( x_{i} \right) - \nu_{B} \left( x_{i} \right) \right| + \left| \pi_{A} \left( x_{i} \right) - \pi_{B} \left( x_{i} \right) \right| \right)\end{aligned} $$
(1)
$$ d_{e} \left( {A,B} \right) = \sqrt {\frac{1}{2n}\sum\limits_{i = 1}^{n} {\left( {\left| {\mu_{A} \left( {x_{i} } \right) - \mu_{B} \left( {x_{i} } \right)} \right|^{2} + \left| {\nu_{A} \left( {x_{i} } \right) - \nu_{B} \left( {x_{i} } \right)} \right|^{2} + \left| {\pi_{A} \left( {x_{i} } \right) - \pi_{B} \left( {x_{i} } \right)} \right|^{2} } \right)} } $$
(2)
$$\begin{aligned} d_{g} \left( {A,B} \right) &= \left[ \frac{1}{2n}\sum\limits_{i = 1}^{n} \left( \left| {\mu_{A} \left( {x_{i} } \right) - \mu_{B} \left( {x_{i} } \right)} \right|^{\lambda } + \left| {\nu_{A} \left( {x_{i} } \right) - \nu_{B} \left( {x_{i} } \right)} \right|^{\lambda } \right.\right.\\&\quad \left.{\vphantom{\sum\limits_{i = 1}^{n}}\left.{+ \left| {\pi_{A} \left( {x_{i} } \right) - \pi_{B} \left( {x_{i} } \right)} \right|^{\lambda } } \right)} \right]^{{{1 \mathord{\left/ {\vphantom {1 \lambda }} \right. \kern-\nulldelimiterspace} \lambda }}} \end{aligned}$$
(3)

Definition 2 [27, 28]. Let \(A = \left\{ {\left\langle {x_{i} ,\mu_{A} \left( {x_{i} } \right),\nu_{A} \left( {x_{i} } \right)} \right\rangle \left| {x_{i} \in X} \right.} \right\}\) be an IFS, and the entropy measures can be defined as follows.

$$ E_{1} \left( A \right) = \sum\limits_{i = 1}^{n} {\left( {1 - \left( {\mu_{A} \left( {x_{i} } \right) + \nu_{A} \left( {x_{i} } \right)} \right)} \right)} = \sum\limits_{i = 1}^{n} {\pi_{A} \left( {x_{i} } \right)} $$
(4)
$$ E_{2} \left( A \right) = \sum\limits_{i = 1}^{n} {\left( {1 - \left( {\mu_{A} \left( {x_{i} } \right) + \nu_{A} \left( {x_{i} } \right)} \right)^{k} } \right)} ,k = 2,3, \cdots ,\infty $$
(5)
$$ E_{3} \left( A \right) = \sum\limits_{i = 1}^{n} {\left( {1 - \left( {\mu_{A} \left( {x_{i} } \right) + \nu_{A} \left( {x_{i} } \right)} \right) \cdot e^{{1 - \left( {\mu_{A} \left( {x_{i} } \right) + \nu_{A} \left( {x_{i} } \right)} \right)}} } \right)} $$
(6)
$$ E_{4} \left( A \right) = \sum\limits_{i = 1}^{n} {\left( {1 - \left( {\mu_{A} \left( {x_{i} } \right) + \nu_{A} \left( {x_{i} } \right)} \right) \cdot \sin \left( {\left( {{\pi \mathord{\left/ {\vphantom {\pi 2}} \right. \kern-\nulldelimiterspace} 2}} \right)\left( {\mu_{A} \left( {x_{i} } \right) + \nu_{A} \left( {x_{i} } \right)} \right)} \right)} \right)} $$
(7)

The score measures of IFVs act as an important role in comparing the magnitude of alternative product feature values. Some new score measures considering the signed distance of IFVs are introduced as follows.

Definition 3. Let \(a = < \mu_{a} ,\nu_{a} >\) and \(b = < \mu_{b} ,\nu_{b} >\) be two IFVs representing the feature values of products, \(\tilde{0} = < 0,1 >\) and \(\tilde{1} = < 1,0 >\) are the worst and best evaluation values of the product features. Then, the new score measures \(R_{h}\), \(R_{e}\) and \(R_{g}\) of IFVs are defined as follows.

$$\begin{aligned} R_{h} \left( a \right)& = d_{h} \left( {a,\tilde{0}} \right) = \frac{1}{2}\left( {\left| {\mu_{a} - 0} \right| + \left| {\nu_{a} - 1} \right| }\right.\\&\quad \left.{+ \left| {\pi_{a} - 0} \right|} \right) = \frac{1}{2}\left( {1 + \mu_{a} + \pi_{a} - \nu_{a} } \right) \end{aligned}$$
(8)
$$\begin{aligned} R_{e} \left( a \right)& = d_{e} \left( {a,\tilde{0}} \right) = \sqrt {\frac{1}{2}\left( {\left| {\mu_{a} - 0} \right|^{2} + \left| {\nu_{a} - 1} \right|^{2} + \left| {\pi_{a} - 0} \right|^{2} } \right)} \\& \quad = \sqrt {\frac{1}{2}\left( {\mu_{a}^{2} + \pi_{a}^{2} + \left| {1 - \nu_{a} } \right|^{2} } \right)} \end{aligned}$$
(9)
$$\begin{aligned} R_{g} \left( a \right) &= d_{g} \left( {a,\tilde{0}} \right) = \left( {\frac{1}{2}\left( {\left| {\mu_{a} - 0} \right|^{\lambda } + \left| {\nu_{a} - 1} \right|^{\lambda } + \left| {\pi_{a} - 0} \right|^{\lambda } } \right)} \right)^{{{1 \mathord{\left/ {\vphantom {1 \lambda }} \right. \kern-\nulldelimiterspace} \lambda }}} \\& \quad = \left[ {\frac{1}{2}\left( {\mu_{a}^{\lambda } + \pi_{a}^{\lambda } + \left| {1 - \nu_{a} } \right|^{\lambda } } \right)} \right]^{{{1 \mathord{\left/ {\vphantom {1 \lambda }} \right. \kern-\nulldelimiterspace} \lambda }}}\end{aligned} $$
(10)

Property 1. Let \(a = < \mu_{a} ,\nu_{a} >\) be an IFV, where \(\mu_{a} ,\nu_{a} \in \left[ {0,1} \right]\) and \(0 \le \mu_{a} + \nu_{a} \le 1\), then \(R\left( a \right) \in \left[ {0,1} \right]\).

Proof. If the IFV \(a = < 0,1 >\), then

$$ R_{h} \left( a \right) = d_{h} \left( {a,\tilde{0}} \right) = \frac{1}{2}\left( {\left| {0 - 0} \right| + \left| {1 - 1} \right| + \left| {0 - 0} \right|} \right) = 0, $$
$$ \begin{aligned}R_{e} \left( a \right)& = d_{e} \left( {a,\tilde{0}} \right)\\& = \sqrt {\frac{1}{2}\left( {\left| {0 - 0} \right|^{2} + \left| {1 - 1} \right|^{2} + \left| {0 - 0} \right|^{2} } \right)} = 0,\end{aligned} $$
$$\begin{aligned} R_{g} \left( a \right)& = d_{g} \left( {a,\tilde{0}} \right) \\&\quad = \left( {\frac{1}{2}\left( {\left| {0 - 0} \right|^{\lambda } + \left| {1 - 1} \right|^{\lambda } + \left| {0 - 0} \right|^{\lambda } } \right)} \right)^{{{1 \mathord{\left/ {\vphantom {1 \lambda }} \right. \kern-\nulldelimiterspace} \lambda }}} = 0.\end{aligned} $$

If the IFV \(a = < 1,0 >\), then

\(R_{h} \left( a \right) = d_{h} \left( {a,\tilde{0}} \right) = \frac{1}{2}\left( {\left| {1 - 0} \right| + \left| {0 - 1} \right| + \left| {0 - 0} \right|} \right) = 1\),

$$\begin{aligned} R_{e} \left( a \right) &= d_{e} \left( {a,\tilde{0}} \right) \\&\quad= \sqrt {\frac{1}{2}\left( {\left| {1 - 0} \right|^{2} + \left| {0 - 1} \right|^{2} + \left| {0 - 0} \right|^{2} } \right)} = 1, \end{aligned}$$
$$ \begin{aligned}R_{g} \left( a \right)& = d_{g} \left( {a,\tilde{0}} \right) \\&\quad= \left( {\frac{1}{2}\left( {\left| {1 - 0} \right|^{\lambda } + \left| {0 - 1} \right|^{\lambda } + \left| {0 - 0} \right|^{\lambda } } \right)} \right)^{{{1 \mathord{\left/ {\vphantom {1 \lambda }} \right. \kern-\nulldelimiterspace} \lambda }}} = 1.\end{aligned} $$

Therefore, \(R\left( a \right) \in \left[ {0,1} \right]\).

The corresponding ranking method of IFVs is defined as

(1) If \(R\left( a \right) > R\left( b \right)\), then \(a \succ b\);

(2) If \(R\left( a \right) = R\left( b \right)\), then \(a \sim b\).

The IF-TODIM method for product ranking based on online review

Problem description

The following symbols are used to represent collections and variables in the product selection problem.

\(A = \left\{ {A_{1} ,A_{2} , \ldots ,A_{n} } \right\}\): a collection of \(n\) alternative products, where \(A_{i}\) represents the i-th product, \(i = 1,2, \ldots ,n\) and the consumers select the alternative product set \(A\).

\(F = \left\{ {f_{1} ,f_{2} , \ldots ,f_{m} } \right\}\): a collection of \(m\) features, the products’ features from the online reviews that the consumer focuses on, where \(f_{j}\) represents the j-th feature, \(j = 1,2, \ldots ,m\).

\(W = \left\{ {\omega_{1} ,\omega_{2} , \ldots ,\omega_{m} } \right\}\): the weight vector of the features, where \(\omega_{j}\) represents the weight of the feature \(f_{j}\), \(\omega_{j} > 0\) and \(\sum\nolimits_{j = 1}^{m} {\omega_{j} } = 1\).

\(Q = \left\{ {q_{1} ,q_{2} , \ldots ,q_{n} } \right\}\): the collection of the number of online reviews for the alternative product \(A_{i}\), where \(q_{i}\) means the number of online reviews about the alternative product \(A_{i}\), \(i = 1,2, \ldots ,n\).

\(D_{ik} = \left\{ {d_{ik}^{1} ,d_{ik}^{2} , \ldots ,d_{ik}^{m} } \right\}\): the online review collection of the alternative product \(A_{i}\), where \(d_{ik}^{j}\) represents the \(k\)-th online review on the features \(f_{j}\) in the \(i\)-th alternative product, \(i = 1,2, \ldots ,n\),\(j = 1,2, \ldots ,m\),\(k = 1,2, \ldots ,q_{i}\).

The problem is how to select alternative products \(A_{1} ,A_{2} , \ldots ,A_{n}\) based on online review \(D_{ik}\) and feature weight \(\omega_{j}\), \(i = 1,2, \ldots ,n\), \(j = 1,2, \ldots ,m\), \(k = 1,2, \ldots ,q_{i}\).

The flowchart of the product selection is shown in Fig. 1. The input information is the crawled online reviews of alternative products. The process includes two parts: sentiment orientation identification and product ranking based on the IF-TODIM method. In the first part, the Apriori algorithm is first used to identify the product features that customers focus on based on online reviews. The sentiment orientation and intensity of the sentiment words for the product features are identified by the lexicon-based sentiment analysis approach. The second part is to convert the sentiment orientation of the product features into an IFV and then use the IF-TODIM method to determine the final ranking results of the alternative products.

Fig. 1
figure 1

The flowchart of the product selection

Sentiment orientation identification of the online reviews

  • (1) Product feature extraction

A product feature extraction method based on online review data mining is introduced to extract the features of the alternative products that the consumers focus on from the online reviews. The process is described as follows.

First, the online review data is segmented, and the online review data after the segmentation is tagged. For the sake of accuracy and rationality, the ICTCLAS (Institute of Computing Technology, Chinese Lexical Analysis System, http://ictclas.nlpir.org/) tool is used for word segmentation of online review data. The lexical marking is for nouns, verbs, adjectives, or verbs with noun functions and proper nouns to improve the accuracy of the search.

Secondly, the association rule transaction file is created using the part-of-speech tagging, and the frequent itemset is searched based on the association rule Apriori algorithm. Here, the minimum support value is 1%, and at the same time, more than three frequent items are not considered.

The frequent itemset is pruned and corrected according to the neighboring rules and independent support and formed into a product feature set \(F^{TF}\).

Then, the common Chinese frequent item noun set \(F^{FF}\) of non-product features (such as some common product brands, colloquial zed nouns, and personal names) and the product feature set \(F^{SF}\) (containing single nouns) are constructed, and \(F^{TF}\) is filtered to form the final product feature set \(F\), i.e. \(F = F^{TF} - F^{FF} - F^{SF}\).

  • (2) Construct the positive and negative sentiment dictionaries of product features

Normally, different features have different positive or negative sentiment dictionaries. A word exhibits different sentiment orientations in the sentiment dictionaries of different features. For example, "high" is the negative sentiment word in the dictionary of the feature "price" and the positive sentiment word of the feature "pixel". Therefore, the positive and negative sentiment dictionary for each product feature should be constructed separately.

Firstly, according to the online review set after the part-of-speech tagging, the association rule object file for the feature \(f_{j}\) in the review is created. The frequent itemset \(F\) is searched based on the association rule Apriori algorithm to form the feature annotation set.

Assume that \(\overline{W}_{i}^{j}\) represents a sentiment word of the feature \(f_{j}\) of the alternative product \(A_{i}\), then \(\overline{W}^{j}\) means all of the sentiment words of the feature \(f_{j}\), \(\overline{W}_{i}^{j}\) and \(\overline{W}^{j}\) are defined as follows.

$$\begin{aligned} \overline{W}_{i}^{j}& = \overline{W}_{i1}^{j} \cup \overline{W}_{i2}^{j} \cup \ldots \cup \overline{W}_{{iq_{i} }}^{j} ,\\& \quad i = 1,2, \ldots ,n, j = 1,2, \ldots ,m \end{aligned}$$
(11)
$$ \overline{W}^{j} = \overline{W}_{1}^{j} \cup \overline{W}_{2}^{j} \cup \ldots \cup \overline{W}_{n}^{j} ,j = 1,2, \ldots ,m $$
(12)

In addition, let \(\overline{W}_{HowNet}^{ + } = \left\{ {\overline{W}_{1}^{HN + } ,\overline{W}_{2}^{HN + } , \ldots ,\overline{W}_{4566}^{HN + } } \right\}\) and \(\overline{W}_{HowNet}^{ - } = \left\{ {\overline{W}_{1}^{HN - } ,\overline{W}_{2}^{HN - } , \ldots ,\overline{W}_{4370}^{HN - } } \right\}\) represent the positive and negative sentiment word sets in the HowNet sentiment dictionary. \(\overline{W}_{HowNet}^{ + }\) and \(\overline{W}_{HowNet}^{ - }\) include 4566 positive sentiment words and 4370 negative sentiment words, respectively. Assume that \(\overline{W}_{j}^{ + }\) and \(\overline{W}_{j}^{ - }\) are the positive and negative sentiment dictionary of the feature \(f_{j}\), \(\overline{W}_{j}^{ + }\) and \(\overline{W}_{j}^{ - }\) are defined as follows.

$$ \overline{W}_{j}^{ + } = \overline{W}_{HowNet}^{ + } \cap \overline{W}^{j} ,j = 1,2, \ldots ,m $$
(13)
$$ \overline{W}_{j}^{ - } = \overline{W}_{HowNet}^{ - } \cap \overline{W}^{j} ,j = 1,2, \ldots ,m $$
(14)

To improve their accuracy, \(\overline{W}_{HowNet}^{ + }\) and \(\overline{W}_{HowNet}^{ - }\) need to make adjustments manually.

  • (3) Identify the sentiment orientations of product features

Each feature's positive, neutral or negative sentiment orientations of each review are calculated. The principle of identifying the sentence’s sentiment orientation is as follows [18]. If the number of positive sentiment words in the sentence is greater than that of the negative sentiment, the sentiment is considered positive. If the number of negative sentiment words in a sentence is greater than that of positive sentiment words, the sentence's sentiment orientation is considered negative. If there are equal positive and negative sentiment words or no sentiment words in the sentence, then the sentence is considered neutral in its sentiment orientation. If there is a negative word in the sentence, the sentiment orientation of the sentence is reversed. The rules are shown as follows.

For each sentiment word set \(\overline{W}_{ik}^{j}\) obtained by online reviews, \(\overline{W}_{ik}^{j + }\) and \(\overline{W}_{ik}^{j - }\) are the sets of positive and negative sentiment words, which are the intersections between \(\overline{W}_{ik}^{j}\) and \(\overline{W}_{i}^{j + }\) or \(\overline{W}_{i}^{j - }\). Let \(s_{ik}^{j} = \left( {\alpha_{ik}^{j} ,\beta_{ik}^{j} ,\gamma_{ik}^{j} } \right)\) express the sentiment orientation vector of the sentence \(D_{ik}^{j}\), where \(\alpha_{ik}^{j} ,\beta_{ik}^{j} ,\gamma_{ik}^{j} \in \left\{ {0,1} \right\}\) and \(\alpha_{ik}^{j} + \beta_{ik}^{j} + \gamma_{ik}^{j} = 0\begin{array}{*{20}c} {} \\ \end{array} {\text{or}}\begin{array}{*{20}c} {} \\ \end{array} 1\). If \(\overline{W}_{ik}^{j}\) is an empty set, then \(s_{ik}^{j} = \left( {0,0,0} \right)\). If the number of \(\overline{W}_{ik}^{j + }\) is greater than the number of \(\overline{W}_{ik}^{j - }\), then \(s_{ik}^{j} = \left( {1,0,0} \right)\). If the number of \(\overline{W}_{ik}^{j + }\) is less than the number of \(\overline{W}_{ik}^{j - }\), then \(s_{ik}^{j} = \left( {0,0,1} \right)\). If the number of \(\overline{W}_{ik}^{j + }\) is equal to the number of \(\overline{W}_{ik}^{j - }\) and \(\overline{W}_{ik}^{j}\) is not an empty set, then \(s_{ik}^{j} = \left( {0,1,0} \right)\). The sentiment orientations of the product features are calculated by the above rules.

Product ranking based on IF-TODIM method

  • (1) Transform the sentiment orientations of product features into IFVs

IFVs are a useful tool for representing the ambiguity and hesitation of products’ features. IFVs can simultaneously reflect the like, neutral, and unlike of the online review [29]. Based on the theory of IFSs, online reviews of alternative products' sentiment orientations can be expressed simply and completely by IFVs [30].

In addition, most online reviews now have a click-and-click feature that makes it easy to understand the usefulness of each review. Therefore, more important weights are assigned to more praises, which are more useful reviews. Let \(X_{ik}^{j}\) be the importance of each review, and \(X_{ik}^{j}\) is determined by the number of likes and calculated as follows.

$$\begin{aligned} x_{ik}^{j} &= e^{{\frac{{N_{ik}^{j} - \min \left( {N_{i} } \right)}}{{\max \left( {N_{i} } \right) - \min \left( {N_{i} } \right)}}}} ,i = 1,2, \ldots ,n,\\& \quad j = 1,2, \ldots ,m,k = 1,2, \ldots ,q_{i}\end{aligned} $$
(15)

where \(N_{ik}^{j}\) is the number of likes on the k-th review of the product Ai, \(N_{i}\) is the set of the number of likes of the product Ai.

Let \(q_{ij}^{pos}\), \(q_{ij}^{neu}\) and \(q_{ij}^{neg}\) be the frequency of online reviews of positive, neutral, and negative sentiment orientations that characterize the alternative product, and \(q_{ij}^{pos}\), \(q_{ij}^{neu}\) and \(q_{ij}^{neg}\) are defined as follows.

$$ q_{ij}^{pos} = \sum\limits_{k = 1}^{{q_{i} }} {x_{ik}^{j} \alpha_{ik}^{j} } ,i = 1,2, \ldots ,n,j = 1,2, \ldots ,m $$
(16)
$$ q_{ij}^{neu} = \sum\limits_{k = 1}^{{q_{i} }} {x_{ik}^{j} \beta_{ik}^{j} } ,i = 1,2, \ldots ,n,j = 1,2, \ldots ,m $$
(17)
$$ q_{ij}^{neg} = \sum\limits_{k = 1}^{{q_{i} }} {x_{ik}^{j} \gamma_{ik}^{j} } ,i = 1,2, \ldots ,n,j = 1,2, \ldots ,m $$
(18)

Let \(q_{ij}^{pos}\), \(q_{ij}^{neu}\) and \(q_{ij}^{neg}\) represent the percentage of the alternative product features for positive, neutral, and negative sentiment orientations. The calculation formula is defined as follows

$$\begin{aligned} p_{ij}^{pos}& = \frac{{q_{ij}^{pos} }}{{q_{ij}^{pos} + q_{ij}^{neu} + q_{ij}^{neg} }},i = 1,2, \ldots ,n,\\& \quad j = 1,2, \ldots ,m \end{aligned}$$
(19)
$$\begin{aligned} p_{ij}^{neu} &= \frac{{q_{ij}^{neu} }}{{q_{ij}^{pos} + q_{ij}^{neu} + q_{ij}^{neg} }},i = 1,2, \ldots ,n,\\& \quad j = 1,2, \ldots ,m \end{aligned}$$
(20)
$$\begin{aligned} p_{ij}^{neg} &= \frac{{q_{ij}^{neg} }}{{q_{ij}^{pos} + q_{ij}^{neu} + q_{ij}^{neg} }},i = 1,2, \ldots ,n,\\& \quad j = 1,2, \ldots ,m \end{aligned}$$
(21)

Obviously, \(p_{ij}^{pos} + p_{ij}^{neu} + p_{ij}^{neg} = 1\),\(p_{ij}^{pos} ,p_{ij}^{neu} ,p_{ij}^{neg} \ge 0\).

Thus, based on the interpretation of the IFV [31], an IFV \(a_{ij} = \left( {\mu_{ij} ,v_{ij} ,\pi_{ij} } \right)\) can represent the percentages of positive, neutral, and negative sentiment orientations of product features, where \(\mu_{ij} = p_{ij}^{pos}\), \(\nu_{ij} = p_{ij}^{neg}\) and \(\pi_{ij} = p_{ij}^{neu}\).

  • (2) IF-TODIM method for ranking products

Step 1: calculate the feature values \(\left( {\mu_{ij} ,\nu_{ij} } \right)\) in each alternative product and construct the decision matrix \(A = \left( {a_{ij} } \right)_{m \times n}\) of product selection.

$$\begin{aligned} A& = \left( {\begin{array}{*{20}c} {a_{11} } & {a_{12} } & \cdots & {a_{1n} } \\ {a_{21} } & {a_{22} } & \cdots & {a_{2n} } \\ \cdots & \cdots & \cdots & \cdots \\ {a_{m1} } & {a_{m2} } & \cdots & {a_{mn} } \\ \end{array} } \right)\\& = \left[ {\begin{array}{*{20}c} {\left( {\mu_{11} ,\nu_{11} } \right)} & {\left( {\mu_{12} ,\nu_{12} } \right)} & \cdots & {\left( {\mu_{1n} ,\nu_{1n} } \right)} \\ {\left( {\mu_{21} ,\nu_{21} } \right)} & {\left( {\mu_{22} ,\nu_{22} } \right)} & \cdots & {\left( {\mu_{2n} ,\nu_{2n} } \right)} \\ \cdots & \cdots & \cdots & \cdots \\ {\left( {\mu_{m1} ,\nu_{m1} } \right)} & {\left( {\mu_{m2} ,\nu_{m2} } \right)} & \cdots & {\left( {\mu_{mn} ,\nu_{mn} } \right)} \\ \end{array} } \right] \end{aligned}$$
(22)

where \(a_{ij}\) represents the value of the criteria \(f_{j}\) in the alternative product \(A_{i}\), all the values of \(a_{ij}\) are represented by IFVs.

Step 2: compare the feature values of each two alternative products by Eqs. (8)–(10) and construct the advantage-disadvantage matrix, where "A" or "D" means that \(A_{i}\) is larger or smaller than \(A_{k}\).

Step 3: calculate the weight \(w_{j}\) of the feature \(f_{j}\) as follows.

Firstly, calculate the entropy \(E_{ij}\) of each product feature by Eqs. (4)–(7), and normalize the entropy by the following equation:

$$\begin{aligned} H &= \left( {h_{ij} } \right)_{m \times n} = \left( {\frac{{E_{ij} }}{{\max \left( {E_{ij} } \right)}}} \right)_{m \times n} ,\\ & \quad i = 1,2, \cdots ,m;j = 1,2, \cdots ,n \end{aligned}$$
(23)

Then, the entropy weights of each product feature are calculated as follows.

$$ w_{j} = \frac{1}{{n - \sum\nolimits_{j = 1}^{n} {a_{j} } }} \times \left( {1 - a_{j} } \right) $$
(24)

where \(a_{j} = \sum\nolimits_{i = 1}^{m} {h_{ij} }\).

Step 4: the feature with the largest weight value is regarded as the reference feature \(f_{R}\). The relative weight value \(w_{jR}\) of each feature \(f_{j}\) over the reference feature \(f_{R}\) is calculated by Eq. (25).

$$ w_{jR} = \frac{{w_{j} }}{{w_{R} }} $$
(25)

Step 5: the dominance degree \(\vartheta \left( {A_{i} ,A_{e} } \right)\) of the alternative product \(A_{i}\) over \(A_{e}\) is calculated by Eq. (26).

$$ \vartheta \left( {A_{i} ,A_{e} } \right) = \sum\limits_{j = 1}^{n} {\phi_{j} \left( {A_{i} ,A_{e} } \right)} $$
(26)

where

$$ \begin{aligned}&\phi_{j} \left( {A_{i} ,A_{e} } \right) \\&\quad = \left\{ {\begin{array}{*{20}c} {\sqrt {{{w_{jR} d\left( {a_{ij} ,a_{ej} } \right)} \mathord{\left/ {\vphantom {{w_{jR} d\left( {a_{ij} ,a_{ej} } \right)} {\sum\limits_{j = 1}^{n} {w_{jR} } }}} \right. \kern-\nulldelimiterspace} {\sum\limits_{j = 1}^{n} {w_{jR} } }}} ,\begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} if\begin{array}{*{20}c} {} \\ \end{array} a_{ij} \succ a_{ej} } \\ {0,\begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {\begin{array}{*{20}c} {} \\ \end{array} } \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} \begin{array}{*{20}c} {} \\ \end{array} if\begin{array}{*{20}c} {} \\ \end{array} a_{ij} \sim a_{ej} } \\ { - \frac{1}{\theta }\sqrt {{{\left( {\sum\limits_{j = 1}^{n} {w_{jR} } } \right)d\left( {a_{ij} ,a_{ej} } \right)} \mathord{\left/ {\vphantom {{\left( {\sum\limits_{j = 1}^{n} {w_{jR} } } \right)d\left( {a_{ij} ,a_{ej} } \right)} {w_{jR} }}} \right. \kern-\nulldelimiterspace} {w_{jR} }}} ,\begin{array}{*{20}c} {} \\ \end{array} if\begin{array}{*{20}c} {} \\ \end{array} a_{ij} \prec a_{ej} } \\ \end{array} } \right. \end{aligned}$$

where \(d\left( {a_{ij} ,a_{ej} } \right)\) is calculated by Eqs. (1)–(3).

Step 6: the global prospect value \(\delta \left( {A_{i} } \right)\) of each alternative product \(A_{i}\) is calculated by Eq. (27).

$$ \delta \left( {A_{i} } \right) = \frac{{\sum\nolimits_{e = 1}^{m} {\vartheta \left( {A_{i} ,A_{e} } \right)} - \mathop {\min }\nolimits_{i} \left\{ {\sum\nolimits_{e = 1}^{m} {\vartheta \left( {A_{i} ,A_{e} } \right)} } \right\}}}{{\mathop {\max }\nolimits_{i} \left\{ {\sum\limits_{e = 1}^{m} {\vartheta \left( {A_{i} ,A_{e} } \right)} } \right\} - \mathop {\min }\limits_{i} \left\{ {\sum\nolimits_{e = 1}^{m} {\vartheta \left( {A_{i} ,A_{e} } \right)} } \right\}}} $$
(27)

Step 7: rank the alternative products according to the global prospect values \(\delta \left( {A_{i} } \right)\). The larger the value of \(\delta \left( {A_{i} } \right)\) is, the better the alternative product \(A_{i}\) is.

Case study

Decision-making process

Online reviews of five mobile phones from Jingdong Mall (https://www.jd.com/) are crawled. The five alternative mobile phones are iPhone X, Huawei P10, OPPO R11S, Mito T8, and VIVO X9. The crawler software Bazhuayu (http://www.bazhuayu.com/) is used to crawl 5000 reviews (1000 reviews per phone). After processing, 2000 reviews (400 reviews for each phone) are extracted from the review data set obtained. The mobile phone features extracted by the Apriori algorithm that customers focus on are F = {Appearance, Screen, Photo, Battery, Price, System}. The positive sentiment dictionary \(\overline{W}_{j}^{ + }\) and negative sentiment dictionary \(\overline{W}_{j}^{ - }\) of mobile phone feature are constructed by Eqs. (11)–(14) in Table 1. “价格/n 实惠/a” (Price/n is/v affordable/a) is taken as an example to express the process of the sentiment orientation. \(\overline{W}_{5}^{ + } \cap \overline{W}_{51}^{1} \ne \emptyset\) and \(s_{51}^{1} = (1,0,0)\). Thus, the sentiment orientation is positive.

Table 1 Partial display of mobile phone feature sentiment dictionaries \(\overline{W}_{j}^{ + }\) and \(\overline{W}_{j}^{ - }\)

The positive, neutral, and negative sentiment orientation numbers \(q_{ij}^{pos}\), \(q_{ij}^{neu}\) and \(q_{ij}^{neg}\) of alternative mobile phones are calculated by Eqs. (15)–(18) and shown in Table 2.

Table 2 The sentiment orientation numbers \(q_{ij}^{pos}\), \(q_{ij}^{neu}\) and \(q_{ij}^{neg}\) of each feature of alternative mobile phones

The steps of ranking mobile phones by the IF-TODIM method are shown as follows.

Step 1: calculate the feature values \(\left( {\mu_{ij} ,\nu_{ij} } \right)\) of each alternative mobile phone by Eqs. (19)–(21) and construct the decision matrix \(A = \left( {a_{ij} } \right)_{m \times n}\). For example, the appearance value of IPONE X (A1) is [0.757, 0.187], where

$$ \mu_{11} = p_{11}^{pos} = \frac{{q_{11}^{pos} }}{{q_{11}^{pos} + q_{11}^{neu} + q_{11}^{neg} }} = \frac{557.0}{{557.0 + 41.2 + 137.6}} = 0.757, $$
$$ \nu_{11} = p_{11}^{neg} = \frac{{q_{11}^{neg} }}{{q_{11}^{pos} + q_{11}^{neu} + q_{11}^{neg} }} = \frac{137.6}{{557.0 + 41.2 + 137.6}} = 0.187. $$

The intuitionistic fuzzy decision matrix of mobile phone selection is shown in Table 3.

Table 3 Intuitionistic fuzzy decision matrix of mobile phone selection

Step 2: compare the feature values of each two alternative products by Eqs. (8)–(10) and construct the advantage-disadvantage matrix. For example, the score measures of IPHONE X (A1) and HUAWEI P10 (A2) under the attribute appearance (f1) are

$$ R_{h} \left( {a_{11} } \right) = d_{h} \left( {a_{11} ,\tilde{0}} \right) = \frac{1}{2}\left( {1 + \mu_{{a_{11} }} + \pi_{{a_{11} }} - \nu_{{a_{11} }} } \right) = \frac{1}{2}\left( {1 + 0.757 + 0.056 - 0.187} \right) = 0.813. $$
$$ R_{h} \left( {a_{21} } \right) = d_{h} \left( {a_{21} ,\tilde{0}} \right) = \frac{1}{2}\left( {1 + \mu_{{a_{21} }} + \pi_{{a_{21} }} - \nu_{{a_{21} }} } \right) = \frac{1}{2}\left( {1 + 0.964 + 0.024 - 0.012} \right) = 0.988. $$

Therefore, \(R_{h} \left( {a_{11} } \right) \prec R_{h} \left( {a_{21} } \right)\). The score measure of A1 under the attribute appearance (f1) is smaller than A2, represented by “D”. The advantage-disadvantage matrix is shown in Table 4.

Table 4 Advantage-disadvantage matrix under each feature fj between two alternative mobile phones

Step 3: calculate the weight \(w_{j}\) of the feature \(f_{j}\).

Calculate the entropy \(e_{ij}\) of each mobile phone feature by Eq. (4) in Definition 2. For example, the entropy of \(a_{11}\) is \(e_{11} = 1 - \left( {\mu_{A} \left( {x_{i} } \right) + \nu_{A} \left( {x_{i} } \right)} \right) = 1 - (0.757 + 0.187) = 0.056\). The entropy matrix \(E\) is as follows.

$$ E = \left( {\begin{array}{*{20}c} {0.056} & {0.017} & {0.050} & {0.046} & {0.014} & {0.019} \\ {0.024} & {0.030} & {0.028} & {0.049} & {0.020} & {0.065} \\ {0.005} & {0.018} & {0.008} & {0.027} & {0.031} & {0.006} \\ {0.005} & {0.063} & {0.026} & {0.030} & {0.019} & {0.051} \\ {0.006} & {0.021} & {0.009} & {0.086} & {0.011} & {0.032} \\ \end{array} } \right) $$

Then, the normalized entropy matrix is obtained by Eq. (23) as follows.

$$ H = \left( {h_{ij} } \right)_{m \times n} = \left( {\begin{array}{*{20}c} {1.000} & {0.304} & {0.893} & {0.821} & {0.250} & {0.339} \\ {0.369} & {0.462} & {0.431} & {0.754} & {0.308} & {1.000} \\ {0.161} & {0.581} & {0.258} & {0.871} & {1.000} & {0.194} \\ {0.079} & {1.000} & {0.413} & {0.476} & {0.302} & {0.810} \\ {0.070} & {0.244} & {0.105} & {1.000} & {0.128} & {0.372} \\ \end{array} } \right) $$

Finally, the entropy weight can be calculated by Eq. (24) as \(W = \left( {w_{j} } \right)_{n \times 1} = \left( {0.076,0.177,0.122,0.325,0.110,0.190} \right)^{T}\).

Step 4: the feature with the largest weight value is regarded as the reference feature \(f_{R}\). The relative weight value \(w_{jR}\) of each feature \(f_{j}\) over the reference feature \(f_{R}\) is calculated by Eq. (25). The relative weight values are shown in Table 5.

Table 5 The relative weight value \(w_{jR}\)

Step 5: the dominance \(\vartheta \left( {A_{i} ,A_{e} } \right)\) of the alternative mobile phone \(A_{i}\) over \(A_{e}\) is calculated by Eq. (26).

Here, assume that \(\theta = 1\) [36], then the gain and losses \(\phi_{j} \left( {A_{i} ,A_{e} } \right)\) are calculated and shown in Table 6. For example, \(\phi_{1} \left( {A_{1} ,A_{2} } \right) = - \frac{1}{\theta }\sqrt {{{\left( {\sum\nolimits_{j = 1}^{n} {w_{jR} } } \right)d\left( {a_{ij} - a_{ej} } \right)} \mathord{\left/ {\vphantom {{\left( {\sum\nolimits_{j = 1}^{n} {w_{jR} } } \right)d\left( {a_{ij} - a_{ej} } \right)} {w_{jR} }}} \right. \kern-\nulldelimiterspace} {w_{jR} }}} = - \frac{1}{1}\sqrt {{{3.077 \times 0.1255} \mathord{\left/ {\vphantom {{3.077 \times 0.1255} {0.233}}} \right. \kern-\nulldelimiterspace} {0.233}}} = - 1.340\).

Table 6 Gain and loss matrix under each feature fj between two alternative mobile phones

Then, the dominance degree of mobile phone Ai over mobile phone Ae is calculated by Eq. (26). For example, the dominance degree of mobile phone A1 over A2 is \(\vartheta \left( {A_{1} ,A_{2} } \right) = \sum\limits_{j = 1}^{6} {\phi_{j} \left( {A_{1} ,A_{2} } \right)} = - 1.340 - 0.499 - 0.857 - 0.480 - 1.691 - 0.590 = - 5.457\). The dominance degree matrix is shown in Table 7.

Table 7 Dominance degree of mobile phone Ai over mobile phone Ae

Step 6: the global prospect value \(\delta \left( {A_{i} } \right)\) of each alternative mobile phone \(A_{i}\) is calculated by Eq. (27). The global prospect values are \(\delta \left( {A_{1} } \right) = \frac{{\sum\nolimits_{e = 1}^{m} {\vartheta \left( {A_{1} ,A_{e} } \right)} - \min \left\{ {\sum\nolimits_{e = 1}^{m} {\vartheta \left( {A_{1} ,A_{e} } \right)} } \right\}}}{{\max \left\{ {\sum\nolimits_{e = 1}^{m} {\vartheta \left( {A_{1} ,A_{e} } \right)} } \right\} - \min \left\{ {\sum\nolimits_{e = 1}^{m} {\vartheta \left( {A_{1} ,A_{e} } \right)} } \right\}}} = \frac{ - 21.059 - ( - 21.059)}{{1.408 - ( - 21.059)}} = 0\), \(\delta \left( {A_{2} } \right) = 0.785\), \(\delta \left( {A_{3} } \right) = 0.913\), \(\delta \left( {A_{4} } \right) = 0.220\) and \(\delta \left( {A_{5} } \right) = 1\).

Step 7: rank the alternative mobile phones according to the global prospect values \(\delta \left( {A_{i} } \right)\), the ranking result is \(\delta \left( {A_{5} } \right) > \delta \left( {A_{3} } \right) > \delta \left( {A_{2} } \right) > \delta \left( {A_{4} } \right) > \delta \left( {A_{1} } \right)\).

The alternative mobile phones are sorted as VIVO X9 > OPPO R11S > Huawei P10 > Mito T8 > IPHONE X. In the case of priority price, system performance, and appearance, the optimal choice is VIVO X9. According to the online reviews of VIVO X9, most of the online reviews indicate that the system is fluent and the mobile phone is cost-effective. Most of the online reviews of IPHONE X are too expensive, resulting in a lower ranking.

Analysis of the effect of the parameter

The product selection based on online reviews involves the attenuation coefficient \(\theta\). The attenuation coefficient \(\theta\) affecting the ranking result is analyzed by taking different values. When the attenuation coefficient \(\theta = 1,2,3,4\), the product ranking result calculated by the IF-TODIM method under different attenuation coefficients are shown in Table 8. From the result, the A5 is always the best choice under different attenuation coefficients. Therefore, different attenuation coefficient values have no effect on the product ranking results.

Table 8 Product ranking results under different attenuation coefficients

Comparison analysis

The developed IF-TODIM method is compared with the IF-TOPSIS [22], IF-VIKOR [40], and IF-PROMETHEE [9] methods to illustrate the effectiveness.

  • (1) Comparison with IF-TOPSIS method

The main idea of the IF-TOPSIS method for ranking products is to normalize the original data matrix and determine the distance between the alternative products and the optimal or worst solution based on each attribute index's weight [20]. The relative closeness of each alternative product to the optimal solution is used as the evaluating basis. The steps of the IF-TOPSIS method are as follows.

Step 1: the mobile phone’s positive ideal solution (PIS) A+ and negative ideal solution (NIS) A are defined as follows.

$$ A^{ + } = \left\{ {a_{j + } ,\max_{i = 1}^{m} \left\langle {a_{ij} } \right\rangle ;j = 1,2, \ldots ,n} \right\} $$
(28)
$$ A^{ - } = \left\{ {a_{j - } ,\min_{i = 1}^{m} \left\langle {a_{ij} } \right\rangle ;j = 1,2, \ldots ,n} \right\} $$
(29)

Then, the PIS and NIS of each mobile phone feature are shown in Table 9.

Table 9 The PIS and NIS of each mobile phone feature

Step 2: Calculate the weighted distance from each alternative mobile phone Ai to the PIS A+ and the NIS A.

$$ D_{i}^{ + } = \sum\limits_{j = 1}^{n} {\omega_{j} d\left( {a_{ij} ,a_{j + } } \right)} $$
(30)
$$ D_{i}^{ - } = \sum\limits_{j = 1}^{n} {\omega_{j} d\left( {a_{ij} ,a_{j - } } \right)} $$
(31)

Step 3: Calculate the relative closeness (CIi) of each alternative mobile phone Ai as follows.

$$ CI_{i} = \frac{{D_{i}^{ - } }}{{D_{i}^{ + } + D_{i}^{ - } }},i = 1,2, \ldots ,m $$
(32)

Here, the weighted Hamming distance between the alternative mobile phone Ai and the PIS A+ or the NIS A represented by the IFSs is calculated. The ranking result calculated by the IF-TOPSIS method is shown in Table 10. The product ranking result is \(A_{3} > A_{5} > A_{2} > A_{1} > A_{4}\). Namely, the best choice to buy the alternative mobile phone based on online reviews is OPPO R11S (A3).

Table 10 The ranking result calculated by the IF-TOPSIS method
  • (2) Comparison with IF-VIKOR method

The IF-VIKOR method is developed by Yang et al. [40] to select the best compromise hotels.

Step 1: the PISs and NISs of mobile phones are shown in Table 9.

Step 2: calculate the \(S_{i}\) and \(R_{i}\) of alternative mobile phone Ai.

$$ S_{1} = 0.375,S_{2} = 0.154,S_{3} = 0.077,S_{4} = 0.420,S_{5} = 0.060. $$
$$ R_{1} = 1,R_{2} = 0.494,R_{3} = 0.704,R_{4} = 1,R_{5} = 0.366. $$

Step 3: assume that \(v = 0.5\), and calculate the \(Q_{i}\) of alternative mobile phone Ai.

$$ Q_{1} = 0.062,Q_{2} = 0.770,Q_{3} = 0.710,Q_{4} = 0,Q_{5} = 1. $$

Step 4: obtain the ranking result of alternative mobile phones.

The ranking result of alternative mobile phones is obtained as \(A_{5} > A_{2} > A_{3} > A_{1} > A_{4}\).

  • (3) Comparison with IF-PROMETHEE method

The IF-PROMETHEE method [23] is developed to support the consumers’ purchase decisions.

Step 1: the priority index of Ai over Aj is shown in Table 7.

Step 2: the entering flow \(\varphi^{ + } \left( {A_{i} } \right)\) and exiting flow \(\varphi^{ - } \left( {A_{i} } \right)\) are calculated as

$$ \varphi^{ + } \left( {A_{1} } \right) = - 5.265,\varphi^{ + } \left( {A_{2} } \right) = - 0.856,\varphi^{ + } \left( {A_{3} } \right) = - 0.137,\varphi^{ + } \left( {A_{4} } \right) = - 4.031,\varphi^{ + } \left( {A_{5} } \right) = 0.352 $$
$$ \varphi^{ - } \left( {A_{1} } \right) = 0.758,\varphi^{ - } \left( {A_{2} } \right) = - 2.353,\varphi^{ - } \left( {A_{3} } \right) = - 3.535,\varphi^{ - } \left( {A_{4} } \right) = - 0.470,\varphi^{ - } \left( {A_{5} } \right) = - 4.337 $$

Step 3: the comprehensive outranking indices \(\varphi \left( {A_{i} } \right)\) are

$$ \varphi \left( {A_{1} } \right) = - 6.023,\varphi \left( {A_{2} } \right) = 1.497,\varphi \left( {A_{3} } \right) = 3.399,\varphi \left( {A_{4} } \right) = - 3.561,\varphi \left( {A_{5} } \right) = 4.689 $$

Step 4: the ranking result of the alternative mobile phones is \(A_{5} > A_{3} > A_{2} > A_{4} > A_{1}\).

  • (4) Discussion

To illustrate the effectiveness of ranking products based on the IF-TODIM method and online reviews, the product ranking results of the IF-TODIM method and the three other methods are shown in Fig. 2. The results show that the product ranking result by the IF-TODIM method is the same as the IF-PROMETHEE method and different from those of the two other methods. The best choice to buy the mobile phone obtained by the IF-TODIM, IF-VIKOR, and IF-PROMETHEE methods is A5 (VIVO X9), while that of the IF-TOPSIS method is A3 (OPPO R11S). A1 (IPHONE X) and A4 (Mito T8) are always the worst two choices. The main reason for the different results is that the IF-TODIM method considers the gain and loss of each mobile phone feature and prospect value in the product ranking process. VIVO X9 has some advantages in the attribute of price, and other features reappraise from all the features. The ranking result by the IF-TODIM method is closer to the actual situation. The customers are fully rational in purchasing mobile phones under the IF-TOPSIS and IF-VOKOR method. Customers are non-fully rational in the purchase decision process. The IF-TOPSIS and IF-VOKOR method is not reasonable for the ranking product. Therefore, the IF-TODIM method based on online reviews is more reasonable than the IF-TOPSIS and IF-VIKOR method.

Fig. 2
figure 2

Product ranking results by the developed IF-TODIM method and other methods

Conclusion

In this paper, a new analytical method for ranking products is presented. The main idea of ranking product method through online reviews and IF-TODIM is as follows. Firstly, the Apriori algorithm is used to identify the product features based on online reviews. Then the sentiment orientation and intensity of the sentiment words for the product features are identified by the lexicon-based sentiment analysis approach. Next, the sentiment orientation of the product features is converted into an IFV, and then the IF-TODIM method is used to determine the ranking results of the alternative products.

The proposed method fully considers consumers' subjective needs and different sentiment orientations (positive, neutral, and negative) for each product feature. The IFVs are used to fully reflect the different sentiment orientations of online reviews, which is more elaborate than previous studies and makes up for the lack of consideration of the neural sentiment orientation. In addition, the gain and loss of each mobile phone feature in the product ranking process are also considered. The obtained result is closer to the actual purchase needs of consumers. In general, the degree of membership, non-membership, and hesitation in IFV provides an effective way to solve the problem of product ranking. The proposed method has operability and practical application value and provides a new decision-making technology to solve the problem of product purchase decision-making using online review data in the current era of big data.

The developed method provides a convenient tool to give recommendations for purchasing products, and the decision support system needs to improve. In addition, the emojis and photos in the online review data are neglected during the data pre-processing process. In future work, it is necessary to study the product ranking method combing with emojis and photos.