# Multimodal Blog Sentiment Classification Based on MD-HFCE

Authors: Baozhen Yang; Xuedong Tian
Journal: Security and Communication Networks
 (2021)

---

## Abstract

In recent years, the rapid growth of multimodal information has become an important factor affecting the results of sentiment analysis. However, a few state-of-the-art works take into account the multimodal features and sentiment fuzziness. To this end, a fuzzy method is proposed for assessing sentiment intensity in this paper. Firstly, based on the visual-text conversion network (CNN-LSTM), as well as sentiment optimization through SentiBank and SentiBridge, the visual features are normalized to the text features. At the same time, the emotional features of the extracted audio will be predicted by the random forest algorithm. Subsequently, the sentiment characteristics are processed by dual hesitant fuzzification to form positive and negative sentiment intensity factors. Finally, a classification method, that is, MD-HFCE (multilayer dual hesitant fuzzy comprehensive evaluation), fuzzy comprehensive evaluation method improved by Mamdani fuzzy reasoning, is proposed to realize the multifeature fuzzy sentiment classification based on the comprehensive sentiment dictionary. The classification results are applicable to the topics of sentiment monitoring. The experimental results show that the proposed algorithm can effectively realize feature integration and improve the average sentiment classification accuracy of multimodal blogs to 82.2%.


---

## Body

## 1. Introduction

With the advent of the information age, enormous data is generated by users on the Internet in real time. It is important to utilize the data for sentiment analysis to achieve public opinion monitoring, stock market prediction, and consumption preference analysis [1]. Due to the diversity of social information, multimodal sentiment analysis has attracted great attention from researchers. To this end, various methods are investigated in this research field.The traditional dictionary method ignores a lot of multimodal information containing emotions. Although the extended dictionaries can solve the problem to some extent, the performance improvement is still limited. The sentiment analysis approaches based on the emerging machine learning and neural network can effectively utilize the multimodal information. However, they fail to consider the sentiment fuzziness and may lead to long runtime due to processing huge data of images and videos.To solve these problems, the multilayer dual hesitant fuzzy comprehensive evaluation (MD-HFCE) method is proposed in this paper. It is mainly based on the improved fuzzy comprehensive evaluation model of Mamdani fuzzy reasoning. Moreover, the feature transformation model in the convolutional neural network and long short-term memory (CNN-LSTM) neural network is utilized. The main contributions of this paper are summarized as follows:(1)
The dual hesitant fuzzy set is used to fuzzify the sentiment intensity, which considers both positive and negative sentiment factors at the same time.(2)
Video frames are filtered following a two-step scheme of image selection. The visual features are normalized by the text features based on the visual-text conversion network model and sentiment knowledge graph.(3)
The MD-HFCE method is proposed for sentiment analysis according to the fuzzy sentiment intensity.The rest of this paper is organized as follows: in Section2, we briefly introduce previous work on recent sentiment analysis. In Section 3, we describe the overall process of the proposed method, and then, the experimental results are given in Section 4. Finally, we conclude the study in Section 5.


## 2. Related Work

At present, the main approaches of sentiment analysis can be divided into four categories: sentiment dictionary, machine learning, deep learning, and hybrid methods.The most common methods of sentiment analysis are to build extended dictionaries [2, 3]. The concept of sentiment is considered based on the dictionary, and sentiment analysis is realized through sentiment embedding [4]. With the automatic construction of the domain dictionary, the context is considered, and thus the performance of the basic dictionary can be improved [5].The work in [6–10] studied machine learning based sentiment analysis. Support Vector Machine (SVM) is used to achieve the sentiment analysis of images by combining the SentiBank which is formed using adjective-noun pairs [6]. Thelwall et al. [7] considered both positive and negative sentiment and proposed the SentiStrength algorithm to reduce affective disruption. In [8], the naive Bayesian network was established for sentiment evolution experiments. Yuan et al. [9] introduced the Sentribute algorithm for image sentiment classification, which constructs a sentiment prediction framework based on the image features. Chen et al. [10] expanded the review text using a knowledge map to improve the accuracy of sentiment analysis on online travel review texts.CNN can effectively integrate multimodal information [11, 12], which improves the sentiment analysis of the long text by increasing the convolutional layers [13]. In addition, the LSTM network pays attention to the semantic environment where the sentiment words are located [14]. As a result, the combination of CNN and LSTM network can improve the classification accuracy by integrating features with time factors [15]. The neural network model combined with an extended dictionary presents better performance than the approaches based on either the sentiment dictionary or the neural network alone [16]. Luo proposed to combine the neural network with Latent Dirichlet Allocation (LDA) model for network text sentiment classification in [17]. Gu et al. [18] analyzed the text sentiment of commodity evaluation, combining the neural network model with the semantic rules, context, and other factors. The improved artificial neural network (ANN) also has great advantages in research such as prediction [19].There are also many other methods of extracting terms for the specific sentiment classification [20]. Sheik et al. [21] proposed the sentinel method to establish the sentiment circle through the Cartesian coordinate system for the sentiment classification of sentences. Alzubi et al. [22] presented a Collaborative Adversarial Network (CAN) model for paraphrase identification. Bel’tyukov et al. [23] utilized logical formulas and logical reasoning to achieve emotional analysis. By fuzziness of sentiment words, Phan et al. [24] obtained the fuzzy embedding feature and effectively improved the F1 value of Twitter sentiment analysis. Vashishtha et al. [25] defuzzified the output to achieve sentiment analysis, based on the sentiment intensity fuzzification and fuzzy inference rules.


## 3. Materials and Method

### 3.1. Establishment of Exclusive Fuzzy Dictionary for Microblog

The comprehensive sentiment dictionary consists of seven separate dictionaries, among which the fuzzy dictionary is specifically established for microblogs and other dictionaries have general applicability. The crawled microblog text data is divided into two parts. One is for establishing the exclusive fuzzy dictionary while the other is for data testing. A total of 45,344 items are used to establish the fuzzy dictionary. The statistics for the data are detailed in Figure1. The positive rate, the neutral rate, and the negative rate are 27%, 29%, and 44%, respectively, which strikes a balance on different emotions.Figure 1
The statistics of the crawled microblog text data.The crawled data is preprocessed with word segmentation, of which results are used as the input of the TextRank algorithm. The TextRank is a graph-based ranking algorithm. It constructs the network according to the adjacent relationship among words and iteratively calculates the ranking score (i.e., importance) of each node (i.e., word) [26]. The importance of the same word in a post is accumulated. The fuzzy dictionary is finally formed by removing the repetitive words. Table 1 details the pseudocode of the algorithm, where w represents the importance of a word and NUM denotes the total number of the posts.Table 1
The algorithm for forming a fuzzy exclusive dictionary.
Input: Blog textTOutput: Fuzzy sentiment dictionary WProcess:(1)  IF t in T [i]:(2)   t_new [i] = jieba (t)(3)  END if(4)  FOR word in t_new [i]:(5)    wi = TextRank (t_new [i])(6)  IF word [i] = word [j] and word [i], word [j] both in t_new [i]:(7)    k [i] = wi + wj(8)  END if(9)  IF j ≤ 5000:(10)   FW = k [j] in sort (k [i])(11)  END IF(12)  IF word in FW:(13)   pos = num (word in positive)/NUM(14)   neg = num (word in negative)/NUM(15)   other = 1-pos-neg(16)  END if(17)  Remove the common and incorrect words from FW to form a final fuzzy dictionary W with 593 words, as shown in Table 2(18)  Print WTable 2
The fuzzy dictionary.
ExamplesPositive degreeNegative degreeUncertaintyImportanceHappy0.6046720.2255170.16981151.05354Joyful0.6858510.1117510.20239847.92227Unwell0.0802260.5254240.394356.822836……………Care0.500.50.034836Tired0100.031808Boredom0.0714290.50.4285710.027837


### 3.2. Feature Extraction and Processing of Multimodal Data

#### 3.2.1. Feature Extraction of Blog Images

Based on the intermediate features of images, this paper uses the visual-to-text conversion model proposed by Google in 2015 to extract image features in the CNN encoder. The extracted features are input into the LSTM decoder to obtain the text description feature of the image [27]. To adapt to the sentiment classification, the text sentiment is expanded by two sentiment knowledge maps, namely, SentiBank and SentiBridge [28], as shown in Figure 2. In addition, before the feature extraction of the image description, the text features and face features contained in the image are extracted first. The related techniques for extracting the image matching and the facial expression have been studied well. In this paper, the API interface is provided by Baidu to realize the extraction of two image features.Figure 2
The visual-text feature transformation model for blog images.


