Prediction method based on deep walking word vector graph embedding technology

Learning the correlation of user access paths through deep wandering word vector graph embedding technology solves the problem of inaccurate path correlation capture in traditional click-through rate estimation methods, and achieves more accurate advertising recommendations and click-through rate predictions.

CN114493657BActive Publication Date: 2024-10-01SHANGHAI SHUMING ARTIFICIAL INTELLIGENCE TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111597115.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-10-01
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

In Internet advertising, traditional click-through rate estimation methods are difficult to accurately capture the intrinsic correlation between user access paths, resulting in inaccurate advertising recommendations.

Method used

Using deep wandering word vector graph embedding technology, we build a graph embedding model of user access DPI sequences to learn the correlation between user access paths, and combine it with data enhancement technology to generate a binary classifier for click prediction.

Benefits of technology

It improves the accuracy of click-through rate prediction, provides users with more comprehensive and accurate advertising recommendations, and significantly improves advertising efficiency and marketing effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114493657B_ABST
    Figure CN114493657B_ABST
Patent Text Reader

Abstract

A prediction method based on deep walking word vector graph embedding technology includes data preprocessing steps, embedding model steps of user access DPI sequence graph based on deep walking, prediction model establishment steps and marketing activity prediction steps; that is, the present invention is inspired by word vector technology in natural language processing, learns user access DPI sequence through word vector technology, learns the intrinsic relationship between user access DPI through word vector graph embedding technology based on deep walking, and performs data enhancement to obtain the final binary classification learner for predicting user clicks. The results show that this method significantly improves the accuracy of predicting user click behavior.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of artificial intelligence in Internet marketing, and more specifically, to a prediction method based on deep walking word vector graph embedding technology. Background Art

[0002] The problem of click-through rate (CTR) estimation is a key link in Internet computing advertising; the accuracy of user estimation directly affects the company's marketing advertising revenue. The problem of click-through rate estimation is a key link in Internet computing advertising; the accuracy of user estimation directly affects the company's marketing advertising revenue.

[0003] In the process of advertising, there are generally three processes: ad exposure, user clicks, and user registration (or conversion). One of the main purposes of CTR estimation is to improve the efficiency from ad exposure to user clicks, that is, to increase the click-through rate. Since user clicks or non-clicks are generally defined as labels of user behavior.

[0004] Those skilled in the art know that traditional CTR prediction can be regarded as a supervised learning problem: that is, after a series of features such as user click behavior are known, user clicks are recorded as 1 and user non-clicks are recorded as 0, thereby performing binary classification learning.

[0005] However, in the data collection process, the user's access DPI is generally the DPI of the user's last click record, and before the last click, the user generally has a series of click behaviors. For example, in the online shopping process, users generally browse from large categories to small categories, or jump to similar items for browsing in a certain step of the click.

[0006] That is to say, in the Internet scenario, for a given estimated target, such as an item purchased by a user, the generated click paths can often have multiple combinations. For example, for a newly released smart watch, it can be found in the "electronic products" category, as well as in the "personal health management" category. This is the DPI sequence of a user's click behavior.

[0007] Therefore, searching for the correlation between the DPI sequences of a given user behavior and providing users with more comprehensive and accurate advertising recommendations is currently the most concerned issue in the industry. Summary of the invention

[0008] The purpose of the present invention is to overcome the above-mentioned defects of the prior art and provide a prediction method based on deep walking word vector graph embedding technology, which learns the intrinsic correlation between user access DPI through deep walking word vector graph embedding technology, and performs data enhancement to obtain the final binary classification learner for predicting user clicks.

[0009] To achieve the above object, the technical solution of the present invention is as follows:

[0010] A prediction method based on deep walking word vector graph embedding technology, the prediction method based on deep walking word vector graph embedding technology is characterized by comprising a preprocessing step S1, a step S2 of establishing a user access DPI sequence graph embedding model based on deep walking, and a prediction model generating step S3;

[0011] The data preprocessing step S1 comprises the following steps:

[0012] Step S11: obtaining original information of N users, and extracting original feature information from the original information of the users; wherein the original feature information includes user ID, user mobile phone number location, user access DPI sequence, user access time and / or whether the user clicks on the feature; wherein the user number location is a category feature, the user access time is a continuous feature, and N is greater than or equal to 2;

