A method for detecting fake reviewer groups by integrating complex relationships
By using the graph neural network based on the attention mechanism in the detection of false reviewer groups, integrating the embedding and clustering processes, and learning complex relationship representations, the problem of insufficient utilization of complex relationships in the detection of false reviewer groups is solved, and the detection accuracy is significantly improved.
Patent Information
- Application Number
- CN202210449853.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-04-27
AI Technical Summary
Existing false review group detection methods are difficult to effectively identify complex relationships, resulting in low detection accuracy of false review groups, and lack of target guidance in the embedding process and clustering detection process, making it impossible to fully utilize the relationship information between reviewers.
Using a graph neural network based on the attention mechanism, through graph reconstruction loss and self-supervised distribution loss, the embedding process and the cluster detection process are integrated to learn the complex relationship representation of nodes for false reviewer group detection.
It achieves accurate identification and differentiation of false reviewer groups, improves detection accuracy, and overcomes the problems of poor universality and low detection effect of existing methods.
Smart Images

Figure CN114742564B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a method for detecting a group of false reviewers integrating complex relationships. Background Art
[0002] The rapid popularity of online review systems has made reviews an important basis for people to purchase goods. More and more people will check reviews on the platform before purchasing goods, and will also make comments on goods after purchasing goods. These reviews can provide customers with useful information and first-hand product experience, so the quality of online reviews is particularly important. False reviews that do not conform to the facts of the goods will affect the reputation of the goods and confuse buyers.
[0003] Most of the existing fake review detection technologies are implemented through big data and artificial intelligence methods. Traditional detection technologies use manually generated features to classify reviewers, based on behavioral characteristics, using language features in comments, and building graphs to capture the relationship characteristics between users. In the past, researchers mainly focused on detecting individual fake reviewers, but groups of fake comments often cause greater harm to online comment systems, and it is difficult to detect group fake reviewers: fake comments in a group may be normal individual comments, and previous individual fake comment detection technologies are difficult to work. In addition, it is difficult to establish relationships between fake reviewers, and this complex relationship allows the model to capture the connection between reviewers in the group, thereby assisting in the detection of fake reviewer groups.
[0004] Current methods for detecting fake review groups can be classified into the following categories:
[0005] Detection methods based on clustering algorithms. Detection algorithms based on clustering algorithms usually use algorithms such as graph neural networks to learn node embedding representations, then cluster nodes through clustering algorithms, and finally detect false review groups through detection methods. Common clustering algorithms include partition-based clustering algorithm KMeans and density-based clustering algorithm DBSCAN.
[0006] (1) The KMeans clustering algorithm mainly divides all points in the sample space into K groups. The similarity is usually measured using the Euclidean distance. The main process of the algorithm is as follows: K centroids are randomly placed, with one centroid in each cluster. The distance from each point to the centroid is calculated, and each data point is assigned to its nearest centroid to form a cluster. During the iteration process, the position of the centroid K is recalculated.
[0007] (2) The DBSCAN clustering algorithm first determines the type of each point. Each data point in the data set may be a core point or a boundary point. If there are at least M points in the neighborhood of a data point within the specified radius R, then the data point is a core point. If there are less than M data points in the neighborhood of a data point, or it can be reached from a core point, that is, it is within the R distance from the core point, then it is a boundary point. Core points that are neighbors will be connected and placed in the same cluster, and boundary points will be assigned to each cluster.
[0008] Graph-based detection methods. Starting from the subgraph, the attributes of the node or subgraph are used to judge the suspiciousness of the group, thereby realizing the entire detection process. Some methods aggregate relationships from the graph topology, time and score differences, and use joint probability to detect the group of fake reviewers. This method ignores the structural characteristics of the nodes themselves and does not consider the complex relationships between nodes. Some other methods propose several main characteristics of the group, such as synchronization, moderation and dispersion, and detect group anomalies by calculating certain indicators. This method lacks universality in practical applications. For different networks or data sets, specific indicators need to be proposed to better complete the task of false comment group detection. If it is generalized, the detection accuracy will drop significantly. In addition, this method only considers the characteristics within the group, and still lacks consideration of the complex relationships between commentators. Summary of the invention
[0009] In existing fake review group detection methods, the embedding process and the subsequent clustering and detection process are separated, and the training process lacks goal guidance. If the representation learning result is not suitable for detection, the obtained fake review group detection result will be poor. In addition, the complex relationships in the review network are ignored, and the valuable relationship information between reviewers in the group cannot be utilized.
[0010] In view of the problems existing in the prior art, the present invention proposes a method for detecting a group of fake reviewers integrating complex relationships. The method is goal-oriented and based on the complex relationship features of nodes. The complex relationship representation of nodes is learned by using the features, and the topological information of the graph is reconstructed using an autoencoder. The method is used for detecting a group of fake reviews on an online sales platform. In order to integrate the embedding process and clustering with the detection process, the method adopts a self-supervised training model and uses clustering and detection results to guide the optimization of the model.
[0011] In order to achieve the above purpose, the technical solution adopted by the present invention is: a method for detecting a group of fake reviewers integrating complex relationships, using a graph neural network based on an attention mechanism to represent and update the comment nodes in the comment network; designing a graph reconstruction loss and a self-supervised distribution loss for model training, and applying the optimal model to the detection of fake reviewers to identify the group of fake reviewers in the comment network; the specific steps are as follows:
[0012] The first step is to update the node representation and obtain the reconstructed graph; the model extracts the adjacency matrix and attribute matrix of the comment network, and obtains the complex relationship matrix based on the adjacency matrix. After obtaining the complex relationship matrix, the graph attention encoder integrates the complex relationship with the message passing process, effectively encodes the high-order structural information and node attribute information of the network, and then updates the node representation. The graph neural network based on the attention mechanism is used as the encoder; the initial features of the node are used as the initial embedding of the node, and the complex relationship of the node is integrated into the graph neural network based on the attention mechanism, so that the node representation expresses both high-order structural features and attribute features;
[0013] 1.1) Calculate node similarity; in order to simplify the calculation and reduce model parameters, the nodes are restricted to the first-order neighbor nodes of the central node. The calculation formula is as follows:
[0014] c ij =a(Wh i ,Wh j ) (1)
[0015] In the formula, c ij represents the importance of node j to node i, W represents the weight matrix; h i With h j Represent the feature vectors of node i and node j respectively; a represents the function for calculating node similarity;
[0016] 1.2) Calculate the complex relationship matrix; the review network has complex structural relationships, and the complex relationships between its nodes contain valuable information. By considering the high-order neighbor nodes of the node, the complex relationship matrix of the node is obtained:
[0017] M=(B+B 2 +…+B t ) / t (2)
[0018] Where B is the transformation matrix. When there is an edge between node i and node j, B ij =1 / d i , where d i is the degree of the node; when there is no edge between node i and node j, B ij =0; the matrix M represents a complex relationship matrix, M ij is the complex relationship between node i and node j at order t;
[0019] 1.3) Fusion of complex relationships: Using a single-layer feedforward neural network as the calculation method, the complex relationship matrix M is fused with the graph neural network based on the attention mechanism. Specifically, the complex relationship matrix is multiplied by the node similarity, which means that when calculating the similarity between nodes, not only the similarity between node representations should be considered, but also the impact of the complex relationship between nodes on the similarity; LeakyReLU is selected as the activation function to increase the nonlinear factors of the model, so that the feature expression ability of the model is enhanced. After fusing the complex relationship, the importance expression of node j to node i is rewritten as:
[0020]
[0021] 1.4) Update node representation; the softmax function normalizes the importance of neighbor nodes so that the importance of first-order neighbor nodes to the central node is distributed between [0, 1], and aggregates the features of neighbor nodes to update node representation;
[0022]
[0023] In formula (4), α ij Represents the normalized attention coefficient; N i Represents the first-order neighbor set of node i;
[0024] In formula (5), is the representation of node i’s neighboring node j on layer l, represents the representation of node i at the l+1th node; the final representation of the node is obtained through multi-layer aggregation;
[0025] The second step is model training. The model first uses the autoencoder to reconstruct the topological information of the graph, and calculates the loss by calculating the difference between the adjacency matrix of the original image and the reconstructed image. This loss is the first part of the loss. The second part of the loss is obtained by self-supervised training. The model uses the DBSCAN clustering algorithm to determine the core points in the comment network and calculates the distance between all nodes and the core points. The KL divergence is used as the loss of this part. The final loss function is composed of the above two loss functions and is used to jointly train the model. After calculating the loss, the gradient descent algorithm is used to update the model parameters, and the training is completed.
[0026] Design the graph reconstruction loss function and the self-supervised distribution loss function, and update the parameters of the graph neural network model based on the attention mechanism to complete the training. The specific steps are:
[0027] 2.1) Calculate the graph reconstruction loss function; According to the topological information of the encoder reconstructed graph, calculate the difference between the adjacency matrix to obtain the reconstruction loss of the reconstructed graph and the original graph; the formula is:
[0028]
[0029] In the formula, is the adjacency matrix; H is the updated node representation matrix; σ is the activation function;
[0030] During training, cross entropy is used as the loss function:
[0031]
[0032] In the formula, y represents the value of an element in the adjacency matrix, Represents the corresponding element in the reconstructed adjacency matrix. This part of the training needs to minimize the reconstruction loss, which is defined as follows:
[0033]
[0034] 2.2) Calculate the self-supervised distribution loss function; One of the challenges of fake review detection methods is that there is no label to guide the training of the model; This model adopts a self-supervised training method and uses pseudo-labeling to optimize the node embedding representation; A clustering algorithm is used to cluster the nodes. This model uses the K-Means algorithm for clustering:
[0035]
[0036] In the formula, μ i YesS i The mean of all nodes in , k is the number of sets to be clustered.
[0037] After obtaining all the fake review groups, the DBSCAN clustering algorithm is used to determine the core points in the review network and calculate the distance distribution between each node and the core point;
[0038] During the training process, it is necessary to continuously learn the distribution of data to distinguish normal nodes from abnormal nodes. iu represents the pseudo-label calculated by the model, q iu Represents the distance distribution between the features of all nodes and the core points detected by DBSCAN. iu is defined as follows:
[0039]
[0040] In the formula, u u Represents the representation of the core points detected by DBSCAN; Z i Indicates the representation of the current processing node; u kRepresents the representation of the core point of the kth category. This formula calculates the distance between the representation of the node and the representation of the core point. If the distance between the node and the core point is close enough, it can be considered that the node belongs to the group and is considered a normal node. If a node is far away from the core point, it can be considered an outlier, that is, it is considered to be the corresponding false comment group. The node label can be obtained by the following formula:
[0041] S i = argmax·q iu (11)
[0042] Use KL divergence as the loss function to measure the difference between the distance distribution between nodes and core points and their pseudo-labels;
[0043] KL divergence mainly measures the difference between the probability distribution Q and the reference probability distribution P. Different from the label obtained by formula (11), the target distribution p iu is considered to be the true label, which is calculated by Q during training, p iu It depends on the P distribution and is updated according to the stage, and is regarded as the self-supervised label in the stage. The main role of the target distribution is to supervise the learning of the model and guide the update of the distribution Q. The calculation formula of P is as follows:
[0044]
[0045] In the formula, q ik Represents the distance distribution between the features of all nodes and the core points of the kth category. The loss function of the self-supervised optimization embedding is as follows:
[0046]
[0047] 2.3) Calculate the joint loss function; the expression of the joint loss function is:
[0048] L=L r +βL c (14)
[0049] Where, L r is the graph reconstruction loss function, L c is the self-supervised distribution loss function, and β is the weight between the two loss functions;
[0050] 2.4) Model training: setting the initial parameters of the graph neural network model based on the attention mechanism, iterating the training process based on the joint loss function, and obtaining the optimal parameters of the graph neural network model based on the attention mechanism;
[0051] The third step is to detect the group of false comments. The graph neural network model based on the attention mechanism obtained in the second step is used to detect the real comment network and save the detection results.
[0052] The graph reconstruction loss function adopts the cross entropy loss function; the clustering algorithm for clustering nodes adopts the KMeans clustering algorithm.
[0053] The specific method of model training in 2.4) is as follows:
[0054] Set the initial parameters of the attention-based graph neural network model, including the number of aggregation layers, node embedding dimensions, the number of clusters of the KMeans clustering algorithm, and the number of training iterations.
[0055] During the model training process, the parameters are continuously adjusted to determine the optimal parameters based on the decrease of the joint loss function during the training process or the final test results of the model;
[0056] Specifically, the comment network and the adjacency matrix of the network are input into the model, the model is run and trained, the detection performance of the model after this training is recorded, the training is repeated multiple times under the same set of hyperparameters, and the average value of the detection accuracy is taken as the final detection accuracy result; after completing the model training under a set of parameters, the parameters in the model are adjusted according to the control variable method, and a certain parameter of the model is adjusted in the direction that increases the average accuracy, while keeping other parameters unchanged; the parameters are adjusted repeatedly, and a set of parameter settings that make the average discrimination accuracy of the model reach the highest is retained, and the model training is completed.
[0057] Beneficial effects of the invention: This method can not only identify fake reviewers, but also distinguish fake reviewer groups from normal reviewers. This method is based on the complex relationship characteristics of nodes, makes full use of the valuable relationship information between reviewers, integrates the embedding process with the clustering detection process, and obtains a target-oriented fake reviewer group detection model. At the same time, it can overcome the problems of poor universality and low detection effect of existing group detection methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is the basic framework diagram of the present invention;
[0059] Figure 2 It is a work flow chart of the present invention;
[0060] Figure 3 is a graph showing changes in recall rate during training in one embodiment of the present invention;
[0061] Figure 4 is a graph showing changes in the loss function during training in one embodiment of the present invention;
[0062] Figure 5 This is a visualization diagram of group detection results according to an embodiment of the present invention. DETAILED DESCRIPTION
[0063] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings and technical solutions.
[0064] A method for detecting fake reviewer groups that integrates complex relationships includes three stages: node representation update; model training; and fake review group detection.
[0065] The first step is to update the node representation. In this stage, the graph neural network based on the attention mechanism is used as the encoder, and the initial node features are used to represent the initial node embedding. The complex relationship of the nodes is integrated into the graph neural network based on the attention mechanism, so that the node representation has the ability to express high-order structural features and attribute features.
[0066] 1.1) Calculate node similarity. In order to simplify the calculation and reduce model parameters, the nodes are limited to the one-hop neighbors of the central node. The calculation formula is as follows:
[0067] c ij =a(Wh i ,Wh j ) (1)
[0068] In the formula, c ij represents the importance of node j to node i, W represents the weight matrix; h i With h j Represent the feature vectors of node i and node j respectively; a represents the function for calculating node similarity;
[0069] 1.2) Calculate the complex relationship matrix. The review network has complex structural relationships, and the complex relationships between its nodes contain valuable information. By considering the high-order neighbors of the nodes, the complex relationship matrix of the nodes can be obtained:
[0070] M=(B+B 2 +…+B t ) / t (2)
[0071] Where B is the transformation matrix. If there is an edge between node i and node j, B ij =1 / d i , where d i is the degree of the node. When there is no edge between node i and node j, B ij = 0. The matrix M represents a complex relationship matrix, M ij is the complex relationship between node i and node j at order t.
[0072] 1.3) Fusion of complex relationships. A single-layer feedforward neural network is selected as the calculation method to fuse the complex relationship matrix M with the graph attention network. The specific method is to multiply the complex relationship matrix by the similarity between nodes, which means that when calculating the similarity between nodes, not only the similarity between node representations should be considered, but also the impact of the complex relationship between nodes on the similarity. Finally, LeakyReLU is selected as the activation function to increase the nonlinear factors of the model, so that the feature expression ability of the model is enhanced. After fusing the complex relationship, the expression of the importance of node j to node i is rewritten as:
[0073]
[0074] 1.4) Update node representation. In order to make the importance of neighbor nodes to the central node distributed between [0, 1], the importance of neighbor nodes is normalized using the softmax function, and the features of neighbor nodes are aggregated to update the node representation.
[0075]
[0076] In formula (4), α ij Represents the normalized attention coefficient, N i represents the first-order neighbor set of node i; in formula (5), is the representation of the neighboring node j of node i on the lth layer, Represents the representation of node i at the l+1th node. The final representation of the node is obtained through multi-layer aggregation.
[0077] The second step is model training. First, the loss function is designed. After calculating the loss using the designed loss function, the model parameters are updated to complete the training. The model first uses the decoder to reconstruct the original network to calculate the difference loss of the adjacency matrix between the original network and the reconstructed network. Since the nodes in the false commentator group detection task are not labeled, a self-supervised training method is used to optimize the embedding. The DBSCAN clustering algorithm is first used to generate the core points in the comment network, and the KL divergence is used to measure the distance between the core points and other nodes, and then the difference between the pseudo-label and the learned embedding distribution is calculated. After the loss calculation is completed, the gradient descent algorithm is used to update the model parameters to complete the training.
[0078] 2.1) Calculate the graph reconstruction loss. The inner product method is used to reconstruct the original graph. The reconstruction formula is:
[0079]
[0080] Where H is the learned embedding vector of the node, is the adjacency matrix of the reconstructed graph, and is the reconstructed adjacency matrix As similar as possible to the input adjacency matrix. During training, cross entropy is used as the loss function:
[0081]
[0082] In the formula, y represents the value of an element in the adjacency matrix, Represents the corresponding element in the reconstructed adjacency matrix. This part of the training needs to minimize the reconstruction loss, which is defined as follows:
[0083]
[0084] 2.2) Calculate the distribution loss. One of the challenges of fake review detection methods is that there is no label to guide the training of the model. This model adopts a self-supervised approach and uses pseudo-labels to optimize the node embedding representation. Since the nodes in the graph are independent, during the training process, all nodes are first clustered. This model uses the K-Means algorithm for clustering:
[0085]
[0086] In the formula, μ i YesS i The mean of all nodes in the graph, k is the number of clusters to be clustered. After obtaining all the false review groups, the DBSCAN algorithm is used to detect abnormal groups. The DBSCAN algorithm first distinguishes the core points and boundary points in the graph, uses the detected core points as the core points in the training model, and calculates the distance between the representations of other nodes and the core point representations. During the training process, it is necessary to continuously learn the distribution of data to distinguish normal nodes from abnormal nodes. iu represents the pseudo-label calculated by the model, q iu Represents the distance distribution between the features of all nodes and the core points detected by DBSCAN. iu is defined as follows:
[0087]
[0088] In the formula, u u Represents the representation of the core point detected by DBSCAN. This formula calculates the distance between the representation of the node and the representation of the core point. If the distance between the node and the core point is close enough, it can be considered that the node belongs to the group and is considered a normal node. If a node is far away from the core point, it can be considered an outlier, that is, it is considered to be the corresponding false comment group. The node label can be obtained by the following formula:
[0089] S i = argmax·q iu (11)
[0090] This model uses KL divergence to measure the difference between the pseudo-label and the learned distribution. KL divergence mainly measures the difference between the probability distribution Q and the reference probability distribution P. Different from the label obtained by formula (11), the target distribution p iu is considered to be the true label, which is calculated by Q during training, p iu It depends on the P distribution and is updated according to the stage, and is regarded as the self-supervised label in the stage. The main role of the target distribution is to supervise the learning of the model and guide the update of the distribution Q. The calculation formula of P is as follows:
[0091]
[0092] The loss function for self-supervised optimization embedding is as follows:
[0093]
[0094] 2.3) Calculate the joint loss function. The overall loss function of the model consists of two parts: the graph reconstruction loss function and the self-supervised distribution loss function. The final loss function expression is:
[0095] L=·L r +βL c (14)
[0096] Where, L r is the reconstruction loss, L c is the distribution loss, and β is used to control the weight between the two losses.
[0097] 2.4) Model training. The model training is carried out according to the following steps: setting the initial hyperparameters, including the number of aggregation layers of the graph attention network, the node embedding dimension, the number of clusters of the KMeans clustering algorithm, and the number of training iterations.
[0098] During the model training process, the hyperparameters need to be manually adjusted to achieve the best detection effect of the model. Generally speaking, the hyperparameters need to be determined based on the decrease of the loss function during the training process or the final detection results of the model. After the hyperparameters are set, the comment network and the adjacency matrix of the network are input into the model, the model is run, and the model training is completed. The detection performance of the model after this training is recorded, and the above process is repeated multiple times under the same set of hyperparameters. The average value of the detection accuracy is taken as the final result detection accuracy. After completing the model training under a set of hyperparameters, the hyperparameters in the model are adjusted according to the control variable method. A certain hyperparameter of the model is adjusted in the direction that increases the average accuracy, and other parameters are kept unchanged. Repeat the hyperparameter adjustment process, retain a set of hyperparameter settings that makes the average discrimination accuracy of the model the highest, and the model training is completed.
[0099] The third step is to detect the fake review group. Use the model and hyperparameters trained in the previous step to detect the real review network and save the model's detection results on the review network.
[0100] Table 1 The operation process of this algorithm
[0101]
[0102] In conjunction with the scheme of the present invention, experimental analysis is carried out as follows:
[0103] The present invention verifies the effect of false review group detection on the Amazon dataset processed by researchers. The basic situation of the dataset is shown in Table 2. The relationship type UPU in the table represents that two users have commented on at least one same product. USU represents that two reviewers have commented on the same rating within a week. UVU represents that two reviewers have similar comments. The experiment is carried out on four datasets, corresponding to the above three relationships, and a dataset composed of three relationships. The four datasets are Amazon_p, Amazon_s, Amazon_v and Amazon datasets.
[0104] Table 2 Basic information of the fake review dataset used in the experiment
[0105]
[0106] The experimental analysis process of a method for detecting fake reviewer groups that integrates complex relationships can be divided into two parts: comparing this method with the existing fake review group detection method, and using the recall rate as an evaluation indicator to verify the superiority of the present invention; and visualizing the training process and the detection results to more intuitively analyze the rationality of the model design and the effectiveness of the detection effect.
[0107] (1) Comparative experiment of test results
[0108] The comparative experiment selects several fake review group detection methods proposed by researchers for comparison with this method. Among them, Graph-Strainer uses a graph-based approach to discover target projects, and detects fake reviewer groups on this basis, solving the group detection problem through 2-hop subgraphs. ColluEage uses Markov random fields to detect colluding fake reviewers and fake review activities. DeFrauder uses product review graphs and behavioral signals to detect candidate fraud groups, maps candidate fraud groups into an embedding space, and assigns scores to each group. Finally, the fake reviewer group is determined according to the score. In addition to the above comparative methods, in order to verify the effectiveness of the modules in this method, the experiment adds two additional decoupled detection methods: GCN+KMeans+DBSCAN and GAT+KMeans+DBSCAN. The first method uses GCN to embed the initial data set, and the second method uses GAT to embed the initial data set. After the embedding is obtained, both methods use KMeans clustering method and DBSCAN method to detect the embedding results.
[0109] The experimental results of this method and the comparison method are shown in Table 3. Through the longitudinal comparison of the experimental results, it can be seen that the performance of this method is significantly better than other methods, and the detection effect is greatly improved.
[0110] The results of GAT+KMeans+DBSCAN are better than those of GCN+KMeans+DBSCAN, which proves the effectiveness of using GAT as a graph encoder. Compared with GCN, GAT can aggregate neighbor features based on the similarity between the central node and the neighbor nodes, so that the representation results of normal nodes will not aggregate a large amount of false node information. Through the horizontal comparison of the experimental results, it can be seen that this method has achieved the best results when considering three different relationships and all relationships. This shows that integrating the KMeans clustering algorithm in the deep learning model and continuously iterating and updating the core points during the training process can achieve more accurate detection results.
[0111] Table 2 Test results
[0112]
[0113] (2) Visualization experiment of training process and test results
[0114] The purpose of the visualization experiment is to demonstrate the rationality of the design of this method by analyzing the changes in the loss and recall rate of the results during the training process, and to intuitively demonstrate the effectiveness of the detection results by visualizing the detection results.
[0115] Figure 3The change of recall rate during the training process is shown. The overall trend of the figure shows that with the progress of training, the recall rate of the detection results is constantly improving, and the rationality of the model design is confirmed.
[0116] The change of loss function during training is as follows Figure 4 As shown. Combined Figure 3 and Figure 4 The analysis shows that as the loss function decreases, the recall rate also increases, which shows that while this method continuously updates the representation learning results, the representation learning results obtained can also be applied to the detection of fake reviewer groups. In other words, the loss function we designed can well feed back the loss to the model and supervise the learning of the model, solving the problem that the representation learning results may not be suitable for the detection method.
[0117] Figure 5 The clustering results of the model on the Amazon dataset are shown, and it can be seen that the present invention has a good effect on the problem of detecting fake reviewer groups. The black entities represent the fake review groups, which are mainly concentrated in the lower left corner, and the gray entities represent the normal review nodes, which are mainly concentrated in the upper right corner.
[0118] The above-described embodiments merely express the embodiments of the present invention, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that for those skilled in the art, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for detecting fake reviewers by integrating complex relationships, characterized in that: The method for detecting fake reviewers with complex relationships uses a graph neural network based on an attention mechanism to represent and update the review nodes in the review network; designs a graph reconstruction loss and a self-supervised distribution loss for model training, and after obtaining the optimal model, applies it to fake reviewer group detection to identify the fake reviewer group in the review network; the specific steps are as follows: The first step is to update the node representation and obtain the reconstructed graph. The graph neural network based on the attention mechanism is used as the encoder. The initial features of the nodes are used as the initial embedding of the nodes, and the complex relationships of the nodes are integrated into the graph neural network based on the attention mechanism, so that the node representation can express both high-order structural features and attribute features. 1.1) Calculate node similarity; limit the nodes to the first-order neighbor nodes of the central node, and the calculation formula is as follows: c ij =a(Wh i ,Wh j ) (1) In the formula, c ij represents the importance of node j to node i, and W represents the weight matrix; h i With h j Represent the feature vectors of node i and node j respectively; a represents the function for calculating node similarity; 1.2) Calculate the complex relationship matrix: By considering the high-order neighbor nodes of the node, the complex relationship matrix of the node is obtained: M=(B+B 2 +…+B t ) / t (2) Where B is the transformation matrix. When there is an edge between node i and node j, B ij =1 / d i , where d i is the degree of the node; When there is no edge between node i and node j, B ij =0; the matrix M represents a complex relationship matrix, M ij is the complex relationship between node i and node j at order t; 1.3) Fusion of complex relationships: Using a single-layer feedforward neural network as the calculation method, the complex relationship matrix M is fused with the graph neural network based on the attention mechanism, specifically multiplying the complex relationship matrix with the node similarity; LeakyReLU is selected as the activation function, and the complex relationship is fused. The importance expression of node j to node i is rewritten as: 1.4) Update node representation; the softmax function normalizes the importance of neighbor nodes so that the importance of first-order neighbor nodes to the central node is distributed between [0, 1], and aggregates the features of neighbor nodes to update node representation; In formula (4), α ij Represents the normalized attention coefficient; N i Represents the first-order neighbor set of node i; In formula (5), is the representation of node i’s neighboring node j on layer l, represents the representation of node i at the l+1th node; the final representation of the node is obtained through multi-layer aggregation; The second step is model training. We design the graph reconstruction loss function and the self-supervised distribution loss function, and update the parameters of the graph neural network model based on the attention mechanism to complete the training. The specific steps are as follows: 2.1) Calculate the graph reconstruction loss function; According to the topological information of the encoder reconstructed graph, calculate the difference between the adjacency matrix to obtain the reconstruction loss of the reconstructed graph and the original graph; the formula is: In the formula, is the adjacency matrix; H is the updated node representation matrix; σ is the activation function; 2.2) Calculate the self-supervised distribution loss function; adopt the self-supervised training method and use pseudo-labeling to optimize the node embedding representation; use the clustering algorithm to cluster the nodes, and use the DBSCAN clustering algorithm to determine the core points in the comment network, and calculate the distance distribution between each node and the core point; use KL divergence as the loss function to measure the difference between the distance distribution between the node and the core point and its pseudo-labeling; 2.3) Calculate the joint loss function; the expression of the joint loss function is: L=L r +βL c (7) Where, L r is the graph reconstruction loss function, L c is the self-supervised distribution loss function, and β is the weight between the two loss functions; 2.4) Model training: setting the initial parameters of the graph neural network model based on the attention mechanism, iterating the training process based on the joint loss function, and obtaining the optimal parameters of the graph neural network model based on the attention mechanism; The third step is to detect the group of false comments. The graph neural network model based on the attention mechanism obtained in the second step is used to detect the real comment network and save the detection results.
2. The method for detecting a group of fake reviewers integrating complex relationships according to claim 1 is characterized in that: The graph reconstruction loss function adopts the cross entropy loss function; the clustering algorithm for clustering nodes adopts the KMeans clustering algorithm.
3. The method for detecting a group of fake reviewers integrating complex relationships according to claim 2 is characterized in that: The specific method of model training in 2.4) is as follows: Set the initial parameters of the attention-based graph neural network model, including the number of aggregation layers, node embedding dimensions, the number of clusters of the KMeans clustering algorithm, and the number of training iterations. During the model training process, the parameters are continuously adjusted to determine the optimal parameters based on the decrease of the joint loss function during the training process or the final test results of the model; Specifically, the comment network and the adjacency matrix of the network are input into the model, the model is run and trained, the detection performance of the model after this training is recorded, the training is repeated multiple times under the same set of hyperparameters, and the average value of the detection accuracy is taken as the final detection accuracy result; after completing the model training under a set of parameters, the parameters in the model are adjusted according to the control variable method, and a certain parameter of the model is adjusted in the direction that increases the average accuracy, while keeping other parameters unchanged; the parameters are adjusted repeatedly, and a set of parameter settings that make the average discrimination accuracy of the model reach the highest is retained, and the model training is completed.
