User advertisement recommendation method, device and model building method based on fusion neural network

By constructing a user social graph and using a graph neural network model, combined with LSTM and BERT feature extraction, the user advertising recommendation system is optimized, solving the problem of insufficient accuracy and dynamics of advertising recommendations in the existing technology, and realizing efficient and real-time advertising. Recommended results.

CN118396684BActive Publication Date: 2024-09-20GUANGDONG ADVERTISEMENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410835673.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-20
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

Existing advertising recommendation systems have deficiencies in accuracy, dynamics, and computing resources, making it difficult to make full use of users' personalized needs and behavioral habits, and lacking real-time monitoring and adjustment capabilities, resulting in poor recommendation results.

Method used

The autoencoder feature extraction module based on LSTM layer and self-attention mechanism is used, combined with the pre-trained BERT model, to construct the user social graph and use the graph neural network (GNN) model to optimize the social graph through the particle swarm optimization algorithm to achieve user advertising. Training and real-time updating of recommendation models.

Benefits of technology

It improves the accuracy and dynamics of advertising recommendations, reduces computing resource requirements, enables efficient user behavior monitoring and real-time adjustment, and enhances the timeliness and accuracy of recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118396684B
    Figure CN118396684B
Patent Text Reader

Abstract

The present invention provides a user advertising recommendation method, device and model construction method based on fusion neural network, which belongs to the field of computer data processing technology; collect and produce an initial data set containing user attributes, browsing history and purchase data; then construct a feature extraction module based on an autoencoder and a pre-trained BERT model feature extraction module, and construct a standard data set; then, construct a user social network through feature similarity matching, and use a GNN network model to predict user consumption behavior; then, use a particle swarm optimization algorithm to optimize the number of Edge connections in the social graph to improve the model accuracy; finally, deploy the trained advertising recommendation model to the server, update user behavior feature data in real time, predict user purchase tendencies, and realize accurate advertising recommendations and dynamic strategy adjustments. The user advertising recommendation method proposed by the present invention aims to realize a highly accurate and highly adaptable intelligent advertising recommendation system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer data processing, and in particular relates to a user advertisement recommendation method, device and model building method thereof based on a fusion neural network. Background Art

[0002] In the modern Internet and e-commerce environment, intelligent advertising recommendation systems have become one of the key technologies for improving user experience and commercial benefits. By analyzing user interests and behavior data, intelligent advertising recommendation can accurately deliver advertising content to potentially interested user groups. At the same time, intelligent advertising recommendation can dynamically adjust advertising content and display methods based on users' real-time behavior and feedback information, making the advertisements more in line with user preferences and needs, and improving the conversion rate and effectiveness of advertisements. In addition, intelligent advertising recommendation can also achieve refined management and optimization of advertising delivery. By monitoring and analyzing the effectiveness of advertising delivery, advertising strategies and resource allocation can be adjusted in a timely manner, thereby maximizing the advertiser's return on investment. At present, there are already intelligent advertising recommendation technologies, such as:

[0003] A Chinese patent with application number CN202111268312.7 discloses an advertising recommendation method, apparatus, device, storage medium and computer product, wherein the method includes: obtaining N candidate advertising sets that match user requests; obtaining status information of each advertisement in the N candidate advertising sets in the candidate advertising sets to which it belongs, and determining the quality condition corresponding to each advertisement in the candidate advertising set based on the status information of each advertisement in the candidate advertising set to which it belongs; determining the recommendation quality of each advertisement in the candidate advertising set to which it belongs, and based on the recommendation quality of each advertisement in the candidate advertising set to which it belongs and the quality condition corresponding to each advertisement in the candidate advertising set to which it belongs, screening the N candidate advertising sets to obtain a pending advertising set; outputting recommended advertisements to the target user based on the pending advertising set.

[0004] The Chinese patent application number CN202311243464.0 discloses an advertising recommendation method based on a biological neural network, which involves the field of data processing methods. After collecting the user behavior data set, the advertising recommendation method converts the user behavior data set into a neural pulse sequence based on a biological neural network, and then uses the advertising recommendation model based on the pulse neural network to obtain the interest probability distribution vector of the target user according to the neural pulse sequence, thereby selecting the target advertising content with the highest matching degree with the target user from the advertising library for recommendation. By combining the biological neural network with the pulse neural network, the interests of the target user can be accurately captured to achieve advertising recommendation when the user behavior data set is relatively sparse, and advertising recommendation with high accuracy and dynamic adaptability can be achieved.

[0005] However, the above patent solutions and existing technologies still have defects, including the following:

[0006] 1. Lack of accuracy: The current advertising push method usually makes recommendations based on users' basic attributes and simple behavioral data, which makes it difficult to fully utilize users' personalized needs and behavioral habits. This ultimately leads to low accuracy of recommendations and a poor match between advertisements and users' real needs.

[0007] 2. Lack of dynamism and real-time performance: Current advertising recommendation systems often lack the ability to monitor and dynamically adjust user behavior in real time, and are unable to adapt to changes in user interests and needs in a timely manner, resulting in the recommendation of advertising content being out of touch with the user's current status.

