A social relationship-aware human mobility behavior prediction method and system
By combining short-term channels and long-term social channels, the self-attention mechanism is used to model user behavior sequences, integrating social influence and preference characteristics, solving the problem of difficulty in identifying the influence of dynamic social relationships in the existing technology, and improving the accuracy of human mobile behavior prediction. sex.
Patent Information
- Application Number
- CN202410209449.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-02-26
AI Technical Summary
Existing human mobility behavior prediction methods are difficult to accurately identify and model the impact of dynamic social relationships on user behavior, resulting in poor prediction results.
Designed short-term channels and long-term social channels, obtained user check-in behavior characteristics through embedded representations, built an association relationship model, integrated social influence and preference characteristics, used self-attention mechanism to model user behavior sequences, and captured social relationships and personal preferences.
It improves the accuracy of human mobile behavior prediction, captures users' long-term and short-term preferences, and the impact of dynamic social relationships, achieving more accurate user mobile behavior prediction.
Smart Images

Figure CN118227872B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of behavior prediction, and in particular to a method and system for predicting human mobility behavior based on social relationship perception. Background Art
[0002] The goal of human mobility behavior prediction is to predict where a target user may go next. Current users utilize mobile devices and location-based services (LBS) to search for points of interest (POIs) in LBSNs, post their check-ins and comments on POIs, and share their life experiences in the real world. Millions of users in LBSNs generate a large amount of check-in data, which provides an excellent opportunity to predict human mobility behavior. Due to the importance and commercial value of human mobility behavior prediction, human mobility behavior prediction research has attracted attention from academia and industry. Typically, existing human mobility behavior prediction works attempt to predict the preferences of target users based on their historical check-ins and recommend a set of unvisited locations (city POIs) to them.
[0003] Existing methods for predicting human mobility behavior learn users' action patterns based on their historical check-ins and train personalized prediction models based on their most recent check-in locations. Due to the complexity and diversity of human mobility, most previous studies have found it difficult to achieve satisfactory recommendation results. More available information about user check-ins, such as spatial information, temporal information, and social relationships, can be used to train better recommendation models through deep learning and other new technologies. Recently, some studies have begun to use social relationship influence to improve the quality of prediction. They calculated the similarity between users about social relationships and then designed recommendation models using collaborative filtering techniques. In addition, some previous studies used network representation techniques to model users' friend relationships. However, existing technologies are still insufficient. They only model users' social relationships, but it is difficult to accurately identify the behavioral correlations caused by social relationships. In the human mobility behavior prediction scenario, the social relationship influence of each user is dynamic and context-dependent, which brings great difficulties to the prediction of the next mobility behavior with social relationship awareness. Therefore, modeling dynamic social relationship influence is crucial for predicting user mobility behavior. Summary of the invention
[0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
[0005] To this end, the present invention proposes a social relationship-aware human mobile behavior prediction method. The present application designs two parallel channels, namely the short-term channel and the long-term social channel, to simultaneously simulate personal preferences and social relationship influences. The goal of the short-term channel is to learn short-term preferences. It takes the current trajectory of each user as input, representing the user's ongoing sequence influence. In addition, the goal of the long-term social channel is to simultaneously learn social relationship influences and long-term preferences. The long-term social channel takes all historical check-ins of each user and his / her friends in the mobile social network as input.
[0006] Another object of the present invention is to provide a social relationship-aware human mobility behavior prediction system.
[0007] To achieve the above objectives, the present invention provides a social relationship-aware human mobility behavior prediction method, comprising:
[0008] Obtain the embedded representation of the user's check-in behavior features in the form of embedding;
[0009] Based on the embedding representation, the user's historical behavior features and the friend's historical behavior features are constructed into a long-term social channel behavior sequence, and a first association relationship model is constructed based on the long-term social channel behavior sequence; and the user's recent movement behavior features are constructed into a short-term channel behavior sequence, and a second association relationship model is constructed;
[0010] Using the first association relationship model to obtain the user's long-term preference characteristics integrated with social influence, and using the second association relationship model to obtain the user's short-term preference characteristics;
[0011] The user's long-term preference features and the user's short-term preference features are integrated to obtain a user representation, and the user's mobile behavior is predicted according to the user representation to obtain a mobile behavior prediction result.
[0012] The social relationship-aware human mobility behavior prediction method of the embodiment of the present invention may also have the following additional technical features:
[0013] In one embodiment of the present invention, the user check-in behavior characteristics include multiple types of user information, location information, space information, time information and sequence information.
[0014] In one embodiment of the present invention, acquiring an embedded representation of a user's check-in behavior feature in an embedded form includes:
[0015] Obtain the first location information in the user's check-in behavior characteristics;
[0016] The location ID of the first location information is searched to obtain the corresponding location embedding.
[0017] In one embodiment of the present invention, acquiring the embedded representation of the user behavior feature in an embedded form further includes:
[0018] Utilize graph embedding methods to encode each position into a low-dimensional vector on the L2L graph;
[0019] Based on the low-dimensional vector, second position information of the user at a preset time is obtained, and an embedded feature vector is output through a graph embedding method.
[0020] In one embodiment of the present invention, acquiring the embedded representation of the user behavior feature in an embedded form further includes:
[0021] Divide the duration into intervals of exponentially increasing length to obtain categorical time features;
[0022] The classified time features are directly searched to obtain the time embedding of the preset moment according to the search result.
[0023] To achieve the above-mentioned purpose, the present invention further provides a social relationship-aware human mobility behavior prediction system, comprising:
[0024] A behavior feature embedding module is used to obtain an embedded representation of the user's check-in behavior features in an embedded form;
[0025] A behavior sequence construction module, configured to construct the user's historical behavior features and the friend's historical behavior features into a long-term social channel behavior sequence based on the embedding representation, and to construct a first association relationship model based on the long-term social channel behavior sequence; and to construct the user's recent movement behavior features into a short-term channel behavior sequence, and to construct a second association relationship model;
[0026] A preference feature acquisition module, used to acquire the user's long-term preference features integrating social influence by using the first association relationship model, and to acquire the user's short-term preference features by using the second association relationship model;
[0027] The mobile behavior prediction module is used to fuse the user's long-term preference features and the user's short-term preference features to obtain a user representation, and predict the user's mobile behavior based on the user representation to obtain a mobile behavior prediction result.
[0028] The optimized social relationship-aware human mobility behavior prediction method and system of the embodiment of the present invention uses all historical check-ins before the current time point to capture the user's long-term preferences. Finally, the user's long-term preferences and short-term preferences influenced by the user's social relationships are integrated to achieve the prediction of the user's mobility behavior.
[0029] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0031] Figure 1 is a network architecture diagram of a social relationship-aware human mobility behavior prediction method according to an embodiment of the present invention;
[0032] Figure 2 is a flow chart of a social relationship-aware human mobility behavior prediction method according to an embodiment of the present invention;
[0033] Figure 3 4 is a schematic diagram of the structure of a social relationship-aware human mobility behavior prediction system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0036] The following describes the social relationship-aware human mobility behavior prediction method and system proposed according to embodiments of the present invention with reference to the accompanying drawings.
[0037] Figure 1This is a network architecture diagram of the social relationship-aware human mobile behavior prediction method of the present invention. First, it is assumed that the mobile behavior of each user is affected by personal preferences and user friends. Each user has his or her own long-term and short-term preferences. As for social influence, the behavioral correlation between each user and the user's friends is considered. The present application designs two parallel channels, namely the short-term channel and the long-term social channel, to simultaneously simulate personal preferences and social relationship influences. More specifically, the goal of the short-term channel is to learn short-term preferences. It takes the current trajectory of each user as input, representing the user's ongoing sequence influence. In addition, the goal of the long-term social channel is to simultaneously learn social relationship influences and long-term preferences. The long-term social channel takes all historical check-ins of each user and his / her friends in the mobile social network as input. In particular, the present application uses all historical check-ins before the current time point to capture the user's long-term preferences. Finally, the user's long-term preferences and user short-term preferences that are influenced by the user's social relationships are integrated to achieve the prediction of the user's mobile behavior.
[0038] It can be known that the two channels proposed in this application use the self-attention mechanism (more specifically, multi-head self-attention) to model the correlation between different behaviors, so that the representation of each user behavior obtained incorporates the influence of other behaviors. In the mobile behavior prediction stage, ordinary attention is used between the user behavior representation and the candidate position vector to select the user behavior that has a greater impact on the user's next behavior, thereby obtaining the user's long-term and short-term preferences. The final representation of the user is then obtained by combining the outputs of the two channels. Finally, the user representation and position representation are used to generate the user's preference score for the target location.
[0039] Figure 2 4 is a flowchart of a method for predicting human mobility behavior based on social relationship awareness according to an embodiment of the present invention.
[0040] like Figure 2 As shown, the method includes but is not limited to the following steps:
[0041] S1, obtains the embedded representation of the user's check-in behavior features in the form of embedding.
[0042] It can be understood that according to the definition of check-in, in the present invention, this behavior has five types of features: user information (more specifically, friend relationship), location information, spatial information, time information, and sequence information (position in the entire behavior trajectory sequence). The embodiment of the present invention uses these five types of information to obtain an embedded representation of each user behavior in the form of embedding. Next, the embodiment of the present invention will introduce different embedding techniques used in the present invention.
[0043] (1) User embedding and location embedding
[0044] Graph embedding (also known as network embedding) has recently been used for many important tasks on graphs, such as classification and link prediction. Because in this application, LBSN is a friend network, the embodiment of the present invention adopts a graph embedding method, namely node2vec, to model user information from the perspective of social relationships. The graph embedding method encodes each node in the LBSN as a low-dimensional vector and maintains the structural information of the LBSN. For user u, the graph embedding method outputs a feature vector u. By learning the network-based user embedding of each user in the shared latent space, the present application can model the impact of social relationships on human mobility behavior prediction.
[0045] For check-in Position in The embodiment of the present invention directly searches for the location ID and obtains the corresponding location embedding
[0046] (2) Position Embedding
[0047] Previous studies have shown that modeling the geographic influence of user check-ins is crucial for mobile behavior prediction in LBSN. Assuming that there is a strong spatial correlation between consecutive check-ins in a short time interval, some researchers have attempted to model the geographic influence based on the geographic distance from the user's current location. However, these studies have some limitations, for example, they are limited to the one-dimensional geographic influence of the locations in the trajectory. Therefore, in the present invention, embodiments of the present invention attempt to characterize the two-dimensional geographic influence through an L2L graph, which represents the proximity between locations with respect to geographic distance. The L2L graph is essentially a weighted undirected graph, in which vertices represent locations, links represent the spatial correlation between locations, and the weights of the links represent the geographic distance.
[0048] After constructing the L2L graph, the embodiment of the present invention applies the graph embedding method node2vec on the L2L graph to encode each position into a low-dimensional vector. node2vec outputs the embedded feature vector
[0049] (3) Time Embedding
[0050] Human activities are affected by circadian rhythms, habits and customs, and other factors. Therefore, the task of predicting human mobility behavior is time-related. In other words, time information is crucial for analyzing personal check-in behavior. However, it is difficult to learn the correct embedding directly from the continuous time nature of check-in using embedding concatenation or addition. In the present application, an embodiment of the present invention divides the elapsed time, that is, the duration, into intervals of exponentially increasing length. For example, an embodiment of the present invention may map time in the range [0,1), [1,2), [2,4), ..., [2k, 2k+1) to category features of 0, 1, 2, ..., k+1. Different check-in behavior groups may have different time slice granularities. Afterwards, an embodiment of the present invention may directly search the classified time features to obtain the time embedding t of time point t.
[0051] (4) Sequence Embedding
[0052] In order to better simulate the sequence effect, the embodiment of the present invention uses a timing signal method. Compared with the traditional position encoding method, the timing signal method does not introduce additional parameters. The position embedding p component of position p can be formulated as follows:
[0053] p (2i) = sin(p / 10000 2i / d )
[0054] p (2i+1) =cos(p / 10000 2i / d )
[0055] where 2i and 2i+1 are even and odd integers respectively, and d is the dimension of the latent variable.
[0056] (5) Connections with different embeddings
[0057] After computing the embeddings of user, location, position, time, and location, the embodiment of the present invention concatenates them to obtain an embedding representation for each check-in. When modeling short-term user preferences, sequential patterns play an important role in predicting the next location of the target user. Therefore, the embodiment of the present invention considers sequential embeddings in short-term channels. In contrast, sequential embeddings are not used in long-term social channels. This is because the embodiment of the present invention considers all historical check-ins of each user and his / her friends. In other words, the embodiment of the present invention believes that short-term sequential patterns have limited impact on users' long-term preferences and social relationships.
[0058] For user u, the embodiment of the present invention converts the feature vector u, t and p are input into a d-dimensional fully connected layer, which outputs a latent representation of each check-in in STC and LTCC
[0059]
[0060]
[0061] in and is the transformation matrix. Note that both channels share the same connection parameters.
[0062] S2, constructing the user's historical behavior characteristics and friends' historical behavior characteristics into a long-term social channel behavior sequence based on the embedded representation, and constructing a first association relationship model based on the long-term social channel behavior sequence; and constructing the user's recent mobile behavior characteristics into a short-term channel behavior sequence, and constructing a second association relationship model.
[0063] It is understandable that modeling various types of check-in information in a unified manner is very challenging for human mobile behavior prediction. For example, check-in behavior has three main temporal characteristics, namely periodicity, inconsistency, and continuity. The location information of check-ins also has three unique characteristics, namely hierarchical data, measurable distance, and order. In addition, modeling the spatiotemporal characteristics of check-ins usually relies on different prior assumptions. For example, the spatial distribution of user visit locations follows a specific distribution (such as a power law), and the user's check-in is periodic within a day or a week. In order to solve the above problems, in this application, an embodiment of the present invention uses a self-attention mechanism to model the interactions between user check-ins, which can uniformly capture social, sequential, temporal and spatial influences regardless of the type of check-in information involved. In addition, the self-attention mechanism can automatically measure the degree of behavioral correlation between check-ins, and then adjust the attention weights accordingly to predict future human behavior.
[0064] It is understandable that this application constructs a long-term social channel behavior sequence from all the historical behaviors of the user and the historical behaviors of his / her friends, and uses the self-attention mechanism to model their associations. The main goal of the self-attention layer is to capture two types of behavioral correlations between check-ins. In a long-term social channel, the output of the self-attention layer represents a series of representative check-in behaviors that take into account the long-term preferences of each user and the behaviors of his / her friends.
[0065] In one embodiment of the present invention, given a user u and his direct friends N(u) in a long-term social channel, the present invention considers t N All historical check-in behaviors of user u and his friends at the moment, that is, By using multi-head self-attention, the embodiment of the present invention can calculate each pair of check-in behaviors in a long-term social channel The attention weight Right now:
[0066]
[0067]
[0068] Next, the embodiment of the present invention uses the kth self-attention layer in the long-term social channel to generate the check-in behavior A new vector representation of It can be expressed as:
[0069]
[0070]
[0071] in is the output of the (k-1)th nonlinear layer, is the hidden vector of the h-th head, which is obtained from Divided into, is a parameter matrix.
[0072] Afterwards, residual connections are used to avoid the gradient explosion problem in deep learning. Given the input in a long-term social channel The output of the kth self-attention layer in this channel It can be calculated by the following formula:
[0073]
[0074] where layer_norm(·) represents the layer normalization function.
[0075] It is understandable that the learning ability of neural networks depends on highly flexible nonlinear transformations. Unlike neural networks, the self-attention mechanism uses a weighted sum operation to encode an input sequence into an output sequence. Therefore, its ability to represent latent features is limited. In order to improve the representation capability, the embodiment of the present invention uses a fully connected feedforward network to process the output of each self-attention layer. Each feedforward layer consists of two transformations and a rectified linear unit (ReLU) activation between them. For example, given the input generated by the kth self-attention layer in a long-term social channel The embodiment of the present invention can use the following formula to calculate the output of the feedforward layer:
[0076]
[0077] where relu(·) represents the ReLU activation function, are two trainable parameter matrices. The linear transformation has the same parameters in different sign-in representations in a feed-forward layer, but they vary from layer to layer.
[0078] Furthermore, in the short-term channel, the output of the self-attention layer represents a representative check-in behavior sequence that takes into account the influence of each user’s short-term preferences. Assumptions is a matrix composed of latent features generated by the kth nonlinear layer in STC. Here, represents a matrix composed of latent feature vectors generated by the feature embedding layer. d represents the dimension of the latent variable, and M is the length of the user trajectory. The embodiment of the present invention can use multi-head self-attention to generate a representation of all check-in behaviors in the check-in trajectory, which can be described as:
[0079]
[0080]
[0081] Where concat(·) represents the concatenation operation, H is the number of heads of the multi-head self-attention force, is a parameter matrix, The hidden vector of the h-th head pair, Attention weights.
[0082] Then, the embodiment of the present invention introduces the attention weight matrix in detail. For a pair of hidden feature vectors input to the kth nonlinear layer in STC Attention Weight Specifically, the embodiment of the present invention calculates the parameters in the following way:
[0083]
[0084] in is an attention function. According to the above description, the embodiment of the present invention uses dot product attention as the attention function. Because Vaswani et al. found that when d is large, the performance of additive attention is better than dot product attention, the embodiment of the present invention uses As a penalty factor, that is:
[0085]
[0086] Furthermore, through the same residual connection and linear layer as in the long-term social channel, the embodiment of the present invention can obtain the output of the k-th residual layer and feedforward layer in the short-term channel, that is, the method obtains and
[0087] S3, using the first association relationship model to obtain the user's long-term preference characteristics integrated with the social influence, and using the second association relationship model to obtain the user's short-term preference characteristics.
[0088] It can be understood that by using K nonlinear layers, the embodiment of the present invention obtains an abstract representation of each check-in behavior, which simultaneously encodes social relationship influence, sequence influence, spatial influence and temporal influence. Next, the embodiment of the present invention will use these check-in representations to predict the next location of the target user. Because not all historical check-ins of the user and his / her friends will have the same impact on the user's next behavior, the embodiment of the present invention needs to pay attention to those check-ins that are more useful. Therefore, the embodiment of the present invention designs a common attention layer to capture the correlation between the representations of historical check-ins about the next action. By using the attention mechanism, it can help select representative check-ins that characterize user preferences and social relationship influences, and assign different weights to them in a flexible and efficient manner.
[0089] In one embodiment of the present invention, the present embodiment takes a long-term social channel as an example. Given user u, his / her direct friends N(u), and their N The previous check-in history, the output of each check-in representation generated by the last feed-forward layer is where u ′ ∈N(u)∪{u} and t i ∈[t1,t N ]. For each candidate position v, an embodiment of the present invention connects different embeddings and then uses an attention network and a softmax function to calculate the normalized attention weights, which follows a similar process in the self-attention layer.
[0090]
[0091]
[0092]
[0093] in, is u at the next moment t N+1 access v's potential representation of its check-in behavior in LTSC, and Each pair and Once the attention weights are obtained from the output of the normal attention layer, the following formula can be used to calculate the implicit representation of v relative to u:
[0094]
[0095] Similarly, for a short-term channel, the embodiment of the present invention can obtain an implicit representation of v relative to u, that is, It can be calculated by the following formula:
[0096]
[0097]
[0098] in, is u at the next moment t N+1 The potential representation of v's check-in behavior in STC. compared to, In addition to considering the other four embeddings, sequential embeddings are also considered.
[0099]
[0100] S4, integrating the user's long-term preference features and the user's short-term preference features to obtain the user representation, and predicting the user's mobile behavior according to the user representation to obtain the mobile behavior prediction result.
[0101] In one embodiment of the present invention, the user's preference score is defined as three embedded functions, namely, and u. The embodiment of the present invention recommends possible locations for the target user by calculating the dot product of the user and location representations, which is similar to previous research using matrix decomposition. Finally, user u at time point t N+1 The predicted probability (i.e., preference score) of visiting candidate location v can be obtained by the following equation:
[0102]
[0103] The last term of the equation represents the inherent interest of user u in location v.
[0104] For u, the embodiment of the present invention at time point t N Create a training instance Include current track The historical check-in behavior set of the user and his direct neighbors and the next time t N+1 The set of all pairs of positive and negative positions {(v,v ′ )}. Here, v and v ′ They represent positive positions (or so-called observed) and negative positions (or so-called unobserved), respectively.
[0105] This application uses Bayesian personalized ranking instead of point-by-point loss to define the loss function for model parameter learning. By learning paired ranking losses during training, BPR can leverage unobserved user-location data. In addition, BPR considers the relative order of locations to predict user preference scores, based on a basic assumption that each user prefers observed locations (or called positive examples) over unobserved locations (or also called negative examples).
[0106] The BPR loss function requires two score pairs: one for the target position (i.e., the actual next position) and one for the negative sample (i.e., any position other than the target position). However, in real-world applications with millions of items, computing all (v,v ′ ) is unrealistic. Therefore, the embodiment of the present invention adopts a sampling method based on a negative sampling mechanism to select a portion of locations as negative samples during the training process. Since the geographical information of the location has an important impact on predicting the next movement of the user, the embodiment of the present invention randomly selects negative samples from the observed locations in the same city. If the number of all observed locations in the same city is less than the size of the negative samples to be sampled, a sampling method based on popularity is used to generate the remaining negative samples.
[0107] According to the social relationship-aware human mobile behavior prediction method proposed in the present invention, the self-attention mechanism is used instead of the RNN architecture as a unified framework to model both sequence influence and social relationship influence. On the one hand, in order to better model user preferences, geographical influence and time influence are considered, and the spatiotemporal context of user check-in is embedded into a compact vector. A location-to-location (L2L) graph is constructed based on the distance between locations to model the two-dimensional geographical influence in LBSN. On the other hand, the embodiment of the present invention uses a unified self-attention framework to simultaneously model sequence influence and social relationship influence, construct a user's long-term social channel behavior sequence, and can capture the user behavior association relationship caused by social relationship influence, thereby modeling the dynamic social relationship influence between users.
[0108] In order to implement the above embodiment, Figure 3 As shown, this embodiment also provides a social relationship-aware human mobile behavior prediction system 10, which includes a behavior feature embedding module 100, a behavior sequence construction module 200, a preference feature acquisition module 300 and a mobile behavior prediction module 400;
[0109] A behavior feature embedding module 100, used to obtain an embedded representation of a user's check-in behavior feature in an embedded form;
[0110] A behavior sequence construction module 200 is used to construct the user's historical behavior features and the friend's historical behavior features into a long-term social channel behavior sequence based on the embedded representation, and to construct a first association relationship model based on the long-term social channel behavior sequence; and to construct the user's recent movement behavior features into a short-term channel behavior sequence, and to construct a second association relationship model;
[0111] A preference feature acquisition module 300, configured to acquire a user's long-term preference feature integrating social influence by using the first association relationship model, and to acquire a user's short-term preference feature by using the second association relationship model;
[0112] The mobile behavior prediction module 400 is used to fuse the user's long-term preference features and the user's short-term preference features to obtain a user representation, and predict the user's mobile behavior according to the user representation to obtain a mobile behavior prediction result.
[0113] Furthermore, the user check-in behavior characteristics include multiple types of user information, location information, spatial information, time information and sequence information.
[0114] Furthermore, the behavior feature embedding module 100 is also used for:
[0115] Obtain the first location information in the user's check-in behavior characteristics;
[0116] The location ID of the first location information is searched to obtain the corresponding location embedding.
[0117] Furthermore, the behavior feature embedding module 100 is also used for:
[0118] Utilize graph embedding methods to encode each position into a low-dimensional vector on the L2L graph;
[0119] Based on the low-dimensional vector, second position information of the user at a preset time is obtained, and an embedded feature vector is output through a graph embedding method.
[0120] Furthermore, the behavior feature embedding module 100 is also used for:
[0121] Divide the duration into intervals of exponentially increasing length to obtain categorical time features;
[0122] The classified time features are directly searched to obtain the time embedding of the preset moment according to the search result.
[0123] According to the social relationship-aware human mobile behavior prediction system proposed in the present invention, the self-attention mechanism is used instead of the RNN architecture as a unified framework to model both sequence influence and social relationship influence. On the one hand, in order to better model user preferences, geographical influence and time influence are considered, and the spatiotemporal context of user check-in is embedded into a compact vector. A location-to-location (L2L) graph is constructed based on the distance between locations to model the two-dimensional geographical influence in LBSN. On the other hand, the embodiment of the present invention uses a unified self-attention framework to simultaneously model sequence influence and social relationship influence, construct a user's long-term social channel behavior sequence, and can capture the user behavior association relationship caused by social relationship influence, thereby modeling the dynamic social relationship influence between users.
[0124] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0125] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
Claims
1. A social relationship-aware human mobility behavior prediction method, characterized in that: The method comprises the following steps: Obtain the embedded representation of the user's check-in behavior features in the form of embedding; Based on the embedding representation, the user's historical behavior features and the friend's historical behavior features are constructed into a long-term social channel behavior sequence, and a first association relationship model is constructed based on the long-term social channel behavior sequence; and the user's recent movement behavior features are constructed into a short-term channel behavior sequence, and a second association relationship model is constructed; Using the first association relationship model to obtain the user's long-term preference characteristics integrated with social influence, and using the second association relationship model to obtain the user's short-term preference characteristics; The user's long-term preference features and the user's short-term preference features are integrated to obtain a user representation, and the user's mobile behavior is predicted according to the user representation to obtain a mobile behavior prediction result; For check-in Position in Directly look up the location ID and obtain the corresponding location embedding For the position of user u at time t node2vec outputs the embedded feature vector The component embedding p at position p is formulated as follows: p (2i) =sin(p / 10000 2i / d ) p (2i+i) =cos(p / 10000 2i / d ) Where 2i and 2i+1 are even and odd integers respectively, and d is the dimension of the latent variable; For user u, the feature vector u, t and p are input into a d-dimensional fully connected layer, which outputs a latent representation of each check-in in STC and LTCC in and is the transformation matrix; Given a user u and his direct friends N(u) in a long-term social channel, consider t N All historical check-in behaviors of user u and his friends at the moment, that is, By using multi-head self-attention, we calculate each pair of check-in behaviors in the long-term social channel The attention weight Right now: Generating check-in behavior using the kth self-attention layer in long-term social channels A new vector representation of It is expressed as: in is the output of the (k-1)th nonlinear layer, is the hidden vector of the h-th head, which is obtained from Divided into, is a parameter matrix; Given an input in a long-term social channel The output of the kth self-attention layer in this channel Calculated by the following formula: Where layer_norm(·) represents the layer normalization function; Given the input generated by the kth self-attention layer in a long-term social channel The output of the feedforward layer is calculated using the following formula where relu(·) represents the ReLU activation function, are two trainable parameter matrices; Given the current trajectory of user u in the short-term channel Assumptions is a matrix composed of latent features generated by the kth nonlinear layer in STC; here, represents a matrix composed of latent feature vectors generated by the feature embedding layer; d represents the dimension of latent variables, and M is the length of the user trajectory; multi-head self-attention is used to generate the representation of all check-in behaviors in the check-in trajectory, which is described as: Where concat(·) represents the concatenation operation, H is the number of heads of the multi-head self-attention force, is a parameter matrix, The hidden vector of the h-th head pair, Attention weight; Attention weight matrix The calculation process is as follows: For a pair of hidden feature vectors input to the kth nonlinear layer in STC Attention Weight The influence of the former on the latter is measured; the parameter is calculated in the following way: in is an attention function; use As a penalty factor, that is: Get the output of the kth residual layer and feedforward layer in the short-term channel, that is, the method obtains and 2. The method according to claim 1, characterized in that The user check-in behavior characteristics include multiple types of user information, location information, space information, time information and sequence information.
3. The method according to claim 2, characterized in that Get the embedded representation of the user's check-in behavior features in the form of embedding, including: Obtain the first location information in the user's check-in behavior characteristics; The location ID of the first location information is searched to obtain the corresponding location embedding.
4. The method according to claim 3, characterized in that Obtaining the embedded representation of user behavior features in the form of embeddings also includes: Utilize graph embedding methods to encode each position into a low-dimensional vector on the L2L graph; Based on the low-dimensional vector, second position information of the user at a preset time is obtained, and an embedded feature vector is output through a graph embedding method.
5. The method according to claim 4, characterized in that Obtaining the embedded representation of user behavior features in the form of embeddings also includes: Divide the duration into intervals of exponentially increasing length to obtain categorical time features; The classified time features are directly searched to obtain the time embedding of the preset moment according to the search result.
6. A social relationship-aware human mobility behavior prediction system, characterized in that: include: A behavior feature embedding module is used to obtain an embedded representation of the user's check-in behavior features in an embedded form; A behavior sequence construction module, configured to construct the user's historical behavior features and the friend's historical behavior features into a long-term social channel behavior sequence based on the embedding representation, and to construct a first association relationship model based on the long-term social channel behavior sequence; and to construct the user's recent movement behavior features into a short-term channel behavior sequence, and to construct a second association relationship model; A preference feature acquisition module, used to acquire the user's long-term preference features integrating social influence by using the first association relationship model, and to acquire the user's short-term preference features by using the second association relationship model; A mobile behavior prediction module, used to fuse the user's long-term preference features and the user's short-term preference features to obtain a user representation, and predict the user's mobile behavior based on the user representation to obtain a mobile behavior prediction result; For check-in Position in Directly look up the location ID and obtain the corresponding location embedding For the position of user u at time t node2vec outputs the embedded feature vector The component embedding p at position p is formulated as follows: p (2i) =sin(p / 10000 2i / d ) p (2i+1) =cos(p / 10000 2i / d ) Where 2i and 2i+1 are even and odd integers respectively, and d is the dimension of the latent variable; For user u, the feature vector u, t and p are input into a d-dimensional fully connected layer, which outputs a latent representation of each check-in in STC and LTCC in and is the transformation matrix; Given a user u and his direct friends N(u) in a long-term social channel, consider t N All historical check-in behaviors of user u and his friends at the moment, that is, By using multi-head self-attention, we calculate each pair of check-in behaviors in the long-term social channel The attention weight Right now: Generating check-in behavior using the kth self-attention layer in long-term social channels A new vector representation of It is expressed as: in is the output of the (k-1)th nonlinear layer, is the hidden vector of the h-th head, which is obtained from Divided into, is a parameter matrix; Given an input in a long-term social channel The output of the kth self-attention layer in this channel Calculated by the following formula: Where layer_norm(·) represents the layer normalization function; Given the input generated by the kth self-attention layer in a long-term social channel The output of the feedforward layer is calculated using the following formula where relu(·) represents the ReLU activation function, are two trainable parameter matrices; Given the current trajectory of user u in the short-term channel Assumptions is a matrix composed of latent features generated by the kth nonlinear layer in STC; here, represents a matrix composed of latent feature vectors generated by the feature embedding layer; d represents the dimension of latent variables, and M is the length of the user trajectory; multi-head self-attention is used to generate the representation of all check-in behaviors in the check-in trajectory, which is described as: Where concat(·) represents the concatenation operation, H is the number of heads of the multi-head self-attention force, is a parameter matrix, The hidden vector of the h-th head pair, Attention weight; Attention weight matrix The calculation process is as follows: For a pair of hidden feature vectors input to the kth nonlinear layer in STC Attention Weight It measures the degree of influence of the former on the latter; The parameters are calculated in the following way: in is an attention function; use As a penalty factor, that is: Get the output of the kth residual layer and feedforward layer in the short-term channel, that is, the method obtains and 7. The system according to claim 6, characterized in that The user check-in behavior characteristics include multiple types of user information, location information, space information, time information and sequence information.
8. The system according to claim 7, characterized in that The behavior feature embedding module is also used for: Obtain the first location information in the user's check-in behavior characteristics; The location ID of the first location information is searched to obtain the corresponding location embedding.
9. The system according to claim 8, characterized in that The behavior feature embedding module is also used for: Utilize graph embedding methods to encode each position into a low-dimensional vector on the L2L graph; Based on the low-dimensional vector, second position information of the user at a preset time is obtained, and an embedded feature vector is output through a graph embedding method.
10. The system according to claim 9, characterized in that The behavior feature embedding module is also used for: Divide the duration into intervals of exponentially increasing length to obtain categorical time features; The classified time features are directly searched to obtain the time embedding of the preset moment according to the search result.