[0013] Step S12: performing abnormality detection and processing on the original information of the user;

[0014] Step S13: after grouping the user IDs, sorting the user access times, and providing a first user access DPI sequence in order of the user access times;

[0015] Step S14: Process the categorical features by one-hot encoding and process the continuous features by using the RankGauss method;

[0016] The step S2 comprises:

[0017] S21: Obtain / generate the first user access DPI sequence of user click behavior;

[0018] S22: generating, according to the first user access DPI sequence of all user click behaviors, each directed edge from the DPI first clicked or visited by the user to the DPI2 clicked or visited later, and weighting each directed edge according to the number generated, to form a DPI relationship graph;

[0019] S23: randomly selecting an initial point by random walk, sampling the DPI nodes in the generated DPI relationship graph and generating a corresponding second user access DPI sequence;

[0020] The prediction model generation step S3 is used for an activity prediction model based on deep walking word vector graph embedding technology, and the prediction model includes an input layer, an embedding layer, a merging layer, a fully connected layer and an output layer; the prediction model is trained using the training set and verified using the verification set to obtain a final prediction model, including the following steps:

[0021] Step S31: providing an initialized user access DPI sequence graph embedding model based on deep walking; dividing the original N users' first user access DPI sequences and the N users' second user access DPI sequences into a training set and a validation set according to the user ID; wherein the second user access DPI sequence is a new DPI access sequence output by the DeepWalk generation algorithm according to the corresponding user ID of the first user access DPI sequence;

[0022] Step S32: sequentially concatenate the first user access DPI sequence and the second user access DPI sequence under each user ID in the training set and input them into the input layer;

[0023] Step S33: the embedding layer uses the Skip-Gram method to generate a first user access DPI sequence and a second user access DPI sequence graph embedding representation of the corresponding DPI node;

[0024] Step S34: the merging layer receives the output of the embedding layer, and embeds and concatenates the first user access DPI sequence and the second user access DPI sequence graph into representation features;

[0025] Step S35: the fully connected layer receives the output of the merging layer and performs fully connected network training;

[0026] Step S36: The output layer can output the predicted probability value by adding a sigmoid function, which can be expressed as a 0 / 1 binary classification by setting a threshold, and can be formed into a click or no click binary classification problem by setting a threshold, that is, the output result is divided into a positive label or a negative label;

[0027] Step S37: Calculate the loss between the predicted probability value and the true value of the prediction model through the predicted probability value, automatically update all network parameters involved in the prediction model according to the gradient feedback of deep learning based on the loss value, and use the validation set for verification to obtain the final prediction model.

[0028] Furthermore, the step S22 includes the following steps:

[0029] Step S221: Based on the first user access DPI sequence of the user's click behavior, a relationship diagram of each DPI may be generated in the following manner:

[0030] If user U1 clicks or visits DPI1 and DPI2 successively, a directed edge from DPI1 to DPI2 is generated, that is, if other users also have this access behavior, the weight from DPI1 to DPI2 is strengthened, and finally a relationship graph of all DPIs will be generated.

[0031] Furthermore, the random walk method in S23 is a depth-first search and a breadth-first search in the DPI relationship graph.

[0032] Furthermore, the prediction method further includes a marketing activity prediction step S4, wherein the step S4 specifically includes:

[0033] Step S41: obtaining the user group for which click prediction of the marketing activity is to be made and the original user information of the user group, and extracting the original feature information from the original user information; wherein the original feature information includes the user ID, the location of the user's mobile phone number, the user's access DPI sequence, the user's access time and / or whether the user clicks the feature; wherein the user's number location is a category feature, the user's access time is a continuous feature, and N is greater than or equal to 2;

[0034] Step S42: performing anomaly detection and processing steps on the original information of each user; after grouping the user IDs, sorting the user access time, and providing the first user access DPI sequence according to the user access time; processing the category features by one-hot encoding, and processing the continuous features by using the RankGauss method;

[0035] Step S43: Provide a trained marketing activity prediction model, use the first user to access the DPI sequence, and obtain the prediction values ​​of all the users in the user group for marketing activity click prediction; wherein the model prediction value of the user is the user's click intention.

[0036] Furthermore, the model prediction step S4 also includes:

[0037] Step S44: According to actual delivery needs, select all or part of the users whose model predicted values ​​have a concentrated click willingness of 1 to perform precision marketing tasks.

[0038] Furthermore, the step S3 also includes step S38, performing model evaluation index processing and tuning processing on the prediction model based on deep walking word vector graph embedding technology; the model evaluation index includes AUC value, Log loss value and relative information gain RIG value.

[0039] Furthermore, the model tuning process includes one or more of the following:

[0040] Add batch normalization to solve the problem of internal covariate shift in data;

[0041] Add the ability to put some neurons in a dormant state during training in the network;

[0042] Adjust the learning rate. Generally, the learning rate during training is adjusted through strategies such as exponential decay.

[0043] Set up multi-seed training to take the average to improve the problem of insufficient generalization ability caused by large data variance;

[0044] Add L1 or L2 regularization to impose penalties on the loss function to reduce the risk of overfitting;

[0045] Hyperparameter optimization methods.

[0046] It can be seen from the above technical scheme that the prediction method based on deep walking word vector graph embedding technology of the present invention learns the intrinsic correlation between user access DPI through deep walking word vector graph embedding technology, and performs data enhancement to obtain the final binary classification learner for predicting user clicks. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 FIG. 1 is a flow chart of a prediction method based on deep walking word vector graph embedding technology in an embodiment of the present invention.

[0048] Figure 2 A schematic diagram of the DeepWalk algorithm in an embodiment of the present invention is shown in FIG.

[0049] Figure 3 FIG. 1 is a schematic diagram of a graph embedding representation of a DPI node generated based on the Skip-Gram algorithm in an embodiment of the present invention.

[0050] Figure 4 Schematic diagram of depth-first search and breadth-first search in a DPI relationship diagram in an embodiment of the present invention

[0051] Figure 5 The figure shows different random walk strategies by controlling the parameter q in the embodiment of the present invention.

[0052] Figure 6 The figure shows the overall network architecture diagram of the user access DPI sequence diagram embedding model based on deep walking in an embodiment of the present invention.

[0053] Figure 7 The diagram is a schematic diagram showing how the user access DPI sequence is converted into a numerical feature after being embedded in a word vector in an embodiment of the present invention.

[0054] Figure 8The figure is a schematic diagram of the relationship curve between the loss function and the training rounds in the user click rate training in an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following is combined with Figure 1-8 , the specific implementation modes of the present invention are further described in detail.

[0056] It should be noted that the present invention provides users with more comprehensive and accurate advertising recommendations by searching for correlations between DPI sequences of a given user behavior.

[0057] DPI sequences are generally composed of a series of strings. How to mine their internal connections and convert them into data inputs that the model can learn is the key. DPI sequences can be understood as a series of sentences, so mining the internal connections between DPI sequences can be converted into mining the relationship between sentences or contexts, so the word vector model in natural language processing can be used to process them. Word vector technology converts words in natural language into dense vectors, and semantically similar words will have similar vector representations. Typical word vector technologies include word2vec, glove, ELMo, BERT, etc.

[0058] The technical solution of the present invention is inspired by the word vector technology in natural language processing. It uses the word vector technology to learn the user access DPI sequence and mine the associations therein, which has important theoretical and application value for improving the accuracy of user click-through rate prediction.

[0059] See also Figure 1 , Figure 1 FIG. 2 is a flow chart of a prediction method based on deep walking word vector graph embedding technology in an embodiment of the present invention. Figure 1 As shown, the marketing activity prediction method includes a data preprocessing step S1, a user access DPI sequence graph embedding model step S2 based on deep walking, a prediction model building step S3 and a marketing activity prediction step S4.

[0060] In the embodiment of the present invention, the data preprocessing step is very important, and the data preprocessing step S1 includes the following steps:

[0061] Step S11: Obtain original information of N users, and extract original feature information from the original information of the users; wherein the original feature information includes user ID, user mobile phone number location, user access DPI sequence, user access time and / or whether the user clicks on the feature; wherein the user number location is a category feature, the user access time is a continuous feature, and N is greater than or equal to 2.

[0062] Please refer to Table 1 below. Table 1 is a table description of the original data before preprocessing. The original data before preprocessing is in the form shown in Table 1 below:

[0063] Table 1

