A method, device, computing device and storage medium for predicting social media content dissemination

By constructing discrete time snapshots of dynamic social media propagation networks and using hyperbolic space and temporal self-attention mechanisms in social media content propagation prediction, the problem of ignoring the characteristics of graph data in the existing technology is solved, and more accurate content propagation is achieved. Forecasting and platform management.

CN117787341BActive Publication Date: 2024-10-22WUHAN UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311854761.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2024-10-22
Estimated Expiration
2043-12-28

AI Technical Summary

Technical Problem

Existing techniques ignore the hierarchical and scale-free characteristics of graph data in social media content propagation prediction, resulting in embedding distortion and poor prediction results.

Method used

By constructing discrete time snapshots of dynamic social media communication networks, using hyperbolic space and temporal self-attention mechanisms, we capture local relationships and time evolution rules between nodes, calculate users' hyperbolic embedding vector sequences, and predict future content communication probability.

Benefits of technology

It improves the accuracy of content propagation prediction, helps the platform conduct more precise promotion and control, makes full use of the hierarchical characteristics of social media propagation graph data, and promotes the development of social media platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117787341B_ABST
    Figure CN117787341B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for predicting social media communication, a computing device and a storage medium. The method comprises: obtaining historical content communication relationship data, constructing a discrete time snapshot of social media communication relationship according to the historical communication relationship data, and obtaining a first hyperbolic embedding vector sequence of users in each time snapshot; calculating a second hyperbolic embedding vector sequence of users at each time snapshot according to the discrete time snapshot of the communication relationship and the first hyperbolic embedding vector sequence of users; calculating a third hyperbolic embedding vector sequence of users according to the second hyperbolic embedding vector sequence of users; predicting the probability of different users forming edges in the future according to the third hyperbolic embedding vector sequence of users; optimizing the prediction model according to the relationship probability of the user historical content communication relationship time snapshot and the training sample data. The present invention can greatly utilize the hierarchical characteristics of social media communication graph data to capture the potential relationship between users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data analysis technology, and in particular to a method, device, computing equipment and storage medium for predicting the dissemination of social media content. Background Art

[0002] With the rapid development and popularization of the Internet, a large number of online social networks have emerged, which have become the main platform for people to share, disseminate and obtain information. The media can publish content on the platform, and a large number of users also accelerate the dissemination of content by liking, forwarding and other behaviors.

[0003] The existing research on content propagation prediction mainly focuses on the field of graph embedding. By modeling historical propagation as graph data, machine learning, deep learning and other methods are used to model the process of content propagation between users. It is of great significance for commercial promotion, social hot spot tracking and sensitive content monitoring. By analyzing the characteristics of content propagation, the scope of content propagation can be adjusted, the user group of propagation can be affected or the rapid propagation of content can be avoided. Most existing models embed the social media content propagation graph into Euclidean space, ignoring the inherent hierarchical and scale-free characteristics of such graph data, resulting in embedding distortion and worse prediction results. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a social media content propagation prediction method that overcomes the above problems or at least partially solves the above problems, which includes:

[0005] Step S101: Obtain user historical content propagation relationship data corresponding to historical social media content, and construct a discrete time snapshot of a dynamic social media propagation network according to the historical propagation relationship data at a certain time step to obtain a first hyperbolic embedding vector sequence of each user in each time snapshot;

[0006] Step S102: According to the discrete time snapshots of the dynamic social media communication network and the first hyperbolic embedding vector sequence of the user, a second hyperbolic embedding vector sequence of the user containing local features is calculated at each time snapshot;

[0007] Step S103: Based on the discrete time snapshots of the dynamic social media communication network and the second hyperbolic embedding vector sequence of the user, the same node representation on each time snapshot is regarded as a time sequence, and the third hyperbolic embedding vector sequence of the user is calculated on the node time sequence;

[0008] Step S104: predicting the probability of forming edges between different users in the future based on the calculated last vector in the third hyperbolic embedding vector sequence of the user.

[0009] Optionally, the step S10 includes:

[0010] Analyze users’ historical communication relationship data and construct discrete time snapshots of dynamic social media communication networks;

[0011] Through the mapping between the hyperbolic space and the Euclidean space, the user's embedding vector in the Euclidean space is projected to obtain the user's first hyperbolic embedding vector sequence in the hyperbolic space.

[0012] Optionally, the step S102 includes:

[0013] Apply a hyperbolic transformation operation to the user's first hyperbolic embedding vector sequence to map the node embedding from the previous layer to the embedding space of the next layer, and obtain the hyperbolic transformed vectors of all nodes on the time snapshot;

[0014] The hyperbolic distance between node embeddings is calculated through the vector after hyperbolic transformation, and the spatial attention value is designed using the hyperbolic distance. The spatial attention value is further used to perform weighted summation on the neighbors of the node to obtain the weighted summation result of the node.

[0015] The hyperbolic transformed vector is projected into the tangent space, an activation function is applied, and then the Euclidean vector after the activation transformation is projected back into the hyperbolic space to obtain the user's second hyperbolic embedding vector sequence.

[0016] Optionally, the spatial attention value α ij for:

[0017]

[0018]

[0019]

[0020] in is the neighborhood set of node i, and exp is the exponential function: represents the hyperbolic distance between two vectors, Represent the vectors after hyperbolic transformation of node i, node j and node w respectively.

[0021] Optionally, the step S103 includes: calculating a corresponding hyperbolic query sequence, a key sequence and a value sequence for a second hyperbolic embedding vector sequence of the user;

[0022] The hyperbolic temporal self-attention value is calculated according to the calculated hyperbolic query sequence and key sequence, and the third hyperbolic embedding vector sequence of the node is calculated according to the weighted summation of the calculated hyperbolic temporal self-attention value and the value sequence.

[0023] Optionally, a hyperbolic temporal self-attention value is calculated based on the hyperbolic query sequence and the key sequence Specifically:

[0024]

[0025]

[0026]

[0027] is the mask matrix, which is defined as follows:

[0028]

[0029]

[0030] Where exp is the exponential function, t m , t n is the time corresponding to any two time snapshots of the node, is the query sequence at t m The corresponding vector on the snapshot, is the key sequence in t n ,t k The corresponding vectors on the snapshot, a, c are learnable vectors.

[0031] Optionally, the method further comprises:

[0032] Step S105: predict the probability of forming a content dissemination relationship among user groups, and optimize the prediction model according to the cross entropy loss function calculated based on the samples in the training set.

[0033] According to another aspect of the present invention, a social media content dissemination prediction device is provided, comprising:

[0034] A hyperbolic vector projection module is used to obtain the user historical content propagation relationship data corresponding to the historical social media content, and to construct a discrete time snapshot of the dynamic social media propagation network according to a certain time step based on the historical propagation relationship data, and obtain the first hyperbolic embedding vector sequence of each user in each time snapshot;

[0035] A structural self-attention embedding calculation module is used to calculate a second hyperbolic embedding vector sequence of a user containing local features at each time snapshot based on a discrete time snapshot of a dynamic social media communication network and a first hyperbolic embedding vector sequence of the user;

[0036] The temporal self-attention embedding calculation module is used to treat the same node representation on each time snapshot as a time series based on the discrete time snapshots of the dynamic social media communication network and the second hyperbolic embedding vector sequence of the user, and calculate the third hyperbolic embedding vector sequence of the user on the node time series;

[0037] A prediction module is used to predict the probability of different users forming edges in the future based on the last vector in the calculated third hyperbolic embedding vector sequence of the user;

[0038] The optimization module is used to predict the probability of forming content dissemination relationships among user groups and optimize the prediction model based on the cross entropy loss function calculated based on the samples in the training set.

[0039] According to another aspect of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0040] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the above-mentioned social media content dissemination prediction method.

[0041] According to yet another aspect of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to perform operations corresponding to the above-mentioned social media content dissemination prediction method.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] According to the social media communication prediction method and device provided by the present invention, a discrete time snapshot of a dynamic social media content communication network is constructed by constructing the user's historical content communication relationship according to a certain time step, and the snapshot is projected into a hyperbolic space. The spatial hyperbolic self-attention mechanism is used to capture the local relationship between nodes in the hyperbolic space. The temporal hyperbolic self-attention mechanism is used to capture the time evolution law of nodes in the hyperbolic space. The dissemination range of the content can be predicted, which facilitates the control of the dissemination of the content, helps the platform recommend more suitable content, conducts more accurate promotion, realizes reasonable control of the content, and promotes the development of social media platforms. Unlike existing deep learning models, the present invention uses a hyperbolic distance to design a self-attention mechanism, which can greatly utilize the hierarchical characteristics of social media communication graph data to capture the potential relationship between users. At the same time, the present invention uses the Einstein midpoint method to directly weight the aggregation node embedding in the hyperbolic space, retaining the global characteristics of the embedding space. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0045] Figure 1 A flow chart of a social media content propagation prediction method provided by an embodiment of the present invention is shown;