#### 3.2.2. Video Features Extraction

Video features consist of image and audio features. The image feature extraction in the video can follow the method discussed in Section3.2.1. However, no matter how many seconds the video lasts and how many frames the video has, it can capture a huge number of still images from videos, and most of the obtained images are repetitive with each other. As a result, we filter the captured images with two steps before the image feature extraction starts.Firstly, a YOLOv3 model is used to filter images containing similar objects. The YOLOv3 model utilizes Darknet53 as the main network. It can identify the subjects and the number of objects in images, especially the small and medium objects [29]. After the images are selected by the YOLOv3 model, the differences among the rest of the images have little effect on the sentiment classification results. To this end, the second round of image selection is required. The Scale Invariant Feature Transform (SIFT) algorithm is adopted to detect the key points of the images, and the local similarity among the images is subsequently calculated [30]. The two-step image selection can greatly reduce the number of images for feature extraction, and thus the efficiency of image processing is improved.For the audio feature extraction, the Mel-frequency cepstral coefficient (MFCC) is regarded as the most representative feature in literature [31]. In addition to the MFCC, another two audio features are considered in this paper: zero-crossing rate and spectral centroid. Specifically, the zero-crossing rate represents the number of zero-crossings in the signal spectrum, while the spectrum centroid denotes the texture of the audio. The two features can assist MFCC features with distinguishing the sentiment of audio. A 22-dimensional vector is introduced to represent the three considered audio features, by which an optimal random forest model is trained for the sentiment classification of video audio.


### 3.3. The Ambiguity of the Sentiment Intensity

In this paper, fuzzy inference rules are used to fuzzify the sentiment intensity. Dual hesitant fuzzy is introduced for the sentiment intensity, and general fuzzy is considered as the output of the reasoning model.


#### 3.3.1. Dual Hesitant Fuzzy Sets

Definition 1.
LetX be a fixed set; then, a dual hesitant fuzzy set (DHF) D on X is described as [32](1)D=x,hx,gx|x∈X,in which hx and gx are two sets of some values in [0, 1], denoting the possible membership degrees and nonmembership degrees of the element x ∈ X to the set D, respectively, with the conditions: 0 ≤ γ, η ≤ 1, 0 ≤ γ+ + η+ ≤ 1, where γ ∈ hx, η ∈ gx. Note that this paper only deals with the dual hesitant fuzzification when the number of γ, η is equal to 1, respectively. Moreover, πD denotes the uncertainty of the element x belonging to D in X, which is called the swing degree in this paper. Then, we have(2)πD=1−γ−η.


#### 3.3.2. Sentiment Value Calculation

In the fuzzy dictionary, the sentiment value is twice the strong ambiguity and equal to the weak ambiguity, which is calculated bypos (positive) and neg (negative). For the basic sentiment dictionary, the sentiment value is determined by pos_b and neg_b. Degree adverbs dictionary and negative words dictionary are the strengthening and weakening of sentiment intensity, of which values are denoted as C and N, respectively. Moreover, the text sentiment is calculated using E_pos and E_neg. The facial sentiment is obtained by F_pos and F_neg, while the speech sentiment is determined by A_pos and A_neg. Table 3 presents the calculations of sentiment values in different dictionaries, where k is the existence coefficient, namely, the number of the corresponding sentiment units. k is set to 0 if it does not exist. n and m in Table 3 represent the number of sentiment words with even and odd negative words in the text, respectively. Spos and Sneg represent the sum of positive sentiment value and the sum of negative sentiment value calculated by fuzzy dictionary and basic dictionary, respectively. To simplify the determination of the membership function, the positive and negative sentiment values are unified. The total sentiment value of the blog is obtained according to the text and video sentiment values.Table 3
The equations for the sentiment value calculation.
PositiveNegativeFuzzy dictionary∑i=1nk1∗Cr∗pos+∑j=1m∑j=1mk2∗Cr∗neg∗−1N∑i=1nk1∗Cr∗neg+∑j=1mk2∗Cr∗pos∗−1NBasic dictionary∑i=1nk1∗Cr∗pos_b+∑j=1mk2∗Cr∗neg_b∗−1N−∑i=1nk1∗Cr∗neg_b+∑j=1mk2∗Cr∗pos_b∗−1NText sentiment value∑i=02Sposi+∑j=0nk3∗E_posi∑i=02Snegi+∑j=0nk3∗E_negiVideo sentiment value∑i=1nk7∗F_posi∗Pi+k8∗A_pos−∑i=1nk9∗F_negi∗Pi+k8∗A_neg(3)Fx=0,0≤x≤2.5,x−2.53,2.5<x≤5.5,8.5−x3,5.5<x≤8.5,0,x>8.5,Fx=1,0≤x≤2,5.5−x3.5,2<x≤5.5,x−5.54.5,5.5<x≤10,1,x>10,(4)Fx=−18x+1,0≤x≤8,0,x>8,Fx=1100x2,0≤x≤10,1,x>10,(5)Fx=0,0≤x≤3,149x2−649x+949,3<x≤10,1,x>10,Fx=1,0≤x≤2.−136x2+x9+89,2<x≤8,0,x>8,


#### 3.3.3. Membership Function and Nonmembership Function

The sentiment intensity is defined by three different levels, that is, low, middle, and high. As mentioned above, we use dual hesitant fuzzy sets to fuzzify the sentiment intensity of posts. In this way, the membership and nonmembership functions are corresponded by the positive and negative sentiments for the three-level sentiment intensity, respectively. And they meet the conditions in Section3.3.1. Specifically, the formula above and the formula below of equations (3)–(5) show the membership and nonmembership functions for the sentiment intensity with middle, low, and high levels, respectively.


### 3.4. MD-HFCE Sentiment Classification Method

#### 3.4.1. Improved Mamdani Fuzzy Inference Model

Mamdani fuzzy reasoning model is a fuzzy reasoning model based on the IF-THEN rule proposed by Mamdani and Assilian in 1975. It conducts the fuzzy reasoning through the input IF conditions and calculates the membership degree of the final result [33]. Considering the situation of multimodal blog sentiment classification in reality, the fuzzy inference rules on sentiment intensity are given as follows:IFRp is ri and Rn is rj THEN S is sm,where Rp and Rn represent the membership degrees of the positive and negative sentiment intensity, respectively. r represents the fuzzy set of sentiment intensity, that is, [low-level, middle-level, high-level]. S denotes the last membership degree of multimodal blogs. s is the fuzzy set of blog sentiment classification, that is, [low-positive, strong-positive, neutral, low-negative, strong-negative]. Table 4 elaborates the nine fuzzy inference rules of the Mamdani model. To simplify the calculation, after the membership degree of each category is determined, the neutral membership degree is obtained by comparisons among different categories. Therefore, in the membership function of the Mamdani output, y = 0 is the intermediate membership function of the model output results, as shown in Figure 3.Table 4
The nine specific Mamdani fuzzy rules.
RuleCategory (positive)Category (negative)Category (blog)r1LowLowNeutralr2LowMediumLow-negativer3LowHighStrong-negativer4MediumLowLow-positiver5MediumMediumNeutralr6MediumHighLow-negativer7HighLowStrong-positiver8HighMediumLow-positiver9HighHighNeutralFigure 3
The model outputs with various membership functions.


#### 3.4.2. The Improved Fuzzy Comprehensive Evaluation Model

