Hierarchical Network Emotional Assistance Mechanism for Emotion Cause Extraction

)e fine-grained task of emotion analysis, emotion cause extraction, is a current research hotspot. It aims to discover the underlying reasons behind the emotional expression in texts. Most of the existing work regards the task as an independent text clause classification problem, ignoring the relationship between the clauses and failing to use the indicative relationship between emotional sentences and emotional cause sentences.)e existence of these problems greatly affects the accuracy of the task. In this work, an emotion cause extraction method based on a hierarchical network emotional assistance mechanism is proposed. )is method uses a hierarchical network composed of bidirectional gated recurrent units, attention mechanism, and graph convolutional networks to capture clause context information, deep semantic information, and structural information between clause neighborhoods. At the same time, by enhancing the emotional information representation of the graph convolutional network nodes, the clause features of the text emotional keywords are introduced into the discovery of candidate cause sentences. )us, a model of the deep neural network combined with the emotional assistance mechanism is established. Compared with the existing methods, the model established in this paper has better classification performance on the Chinese emotion cause dataset.


Introduction
In recent years, with the rapid development of the Internet, people can express their views and experiences and share their views and attitudes towards current events anytime and anywhere, which makes the number of available texts with emotional tendencies increase sharply, and the text emotion analysis in natural language processing has attracted more and more attention. At present, there are many research tasks in text sentiment analysis, such as text sentiment summary, stance detection, sentiment element extraction, and emotion cause extraction. Among them, the task of emotion cause extraction (ECE) was first proposed by Lee et al. [1]. e goal is to trace the source of the emotion contained in the text and find the reasons that trigger the emotional tendency. Since ECE is a more fine-grained task in text sentiment analysis, emotional reasons can provide more details about emotional stimulation and expression, and this information is often very useful for product services and public opinion supervision. For example, the company pays attention to users' feedback on products, to better understand the actual needs of users which can improve product performance in a targeted manner. Decision-makers not only know the public's sentimentality towards the event, but also know the reasons for this attitude, so they can provide more effective solutions to control the trend of the event.
e example of emotion cause extraction is shown in Table 1. is text contains five clauses, which are composed of three parts: event background, emotional words, and emotional reasons. e orange sentence is an emotional sentence, which contains the emotional keyword "happily." e emotional cause of "happily" is "her son was rated as an excellent soldier" in the blue sentence, and the sentence is the emotional reason sentence. e purpose of the ECE task is to identify the cause clauses that trigger emotion according to the emotional tendency of the text.
To solve the mentioned problems, a hierarchical network emotional assistance mechanism (HNEAM) for emotion cause extraction is proposed. First, a pretraining model of Bidirectional Encoder Representation from Transformers (BERT) is used to extract the semantic feature sequence of the text, and then the semantic information within the clause is captured through the bidirectional gated recurrent units and the attention mechanism. en, the graph convolutional network is used to capture the semantic and structural information between the clause neighborhoods. In this process, the emotional assistance mechanism is used to encode the clause where the emotional keyword is located in the text, and the emotional sentence features in the same text are used to enhance the emotional information representation of the graph convolutional network nodes. us, the ECE model of the deep neural network combined with the emotional assistance mechanism is established. e main contributions of this paper are summarized as follows: (1) An emotion cause extraction model based on a hierarchical network emotional assistance mechanism is proposed. e model uses the relationship between text clauses, the deep semantic information and structural information between clause neighborhoods, and the indicative relationship between emotional sentences and emotional cause sentences to help find emotional cause sentences in text.
(2) Based on the close relationship between emotional reasons and emotional information, this paper proposes an emotional assistance mechanism. is mechanism enhances the expression of emotional information of graph convolutional network nodes by using the characteristics of emotional sentences in the same text. Finally, the performance of ECE is improved.
(3) e validity of the proposed model is verified on the Chinese emotion cause dataset. Finally, better performance of the task is obtained in 11 compared experiments, and the F1-score value is increased from 77.43% to 79.39%. e rest of this paper is structured as follows. Section 2 mainly discusses the related work. Section 3 introduces the HNEAM model proposed in this paper for emotion cause detection. Section 4 describes our detailed experiments and evaluates the results. Finally, Section 5 summarizes the research ideas of this paper and proposes future work.