[0046] Figure 2 A schematic diagram of a model structure of a social media content propagation prediction method provided by an embodiment of the present invention is shown;

[0047] Figure 3 A schematic diagram of a hyperbolic self-attention layer structure provided by an embodiment of the present invention is shown;

[0048] Figure 4 A schematic diagram of the structure of a hyperbolic time self-attention layer provided in an embodiment of the present invention is shown;

[0049] Figure 5 A schematic diagram of the structure of a social media content dissemination prediction device provided by an embodiment of the present invention is shown;

[0050] Figure 6 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0051] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0052] Example 1

[0053] Figure 1 A flowchart of an embodiment of a method for predicting the spread of social media content according to the present invention is shown in FIG. Figure 1 As shown, the method comprises the following steps:

[0054] Step S101: Obtain historical content propagation relationship data corresponding to historical social media content, and construct a discrete time snapshot of a dynamic social media content propagation network according to the historical content propagation relationship data at a certain time step to obtain a first hyperbolic embedding vector sequence of each user in each time snapshot.

[0055] In this embodiment, a prediction model is used to predict the probability of future relationships between users based on the historical content dissemination relationship between users. Specifically, the historical content dissemination relationship between users refers to the history of interaction between users in social media, including forwarded content, liked content, commented content, etc. Figure 2As shown in FIG. 1 , the historical content propagation relationship of users can be stored using a graph data structure. In the graph data, each node represents a single user, and the edges represent the relationship characteristics between users. In particular, in this embodiment, the relationship characteristics all have time attributes. Based on the time attributes of the edges, the historical content propagation relationship data between users can be constructed into discrete time snapshots at a certain time step. Where T is the number of time snapshots, and each time snapshot G t =(V t , E t ), where V t is the set of nodes at time t, E t It is the edge set of the user's historical content propagation relationship at time t.

[0056] For a user node on a time snapshot, the user's embedding vector in the hyperbolic space (referred to as the hyperbolic vector) can be projected by the user's embedding vector in the Euclidean space (referred to as the Euclidean vector). The hyperbolic space is a space with a negative curvature constant. There are many models that can be used to describe the hyperbolic space. In this embodiment, the Lorentz model is used. and Klein model To describe the hyperbolic space, the curvature is -(1 / K). In this embodiment, the Euclidean vectors of all users in each time slice are expressed as d is the dimension of the Euclidean vector, and each user is a one-hot Euclidean vector. The one-hot Euclidean vector can be mapped to the hyperbolic space through the mapping between the hyperbolic space and the Euclidean space to obtain the first hyperbolic embedding vector sequence of the user under the Lorenz model. f is the hyperbolic vector dimension.

[0057] The formula for calculating the first hyperbolic embedding vector is as follows:

[0058]

[0059] in, The vector after adding one dimension to the Euclidean embedding of user i at the snapshot at time t, is the calculated hyperbolic embedding of user i at the snapshot at time t. is an exponential mapping operation that projects Euclidean space into hyperbolic space. is the origin vector of the hyperbolic space, and the specific calculation formula of the exponential mapping is as follows:

[0060]

[0061] in is a vector on hyperbolic space, is a vector on the tangent space of x, where the tangent space is the local Euclidean approximation of a point in the hyperbolic space. The function cosh is the hyperbolic cosine function, and the function sinh is the hyperbolic sine function. is a vector on the tangent space After the above calculation, is the first hyperbolic embedding vector of node i at time snapshot t, For all nodes on the , the calculation process is expressed in matrix form as follows:

[0062]

[0063] in, is the matrix representation of the Euclidean eigenvectors of all nodes in the graph, is the matrix representation of the hyperbolic eigenvectors of all nodes in the graph.

[0064] Step S102, based on the discrete time snapshots of the user's historical content propagation relationship and the user's first hyperbolic embedding vector sequence, calculate the user's second hyperbolic embedding vector sequence containing local features on each time snapshot.

[0065] The relationship between users changes over time. In the discrete time snapshots of the user's historical content dissemination relationship, the network corresponding to each snapshot is different, and the users also have different relationships in the time period shown in the snapshot. Based on the discrete time snapshots, the hyperbolic structural self-attention layer (HSSALayer) can be used to extract the local features of the nodes in each snapshot to obtain the user's second hyperbolic embedding vector sequence.

