A dynamic network representation method for social communication based on relationship strength and feedback mechanism
By introducing relationship strength and feedback mechanisms into the social communication network, dividing the relationship network and the communication network, and updating the node representation, the problem of the dynamic characteristics of dynamic network representation learning and the timeliness of network dynamic evolution information representation in the existing technology are solved, and improved Improved the dynamic representation learning performance of social communication networks.
Patent Information
- Application Number
- CN202210601033.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-05-30
AI Technical Summary
Existing dynamic network representation learning methods in social communication networks cannot effectively reflect the dynamic characteristics and network dynamic evolution information in real communication networks, and static network representation learning cannot meet the growing needs of network scale and ignores the role of weak relationships in information dissemination. role in.
This paper proposes a social communication dynamic network representation method based on relationship strength and feedback mechanism. By dividing the relationship network and the communication network, updating the node representation, introducing the attention mechanism and feedback mechanism, combining the autocorrelation term and the time term, aggregating node information, and realizing Dynamic network representation.
It improves the dynamic representation learning performance of social communication networks, can better capture the timeliness and real communication characteristics of network dynamic changes, and improves the performance of downstream machine learning tasks.
Smart Images

Figure CN115063251B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of social network analysis, and in particular to a social communication dynamic network representation based on relationship strength theory and feedback mechanism. Background Art
[0002] The rapid development and progress of the Internet, as well as the rapid update of mobile devices, have boosted the development of online social networks, which has greatly broadened the channels for people to obtain news, disseminate information, and express their attitudes. The sinking of the dissemination subject has enabled everyone to become the subject of social communication. However, individual opinions are aggregated into collective opinions through social networks. If the free expression of public opinion is exploited by those with ulterior motives, it will trigger social pressure. Therefore, the study of social communication on social networks is necessary.
[0003] In recent years, deep learning technology has demonstrated excellent performance in various tasks in many fields. In the field of social communication, there is currently a relatively common process for using deep learning technology to handle social communication prediction tasks: first, network representation learning (NRL) is performed on social network user nodes and edges to represent the network structure data as a low-dimensional dense vector; then, the network nodes of the low-dimensional dense vector are used as input for various social communication prediction tasks. Therefore, in order to improve the performance of social communication prediction, appropriate and efficient network representation learning methods are particularly important.
[0004] Network representation learning can be roughly divided into two categories: static network representation and dynamic network representation. Most of the early static network representation methods were based on spectral clustering, but this type of method has high time and space complexity and cannot meet the needs of the growing network scale. With the development of network representation learning, many new representation learning models have been proposed. DeepWalk describes the network embedding problem as a sequence modeling problem, generates node sequences by random walks, and uses Skip-Gram to learn node representations. Based on the DeepWalk model, Node2vec integrates depth-first search and breadth-first search strategies to more flexibly explore and mine network structure information. In addition, methods that combine external information include TADW, CANE, and MMDW. The above static network representation learning methods attempt to solve the current large-scale and high-dimensional problems faced by the network field. However, the interactive system in the real world is dynamic, and its edges and nodes are constantly changing over time. These temporal characteristics are important manifestations of dynamic networks, and also reflect the network evolution mechanism and its dynamics. Therefore, static network representation learning is not applicable in the research of social communication.
[0005] There are relatively few studies on dynamic networks, and most of them are limited to discrete-time dynamic graphs represented as snapshot sequences of graphs. Although these models can apply static network deep learning models to dynamic networks by ignoring the time evolution characteristics, this is not the best solution. At the same time, these methods need to be retrained for each time slice, so the time cost is huge. In addition, although these methods show the changing characteristics of the network at different times, they lack the mining of the essential properties of the dynamic changes of the network and are not enough to model the highly dynamic nature of real networks.
[0006] For social communication in social networks, there are still several challenges in learning dynamic network representations:
[0007] 1) Combine communication theory to establish an effective network representation that is more in line with the real world
[0008] When further analyzing social communication in social networks, the present invention found that weak relationships that are different from strong social relationships are common in social communication networks (i.e., users who are not friends form social communication associations). The strong and weak relationship hypothesis is a very important theory in sociology and communication. Friedkin believes that weak relationships play a role of promotion and "bridge" in the process of information flow propagation, connecting different relationship groups. In today's booming open social networks, the existence of weak relationships can make social communication faster and wider, so the existence of weak relationships cannot be ignored.
[0009] 2) Timely capture of network dynamic evolution information
[0010] There is a dynamic relationship between naturally observed associations and interactions, but none of the existing methods can jointly model them and then learn representations through dynamic graphs. In addition, most current algorithms are direct-inductive, that is, they generate fixed node embeddings for specific fields or specific network structures. When the network structure or information changes, the direct-inductive representation learning model needs to be retrained. In contrast, the inductive learning method is more suitable for network changes. However, most inductive learning methods only use aggregation to generate node representations, which can easily cause delays in social communication networks, thereby affecting the performance of downstream machine learning tasks. Summary of the invention
[0011] The main purpose of the present invention is to overcome the above-mentioned defects in the prior art and propose a social communication dynamic network representation method based on relationship strength and feedback mechanism. The present invention combines relevant theories such as relationship strength in social communication, adds information feedback mechanism, and establishes a dynamic network representation model that is more suitable for social network social communication diffusion analysis. It is used to dynamically represent the social communication network, and solves the problems that the existing research methods cannot well reflect the real communication network, ignore the dynamic characteristics in social communication, and the timeliness of the representation of network dynamic evolution information.
[0012] The present invention adopts the following technical solution:
[0013] A social communication dynamic network representation method based on relationship strength and feedback mechanism, the method comprising:
[0014] Based on the relationship strength, the social communication dynamic network is divided into relationship network and communication network;
[0015] Describe the social communication dynamic network and its changes;
[0016] Represent node updates in social communication dynamic networks;
[0017] Update the node domain information, including: updating the adjacency matrix and attention weight of the relevant nodes, aggregating node information and feeding back node change information, and updating the node representation by combining the autocorrelation term and the time term;
[0018] The attention mechanism is introduced to measure the weight of each node and realize the aggregation and feedback of node information.
[0019] Specifically, the social communication dynamic network and the changes in the social communication dynamic network are described as follows:
[0020] First, we define the social communication dynamic network at time t:
[0021] G t =(V t ,e t )
[0022] Among them, V t is a node set, e t represents a set of edges;
[0023] Then, the set of social communication dynamic network changes in the time window [0, t] is defined as:
[0024] O={(u,v,t,k)}
[0025] Among them, {u, v} represent the two nodes that have changed, t represents the time, k is a marker, k = 0 represents the change of the relationship network, k = 1 represents the change of the communication network; the change that occurs at time t in the social communication network is simply described as t i, k, k ∈{0,1}.
[0026] Specifically, the node update in the social communication dynamic network is represented as follows:
[0027] The representation of node updates can be described as:
[0028]
[0029] Among them, E v (t) is the node representation of node v at time t; represents the influence between user node neighborhoods at time t-1, that is, extracting and aggregating network structure information and feeding back change information. is a representation vector of information about node v’s neighbor node u, which contains the attention mechanism; M r E v (t-1) represents the impact of its own historical changes, E v (t-1) is the periodic state represented by node v in the past; M T (τ-τ t-1 ) represents the impact of the external environment, τ represents the time point, M s 、M r 、M T are learnable parameters.
[0030] Specifically, the node domain information is updated as follows:
[0031] 1) Node i and node j are not related at time t-1, and the transmission behavior from i to j occurs at time t;
[0032] The node's attention relationship strength matrix S remains unchanged, that is:
[0033] S i,j (t) = S i,j (t-1), S∈n×n
[0034] n*n means that the relationship strength matrix is a square matrix, and n represents the size of the matrix;
[0035] 2) Node i and node j are already associated at time t-1, and the transmission behavior from i to j occurs at time t;
[0036] The probability density λ is introduced to measure the relationship strength of node pairs, and the softplus function is used as the external function. The probability density λ is calculated as follows:
[0037]
[0038] Among them, ψ k is a learnable scalar time scale parameter that indicates the rate at which the corresponding network changes; is the model parameter for learning time scale specific compatibility; [·||·] is the aggregation process, which means the aggregation of the node representations of two nodes at the previous moment;
[0039] Therefore, the calculation of the attention relationship strength matrix S of the node at time λ is:
[0040]
[0041] Among them, N i (t) represents the number of neighbor nodes of node i;
[0042] 3) Node i is not associated with node j, but at time t, an association and a propagation from i to j occur simultaneously;
[0043] The adjacency matrix of node i and node j is updated to A i,j (t) = 1; the attention weight of the neighborhood of node i changes, and the propagation network changes at time t. The calculation formula of the attention relationship strength matrix S between node i and its neighboring nodes is:
[0044]
[0045] Among them, U i Represents the set of all neighbor nodes of node i;
[0046] The attention relationship strength matrix of the associated node i and node j is the attention relationship strength matrix S i,j (t).
[0047] Specifically, the attention mechanism is introduced to measure the weight of each node and realize the aggregation and feedback of node information, specifically:
[0048] Output vector of node i neighborhood information aggregation The calculation formula is:
[0049]
[0050] Among them, S i,r (t) represents the attention relationship strength matrix between node i and its neighbors; E r (t-1) represents the node representation of node i’s neighbor node at time t-1; M h With b h is a learnable parameter that controls social communication; U i(t) represents the set of neighbor nodes of node i, σ(*) represents the sigmoid activation function;
[0051] The attention feedback mechanism is introduced to feed back the information of node i to its neighboring nodes. After the node i with dynamic changes updates its node representation, node i feeds back its own change information to the neighborhood, and the representation of the neighboring nodes E r The update formula of (t) is:
[0052]
[0053] Among them, E r (t-1) is the representation of the neighbor nodes of node i at time t-1; M d is a learnable vector; (E i (t)-E i (t-1)) represents the change information of node i; U i (t-1) represents the set of neighbor nodes of node i at time t-1.
[0054] It can be seen from the above description of the present invention that, compared with the prior art, the present invention has the following beneficial effects:
[0055] (1) The present invention proposes a social communication dynamic network representation method based on relationship strength and feedback mechanism. It combines relevant theories such as relationship strength in social communication, adds information feedback mechanism, and establishes a dynamic network representation model that is more suitable for social communication diffusion analysis in social networks. It is used to dynamically represent social communication networks, and solves the problems that existing research methods cannot well reflect the real communication network, ignore the dynamic characteristics in social communication, and the timeliness of network dynamic evolution information representation.
[0056] (2) The present invention calculates the probability density and adjacency matrix of changed node pairs, updates the node attention intensity matrix, aggregates node neighborhood change information, and integrates node neighborhood change information, its own historical information, and external influencing factors to perform inductive representation learning on the social communication dynamic network. At the same time, a feedback mechanism is introduced to feed back the latest node representation to neighboring nodes, thereby solving the problem of network representation timeliness and improving network representation performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A framework diagram of a dynamic network for social communication (DNRep) model provided in an embodiment of the present invention;
[0058] Figure 2 Experimental comparison results (Hits@10) of the method of the present invention and the dynamic network representation method for processing time snapshot networks provided by the embodiment of the present invention
[0059] Figure 3 Experimental comparison results (MAR) of the method of the present invention and the dynamic network representation method for processing time snapshot networks provided by the embodiment of the present invention
[0060] Figure 4 The time efficiency comparison between LDG (bilinear) and DNRep provided in the embodiment of the present invention is shown. DETAILED DESCRIPTION
[0061] The present invention is further described below through specific implementation modes.
[0062] like Figure 1 , which is a framework diagram of a dynamic network for social communication (DNRep) model provided in an embodiment of the present invention;
[0063] (1) Based on the relationship strength, the social communication dynamic network is divided into relationship network and communication network
[0064] The present invention integrates the theory of relationship strength in social networks and the information feedback mechanism, and proposes a dynamic network representation model (Dynamic Network Representations, DNRep). When establishing the DNRep model, the present invention combines the relationship strength theory in communication studies and divides the social communication dynamic network into relationship networks (strong relationships) and communication networks (weak relationships). Considering that in the process of social communication, both the relationship network and the communication network are constantly changing, and the two coexist, and the changes influence each other, forming a communication dynamics evolution mechanism. Therefore, the representation learning process is used as the intermediary process of the two networks, linking the change processes of the two networks, thereby driving the evolution of the two networks and making the node representation evolve dynamically over time.
[0065] Based on the relationship strength, the social communication dynamic network is divided into relationship network and communication network, specifically:
[0066] The social communication dynamic network is divided into a communication network (weak relationship network) and a relationship network (strong relationship network). The strong relationship changes are used to assist in influencing the weak relationship interactions, and the network is driven by dynamic changes. The network representation is obtained from the mutual driving of the two sub-networks using an inductive method.
[0067] Classification rules: Strong relationships are those with more interactions and closer relationships between the two parties, while weak relationships are those with less interactions and no strong emotional connection. Introducing this relationship strength theory into the classification of social networks, we can consider the established relationship network between users to be a strong relationship, and information can be easily spread in the strong relationship network; while the communication network formed by information exchange between users can be identified as a weak relationship, which only interacts with specific events or specific information at a certain moment, and is a temporary short-term relationship.
[0068] Benefits: Dividing the propagation dynamic network into two dynamic network types that are more detailed and closer to the actual propagation network can better reflect the real network propagation information in the network representation.
[0069] (2) Description of the propagation dynamics network
[0070] The established relationship network between users is a strong relationship, and information can be easily spread in the strong relationship network; while the communication network formed by information exchange between users can be identified as a weak relationship, which only interacts with specific events or specific information at a certain moment and is a temporary short-term relationship.
[0071] First, based on the above theory, we define the propagation dynamic network at time t:
[0072] G t =(V t ,e t )
[0073] Among them, V t is a node set, e t Represents a collection of edges.
[0074] Then, the set of network changes in the time window [0, t] is defined as:
[0075] O={(u,v,t,k)}
[0076] Here, {u, v} represents the two nodes that have changed, t represents the time, and k is a marker. k = 0 represents the evolution of the network topology (i.e., the change of the relationship network), and k = 1 represents the interaction activity on the "fixed" network topology (i.e., the change of the communication network). The change that occurs at time t in the social communication network can also be simplified as t i,k , k ∈{0,1}.
[0077] Definition of the invention is the d-dimensional representation of node i, and the node representation changes over time, so we define it as a function of time E v (t).
[0078] (3) Network node representation
[0079] There are three main factors that affect the change of node representation in social communication networks: 1) the establishment of new relationships (strong or weak) between user nodes, and the spread of information from one neighborhood to another; 2) the impact of past changes in the node itself (such as time decay); 3) the influence of external factors. Therefore, the representation of node updates can be described as:
[0080]
[0081] Among them, E v (t) is the node representation of node v at time t; represents the influence between user node neighborhoods at time t-1, that is, it extracts and aggregates network structure information and feeds back change information. is a representation vector of information about node v’s neighbor node u, which contains the attention mechanism; M r E v (t-1) represents the impact of its own historical changes, E v (t-1) is the periodic state represented by node v in the past; M T (τ-τ t-1 ) represents the influence of the external environment, such as the external influence between two changes in the network topology related to the node, and τ represents the time point. s 、M r 、M T are learnable parameters.
[0082] For the above formula, The output representation vector includes the update of node attention, the aggregation of node information and the feedback of change information. The changes brought by the neighborhood have the greatest impact on the representation of node updates, which is the key research and improvement part of the present invention.
[0083] (4) Node neighborhood information update
[0084] The changes of user nodes in social communication networks can be roughly divided into three categories: 1) Only weak relationships are formed between nodes at this moment; 2) Strong relationships such as following and friends already exist between nodes, and weak relationship interactions such as forwarding occur at this moment; 3) Both strong and weak relationships are formed between nodes at this moment. The flowchart of the DNRep model updating node representation is as follows Figure 1 As shown (taking the third category, where the association network and the propagation network change at the same time, as an example).
[0085] Figure 1 It shows that at time t, there is association (strong relationship) and propagation (weak relationship) between node 2 and node 4. Since the relationship network and the propagation network change at the same time, it is necessary to update the adjacency matrix and attention weights of the relevant nodes, aggregate node information and feedback node change information, and finally update the node representation by combining the autocorrelation term and the time term.
[0086] Since there may be three different situations for changes between nodes, the present invention discusses the three situations separately for updating node neighborhood information.
[0087] 1) Node i and node j are not related at time t-1, and the transmission behavior from i to j occurs at time t
[0088] At this time, since only a weak relationship is formed, the node's attention relationship strength matrix S remains unchanged, that is:
[0089] S i,j (t) = S i,j (t-1), S∈n×n
[0090] n*n means that the relationship strength matrix is a square matrix, and n represents the size of the matrix;
[0091] 2) Node i and node j are already associated at time t-1, and the transmission behavior from i to j occurs at time t
[0092] In order to measure the relationship strength of node pairs, the probability density λ is introduced. Considering that λ needs to satisfy the condition that the calculation result is positive and it is also necessary to distinguish between the association network and the propagation network, the present invention uses the softplus function as an external function, and the probability density λ is calculated as follows:
[0093]
[0094] Among them, ψ k is a learnable scalar time scale parameter that indicates the rate at which the corresponding network changes; is the model parameter for learning time scale specific compatibility; [·||·] is the aggregation process, which means the aggregation of the node representations of two nodes at the previous moment.
[0095] Therefore, the calculation of the attention relationship strength matrix S of the node at time λ is:
[0096]
[0097] Among them, N i (t) represents the number of neighbor nodes of node i.
[0098] 3) Node j is not associated with node i, but is associated with node j at time t and propagates from node i to node j
[0099] Since the association occurs at time t, the adjacency matrix between node i and node j is updated to A i,j (t) = 1. The change in the network topology caused by the association behavior also changes the attention weight of the neighborhood of node i. At the same time, the propagation network also changes at time t. Therefore, the calculation formula of the attention relationship strength matrix S between node i and its neighboring nodes is:
[0100]
[0101] Among them, U iRepresents the set of all neighbor nodes of node i.
[0102] The calculation method of the attention relationship strength matrix S between the newly associated nodes i and j is as shown in formula (6).
[0103] (5) Node information aggregation and feedback
[0104] The present invention applies the attention mechanism to the dynamic model to measure the weight of each node, taking into account the impact of network dynamic changes on attention, and uses softmax to output the aggregated information in the form of a vector. Therefore, the output vector of the aggregated neighborhood information of node i is The calculation formula is:
[0105]
[0106] Among them, S i,r (t) represents the attention relationship strength matrix between node i and its neighbors; E r (t-1) represents the node representation of node i’s neighbor node at time t-1; M h With b h is a learnable parameter that controls social communication; U i (t) represents the set of neighbor nodes of node i.
[0107] In formula (3), due to E j (t-1) is the autocorrelation term, (τ-τ t-1 ) is a time-related term. Both can be calculated directly. Therefore, the node representation E at time i can be calculated according to formula (3): i (t-1).
[0108] Then, in order to improve the timeliness of network updates, we introduced a feedback mechanism to feed back the information of node i to its neighboring nodes. After the node i with dynamic changes updates its node representation, node i feeds back its own change information to the neighboring nodes, and the representation E of the neighboring nodes r The update formula of (t) is:
[0109]
[0110] Among them, E r (t-1) is the representation of the neighbor nodes of node i at time t-1; M d is a learnable vector; (E i (t)-E i (t-1)) represents the change information of node i; U i (t-1) represents the set of neighbor nodes of node i at time t-1.
[0111] The social communication network represented by the method of the present invention is input into the prediction model for training; the specific training method is:
[0112] First, the model adopts an unsupervised learning process, and the parameter space Ω to be learned for the entire model is:
[0113] Ω={M s ,M r ,M t ,M h ,M d ,b h ,{w k} k=0,1 ,{ψ k} k=0,1}
[0114] The model is then trained by minimizing the negative log-likelihood. For a set O that has n changes in the time window [0, T], the loss function L is defined as:
[0115]
[0116] Among them, n≠0; λ is the probability density function of the node pair relationship strength; the latter term represents the total survival probability.
[0117] In order to evaluate the performance of the social communication dynamic network model provided by the present invention and improve comparability, the present invention uses the data sets used by previous works, including the Social Evolution data set and the Github data set;
[0118] The Social Evolution dataset contains more than 2 million events (including social communication events and relationship building events). The present invention uses social communication events such as opinion exchange as the communication network of the model, and the closefriend relationship between teachers and students as the relationship network of the model. Since the number of adjacent interval records is too large and contains a lot of noise, we preprocess the dataset in the same way as the DyRep model and filter according to the probability of adjacent interval records occurring. The statistics of the preprocessed dataset are shown in Table 1.
[0119] The Github dataset records the developer's code writing, document submission, and collection access according to the timeline, and the dataset is updated every hour. The present invention uses the network formed by the developer's attention to collection and other behaviors as the relationship network of the model, and the network formed by the document access and submission behaviors as the propagation network of the model. After using a preprocessing method similar to the LDG model, the obtained dataset statistics are shown in Table 1.
[0120] Table 1 Social Evolution and Github datasets
[0121] Dataset Social Evolution Github Number of nodes 83 284 Initial association 575 149 Final association 708 710 Training Events 43834 11644 Test Events 10535 9082
[0122] In order to better compare the model performance, this paper selects seven representative methods as comparison methods, as follows:
[0123] (1) Node2vec model. The Node2vec model is an easy-to-train network embedding model designed by utilizing the characteristics of similar structural features (i.e., community structure) in the network. It not only maintains node neighbor information but also reflects network information. Its basic idea is similar to Deepwalk, which also generates random walks and samples the random walks to obtain network node representations.
[0124] (2) DynGem model: A dynamic network representation learning algorithm that uses a deep autoencoder to encode snapshots of dynamic graphs, divides the timeline into discrete time points, and retains the structure to learn the embedding of the graph snapshots at these time points.
[0125] (3) GraphSage model: An inductive representation learning method that samples the neighborhood structure information of each node in the graph, and then aggregates the sampled information through an aggregation function to obtain a vector representation of each vertex in the graph.
[0126] (4) GAT model. The GAT model uses a multi-head non-uniform attention mechanism for the neighborhood based on the GraphSage model.
[0127] (5) Know-Evolve model. The Know-Evolve model is a pioneer in introducing time point processes into dynamic graph representation learning. The model combines dynamic time point processes with a deep neural network framework, taking into account the evolution of knowledge over time and the complex interaction of entities in multivariate relationships. It models the occurrence of events in the knowledge graph as a multidimensional point process by parameterizing conditional strength functions and relationship scores.
[0128] (6) DyRep model. The change of graph structure is divided into two processes, and the aggregation mechanism is introduced and combined with the attention mechanism. The relevant node representation is obtained by training the corresponding parameters, and this representation can be changed dynamically. The model designed by the present invention is improved based on the DyRep model.
[0129] (7) LDG model. The LDG model uses the Neural Relational Inference (NRI) model to infer event types in the graph. It can consider more than two types of edges at the same time, extending the DyRep model to study multi-relational graphs. It also adds bilinear encoder layers to capture deeper interactions between different nodes.
[0130] The evaluation criteria are as follows:
[0131] Link prediction is to predict the users who may interact with each other at the next moment. Since there are a large number of potential target users, it is usually unrealistic to accurately predict the next user, but a user candidate set can be predicted. Predicting the next user who may forward information can be regarded as a retrieval problem. All users who may generate links at the next moment are ranked and the ranking index is used as the evaluation criterion. Referring to the existing social communication diffusion research, the top ten hit rate (HITS@10) and the mean average rank (MAR) are selected as evaluation indicators.
[0132] Top Ten Hit Rate (HITS@10): For a given tuple during a prediction task, calculate its conditional density with other nodes, rank them, and then compare them with the next moment to test the ratio of the number of times the node appears in the top ten. The higher the HITS@10 value, the better the experimental evaluation result.
[0133] Mean Average Rank (MAR): The average ranking of the test tuples. The smaller the MAR, the better the experimental evaluation results.
[0134] The hyperparameter settings of the experiment are: batch_size of training = 200, dropout = 0, and the number of neurons in the hidden layer d = 32. The present invention uses the Adam optimizer to train the model, and the learning rate is 0.0002. Each model is run 10 times and the average result is taken.
[0135] Figure 2 , Figure 3 The comparison results of Hits@10 and MAR values of the method of the present invention and four dynamic network representation methods based on time snapshot discrete networks, namely Node2vec, DyGem, GraphSage, and GAT, on two data sets are shown respectively. The main idea of the above representation methods when processing dynamic graphs is to divide the dynamic graph into discrete snapshot graphs, and then perform static network representation on the snapshot graph at the current moment. The social communication network in the real world is dynamic, and the time distribution of changes is uneven, which greatly affects the performance of static network representation in continuous time series. Therefore, these models are not effective in the prediction task of real-world dynamic network datasets.
[0136] For the Social Evolution dataset, the GraphSage model has the best performance among the four models, with HITS@10 and MAR values of 0.12 and 37.0 respectively. For the Github dataset with large data volume and sparse node distribution, the GAT model has better performance in processing sparse data among the four models due to the introduction of a multi-head non-uniform attention mechanism, with HITS@10 and MAR values of 0.21 and 107.1 respectively. The more classic Node2vec model, which generates node representations by random walks, sampling the results, and combining features such as community structure, does not work well when processing the Github dataset with large data scale and sparse nodes, with a MAR value of 139.4 (the MAR value of random prediction is about 140).
[0137] The method of the present invention is a dynamic network representation method for processing continuous time networks, and can have relatively excellent performance in continuously changing dynamic networks. Experiments have proved that the method of the present invention is significantly superior to the above four methods.
[0138] Table 2 shows the experimental comparison results of the method of the present invention and other dynamic network representation methods based on continuous time networks on SocialEvolution and Github datasets. Among them, the experimental results with the best performance are marked in bold, and the suboptimal ones are marked with underscores.
[0139] Table 2 Experimental comparison results with dynamic network representation methods for processing continuous time networks
[0140]
[0141] Based on the experimental results, the model proposed in this invention is compared with other baseline methods and the following analysis is made.
[0142] 1)Comparison with the Know-Evolve model.
[0143] The Know-Evolve model is mainly suitable for representation learning of knowledge graphs, and its representation effect on real-world dynamic network datasets is relatively limited. The HITS@10 and MAR values obtained in the Social Evolution dataset are 0.25 and 30.0 respectively; the HITS@10 and MAR values obtained in the Github dataset are 0.17 and 109.8 respectively. The Know-Evolve model has certain advantages in performance compared to the first three network representation learning methods that are divided into discrete snapshot graphs, but compared to the method of the present invention, the method of the present invention is obviously more effective.
[0144] 2)Comparison with the DyRep model.
[0145] For the DyRep model, the present invention is mainly based on the DyRep model framework for improvement. The relationship strength theory of communication is considered in the model, and the information feedback mechanism is added after the node information is aggregated. In the experiment of the Social Evolution dataset, the method of the present invention is 0.09 and 1.6 higher than the DyRep model in HITS@10 and MAR values respectively; in the Github dataset, the method of the present invention is 0.03 and 25.7 higher in the two evaluation indicators respectively. This shows that the performance of the improved model of the present invention has been significantly improved.
[0146] 3)Comparison with the LDG model.
[0147] The LDG model uses neural relational inference (NRI) to improve the DyRep model, breaking through the limitation that the DyRep model can only study two types of relations; in addition, a bilinear coding layer is added to enable the model to capture more node information. Without the addition of a bilinear coding layer, the method of the present invention outperforms the LDG model in all evaluation indicators on the two data sets.
[0148] For the LDG model with a bilinear coding layer, the results obtained by the method of the present invention on the Social Evolution dataset are 0.19 and 2.5 higher in terms of HITS@10 and MAR respectively. However, due to the large amount of data in the Github dataset and the sparse distribution of nodes, the potential relationships captured by the bilinear coding layer in a large sparse network can effectively improve the performance of downstream prediction tasks, so the experimental results of the method of the present invention on the Github dataset are suboptimal.
[0149] The present invention tests the time efficiency of link prediction tasks in two data sets using the Intel(R) Xeon(R) W-2102 CPU, NVIDIA GeForce GTX 1080 GPU, 32G memory, and Windows 10 Professional system environment. The test is performed ten times and the average result is as follows: Figure 4 shown.
[0150] The test results show that the time efficiency of the method of the present invention is significantly better than that of the LDG model with a bilinear layer. The average time efficiency of the method of the present invention on the Social Evolution dataset is 91.8% higher than that of the LDG model with a bilinear layer, and on the Github dataset, the method of the present invention is also 87.2% higher.
[0151] In summary, the DNRep model proposed in the present invention is optimal or suboptimal in various evaluation indicators in experiments on real network datasets. The LDG model after adding the bilinear coding layer shows relatively excellent performance on the Github dataset, but the method proposed in the present invention is significantly better than the LDG model in terms of time efficiency. For the relatively dense social communication networks in the real world that only contain strong and weak relationships, the DNRep model proposed in the present invention is more applicable and has better comprehensive performance. In general, the improvements made by the present invention are effective, and the proposed DNRep model has significant results in improving the performance of downstream prediction tasks.
[0152] The above is only a specific implementation of the present invention, but the design concept of the present invention is not limited thereto. Any non-substantial changes to the present invention using this concept shall be deemed as an infringement of the protection scope of the present invention.
Claims
1. A social communication dynamic network representation method based on relationship strength and feedback mechanism, characterized by: The method comprises: Based on the relationship strength, the social communication dynamic network is divided into relationship network and communication network; Describe the social communication dynamic network and its changes; Represent node updates in social communication dynamic networks; Update the node domain information, including: updating the adjacency matrix and attention weight of the relevant nodes, aggregating node information and feeding back node change information, and updating the node representation by combining the autocorrelation term and the time term; Introduce the attention mechanism to measure the weight of each node and realize the aggregation and feedback of node information; The description of the social communication dynamic network and the changes in the social communication dynamic network is specifically as follows: First, we define the social communication dynamic network at time t: G t =(V t ,e t ) Among them, V t is a node set, e t represents a set of edges; Then, the set of social communication dynamic network changes in the time window [0, t] is defined as: O={(u,v,t,k)} Among them, {u, v} represent the two nodes that have changed, t represents the time, k is a marker, k = 0 represents the change of the relationship network, k = 1 represents the change of the communication network; the change that occurs at time t in the social communication network is simply described as t i,k ,k∈{0,1}; The node update in the social communication dynamic network is represented as follows: The representation of node updates can be described as: Among them, E v (t) is the node representation of node v at time t; It represents the influence between user node neighborhoods at time t-1, that is, extracting and aggregating network structure information and feeding back change information. is a representation vector of information about node v’s neighbor node u, which contains the attention mechanism; M r E v (t-1) represents the impact of its own historical changes, E v (t-1) is the periodic state represented by node v in the past; M T (τ-τ t-1 ) represents the impact of the external environment, τ represents the current time point, M s 、M r 、M T are learnable parameters.
2. The method for representing a social communication dynamic network based on relationship strength and feedback mechanism according to claim 1 is characterized in that: Update the node domain information, specifically: 1) Node i and node j are not related at time t-1, and the transmission behavior from i to j occurs at time t; The node's attention relationship strength matrix S remains unchanged, that is: S i,j (t)=S i,j (t-1),S∈n×n Among them, n*n means that the relationship strength matrix is a square matrix, and n represents the size of the matrix; 2) Node i and node j are already associated at time t-1, and the transmission behavior from i to j occurs at time t; The probability density λ is introduced to measure the relationship strength of node pairs, and the softplus function is used as the external function. The probability density λ is calculated as follows: Among them, ψk is a learnable scalar time scale parameter, which represents the rate at which the corresponding network changes; is the model parameter for learning time scale specific compatibility; [·||·] is the aggregation process, which means the aggregation of the node representations of two nodes at the previous moment; Therefore, the calculation of the attention relationship strength matrix S of the node at time λ is: Among them, N i (t) represents the number of neighbor nodes of node i; 3) Node i is not associated with node j, but at time t, an association and a propagation from i to j occur simultaneously; The adjacency matrix of node i and node j is updated to A i,j (t) = 1; the attention weight of the neighborhood of node i changes, and the propagation network changes at time t. The calculation formula of the attention relationship strength matrix S between node i and its neighboring nodes is: Among them, U i Represents the set of all neighbor nodes of node i; The attention relationship strength matrix of the associated node i and node j is the attention relationship strength matrix S i,j (t).
3. The method for representing a social communication dynamic network based on relationship strength and feedback mechanism according to claim 1, characterized in that: The attention mechanism is introduced to measure the weight of each node and realize the aggregation and feedback of node information. Specifically: Output vector of node i neighborhood information aggregation The calculation formula is: Among them, S i,r (t) represents the attention relationship strength matrix between node i and its neighbors; E r (t-1) represents the node representation of node i’s neighbor node at time t-1; M h With b h is a learnable parameter that controls social communication; U i (t) represents the set of neighbor nodes of node i; The attention feedback mechanism is introduced to feed back the information of node i to its neighboring nodes. After the node i with dynamic changes updates its node representation, node i feeds back its own change information to the neighborhood, and the representation of the neighboring nodes E r The update formula of (t) is: Among them, E r (t-1) is the representation of the neighbor nodes of node i at time t-1; M d is a learnable vector; (E i (t)-E i (t-1)) represents the change information of node i; U i (t-1) represents the set of neighbor nodes of node i at time t-1, and σ(*) represents the sigmoid activation function.