Related Work
e main purpose of ECE is to automatically find the direct or indirect causes that cause emotions to be generated or changed. In this section, we will introduce the related work of emotion cause extraction and graph convolutional network.

Emotion Cause Extraction.
e task of ECE has attracted attention in recent years. e research methods mainly include rule-based methods, traditional machine learning methods, and deep learning methods.

Emotion Cause Extraction by Rule-Based Methods.
Lee et al. [1] first proposed the emotion cause extraction task in 2010 and defined it as a word-level sequence annotation problem. Firstly, they manually constructed a Chinese ECE corpus; then, they analyzed the characteristics of the corpus and manually labeled the position of emotional words, emotional reasons, and event types of the text. rough the statistical analysis of the labeled corpus, they summarized nine linguistic rules from the results and found emotional reasons based on these rules.
Chen et al. [2], by analyzing the corpus constructed by Lee 1, proposed a multi-tag-based ECE method to analyze the relative position of emotional keywords and emotional causes in the text. When extracting the cause features, the two methods of automatic feature extraction and manual feature extraction are combined to ensure the completeness of the extracted features.
Neviarouskay et al. [3] constructed an emotional tagging corpus specific to 22 emotions in 2013. Based on the analysis of this corpus, they used the dependency syntactic analysis and the establishment of an external emotional knowledge corpus to assist in extracting the linguistic relationship Table 1: e example of emotion cause extraction. C1 前不久, 马志敏收到了从部队寄来的喜报 ( e lady lately received good news from the army) C2她的儿子因表现突出被评为优秀士兵 (her son was rated as an excellent soldier because of outstanding performance) C3 马志敏和丈夫幸福的笑看着这红红的喜报 (the lady and her husband smiled happily looking at the good news) C4 如今退休后的马志敏重新回到房山法院 (now retired she back to the Court) C5负责接待群众来访法律答疑等工作 (Responsible for the reception of public visits and legal questions and other work) between eight types of emotional sentences and emotional reason sentences in the text.
Different from most methods based on statistics and rules, Li et al. [4] proposed a rule method based on knowledge transfer to find emotional causes by introducing knowledge in other fields such as sociology.
e above rule-based ECE methods have good controllability and interpretability, but the construction of the ruleset requires a lot of manual participation, and the coverage of rules is not high, which cannot cover all text features.

Emotion Cause Extraction by Traditional Machine
Learning Method. Gui et al. [5] constructed the microblog emotion cause corpus and proposed a traditional machine learning method. ey extracted 25 emotion cause matching rules from the labeled corpus. Based on these rules, they extracted the features that can be used by machine learning and then used the traditional machine learning methods of support vector machine and conditional random field to extract emotion causes.
Xu et al. [6] further explored the emotional cause discovery task based on rules and knowledge transfer. Since there was no publicly available dataset, they first constructed and labeled the emotional cause dataset. en, on this basis, an ECE method based on event extraction and a multicore support vector machine framework is proposed, and the undersampling method is used to solve the problem of imbalance of the dataset.
Gui et al. [7] released a corpus of Chinese emotional causes based on Sina news in 2016, which is now regarded as the benchmark dataset for the ECE task. e dataset was annotated according to the emotion markup language published by the World Wide Web Consortium (W3C), and the ECE task is defined as the binary classification problem of clauses to judge whether each candidate clause is an emotional cause sentence. ey used a syntactic tree to represent the text and proposed an event-driven method for finding emotional causes by improving the synonym of the traditional convolution kernel.
Methods based on traditional machine learning usually need to find effective features related to the expression of emotional reasons. Although such methods have achieved better experimental results than rule-based and statistical methods, they often need empirical guidance for feature extraction and screening and are sensitive to missing data. Moreover, it is impossible to complete the modeling of the sequence relationship between clauses in the text, and it is difficult to dig into the latent semantic information of the context in the text.