[0064] User ID Access DPI Place of Origin Access time Click 199990 dpi1 HN 150702957019 1 199990 dpi3 HN 150702957147 1 199990 dpi2 HN 150702960147 1 … … … … … 199990 dpi4 HN 150702953220 1 199991 dpi3 LN 150702158424 0 199991 dpi5 LN 150702983485 0 199991 dpi1 LN 150712478952 0 … … … … … 199991 dpi6 LN 150702957147 0 199992 dpi8 SH 150702158424 1 199992 dpi9 SH 150702983485 1 199992 dpi2 SH 150712478952 1 … … … … … 199992 dpi5 SH 150702957147 1

[0065] Please note that at this time, for the label of the data, that is, whether the user clicks, only positive samples (1) and unlabeled samples (0) are distinguished.

[0066] In an embodiment of the present invention, the above-mentioned raw data also needs to go through steps such as anomaly detection and processing, category feature processing, continuous feature processing and dimensionality reduction processing.

[0067] Step S12: performing abnormality detection and processing steps on the original information of the user.

[0068] Anomaly detection and processing: In the process of combining business requirements, missing values ​​and oversized values ​​in the original data need to be deleted or filled. In the process of data collection, since the number of users is generally in the millions, missing values ​​may occur during the collection process; if the missing amount is small, it can generally be directly eliminated; if it is impossible to determine whether the missing data will affect the final model training effect, the missing values ​​can generally be filled by taking the mean, mode, median, etc.

[0069] In addition, during data collection, you may encounter problems with excessively large values. For example, a user visits DPI tens of thousands of times in one day. This situation is generally not particularly helpful in improving the generalization ability of the model during the actual modeling process. Therefore, you can also use elimination or filling methods to perform corresponding processing.

[0070] As can be seen from the above table, compared with traditional user access data, each user ID corresponds to multiple DPI access records, and the access time is also given.

[0071] Step S13: After grouping the user IDs, sort the user access times to give a user access DPI sequence in order of the user access times; after completion, the sequence is shown in the following table:

[0072] User ID Access DPI sequence Place of Origin Click 199990 1,3,2,…,4 HN 1 199991 3,5,1,…,6 LN 0 199992 8,9,2,…,5 SH 1 … … … …

[0073] Step S14: After processing the DPI sequence, other continuous or categorical features are processed; categorical features are processed by one-hot encoding, and continuous features are processed using the RankGauss method.

[0074] Category feature processing: For category features such as user number location, they can be expanded through one-hot encoding. For example, the location is (HN, LN, SH). After one-hot encoding, the location of a certain user is 1, and the other locations are 0. For example, user ID 199990, whose location is HN, after one-hot encoding, its location vector is (1,0,0); correspondingly, the location vectors of users 199991 and 199992 are (0,1,0) and (0,0,1).

[0075] Continuous feature processing: For continuous features such as user access time, the RankGauss method can be used to adjust the data distribution. The RankGauss method is used to adjust the data distribution processing and / or dimension reduction steps for continuous features; the principal component analysis method is used to reduce the dimension of high-dimensional features after category feature processing.

[0076] In an embodiment of the present invention, principal component analysis (PCA) is used to reduce the dimensionality of high-dimensional features. From the above processing of category features, it can be seen that generally after one-hot encoding, a high-dimensional sparse matrix will be formed. For the training of neural networks, this means that when the error is back-propagated, there is no way to derive in many places, which is obviously not conducive to network training. At the same time, high-dimensional features also increase the computational overhead. Therefore, it is necessary to perform dimensionality reduction on high-dimensional features first. PCA achieves the purpose of dimensionality reduction by solving the maximum variance of the original data in a certain projection direction; while reducing the feature dimension, it minimizes the loss of information contained in the original features to achieve the purpose of comprehensive analysis of the collected data.

[0077] After the above data processing steps, step S2 of generating a graph embedding of a user access DPI sequence by using a deep walking technique can be executed.

[0078] In order to learn the intrinsic correlation in the user's access to DPI sequence and convert it into the input of other learners, the present invention constructs a graph embedding model of the DPI sequence through DeepWalk.

[0079] See also Figure 2 , Figure 2 Shown is a schematic diagram of the DeepWalk algorithm in an embodiment of the present invention.

[0080] like Figure 2 As shown, the main steps of the DeepWalk algorithm include the following four steps:

[0081] Step S2 may include:

[0082] S21: Obtain / generate the first user access DPI sequence of user click behavior;

[0083] S22: generating, according to the first user access DPI sequence of all user click behaviors, each directed edge from the DPI first clicked or visited by the user to the DPI2 clicked or visited later, and weighting each directed edge according to the number generated, to form a DPI relationship graph;

[0084] S23: randomly selecting an initial point by random walk, sampling the DPI nodes in the generated DPI relationship graph and generating a corresponding second user access DPI sequence.

[0085] The number of random walks and the window length are adjustable hyperparameters. For a directed weighted graph, the jump probability of random sampling is the ratio of the weight of the jump edge to the sum of the weights of all related outgoing edges.

[0086] S24: Using the Skip-Gram method to generate a graph embedding representation of the first user access DPI sequence and the second user access DPI sequence.

[0087] See also Figure 3 , Figure 3 FIG. 2 is a schematic diagram of a graph embedding representation of a DPI node generated based on the Skip-Gram algorithm in an embodiment of the present invention. Figure 3 As shown in the figure, the random walk algorithm establishes the connection between the graph embedding and word embedding of the DPI sequence generated by the user's access behavior. At the same time, the random walk algorithm also has the following advantages:

[0088] ①. Parallelism:

[0089] The random walk of the user DPI relationship graph can be implemented in parallel, which greatly reduces the sampling time.

[0090] ②. Adaptability:

[0091] Random walks can dynamically adapt to local changes in the network. Local changes in the network will only affect some sampling paths. Therefore, there is no need to recalculate the entire network during changes.

[0092] Of course, there are two problems with general random walks:

[0093] ①. If it is a weighted graph, the influence of edge weights is not considered;

[0094] ②It is too random and the model cannot learn on its own which way to wander better.

[0095] In order to solve the above two problems, we must first make it clear that in the process of random walk, the search method from a certain DPI to the next DPI can be divided into two methods: depth first search (DFS) and breadth first search (DFS). Depth first search is a traversal algorithm for graphs and trees. The breadth first search algorithm is also called breadth first search, or horizontal first search. The breadth first search algorithm starts from the root node and traverses the nodes of the tree along the width of the tree. If all nodes are visited, the algorithm terminates.

[0096] See also Figure 4 , Figure 4 FIG. 2 is a schematic diagram of depth-first search and breadth-first search in a DPI relationship diagram in an embodiment of the present invention. Figure 4 As shown, in order to introduce edge weights and select DFS or BFS based on probability, the general random walk formula must first be modified:

[0097]

[0098] Among them, π vx From DPI v to DPI x The transition probability is , and Z is the normalization factor. Assume that the current random walk reaches DPI node v through the edge (t, v), and the edge weight between node v and node x is w vx , then we can use π vx Rewritten as α(t,v)·w vx . The expression of α(t,v) is as follows:

[0099]

[0100] Where: d tx Indicates the shortest distance from a neighbor node of the current DPI node v to node t. p controls the probability of the random walk to "turn back", and q controls whether the random walk tends to DFS or BFS. So, when q>1, it tends to BFS; when q<1, it tends to DFS. Please refer to Figure 5 , Figure 5 FIG. 4 is a schematic diagram of different random walk strategies by controlling the parameter q in an embodiment of the present invention.

[0101] After obtaining a set of word vector expression features generated by a new second user access DPI sequence through random walk, they are divided into two different input domains together with the first user access DPI sequence features, and a binary classification classifier is trained through a neural network.

[0102] See also Figure 6 , Figure 6 The figure shows the overall network architecture diagram of the user access DPI sequence diagram embedding model based on deep walking in an embodiment of the present invention. Figure 6 As shown in the figure, the network framework of the neural network deep learning includes an input layer, an embedding layer, a concatenate layer, a fully-connected layer and an output layer.

[0103] In the embodiment of the present invention, the input layer is divided into two parts: one part is the original first user access DPI sequence of N users; the other part is the second user access DPI sequence generated by DeepWalk.

[0104] Embedding layer: Position embedding means encoding the position information of a word into a feature vector. Position embedding is a crucial step in introducing the position relationship of words into the model. That is, the Skip-Gram method is used to generate the graph embedding representation of the first user's access DPI sequence and the second user's access DPI sequence.