[0066] HSSA is a graph self-attention neural network based on hyperbolic distance. It designs the self-attention mechanism through the hyperbolic distance between node embeddings, and then uses the Einstein Midpoint Method to weighted sum the node embeddings in the hyperbolic space to obtain the node hyperbolic embedding that captures the local structure on the snapshot.

[0067] Specifically, Figure 3 As shown, HSSA consists of three steps: Compute the linear transformation result of the node hyperbolic embedding vector Calculate the weighted sum of the nodes Apply activation function to node embedding to get final output

[0068] Specifically, for each snapshot, a hyperbolic transformation operation is first applied to the hyperbolic embedding of the node to map the node embedding from the previous layer to the embedding space of the next layer. The calculation formula is as follows:

[0069]

[0070] in is the weight matrix, is the bias vector. is a multiplication operation in hyperbolic space, It is an addition operation in hyperbolic space. The specific calculation formula is as follows:

[0071]

[0072]

[0073] Multiplication and addition in hyperbolic space extend the definition of addition and multiplication in Euclidean space, where is the logarithmic mapping function that maps hyperbolic vectors to tangent space, and is the hyperbolic embedding of a node mapped to the hyperbolic origin. The corresponding tangent space, for any The specific calculation formula is as follows:

[0074]

[0075] in, Represents the hyperbolic distance between two vectors, calculated as follows:

[0076]

[0077] Here, arcosh is the hyperbolic inverse cosine function.

[0078] is the parallel translation function in hyperbolic space, which moves the corresponding vector from the hyperbolic origin The tangent space of moves to the tangent space of x. The specific calculation formula is as follows:

[0079]

[0080] Through the hyperbolic transformation, the input node hyperbolic vector Calculate the linear transformation result

[0081] Specifically, after obtaining the linear transformation results of all nodes on the time snapshot, the hyperbolic distance between node embeddings can be calculated through the transformed vector, and the attention value is designed using the hyperbolic distance. The attention is further used to perform weighted summation on the neighbors of the node to obtain the weighted summation result of the node. In this embodiment, the hyperbolic distance represents the closeness of the relationship between nodes. The closer the distance, the closer the relationship between the nodes, and the greater the possibility of forming an edge in the future. The formula for calculating the hyperbolic distance is as follows:

[0082]

[0083] Here, arcosh is the hyperbolic inverse cosine function.

[0084] After obtaining the hyperbolic distance, the attention coefficient between nodes is designed. In this embodiment, the larger the hyperbolic distance, the smaller the influence between nodes, and the smaller the corresponding attention value. Therefore, we design the attention mechanism as follows:

[0085]

[0086]

[0087]

[0088] in is the neighborhood set of node i, and exp is an exponential function. The self-attention value calculated based on the hyperbolic distance makes full use of the advantages of hyperbolic space in embedding social media relationship networks, and reflects the hierarchical and power-law characteristics of social media relationship networks. After obtaining attention, a weighted summation can be performed on all the neighboring nodes of the node, and the result of the weighted summation is used as the new embedding representation of the node. Before performing the weighted summation calculation, the hyperbolic embedding of the node under the Lorentz model representation will be projected to the hyperbolic embedding under the Klein model representation, because the Einstein midpoint method used in the weighted summation is calculated under the Klein model. For the hyperbolic embedding under the Klein model representation and the corresponding hyperbolic embedding in the Lorentz model representation The projection function from the Lorentz model to the Klein model is The projection function from the Klein model to the Lorentz model is

[0089]

[0090]

[0091] Combining the projection function and the calculated attention value, the Einstein midpoint method can be used to calculate the weighted embedding vector of the node. The Einstein midpoint method is an extension of the Euclidean space midpoint method in hyperbolic space. The specific calculation formula is as follows:

[0092]

[0093]

[0094] Among them, γ j yes The corresponding Lorentz coefficient is calculated as follows:

[0095]

[0096] The above formula is calculated It is the hyperbolic vector representation of node i after weighted summation.

[0097] Specifically, after obtaining the hyperbolic vector representation after weighted summation of the vectors, an activation function is applied to the vector to ensure the nonlinearity of the embedding. The specific calculation formula is as follows:

[0098]

[0099]

[0100] In order to apply the hyperbolic nonlinear activation function, we project the hyperbolic vector to the tangent space, apply the activation function f(·), in this embodiment, the activation function selects the ReLU function, and then projects the Euclidean vector after the activation transformation back to the hyperbolic space. The second hyperbolic embedding vector of the user is obtained. In this embodiment, the number of layers of HSSA is 2, and the final output of the second hyperbolic embedding vector of the user is