Emotion Cause Extraction by Deep Learning Method.
In recent years, with the rapid development of deep learning technology, this technology has also been applied to the extraction of emotional causes.
Gui et al. [8] regarded ECE as a question and answer task and built a question answering (QA) system on the deep network. Emotional keywords are used as query words, and context clauses are input into the system as questions. e deep relationship between emotional query words and text reason candidate clauses is learned through the network.
rough the analysis of the corpus, Ding et al. [9] found that in addition to the text content, the location information and global label information of the text are also very important for the identification of emotional causes. ey proposed a model based on a neural network architecture to encode and integrate the above three elements in a unified end-to-end manner.
Yu et al. [10] proposed a clause selection framework based on a hierarchical network, which detects emotional cause sentences from word-level, phrase-level, and sentencelevel coding information. e framework not only considered the semantic information within the clause, but also captured the relationship between the contexts in the text.
Xia et al. [11] proposed a joint emotion cause extraction framework called RNN-Transformer Hierarchical Network (RTHN). RTHN encoded the words in clauses by a wordlevel encoder based on RNN and captured the relationship between text clauses by a clause-level encoder based on the transformer to realize synchronous modeling and classification of multiple clauses in the text. At the same time, the relative position information of the text and the global label information are encoded into the transformer method.
Li et al. [12] proposed a model based on a multi-attention neural network. e model encodes the clause via bidirectional long short-term memory and captures the mutual influences between the emotional clause and candidate cause clauses through multi-attention mechanism, so as to obtain better-distributed representations of the emotional expressions and clauses.
Wu et al. [13] presents an emotion cause extraction method that incorporates rule distillation within a hierarchical attention network. e hierarchical attention network uses position encoding and residual structure to capture the latent semantic relationships within the text clauses. With the help of knowledge distillation technology, relevant linguistic rules are introduced to guide the learning of neural networks.
Hu et al. [14] proposed a graph convolutional network over the interclause dependency to fuse the semantics and structural information. e model could automatically learn and select relevant clauses useful for the task. us, the model could capture remote information from semantic and structural information.
Aiming at the unbalanced distribution of datasets [15], Yan et al. [16] studied the existing ECE methods and found the dependence of the model on the relative position of clauses. ey proposed a novel strategy to generate adversarial examples in which the relative position information is no longer the indicative feature of cause clauses. ey also proposed a novel graph-based method to enhance the semantic dependencies between a candidate clause and an emotion clause by leveraging the commonsense knowledge.

Graph Neural Network.
e graph convolutional network (GCN) was first proposed by Bruna [17]. Kipf and Welling [18] first applied GCN to node classification task. Since then, GCN has been widely used in various natural Security and Communication Networks language processing tasks. Marcheggiani et al. [19] first proposed to model the syntactic information of the text with a GCN, and use GCN as a sentence encoder to generate a representation of the word feature sequence in a sentence. Zhang et al. [20] introduced GCN to solve aspect-level sentiment analysis tasks. ey used syntactic information and word dependence to build a graph neural network to solve the problems of syntactic constraints and long-distance word dependence. Ghosal et al. [21] proposed the dialogue graph convolution network. ey use the self-dependence of interlocutors and the dependence between speakers to establish the conversational context model of emotion recognition, so as to solve the problem of context information dissemination in RNN.
To sum up, the application of deep neural network technology makes the task of finding emotional causes no longer an independent clause classification task and can capture the relationship between contexts in the text. However, the existing research on the ECE task does not consider the semantic and structural information between the text neighborhoods in the text context information modeling and does not take into account the indicative relationship between emotional sentences and emotional cause sentences.