[0008] 3. Model complexity and computing resource requirements: Some intelligent advertising recommendation systems use complex neural network models. The training and reasoning of these models require a lot of computing resources and time, which is not conducive to quickly responding to user needs in real-time application scenarios. Summary of the invention

[0009] In view of the above problems, the first aspect of the present invention proposes a method for constructing a user advertisement recommendation model based on a fusion neural network, comprising the following process:

[0010] S1, constructing the initial data set for user advertising recommendation, including user attribute data, behavioral feature data of user browsing records, and corresponding data on the types of goods purchased by users;

[0011] S2, based on the LSTM layer and self-attention mechanism, the autoencoder feature extraction module is designed to extract the user behavior feature data to obtain deep behavior features; at the same time, the pre-trained BERT model is used to extract the user attribute data to obtain deep attribute features; and a standard data set is created based on the deep behavior features, deep attribute features and user purchase data;

[0012] S3, design a user social graph construction method based on feature similarity matching, represent users as nodes, establish edges between users with high feature similarity, and build a user advertising recommendation model based on graph neural network GNN;

[0013] S4, based on the particle swarm optimization PSO algorithm, optimize the user social graph construction method, and combine GNN to obtain the user advertising recommendation model with the optimal structure. The user advertising recommendation model is trained using the standard data set, and finally the trained user advertising recommendation model is obtained.

[0014] Preferably, in S1, the basic characteristics of the user are used as the input data of the advertising recommendation model, including user attribute data and behavioral characteristic data of the user's browsing history; the type of purchased goods is used as the output data of the advertising recommendation model, and common goods are divided into 9 categories; the construction process is specifically as follows:

[0015] Collect user attribute data , including the user's age ,gender and user location ; and collect browsing history data before each purchase of a product ; and The data formats are expressed as follows:

[0016] (1)

[0017] (2)

[0018] in, to Respectively represent the number of times 9 categories of products are browsed;

[0019] Based on this data collection method, a collection is performed to obtain the basic characteristic data of a user. :

[0020] (3)

[0021] At the same time, record the category information of the goods purchased by the user , and encode the data into a one-hot vector of dimension 9;

[0022] Collect the corresponding product browsing data from the 7 historical purchase records and form an initial set of complete input data :

[0023] (4)

[0024] (5)

[0025] in, Indicates user The corresponding The initial complete input data of the group, Indicates user No. The basic characteristic data collected and Respectively for users No. User attribute data and browsing history data collected;

[0026] at the same time, The corresponding target result is , that is, user No. The two data together constitute the user An initial set of data:

[0027] (6)

[0028] Repeat the above process to get a total of users common Group advertising recommendation initial data :

[0029] (7)

[0030] Since each set of ad recommendation data contains 7 historical browsing data, ;

[0031] Total acquisition The complete initial dataset of users :

[0032] (8)

[0033] but , and each user contains Group advertisement recommendation initial data.

[0034] Preferably, in S2, an autoencoder feature extraction module is designed based on the LSTM layer and the self-attention mechanism to extract features from the user behavior feature data to obtain deep behavior features, wherein the autoencoder feature extraction module includes an LSTM layer, a self-attention layer, and a Softmax layer;

[0035] In the encoder part, After two LSTM layers capture the internal temporal correlation features, the intermediate features obtained are expressed as:

[0036] (9)

[0037] in, is the intermediate feature extracted after two LSTM layers. is the processing function of the LSTM layer, and then the feature is obtained through the Tanh activation function :

[0038] (10)

[0039] The self-attention layer first calculates the attention similarity matrix:

[0040] (11)

[0041] Secondly, normalize each element in the similarity matrix:

[0042] (12)

[0043] in, and Respectively represent the normalization before and after Line Similarity values ​​of column elements, Represents the similarity matrix Before normalization Line Column element similarity value;

[0044] Finally, the weighted sum is used to obtain the feature processing result of the attention layer:

[0045] (13)

[0046] Afterwards, the deep behavior features are obtained through the Sigmoid activation function and the softmax layer :

[0047] (14)

[0048] (15)

[0049] in, and Respectively represent the softmax layer function and the Sigmoid activation function, is the intermediate feature after the Sigmoid activation function;

[0050] Encoder part The processing process is:

[0051] (16)

[0052] in, is the encoder function;

[0053] Similarly, the processing in the decoder part is expressed as:

[0054] (17)

[0055] in, is the decoder function, Reconstruct the result for the decoder.

[0056] Preferably, the autoencoder feature extraction module uses a designed loss function based on mean square error MSE:

[0057] (18)

[0058] in, , ; All browsing history data As the training data set of the autoencoder, the model is trained, and the encoder part of the trained autoencoder is used as feature extractor.

[0059] Preferably, feature extraction is performed on the 7 sets of initial complete input data respectively, and based on the extracted deep behavioral features and deep attribute features , get a set of standard input feature data :

[0060] (19)

[0061] (20)