A fuzzy comprehensive evaluation model is a comprehensive fuzzy method based on fuzzy mathematics. It can transform qualitative evaluation into quantitative evaluation using the membership degree theory of fuzzy mathematics. According to the classification characteristics of the sentiment intensity, the two-level fuzzy comprehensive evaluation model is utilized, which includes five steps:(1)
Establish the two-level factor set: the primary factor setU meets U = [U1, U2, U3, U4] = [positive intensity, negative intensity, negatively positive intensity, negatively negative intensity], while the secondary factor set is denoted by U1 = U2 = [low, middle, high] and U3 = U4 = [nonlow, nonmiddle, nonhigh]. That is, the positive intensity can be divided into low positive, middle positive, and high positive. Nonpositive intensity can be divided into nonlow positive, nonmiddle positive, and nonhigh positive. The same goes for negative and nonnegative.(2)
Establish the two-level weight set: the weight set is the numerical reflection of the degree of influence of various factors on the classification result. The positively positive and negative factor in the primary factor can have a larger influence than the negatively positive and negative factor on the sentiment classification. As a result, the weight set of the primary factorA1 is set to A1 = [0.3, 0.3, 0.2, 0.2], and the weight set of the secondary sentiment factor A2 is determined by its own swing degree, namely, πD in (2) in Section 3.3.1. The larger the swing degree is, the smaller the influence proportion is, that is,(6)A2=1−πD.(3)
Establish the evaluation setV: the sentiment classification results of multimodal blogs are the final evaluation results, namely, V = [low-positive, strong-positive, neutral, low-negative, strong-negative].(4)
Conduct first-level fuzzy comprehensive evaluation: from the first-level fuzzy comprehensive evaluation of the second-level factors, the preliminary evaluation setj is obtained by(7)jq=A2quq,whereuq is the fuzzy possibility matrix of the relevant evaluation set corresponding to the secondary factor set. The matrix is calculated by Mamdani fuzzy reasoning, which is presented by the following.(5)
Make the second-level fuzzy comprehensive evaluation: the comprehensive evaluation setJ is composed of the preliminary evaluation sets j obtained by the first-level fuzzy comprehensive evaluation, by which the final evaluation result set is calculated. The possibility of the neutral evaluation is modified, and the sentiment classification results of multimodal blogs are determined according to the principle of the maximum membership, that is,(8)B=A1J=A1j1j2j3j4.Equations (9)–(15) are the process of preliminarily calculating the fuzzy set of the category of blog post sentiment through Mamdani, which is the basis for further calculation of the fuzzy possibility matrix uq. In, posriand negri correspond to the membership of positive and negative sentiment intensity of rules in Table 4, respectively. SCri is the final sentiment classification in Table 4. Wri is the fuzzy set of the positive factors U1 and U2, and u1, u2 are the fuzzy possibility matrix sets formed by Wri. Npos_l, Npos_m, Npos_h, Nneg_l, Nneg_m, and Nneg_h represent the positive and negative membership with nonlow, nonmiddle, and nonhigh sentiment intensity, respectively. pos_lri, pos_mri, pos_hri, neg_lri, neg_mri, and neg_hri represent the positive and negative subordination degrees with low-level, middle-level, and high-level sentiment intensity, respectively. <WmN_plowi, WhN_plowi>, <WlN_pmidi, WhN_pmidi>, and <WlN_phigi, WmN_phigi> are the fuzzy sets of nonlow, nonmiddle, and nonhigh positive sentiment membership. <WmN_nlowi, WhN_nlowi>, <WlN_nmidi, WhN_nmidi>, and <WlN_nhigi, WmN_nhigi> denote the nonlow, nonmiddle, and nonhigh negative sentiments belonging to the fuzzy sets. Among them, i represents the order of the rules in Table 4:(9)Wri=posri∧negri∧SCri,(10)WmN_plowi,WhN_plowi=Npos_l∨pos_mri∧negri∧SCri,Npos_l∨pos_hri∧negri∧SCri,(11)WlN_pmidi,WhN_pmidi=Npos_m∨pos_lri∧negri∧SCri,Npos_m∨pos_hri∧negri∧SCri,(12)WlN_phigi,WmN_phigi=Npos_h∨pos_lri∧negri∧SCri,Npos_h∨pos_mri∧negri∧SCri,(13)WmN_nlowi,WhN_nlowi=Nneg_l∨neg_mri∧posri∧SCri,Nneg_l∨neg_hri∧posri∧SCri,(14)WlN_nmidi,WhN_nmidi=Nneg_m∨neg_lri∧posri∧SCri,Nneg_l∨neg_hri∧posri∧SCri,(15)WlN_nhigi,WmN_nhigi=Nneg_h∨neg_lri∧posri∧SCri,Nneg_h∨neg_mri∧posri∧SCri,(16)u1=00wr1¯wr2¯wr3¯wr4¯0wr5¯wr6¯0wr8¯wr7¯wr9¯00,(17)u2=wr4¯wr7¯wr1¯00wr8¯0wr5¯wr2¯000wr9¯wr6¯wr3¯,(18)u3=wmN_plow4¯+whN_plow8¯¯whN_pmid8¯wmN_phig4¯whN_plow7¯whN_pmid7¯0wmN_plow5¯+whN_plow9¯¯wlN_pmid1¯+whN_pmid9¯¯wlN_phig1¯+wmN_phig5¯¯whN_plow6¯wlN_pmid2¯wlN_phig2¯+wmN_phig6¯¯0wlN_pmid3¯wlN_phig3¯Τ,(19)u4=wmN_nlow8¯wlN_nmid4¯wlN_nhig4¯+wmN_nhig8¯¯0wlN_nmid7¯wlN_nhig7¯wmN_nlow5¯+whN_nlow9¯¯wlN_nmid1¯+whN_nmid9¯¯wlN_nhig1¯+wmN_nhig5¯¯wmN_nlow2¯+whN_nlow6¯¯whN_nmid6¯wmN_nhig2¯whN_nlow3¯whN_nmid3¯0Τ.


### 3.5. Application

The first step is to select the monitoring topic, crawl the multimodal blogs under the selected topic in real time, conduct the above-mentioned sentiment analysis on the crawled blogs, and record the classification results. Subsequently, the real-time classification results are analyzed to form the trend curve of the topic sentiment, and the negative sentiment intensity is obtained. Eventually, we can determine whether the intensity of the negative sentiment exceeds the threshold. If the threshold is exceeded, the negative alerts notify the software to adjust the topic sentiment of public opinions in time.


## 3.1. Establishment of Exclusive Fuzzy Dictionary for Microblog

The comprehensive sentiment dictionary consists of seven separate dictionaries, among which the fuzzy dictionary is specifically established for microblogs and other dictionaries have general applicability. The crawled microblog text data is divided into two parts. One is for establishing the exclusive fuzzy dictionary while the other is for data testing. A total of 45,344 items are used to establish the fuzzy dictionary. The statistics for the data are detailed in Figure1. The positive rate, the neutral rate, and the negative rate are 27%, 29%, and 44%, respectively, which strikes a balance on different emotions.Figure 1
The statistics of the crawled microblog text data.The crawled data is preprocessed with word segmentation, of which results are used as the input of the TextRank algorithm. The TextRank is a graph-based ranking algorithm. It constructs the network according to the adjacent relationship among words and iteratively calculates the ranking score (i.e., importance) of each node (i.e., word) [26]. The importance of the same word in a post is accumulated. The fuzzy dictionary is finally formed by removing the repetitive words. Table 1 details the pseudocode of the algorithm, where w represents the importance of a word and NUM denotes the total number of the posts.Table 1
The algorithm for forming a fuzzy exclusive dictionary.
Input: Blog textTOutput: Fuzzy sentiment dictionary WProcess:(1)  IF t in T [i]:(2)   t_new [i] = jieba (t)(3)  END if(4)  FOR word in t_new [i]:(5)    wi = TextRank (t_new [i])(6)  IF word [i] = word [j] and word [i], word [j] both in t_new [i]:(7)    k [i] = wi + wj(8)  END if(9)  IF j ≤ 5000:(10)   FW = k [j] in sort (k [i])(11)  END IF(12)  IF word in FW:(13)   pos = num (word in positive)/NUM(14)   neg = num (word in negative)/NUM(15)   other = 1-pos-neg(16)  END if(17)  Remove the common and incorrect words from FW to form a final fuzzy dictionary W with 593 words, as shown in Table 2(18)  Print WTable 2
The fuzzy dictionary.
ExamplesPositive degreeNegative degreeUncertaintyImportanceHappy0.6046720.2255170.16981151.05354Joyful0.6858510.1117510.20239847.92227Unwell0.0802260.5254240.394356.822836……………Care0.500.50.034836Tired0100.031808Boredom0.0714290.50.4285710.027837


## 3.2. Feature Extraction and Processing of Multimodal Data

### 3.2.1. Feature Extraction of Blog Images

Based on the intermediate features of images, this paper uses the visual-to-text conversion model proposed by Google in 2015 to extract image features in the CNN encoder. The extracted features are input into the LSTM decoder to obtain the text description feature of the image [27]. To adapt to the sentiment classification, the text sentiment is expanded by two sentiment knowledge maps, namely, SentiBank and SentiBridge [28], as shown in Figure 2. In addition, before the feature extraction of the image description, the text features and face features contained in the image are extracted first. The related techniques for extracting the image matching and the facial expression have been studied well. In this paper, the API interface is provided by Baidu to realize the extraction of two image features.Figure 2
The visual-text feature transformation model for blog images.