Methodology
In this section, we first define the task of ECE and then propose the framework of a hierarchical network emotional assistance mechanism for emotion cause extraction.
3.1. Task Definition. ECE task is mainly to dig out the reasons behind the emotional information generated by documents through effective methods. e document and result label of the task are as follows: Document: A passage text is composed of event background, emotional keywords, and emotional reason sentences. Since the ECE task is a clause-level task, this paper uses d � c 1 , c 2 , . . . , c i , . . . , c n to represent a text containing n clauses, where c i means the i-th clause in the text. Each clause is composed of multiple words, so c i � w i1 , . . . , w it , . . . , w im is used to indicate that the clause is composed of m words.
Result label: e goal of ECE task is to predict whether a clause of the document is the cause of the affective tendency of the text. e prediction result of each clause in the text is the output of the model indicating whether the clause is an emotional reason sentence. If yes, it is represented by 1; otherwise it is represented by 0.
A specific example of the ECE task is shown in Table 2. e number of clauses in the text is 5. e position of sentence C3 is 0, which indicates the clause where the emotional keyword "happily" is located. e clauses with positions −1 and −2 indicate the clause before emotional sentence C3. e clauses with positions 1 and 2 indicate the clause after emotional sentence C3. e number indicates the relative distance from C3 sentence. e emotional cause clause is C2 sentence, so the result label value is 1, and the label of the other clauses is 0.

Hierarchical Network Emotional Assistance Mechanism.
Aiming at solving the existing problems of the ECE task, this paper proposes an emotion cause extraction method based on hierarchical network emotional assistance mechanism. e overall framework of the model is shown in Figure 1. e first layer is the word-level encoder, which is composed of a BERT word embedding model, multiple bidirectional gated recurrent units (Bi-GRU) modules, and word-level interactive attention module. e second layer is the clause-level encoder. Bi-GRU is used to encode the vectors of the lower layer and learn contextual sequence information. e emotional sentences are internally learned through the BI-GRU module and attention mechanism to complete the construction of the characteristics of the emotional assistance mechanism. e last layer is the neighborhood information encoder, which uses GCN to model the neighborhood information of clauses in the text and extract context features. Finally, the softmax layer is used for result classification.

Word-Level Encoder.
The previous pretraining models such as word2vec and glove will be restricted by the oneway language model. ey also limit the representation ability of the model, so that they can only obtain one-way context information. BERT uses a masked language model for pretraining and deep bidirectional transformer components to build the whole model. It finally generates deep bidirectional language representation that can fuse left and right context information. It is convenient that there are publicly available Chinese pretraining models that can be used directly. erefore, the word embedding model in this paper selects BERT to extract the semantic features of the text.
BERT is a multilayer bidirectional converter model structure, which causes each word in the input sequence to be processed by the self-attention mechanism and obtains the new representation of the weighted sum of all word representations. rough the multilayer network structure, it can learn the representation containing more context interaction information. erefore, when sequence c i � w i1 , . . . , w it , . . . , w im is input into the BERT pretraining model, the words of each clause in the text will be mapped into 768 dimensional vector expressions. Finally, the output list of text is obtained, that is, the sequence of text semantic features.
en, the semantic feature sequence inside the clause obtained by BERT is input into the word-level encoder composed of multiple Bi-GRUs. e GRU not only maintains the excellent effect of LSTM, but also has the advantages of relatively simple structure, less time cost, and better convergence.
is paper adopts Bi-GRU neural network model. e words in each clause correspond to a Bi-GRU module. Bi-GRU is composed of forward GRU and backward GRU. is module accumulates context information for words in clauses and obtains the forward hidden state h → it and backward hidden state h In order to highlight the importance of the key information in the clause to the discovery of text reasons, a wordlevel attention mechanism is introduced to assign different probability weights to different word vectors. e input of attention layer is the output vector of Bi-GRU layer activation processing.
In (3)- (5), h it is the output vector of the upper layer, b w is the bias coefficient, w (n) i is the weight coefficient, and u w is the randomly initialized attention matrix. rough the attention mechanism, different weight probabilities are allocated and the product sum of each hidden layer state is accumulated. Finally, v i is the semantic expression of the clause.