[0105] See also Figure 7 , Figure 7 The figure shows a schematic diagram of converting the first user access DPI sequence and the second user access DPI sequence into numerical features after word vector embedding in an embodiment of the present invention.

[0106] The concatenate layer concatenates the features formed by embedding the original DPI sequence and the new DPI sequence (the graph embedding representation features of the DPI sequence accessed by the first user and the DPI sequence accessed by the second user).

[0107] The fully-connected layer adds a fully-connected neural network layer after the above steps are completed.

[0108] Output layer: For the binary classification problem of clicks, the predicted probability value can be output by adding a softmax function, and it can be expressed as a 0 / 1 binary classification by setting a threshold, and it can be formed into a binary classification problem of click or no click by setting a threshold, that is, the output result is divided into a positive label or a negative label. Therefore, an output layer neuron is added at the end of the network structure.

[0109] After the above-mentioned embedding generation step of the user access DPI sequence diagram based on the depth walk is completed, the prediction model establishment step S3 can be performed. In an embodiment of the present invention, the prediction model is based on the overall framework of the embedding model of the user access DPI sequence diagram based on the depth walk. Figure 1 The prediction model building step S3 includes the following steps:

[0110] Step S31: Provide an initialized deep walking-based user access DPI sequence graph embedding model; divide the original DPI access sequences of N users (first user access DPI sequences) and the new DPI access sequence data of N users preprocessed in step S1 (second user access DPI sequences) into a training set and a validation set according to user ID; wherein the second user access DPI sequence is a new DPI access sequence output by the DeepWalk generation algorithm for the corresponding user ID.

[0111] The network framework (neural network deep learning) for embedding the user access DPI sequence graph based on deep walking includes an input layer, an embedding layer, a concatenating layer, a fully-connected layer and an output layer.

[0112] Step S32: sequentially concatenate the first user access DPI sequence and the second user access DPI sequence under each user ID in the training set and input them into the input layer;

[0113] Step S33: the embedding layer uses the Skip-Gram method to generate a first user access DPI sequence and a second user access DPI sequence graph embedding representation of the corresponding DPI node;

[0114] Step S34: the merging layer receives the output of the embedding layer, and embeds and concatenates the first user access DPI sequence and the second user access DPI sequence graph into representation features;

[0115] Step S35: the fully connected layer receives the output of the merging layer and performs fully connected network training;

[0116] Step S36: The output layer can output the predicted probability value by adding the sigmoid function, which can be expressed as a 0 / 1 binary classification by setting the threshold, and formed into a binary classification problem of click or no click by setting the threshold, that is, the output result is divided into a positive label or a negative label.

[0117] Step S37: Calculate the loss between the predicted probability value and the true value of the prediction model through the predicted probability value, automatically update all network parameters involved in the prediction model according to the gradient feedback of deep learning based on the loss value, and use the validation set for verification to obtain the final prediction model.

[0118] After the above model training is completed, the step S38 is also included to perform model evaluation index processing and optimization processing on the activity prediction model based on the deep walking word vector graph embedding technology. Figure 8 , Figure 8 The figure is a schematic diagram of the relationship curve between the loss function and the training rounds in the user click rate training in an embodiment of the present invention.

[0119] The model evaluation indicators include AUC (Area Under Curve) value, Log loss value and relative information gain RIG (Relative Information Gain) value. Generally speaking, the closer the AUC value is to 1, the better the model classification effect is. The smaller the Logloss value is, the higher the accuracy of the click-through rate estimation is; the larger the relative information gain value is, the better the model effect is.

[0120] For example, after the data is processed according to the above steps and trained by the model, the training effect of the model can be judged by the locally verified AUC value; if the effect is poor, the model generally needs to be tuned. For deep learning algorithms, it can generally be optimized from the following aspects:

[0121] ①. Add batch normalization to solve the problem of internal covariate shift of data.

[0122] ②. Add Dropout to the network, that is, let some neurons be dormant during training.

[0123] ③. Adjust the learning rate. Generally, the learning rate during training is adjusted through strategies such as exponential decay.

[0124] ④. Set up multiple seed training and take the average to reduce the risk of overfitting during training.

[0125] ⑤. Add L1 or L2 regularization and impose penalties on the loss function to reduce the risk of overfitting.