[0101] At each time snapshot, there is such a hyperbolic embedding vector. By concatenating the user's hyperbolic embedding vector at each snapshot into a sequence, we get the user's second hyperbolic embedding vector sequence

[0102] Step S103, based on the discrete time snapshots of the user's historical content propagation relationship and the user's second hyperbolic embedding vector sequence, the same node representation on each time snapshot is regarded as a time series, and the user's third hyperbolic embedding vector sequence is calculated on the node time series.

[0103] In order to capture the evolution of the relationship between users over time and further predict future propagation, the snapshots of the same node in time can be regarded as time series, and the Hyperbolic Temporal Self-Attention Layer (HTSA Layer) can be applied to capture the evolution of the node. HTSA focuses on the evolution of the hyperbolic embedding of a single node, so it can be operated in large-scale parallel.

[0104] like Figure 4 As shown, HTSA consists of two steps: the second hyperbolic embedding vector sequence for node i Calculate the corresponding hyperbolic query sequence, key sequence, and value sequence. Calculate the hyperbolic temporal self-attention value based on the calculated hyperbolic query sequence and key sequence. Calculate the third hyperbolic embedding vector sequence of the node based on the weighted sum of the calculated self-attention value and value sequence.

[0105] Specifically, HTSA extends the Transformer architecture in Euclidean space in hyperbolic space and uses hyperbolic transformations to construct query sequences. and key sequence The specific formula is as follows:

[0106]

[0107]

[0108] in is the corresponding weight matrix, b q , b k is the corresponding bias vector. The query sequence and key sequence are used to calculate the self-attention value of the node sequence in time, and the value sequence user weighted summation obtains the embedding vector of the node. As described in step S102, the weighted summation in the hyperbolic space needs to be performed on the Klein model, so we use the following formula for projection:

[0109]

[0110] Specifically, after obtaining the query sequence and the key sequence, we calculate the time-dependent self-attention value of the second hyperbolic embedding vector sequence of the node through the query sequence and the key sequence. The specific calculation is as follows:

[0111]

[0112]

[0113]

[0114] Among them, t m , t n is the time corresponding to any two time snapshots of the node, is the query sequence at t m The corresponding vector on the snapshot, is the key sequence at t n The corresponding vector on the snapshot. a, c are learnable vectors used to control the size of the temporal self-attention value. It is a mask matrix used to ensure the time order so that the embedding of future time snapshots cannot affect the embedding of past time snapshots. It is defined as follows:

[0115]

[0116]

[0117] Specifically, after calculating the temporal self-attention value of the user embedding sequence, we calculate the weighted aggregation result of the hyperbolic embedding vector of the node at different time snapshots under the Klein model according to the Einstein midpoint method.

[0118]

[0119] in, yes The Lorentz factor is calculated as follows:

[0120]

[0121] Step S104: predicting the probability of forming edges between different users in the future based on the calculated third hyperbolic embedding vector sequence of the users.

[0122] The last hyperbolic embedding vector of each user's third hyperbolic embedding vector sequence includes the user's historical spatiotemporal relationship data, including both the local structural features of the user in the past time snapshots and the time evolution features of the user in the past time snapshots. We use the Fermi-Dirac Decoder to calculate the probability of forming an edge between users i and j. The specific calculation formula is:

[0123]

[0124] This probability is the probability of forming a relationship with the corresponding user in the future.

[0125] Step 105 , optimizing the prediction model according to the relationship probability between the user's historical content propagation relationship time snapshot and the training sample data.

[0126] In this embodiment, in predicting the future connection between user groups, the model is trained based on sample data on past time snapshots, and the cross entropy loss function can be calculated based on the past historical content propagation relationship time snapshots, as described in the following formula:

[0127]

[0128] Where E t is the edge sampled at the historical time snapshot t. In this embodiment, we select the edges at all time snapshots t, and log is the logarithmic function.

[0129] Where r and s are hyperparameters. In this embodiment, r = 1.0 and s = 2.0. The goal of optimizing the prediction model is to make As small as possible, in this embodiment, the Riemannian Adam optimizer is selected during optimization. The results are used as a reference to optimize the parameters in the prediction model. The prediction model parameters finally obtained through training are the prediction model parameters when the prediction model is used for prediction.