Clause-Level Encoder.
e word-level encoder can only capture the semantic information within the clause, so the clause-level encoder is used to learn the context information of the text and extract the features of the clause where the emotional keyword is located.

Contextual Information Extraction.
In order to better learn the context information and the deep-seated feature extraction of the text, the Bi-GRU neural network is adopted to make the output of the current time related to the state of the previous time and the state of the next time. e forward hidden state h → i and backward hidden state h ← i of the i-th clause in text d are obtained through Bi-GRU neural network.
e state output of Bi-GRU is spliced by h After the sequence training, the clause hidden state set v i � [v 1 , . . . , v i , . . . , v n ] is obtained.  Figure 1: e framework of our HNEAM model. e structure of the graph is given by a universal example; v iE represents the node of the clause where the emotional keyword is located in the text, v iE−p represents the first node with distance v iE as p, and v iE+q represents the last node with distance v iE as q. In the connecting lines of node pairs, the solid lines represent the D1 edges, the dashed lines represent the D2 edges, and the alternately dotted lines represent the SL side.

Emotional Feature Extraction.
e clause in which the emotional keyword is located in the text has an indicative relationship to the emotional cause sentence; that is, the candidate cause sentence does not exist independently of the emotional sentence. As shown in Figure 2, the clause where the emotional keyword is located has a certain guiding role and unique directivity for the discovery of the cause clause. erefore, this paper proposes an emotional assistance mechanism to mine this relationship.
In the ECE task, according to the rules established by the dataset, each text has only one emotion keyword and at least one reason sentence. erefore, when constructing the emotion assistance mechanism, it is not necessary to consider the fusion of multiple emotion key sentences in a single text.
To better explore the characteristics of the clause where the emotional keyword is located, after obtaining the expression of the clause v iE where the emotional keyword is located, the clause is first copied n times. en, the vector is sent to the Bi-GRU network and the attention mechanism.
is makes it better to learn the emotional features in the clause where the emotional keyword is located and obtain the final emotional feature vector E.
In (8) and (9), b wE is the bias coefficient, w iE is the weight coefficient, and u wE is the randomly initialized attention matrix. rough the attention mechanism, different weight probabilities are allocated, and the product sum of each hidden layer state is accumulated. Finally, E is the emotional feature vector.

Emotional Assistance Implement of GCN.
e clauselevel encoder of the HNEAM model only learns the context order information of the clause. In order to enable the model to learn more information provided by the text, not limited to the sequential learning of the context, this paper uses GCN to model the neighborhood information of the text.

Node Emotional Information Enhancement.
e node V i of graph convolution neural network is composed of the feature vector v i of each clause in the text and the emotion auxiliary vector E of the text. e purpose is to enhance the emotional information representation of graph convolution neural network nodes.

Neighborhood Information Coding.
According to the relevant information of the dataset provided by Gui et al. [7] ( Table 3), it can be seen that 85.5% of the corpus's cause sentences are located in 1 relative position of the emotional sentence, and 95.43% of the corpus's cause sentences are located in 2 relative positions of the emotional sentence. erefore, the positional structure information between the emotional cause clauses and the clause where the emotional keyword is located is the key information in the task of ECE. In order to make full use of the relative position information, the construction of the graph edges in this paper refers to Chen et al. [22]. ree types of edges are defined to represent the influence of the current node on the neighbor nodes, namely, the SL, D1, and D2 edges: (1) SL edge is self-looping edge of node.
(2) D1 edge indicates the edge with relative position of 1 between two clause nodes. (3) D2 edge indicates the edge with relative position of 2 between two clause nodes.
rough the construction of three edges, the neighborhood information of the clause is allowed to be transmitted through three edges to better extract the context information. Different weight matrices are used for context propagation according to different edges. In this paper, twolayer GCN is used to capture the neighborhood information of nodes through two graph transformations.
In the first transformation formula (12), W 1 D1 , W 1 D2 , and W 1 SL represent the weight matrix between the node and the three edges; z represents the node degree of the node; and σ represents the RELU activation function. e second transformation formula (13) uses the first output to obtain the representation g 2 i of node V i . W 2 D1 , W 2 D2 , and W 2 SL are the weight matrix updated after the first transformation.