[0126] ⑥. Optimization of hyperparameters.

[0127] In the optimization method of hyperparameters, grid search or random search can generally be used; however, the above two methods consume a lot of computing resources and are not efficient. In an embodiment of the present invention, a Bayesian Optimization strategy is adopted. Bayesian optimization calculates the posterior probability distribution of the first n data points through Gaussian process regression to obtain the mean and variance of each hyperparameter at each value point; Bayesian optimization balances the mean and variance, and finally selects a set of better hyperparameters according to the joint probability distribution between hyperparameters.

[0128] After all the above processing steps are completed, the above features can be brought into the trained user prediction model to screen out some users with higher willingness in advance before advertising is delivered, and marketing advertisements can be accurately delivered to these users.

[0129] That is, the present invention may further include a marketing activity prediction step S4, wherein the step S4 specifically includes:

[0130] Step S41: obtaining the user group for which click prediction of the marketing activity is to be made and the original user information of the user group, and extracting the original feature information from the original user information; wherein the original feature information includes the user ID, the location of the user's mobile phone number, the user's access DPI sequence, the user's access time and / or whether the user clicks the feature; wherein the user's number location is a category feature, the user's access time is a continuous feature, and N is greater than or equal to 2;

[0131] Step S42: performing anomaly detection and processing steps on the original information of each user; after grouping the user IDs, sorting the user access time, and providing the first user access DPI sequence according to the user access time; processing the category features by one-hot encoding, and processing the continuous features by using the RankGauss method;

[0132] Step S43: performing abnormal detection and processing steps on the original information of each user; after grouping the user IDs, sorting the user access time, and providing the first user access DPI sequence according to the user access time; processing the category features through one-hot encoding, and processing the continuous features using the RankGauss method;

[0133] Step S44: According to actual delivery needs, select all or part of the users whose model predicted values ​​have a concentrated click willingness of 1 to perform precision marketing tasks.

[0134] The results show that the method of the present invention can effectively utilize the advantages of gradient boosting decision trees in feature construction, and combine the learning ability of deep learning for high-order features in high-dimensional sparse matrices. This fusion model can effectively expand the application of deep learning to computational advertising and recommendation system algorithm problems, and significantly improve the accuracy of user click behavior prediction, thereby saving a lot of marketing costs and increasing profit margins.

[0135] The above-described embodiments are only preferred embodiments of the present invention, and the embodiments are not intended to limit the patent protection scope of the present invention. Therefore, any equivalent structural changes made using the description and drawings of the present invention should also be included in the protection scope of the present invention.

Claims

1. A prediction method based on deep walking word vector graph embedding technology, characterized in that: It includes a data preprocessing step S1, a user access DPI sequence graph embedding generation step S2 based on deep walking, and a prediction model establishment step S3; The data preprocessing step S1 comprises the following steps: Step S11: obtaining original information of N users, and extracting original feature information from the original information of the users; wherein the original feature information includes user ID, user mobile phone number location, user access DPI sequence, user access time and / or whether the user clicks on the feature; wherein the user mobile phone number location is a category feature, the user access time is a continuous feature, and N is greater than or equal to 2; Step S12: performing abnormality detection and processing on the original information of the user; Step S13: after grouping the user IDs, sorting the user access times, and providing a first user access DPI sequence in order of the user access times; Step S14: Process the categorical features by one-hot encoding and process the continuous features by using the RankGauss method; The step S2 comprises: S21: Obtain / generate the first user access DPI sequence of user click behavior; S22: generating, according to the first user access DPI sequence of all user click behaviors, each directed edge from the DPI first clicked or visited by the user to the DPI2 clicked or visited later, and weighting each directed edge according to the number generated, to form a DPI relationship graph; S23: randomly selecting an initial point by random walk, sampling the DPI nodes in the generated DPI relationship graph and generating a corresponding second user access DPI sequence; S24: using the Skip-Gram method to generate a graph embedding representation of the first user access DPI sequence and the second user access DPI sequence; The prediction model generation step S3 is used to generate an activity prediction model based on the deep walking word vector graph embedding technology, and the prediction model includes an input layer, an embedding layer, a merging layer, a fully connected layer and an output layer; the prediction model is trained using a training set and verified using a verification set to obtain a final prediction model, including the following steps: Step S31: providing an initialized user access DPI sequence graph embedding model based on deep walking; dividing the original N users' first user access DPI sequences and the N users' second user access DPI sequences into a training set and a validation set according to the user ID; wherein the second user access DPI sequence is a new DPI access sequence output by the DeepWalk generation algorithm according to the corresponding user ID of the first user access DPI sequence; Step S32: sequentially concatenate the first user access DPI sequence and the second user access DPI sequence under each user ID in the training set and input them into the input layer; Step S33: the embedding layer uses the Skip-Gram method to generate a first user access DPI sequence and a second user access DPI sequence graph embedding representation of the corresponding DPI node; Step S34: the merging layer receives the output of the embedding layer, and embeds and concatenates the first user access DPI sequence and the second user access DPI sequence graph into representation features; Step S35: the fully connected layer receives the output of the merging layer and performs fully connected network training; Step S36: the output layer can output the click prediction probability value of the binary classification user by adding a sigmoid function; Step S37: Calculate the loss value between the predicted probability value and the true value of the prediction model, automatically update all network parameters involved in the prediction model according to the loss value according to the gradient feedback of deep learning, and use the verification set for verification to obtain the final prediction model.