[0130] The schematic diagram of the prediction model is as follows: Figure 2 As shown in the figure, the input information includes the historical content propagation relationship network between users. In the feature transformation stage, the Euclidean vector of the node is projected into the hyperbolic space to obtain the first hyperbolic embedding vector sequence of the node. In the hyperbolic structure self-attention layer, the nodes on each snapshot are hyperbolicly transformed, hyperbolic self-attention weighted operations and hyperbolic activation operations are performed to obtain the second hyperbolic embedding vector sequence that captures the local structure of the snapshot node. In the hyperbolic time self-attention layer, the second hyperbolic embedding vector sequence of each node is converted into a query sequence, a key sequence and a value sequence, and the third hyperbolic embedding vector sequence is obtained by weighted calculation. The last vector in the third hyperbolic graph embedding vector sequence can be used to predict future relationships between users.

[0131] The social media prediction method based on the dynamic hyperbolic graph neural network provided by this embodiment is adopted, and the hierarchical and scale-free characteristics of the social media user relationship network are combined to embed users into the hyperbolic space. The advantages of embedding the hyperbolic space into the scale-free network are utilized to establish a model for predicting future user relationships. This can predict the spread of social media content, facilitate the control of the spread on social media, help the platform recommend more appropriate social media content, and promote more accurate promotion and the development of social media platforms. Furthermore, the spatiotemporal self-attention node embedding method used in the present invention designs the spatiotemporal self-attention coefficient based on the distance in the hyperbolic space, and captures the changes of nodes from the two dimensions of time and space. Unlike the existing deep learning model, it fully utilizes the advantages of the hyperbolic space metric in embedding the scale-free network structure.

[0132] The present invention also uses a spatiotemporal aggregation method in hyperbolic space to directly aggregate node embedding in hyperbolic space. Compared with existing methods, it reduces the distortion caused by tangent space aggregation while retaining the global information of hyperbolic space. The present invention embeds the user's historical content dissemination relationship and designs a dynamic hyperbolic graph neural network prediction model for the scale-free characteristics of social media growth to complete the prediction of users' future relationships.

[0133] Example 2

[0134] Figure 3 FIG. 2 shows a schematic diagram of the structure of an embodiment of a social media content propagation prediction device according to the present embodiment. Figure 3 As shown, the device includes: a hyperbolic vector projection module 301, a structural self-attention embedding calculation module 302, a temporal self-attention embedding calculation module 303, a prediction module 304 and an optimization module 305.

[0135] The hyperbolic vector projection module 301 is used to obtain historical content propagation relationship data corresponding to historical social media content, and to construct a discrete time snapshot of a dynamic social media content propagation network according to a certain time step based on the historical content propagation relationship data, so as to obtain a first hyperbolic embedding vector sequence of each user in each time snapshot.

[0136] In an optional manner, the hyperbolic vector projection module 301 is further used to: analyze the user historical data and construct a discrete time snapshot of the user historical data;

[0137] In an optional manner, the hyperbolic vector projection module 301 is further used to: project the user's embedding vector in the Euclidean space to obtain a first hyperbolic embedding vector of the user in the hyperbolic space.

[0138] The structural self-attention embedding calculation module 302 is used to calculate the user's second hyperbolic embedding vector sequence containing local features at each time snapshot based on the user's historical content propagation relationship discrete time snapshot and the user's first hyperbolic embedding vector sequence.

[0139] In an optional manner, the structural self-attention embedding calculation module 302 is further used to: apply a hyperbolic transformation operation to the user's hyperbolic embedding vector to map the node embedding from the previous layer to the embedding space of the next layer;

[0140] In an optional manner, the structural self-attention embedding calculation module 302 is further used to: calculate the hyperbolic distance between node embeddings through the transformed vector, design the attention value using the hyperbolic distance, and further use the attention to perform weighted summation on the neighbors of the node to obtain the weighted summation result of the node;

[0141] In an optional manner, the structural self-attention embedding calculation module 302 is further used to: project the hyperbolic vector to the tangent space, apply the activation function, and then project the activated transformed Euclidean vector back to the hyperbolic space to obtain a second hyperbolic embedding vector of the user.

[0142] The temporal self-attention embedding calculation module 303 is used to treat the same node representation on each time snapshot as a time series based on the user's historical content propagation relationship discrete time snapshot and the user's second hyperbolic embedding vector sequence, and calculate the user's third hyperbolic embedding vector sequence on the node time series.