Output Layer.
e essence of ECE task is classification task. erefore, this paper directly passes the representation of clauses through classifier and softmax layer to obtain the final output probability distribution O i . In (14), W is the weight matrix and b is the offset vector. Finally, the output is calculated by linear transformation.
3.7. Loss Function. e model proposed in this paper uses the backpropagation method to train the model end-to-end and uses the cross entropy loss function as the function of the optimization objective. e loss function is defined as follows. 6 Security and Communication Networks In (15), y i is the real label of the clause and y i is the predicted value of the clause. In this paper, the stochastic gradient descent method is used to optimize the objective function, and the dropout technique is used to alleviate the problem of overfitting.

Experiments and Analysis
In this section, we first introduce the basic information of the dataset used in the experiment, then describe the evaluation indicators and experimental settings of the experiment, carry out the experiment, and finally analyze the results of the model proposed in this paper.

Dataset.
We select the Chinese emotion cause dataset based on Sina news [7]. is dataset is the largest Chinese dataset for the ECE task. e corpus has 2105 texts and 11799 clauses, including 2167 emotional cause sentences. Each text contains an emotional sentence and one or more emotional cause sentences. e details of the dataset are shown in Table 4.

Evaluation Metrics.
We divided the dataset into training data and test data in a ratio of 9 : 1, respectively. In order to obtain statistically reliable results, the experiment was repeated 10 times, and the average results were taken to evaluate the performance of the model. e experiment uses precision, recall, and F1-score to verify the method proposed in this paper.
In this article, positive samples represent reason sentences in the text, and negative samples represent non-cause sentences in the text. e confusion matrix is shown in Table 5, where TP represents the number of samples with the correct prediction of causal sentences, TN represents the number of samples with non-cause sentences predicted as non-cause sentences, FP represents the number of samples with the wrong prediction of causal sentences, and FN represents the number of samples with non-cause sentences predicted as causal sentences. e calculation method of each indicator is as follows.

Training Details.
We use a Chinese pretraining model based on BERT, where the number of hidden layers is set to 768 layers, the number of network layers is 12 and the word embedding dimension is 768. Other parameters of our model are listed in Table 6. e numbers of the hidden BI-GRUs and the hidden GCN units are the optimal values obtained by fine-tuning the model based on the experimental settings of Chen [22]. Each training batch contains 32 texts. If the batch size is too small, the training time of the model increases and the gradient oscillation is serious; if the batch size is too large, the final convergence accuracy fails to reach the optimal value. With the increase of the learning rate, the loss of the model will first decrease and then increase. erefore, the optimal learning rate is selected from the region with the least loss. rough the experiment, it is found that the model in this paper has the best performance when the learning rate is set at 0.001.     U(−0.01, 0.01). Moreover, the model is based on the Adam optimizer training.

Result Analysis.
In this section, we first verify the superiority of the HNEAM model proposed in this paper through comparative experiments, then show the influence of the optimization strategy inside the HNEAM model on the ECE task, and analyze the results.