[0062] Will and Integrate into a set of standard data sets :

[0063] (twenty one)

[0064] in, ; The user All initial data, set each user to have Group data, construct the user Complete standard dataset :

[0065] (twenty two)

[0066] Total acquisition A complete standard dataset for users :

[0067] (twenty three)

[0068] in, .

[0069] Preferably, S3 is specifically:

[0070] Each user is represented as a node, and the input feature of the node is the standard input feature data of the user. , and the predicted output feature of this node is ;

[0071] The higher the feature similarity between user nodes, the more similar the users’ consumption habits are. By calculating the similarity between each user and other users’ standard input feature data, it is determined whether an edge connection is established between users. Each user establishes an edge connection with users with high similarity, and all users together form a complete user social network.

[0072] Based on the constructed user social network, a GNN-based user advertising recommendation model is constructed; for each user node, the GraphSAGE layer in the user advertising recommendation model aggregates the features of its directly connected adjacent user nodes, and transfers these aggregated features to its own user node, combining the behavioral habits of similar users to predict the consumption behavior of its own user.

[0073] Preferably, the feature similarity between the household nodes uses a feature similarity matching method, specifically:

[0074] First, each user The standard input feature data is concatenated into a complete user feature data:

[0075] (twenty four)

[0076] in, Indicates user At the moment The standard input feature data of , It is a channel splicing operation;

[0077] Then calculate the feature similarity between users, expressed as:

[0078] (25)

[0079] in, Indicates user and users The feature similarity between and Respectively represent users and users The characteristic data of It is the module length calculation operation;

[0080] The feature similarity between all users is calculated by formula (25), and the user with the highest feature similarity is selected for each user. Users establish Edge connections.

[0081] Preferably, the user advertising recommendation model based on GNN is constructed, and the GraphSAGE layer is used as the basic GNN network layer. The standard feature data is input into the GNN model, and the features of each user node are aggregated through the GraphSAGE layer. As the GraphSAGE layer deepens, the feature depth of the adjacent nodes obtained by each user node becomes wider, and finally the feature information of each user and its feature in the entire social network is obtained, and mapped to the final prediction result of the advertising type; at the same time, the Dropout layer is used to reduce overfitting; each GraphSAGE layer is composed of a node aggregation layer, a fully connected layer and a RELU activation function layer, and the dropout rate of the Dropout layer is set to 0.3.

[0082] The second aspect of the present invention provides a user advertisement recommendation method based on a fusion neural network, which deploys the user advertisement recommendation model constructed by the construction method described in the first aspect to a background server, and includes the following processes:

[0083] S1, real-time collection of the latest user attribute data and browsing history data , and combine historical data to obtain the initial complete input data ;

[0084] S2, will In and The designed autoencoder feature extraction module and the pre-trained BERT model are used for feature extraction, and the deep features are concatenated to obtain the standard input feature data. ;

[0085] S3, based on the trained user advertising recommendation model, Update to current user The input node features of the user are used to predict the type of product that the user is most likely to buy, and this type of product is used as the user's The recommended products;

[0086] S4, repeating steps S1 to S3, updating and adjusting the input feature data of all users in real time, so as to place each user in the global user recommendation of the entire social network, and finally achieving high-precision advertising recommendation.

[0087] The third aspect of the present invention provides a user advertising recommendation device based on a fusion neural network, the device comprising at least one processor and at least one memory, the processor and the memory being coupled; the memory storing a computer execution program of a user advertising recommendation model constructed by the construction method described in the first aspect; when the processor executes the computer execution program stored in the memory, the processor executes a user advertising recommendation method based on a fusion neural network.

[0088] The fourth aspect of the present invention provides a computer-readable storage medium, which stores a computer execution program of the user advertising recommendation model constructed by the construction method described in the first aspect. When the computer execution program is executed by a processor, the processor executes a user advertising recommendation method based on a fusion neural network.

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

[0090] 1. Multimodal data fusion: An autoencoder structure based on LSTM layer and self-attention mechanism is constructed, and the trained encoder part and the pre-trained BERT model are used as feature extraction modules to achieve deep feature extraction of user attributes and behavior data and effective fusion of multimodal data, thereby improving the feature representation capability.

[0091] 2. Construction of user social graph and design of GNN-based advertising recommendation model: A method based on feature similarity matching is designed to construct a user social network. The graph neural network (GNN) model can aggregate the information of adjacent nodes and make full use of the behavioral characteristics of similar users to place users in the entire social network, thereby improving the accuracy of overall advertising recommendations from a global perspective.

[0092] 3. User social graph optimization based on particle swarm optimization (PSO) algorithm: The PSO algorithm is used to optimize the number of edge connections in the user social graph, ensuring efficient and accurate connections between users with high feature similarity, reducing information interference and achieving optimal model performance.

[0093] 4. Real-time dynamic adjustment: The advertising recommendation model deployed in the server can collect and update user behavior feature data in real time, combine historical data for prediction and recommendation, realize dynamic adjustment of advertising strategies, and ensure the timeliness and accuracy of recommendations. BRIEF DESCRIPTION OF THE DRAWINGS