### 3.2.2. Video Features Extraction

Video features consist of image and audio features. The image feature extraction in the video can follow the method discussed in Section3.2.1. However, no matter how many seconds the video lasts and how many frames the video has, it can capture a huge number of still images from videos, and most of the obtained images are repetitive with each other. As a result, we filter the captured images with two steps before the image feature extraction starts.Firstly, a YOLOv3 model is used to filter images containing similar objects. The YOLOv3 model utilizes Darknet53 as the main network. It can identify the subjects and the number of objects in images, especially the small and medium objects [29]. After the images are selected by the YOLOv3 model, the differences among the rest of the images have little effect on the sentiment classification results. To this end, the second round of image selection is required. The Scale Invariant Feature Transform (SIFT) algorithm is adopted to detect the key points of the images, and the local similarity among the images is subsequently calculated [30]. The two-step image selection can greatly reduce the number of images for feature extraction, and thus the efficiency of image processing is improved.For the audio feature extraction, the Mel-frequency cepstral coefficient (MFCC) is regarded as the most representative feature in literature [31]. In addition to the MFCC, another two audio features are considered in this paper: zero-crossing rate and spectral centroid. Specifically, the zero-crossing rate represents the number of zero-crossings in the signal spectrum, while the spectrum centroid denotes the texture of the audio. The two features can assist MFCC features with distinguishing the sentiment of audio. A 22-dimensional vector is introduced to represent the three considered audio features, by which an optimal random forest model is trained for the sentiment classification of video audio.


## 3.2.1. Feature Extraction of Blog Images

Based on the intermediate features of images, this paper uses the visual-to-text conversion model proposed by Google in 2015 to extract image features in the CNN encoder. The extracted features are input into the LSTM decoder to obtain the text description feature of the image [27]. To adapt to the sentiment classification, the text sentiment is expanded by two sentiment knowledge maps, namely, SentiBank and SentiBridge [28], as shown in Figure 2. In addition, before the feature extraction of the image description, the text features and face features contained in the image are extracted first. The related techniques for extracting the image matching and the facial expression have been studied well. In this paper, the API interface is provided by Baidu to realize the extraction of two image features.Figure 2
The visual-text feature transformation model for blog images.


## 3.2.2. Video Features Extraction

Video features consist of image and audio features. The image feature extraction in the video can follow the method discussed in Section3.2.1. However, no matter how many seconds the video lasts and how many frames the video has, it can capture a huge number of still images from videos, and most of the obtained images are repetitive with each other. As a result, we filter the captured images with two steps before the image feature extraction starts.Firstly, a YOLOv3 model is used to filter images containing similar objects. The YOLOv3 model utilizes Darknet53 as the main network. It can identify the subjects and the number of objects in images, especially the small and medium objects [29]. After the images are selected by the YOLOv3 model, the differences among the rest of the images have little effect on the sentiment classification results. To this end, the second round of image selection is required. The Scale Invariant Feature Transform (SIFT) algorithm is adopted to detect the key points of the images, and the local similarity among the images is subsequently calculated [30]. The two-step image selection can greatly reduce the number of images for feature extraction, and thus the efficiency of image processing is improved.For the audio feature extraction, the Mel-frequency cepstral coefficient (MFCC) is regarded as the most representative feature in literature [31]. In addition to the MFCC, another two audio features are considered in this paper: zero-crossing rate and spectral centroid. Specifically, the zero-crossing rate represents the number of zero-crossings in the signal spectrum, while the spectrum centroid denotes the texture of the audio. The two features can assist MFCC features with distinguishing the sentiment of audio. A 22-dimensional vector is introduced to represent the three considered audio features, by which an optimal random forest model is trained for the sentiment classification of video audio.


## 3.3. The Ambiguity of the Sentiment Intensity

In this paper, fuzzy inference rules are used to fuzzify the sentiment intensity. Dual hesitant fuzzy is introduced for the sentiment intensity, and general fuzzy is considered as the output of the reasoning model.


### 3.3.1. Dual Hesitant Fuzzy Sets

Definition 1.
LetX be a fixed set; then, a dual hesitant fuzzy set (DHF) D on X is described as [32](1)D=x,hx,gx|x∈X,in which hx and gx are two sets of some values in [0, 1], denoting the possible membership degrees and nonmembership degrees of the element x ∈ X to the set D, respectively, with the conditions: 0 ≤ γ, η ≤ 1, 0 ≤ γ+ + η+ ≤ 1, where γ ∈ hx, η ∈ gx. Note that this paper only deals with the dual hesitant fuzzification when the number of γ, η is equal to 1, respectively. Moreover, πD denotes the uncertainty of the element x belonging to D in X, which is called the swing degree in this paper. Then, we have(2)πD=1−γ−η.


### 3.3.2. Sentiment Value Calculation

In the fuzzy dictionary, the sentiment value is twice the strong ambiguity and equal to the weak ambiguity, which is calculated bypos (positive) and neg (negative). For the basic sentiment dictionary, the sentiment value is determined by pos_b and neg_b. Degree adverbs dictionary and negative words dictionary are the strengthening and weakening of sentiment intensity, of which values are denoted as C and N, respectively. Moreover, the text sentiment is calculated using E_pos and E_neg. The facial sentiment is obtained by F_pos and F_neg, while the speech sentiment is determined by A_pos and A_neg. Table 3 presents the calculations of sentiment values in different dictionaries, where k is the existence coefficient, namely, the number of the corresponding sentiment units. k is set to 0 if it does not exist. n and m in Table 3 represent the number of sentiment words with even and odd negative words in the text, respectively. Spos and Sneg represent the sum of positive sentiment value and the sum of negative sentiment value calculated by fuzzy dictionary and basic dictionary, respectively. To simplify the determination of the membership function, the positive and negative sentiment values are unified. The total sentiment value of the blog is obtained according to the text and video sentiment values.Table 3
The equations for the sentiment value calculation.
PositiveNegativeFuzzy dictionary∑i=1nk1∗Cr∗pos+∑j=1m∑j=1mk2∗Cr∗neg∗−1N∑i=1nk1∗Cr∗neg+∑j=1mk2∗Cr∗pos∗−1NBasic dictionary∑i=1nk1∗Cr∗pos_b+∑j=1mk2∗Cr∗neg_b∗−1N−∑i=1nk1∗Cr∗neg_b+∑j=1mk2∗Cr∗pos_b∗−1NText sentiment value∑i=02Sposi+∑j=0nk3∗E_posi∑i=02Snegi+∑j=0nk3∗E_negiVideo sentiment value∑i=1nk7∗F_posi∗Pi+k8∗A_pos−∑i=1nk9∗F_negi∗Pi+k8∗A_neg(3)Fx=0,0≤x≤2.5,x−2.53,2.5<x≤5.5,8.5−x3,5.5<x≤8.5,0,x>8.5,Fx=1,0≤x≤2,5.5−x3.5,2<x≤5.5,x−5.54.5,5.5<x≤10,1,x>10,(4)Fx=−18x+1,0≤x≤8,0,x>8,Fx=1100x2,0≤x≤10,1,x>10,(5)Fx=0,0≤x≤3,149x2−649x+949,3<x≤10,1,x>10,Fx=1,0≤x≤2.−136x2+x9+89,2<x≤8,0,x>8,


### 3.3.3. Membership Function and Nonmembership Function

The sentiment intensity is defined by three different levels, that is, low, middle, and high. As mentioned above, we use dual hesitant fuzzy sets to fuzzify the sentiment intensity of posts. In this way, the membership and nonmembership functions are corresponded by the positive and negative sentiments for the three-level sentiment intensity, respectively. And they meet the conditions in Section3.3.1. Specifically, the formula above and the formula below of equations (3)–(5) show the membership and nonmembership functions for the sentiment intensity with middle, low, and high levels, respectively.


## 3.3.1. Dual Hesitant Fuzzy Sets