[0143] In an optional manner, the temporal self-attention embedding calculation module 303 is further used to: calculate the corresponding hyperbolic query sequence, key sequence and value sequence for the user's second hyperbolic embedding vector sequence.

[0144] In an optional manner, the temporal self-attention embedding calculation module 303 is further used to: calculate a hyperbolic temporal self-attention value according to the calculated hyperbolic query sequence and key sequence. Calculate a third hyperbolic embedding vector sequence of the node according to the weighted sum of the calculated self-attention value and the value sequence.

[0145] The prediction module 304 is used to predict the probability of different users forming relationships in the future according to the calculated third hyperbolic embedding vector sequence of the users.

[0146] In an optional manner, the prediction module 304 is further used to calculate the probability that the users will have a relationship in the future based on the last vector in the third hyperbolic embedding vector sequence of different users.

[0147] The optimization module 305 optimizes the prediction model according to the relationship probability between the user's historical content propagation relationship time snapshot and the training sample data.

[0148] In an optional manner, the optimization module 305 is further used to: train the model based on sample data on past time snapshots, and calculate the cross entropy loss function according to past historical content propagation relationship time snapshots.

[0149] Example 3

[0150] An embodiment of the present invention provides a non-volatile computer storage medium, which stores at least one executable instruction. The computer executable instruction can execute a social media content propagation prediction method in any of the above method embodiments.

[0151] The executable instructions may be used to cause the processor to perform the following operations:

[0152] Acquire historical social media content and historical content propagation relationship data corresponding to the historical social media content, and construct a cascade structure diagram corresponding to the content propagation process based on the historical social media content and the historical content propagation relationship data;

[0153] Obtain historical content propagation relationship data corresponding to historical social media content, and construct a discrete time snapshot of a dynamic social media content propagation network according to the historical content propagation relationship data at a certain time step, and obtain the first hyperbolic embedding vector sequence of each user in each time snapshot;

[0154] According to the discrete time snapshots of the user's historical content propagation relationship and the user's second hyperbolic embedding vector sequence, the same node representation on each time snapshot is regarded as a time series, and the user's third hyperbolic embedding vector sequence is calculated on the node time series;

[0155] Based on the calculated third hyperbolic embedding vector sequence of users, predict the probability of different users forming relationships in the future;

[0156] The prediction model is optimized based on the relationship time snapshot of the user's historical content propagation relationship and the relationship probability of the training sample data.

[0157] Example 4

[0158] Figure 4 The schematic diagram of the structure of the computing device embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computing device.

[0159] like Figure 4 As shown, the computing device may include:

[0160] Processor, Communications Interface, Memory, and Communications Bus.

[0161] Wherein: the processor, the communication interface, and the memory communicate with each other via a communication bus. The communication interface is used to communicate with other devices such as a client or other server network elements. The processor is used to execute a program, specifically, to execute the relevant steps in the above-mentioned social media content propagation prediction method embodiment.

[0162] Specifically, the program may include program codes including computer operation instructions.

[0163] The processor may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the server may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0164] The memory is used to store programs. The memory may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0165] The program can be specifically used to cause the processor to perform the following operations:

[0166] Acquire historical social media content and historical content propagation relationship data corresponding to the historical social media content, and construct a cascade structure diagram corresponding to the content propagation process based on the historical social media content and the historical content propagation relationship data;

[0167] The first processing result is obtained by setting time features for nodes in the cascade structure graph through a Transformer network based on an attention mechanism;

[0168] Using a variational encoder to process the cascade structure graph in the node dimension and the time dimension to obtain a second processing result;

[0169] According to the social media content to be predicted, the first processing result and the second processing result, propagation data of the social media content to be predicted within a specified prediction period is predicted.

[0170] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description made to specific languages ​​above is for disclosing the best mode of the present invention.

[0171] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0172] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: the claimed invention requires more features than those explicitly recited in each claim. Rather, as reflected in the claims, the inventive aspects lie in less than all the features of the individual embodiments previously disclosed. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0173] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0174] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, any one of the claimed embodiments may be used in any combination.