[0094] In order to more clearly illustrate the technical solutions of the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, what is described below is only one embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0095] Figure 1 It is a technical flow chart of the user advertisement recommendation method integrating neural network of the present invention;

[0096] Figure 2 This is a block diagram of the autoencoder feature extraction module based on the LSTM layer and self-attention mechanism of the present invention;

[0097] Figure 3 A schematic diagram of a user social network constructed based on feature similarity matching;

[0098] Figure 4 This is a block diagram of the user advertising recommendation model based on GNN;

[0099] Figure 5 A flowchart for the deployment and implementation of the advertising recommendation model;

[0100] Figure 6 The flowchart for obtaining the optimal number of Edge connections based on PSO;

[0101] Figure 7 Recommend equipment diagram for advertising. DETAILED DESCRIPTION

[0102] The present invention aims to propose a user advertisement recommendation method based on fusion neural network to solve the challenges of existing methods. Figure 1 As shown, the route of the technology of the present invention includes: first, collecting and making an initial data set containing user attributes, browsing history and purchase data; then, constructing an autoencoder feature extraction module based on the LSTM layer and self-attention mechanism, as well as a pre-trained BERT model feature extraction module, and constructing a standard data set; then, constructing a user social network through feature similarity matching, and using a GNN network model based on the GraphSAGE layer to predict user consumption behavior; then, using the particle swarm optimization algorithm (PSO) to optimize the number of Edge connections in the social graph to improve the model accuracy; finally, deploying the trained advertising recommendation model to the server, updating user behavior feature data in real time, predicting user purchase tendencies, and realizing accurate advertising recommendations and dynamic strategy adjustments. The user advertising recommendation method proposed in the present invention aims to realize a highly accurate and highly adaptable intelligent advertising recommendation system to maximize the advertising effect and return on investment.

[0103] The method of the present invention is further described below in conjunction with specific embodiments.

[0104] Embodiment 1:

[0105] 1. Collection and production of initial dataset for user advertising recommendation:

[0106] In order to realize intelligent user advertising recommendation based on neural network, the collection and production of data sets are crucial. The present invention aims to realize accurate advertising recommendation for different users, so as to effectively encourage users to purchase advertised products. Therefore, the present invention uses the basic characteristics of users as input data, including user attribute data and behavioral characteristic data of user browsing records; and uses the type of purchased goods as output data to construct a user advertising recommendation model. Common commodities are divided into 9 categories: clothing accessories, electronic products, food, household goods, office books, sports facilities, basic accessories, care products and others; the specific initial data set production process includes:

[0107] S1-1, collect user attribute data , including the user's age ,gender and user location and other basic data; and collect browsing history data before each purchase of goods by users , specifically, the number of times each type of product is browsed is summarized; therefore, and The data formats are expressed as follows:

[0108] (1)

[0109] (2)

[0110] in, to Respectively represent the number of times 9 categories of products are browsed;

[0111] Based on this data collection method, a collection is performed to obtain the basic characteristic data of a user. :

[0112] (3)

[0113] At the same time, the category information of the goods purchased by the user is recorded , and encode the data into a one-hot vector (dimension is 9), that is, when purchasing the first category of goods, the corresponding It is expressed as:

[0114] (4)

[0115] S1-2, since the user's purchase behavior is continuous, that is, the result of this purchase is affected by multiple browsing; therefore, in order to make full use of this sequence characteristic to improve the accuracy of user advertising promotion, the present invention is based on the S1-1 data collection method, and further collects the corresponding product browsing data in 7 (can be more than 7) historical purchase records based on experience values, and constitutes a set of initial complete input data :

[0116] (5)

[0117] (6)

[0118] in, Indicates user The corresponding The initial complete input data of the group, Indicates user No. The basic characteristic data collected and Respectively for users No. User attribute data and browsing history data collected;

