A multi-perspective social media user stance detection method and device
By constructing heterogeneous graphs and learning representations from multiple perspectives, the problem of unused information diversity in social media user stance detection is solved, and more accurate user stance detection and public opinion trend analysis are achieved.
Patent Information
- Application Number
- CN202111635132.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-12-29
AI Technical Summary
Existing technologies fail to make full use of diversity information in social media user stance detection, resulting in insufficient topic representation, affecting user stance judgment, and failing to accurately analyze public opinion trends in a timely manner, which may result in unpredictable consequences.
A multi-perspective social media user stance detection method is adopted to learn representations from the user perspective, text perspective and topic perspective by constructing heterogeneous graphs, and weighted fusion of them to form a richer semantic topic representation and user representation for stance detection.
It achieves more accurate user stance detection, makes full use of the diversity of social media information, enhances topic semantic representation, can provide timely feedback on public opinion trends, and avoids the consequences of insufficient representation.
Smart Images

Figure CN114357290B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of sentiment analysis, and in particular to social media user stance detection. Background Art
[0002] Automatically extracting semantic information from natural language text is an important research issue. Among them, stance detection is to determine whether the opinions and attitudes expressed in a text on a target topic are supportive, neutral or opposed. With the rapid development of the Internet, a large number of users have expressed their opinions and views on current hot topics on social media. How to mine the stance information contained in these texts is a very practical issue. Most of the existing methods simply represent topics and texts, and then input them into the classifier to obtain the final stance results. There is a lack of comprehensive utilization of the relationship between topics, topics and users, topics and texts, etc., and it is difficult to learn more semantically rich topic representations, which leads to the inability to accurately analyze the user's stance on a topic. It is difficult to make appropriate early interventions for the trend of public opinion without timely and correct feedback, which may cause unpredictable consequences. Summary of the invention
[0003] The present invention provides a multi-perspective social media user stance detection method and device, which consists of two parts: a multi-perspective topic representation module and a multi-perspective user stance detection module;
[0004] The multi-perspective topic representation module receives input topics and comment texts from the outside, and constructs three heterogeneous graphs based on them, wherein a user perspective sub-view is constructed to obtain a user representation and a topic representation one, a topic perspective sub-view is constructed to obtain a topic representation two, and a text perspective sub-view is constructed to obtain a text representation and a topic representation three. Through the three topic representations, a multi-perspective comprehensive topic representation is calculated, that is, a topic representation of the three perspectives, and the user representation, the topic representation under the three perspectives, the topic representation of the three perspectives, and the text representation are output;
[0005] The multi-perspective user stance detection module inputs user representation, topic representation under three perspectives, topic representation of the three perspectives, and text representation, and obtains a text representation that integrates the topic representation based on the original comment text and the topic representation of the three perspectives. The text representation that integrates the topic representation is concatenated with the user representation, text representation, and topic representation, and linear classification is performed to obtain the stance detection results of the user stance under three different perspectives, and the weighted sum of the three user stances is obtained to obtain the final user stance, and the final user stance is output.
[0006] The three sub-views are represented as follows: user perspective sub-graph G1 = (A1, X1), text perspective sub-graph G2 = (A2, X2), topic perspective sub-graph G3 = (A3, X3), Ai and Xi represent the edge and node features contained in the perspective respectively, and the user representation E U , Topic Representation-E #1 , Topic Representation II #2 , Topic Representation Three E #3 , text representation E T The specific calculation process is:
[0007] E #1 ,E U =sigmoid(A1·X1·W1)+β 2→1 φ(E #2 )+β 3→1 φ(E #3 )
[0008] E #2 ,E T =sigmoid(A2·X2·W2)+β 1→2 φ(E #1 )+β 3→2 φ(E #3 )
[0009] E #3 =sigmoid(A3·X3·W3)+β 1→3 φ(E #1 )+β 2→3 φ(E #2 )
[0010] W1, W2, W3 are learnable parameters, β i→j represents the importance of perspective i to perspective j, φ is the mapping function that maps the topic representations of other perspectives to this perspective, and the topic representation E of the three perspectives working together # :
[0011] E # =a1*E #1 +a2*E #2 +a3*E #3
[0012] a1, a2, a3 are weights, which are updated using momentum. The formula is as follows:
[0013]
[0014] The text representation T that integrates the topic representation mix The calculation method is:
[0015]
[0016] Where x1 represents the text representation vector obtained after the original text passes through the encoder BERT, x2 represents the current topic representation vector obtained by using the topic representation output by the multi-view topic representation module to retrieve the current topic, and W Q , W K , W V are randomly initialized learnable parameters, is the normalization function.
[0017] The specific calculation method of the user standpoint of the standpoint detection results under the three different perspectives is: user standpoint 1 is recorded as stand1, user standpoint 2 is recorded as stand2, and user standpoint 3 is recorded as stand3:
[0018] stand1=sigmoid(W 1 [T mix ||E U ]+b 1 )
[0019] stand2=sigmoid(W 2 [T mix ||E #2 ]+b 2 )
[0020] stand3=sigmoid(W 3 [T mix ||E T ]+b 3 )
[0021] Among them, W i and b i (i=1,2,3) is a learnable parameter, and [x||y] is a vector concatenation operation.
[0022] The final user stand is realized by stand=a1*stand1+a2*stand2+a3*stand3.
[0023] The loss function of the method is constructed as:
[0024] Loss = CrossEntropy(stand,y)
[0025] in, The cross entropy function is used to measure the difference between x and y, where x is the predicted position and y is the true position.
[0026] The present invention has at least the following beneficial effects:
[0027] 1. The present invention makes full use of the diversity of information categories on social media, and proposes to construct a heterogeneous graph with information of different categories. Taking the topic as the center, the heterogeneous graph is observed from three perspectives to obtain three subgraphs, which are then learned and weightedly summed using independent graph neural networks to obtain a topic representation with richer semantics.
[0028] 2. The present invention designs a framework for social media user stance detection that includes two sub-modules. The topic representation module outputs a representation for use by the stance detection module. The stance detection module learns weight parameters that are shared with the topic representation module. The two sub-modules interact with each other to form a whole to complete the stance detection task.
[0029] Other advantages, objectives and features of the present invention will be embodied in part through the following description, and in part will be understood by those skilled in the art through study and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 Flow chart of the technical solution of the multi-perspective social media user stance detection method and device;
[0031] Figure 2 Example of the structure of a heterogeneous graph;
[0032] Figure 3 Schematic diagram of three sub-graphs centered on the topic;
[0033] Figure 4 The corpus-related word network structure of the topic of the solution in the embodiment;
[0034] Figure 5 User perspective subgraph of the solution in the embodiment;
[0035] Figure 6 Text perspective sub-graph of the solution in the embodiment;
[0036] Figure 7 Topic perspective subgraph of the solution in the embodiment; DETAILED DESCRIPTION
[0037] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments so that those skilled in the art can implement the invention with reference to the description.
[0038] In view of the problem that existing research cannot fully utilize the diversity of social media resource information, resulting in insufficient topic representation and thus affecting the judgment of user stance, the present invention proposes to construct a complex heterogeneous network centered on topics and interacting with multiple information categories. The semantic information of topics is enriched through the interaction of multiple different categories of information and topics in the network, and the network is observed from the user perspective, topic perspective, and text perspective respectively to obtain three topic-centered sub-networks. Each network represents the topic semantics under different observation perspectives, which fully enriches the topic semantics. At the same time, user representation and text representation under the complex network can also be obtained. The three together realize the task of social media user stance detection.
[0039] In order to achieve these purposes and other advantages according to the present invention, a multi-perspective social media user stance method and apparatus are provided, comprising:
[0040] Multi-view topic representation module:
[0041] The input of this module is the original corpus, including all users and corresponding posts, and the output is user representation, text representation, and multi-perspective comprehensive topic representation.
[0042] First, we obtain the original corpus, perform data preprocessing, and store it in the database. Since the corpus contains a wide variety of information, which influence and interact with each other, in order to utilize the information association between the same category and different categories, we use the user information, text information, topic information, and photos or videos attached to the comments in the database to construct a complex heterogeneous graph containing the above five types of nodes. Among them, in the stance detection task, the topic is the core object of detection. The traditional stance detection method is to simply model the topic text, ignoring the interaction between the topic and other factors, making it difficult to obtain a suitable topic representation, thereby reducing the performance of the task. In order to obtain a more semantically rich topic representation, we observe the heterogeneous graph from three different perspectives with the topic as the center. Each perspective will extract some nodes to form three subgraphs centered on the topic, namely the topic subgraph under user constraints, the topic subgraph under topic co-occurrence constraints, and the topic subgraph under text constraints. The node representation of each subgraph is obtained by learning using a graph neural network, and a better topic representation, user representation, and text representation are obtained after weighted summation. The specific process is as follows:
[0043] First, we construct a heterogeneous graph G=(A,X) containing five types according to the information in the database, where A represents the adjacency matrix of the heterogeneous graph, which is a two-dimensional matrix, and each element Aij represents whether there is an edge between node i and node j (1: yes, 0: no); X is the feature vector of the node, which is a two-dimensional matrix, and each row Xi represents the feature vector of node i. The node type features and edges are as follows:
[0044] There are five types of nodes in the complex heterogeneous graph: user information, text information, topic information, photos attached to comments, and videos attached to comments; there are nine types of edges: topic-user, topic-text, topic-topic, topic-picture, topic-video, text-text, text-photo, text-video, and user-user.
[0045] In addition to the relationships that come with the data, other relationship construction rules are as follows:
[0046] Topic-topic: When the co-occurrence times of two topics in the same comment text exceeds the set threshold, the two topics are connected.
[0047] Topic-Picture / Video: If the comment text is accompanied by a photo or video, the topic contained in the text will be linked to the corresponding photo or video.
[0048] User-user: When different users follow a topic and post corresponding comments at the same time, the two users are connected.
[0049] After constructing the above heterogeneous graph, we observe the graph from three perspectives with the topic as the center and obtain three subgraphs, such as Figure 3 These include:
[0050] User perspective subgraph G1 = (A1, X1): Since the same topic may have different semantics for different users, different users will have different views and positions on the same topic from the user's perspective, and a topic representation that integrates user information can be obtained. A1 and X1 represent the edge and node features contained in this perspective, respectively.
[0051] Text perspective subgraph G2 = (A2, X2): Different from the user perspective G1, the comment text is a discussion and opinion on the topic. The topic is the theme or summary of the content expressed in the text. Looking at the topic from the perspective of the text can obtain a semantically enhanced topic representation. A2 and X2 represent the edge and node features contained in this perspective respectively.
[0052] Topic perspective subgraph G3 = (A3, X3): In addition, the present invention further explores the natural correlation between topics. When two topics co-occur frequently, it can be inferred that the two topics are strongly related. Other topics can enhance and inspire the current topic. Therefore, the co-occurrence correlation between topics can be used to obtain a better topic representation. A3 and X3 represent the edge and node features contained in this perspective, respectively.
[0053] In view of the above three perspectives, the present invention proposes a hybrid perspective heterogeneous graph neural network framework. Specifically, each perspective first learns its own representation, and then builds a cross-perspective fusion mechanism to map the topic representations of other perspectives to this perspective for fusion, and finally obtains the learned user representation E U , Topic Representation 1E #1 , Topic Representation 2E #2 , Topic Representation 3E #3 , text representation E T The specific calculation process is:
[0054] E #1 ,E U =sigmoid(A1·X1·W1)+β 2→1 φ(E #2 )+β 3→1 φ(E #3 )
[0055] E #2 ,E T =sigmoid(A2·X2·W2)+β 1→2 φ(E #1 )+β 3→2 φ(E #3 )
[0056] E #3 =sigmoid(A3·X3·W3)+β 1→3 φ(E #1 )+β 2→3 φ(E #2 )
[0057] Among them, select As a nonlinear activation function to capture nonlinear features, W1, W2, W3 are learnable parameters, β i→j represents the importance of perspective i to perspective j (also a learnable parameter), φ is a mapping function (such as a linear layer) that maps the topic representation of other perspectives to this perspective, and β i→j Together with φ, it forms a cross-view fusion mechanism.
[0058] Use weights a1, a2, a3 to represent the above three topics E #1 ,E #2 ,E #3 Perform weighted summation to obtain the topic representation E of the three perspectives # :
[0059] E # =a1*E #1 +a2*E #2 +a3*E #3
[0060] The weights a1, a2, and a3 are shared by the subsequent multi-view user stance detection module and are updated using momentum. The formula is as follows:
[0061]
[0062] in Shared by the multi-view user stance detection module.
[0063] At the same time, the user representation E U , text representation E T ,Finally, this module outputs the above three representations simultaneously.
[0064] Multi-view user stance detection module:
[0065] The input of this module is the information that needs to be detected, including user information, topics and comment text, and the output is the user's stance on the topic.
[0066] First, we use the text encoder BERT to represent the original comment text to get BERT(text), denoted as x1, and retrieve the topic representation E output by the multi-view topic representation module according to this topic. # , take out the topic representation E corresponding to this topic #i , recorded as x2, perform self-attention operation on x1 and x2 and obtain the text representation T that integrates the topic representation mix :
[0067]
[0068] Where W Q , W K , W V are all randomly initialized learnable parameters, is the normalization function.
[0069] The purpose of this step is to obtain a text representation T that incorporates rich topic information. mix , enhancing the topic information contained in the text. mix The user representation E output by the multi-view topic representation module U , text representation E T , independent topic representation E #2 After concatenation and linear classification, we can get the stance detection results under three different perspectives: User stance 1, User stance 2, and User stance 3:
[0070] stand1=sigmoid(W 1 [T mix ||E U ]+b 1 )
[0071] stand2=sigmoid(W 2 [T mix ||E #2 ]+b 2 )
[0072] stand3=sigmoid(W 3 [T mix ||E T ]+b 3 )
[0073] Among them, W i and b i (i=1,2,3) is a learnable parameter, and [x||y] is a vector concatenation operation.
[0074] Then the weight parameters are shared with the multi-view topic representation module, and the weighted sum is used to obtain the final user position:
[0075] stand=a1*stand1+a1*stand2+a1*stand3
[0076] The above two modules are constructed into an overall model for joint learning, and the loss function is as follows:
[0077] Loss = CrossEntropy(stand,y)
[0078] in, The cross entropy function is used to measure the difference between x and y (in the present invention, x is the predicted position and y is the actual position).
[0079] The overall model completes the user stance detection task in two stages: training stage and prediction stage.
[0080] In the training phase: the three independent graph neural networks mentioned above are used to learn and output semantically enhanced topic representation, text representation and user representation. Then the stance detection task is carried out. As the model is trained, the model parameters are continuously optimized to obtain the trained user stance detection model.
[0081] In the prediction stage: input the user and the comments made by the user on a specific topic, use the trained model to calculate the corresponding topic representation, text representation and user representation, and finally output the final user stance through the multi-view user stance detection model.
[0082] Among them, in the implementation example, we chose the topic #Preventing Flu to specifically explain the entire implementation process.
[0083] like Figure 2As shown in the figure, the present invention provides a method and apparatus for detecting the stance of social media users from multiple perspectives. The input is the user and the comments made on the topic, and the output is the stance of the user towards the topic, including two modules:
[0084] Multi-perspective topic representation module: First, we obtain the original corpus for preprocessing. The data preprocessing includes simple data cleaning, converting Cantonese to Mandarin (by calling the interface API), converting emoji to English words (by calling the interface API), etc., and then storing it in the database. The database selects ES for easy use of full-text search. Using the topic information, comment text information, user information, photos attached to the comment text, and videos attached to the comment text, a complex heterogeneous graph is constructed. An example is shown as Figure 3 .
[0085] In this graph, the edges are connected according to the rules set above: If a user comments on a certain topic, then the user node is connected to the topic node and the comment text node; The co-occurrence times of the topics #Winter Flu, #Winter Diet, and #Vaccination in the same user post exceed the threshold n (different thresholds can be set according to the selection here), so the three topic nodes are connected; The user's parents and the user's doctor both pay attention to the topic #Winter Flu, so the two users are connected. If there are photos or videos attached to the comment text, then the comment text node is connected to the corresponding photo or video.
[0086] In social media, keywords starting with "#" are called Hashtags, which are widely used in social media such as Weibo. Here, we use #hashtag to represent the topic, U to represent the user, and T to represent the comment text. Taking the three topics #Winter Flu, #Winter Diet, and #Vaccination as the center, observe this heterogeneous graph from three different perspectives and extract three subgraphs:
[0087] User perspective subgraph G1=(A1,X1): For the topic #Winter Flu, different user roles view it from different angles. User parents are more inclined to consider it from the perspective of living habits and winter diet, while user doctors are more inclined to consider it from the perspective of vaccination and infection control. Different angles may lead to different stances of different users towards the same problem. Therefore, the extracted user perspective subgraph is as shown in Figure 5 .
[0088] Text perspective subgraph G2=(A2,X2): The comment text is a discussion and view on the topic, and the topic is the theme or summary of the text expression content. From the perspective of the text, the topic can obtain a semantically enhanced topic representation. There are many comment texts under the topic #Winter Flu, and these comment texts will comment on this topic from different angles. Aggregating and using the information of these comment texts will also enhance the semantic representation of the topic #Winter Flu. Therefore, the extracted text perspective subgraph is as shown in Figure 6 .
[0089] Topic perspective subgraph G3 = (A3, X3): There is a natural correlation between topics. When two topics co-occur frequently, it can be inferred that the two topics are strongly related. Other topics can enhance and inspire this topic. Therefore, using the co-occurrence relationship between topics can get a better topic representation. Under the topic #winterflu, the adjacent topics #winterdiet and #vaccination are closely related to the topic #winterflu. Therefore, using this correlation, the representation of the topic #winterflu may be richer. Therefore, the extracted topic perspective subgraph G3 = (A3, X3): There is a natural correlation between topics. When two topics co-occur frequently, it can be inferred that the two topics are strongly related. Other topics can enhance and inspire this topic. Therefore, using the co-occurrence relationship between topics can get a better topic representation. Under the topic #winterflu, the adjacent topics #winterdiet and #vaccination are closely related to the topic #winterflu. Therefore, using this correlation, the representation of the topic #winterflu may be richer. Figure 7 shown.
[0090] In view of the above three perspectives, the present invention proposes a hybrid perspective heterogeneous graph neural network framework. Specifically, each perspective first learns its own representation, and then builds a cross-perspective fusion mechanism to map the topic representations of other perspectives to this perspective for fusion, and finally obtains the learned user representation E U , Topic Representation 1E #1 , Topic Representation 2E #2 , Topic Representation 3E #3 , text representation E T The specific calculation process is:
[0091] E #1 ,E U =sigmoid(A1·X1·W1)+β 2→1 φ(E #2 )+β 3→1 φ(E #3 )
[0092] E #2 ,E T =sigmoid(A2·X2·W2)+β 1→2 φ(E #1 )+β 3→2 φ(E #3 )
[0093] E #3 =sigmoid(A3·X3·W3)+β 1→3 φ(E #1 )+β 2→3 φ(E #2 )
[0094] Among them, select As a nonlinear activation function to capture nonlinear features, W1, W2, W3 are learnable parameters, β i→j represents the importance of perspective i to perspective j (also a learnable parameter), φ is a mapping function (such as a linear layer) that maps the topic representation of other perspectives to this perspective, and βi→j Together with φ, it forms a cross-view fusion mechanism.
[0095] Assign E #1 , E #2 , E #3 The weights a1, a2, and a3 are weighted and summed to obtain the topic representation E of the three perspectives. # The weights a1, a2, and a3 of this part are shared by the multi-view user stance detection module and updated using momentum. The formula is as follows:
[0096]
[0097] At the same time, the user representation E U , text representation E T ,Finally, this module outputs the above three representations simultaneously.
[0098] First, we use the text encoder BERT to represent the original comment text to get BERT(text), denoted as x1, and retrieve the topic representation E output by the multi-view topic representation module according to this topic. # , take out the topic representation E corresponding to this topic #i , recorded as x2, perform self-attention operation on x1 and x2 and obtain the text representation T that integrates the topic representation mix :
[0099]
[0100] Where W Q , W K , W V are all randomly initialized learnable parameters, is the normalization function.
[0101] The purpose of this step is to obtain a text representation T that incorporates rich topic information. mix , enhancing the topic information contained in the text. mix The user representation E output by the multi-view topic representation module U , text representation E T , independent topic representation E #2 After concatenation and linear classification, we can get the stance detection results under three different perspectives: User stance 1, User stance 2, and User stance 3:
[0102] stand1=sigmoid(W 1 [T mix ||E U ]+b 1 )
[0103] stand2=sigmoid(W 2 [T mix ||E #2 ]+b 2 )
[0104] stand3=sigmoid(W 3 [T mix ||E T ]+b 3 )
[0105] Among them, W i and b i (i=1,2,3) is a learnable parameter, and [x||y] is a vector concatenation operation.
[0106] Then the weight parameters are shared with the multi-view topic representation module, and the weighted sum is used to obtain the final user position:
[0107] stand=a1*stand1+a1*stand2+a1*stand3
[0108] The above two modules are constructed into an overall model for joint learning, and the loss function is as follows:
[0109] Loss = CrossEntropy(stand,y)
[0110] in, The cross entropy function is used to measure the difference between x and y (in the present invention, x is the predicted position and y is the actual position).
[0111] The overall model completes the user stance detection task in two stages: training stage and prediction stage.
[0112] In the training phase: the three independent graph neural networks mentioned above are used to learn and output semantically enhanced topic representation, text representation and user representation. Then the stance detection task is carried out. As the model is trained, the model parameters are continuously optimized to obtain the trained user stance detection model.
[0113] In the prediction stage: input the user and the comments made by the user on a specific topic, use the trained model to calculate the corresponding topic representation, text representation and user representation, and finally output the final user stance through the multi-view user stance detection model.
[0114] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.
Claims
1. A multi-perspective social media user stance detection method, characterized by: It consists of two parts: a multi-view topic representation module and a multi-view user stance detection module; The multi-perspective topic representation module receives input topics and comment texts from the outside, and constructs three heterogeneous graphs based on them, wherein a user perspective sub-view is constructed to obtain a user representation and a topic representation one, a topic perspective sub-view is constructed to obtain a topic representation two, and a text perspective sub-view is constructed to obtain a text representation and a topic representation three. Through the three topic representations, a multi-perspective comprehensive topic representation is calculated, that is, a topic representation of the three perspectives, and the user representation, the topic representation under the three perspectives, the topic representation of the three perspectives, and the text representation are output; The multi-perspective user stance detection module inputs user representation, topic representation under three perspectives, topic representation of the three perspectives, and text representation, and obtains a text representation that integrates the topic representation based on the original comment text and the topic representation of the three perspectives. The text representation that integrates the topic representation is concatenated with the user representation, text representation, and topic representation, and linear classification is performed to obtain the stance detection results of the user stance under three different perspectives, and the weighted sum of the three user stances is obtained to obtain the final user stance, and the final user stance is output.
2. A multi-perspective social media user stance detection method as claimed in claim 1, characterized in that: The three sub-views are represented as follows: user perspective sub-graph G1 = (A1, X1), text perspective sub-graph G2 = (A2, X2), topic perspective sub-graph G3 = (A3, X3), Ai and Xi represent the edge and node features contained in the perspective respectively, and the user representation E U , Topic Representation-E #1 , Topic Representation II #2 , Topic Representation Three E #3 , text representation E T The specific calculation process is: AND #1 ,AND U =sigmoid(A1·X1·W1)+β 2→1 φ(E #2 )+β 3→1 φ(E #3 ) E #2 ,E T =sigmoid(A2·X2·W2)+β 1→2 φ(E #1 )+b 3→2 φ(E #3 ) E #3 =sigmoid(A3·X3·W3)+β 1→3 φ(E #1 )+b 2→3 φ(E #2 ) W1, W2, W3 are learnable parameters, β i→j represents the importance of perspective i to perspective j, φ is the mapping function that maps the topic representations of other perspectives to this perspective, and the topic representation E of the three perspectives working together # : E # =a1*E #1 +a2*E #2 +a3*E #3 a1, a2, a3 are weights, which are updated using momentum. The formula is as follows: in Shared by the multi-view user stance detection module.
3. A multi-view social media user stance detection method as claimed in claim 2, characterized in that: The text representation T that integrates the topic representation mix The calculation method is: Where x1 represents the text representation vector obtained after the original text passes through the encoder BERT, x2 represents the current topic representation vector obtained by using the topic representation output by the multi-view topic representation module to retrieve the current topic, and W Q , W K , W V are randomly initialized learnable parameters, is the normalization function.
4. A multi-view social media user stance detection method as claimed in claim 3, characterized in that: The specific calculation method of the user standpoint of the standpoint detection results under the three different perspectives is: user standpoint 1 is recorded as stand1, user standpoint 2 is recorded as stand2, and user standpoint 3 is recorded as stand3: stand1=sigmoid(W 1 [T mix ||E u ]+b 1 ) stand2=sigmoid(W 2 [T mix ||E #2 ]+b 2 ) stand3=sigmoid(W 3 [T mix ||E T ]+b 3 ) Among them, W i and b i (i=1, 2, 3) are learnable parameters, and [x||y] is a vector concatenation operation.
5. A multi-view social media user stance detection method as claimed in claim 4, characterized in that: The final user stand is realized by using stand=a1*stand1+a2*stand2+a3*stand3; The loss function of the method is constructed as: Loss=CrossEntropy(stand,y) in, The cross entropy function is used to measure the difference between x and y, where x is the predicted position and y is the true position.
6. A multi-view social media user stance detection device, characterized by: A multi-perspective social media user stance detection method as described in any one of claims 1-5 is applied.