Definition 1.
LetX be a fixed set; then, a dual hesitant fuzzy set (DHF) D on X is described as [32](1)D=x,hx,gx|x∈X,in which hx and gx are two sets of some values in [0, 1], denoting the possible membership degrees and nonmembership degrees of the element x ∈ X to the set D, respectively, with the conditions: 0 ≤ γ, η ≤ 1, 0 ≤ γ+ + η+ ≤ 1, where γ ∈ hx, η ∈ gx. Note that this paper only deals with the dual hesitant fuzzification when the number of γ, η is equal to 1, respectively. Moreover, πD denotes the uncertainty of the element x belonging to D in X, which is called the swing degree in this paper. Then, we have(2)πD=1−γ−η.


## 3.3.2. Sentiment Value Calculation

In the fuzzy dictionary, the sentiment value is twice the strong ambiguity and equal to the weak ambiguity, which is calculated bypos (positive) and neg (negative). For the basic sentiment dictionary, the sentiment value is determined by pos_b and neg_b. Degree adverbs dictionary and negative words dictionary are the strengthening and weakening of sentiment intensity, of which values are denoted as C and N, respectively. Moreover, the text sentiment is calculated using E_pos and E_neg. The facial sentiment is obtained by F_pos and F_neg, while the speech sentiment is determined by A_pos and A_neg. Table 3 presents the calculations of sentiment values in different dictionaries, where k is the existence coefficient, namely, the number of the corresponding sentiment units. k is set to 0 if it does not exist. n and m in Table 3 represent the number of sentiment words with even and odd negative words in the text, respectively. Spos and Sneg represent the sum of positive sentiment value and the sum of negative sentiment value calculated by fuzzy dictionary and basic dictionary, respectively. To simplify the determination of the membership function, the positive and negative sentiment values are unified. The total sentiment value of the blog is obtained according to the text and video sentiment values.Table 3
The equations for the sentiment value calculation.
PositiveNegativeFuzzy dictionary∑i=1nk1∗Cr∗pos+∑j=1m∑j=1mk2∗Cr∗neg∗−1N∑i=1nk1∗Cr∗neg+∑j=1mk2∗Cr∗pos∗−1NBasic dictionary∑i=1nk1∗Cr∗pos_b+∑j=1mk2∗Cr∗neg_b∗−1N−∑i=1nk1∗Cr∗neg_b+∑j=1mk2∗Cr∗pos_b∗−1NText sentiment value∑i=02Sposi+∑j=0nk3∗E_posi∑i=02Snegi+∑j=0nk3∗E_negiVideo sentiment value∑i=1nk7∗F_posi∗Pi+k8∗A_pos−∑i=1nk9∗F_negi∗Pi+k8∗A_neg(3)Fx=0,0≤x≤2.5,x−2.53,2.5<x≤5.5,8.5−x3,5.5<x≤8.5,0,x>8.5,Fx=1,0≤x≤2,5.5−x3.5,2<x≤5.5,x−5.54.5,5.5<x≤10,1,x>10,(4)Fx=−18x+1,0≤x≤8,0,x>8,Fx=1100x2,0≤x≤10,1,x>10,(5)Fx=0,0≤x≤3,149x2−649x+949,3<x≤10,1,x>10,Fx=1,0≤x≤2.−136x2+x9+89,2<x≤8,0,x>8,


## 3.3.3. Membership Function and Nonmembership Function

The sentiment intensity is defined by three different levels, that is, low, middle, and high. As mentioned above, we use dual hesitant fuzzy sets to fuzzify the sentiment intensity of posts. In this way, the membership and nonmembership functions are corresponded by the positive and negative sentiments for the three-level sentiment intensity, respectively. And they meet the conditions in Section3.3.1. Specifically, the formula above and the formula below of equations (3)–(5) show the membership and nonmembership functions for the sentiment intensity with middle, low, and high levels, respectively.


## 3.4. MD-HFCE Sentiment Classification Method

### 3.4.1. Improved Mamdani Fuzzy Inference Model

Mamdani fuzzy reasoning model is a fuzzy reasoning model based on the IF-THEN rule proposed by Mamdani and Assilian in 1975. It conducts the fuzzy reasoning through the input IF conditions and calculates the membership degree of the final result [33]. Considering the situation of multimodal blog sentiment classification in reality, the fuzzy inference rules on sentiment intensity are given as follows:IFRp is ri and Rn is rj THEN S is sm,where Rp and Rn represent the membership degrees of the positive and negative sentiment intensity, respectively. r represents the fuzzy set of sentiment intensity, that is, [low-level, middle-level, high-level]. S denotes the last membership degree of multimodal blogs. s is the fuzzy set of blog sentiment classification, that is, [low-positive, strong-positive, neutral, low-negative, strong-negative]. Table 4 elaborates the nine fuzzy inference rules of the Mamdani model. To simplify the calculation, after the membership degree of each category is determined, the neutral membership degree is obtained by comparisons among different categories. Therefore, in the membership function of the Mamdani output, y = 0 is the intermediate membership function of the model output results, as shown in Figure 3.Table 4
The nine specific Mamdani fuzzy rules.
RuleCategory (positive)Category (negative)Category (blog)r1LowLowNeutralr2LowMediumLow-negativer3LowHighStrong-negativer4MediumLowLow-positiver5MediumMediumNeutralr6MediumHighLow-negativer7HighLowStrong-positiver8HighMediumLow-positiver9HighHighNeutralFigure 3
The model outputs with various membership functions.


### 3.4.2. The Improved Fuzzy Comprehensive Evaluation Model

A fuzzy comprehensive evaluation model is a comprehensive fuzzy method based on fuzzy mathematics. It can transform qualitative evaluation into quantitative evaluation using the membership degree theory of fuzzy mathematics. According to the classification characteristics of the sentiment intensity, the two-level fuzzy comprehensive evaluation model is utilized, which includes five steps:(1)
Establish the two-level factor set: the primary factor setU meets U = [U1, U2, U3, U4] = [positive intensity, negative intensity, negatively positive intensity, negatively negative intensity], while the secondary factor set is denoted by U1 = U2 = [low, middle, high] and U3 = U4 = [nonlow, nonmiddle, nonhigh]. That is, the positive intensity can be divided into low positive, middle positive, and high positive. Nonpositive intensity can be divided into nonlow positive, nonmiddle positive, and nonhigh positive. The same goes for negative and nonnegative.(2)
Establish the two-level weight set: the weight set is the numerical reflection of the degree of influence of various factors on the classification result. The positively positive and negative factor in the primary factor can have a larger influence than the negatively positive and negative factor on the sentiment classification. As a result, the weight set of the primary factorA1 is set to A1 = [0.3, 0.3, 0.2, 0.2], and the weight set of the secondary sentiment factor A2 is determined by its own swing degree, namely, πD in (2) in Section 3.3.1. The larger the swing degree is, the smaller the influence proportion is, that is,(6)A2=1−πD.(3)
Establish the evaluation setV: the sentiment classification results of multimodal blogs are the final evaluation results, namely, V = [low-positive, strong-positive, neutral, low-negative, strong-negative].(4)
Conduct first-level fuzzy comprehensive evaluation: from the first-level fuzzy comprehensive evaluation of the second-level factors, the preliminary evaluation setj is obtained by(7)jq=A2quq,whereuq is the fuzzy possibility matrix of the relevant evaluation set corresponding to the secondary factor set. The matrix is calculated by Mamdani fuzzy reasoning, which is presented by the following.(5)
Make the second-level fuzzy comprehensive evaluation: the comprehensive evaluation setJ is composed of the preliminary evaluation sets j obtained by the first-level fuzzy comprehensive evaluation, by which the final evaluation result set is calculated. The possibility of the neutral evaluation is modified, and the sentiment classification results of multimodal blogs are determined according to the principle of the maximum membership, that is,(8)B=A1J=A1j1j2j3j4.Equations (9)–(15) are the process of preliminarily calculating the fuzzy set of the category of blog post sentiment through Mamdani, which is the basis for further calculation of the fuzzy possibility matrix uq. In, posriand negri correspond to the membership of positive and negative sentiment intensity of rules in Table 4, respectively. SCri is the final sentiment classification in Table 4. Wri is the fuzzy set of the positive factors U1 and U2, and u1, u2 are the fuzzy possibility matrix sets formed by Wri. Npos_l, Npos_m, Npos_h, Nneg_l, Nneg_m, and Nneg_h represent the positive and negative membership with nonlow, nonmiddle, and nonhigh sentiment intensity, respectively. pos_lri, pos_mri, pos_hri, neg_lri, neg_mri, and neg_hri represent the positive and negative subordination degrees with low-level, middle-level, and high-level sentiment intensity, respectively. <WmN_plowi, WhN_plowi>, <WlN_pmidi, WhN_pmidi>, and <WlN_phigi, WmN_phigi> are the fuzzy sets of nonlow, nonmiddle, and nonhigh positive sentiment membership. <WmN_nlowi, WhN_nlowi>, <WlN_nmidi, WhN_nmidi>, and <WlN_nhigi, WmN_nhigi> denote the nonlow, nonmiddle, and nonhigh negative sentiments belonging to the fuzzy sets. Among them, i represents the order of the rules in Table 4:(9)Wri=posri∧negri∧SCri,(10)WmN_plowi,WhN_plowi=Npos_l∨pos_mri∧negri∧SCri,Npos_l∨pos_hri∧negri∧SCri,(11)WlN_pmidi,WhN_pmidi=Npos_m∨pos_lri∧negri∧SCri,Npos_m∨pos_hri∧negri∧SCri,(12)WlN_phigi,WmN_phigi=Npos_h∨pos_lri∧negri∧SCri,Npos_h∨pos_mri∧negri∧SCri,(13)WmN_nlowi,WhN_nlowi=Nneg_l∨neg_mri∧posri∧SCri,Nneg_l∨neg_hri∧posri∧SCri,(14)WlN_nmidi,WhN_nmidi=Nneg_m∨neg_lri∧posri∧SCri,Nneg_l∨neg_hri∧posri∧SCri,(15)WlN_nhigi,WmN_nhigi=Nneg_h∨neg_lri∧posri∧SCri,Nneg_h∨neg_mri∧posri∧SCri,(16)u1=00wr1¯wr2¯wr3¯wr4¯0wr5¯wr6¯0wr8¯wr7¯wr9¯00,(17)u2=wr4¯wr7¯wr1¯00wr8¯0wr5¯wr2¯000wr9¯wr6¯wr3¯,(18)u3=wmN_plow4¯+whN_plow8¯¯whN_pmid8¯wmN_phig4¯whN_plow7¯whN_pmid7¯0wmN_plow5¯+whN_plow9¯¯wlN_pmid1¯+whN_pmid9¯¯wlN_phig1¯+wmN_phig5¯¯whN_plow6¯wlN_pmid2¯wlN_phig2¯+wmN_phig6¯¯0wlN_pmid3¯wlN_phig3¯Τ,(19)u4=wmN_nlow8¯wlN_nmid4¯wlN_nhig4¯+wmN_nhig8¯¯0wlN_nmid7¯wlN_nhig7¯wmN_nlow5¯+whN_nlow9¯¯wlN_nmid1¯+whN_nmid9¯¯wlN_nhig1¯+wmN_nhig5¯¯wmN_nlow2¯+whN_nlow6¯¯whN_nmid6¯wmN_nhig2¯whN_nlow3¯whN_nmid3¯0Τ.