Comparison with Existing Methods.
To verify the effectiveness of the HNEAM model, based on the dataset described in 4.1, the HNEAM model is compared with a variety of benchmark methods. e specific conditions and parameters of the benchmark method in the experiment are described as follows: (1) Rule-based approach (i) RB: Lee et al. [1] proposed an emotion cause extraction method based on rule matching. (ii) CB: Russo et al. [23] proposed an emotion cause extraction method based on common sense matching.
(2) Traditional machine learning approach (i) RB + CM + ML: support vector machine classifier is used based on CB method and RB method [2]. (ii) Multikernel: Gui et al. [7] proposed a method on multicore support vector machine classifiers.
(3) Neural network approach (i) PAE-DGL: Ding et al. [9] proposed a prediction model that integrates relative position information and dynamic global labels. (ii) HCS: Yu et al. [10] proposed an emotional cause extraction method based on CNN-RNN hierarchical network. (iii) RTHN: Xia et al. [11] proposed a hierarchical emotion cause extraction method based on RNN and transformer. (iv) MANN: the model proposed by Li et al. [12] uses a multi-attention mechanism to capture the interaction between emotional clauses and candidate causal clauses to obtain better clause representation. (v) RD-HAN: Wu et al. [13] proposed a method of finding emotional cause combined with rule distillation.
(vi) FSS-GCN: Hu et al. [14] proposed an emotion cause extraction method based on GCN, which could automatically learn and select relevant clauses useful for the task. (vii) KAG: Yan et al. [16] proposed a novel graphbased method to explicitly model the emotion triggering paths by leveraging the commonsense knowledge to enhance the semantic dependencies between a candidate clause and an emotion clause.
According to the performance comparison of the ECE methods in Table 7, the HNEAM model proposed in this paper obtains the best performance. Firstly, in the rule-based methods, the accuracy of RB is high, but the recall rate is low.
e CB method has a high recall rate, but the accuracy rate is very low. e difference between accuracy and recall obtained by traditional machine learning methods is relatively stable and higher than those of rule-based methods. It can be seen that the methods based on traditional machine learning are better than the methods based on rules and external knowledge introduction. is is because, through complex feature engineering, effective features related to emotional reasons can be extracted to obtain better performance. However, the HNEAM model proposed in this paper is superior to all traditional machine learning methods. Finally, we compare the method with the methods based on the neural network proposed by predecessors. Compared with the rule-based and the traditional machine learning methods, the performance of the hierarchical network and attention-based models such as RTHN and MANN has been significantly improved, at is, the methods based on the neural network can not only obtain the semantic features of the text sequence, but also capture the relationship between clauses in the text. ese methods ignore the remote dependence between clauses in the text, resulting in the loss of information. FSS-GCN and KAG methods use the graph neural network model to effectively capture the clause information in the text, which improves the performance of the model. Nevertheless, the HNEAM captures the characteristics of text structure information and the characteristics closely related to emotional reasons and emotional information, so it achieves better performance.
In summary, the accuracy of the HNEAM model proposed in this paper is significantly higher than that of other existing methods. It proves that the HNEAM model reduces the information loss caused by the long-distance dependence of clauses due to the learning of the semantic and structural information of the text and can effectively complete the task of ECE. e recall rate is also higher than that of the previous optimal RTHN model, and the value increased by 0.0075. is shows that in the case of unbalanced dataset categories, the model uses GCN and assigns weights to different nodes, which can effectively increase the probability that the cause clause is predicted correctly. Due to the increase of P and R, F1 is also significantly higher than that of the previous method. F1 is 0.0196 higher than KAG model, which further proves the superiority of HNEAM model. (i) HNEAM-noEmo: in this method, the HNEAM model lacks emotional assistance mechanism. (ii) HNEAM-noGCN: in this method, the HNEAM model lacks neighborhood information encoder.
It can be seen from Table 8 that after the HNEAM model removes the emotional assistance mechanism, the values of the three evaluation indicators are reduced. e R and F1 are reduced by 0.0136 and 0.0092, respectively. is proves that the emotional assistance mechanism can fully explore the guiding effect of emotional sentences on emotional reason sentences, increase the proportion of correct reason sentences in the text, and increase the stability of the model. When the domain information encoder was removed from the HNEAM model, the values of the three evaluation indicators all dropped significantly.
is is because the removal of the neighborhood information encoder not only removes the GCN module, but also removes the emotional assistance mechanism, which exists in the nodes of the GCN. At the same time, this also illustrates the importance of the deep semantic information and structural information between clause neighborhoods in the task of ECE.

Impact of Word Embedding.
In order to verify the superiority of the semantic sequence obtained by BERT model, different word embedding methods are introduced to compare. e random initialization method initializes the word vector randomly for each word in the text according to a certain probability distribution. Word2vec is a popular word embedding method.
e experimental results are shown in Figure 3. e effect of the HNEAM model is better than the above two traditional word embedding methods, indicating the effectiveness of BERT's Chinese pretraining model in fusing the semantic information of the text.

