Social network competition influence maximization method and device and medium
Evaluating node influence through the graph neural network and bilinear information aggregation layer, combined with the method of startup and expansion stages, solves the problem of insufficient efficiency and quality in maximizing the competitive influence of social networks in the existing technology, and achieves high efficiency and good quality. The seed node set is constructed.
Patent Information
- Application Number
- CN202411105048.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing social network competitive influence maximization methods need to be improved in terms of efficiency and seed node set quality, especially in cognitive confrontation areas such as public opinion control and rumor suppression.
Using Graph Neural Network (GNN) combined with bilinear information aggregation layer and fully connected layer, the node influence is evaluated through dual-layer Graph Attention Network (GAT) and Bilinear Aggregator (BA), and through two-stage cooperation of startup phase and expansion phase , Efficiently select the seed node set to ensure high quality and low time overhead of the seed node set.
It improves the accuracy of node influence evaluation and the group's evaluation of competitive influence, improves the quality and efficiency of the seed set that maximizes competitive influence, reduces time overhead, and ensures the high quality of the seed node set.
Smart Images

Figure CN118628274A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of influence maximization, and specifically relates to a method, device and medium for maximizing competitive influence in a social network. Background Art
[0002] In real life, in different fields such as business, politics, and society, information competition between different groups with social networks as the main medium is becoming increasingly fierce. These groups use specific strategies to expand their influence in social networks in order to maximize their own interests.
[0003] In order to solve the problem of maximizing the competitive influence of groups in social networks, the invention patent with application number "202011138757.9" discloses "A method and system for maximizing the influence of groups in social networks". The method adopted is as follows: Step 1: In a social network, the nodes are mapped to the representation space through the random walk method and the influence propagation properties of the nodes are retained; Step 2: Define and calculate the propagation affinity between nodes, and merge adjacent node pairs with the highest propagation affinity in turn until the set compression ratio is met to obtain a coarsened network, in which each node corresponds to a group in the original network; Step 3: According to the properties of the node's influence propagating within the group and across groups, construct an influence propagation function for the candidate seed set, and select the maximum influential user set containing a preset number of nodes according to the greedy algorithm.
[0004] Since social networks have become the most important platform for people to connect and communicate with each other, and have also become the core position of information competition, maximizing competitive influence is of great significance in cognitive confrontation fields such as public opinion control, discourse competition, and rumor suppression. The above method, based on the greedy algorithm, has a certain improvement in efficiency. However, how to further improve efficiency while improving the quality of the seed node set is something that deserves further study. Summary of the invention
[0005] In order to solve the problem that the efficiency and quality of maximizing competitive influence in existing methods need to be improved, the present invention provides a method, device and medium for maximizing competitive influence in a social network.
[0006] The purpose of the present invention is achieved through the following technical solutions:
[0007] A first aspect of the present invention provides a method for maximizing competitive influence in a social network, comprising the following steps:
[0008] Obtaining a data set, the data set comprising at least two graph data consisting of nodes and edges, wherein a node represents a user, and a node represents a relationship between two nodes;
[0009] Determine the influence of each node based on the data set;
[0010] constructing population pairs for the data set and determining the competitive influence of each population pair;
[0011] Building a starting node set according to the influence of each node, wherein all nodes in the starting node set have no neighbor relationship;
[0012] Calculating the marginal influence of each node in the data set relative to the group pair according to the competitive influence of the group pair;
[0013] An expanded node set and a seed node set are determined according to the marginal influence, and the seed node set includes a startup node set and an expanded node set.
[0014] A second aspect of the present invention provides a device for maximizing competitive influence of a social network, comprising a memory and a controller that are communicatively connected in sequence, wherein a computer program is stored in the memory, and the controller is used to read the computer program and execute the method for maximizing competitive influence of a social network described in the first aspect.
[0015] A third aspect of the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on a computer, a method for maximizing competitive influence in a social network as described in the first aspect is executed.
[0016] Compared with the prior art, the present invention has at least the following advantages and beneficial effects:
[0017] 1. The present invention includes a startup phase and an expansion phase. In the initial phase, a startup seed set is efficiently selected based on the heuristic idea. In the expansion phase, new nodes are continuously added to the seed set based on the greedy idea until the number of nodes reaches the expected number. The two phases cooperate to ensure the high quality of the seed node set while having a low time overhead. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a flow chart of the method of the present invention;
[0020] Figure 2 A schematic diagram of a graph neural network. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0022] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0024] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0025] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the product of the invention is usually placed when in use, or the positions or positional relationships commonly understood by those skilled in the art, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0026] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0027] The first aspect of the present invention provides a method for maximizing competitive influence of a social network. The method can be, but is not limited to, executed by a device for maximizing competitive influence of a social network. The device for maximizing competitive influence of a social network can be software, or a combination of software and hardware. The device for maximizing competitive influence of a social network can be integrated in smart devices such as smart mobile terminals, tablets, clouds, and computers. Specifically, Figure 1 As shown, the method for maximizing competitive influence of social networks includes the following steps S01 to S04. It should be noted that the step identifiers in this solution are only for the convenience of explaining the method and do not constitute a limitation on the order of precedence. The order of each step is based on its language description and the order of each signal.
[0028] Step S01: Obtain a data set, wherein the data set includes at least one graph data consisting of nodes and edges, wherein a node represents a user, and a node represents a relationship between two nodes.
[0029] The data set can be data uploaded by the terminal or data stored locally. It depends on the data source.
[0030] Step S02: Determine the influence of each node according to the data set.
[0031] The purpose of node influence assessment is to evaluate the influence of any node and provide necessary information for maximizing influence. Specifically, this step can be implemented in a variety of ways, such as using a graph convolutional network (GCN). GCN uses both graph network topology and node features for representation learning, and when aggregating neighbor features, it assigns the same weight to each neighbor node.
[0032] However, the existing method assigns the same weight to each neighbor node during aggregation, which ignores the difference in importance of different neighbors to the central node, and ignores the fact that the central node is always ignored. In order to improve the accuracy of the influence evaluation of the central node and improve the quality of the seed node set determination, the Graph Neural Network (GNN) is preferred.
[0033] There are many structures of graph neural networks. In order to further improve the accuracy of node influence judgment, such as Figure 2As shown, the GNN with the following structure is preferably used, including an input layer, a bilinear information aggregation layer and a fully connected layer. In this structure, the bilinear information aggregation layer adopts a two-layer graph attention network (Graph Attention Network, GAT) and a bilinear aggregation layer. A two-layer GAT is used to distinguish the importance of different neighbors by attention scores. The bilinear aggregation layer is based on a bilinear aggregator (BA), which is used to model the interaction between the neighbors of the central node and to capture the interaction information between different neighbors to better achieve representation learning of the influence of the central node. The bilinear aggregator is linearly combined with the two-layer GAT, and a parameter α greater than 0 and less than 1 is introduced to control the weight of the two-layer GAT, and the weight of the bilinear aggregator is 1-α. The GNN based on this structure realizes node influence evaluation, which includes steps S021 and S022.
[0034] Step S021: extract features from the data set to obtain a feature matrix of the nodes and an adjacency matrix of the graph.
[0035] In this step, the feature matrix of the node is the initial node representation of the node in the input layer. Each row of the matrix corresponds to the feature representation of a node, which contains the attribute or status information of the node. The adjacency matrix of the graph is the representation of whether there is an edge between the nodes in the graph. Usually 0 indicates no connection and 1 indicates connection; if the graph is weighted, it is the weight of the edge. The obtained node feature matrix and graph adjacency matrix are used as the input of the GNN input layer.
[0036] Step S022: Input the feature matrix of the node and the adjacency matrix of the graph into the GNN of the above structure to obtain the influence of each node.
[0037] In deep learning tasks, too many model parameters may lead to overfitting problems. Furthermore, in order to avoid overfitting, the model performs well on the training set but performs poorly on new data, which cannot correctly reflect the true situation of the data. In order to effectively deal with the problem of overfitting, the Dropout technology can be introduced in the bilinear information aggregation layer and the fully connected layer of the model.
[0038] Step S03: construct group pairs for the data set and determine the competitive influence of each group pair.
[0039] The competitive influence of a group is to evaluate the influence of any group in the presence of competitors, and to provide necessary information for maximizing the influence. Specifically, this step includes steps S031 to S033.
[0040] Step S031, calculating the IC value of each node in the data set.
[0041] The IC value (Independent Cascade value) is a metric used to measure the node's propagation ability in the independent cascade model. The independent cascade model is an information propagation model that is usually used to simulate the information diffusion process in social networks. In this step, the IC value IC model simulates the propagation and calculates the IC value of each node in the social network to obtain the node's propagation ability characteristics.
[0042] Feature extraction is used to extract multiple features of each node in the social network, including degree centrality (DC), betweenness centrality (BC), closeness centrality (CC), eigenvector centrality (EC), clustering coefficient (Clustering) and PageRank. These features can enable the neural network to learn more information, which includes both the node's own information and the network structure information, and can reflect the importance of the node from multiple angles.
[0043] Step S032: construct a population pair according to the data set, wherein the population pair includes a first population and a second population paired with the first population.
[0044] There are many ways to implement this step, such as using the existing random selection and combination method to construct group pairs. However, since most nodes in social networks have low influence and only a small number of nodes have high influence, the use of random selection and combination to construct group pairs will result in an imbalanced distribution of influence of the generated group pairs, which will make it impossible for the neural network model to fully learn the characteristics of the data set.
[0045] To this end, this step may preferably adopt steps S0321 to S034.
[0046] Step S0321, sort the nodes according to the IC values and divide them into n intervals, where n is greater than or equal to 2.
[0047] Step S0322: Select k nodes from each interval to form a first group, where n≥k.
[0048] In order to further ensure the diversity of the group's influence, all possible interval combinations are traversed in this step, and k nodes are selected from the selected intervals. For each interval selection method, nodes are selected from the selected interval to ensure the diversity of the group's influence. There are groups, each of which selects k nodes in n intervals.
[0049] By adopting this method, the final first group covers all combinations of influence intervals and all situations of the number of nodes in each influence interval.
[0050] Exemplarily, the first group may be marked as source.
[0051] Step S0323, copy the first group to obtain a second group;
[0052] The second group is a copy of the first group and can be marked as adverse.
[0053] Step S0324: Pair the first group and the second group to obtain a group pair.
[0054] The groups constructed by the above method have different levels of influence, diverse composition, more even distribution of numbers, and are more conducive to model learning.
[0055] Step S033: determining the competitive influence of the group pair according to the first group and the second group.
[0056] Similarly, there are many ways to implement this step, for example, using existing graph embedding methods, which calculate group pair embeddings by summing the embeddings of individual nodes in the group. Graph embedding aggregates the node information and neighbor node information in the graph structure to generate a vector representation of each node, which maps the nodes, edges, or entire subgraphs in the graph to a continuous vector space, usually a low-dimensional space. This mapping retains the structural information and attribute information of the graph, so that operations in this vector space can reflect the properties of the original graph. Embedding is a low-dimensional vector generated by the graph embedding method.
[0057] However, the existing method ignores two important issues. First, it ignores the distribution information of nodes in the network. Several nodes that are too close may have overlapping influences. Second, it does not take into account the competition between the source group and the adverse group, which will weaken the influence of both parties.
[0058] In this regard, in order to improve the accuracy of estimating the competitive influence of groups, steps S0331 to S0332 are preferably used.
[0059] Step S0331: extract nodes in the same group in the first group and their three-hop neighbors to form a subgraph, and calculate the degree of neighbor overlap in the subgraph.
[0060] Step S0332: For any group of group pairs, obtain their overall embedding.
[0061] Specifically, this step is implemented by the following method:
[0062] The embeddings of nodes in the same group are added together to represent the mutual assistance between nodes in the same group. Then the embeddings of the nodes in the group are multiplied by the degree of neighbor overlap to obtain the embedding of each group. Finally, the embedding of the first group in the group pair is subtracted from the embedding of the second group to obtain the embedding of the group pair, that is, the competitive influence of the group pair.
[0063] The above method weakens the overlapping influence through the weight matrix and obtains the embedding of each group. The weight matrix is the degree of neighbor overlap of the group. Multiplying the node embedding by the weight matrix can adjust the group embedding to weaken the overlapping influence caused by neighbor overlap.
[0064] Exemplarily, assume that a group pair includes a first group S and a second group C. The embedding of the first group S is obtained by adding the embeddings of all nodes in the first group S, and the embedding of the second group C is obtained by adding the embeddings of all nodes in the second group C. Then, in order to represent the competitive relationship between different groups, the difference between the embeddings of the first group S and the second group C is calculated. Finally, the embedding of the group pair is obtained, which represents the competitive influence of the first group S when the second group C competes with the first group S, that is, the competitive influence of the group pair.
[0065] Step S04: Determine a seed node set according to the influence of each node and the competitive influence of each group pair.
[0066] After obtaining the node influence information and the group influence information on competition, the competitive influence maximization seed set can be constructed, the purpose is to efficiently select the highest quality nodes to form a seed set, so that the set has the greatest influence when the competitors are known. Specifically, this step includes the start-up phase of step S041 and the expansion phases of steps S042 and S043.
[0067] Step S041: construct a startup node set according to the influence of each node, wherein all nodes in the startup node set have no neighbor relationship.
[0068] Specifically, the influence of all nodes can be sorted, and the Top-K algorithm is used to select the nodes with the highest influence in turn to add to the seed set to form the starting node set. In this process, to avoid overlapping influence, the neighbor nodes of all selected nodes are skipped during the node selection process, that is, all nodes in the starting node set have no neighbor relationship.
[0069] Step S042: Calculate the marginal influence of each node in the data set relative to the group pair according to the competitive influence of the group pair.
[0070] Specifically, this step first selects two group pairs and adds the node to the second group pair; taking node U as an example, at this time, there is no node U in the first group pair, and the second group pair contains node U. Since the competitive influence of the first group pair has been calculated in step S0332, at this time, it is only necessary to calculate the group pair influence of the second group pair after adding the node, and then calculate the difference between the group pair influence and the group pair influence of the first group pair to obtain the marginal influence of the node.
[0071] Step S043: determining an expanded node set and a seed node set according to the marginal influence, wherein the seed node set includes a startup node set and an expanded node set.
[0072] The expanded node set is confirmed according to the marginal influence, and the marginal influence can also be sorted. The Top-K algorithm is used to select nodes with higher marginal influence in turn to form the expanded node set to expand the seed node set.
[0073] Although the seed node set constructed by the existing greedy algorithm has high quality, it takes a lot of time. The core idea is to accurately calculate the marginal influence of each node on the selected seed node set by traversal, that is, the influence increment relative to the selected seed node set. Steps S042 and S043 of this solution are used to replace the existing method, thereby improving the calculation efficiency of the marginal influence of the node.
[0074] The above method has the following advantages:
[0075] 1. It can improve the accuracy of node influence assessment. Specifically, when generating node embedding, this method uses the attention mechanism to effectively distinguish the importance of different neighbors of the central node, and introduces a bilinear aggregation layer to mine the interactive relationship between different neighbors of the central node to obtain high-quality embedding representation.
[0076] 2. It can improve the accuracy of group pair competitive influence assessment. Specifically, the group pair embedding aggregation method based on the above cooperative competitive relationship can generate high-quality group pair embeddings, and the group pair construction method based on the diversity of influence combinations can solve the problem of unbalanced influence distribution in social network datasets.
[0077] 3. Improve the competitive influence and maximize the quality and efficiency of seed set construction. Specifically, it includes the startup phase and the expansion phase. In the initial phase, a startup seed set is efficiently selected based on the heuristic idea. In the expansion phase, new nodes are continuously added to the seed set based on the greedy idea until the number of nodes reaches the expected number. The two-phase cooperation ensures the high quality of the seed node set while having a low time cost.
[0078] The second aspect of the present invention provides a device for maximizing competitive influence of a social network, comprising a memory and a controller that are sequentially connected in communication, wherein a computer program is stored on the memory, and the controller is used to read the computer program and execute a method for maximizing competitive influence of a social network described in the first aspect and any possible aspect thereof. Specifically, the memory may include, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a flash memory, a first-input first-output memory (FIFO), or a first-input last-output memory (FILO), etc.; the controller may not be limited to a microcontroller of the STM32F105 series. In addition, the computer device may also include, but is not limited to, a power supply unit, a display screen, and other necessary components.
[0079] A third aspect of the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on a computer, a method for maximizing competitive influence in a social network as described in the first aspect and any possible embodiment thereof is executed.
[0080] The operating principles of the devices and media provided in the second and third aspects of the present invention are detailed in the first aspect and will not be elaborated here.
[0081] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for maximizing competitive influence in a social network, characterized in that: The following steps are involved: Obtaining a data set, the data set comprising at least two graph data consisting of nodes and edges, wherein a node represents a user, and a node represents a relationship between two nodes; Determine the influence of each node based on the data set; constructing population pairs for the data set and determining the competitive influence of each population pair; Building a starting node set according to the influence of each node, wherein all nodes in the starting node set have no neighbor relationship; Calculating the marginal influence of each node in the data set relative to the group pair according to the competitive influence of the group pair; An expanded node set and a seed node set are determined according to the marginal influence, and the seed node set includes a startup node set and an expanded node set.
2. A method for maximizing competitive influence in a social network according to claim 1, characterized in that: Determining the influence of each node according to the data set includes: Perform feature extraction on the data set to obtain the feature matrix of the node and the adjacency matrix of the graph. Input the feature matrix of the node and the adjacency matrix of the graph into the GNN to obtain the influence of each node; Wherein, the GNN includes: An input layer for receiving the feature matrix of the nodes and the adjacency matrix of the graph, A two-layer graph attention network that distinguishes the importance of different neighbors by attention scores, wherein the weight of the output of the two-layer graph attention network is α, and α is greater than 0 and less than 1; A bilinear aggregation layer for capturing the mutual information between different neighbor nodes, wherein the weight of the output of the bilinear aggregation layer is 1-α; A fully connected layer for influence judgment is implemented based on the two-layer graph attention network, the input of the bilinear aggregation layer and their corresponding weights.
3. A method for maximizing competitive influence in a social network according to claim 1, characterized in that: Constructing group pairs for the data set and determining the competitive influence of each group pair includes: Calculate the IC value of each node in the data set; Partitioning according to the IC value and selecting points from each interval to form a population pair, wherein the population pair includes a first population and a second population paired with the first population; A competitive influence of a pair of groups is determined based on the first group and the second group.
4. A method for maximizing competitive influence in a social network according to claim 3, characterized in that: Partitioning according to the IC value and selecting points from each interval to form a population pair includes: Sort the nodes according to the IC values and divide them into n intervals, where n is greater than or equal to 2; Select k nodes from each interval to form the first group, where n ≥ k; duplicating the first population to obtain a second population; The first population and the second population are paired.
5. A method for maximizing competitive influence in a social network according to claim 3, characterized in that: Determining the competitive influence of the group pair according to the first group and the second group includes: Extract the nodes in the same group in the first group and their three-hop neighbors to form a subgraph, and calculate the degree of neighbor overlap in the subgraph; Add the embeddings of nodes in the same group, multiply the embeddings of the nodes in the group by the degree of neighbor overlap, and get the embedding of each group; The embedding of the group pair is obtained by subtracting the embedding of the second group from the embedding of the first group in the group pair.
6. A method for maximizing competitive influence in a social network according to claim 1, characterized in that: The calculating the marginal influence of each node in the data set relative to the group pair according to the competitive influence of the group pair comprises: Select two population pairs and add the node to the second population pair; After calculating the group pair influence of the second group pair after the node is added, the difference between the group pair influence and the group pair influence of the first group pair is calculated to obtain the marginal influence of the node.
7. A device for maximizing competitive influence in a social network, comprising a memory and a controller that are sequentially connected in communication, wherein a computer program is stored in the memory, characterized in that: The controller is used to read the computer program and execute the method for maximizing competitive influence in a social network as described in any one of claims 1-6.
8. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed on a computer, a method for maximizing competitive influence in a social network as described in any one of claims 1 to 6 is executed.
Citation Information
Patent Citations
Influence maximization method and system based on group in social network
CN112214689A