## 3.4.1. Improved Mamdani Fuzzy Inference Model

Mamdani fuzzy reasoning model is a fuzzy reasoning model based on the IF-THEN rule proposed by Mamdani and Assilian in 1975. It conducts the fuzzy reasoning through the input IF conditions and calculates the membership degree of the final result [33]. Considering the situation of multimodal blog sentiment classification in reality, the fuzzy inference rules on sentiment intensity are given as follows:IFRp is ri and Rn is rj THEN S is sm,where Rp and Rn represent the membership degrees of the positive and negative sentiment intensity, respectively. r represents the fuzzy set of sentiment intensity, that is, [low-level, middle-level, high-level]. S denotes the last membership degree of multimodal blogs. s is the fuzzy set of blog sentiment classification, that is, [low-positive, strong-positive, neutral, low-negative, strong-negative]. Table 4 elaborates the nine fuzzy inference rules of the Mamdani model. To simplify the calculation, after the membership degree of each category is determined, the neutral membership degree is obtained by comparisons among different categories. Therefore, in the membership function of the Mamdani output, y = 0 is the intermediate membership function of the model output results, as shown in Figure 3.Table 4
The nine specific Mamdani fuzzy rules.
RuleCategory (positive)Category (negative)Category (blog)r1LowLowNeutralr2LowMediumLow-negativer3LowHighStrong-negativer4MediumLowLow-positiver5MediumMediumNeutralr6MediumHighLow-negativer7HighLowStrong-positiver8HighMediumLow-positiver9HighHighNeutralFigure 3
The model outputs with various membership functions.


## 3.4.2. The Improved Fuzzy Comprehensive Evaluation Model

A fuzzy comprehensive evaluation model is a comprehensive fuzzy method based on fuzzy mathematics. It can transform qualitative evaluation into quantitative evaluation using the membership degree theory of fuzzy mathematics. According to the classification characteristics of the sentiment intensity, the two-level fuzzy comprehensive evaluation model is utilized, which includes five steps:(1)
Establish the two-level factor set: the primary factor setU meets U = [U1, U2, U3, U4] = [positive intensity, negative intensity, negatively positive intensity, negatively negative intensity], while the secondary factor set is denoted by U1 = U2 = [low, middle, high] and U3 = U4 = [nonlow, nonmiddle, nonhigh]. That is, the positive intensity can be divided into low positive, middle positive, and high positive. Nonpositive intensity can be divided into nonlow positive, nonmiddle positive, and nonhigh positive. The same goes for negative and nonnegative.(2)
Establish the two-level weight set: the weight set is the numerical reflection of the degree of influence of various factors on the classification result. The positively positive and negative factor in the primary factor can have a larger influence than the negatively positive and negative factor on the sentiment classification. As a result, the weight set of the primary factorA1 is set to A1 = [0.3, 0.3, 0.2, 0.2], and the weight set of the secondary sentiment factor A2 is determined by its own swing degree, namely, πD in (2) in Section 3.3.1. The larger the swing degree is, the smaller the influence proportion is, that is,(6)A2=1−πD.(3)
Establish the evaluation setV: the sentiment classification results of multimodal blogs are the final evaluation results, namely, V = [low-positive, strong-positive, neutral, low-negative, strong-negative].(4)
Conduct first-level fuzzy comprehensive evaluation: from the first-level fuzzy comprehensive evaluation of the second-level factors, the preliminary evaluation setj is obtained by(7)jq=A2quq,whereuq is the fuzzy possibility matrix of the relevant evaluation set corresponding to the secondary factor set. The matrix is calculated by Mamdani fuzzy reasoning, which is presented by the following.(5)
Make the second-level fuzzy comprehensive evaluation: the comprehensive evaluation setJ is composed of the preliminary evaluation sets j obtained by the first-level fuzzy comprehensive evaluation, by which the final evaluation result set is calculated. The possibility of the neutral evaluation is modified, and the sentiment classification results of multimodal blogs are determined according to the principle of the maximum membership, that is,(8)B=A1J=A1j1j2j3j4.Equations (9)–(15) are the process of preliminarily calculating the fuzzy set of the category of blog post sentiment through Mamdani, which is the basis for further calculation of the fuzzy possibility matrix uq. In, posriand negri correspond to the membership of positive and negative sentiment intensity of rules in Table 4, respectively. SCri is the final sentiment classification in Table 4. Wri is the fuzzy set of the positive factors U1 and U2, and u1, u2 are the fuzzy possibility matrix sets formed by Wri. Npos_l, Npos_m, Npos_h, Nneg_l, Nneg_m, and Nneg_h represent the positive and negative membership with nonlow, nonmiddle, and nonhigh sentiment intensity, respectively. pos_lri, pos_mri, pos_hri, neg_lri, neg_mri, and neg_hri represent the positive and negative subordination degrees with low-level, middle-level, and high-level sentiment intensity, respectively. <WmN_plowi, WhN_plowi>, <WlN_pmidi, WhN_pmidi>, and <WlN_phigi, WmN_phigi> are the fuzzy sets of nonlow, nonmiddle, and nonhigh positive sentiment membership. <WmN_nlowi, WhN_nlowi>, <WlN_nmidi, WhN_nmidi>, and <WlN_nhigi, WmN_nhigi> denote the nonlow, nonmiddle, and nonhigh negative sentiments belonging to the fuzzy sets. Among them, i represents the order of the rules in Table 4:(9)Wri=posri∧negri∧SCri,(10)WmN_plowi,WhN_plowi=Npos_l∨pos_mri∧negri∧SCri,Npos_l∨pos_hri∧negri∧SCri,(11)WlN_pmidi,WhN_pmidi=Npos_m∨pos_lri∧negri∧SCri,Npos_m∨pos_hri∧negri∧SCri,(12)WlN_phigi,WmN_phigi=Npos_h∨pos_lri∧negri∧SCri,Npos_h∨pos_mri∧negri∧SCri,(13)WmN_nlowi,WhN_nlowi=Nneg_l∨neg_mri∧posri∧SCri,Nneg_l∨neg_hri∧posri∧SCri,(14)WlN_nmidi,WhN_nmidi=Nneg_m∨neg_lri∧posri∧SCri,Nneg_l∨neg_hri∧posri∧SCri,(15)WlN_nhigi,WmN_nhigi=Nneg_h∨neg_lri∧posri∧SCri,Nneg_h∨neg_mri∧posri∧SCri,(16)u1=00wr1¯wr2¯wr3¯wr4¯0wr5¯wr6¯0wr8¯wr7¯wr9¯00,(17)u2=wr4¯wr7¯wr1¯00wr8¯0wr5¯wr2¯000wr9¯wr6¯wr3¯,(18)u3=wmN_plow4¯+whN_plow8¯¯whN_pmid8¯wmN_phig4¯whN_plow7¯whN_pmid7¯0wmN_plow5¯+whN_plow9¯¯wlN_pmid1¯+whN_pmid9¯¯wlN_phig1¯+wmN_phig5¯¯whN_plow6¯wlN_pmid2¯wlN_phig2¯+wmN_phig6¯¯0wlN_pmid3¯wlN_phig3¯Τ,(19)u4=wmN_nlow8¯wlN_nmid4¯wlN_nhig4¯+wmN_nhig8¯¯0wlN_nmid7¯wlN_nhig7¯wmN_nlow5¯+whN_nlow9¯¯wlN_nmid1¯+whN_nmid9¯¯wlN_nhig1¯+wmN_nhig5¯¯wmN_nlow2¯+whN_nlow6¯¯whN_nmid6¯wmN_nhig2¯whN_nlow3¯whN_nmid3¯0Τ.