Discussion on n c for Emotional Assistance Mechanism.
In Section 3.4.2, it is stated that after obtaining the expression of the clause v iE where the emotional keyword is located, the clause is first copied n c � n times, and then the final emotional feature vector E is obtained through the emotional assistance mechanism. e selection of n c is also the value with the best comprehensive effect of the evaluation index after experimental comparison. In this paper, the n c � 1/0.5n/n/1.5n/2n/3n numerical values are selected in turn for experimental comparison, and the results are shown in Figure 4. It can be seen from the figure that with the increase of n c , the neural network learns more information. However, the learning content is limited, so the accuracy rate increases first and then gradually stabilizes with the increase of n c . e recall rate begins to decrease when the value of n c increases to a certain value, indicating that when n c reaches the value of n, the proportion of the reason sentences in the corpus that are predicted correctly is the largest. erefore, by combining the two evaluation indexes, when n c � n, the addition of emotional assistance mechanism makes the model achieve the best performance.

Different Emotional Assistance Mechanism.
e emotional assistance mechanism in the HNEAM model proposed in this paper mainly uses the Bi-GRU network combined with the attention mechanism. is mechanism can pay attention to the key information of clauses where emotional keywords are located and conduct sufficient learning. In order to verify the effectiveness of this method, the direct assistance method of emotion and the method of bidirectional gated recurrent unit are used to explore the method.
(i) HNEAM-Di: in this method, after the text is learned by the clause-level encoder, the feature vector v iE of the clause where the emotional keyword is located is directly spliced to the node of the constructed graph neural network.   (ii) HNEAM-Bi: in this method, after the text is learned by the clause-level encoder, the feature vector of the clause where the emotional keyword is located is copied n times to align with the total number of sentences in the text. Furthermore, only the Bi-GRU network is used to preserve the important features of the clause.
From the analysis of the results in Table 9, it can be seen that the values of the direct assistance method of emotion to the graph nodes is lower than those of the method of learning the emotional sentence features again It shows that only learning simple context information cannot effectively extract the characteristics of the clause where the emotional keyword is located. e P and F1 of the experimental results using Bi-GRU network combined with attention mechanism are higher than those using Bi-GRU network only, which shows that Bi-GRU network combined with attention mechanism can more effectively mine the important features of clauses when learning the features between the same clauses. is proves the effectiveness of the emotional assistance mechanism method proposed in this paper.

Conclusion and Future Work
A method based on hierarchical network emotional assistance mechanism for ECE tasks is proposed. By constructing a hierarchical network to encode the deep semantic information within the text clauses and between the clauses neighborhoods, the relationship between multiple clauses in the text can be effectively learned. In addition, in order to solve the problem of not using the indicating relationship of the emotional sentence to the emotional cause sentence, the emotional assistance mechanism is proposed. is mechanism uses the clause features of emotional keywords to enhance the emotional representation of graph convolutional neural network nodes, thereby assisting the discovery of emotional reason sentences. e experimental results on Chinese emotion cause dataset show that the method in this paper achieves the best performance known in accuracy, recall, and F1.
However, during the research process, it was also found that the Chinese annotation corpus for the ECE task only contains news texts, so the transferability of the model proposed in this paper cannot be verified in other texts (such as social network dataset). At the same time, due to the lack of labeled corpus, the model is easy to overfit, which also has an impact on the design and training of the model. In the follow-up work, we will consider constructing a corpus with topical information and dig deeper into the important emotional cause of topic events. Aiming at solving the problems of feature selection and hyperparameter optimization involved in emotion cause extraction, swarm intelligence approaches will be considered [24][25][26][27][28].
Data Availability e data supporting this paper were obtained from previously reported studies and datasets, which are explained in Section 4.1.

Conflicts of Interest
e authors declare that they have no conflicts of interest.