[0119] at the same time, The corresponding target result is (i.e. user No. The two data together constitute the user An initial set of data:

[0120] (7)

[0121] S1-3, repeat step S1-2, and get a total of users common Group advertising recommendation initial data :

[0122] (8)

[0123] Since each set of ad recommendation data contains 7 historical browsing data, ;

[0124] S1-4, repeat step S1-3, and obtain The complete initial dataset of users :

[0125] (9)

[0126] but , and each user contains Group advertisement recommendation initial data.

[0127] 2. Preparation of standard data sets:

[0128] 1. Design an autoencoder feature extraction module based on the LSTM layer and self-attention mechanism to extract user behavior feature data to obtain deep behavior features.

[0129] The initial data set collected contains multi-modal data types, including attribute data For text-level features, browse record data Therefore, in order to improve the expressive power of various features and realize multimodal feature fusion, the present invention designs an autoencoder model based on the LSTM layer and self-attention mechanism, and uses the encoder part in the model as The feature extraction module of The feature extraction module is used to fuse the feature-extracted data and construct a standard data set. Specifically, it includes:

[0130] An autoencoder model based on LSTM layer and self-attention mechanism is designed; the autoencoder includes an encoder and a decoder; the encoder is used to extract the features of the data and finally convert them into the deep feature representation of the intermediate layer; the decoder is connected to the encoder to reconstruct the deep features to obtain the original data representation. The present invention constructs an autoencoder model based on LSTM layer, self-attention layer and Softmax layer, such as Figure 2 shown.

[0131] (1) After two LSTM layers capture the internal temporal correlation features, the intermediate features obtained are expressed as:

[0132] (10)

[0133] in, is the intermediate feature extracted after two LSTM layers. is the processing function of the LSTM layer, and then the feature is obtained through the Tanh activation function :

[0134] (11)

[0135] (2) The attention layer includes the following:

[0136] First, calculate the attention similarity matrix:

[0137] (12)

[0138] Secondly, normalize each element in the similarity matrix:

[0139] (13)

[0140] in, and Respectively represent the normalization before and after Line Similarity values ​​of column elements, Represents the similarity matrix Before normalization Line Column element similarity value;

[0141] Finally, the weighted sum is used to obtain the feature processing result of the attention layer:

[0142] (14)

[0143] (3) Then, the deep behavior features are obtained through the Sigmoid activation function and the softmax layer. :

[0144] (15)

[0145] (16)

[0146] in, and Respectively represent the softmax layer function and the Sigmoid activation function, is the intermediate feature after the Sigmoid activation function;

[0147] (4) Therefore, the above encoder part is The processing process can be summarized as follows:

[0148] (17)

[0149] in, is the encoder function;

[0150] (5) Similarly, the processing of the decoder part is expressed as:

[0151] (18)

[0152] in, is the decoder function, Reconstruct the result for the decoder;

[0153] (6) Design a loss function based on mean square error (MSE):

[0154] (19)

[0155] in, , ; All browsing history data As the training data set of the autoencoder, the model is trained, and the encoder part of the trained autoencoder is used as feature extractor.

[0156] 2. Use the pre-trained BERT model to extract features from user attribute data to obtain deep attribute features.

[0157] The BERT model pre-trained on large-scale unsupervised data is used as The feature extraction module is used to obtain the corresponding deep attribute feature representation, which is specifically expressed as:

[0158] (20)

[0159] in, is the pre-trained BERT model function, for Deep attribute features after feature extraction.

[0160] 3. Create a standard data set based on deep behavioral features, deep attribute features, and user purchase data.

[0161] Based on the above feature extraction, feature extraction is performed on the initial complete input data to obtain a set of standard input feature data. :

[0162] (twenty one)

[0163] (twenty two)

[0164] in, , ,...and , , ... can also be calculated by formula (20) and formula (17); and Integrate into a set of standard data sets :

[0165] (twenty three)

[0166] in, ; The user All initial data (each user has The user group data) is constructed by this method Complete standard dataset :

[0167] (twenty four)

[0168] in, ;

[0169] Total acquisition A complete standard dataset for users :

[0170] (25).

[0171] 3. Design a user social graph construction method based on feature similarity matching and build a model:

[0172] Since there is a similarity between the user's browsing behavior characteristics and the final purchasing habits, the present invention utilizes the user's standard input feature data , a user advertising recommendation model based on graph neural network (GNN) was constructed. This model integrates each user into the overall social network, and provides recommendation guidance to other users by combining the purchase behavior information of users with similar characteristics, thereby achieving more accurate and effective advertising recommendations. Specifically, each user is represented as a node in the graph, and edges are established between users with high feature similarity. The process includes:

[0173] Each user is represented as a node, and the input feature of the node is the standard input feature data of the user. , and the predicted output feature of this node is ,and , ;

[0174] The higher the feature similarity between user nodes, the more similar the users' consumption habits are. For user nodes with high similarity, these users are directly connected through Edge, so that the system can predict the consumption tendency of individual users by combining the behavioral characteristics of similar users, and ultimately significantly improve the accuracy of advertising recommendations. Therefore, the present invention determines whether an Edge connection is established between users by calculating the similarity between each user and other users' standard input feature data; the feature similarity matching method specifically includes:

[0175] (1) First, each user The standard input feature data is concatenated into a complete user feature data:

[0176] (26)

[0177] in, Indicates user At the moment The standard input feature data of , This is the channel splicing operation.

[0178] (2) Calculate the feature similarity between users, expressed as:

[0179] (27)

[0180] in, Indicates user and users The feature similarity between and Respectively represent users and users The characteristic data of This is the modulus length calculation operation.

[0181] (3) Calculate the feature similarity between all users using formula (27), and select the user with the highest feature similarity for each user. Users establish Edge connections.

[0182] Therefore, each user establishes an edge connection with users with high similarity, and all users together form a complete user social network, such as Figure 3 As shown; where user With users who have high feature similarity (user ,user ,user , ...) to establish an Edge connection; similarly, users Etc. also establish Edge connections with other user nodes, and ultimately form a user social network together.

[0183] Based on the constructed user social network, a user advertising recommendation model based on GNN is constructed; specifically, for each user node, the GraphSAGE layer (graph sampling and aggregation layer) aggregates the features of the adjacent user nodes directly connected to it, and passes these aggregated features to its own user node. This mechanism can fully combine the behavioral habits of similar users, so as to predict the consumption behavior of its own users. Therefore, the present invention adopts the GraphSAGE layer as the basic GNN network layer, and constructs a GNN network model for user advertising recommendation, such as Figure 4 As shown. The standard feature data is input into the GNN network, and the features of each user node are aggregated through the GraphSAGE layer. As the GraphSAGE layer deepens, the feature depth of the adjacent nodes that each user node can obtain becomes wider, and finally the feature information of each user and its entire social network is obtained and mapped to the final prediction result of the advertising type. At the same time, in the GNN model, in order to avoid overfitting of the network, the Dropout layer (random deactivation layer) is used to reduce overfitting, and finally improve the robustness and generalization ability of the model. Each GraphSAGE layer consists of a node aggregation layer, a fully connected layer, and a RELU activation function layer. The dropout rate of the Dropout layer is set to 0.3.

[0184] Specifically, the user node The feature aggregation update result after the GraphSAGE layer is:

[0185] (28)

[0186] (29)

[0187] in, Represents a user node After the GraphSAGE layer feature aggregation and update, Represents a user node Corresponding time Standard input feature data of; Represents a user node Aggregation result of adjacent node information, Represents the user node The set of adjacent nodes with edge connections, Represents adjacent user nodes Corresponding time Standard input feature data of; are learnable GNN model parameters, is the activation function, As a feature aggregation function, the present invention adopts a mean aggregation function.

[0188] Based on this aggregation method, all user nodes can obtain information from adjacent user features, so that the final product purchase type of each user can be predicted from the global perspective of the user's social network. That is, the complete implementation formula of the recommendation model is:

[0189] (30)

[0190] in, For user-based Current input standard data The commodity purchase prediction results obtained are The dimensions are the same; It is the GNN network model function of the present invention.

[0191] According to the commodity purchase prediction results of the GNN network model, a cross entropy loss is designed to calculate the loss function of the training iteration:

[0192] (31)

[0193] in, Represents the logarithmic function; the gradient descent method is used to optimize the parameters of the GNN network model for this loss function .

[0194] 4. Deployment and application of user advertising recommendation model:

[0195] Deploy the trained user advertising recommendation model to the backend server; Figure 5 As shown, and includes the following processes:

[0196] Collect the latest user attribute data in real time and browsing history data , and combine historical data to obtain the initial complete input data ;

[0197] Will In and The designed autoencoder feature extraction module and the pre-trained BERT model are used for feature extraction, and the deep features are concatenated to obtain the standard input feature data. ;

[0198] Based on the trained user advertising recommendation model, Update to current user The input node features of the user are used to predict the type of product that the user is most likely to buy, and this type of product is used as the user's The recommended products;

[0199] The above process is repeated to update and adjust the input feature data of all users in real time, so as to place each user in the global user recommendation of the entire social network, and ultimately achieve highly accurate advertising recommendations.

[0200] Embodiment 2:

[0201] The present invention also designs a particle swarm optimization (PSO) algorithm to optimize the construction of the user social graph.

[0202] For each user, select the user with the highest similarity to his or her features. Users establish Edge connections. However, the number of Edge connections established It directly affects the performance of users' social networks. If the value is too large, some users with low feature similarity will establish edge connections, thereby introducing a large amount of inaccurate interference information in the subsequent feature aggregation process. If it is too small, some users with high feature similarity will not be able to establish Edge connections, which will eventually lead to the loss of key feature information during the aggregation process. Therefore, optimize the number of user nodes to establish Edge connections It is crucial to improve the accuracy of the GNN-based user advertising recommendation model.

[0203] The present invention optimizes the user social graph construction method based on the particle swarm optimization (PSO) algorithm, and finally obtains the optimal number of edge connections to establish. ; At the same time, combined with the constructed GNN network model for training, the optimal user advertising recommendation model is finally obtained. Figure 6 As shown, the process includes:

[0204] S1, initialize particle swarm : Randomly generated particles, each of which represents a specific value of the number of Edge connections established, namely:

[0205] (32)

[0206] therefore, Indicates particles, and ;

[0207] S2, respectively use the edge connection schemes corresponding to different particles, obtain the loss value of the connection scheme through formula (31), and use the loss as the fitness value of each particle;

[0208] S3, the Edge connection number scheme corresponding to the particle with the smallest fitness value is taken as the optimal scheme for the current particle swarm ;

[0209] S4, update each particle:

[0210] (33)

[0211] in, For particles Updated Edge connection solution, is the speed weight of the particle update, the present invention defines ; is a random number in the interval [0, 1].

[0212] S5, repeat steps S2 to S4 for a total of 200 iterations; the particle swarm optimal solution obtained in the last iteration As the optimal number of Edge connections to establish .

[0213] S6, based on establishing the optimal number of Edge connections , and the GNN network model built by S3, using the built A complete standard dataset for users Carry out model training and finally obtain the trained optimal user advertising recommendation model.

[0214] Embodiment 3:

[0215] The present invention also provides a user advertisement recommendation device based on a fusion neural network, such as Figure 7As shown, the device includes at least one processor and at least one memory, and also includes a communication interface and an internal bus; a computer execution program is stored in the memory; a computer execution program of the user advertising recommendation model constructed by the above-mentioned construction method is stored in the memory; when the processor executes the computer execution program stored in the memory, the processor can execute a user advertising recommendation method based on a fusion neural network. The internal bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus. The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a U disk, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.

[0216] The device may be provided as a terminal, a server or other form of device. The device may include one or more of the following components: a processing component, a memory, a power component, a multimedia component, an audio component, an input / output (I / O) interface, a sensor component, and a communication component. The processing component generally controls the overall operation of the electronic device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component may include one or more processors to execute instructions to complete all or part of the steps of the above method. In addition, the processing component may include one or more modules to facilitate interaction between the processing component and other components. For example, the processing component may include a multimedia module to facilitate interaction between the multimedia component and the processing component.

[0217] The memory is configured to store various types of data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0218] The communication component is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0219] In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0220] The present invention also provides a computer-readable storage medium, which stores a computer execution program of the user advertising recommendation model constructed by the above-mentioned construction method. When the computer execution program is executed by a processor, the processor can execute a user advertising recommendation method based on a fusion neural network.