## 3.5. Application

The first step is to select the monitoring topic, crawl the multimodal blogs under the selected topic in real time, conduct the above-mentioned sentiment analysis on the crawled blogs, and record the classification results. Subsequently, the real-time classification results are analyzed to form the trend curve of the topic sentiment, and the negative sentiment intensity is obtained. Eventually, we can determine whether the intensity of the negative sentiment exceeds the threshold. If the threshold is exceeded, the negative alerts notify the software to adjust the topic sentiment of public opinions in time.


## 4. Results and Discussions

### 4.1. Experimental Dataset

The video-image filtering is based on the COCO image dataset, which has been widely used in object detection, target segmentation, subtitle generation, and other aspects. The dataset has about 330,000 images and is marked by Microsoft in 2014 [34]. Flickr30K image dataset is used to generate image description features. It contains 30,000 images and each image is marked with five text descriptions [35]. Moreover, for video-audio sentiment classification, 10,500 Chinese items are selected from the emotional speech dataset (ESD) dataset, which owes a large number of English and Chinese sentiment speech [36]. Furthermore, 10,000 posts with multiple topics are crawled in microblog for experimental evaluation, including 4562 positive posts, 3636 negative posts, 1802 neutral posts, 4374 images, and 412 videos.


### 4.2. Experimental Implementation

In this section, we take the post shown in Figure4 as an example to show the steps of experiment implementation. The post is composed of three elements, that is, texts, emoticons, and videos, to imply the user’s sentiment. Specifically, a total of 41 images are extracted from the video. Subsequently, following the image selection scheme, six of the extracted images are filtered in the preliminary selection, and two of the six images remain in the second round. The two images do not present the text and facial features, and their description features are similar to each other. Finally, the description feature is synthesized with sentiment expansion; that is, a sad dog is lying in a bright bathroom. Furthermore, the audio is analyzed by a random forest algorithm. It can be seen from Table 5 that the positive sentiment value of the multimodal blog is 5.69, and the negative sentiment value is 6.08.Figure 4
The example of a blog post.Table 5
The calculation results of blog sentiment.
BlogPresencePositiveNegativeTextY4.593.54EmojiY00.6ImageN00Video-imageY1.10.94Video-audioY01Figure5 shows the membership degree and swing degree of positive, nonpositive, negative, and nonnegative sentiment intensity for Figure 4. Figure 6 is the results of the uq calculation. Figure 7 presents the fuzzy comprehensive evaluation results, which can be obtained by the maximum membership degree scheme, the weighted average method, the F distribution method, and other methods. Among them, the maximum membership degree method is the simplest and the most popular method. Therefore, this paper uses the maximum membership degree method to deal with the evaluation results. The final sentiment of the blog is classified as low-level negative. As shown in Figure 7, the low-level negative membership degree has the highest value. Moreover, if the difference between the low-level negative and positive membership degrees is less than the threshold, the blog is regarded as a neutral category. It means the membership degree is 0 and vice versa. Through multiple experiments, it can achieve the best performance if the threshold is set to 0.003.Figure 5
The degree of the strength membership.Figure 6
The calculation results ofuq.Figure 7
The comprehensive evaluation results.The content of the blog post: “Very lucky, the kidney of Zheng does not fail, and it has been out of danger. My friend and I are going back to Litang first, as Bubu is waiting for us. A friend in Chengdu will help us to take care of it. It looked aggrieved and unhappy when we said goodbye. The poor dog really suffers but is very tough.”


### 4.3. Experimental Comparisons Based on Different Dictionaries

The proposed comprehensive dictionary is compared with HowNet [37] and National Taiwan University Sentiment Dictionary (NTUSD) [38] in Table 6. As shown in Table 7, HowNet contains 38 propositions, while NTUSD only includes sentiment words. It can be seen from Table 6 that the proposed comprehensive fuzzy dictionary can outperform the HowNet and NTUSD. In addition, the recall rate and F1 value of HowNet are higher than those of NTUSD for both positive and neutral blogs. However, in terms of the negative blogs, the performance of NTUSD is slightly better than that of HowNet, since the number of the negative words is small.Table 6
Comparison of dictionary experiment results.
PrecisionRecallF1NTUSDHowNetOursNTUSDHowNetOursNTUSDHowNetOursPositive blog0.7110.7670.8570.7470.760.8120.7290.7640.834Neutral blog0.6940.6670.7820.5480.6310.7680.6120.6490.775Negative blog0.7990.7520.8270.730.7570.7910.7630.7540.801Bold values intuitively compare and emphasize the effectiveness of the fuzzy dictionary established in this article.Table 7
The specific conditions of different dictionaries.
CategoryHowNetNTUSDPositive words45662812Negative words43708278Degree adverbs2190Advocate words380


### 4.4. Comparison of Methods

To verify the proposed method, four baseline tests are conducted as follows:(1)
Extended dictionary + semantic rules [2], which combines the extended dictionary with semantic rules, hereinafter referred to as Method 1.(2)
Improved multilayer CNN network [13], which increases the number of convolution layers, hereinafter referred to as Method 2.(3)
Dictionary + fuzzification, which integrates the sentiment dictionary with general fuzzification and is referred to as Method 3.(4)
Fuzzy rules + Mamdani fuzzy reasoning [23], where Mamdani fuzzy reasoning is utilized and the scheme is referred to as Method 4.Figures8–11 show all comparative experiments and the experimental results of the method in this paper on the correct rate, recall rate, F1 value and average results of positive, neutral and negative blog posts. The performance of method 3 is the most unsatisfactory. It can be seen that the general fuzzy rules have too much freedom and cannot improve the classification effect very well. Method 4 with the related fuzzy rules further improves the correctness and stability of the fuzzy methods and it almost reaches the effect of the traditional method. The method in this paper introduces hesitating fuzzy and fuzzy evaluation rules on the basis of the basic fuzzy method, so that the fuzzy limit is well controlled. The experimental results also show that the method in this paper performs best among several methods, and the classification effect is better improved. And the classification result is more stable than method 2 with better accuracy.Figure 8
The precision comparisons of different methods.Figure 9
The recall rate comparisons of different methods.Figure 10
TheF1 value comparisons of different methods.Figure 11
The average value comparisons of different methods.


### 4.5. Application Experiment