2. The prediction method according to claim 1, characterized in that: The step S22 comprises the following steps: Step S221: Based on the first user access DPI sequence of the user's click behavior, a relationship diagram of each DPI may be generated in the following manner: If user U1 clicks or visits DPI1 and DPI2 successively, a directed edge from DPI1 to DPI2 is generated, i.e., DPI1→DPI2; if other users also have the same access behavior, the weight from DPI1 to DPI2 is strengthened, and eventually a relationship graph of all DPIs will be generated.

3. The prediction method according to claim 1, characterized in that: The random walk method in S23 is a depth-first search and a breadth-first search in the DPI relationship graph.

4. The prediction method according to claim 1, characterized in that: The method further includes a marketing activity prediction step S4, which specifically includes: Step S41: obtaining the user group for which click prediction of the marketing activity is to be made and the original user information of the user group, and extracting the original feature information from the original user information; wherein the original feature information includes the user ID, the location of the user's mobile phone number, the user's access DPI sequence, the user's access time and / or whether the user clicks the feature; wherein the location of the user's mobile phone number is a category feature, the user's access time is a continuous feature, and N is greater than or equal to 2; Step S42: performing anomaly detection and processing steps on the original information of each user; after grouping the user IDs, sorting the user access time, and providing the first user access DPI sequence according to the user access time; processing the category features by one-hot encoding, and processing the continuous features by using the RankGauss method; Step S43: Provide a trained marketing activity prediction model, use the first user to access the DPI sequence, and obtain the prediction values ​​of all the users in the user group for marketing activity click prediction; wherein the model prediction value of the user is the user's click intention.

5. The prediction method according to claim 4, characterized in that: The model prediction step S4 also includes: Step S44: According to actual delivery needs, select all or part of the users whose model predicted values ​​have a concentrated click willingness of 1 to perform precision marketing tasks.

6. The prediction method according to claim 1, characterized in that: The step S3 also includes step S38, which performs model evaluation index processing and tuning processing on the prediction model based on deep walking word vector graph embedding technology; the model evaluation index includes AUC value, Log loss value and relative information gain RIG value.

7. The prediction method according to claim 6, characterized in that: The model tuning process includes one or more of the following: Add batch normalization to solve the problem of internal covariate shift in data; Add the ability to put some neurons in a dormant state during training in the network; Adjust the learning rate and adjust the learning rate during training through an exponential decay strategy; Set up multi-seed training to take the average to improve the problem of insufficient generalization ability caused by large data variance; Add L1 or L2 regularization to impose penalties on the loss function to reduce the risk of overfitting; Hyperparameter optimization methods.

Citation Information

Patent Citations

  • Visual reasoning method for spatial-temporal information uncertainty of character event

    CN111291243A

  • Advertisement click rate prediction method based on user historical behavior sequence

    CN112288471A

  • User individual behavior prediction method based on DPI time sequence word embedding vector

    CN113591971A

  • Malicious activity detection by cross-trace analysis and deep learning

    US20200076842A1

  • Address information feature extraction method based on deep neural network model

    US20210012199A1