[0221] Specifically, a system, device or equipment equipped with a readable storage medium may be provided, on which a software program code for implementing the functions of any of the above-mentioned embodiments is stored, and a computer or processor of the system, device or equipment reads and executes the instructions stored in the readable storage medium. In this case, the program code read from the readable medium itself can implement the functions of any of the above-mentioned embodiments, so the machine-readable code and the readable storage medium storing the machine-readable code constitute a part of the present invention.

[0222] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk (such as CD-ROM, CD-R, CD-RW, DVD-20 ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tape, etc. The storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0223] It should be understood that the storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in a terminal or server.

[0224] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0225] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0226] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0227] Although the above describes the specific implementation methods of the present invention, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A method for constructing a user advertising recommendation model based on a fusion neural network, characterized in that: The process includes: S1, constructing the initial data set for user advertising recommendation, including user attribute data, behavioral feature data of user browsing records, and corresponding data on the types of goods purchased by users; S2, based on the LSTM layer and self-attention mechanism, the autoencoder feature extraction module is designed to extract the user behavior feature data to obtain deep behavior features; at the same time, the pre-trained BERT model is used to extract the user attribute data to obtain deep attribute features; and a standard data set is created based on the deep behavior features, deep attribute features and user purchase data; S3, design a user social graph construction method based on feature similarity matching, characterize users as nodes, establish edges between users with high feature similarity, and build a user advertising recommendation model based on graph neural network GNN; specifically: Each user is represented as a node, and the input feature of the node is the standard input feature data of the user. , based on the extracted deep behavioral features and deep attribute features , get a set of standard input feature data ; and the predicted output feature of this node is ; The higher the feature similarity between user nodes, the more similar the users’ consumption habits are. By calculating the similarity between each user and other users’ standard input feature data, it is determined whether an edge connection is established between users. Each user establishes an edge connection with users with high similarity, and all users together constitute a complete user social network. Based on the constructed user social network, a GNN-based user advertising recommendation model is constructed. For each user node, the GraphSAGE layer in the user advertising recommendation model aggregates the features of its directly connected adjacent user nodes and transfers these aggregated features to its own user node, combining the behavioral habits of similar users to predict the consumption behavior of its own user. S4, based on the particle swarm optimization PSO algorithm, optimize the user social graph construction method, and combine GNN to obtain the user advertising recommendation model with the optimal structure. The user advertising recommendation model is trained using the standard data set, and finally the trained user advertising recommendation model is obtained.