In this section, the topic “#teachers discriminate students after comparing the income of their parents #” is studied for the sentiment orientation experiment. The blog posts under this topic are crawled every half hour, which obtains 253, 644, 1105, and 1512 blog posts in each crawling. Firstly, each crawled post is processed by the sentiment classification, and the proportions of the positive blogs and negative blogs are obtained, respectively. Then, the proportions of low-level negative blogs and strong-negative blogs are calculated among the negative blogs. In this way, the proportion of negative sentiment blogs is monitored under the topic, which can decide whether the intervention is required. As shown in Figure12, the number of positive sentiment blogs under the topic is not more than 12%. Although varying over time, the number of low-negative blogs is much larger than that of strong-negative blogs at each period. It implies that their sentiment intensity is not very strong, even though people have relatively negative attitudes. Moreover, the sentiment intensity is not strengthened over time and maintains the same level. As a result, the app administrator can continue to supervise and analyze the posts of this topic without any intervention.Figure 12
The proportions of different sentiment types in topic blogs.


## 4.1. Experimental Dataset

The video-image filtering is based on the COCO image dataset, which has been widely used in object detection, target segmentation, subtitle generation, and other aspects. The dataset has about 330,000 images and is marked by Microsoft in 2014 [34]. Flickr30K image dataset is used to generate image description features. It contains 30,000 images and each image is marked with five text descriptions [35]. Moreover, for video-audio sentiment classification, 10,500 Chinese items are selected from the emotional speech dataset (ESD) dataset, which owes a large number of English and Chinese sentiment speech [36]. Furthermore, 10,000 posts with multiple topics are crawled in microblog for experimental evaluation, including 4562 positive posts, 3636 negative posts, 1802 neutral posts, 4374 images, and 412 videos.


## 4.2. Experimental Implementation

In this section, we take the post shown in Figure4 as an example to show the steps of experiment implementation. The post is composed of three elements, that is, texts, emoticons, and videos, to imply the user’s sentiment. Specifically, a total of 41 images are extracted from the video. Subsequently, following the image selection scheme, six of the extracted images are filtered in the preliminary selection, and two of the six images remain in the second round. The two images do not present the text and facial features, and their description features are similar to each other. Finally, the description feature is synthesized with sentiment expansion; that is, a sad dog is lying in a bright bathroom. Furthermore, the audio is analyzed by a random forest algorithm. It can be seen from Table 5 that the positive sentiment value of the multimodal blog is 5.69, and the negative sentiment value is 6.08.Figure 4
The example of a blog post.Table 5
The calculation results of blog sentiment.
BlogPresencePositiveNegativeTextY4.593.54EmojiY00.6ImageN00Video-imageY1.10.94Video-audioY01Figure5 shows the membership degree and swing degree of positive, nonpositive, negative, and nonnegative sentiment intensity for Figure 4. Figure 6 is the results of the uq calculation. Figure 7 presents the fuzzy comprehensive evaluation results, which can be obtained by the maximum membership degree scheme, the weighted average method, the F distribution method, and other methods. Among them, the maximum membership degree method is the simplest and the most popular method. Therefore, this paper uses the maximum membership degree method to deal with the evaluation results. The final sentiment of the blog is classified as low-level negative. As shown in Figure 7, the low-level negative membership degree has the highest value. Moreover, if the difference between the low-level negative and positive membership degrees is less than the threshold, the blog is regarded as a neutral category. It means the membership degree is 0 and vice versa. Through multiple experiments, it can achieve the best performance if the threshold is set to 0.003.Figure 5
The degree of the strength membership.Figure 6
The calculation results ofuq.Figure 7
The comprehensive evaluation results.The content of the blog post: “Very lucky, the kidney of Zheng does not fail, and it has been out of danger. My friend and I are going back to Litang first, as Bubu is waiting for us. A friend in Chengdu will help us to take care of it. It looked aggrieved and unhappy when we said goodbye. The poor dog really suffers but is very tough.”


## 4.3. Experimental Comparisons Based on Different Dictionaries

The proposed comprehensive dictionary is compared with HowNet [37] and National Taiwan University Sentiment Dictionary (NTUSD) [38] in Table 6. As shown in Table 7, HowNet contains 38 propositions, while NTUSD only includes sentiment words. It can be seen from Table 6 that the proposed comprehensive fuzzy dictionary can outperform the HowNet and NTUSD. In addition, the recall rate and F1 value of HowNet are higher than those of NTUSD for both positive and neutral blogs. However, in terms of the negative blogs, the performance of NTUSD is slightly better than that of HowNet, since the number of the negative words is small.Table 6
Comparison of dictionary experiment results.
PrecisionRecallF1NTUSDHowNetOursNTUSDHowNetOursNTUSDHowNetOursPositive blog0.7110.7670.8570.7470.760.8120.7290.7640.834Neutral blog0.6940.6670.7820.5480.6310.7680.6120.6490.775Negative blog0.7990.7520.8270.730.7570.7910.7630.7540.801Bold values intuitively compare and emphasize the effectiveness of the fuzzy dictionary established in this article.Table 7
The specific conditions of different dictionaries.
CategoryHowNetNTUSDPositive words45662812Negative words43708278Degree adverbs2190Advocate words380


## 4.4. Comparison of Methods

To verify the proposed method, four baseline tests are conducted as follows:(1)
Extended dictionary + semantic rules [2], which combines the extended dictionary with semantic rules, hereinafter referred to as Method 1.(2)
Improved multilayer CNN network [13], which increases the number of convolution layers, hereinafter referred to as Method 2.(3)
Dictionary + fuzzification, which integrates the sentiment dictionary with general fuzzification and is referred to as Method 3.(4)
Fuzzy rules + Mamdani fuzzy reasoning [23], where Mamdani fuzzy reasoning is utilized and the scheme is referred to as Method 4.Figures8–11 show all comparative experiments and the experimental results of the method in this paper on the correct rate, recall rate, F1 value and average results of positive, neutral and negative blog posts. The performance of method 3 is the most unsatisfactory. It can be seen that the general fuzzy rules have too much freedom and cannot improve the classification effect very well. Method 4 with the related fuzzy rules further improves the correctness and stability of the fuzzy methods and it almost reaches the effect of the traditional method. The method in this paper introduces hesitating fuzzy and fuzzy evaluation rules on the basis of the basic fuzzy method, so that the fuzzy limit is well controlled. The experimental results also show that the method in this paper performs best among several methods, and the classification effect is better improved. And the classification result is more stable than method 2 with better accuracy.Figure 8
The precision comparisons of different methods.Figure 9
The recall rate comparisons of different methods.Figure 10
TheF1 value comparisons of different methods.Figure 11
The average value comparisons of different methods.


## 4.5. Application Experiment

In this section, the topic “#teachers discriminate students after comparing the income of their parents #” is studied for the sentiment orientation experiment. The blog posts under this topic are crawled every half hour, which obtains 253, 644, 1105, and 1512 blog posts in each crawling. Firstly, each crawled post is processed by the sentiment classification, and the proportions of the positive blogs and negative blogs are obtained, respectively. Then, the proportions of low-level negative blogs and strong-negative blogs are calculated among the negative blogs. In this way, the proportion of negative sentiment blogs is monitored under the topic, which can decide whether the intervention is required. As shown in Figure12, the number of positive sentiment blogs under the topic is not more than 12%. Although varying over time, the number of low-negative blogs is much larger than that of strong-negative blogs at each period. It implies that their sentiment intensity is not very strong, even though people have relatively negative attitudes. Moreover, the sentiment intensity is not strengthened over time and maintains the same level. As a result, the app administrator can continue to supervise and analyze the posts of this topic without any intervention.Figure 12
The proportions of different sentiment types in topic blogs.


## 5. Conclusions

This paper proposes an improved sentiment classification method MD-HFCE based on fuzzy improvement. The method normalizes multimodal features and standardizes fuzzification. The main task of this research is to establish a special Weibo fuzzy dictionary and the design of dual hesitation fuzzy inference classification rules. Experiments have verified that the method in this paper has achieved good results.However, there are still many areas that need to be improved. First of all, the classification results of neutral blog posts are not ideal, and the model output membership function and determination threshold need to be further optimized and improved. Secondly, the emotion classification is single and not detailed enough.In the future, after the method in this paper is further improved, it can be combined with neural networks and knowledge graphs to form a hesitant fuzzy network for direct conversion of fuzzy information and target recognition; in addition, the method combined with sentiment analysis can also be used in social software community discovery, emotional robot dialogue, and so forth.



---

*Source: 7457585-2021-09-23.xml*