[0175] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0176] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim that lists a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A method for predicting the spread of social media content, It is characterized in that The steps include: Step S101: Obtain user historical content propagation relationship data corresponding to historical social media content, and construct a discrete time snapshot of a dynamic social media propagation network according to the historical propagation relationship data at a certain time step to obtain a first hyperbolic embedding vector sequence of each user in each time snapshot; Step S102: According to the discrete time snapshots of the dynamic social media communication network and the first hyperbolic embedding vector sequence of the user, a second hyperbolic embedding vector sequence of the user containing local features is calculated at each time snapshot; Step S103: Based on the discrete time snapshots of the dynamic social media communication network and the second hyperbolic embedding vector sequence of the user, the same node representation on each time snapshot is regarded as a time sequence, and the third hyperbolic embedding vector sequence of the user is calculated on the node time sequence; The step S103 includes: For the second hyperbolic embedding vector sequence of the user, calculate the corresponding hyperbolic query sequence, key sequence and value sequence; Calculate the hyperbolic time self-attention value according to the calculated hyperbolic query sequence and key sequence, calculate the third hyperbolic embedding vector sequence of the node according to the weighted sum of the calculated hyperbolic time self-attention value and value sequence; Step S104: predicting the probability of forming edges between different users in the future based on the calculated last vector in the third hyperbolic embedding vector sequence of the user.

2. The social media content propagation prediction method according to claim 1, It is characterized in that The step S101 includes: Analyze users’ historical communication relationship data and construct discrete time snapshots of dynamic social media communication networks; Through the mapping between the hyperbolic space and the Euclidean space, the user's embedding vector in the Euclidean space is projected to obtain the user's first hyperbolic embedding vector sequence in the hyperbolic space.

3. The social media content propagation prediction method according to claim 1, It is characterized in that The step S102 includes: Apply a hyperbolic transformation operation to the user's first hyperbolic embedding vector sequence to map the node embedding from the previous layer to the embedding space of the next layer, and obtain the hyperbolic transformed vectors of all nodes on the time snapshot; The hyperbolic distance between node embeddings is calculated through the vector after hyperbolic transformation, and the spatial attention value is designed using the hyperbolic distance. The spatial attention value is further used to perform weighted summation on the neighbors of the node to obtain the weighted summation result of the node. The hyperbolic transformed vector is projected into the tangent space, an activation function is applied, and then the Euclidean vector after the activation transformation is projected back into the hyperbolic space to obtain the user's second hyperbolic embedding vector sequence.

4. The social media content propagation prediction method according to claim 3, It is characterized in that The spatial attention value α ij for: in is the neighborhood set of node i, and exp is the exponential function: represents the hyperbolic distance between two vectors, Represent the vectors after hyperbolic transformation of node i, node j and node w respectively.

5. The social media content propagation prediction method according to claim 1, It is characterized in that Calculate the hyperbolic temporal self-attention value based on the hyperbolic query sequence and key sequence Specifically: is the mask matrix, which is defined as follows: Where exp is the exponential function, t m , t n is the time corresponding to any two time snapshots of the node, is the vector corresponding to the query sequence on the tm snapshot, is the key sequence in t n ,t k The corresponding vectors on the snapshot, a, c are learnable vectors.

6. The social media content propagation prediction method according to any one of claims 1 to 5, It is characterized in that The method further comprises: Step S105: predict the probability of forming a content dissemination relationship among user groups, and optimize the prediction model according to the cross entropy loss function calculated based on the samples in the training set.

7. A social media content dissemination prediction device, It is characterized in that include: A hyperbolic vector projection module is used to obtain the user historical content propagation relationship data corresponding to the historical social media content, and to construct a discrete time snapshot of the dynamic social media propagation network according to a certain time step based on the historical propagation relationship data, and obtain the first hyperbolic embedding vector sequence of each user in each time snapshot; A structural self-attention embedding calculation module is used to calculate a second hyperbolic embedding vector sequence of a user containing local features at each time snapshot based on a discrete time snapshot of a dynamic social media communication network and a first hyperbolic embedding vector sequence of the user; The temporal self-attention embedding calculation module is used to treat the same node representation on each time snapshot as a time series based on the discrete time snapshots of the dynamic social media communication network and the second hyperbolic embedding vector sequence of the user, and calculate the third hyperbolic embedding vector sequence of the user on the node time series; A prediction module is used to predict the probability of different users forming edges in the future based on the last vector in the calculated third hyperbolic embedding vector sequence of the user; The optimization module is used to predict the probability of forming content dissemination relationships among user groups and optimize the prediction model based on the cross entropy loss function calculated based on the samples in the training set.

8. A computing device, It is characterized in that include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the social media content dissemination prediction method according to any one of claims 1 to 6.

9. A computer storage medium, It is characterized in that The storage medium stores at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the social media content propagation prediction method according to any one of claims 1 to 6.