Message recommendation method, device, equipment and storage medium based on neural network
By obtaining user information data, extracting occupation and age information, training error inverse neural network, and predicting the best push time period and notification channel, the problem of low click-through rate of user push messages in the existing technology is solved, and personalized message push is realized. Accuracy and efficiency.
Patent Information
- Application Number
- CN202111060519.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-10
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-09-10
AI Technical Summary
In the existing technology, the reach rate of user push messages is low, resulting in a low click rate, and it is impossible to accurately push messages according to the user's personalized characteristics.
By obtaining user information data, extracting occupation information and age information, training the error inverse neural network based on the gradient descent method, predicting the best push time period, date and notification channel, and realizing personalized message push.
It improves the click-through rate and accuracy of message recommendation, obtains the best recommendation solution through multi-dimensional feature training, and improves the user experience.
Smart Images

Figure CN113761375B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a message recommendation method, device, equipment and storage medium based on a neural network. Background Art
[0002] With the rapid development of the Internet, the importance of user data is increasing day by day. We have a deep insight into the online and offline behaviors of users, and we have built a comprehensive, accurate, and multi-dimensional user portrait system to provide enterprises with rich user portrait data and real-time scene recognition capabilities, helping enterprises to understand users in all aspects. Personalized recommendations have thus emerged, with multi-dimensional label classification and real-time scene identification, realizing one-size-fits-all operations for one thousand people. These all belong to the use of AI and machine learning for content creation and the use of AI and machine learning for content recommendation optimization.
[0003] The existing method of pushing messages to users is to have staff set a unified information push time and notification channel for all users, and push messages to users at the set time. However, some users will not open the pushed messages when they receive them due to reasons such as being in a working state, and some notification channels are not even available to all users, resulting in a low reach rate of push messages and a low click rate of users on push messages. There is an urgent need for a method that can increase the click rate of users on push messages. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a message recommendation method, device, equipment and storage medium based on a neural network to improve the user's click rate on push messages.
[0005] In order to solve the above technical problems, the embodiment of the present application provides a message recommendation method based on a neural network, comprising:
[0006] Obtain user information data, and perform feature extraction on the user information data to obtain each user's occupation information and age information;
[0007] Based on the preset sequence, the occupation information, age information and preset dimension information are vectorized to obtain initial data, where the initial data is divided into training data and verification data, and the preset dimension information includes time period, date and notification channel;
[0008] Based on the gradient descent method, the error inverse neural network is trained with the initial data to obtain a prediction model;
[0009] Obtaining user information data to be recommended, and performing vectorization processing on the user information data to be recommended to obtain target data, wherein the target data includes multi-dimensional vectors of various time periods, dates, and notification channels;
[0010] The target data is predicted and calculated by the prediction model to obtain a target prediction value, wherein the target prediction value includes a target time period, a target date, and a target notification channel corresponding to the multidimensional vector;
[0011] Based on the target prediction value, the recommended message is pushed to the recommended user according to the target time period, target date and target notification channel.
[0012] In order to solve the above technical problems, the embodiment of the present application provides a message recommendation device based on a neural network, comprising:
[0013] The user information data acquisition module is used to acquire user information data and perform feature extraction on the user information data to obtain the occupation information and age information of each user;
[0014] An initial data acquisition module is used to vectorize occupation information, age information and preset dimension information based on a preset sequence to obtain initial data, wherein the initial data is divided into training data and verification data, and the preset dimension information includes time period, date and notification channel;
[0015] An initial data processing module is used to train the error inverse neural network with the initial data based on the gradient descent method to obtain a prediction model;
[0016] The target data acquisition module is used to acquire the user information data to be recommended, and perform vectorization processing on the user information data to be recommended to obtain the target data, wherein the target data includes multi-dimensional vectors of various time periods, dates and notification channels;
[0017] A target data calculation module is used to predict and calculate the target data through a prediction model to obtain a target prediction value, wherein the target prediction value includes a target time period, a target date, and a target notification channel corresponding to the multidimensional vector;
[0018] The module for pushing messages to be recommended is used to push the messages to be recommended to the users to be recommended according to the target time period, target date and target notification channel based on the target prediction value.
[0019] In order to solve the above technical problems, a technical solution adopted by the present invention is: to provide a computer device, including one or more processors; a memory for storing one or more programs, so that the one or more processors can implement any one of the above-mentioned neural network-based message recommendation methods.
[0020] In order to solve the above technical problems, a technical solution adopted by the present invention is: a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any one of the above-mentioned neural network-based message recommendation methods is implemented.
[0021] The embodiment of the present invention provides a message recommendation method, device, equipment and storage medium based on neural network. The embodiment of the present invention obtains user information data and extracts features from the user information data to obtain occupational information and age information of each user; based on a preset sequence, the occupational information, age information and preset dimension information are vectorized to obtain initial data; based on the gradient descent method, the error inverse neural network is trained through the initial data to obtain a prediction model; the user information data to be recommended is obtained, and the user information data to be recommended is vectorized to obtain target data; the target data is predicted and calculated through the prediction model to obtain the target prediction value; based on the target prediction value, the message to be recommended is pushed to the user to be recommended according to the target time period, target date and target notification channel. The embodiment of the present application combines the feature training of multiple dimensions such as the user's occupational information, age information, time period, date and notification channel to obtain the error inverse neural network, improves the prediction accuracy of the error inverse neural network, and also calculates the features of each user to be recommended based on multiple dimensions, outputs the best recommendation scheme, which can help improve the click efficiency of the recommended information. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 It is a schematic diagram of the application environment of the message recommendation method based on neural network provided in an embodiment of the present application;
[0024] Figure 2 A flowchart of an implementation of a message recommendation method based on a neural network provided in an embodiment of the present application;
[0025] Figure 3 It is a flowchart of a sub-process in the message recommendation method based on a neural network provided in an embodiment of the present application;
[0026] Figure 4 It is another implementation flow chart of a sub-process in the message recommendation method based on a neural network provided in an embodiment of the present application;
[0027] Figure 5 It is another implementation flow chart of a sub-process in the message recommendation method based on a neural network provided in an embodiment of the present application;
[0028] Figure 6It is another implementation flow chart of a sub-process in the message recommendation method based on a neural network provided in an embodiment of the present application;
[0029] Figure 7 It is another implementation flow chart of a sub-process in the message recommendation method based on a neural network provided in an embodiment of the present application;
[0030] Figure 8 It is another implementation flow chart of a sub-process in the message recommendation method based on a neural network provided in an embodiment of the present application;
[0031] Fig. 9 is a schematic diagram of a message recommendation device based on a neural network provided in an embodiment of the present application;
[0032] Fig.10 It is a schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0034] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0035] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0036] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0037] See also Figure 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0038] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, search applications, instant messaging tools, etc.
[0039] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0040] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0041] The embodiments of the present application can acquire and process user information data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0042] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0043] It should be noted that the neural network-based message recommendation method provided in the embodiment of the present application is generally executed by a server, and accordingly, the neural network-based message recommendation device is generally configured in the server.
[0044] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0045] See also Figure 2 , Figure 2A specific implementation of a message recommendation method based on a neural network is shown.
[0046] It should be noted that if there are substantially the same results, the method of the present invention is not limited to Figure 2 The process sequence shown is limited to the following steps:
[0047] S1. Obtain user information data, and perform feature extraction on the user information data to obtain each user's occupation information and age information.
[0048] In the embodiments of the present application, in order to more clearly understand the technical solution, the terminal involved in the present application is introduced in detail below.
[0049] The first is a server. The server can obtain user information data and train an error inverse neural network based on the user information data to obtain a prediction model. The server can also obtain information data of the user to be recommended and obtain the best recommendation method for the user to be recommended based on the prediction model, and then recommend the recommendation message to the user to be recommended according to the best recommendation method.
[0050] The second is the user end, which can receive the recommendation message sent by the server and can also click to view the recommendation message.
[0051] See also Figure 3 , Figure 3 A specific implementation of step S1 is shown, which is described in detail as follows:
[0052] S11. Obtain user information data from the database.
[0053] Specifically, by obtaining a user identity identifier, such as a user name, ID number, etc., the user information data is identified from a database using the user identity identifier.
[0054] S12. Clean the user information data to obtain basic data.
[0055] S13. Use regular matching to extract identity information, work information and age information from basic data, and convert the identity information and work information into corresponding occupation information.
[0056] Specifically, the database stores various information data of users, including user name, age, work unit, school, etc., and since the age information of the user information data needs to be extracted later, in order to ensure the validity of the data and improve the efficiency of data extraction, the user information data is first cleaned. Then the identity information, work information and age information in the basic data are extracted, and the extraction method can be through the regular matching extraction method. Since the user's occupational information in the user information data can be expressed in the form of work unit or identity information, the identity information and work information must be converted into occupational information. The occupational information includes: white-collar, blue-collar, self-employed, and student.
[0057] In this embodiment, user information data is obtained from a database, and the user information data is cleansed to obtain basic data. A regular matching method is used to extract identity information, work information, and age information from the basic data, and the identity information and work information are converted into corresponding occupational information. The user information data is converted, which is beneficial to improving the subsequent prediction of the best push path for users, thereby helping to improve the user's click rate on push messages.
[0058] S2. Based on the preset sequence, the occupation information, age information and preset dimension information are vectorized to obtain initial data, wherein the initial data is divided into training data and verification data, and the preset dimension information includes time period, date and notification channel.
[0059] In a specific embodiment, since the occupation information and age of each user are fixed, the occupation information is arranged in order as white-collar, blue-collar, self-employed, and student, and the age information can be divided into 18-30 as a level, 30-40 as a level, and 40+ as a level; the value of each user's information corresponding to which occupation and which age group is 1, and the value of others is 0. If a user's occupation information is white-collar and the age is 20 years old, it is marked as [1, 0, 0, 0, 1, 0, 0]. The preset dimensions can be time period, date, and notification channel.
[0060] See also Figure 4 , Figure 4 A specific implementation of step S2 is shown, which is described in detail as follows:
[0061] S21. Arrange the occupational information and notification channels in a preset order to obtain a first arrangement result.
[0062] Specifically, since the occupation information and the notification channel need to be converted into corresponding vectors, the occupation information and the notification channel need to be arranged to obtain the corresponding vectors. The notification channel can be SMS notification, WeChat notification, QQ notification, other APP notification, etc.
[0063] It should be noted that the preset order is set according to the actual situation and is not limited here. In a specific embodiment, the preset order is white-collar, blue-collar, self-employed, student, SMS notification, WeChat notification, QQ notification, and other APP notifications.
[0064] S22. Arrange the age information, time period and date in order according to the preset levels to obtain a second arrangement result, and combine the first arrangement result and the second arrangement result to obtain a preset arrangement result.
[0065] S23. Compare each user data with the factors in the preset arrangement result to obtain a comparison result, and vectorize and mark the user data according to the comparison result to obtain initial data.
[0066] Specifically, age information can be divided into 18-30 as a level, 30-40 as a level, and 40+ as a level. Time periods can also be divided into three levels: morning, noon, and evening. Dates can be divided from Monday to Sunday. Wherever the user information data falls, the position is recorded as 1, otherwise it is 0, and each user information data obtains a set of multidimensional vectors. The initial data obtained is divided into training data and verification data, with training data accounting for 80% of the initial data and verification data accounting for 20% of the initial data.
[0067] It should be noted that the preset level can be set according to actual conditions and is not limited here.
[0068] In this embodiment, the occupation information and notification channels are arranged in a preset order to obtain a first arrangement result, and the age information, time period and date are arranged in order according to a preset level to obtain a second arrangement result, and the first arrangement result and the second arrangement result are combined to obtain a preset arrangement result, and then each user data is compared with the factors in the preset arrangement result. If the user data is the same as the factor of the preset sequence, it is recorded as 1, otherwise it is recorded as 0 to obtain initial data, thereby realizing the conversion of user information data into initial data in vector form in a preset order, which is convenient for model training of the initial data, thereby facilitating the prediction of user behavior patterns.
[0069] S3. Based on the gradient descent method, the error inverse neural network is trained with the initial data to obtain the prediction model.
[0070] Specifically, the initial data is input into the error inverse neural network model, the error inverse neural network model is trained through training data, and the training results are verified by verification data. At the same time, the weights and bias coefficients of the model are adjusted by error reverse propagation, and the training data is adjusted according to the gradient descent method. The model is iteratively calculated. When the error value reaches a preset value, the iterative calculation of the model is stopped, thereby obtaining a trained error inverse neural network model, and using it as a prediction model.
[0071] Among them, the inverse neural network model refers to the BP (back propagation) neural network, which is a multi-layer feedforward network trained by error back propagation (abbreviated as error back propagation). Its algorithm is called the BP algorithm. Its basic idea is the gradient descent method, which uses gradient search technology to minimize the mean square error between the actual output value and the expected output value of the network.
[0072] See also Figure 5 , Figure 5 A specific implementation of step S3 is shown, which is described in detail as follows:
[0073] S31. Input the training data into the error inverse neural network for calculation to obtain the output value, and determine the error value based on the preset expected output and output value.
[0074] S32. Adjust the weights and bias parameters in the error inverse neural network model based on the error value to obtain an adjusted error inverse neural network model.
[0075] S33. Based on the gradient descent method, the error value of the error inverse neural network model after adjustment is calculated based on the training data and the preset expected output, and the weight and bias parameters in the error inverse neural network model are adjusted based on the error value until the error value is less than the preset value, thereby obtaining a prediction model.
[0076] Specifically, the process of training the error inverse neural network model includes network initialization, output of the hidden layer, output of the output layer, error calculation, weight update, and bias coefficient update.
[0077] Specifically, in network initialization, assume that the training data is x i , the number of nodes in the input layer is n, the number of nodes in the hidden layer is l, and the number of nodes in the output layer is m. The weight from the input layer to the hidden layer is ω ij , the weight from the hidden layer to the output layer is ω jk , the bias from the input layer to the hidden layer is α j , the bias from the hidden layer to the output layer is b k The learning rate is η, and the activation function is the Sigmoid function σ(x) = 1 / (1+e-x ). Then the output of the hidden layer is The hidden layer can be multi-layered. Multi-layered layers can make the feature classification effect more obvious and the results more accurate. Similarly, the more layers there are, the more variable parameters there are. The output of the output layer is The calculation of error E is based on the output layer and the preset expected output, and its formula is: where Y k is the preset expected output. k -O k =e k but The error between the predicted value and the true value is obtained and used to update the subsequent weight and bias variables, automatically adjust the variable values, achieve the learning purpose, and make the next prediction more accurate.
[0078] The weight update formula is: jk =ω jk +ηH j e k ;
[0079] The update formula of the bias coefficient is: k =b k +ηe k ;
[0080] In this embodiment, the training data is input into the error inverse neural network for calculation to obtain the output value, and the error value is determined based on the preset expected output and the output value, and then the weight and bias parameters in the error inverse neural network model are adjusted based on the error value to obtain the adjusted error inverse neural network model. Based on the gradient descent method, the training data and the preset expected output are used to calculate the error value of the adjusted error inverse neural network model, and the weight and bias parameters in the error inverse neural network model are adjusted in combination with the error value until the error value is less than the preset value, so as to obtain the prediction model, so as to realize the prediction model obtained by training according to the user information data, which is beneficial to the subsequent output of the best recommendation plan for the user to be recommended, thereby facilitating the improvement of the click efficiency of the recommended information.
[0081] See also Figure 6 , Figure 6 A specific implementation of step S31 is shown, which is described in detail as follows:
[0082] S311. Obtain the preset initial weights and the preset initial bias coefficients in the error inverse neural network model.
[0083] Specifically, an initial weight and an initial bias coefficient are preset first, and the training data and the verification data are sequentially input into the error inverse neural network model for feature calculation to obtain the error value; then the preset initial weight and the preset initial bias coefficient are gradually adjusted based on the error value, and the data is re-input for feature calculation until the training is completed. Among them, the preset initial weight and the preset initial bias coefficient are set according to the actual situation and are not limited here.
[0084] S312. According to the Sigmoid function, the training data is sequentially input into the input layer, hidden layer and output layer of the error inverse neural network model for calculation to obtain the output result of the hidden layer and the output result of the output layer.
[0085] Specifically, the Sigmoid function is also called the Logistic function, which is used for the output of hidden layer neurons and has a value range of (0,1). It can map a real number to the interval (0,1).
[0086] S313. Obtain a preset expected output, and calculate and process the preset expected output and the output result of the output layer to obtain an error value.
[0087] Specifically, by calculating the error value after each model calculation, the weight and bias coefficient of the next calculation are adjusted so that the predicted value of the model training result gradually approaches the true value.
[0088] In this embodiment, by obtaining the preset initial weights and the preset initial bias coefficients, the training data and the verification data are input into the inverse neural network model for calculation to obtain the output results and the expected outputs, and then the error values are reached based on the output results and the expected outputs. After each iterative calculation, the error value is obtained, which is beneficial to adjust the model weights and bias coefficients based on the error value, which is beneficial to improve the model training accuracy, thereby helping to improve the accuracy of the model prediction.
[0089] S4. Obtain the user information data to be recommended, and perform vectorization processing on the user information data to be recommended to obtain target data, wherein the target data includes multi-dimensional vectors of various time periods, dates, and notification channels.
[0090] Specifically, the above steps have trained a prediction model. When it is necessary to recommend messages to a certain user or a certain user group, it is necessary to predict in which time period, date and notification channel the user or user group is most likely to click on the recommended message. Therefore, it is necessary to first obtain the recommended user information, extract the user's occupation information and age information, and convert the user information data into a multi-dimensional vector by combining the time period, date and notification channel.
[0091] In a specific embodiment, the user's occupation information is white-collar worker and the age is 20 years old, so the occupation information and age marking vector is [1, 0, 0, 0, 1, 0, 0]. Since it is necessary to determine in which time period, date and notification channel the user is most likely to click on the recommended message, it is necessary to mark each situation with a vector, thereby obtaining multiple groups of one-dimensional vectors, that is, the target vector.
[0092] See also Figure 7 , Figure 7 A specific implementation of step S4 is shown, which is described in detail as follows:
[0093] S41. Obtain information data of the user to be recommended.
[0094] Specifically, the user information data to be recommended refers to the user information data of the object to which the message is to be pushed, which includes the user's identity information, work information, age information, etc.
[0095] S42. Arrange the information data of the users to be recommended in a preset order and sort them according to preset levels to obtain an arrangement result of the users to be recommended.
[0096] Specifically, the user information data to be recommended is arranged in a preset order and sorted according to a preset level. The sorting method is the same as that of the above steps S21-S22, and will not be described again here to avoid repetition.
[0097] S43. Perform vector matching on the information data of the user to be recommended and the arrangement result of the user to be recommended to obtain target data.
[0098] Specifically, the information data of the user to be recommended is matched with the result of the arrangement of the user to be recommended by vector. If the factors of the information data of the user to be recommended and the result of the arrangement of the user to be recommended are the same, it is recorded as 1, otherwise it is recorded as 0, and a set of multidimensional vectors is obtained as the user information vector. Then the vectors formed by each time period, date and notification channel are combined with the above user information vector to obtain the target data. Since each user information data is unchanged, various situations, that is, each time period, date and notification channel, are combined with the user information data to obtain the target data, which is used to determine which time period, date and notification channel is suitable for the recommended user to push messages.
[0099] In this embodiment, by obtaining the information data of the user to be recommended, and arranging the information data of the user to be recommended according to a preset order and a preset level, the arrangement result of the user to be recommended is obtained, and finally the information data of the user to be recommended is vector matched with the arrangement result of the user to be recommended to obtain the target data, so as to facilitate the subsequent prediction of the user to be recommended and obtain the time period, date and notification channel for which the user to be recommended is suitable for push.
[0100] S5. The target data is predicted and calculated through the prediction model to obtain a target prediction value, wherein the target prediction value includes a target time period, a target date, and a target notification channel corresponding to the multidimensional vector.
[0101] Specifically, the target data of each time period, date and notification channel are sequentially input into the prediction model for prediction calculation to obtain various results. Since the larger the prediction value is, the greater the probability that the user clicks on the recommended message is. Therefore, the result with the largest value among all the results is selected as the final result, also known as the target prediction result. The target prediction result includes the target time period, target date and target notification channel.
[0102] See also Figure 8 , Figure 8 A specific implementation of step S5 is shown, which is described in detail as follows:
[0103] S51. Input the target data of each time period, date and notification channel into the prediction model in sequence for prediction calculation to obtain a set of prediction values, wherein the set of prediction values includes the prediction values corresponding to the target data of each time period, date and notification channel.
[0104] Specifically, since each user information data to be recommended is fixed, the embodiment of the present application sequentially inputs the target data consisting of each time period, date, notification channel and the user information data to be recommended into the user information data to be recommended, thereby obtaining the predicted value under each time period, date and notification channel.
[0105] S52. In the prediction value set, select the maximum prediction value corresponding to the time period, date and notification channel respectively, and combine the maximum prediction values to obtain the target prediction value.
[0106] Specifically, the larger the prediction value, the greater the possibility that the recommended information will be recommended to the recommended user and the recommended user will click on it. Therefore, the maximum prediction values corresponding to the time period, date and notification channel are selected respectively, and the maximum prediction values are combined to obtain the target prediction value.
[0107] In this embodiment, the target data of each time period, date and notification channel are sequentially input into the prediction model for prediction calculation to obtain a set of prediction values, and the maximum prediction values corresponding to the time period, date and notification channel are respectively selected, and the maximum prediction values are combined to obtain the target prediction value, so as to calculate the characteristics of each user to be recommended based on multiple dimensions and obtain the best recommendation plan for the user to be recommended, which is conducive to improving the click efficiency of the recommended information.
[0108] S6. Based on the target prediction value, the message to be recommended is pushed to the user to be recommended according to the target time period, target date and target notification channel.
[0109] Specifically, the above steps obtain the target prediction value, and the target data used for model calculation can be obtained based on the target prediction value. The target data corresponds to the user's occupational information, age, time period, date, and notification channel, so the recommendation message is pushed to the recommended user according to the time period, date and notification channel recorded in the target data.
[0110] In this embodiment, the occupational information and age information of each user are obtained by acquiring user information data and performing feature extraction on the user information data; based on a preset sequence, the occupational information, age information and preset dimensional information are vectorized to obtain initial data; based on the gradient descent method, the initial data is input into the error inverse neural network model for training to obtain a prediction model; the information data of the user to be recommended is acquired, and the user information to be recommended is vectorized to obtain target data; the target data is predicted and calculated through the prediction model to obtain a target prediction value; based on the target prediction value, the message to be recommended is pushed to the user to be recommended according to the target time period, target date and target notification channel, so as to realize feature training combining multiple dimensions such as the user's occupational information, age information, time period, date and notification channel to obtain an error inverse neural network, thereby improving the prediction accuracy of the error inverse neural network, and at the same time, the characteristics of each user to be recommended are calculated based on multiple dimensions, and the best recommendation scheme is output, which can help improve the click efficiency of the recommended information.
[0111] It should be emphasized that in order to further ensure the privacy and security of the above user information data, the above user information data can also be stored in a blockchain node.
[0112] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0113] Please refer to Fig. 9 , as a response to the above Figure 2 The present application provides an embodiment of a message recommendation device based on a neural network. Figure 2Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0114] like Fig. 9 As shown, the message recommendation device based on neural network in this embodiment includes: a user information data acquisition module 71, an initial data acquisition module 72, an initial data processing module 73, a target data acquisition module 74, a target data calculation module 75 and a to-be-recommended message push module 76, wherein:
[0115] The user information data acquisition module 71 is used to acquire user information data and perform feature extraction on the user information data to obtain occupation information and age information of each user;
[0116] The initial data acquisition module 72 is used to vectorize the occupation information, age information and preset dimension information based on a preset sequence to obtain initial data, wherein the initial data is divided into training data and verification data, and the preset dimension information includes time period, date and notification channel;
[0117] An initial data processing module 73 is used to train the error inverse neural network with the initial data based on the gradient descent method to obtain a prediction model;
[0118] The target data acquisition module 74 is used to acquire the user information data to be recommended, and perform vectorization processing on the user information data to be recommended to obtain the target data, wherein the target data includes a multi-dimensional vector of each time period, date and notification channel;
[0119] The target data calculation module 75 is used to predict and calculate the target data through the prediction model to obtain a target prediction value, wherein the target prediction value includes a target time period, a target date, and a target notification channel corresponding to the multidimensional vector;
[0120] The message to be recommended push module 76 is used to push the message to be recommended to the user to be recommended according to the target time period, target date and target notification channel based on the target prediction value.
[0121] Furthermore, the user information data acquisition module 71 includes:
[0122] A user information data extraction unit, used to obtain user information data from a database;
[0123] A user information data cleaning unit, used to clean the user information data to obtain basic data;
[0124] The occupation information conversion unit is used to extract identity information, work information and age information from basic data by using regular matching, and convert the identity information and work information into corresponding occupation information.
[0125] Furthermore, the initial data acquisition module 72 includes:
[0126] A first arrangement result generating unit, used to arrange the occupation information and notification channels in a preset order to obtain a first arrangement result;
[0127] A second arrangement result generating unit, used for arranging the age information, time period and date according to a preset level to obtain a second arrangement result, and combining the first arrangement result and the second arrangement result to obtain a preset arrangement result;
[0128] The user data comparison unit is used to compare each user data with the factors in the preset arrangement result to obtain a comparison result, and to vectorize and mark the user data according to the comparison result to obtain initial data.
[0129] Furthermore, the initial data processing module 73 includes:
[0130] A training data input unit is used to input the training data into the error inverse neural network for calculation to obtain an output value, and determine the error value based on a preset expected output and output value;
[0131] The error value adjustment unit is used to calculate the error value of the error inverse neural network model after adjustment based on the training data and the preset expected output based on the gradient descent method, and adjust the weight and bias parameters in the error inverse neural network model in combination with the error value until the error value is less than the preset value, thereby obtaining a prediction model;
[0132] The prediction model generating unit is used to re-input the training data into the adjusted error inverse neural network model for calculation based on the gradient descent method until the error value reaches a preset value to obtain the prediction model.
[0133] Furthermore, the training data input unit includes:
[0134] An initial coefficient acquisition subunit is used to obtain a preset initial weight and a preset initial bias coefficient in the error inverse neural network model;
[0135] The training data calculation subunit is used to input the training data into the input layer, hidden layer and output layer of the error inverse neural network model in sequence according to the Sigmoid function to calculate and obtain the output result of the hidden layer and the output result of the output layer;
[0136] The expected output acquisition subunit is used to obtain a preset expected output, and calculate and process the preset expected output and the output result of the output layer to obtain an error value.
[0137] Furthermore, the target data acquisition module 74 includes:
[0138] A unit for acquiring information data of users to be recommended, used for acquiring information data of users to be recommended;
[0139] The unit for obtaining the ranking result of the users to be recommended is used to arrange the information data of the users to be recommended in a preset order and sort them according to a preset level to obtain the ranking result of the users to be recommended;
[0140] The vector matching unit is used to perform vector matching between the information data of the user to be recommended and the arrangement result of the user to be recommended to obtain the target data.
[0141] Furthermore, the target data calculation module 75 includes:
[0142] A prediction value set acquisition unit, used to sequentially input the target data of each time period, date and notification channel into the prediction model for prediction calculation to obtain a prediction value set, wherein the prediction value set includes prediction values corresponding to the target data of each time period, date and notification channel;
[0143] The target prediction value determination unit is used to select the maximum prediction value corresponding to the time period, date and notification channel in the prediction value set, and combine the maximum prediction values to obtain the target prediction value.
[0144] It should be emphasized that in order to further ensure the privacy and security of the above user information data, the above user information data can also be stored in a blockchain node.
[0145] To solve the above technical problems, the present application also provides a computer device. Fig.10 , Fig.10 This is a basic structural block diagram of the computer device in this embodiment.
[0146] The computer device 8 includes a memory 81, a processor 82, and a network interface 83 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 8 having three components: a memory 81, a processor 82, and a network interface 83, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.
[0147] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.
[0148] The memory 81 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 81 can be an internal storage unit of the computer device 8, such as a hard disk or memory of the computer device 8. In other embodiments, the memory 81 can also be an external storage device of the computer device 8, such as a plug-in hard disk equipped on the computer device 8, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 81 can also include both the internal storage unit of the computer device 8 and its external storage device. In this embodiment, the memory 81 is generally used to store the operating system and various application software installed on the computer device 8, such as the program code of the message recommendation method based on the neural network, etc. In addition, the memory 81 can also be used to temporarily store various types of data that have been output or are to be output.
[0149] In some embodiments, the processor 82 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 82 is generally used to control the overall operation of the computer device 8. In this embodiment, the processor 82 is used to run the program code stored in the memory 81 or process data, such as running the program code of the above-mentioned neural network-based message recommendation method to implement various embodiments of the neural network-based message recommendation method.
[0150] The network interface 83 may include a wireless network interface or a wired network interface, and the network interface 83 is generally used to establish a communication connection between the computer device 8 and other electronic devices.
[0151] The present application also provides another implementation, namely, providing a computer-readable storage medium, which stores a computer program, and the computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the above-mentioned neural network-based message recommendation method.
[0152] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0153] The blockchain referred to in the present invention is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the blockchain underlying platform, platform product service layer, and application service layer.
[0154] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A message recommendation method based on neural network, characterized in that: include: Acquire user information data, and perform feature extraction on the user information data to obtain occupation information and age information of each user; Based on a preset sequence, the occupation information, the age information and the preset dimension information are vectorized to obtain initial data, wherein the initial data is divided into training data and verification data, and the preset dimension information includes a time period, a date and a notification channel; Based on the gradient descent method, the error inverse neural network is trained with the initial data to obtain a prediction model; Acquire user information data to be recommended, and perform vectorization processing on the user information data to be recommended to obtain target data, wherein the target data includes multi-dimensional vectors of various time periods, dates, and notification channels; The target data is predicted and calculated by the prediction model to obtain a target prediction value, wherein the target prediction value includes a target time period, a target date, and a target notification channel corresponding to the multidimensional vector; Based on the target prediction value, the message to be recommended is pushed to the user to be recommended according to the target time period, target date and target notification channel.
2. The message recommendation method based on neural network according to claim 1, characterized in that: The acquiring of user information data and feature extraction of the user information data to obtain occupation information and age information of each user include: Acquire the user information data from a database; Performing data cleaning on the user information data to obtain basic data; By adopting a regular matching method, identity information, work information and age information are extracted from the basic data, and the identity information and work information are converted into corresponding occupation information.
3. The message recommendation method based on neural network according to claim 1, characterized in that: The process of vectorizing the occupation information, the age information and the preset dimension information based on the preset sequence to obtain initial data includes: Arrange the occupation information and the notification channels in a preset order to obtain a first arrangement result; Arrange the age information, the time period, and the date according to a preset level to obtain a second arrangement result, and combine the first arrangement result and the second arrangement result to obtain a preset arrangement result; Each of the user data is compared with the factors in the preset arrangement result to obtain a comparison result, and the user data is vectorized and marked according to the comparison result to obtain the initial data.
4. The message recommendation method based on neural network according to claim 1, characterized in that: The method based on the gradient descent method trains the error inverse neural network through the initial data to obtain a prediction model, including: Inputting the training data into the error inverse neural network for calculation to obtain an output value, and determining an error value based on a preset expected output and the output value; Adjusting weights and bias parameters in the error inverse neural network model based on the error value to obtain an adjusted error inverse neural network model; Based on the gradient descent method, the error value of the error inverse neural network model after adjustment is calculated based on the training data and the preset expected output, and the weights and bias parameters in the error inverse neural network model are adjusted in combination with the error value until the error value is less than the preset value, thereby obtaining the prediction model.
5. The message recommendation method based on neural network according to claim 4, characterized in that: The step of inputting the training data into the error inverse neural network for calculation to obtain an output value, and determining an error value based on a preset expected output and the output value, comprises: Obtaining a preset initial weight and a preset initial bias coefficient in the error inverse neural network model; According to the Sigmoid function, the training data is sequentially input into the input layer, the hidden layer and the output layer of the error inverse neural network model for calculation to obtain the output result of the hidden layer and the output result of the output layer; The preset expected output is obtained, and the error value is obtained based on the preset expected output and the output result of the output layer.
6. The message recommendation method based on neural network according to claim 3, characterized in that: The obtaining of the user information data to be recommended and vectorizing the user information data to be recommended to obtain target data includes: Acquire the user information data to be recommended; Arranging the information data of the users to be recommended according to the preset order and sorting them according to the preset levels to obtain an arrangement result of the users to be recommended; Vector matching is performed between the user information data to be recommended and the arrangement result of the users to be recommended to obtain the target data.
7. The message recommendation method based on a neural network according to any one of claims 1 to 6, characterized in that: The step of performing prediction calculation on the target data by using the prediction model to obtain a target prediction value includes: Inputting the target data of each time period, date and notification channel into the prediction model in sequence to perform prediction calculation to obtain a set of prediction values, wherein the set of prediction values includes the prediction values corresponding to the target data of each time period, date and notification channel; In the prediction value set, the maximum prediction values corresponding to the time period, the date and the notification channel are respectively selected, and the maximum prediction values are combined to obtain the target prediction value.
8. A message recommendation device based on a neural network, characterized in that: include: A user information data acquisition module is used to acquire user information data and perform feature extraction on the user information data to obtain occupation information and age information of each user; An initial data acquisition module, used to vectorize the occupation information, the age information and the preset dimension information based on a preset sequence to obtain initial data, wherein the initial data is divided into training data and verification data, and the preset dimension information includes a time period, a date and a notification channel; An initial data processing module is used to train the error inverse neural network with the initial data based on the gradient descent method to obtain a prediction model; A target data acquisition module is used to acquire user information data to be recommended, and perform vectorization processing on the user information data to be recommended to obtain target data, wherein the target data includes multi-dimensional vectors of various time periods, dates and notification channels; A target data calculation module, used to perform prediction calculation on the target data through the prediction model to obtain a target prediction value, wherein the target prediction value includes a target time period, a target date, and a target notification channel corresponding to the multidimensional vector; The module for pushing the message to be recommended is used to push the message to be recommended to the user to be recommended according to the target time period, target date and target notification channel based on the target prediction value.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the message recommendation method based on a neural network as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the neural network-based message recommendation method according to any one of claims 1 to 7 is implemented.