2. The method for constructing a user advertisement recommendation model based on a fusion neural network according to claim 1, characterized in that: In S1, the basic characteristics of the user are used as the input data of the advertising recommendation model, including user attribute data and behavioral characteristic data of the user's browsing history; the type of purchased goods is used as the output data of the advertising recommendation model, and common goods are divided into 9 categories; the construction process is specifically as follows: Collect user attribute data , including the user's age ,gender and user location ; and collect browsing history data before each purchase of a product ; and The data formats are expressed as follows: (1) (2) in, to Respectively represent the number of times 9 categories of products are browsed; Based on the above data collection method, a collection is performed to obtain the basic characteristic data of a user. : (3) At the same time, record the category information of the goods purchased by the user , and encode the data into a one-hot vector of dimension 9; Collect the corresponding product browsing data from the 7 historical purchase records and form an initial set of complete input data : (4) (5) in, Indicates user The corresponding The initial complete input data of the group, Indicates user No. The basic characteristic data collected and Respectively for users No. User attribute data and browsing history data collected; at the same time, The corresponding target result is , that is, user No. The two data together constitute the user An initial set of data: (6) Repeat the above process to get a total of users common Group advertising recommendation initial data : (7) Since each set of ad recommendation data contains 7 historical browsing data, ; Total acquisition The complete initial dataset of users : (8) but , and each user contains Group advertisement recommendation initial data.

3. The method for constructing a user advertisement recommendation model based on a fusion neural network as claimed in claim 2, characterized in that: In S2, an autoencoder feature extraction module is designed based on the LSTM layer and the self-attention mechanism to extract features of the user behavior feature data to obtain deep behavior features, wherein the autoencoder feature extraction module includes an LSTM layer, a self-attention layer, and a Softmax layer; In the encoder part, After two LSTM layers capture the internal temporal correlation features, the intermediate features obtained are expressed as: (9) in, is the intermediate feature extracted after two LSTM layers. is the processing function of the LSTM layer, and then the feature is obtained through the Tanh activation function : (10) The self-attention layer first calculates the attention similarity matrix: (11) Secondly, normalize each element in the similarity matrix: (12) in, and Respectively represent the normalization before and after Line Similarity values ​​of column elements, Represents the similarity matrix Before normalization Line Column element similarity value; Finally, the weighted sum is used to obtain the feature processing result of the attention layer: (13) Afterwards, the deep behavior features are obtained through the Sigmoid activation function and the softmax layer : (14) (15) in, and Respectively represent the softmax layer function and the Sigmoid activation function, is the intermediate feature after the Sigmoid activation function; Encoder part The processing process is: (16) in, is the encoder function; Similarly, the processing in the decoder part is expressed as: (17) in, is the decoder function, Reconstruct the result for the decoder.

4. The method for constructing a user advertisement recommendation model based on a fusion neural network as claimed in claim 3, characterized in that: The autoencoder feature extraction module uses a designed loss function based on mean square error (MSE): (18) in, , ; All browsing history data As the training data set of the autoencoder, the model is trained, and the encoder part of the trained autoencoder is used as feature extractor.

5. The method for constructing a user advertisement recommendation model based on a fusion neural network as claimed in claim 3, characterized in that: Feature extraction is performed on 7 sets of initial complete input data, based on the extracted deep behavioral features and deep attribute features , get a set of standard input feature data : (19) (20) Will and Integrate into a set of standard data sets : (21) in, ; The user All initial data, set each user to have Group data, construct the user Complete standard dataset : (22) Total acquisition A complete standard dataset for users : (23) in, .

6. The method for constructing a user advertisement recommendation model based on a fusion neural network as claimed in claim 1, characterized in that: The feature similarity between the household nodes uses a feature similarity matching method, specifically: First, each user The standard input feature data is concatenated into a complete user feature data: (24) in, Indicates user At the moment The standard input feature data of , It is a channel splicing operation; Then calculate the feature similarity between users, expressed as: (25) in, Indicates user and users The feature similarity between and Respectively represent users and users The characteristic data of It is the module length calculation operation; The feature similarity between all users is calculated by formula (25), and the user with the highest feature similarity is selected for each user. Users establish Edge connections.

7. The method for constructing a user advertisement recommendation model based on a fusion neural network as claimed in claim 1, characterized in that: The user advertising recommendation model based on GNN is constructed, and the GraphSAGE layer is used as the basic GNN network layer. The standard feature data is input into the GNN model, and the feature of each user node is aggregated through the GraphSAGE layer. As the GraphSAGE layer deepens, the feature depth of the adjacent nodes obtained by each user node becomes wider, and finally the feature information of each user and its feature in the entire social network is obtained, and mapped to the final prediction result of the advertising type; at the same time, the Dropout layer is used to reduce overfitting; each GraphSAGE layer is composed of a node aggregation layer, a fully connected layer and a RELU activation function layer, and the dropout rate of the Dropout layer is set to 0.

3.

8. A user advertisement recommendation method based on fusion neural network, characterized in that: The user advertising recommendation model constructed by the construction method according to any one of claims 1 to 7 is deployed to a backend server, and includes the following processes: S1, real-time collection of the latest user attribute data and browsing history data , and combine historical data to obtain the initial complete input data ; S2, will In and The designed autoencoder feature extraction module and the pre-trained BERT model are used for feature extraction, and the deep features are concatenated to obtain the standard input feature data. ; S3, based on the trained user advertising recommendation model, Update to current user The input node features of the user are used to predict the type of product that the user is most likely to buy, and the product corresponding to the product type is used as the target product for the user. The recommended products; S4, repeating steps S1 to S3, updating and adjusting the input feature data of all users in real time, so as to place each user in the global user recommendation of the entire social network, and finally achieving high-precision advertising recommendation.

9. A user advertising recommendation device based on a fusion neural network, the device comprising at least one processor and at least one memory, the processor and the memory being coupled; the memory storing a computer execution program of a user advertising recommendation model constructed by the construction method described in any one of claims 1 to 7; when the processor executes the computer execution program stored in the memory, the processor executes a user advertising recommendation method based on a fusion neural network.