CN110991601B - Neural network recommendation method based on multi-user behavior - Google Patents
Neural network recommendation method based on multi-user behavior Download PDFInfo
- Publication number
- CN110991601B CN110991601B CN201911207316.7A CN201911207316A CN110991601B CN 110991601 B CN110991601 B CN 110991601B CN 201911207316 A CN201911207316 A CN 201911207316A CN 110991601 B CN110991601 B CN 110991601B
- Authority
- CN
- China
- Prior art keywords
- behavior
- user
- behaviors
- target
- matrix
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000013528 artificial neural network Methods 0.000 title claims abstract description 31
- 230000006399 behavior Effects 0.000 claims abstract description 204
- 239000011159 matrix material Substances 0.000 claims abstract description 78
- 230000001537 neural effect Effects 0.000 claims abstract description 18
- 238000005065 mining Methods 0.000 claims abstract description 14
- 238000001914 filtration Methods 0.000 claims abstract description 12
- 230000006870 function Effects 0.000 claims description 50
- 239000013598 vector Substances 0.000 claims description 19
- 238000000354 decomposition reaction Methods 0.000 claims description 12
- 230000009471 action Effects 0.000 claims description 11
- 230000007704 transition Effects 0.000 claims description 6
- 230000004913 activation Effects 0.000 claims description 3
- 230000003542 behavioural effect Effects 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000011478 gradient descent method Methods 0.000 claims description 3
- 230000002452 interceptive effect Effects 0.000 abstract 1
- 230000008859 change Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 238000012098 association analyses Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a neural network recommendation method based on multi-user behaviors, which comprises the following steps: s1, mining the relevance between non-target behaviors and target behaviors, and obtaining the confidence coefficient from the non-target behaviors to the target behaviors; s2, a neural network recommendation model based on multiple behaviors of the user is used for mining the relation between the multiple behaviors and the user preferences, wherein the relation comprises the steps of constructing a behavior feature matrix of the user and the object, applying a neural collaborative filtering model, and solving the model by using a behavior classification learning strategy based on the confidence coefficient obtained in the S1 to obtain an object recommendation list. According to the neural network recommendation method based on multi-user behaviors, firstly, user behavior data are divided according to time periods, occurrence probability from non-target behaviors to target behaviors is calculated, behavior feature matrixes of users and articles are constructed according to interactive behaviors of the users and the articles, then a neural collaborative filtering model is utilized to represent complex relations between behaviors and user favorites, and finally, a model is solved by using a strategy of behavior classification learning to obtain a recommendation list.
Description
Technical Field
The invention relates to the field of recommendation systems, in particular to a neural network recommendation method based on multi-user behaviors.
Background
There are two main types of recommendation methods based on multi-user behavior at present. One is a method of using joint matrix decomposition, in which a user is represented as a plurality of feature matrices according to different behaviors, and interactions between the user and an article are predicted by performing inner products with the feature matrices of the article. One is a method using bayesian personalized ordering, which orders items according to the relative importance of the interaction behavior of a user with a specific item, and generates a recommendation list. The main problem with the first type of approach is that it represents a linear relationship between user behavior and preferences, and it is difficult to abstract more complex nonlinear relationships. The second type of method has the main problem that the relative importance degree of interaction behavior needs to be set manually, and large errors exist.
In recent years, the development of the machine learning field provides a guide for a recommendation system. The neural network can effectively acquire nonlinear relations, a model of a recommendation method can be designed by using the neural network, and deeper and complex relations between user behaviors and preferences can be abstracted. Furthermore, there is a certain correlation between the various behaviors of the user, and the degree of this correlation may change over time, that is, the importance of a particular behavior to reflect its preferences may change. To fully account for this dynamic change, a Markov model is used in our algorithm to capture the dynamic change in the correlation between behaviors and to learn the model using a strategy of behavior classification learning as one of the parameters of the neural network model.
Disclosure of Invention
The recommendation method based on multiple users in the prior art has the following common problems: it is difficult to abstract the complex nonlinear relationship between user behavior and preference, and there is a large error in the recommendation result.
In order to solve the technical problems, the technical scheme of the invention is as follows:
the invention discloses a neural network recommendation system based on multi-user behaviors, which comprises a behavior association algorithm and a neural network recommendation model based on the multi-user behaviors;
the behavior association algorithm is used for mining the association between the target behavior and obtaining the confidence coefficient from the non-target behavior to the target behavior;
the neural network recommendation model based on the user multi-behavior is used for mining the relation between the multi-behavior and the user preference, wherein a behavior feature matrix of the user and the object is constructed, a neural collaborative filtering model is applied, the model is solved by using a behavior classification learning strategy according to the confidence coefficient obtained by a behavior association algorithm, and finally an object recommendation list is obtained.
The invention discloses a neural network recommendation method based on multi-user behaviors, which comprises the following steps:
s1, mining the relevance of non-target behaviors and target behaviors by using a behavior relevance analysis algorithm, and obtaining the confidence coefficient from the non-target behaviors to the target behaviors;
s2, a neural network recommendation model based on multiple behaviors of the user is used for mining the relation between the multiple behaviors and the user preferences, wherein the relation comprises the steps of constructing a behavior feature matrix of the user and the object, applying a neural collaborative filtering model, and solving the model by using a behavior classification learning strategy based on the confidence coefficient obtained in the S1 to obtain an object recommendation list.
In a preferred embodiment, S1 includes the following steps:
s11, using U to represent a user set, I to represent an article set, B to represent a non-target behavior set, O to represent a target behavior set, and using behavior data of the user UThe set is denoted as D u Each set of data in the dataset represents an action that the user has taken place on item i; wherein non-target behavior b j And target behavior o w The relationship between is expressed as an association rule R: b j →o w The confidence of this association is denoted as c (b j →o w ) For representation at b j In the case of occurrence, by association rule "b j →o w "occurrence of push out o w Probability of (2);
s12, association rule b j →o w Confidence sequence C of (2) jw Has the following expression form:
C jw ={c(b j →o w ) 1 ,c(b j →o w ) 2 ,…c(b j →o w ) t }
wherein b j For j-th non-target behavior, o w For the w-th target behavior, t is the current time period, c (b j →o w ) t For association rule b j →o w At data subset D ut (Is for data set D u Subsets of data divided by time period).
S13, the confidence coefficient is in the range of 0,1]The interval can be divided into n subintervals (n is a super parameter), and n integers are respectively corresponding to the interval to represent states; obtaining a confidence state sequence S according to the confidence sequence and the conversion rules jw :
S jw ={s(b j →o w ) 1 ,s(b j →o w ) 2 ,…s(b j →o w ) t };
Wherein b j For j-th non-target behavior, o w For the w-th target behavior, t is the current time period, s (b j →o w ) t For association rule b j →o w At data subset D ut (Is for data set D u Subsets of data divided by time period).
S14, calculating an association rule b by using the confidence state sequence j →o w The transition probability p of each state to any other state xy =p(s x →s y ) j Form a state transition matrix P jw :
S15, according to the confidence state sequence obtained in S13, the final state is S (b j →o w ) t The state vector is represented by single hot codeThe predicted next state vector is:
S16, letting index beSubscript corresponding to maximum value in (b), confidence state s (b) of time period t j →o w ) t+1 Index, i.e. confidence of next state c (b j →o w ) t+1 =s(b j →o w ) t+1 Corresponds to the median value of the confidence interval.
In a preferred embodiment, the specific steps at S2 are as follows:
s21, encoding IDs of the user and the article respectively by using independent thermal encoding according to a characteristic matrix P of the user and a characteristic matrix Q of the article, and constructing a behavior characteristic matrix according to the multi-behavior characteristics of the user;
s22, inputting the behavior feature matrix obtained in the step S21, and using a neural collaborative filtering algorithm to represent a learning function of the behavior;
s23, performing independent learning on non-target behaviors and performing multi-behavior learning strategies of target behavior joint learning, and generating a recommendation list for a user according to the result of the joint learning.
In a preferred embodiment, the specific step S21 is as follows:
s211, generating a user characteristic matrix P and an article characteristic matrix Q, and respectively encoding the IDs of the user and the article by using single thermal encoding to obtain M×E and N×E matrixes;
s212, adding K features to the M×E user feature matrix, wherein the K features correspond to the occurrence times of K behaviors of the user; similarly, K features are added for the N x E article feature matrix, the number of times of occurrence of K behaviors related to the article is respectively corresponding to the number of times of occurrence of K behaviors related to the article, and the sizes of the constructed user feature matrix P and the article feature matrix Q are M x (E+K) and N x (E+K) respectively;
S213.and->The unique heat encoded vectors representing user u and item i, respectively, may be obtained using the following formulas, namely, the ith row of the matrix P and the ith row of Q:
in a preferred embodiment, the output of the neural network in S22 is
Wherein the method comprises the steps ofFor a functional representation with respect to feature vectors, σ is a sigmoid function that converts the output into probabilities.
In a preferred embodiment, theThe method comprises 3 commonly used function expression methods, namely a general matrix decomposition method (GMF), a multi-layer perceptron Method (MLP) and a neural matrix decomposition method (NeuMF), and the three methods are described as follows;
the general matrix factorization method (GMF) is to add weights to each term on the result of matrix factorization:
where h represents a weight vector.
The multi-layer perceptron Method (MLP) learns by a nonlinear method:
…
z L =ReLU(W L z L-1 +b L )
wherein L represents the number of hidden layers in the multi-layer perceptron, W x And b x The weight and bias items of the x layer are respectively expressed, and the linear rectification function (ReLU) is used as an activation function by default;
the neural matrix decomposition method (NeuMF) combines GMF and MLP according to a certain weight:
where h represents a weight vector, z L Is the result of the last layer of the hidden layer obtained through MLP learning.
In a preferred embodiment, the step S23 includes the following steps:
s231, independently learning non-target behaviors;
s2311 user-item is in non-target behavior b j Is represented as a matrix Y j ,Y j The size of (2) is M×N, M is the number of users, and N is the number of articles.
S2312 Each non-target behavior b j There is an independent prediction function and loss function. b j The prediction function of (2) is as follows:
wherein the method comprises the steps ofIs the article in action b j Bias item on->Is a functional representation; />
S2313 for Single action b j Likelihood functions of (2) are as follows:
wherein Y is j + Representing a behavior matrix Y j Item 1 in (C), Y j - Representing a behavior matrix Y j An item of 0;
s2314 non-target behavior b j The loss function of (2) is as follows:
optimizing the loss function of each non-objective behavioral function independently using a stochastic gradient descent method;
s232, performing joint learning on target behaviors;
s2321, user and article are in target behavior o w Is represented as a matrix Z w ,Z w The size of (2) is M x N, M is the number of users, N is the number of articles,
s2322 for target behavior o w For that reason, consider non-target behavior and its relevance.
Wherein c jw For the confidence coefficient c (b) obtained in step S16 j →o w ) t+1 ,Is the article in behavior o w The bias term on the upper part of the table,is a functional representation;
s2323 for a single target behavior o w Likelihood functions of (2) are as follows:
wherein the method comprises the steps ofRepresenting a behavior matrix Z w Item 1 in>Representing a behavior matrix Z w An item of 0;
s2324. the joint probability function of all non-target behaviors is expressed as:
s2325, taking the negative logarithm of the probability function, the following loss function can be obtained, namely the objective function to be optimized:
wherein lambda is w For target action o w The importance of (2) can be obtained through priori knowledge;
s233, constructing a recommendation list according to the prediction results obtained in the S231 and the S232;
predicting the probability of target behavior occurrence according to the previous stepWeighting the likelihood of all target behaviors may reflect the preference of user u for item i: />
And after the R values of all the articles are ranked from large to small, recommending the articles ranked in front to the user.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that:
the behavior association analysis algorithm provided by the invention is an association analysis algorithm based on a Markov model, the user behavior data is divided according to time periods, and the occurrence probability from non-target behavior to target behavior is calculated. In the multi-behavior neural network recommendation model, the interaction behaviors of the user and the article are considered, a behavior feature matrix of the user and the article is constructed, and the complex nonlinear relation between the user behavior and the preference is represented by utilizing neural collaborative filtering. Solving the model by using a strategy of behavior classification learning: and for the target behavior, the influence of the non-target behavior is considered, and the joint learning is performed.
Drawings
FIG. 1 is a flow chart of the steps of the present invention;
fig. 2 is a schematic diagram of a neural network recommendation model in example 2.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the present patent;
for the purpose of better illustrating the embodiments, certain elements of the drawings may be omitted, enlarged or reduced and do not represent the actual product dimensions;
it will be appreciated by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The technical scheme of the invention is further described below with reference to the accompanying drawings and examples.
Example 1
The first aspect of the invention discloses a neural network recommendation system based on multi-user behaviors, as shown in fig. 1, comprising a behavior association algorithm and a neural network recommendation model based on the multi-user behaviors;
the behavior association algorithm is used for mining the association between the target behavior and obtaining the confidence coefficient from the non-target behavior to the target behavior;
the neural network recommendation model based on the user multi-behavior is used for mining the relation between the multi-behavior and the user preference, wherein a behavior feature matrix of the user and the object is constructed, a neural collaborative filtering model is applied, the model is solved by using a behavior classification learning strategy according to the confidence coefficient obtained by a behavior association algorithm, and finally an object recommendation list is obtained.
Example 2
The invention discloses a neural network recommendation method based on multi-user behaviors, which comprises the following steps:
s1, mining the relevance of non-target behaviors and target behaviors by using a behavior relevance analysis algorithm, and obtaining the confidence coefficient from the non-target behaviors to the target behaviors;
s2, as shown in FIG. 2, a neural network recommendation model based on multiple behaviors of a user is used for mining the relation between the multiple behaviors and user preferences, wherein the relation comprises the steps of constructing a behavior feature matrix of the user and the object, applying a neural collaborative filtering model, and solving the model by using a behavior classification learning strategy based on the confidence coefficient obtained in S1 to obtain an object recommendation list.
In a preferred embodiment, S1 includes the following steps:
s11, using U to represent a user set, I to represent an article set, B to represent a non-target behavior set, O to represent a target behavior set, and using the behavior data set of the user U as D u Each set of data in the dataset represents an action that the user has taken place on item i; wherein non-target behavior b j And target behavior o w The relationship between is expressed as an association rule R: b j →o w The confidence of this association is denoted as c (b j →o w ) For representation at b j In the case of occurrence, by association rule "b j →o w "occurrence of push out o w Probability of (2);
s12, association rule b j →o w Confidence sequence C of (2) jw Has the following expression form:
C jw ={c(b j →o w ) 1 ,c(b j →o w ) 2 ,…c(b j →o w ) t }
wherein b j For j-th non-target behavior, o w For the w-th target behavior, t is the current time period, c (b j →o w ) t For association rule b j →o w At data subset D ut (Is for data set D u Subsets of data divided by time period).
S13, the confidence coefficient is in the range of 0,1]The interval can be divided into n subintervals (n is a super parameter), and n integers are respectively corresponding to the interval to represent states; obtaining a confidence state sequence S according to the confidence sequence and the conversion rules jw :
S jw ={s(b j →o w ) 1 ,s(b j →o w ) 2 ,…s(b j →o w ) t };
Wherein b j For j-th non-target behavior, o w For the w-th target behavior, t is the current time period, s (b j →o w ) t For association rule b j →o w At data subset D ut (Is for data set D u Subsets of data divided by time period).
S14, calculating an association rule b by using the confidence state sequence j →o w The transition probability p of each state to any other state xy =p(s x →s y ) j Form a state transition matrix P jw :
S15, according to the confidence state sequence obtained in S13, the final state is S (b j →o w ) t The state vector is represented by single hot codeThe predicted next state vector is:
S16, letting index beSubscript corresponding to maximum value in (b), confidence state s (b) of time period t j →o w ) t+1 Index, i.e. confidence of next state c (b j →o w ) t+1 =s(b j →o w ) t+1 Corresponds to the median value of the confidence interval.
In a preferred embodiment, the specific steps at S2 are as follows:
s21, encoding IDs of the user and the article respectively by using independent thermal encoding according to a characteristic matrix P of the user and a characteristic matrix Q of the article, and constructing a behavior characteristic matrix according to the multi-behavior characteristics of the user;
s22, inputting the behavior feature matrix obtained in the step S21, and using a neural collaborative filtering algorithm to represent a learning function of the behavior;
s23, performing independent learning on non-target behaviors and performing multi-behavior learning strategies of target behavior joint learning, and generating a recommendation list for a user according to the result of the joint learning.
In a preferred embodiment, the specific step S21 is as follows:
s211, generating a user characteristic matrix P and an article characteristic matrix Q, and respectively encoding the IDs of the user and the article by using single thermal encoding to obtain M×E and N×E matrixes;
s212, adding K features to the M×E user feature matrix, wherein the K features correspond to the occurrence times of K behaviors of the user; similarly, K features are added for the N x E article feature matrix, the number of times of occurrence of K behaviors related to the article is respectively corresponding to the number of times of occurrence of K behaviors related to the article, and the sizes of the constructed user feature matrix P and the article feature matrix Q are M x (E+K) and N x (E+K) respectively;
S213.and->The unique heat encoded vectors representing user u and item i, respectively, may be obtained using the following formulas, namely, the ith row of the matrix P and the ith row of Q:
in a preferred embodiment, the output of the neural network in S22 is
Wherein the method comprises the steps ofFor a functional representation with respect to feature vectors, σ is a sigmoid function that converts the output into probabilities.
In a preferred embodiment, theThe method comprises 3 commonly used function expression methods, namely a general matrix decomposition method, a multi-layer perceptron method and a neural matrix decomposition method, and the three methods are briefly introduced as follows:
the general matrix decomposition method is to add weights to each term on the result of matrix decomposition:
where h represents a weight vector.
The multi-layer perceptron method is to learn by a nonlinear method:
…
z L =ReLU(W L z L-1 +b L )
wherein L represents the number of hidden layers in the multi-layer perceptron, W x And b x The weight and the bias item of the x layer are respectively expressed, and the linear rectification function is used as the activation function by default;
the neural matrix decomposition combines the GMF and the MLP according to a certain weight:
where h represents a weight vector, z L Is the result of the last layer of the hidden layer obtained through MLP learning.
In a preferred embodiment, the step S23 includes the following steps:
s231, independently learning non-target behaviors;
s2311 user-item is in non-target behavior b j Is represented as a matrix Y j ,Y j The size of (2) is M×N, M is the number of users, and N is the number of articles.
S2312 Each non-target behavior b j There is an independent prediction function and loss function. b j The prediction function of (2) is as follows:
wherein the method comprises the steps ofIs the article in action b j Bias item on->Is a functional representation;
s2313 for Single action b j Likelihood functions of (2) are as follows:
wherein Y is j + Representing a behavior matrix Y j Item 1 in (C), Y j - Representing a behavior matrix Y j An item of 0;
s2314 non-target behavior b j The loss function of (2) is as follows:
optimizing the loss function of each non-objective behavioral function independently using a stochastic gradient descent method;
s232, performing joint learning on target behaviors;
s2321, user and article are in target behavior o w Is represented as a matrix Z w ,Z w The size of (2) is M x N, M is the number of users, N is the number of articles,
s2322 for target behavior o w For that reason, consider non-target behavior and its relevance.
Wherein c jw For the confidence coefficient c (b) obtained in step S16 j →o w ) t+1 ,Is the article in behavior o w The bias term on the upper part of the table,is a functional representation;
s2323 for a single target behavior o w Likelihood functions of (2) are as follows:
wherein the method comprises the steps ofRepresenting a behavior matrix Z w Item 1 in>Representing a behavior matrix Z w An item of 0;
s2324. the joint probability function of all non-target behaviors is expressed as:
s2325, taking the negative logarithm of the probability function, the following loss function can be obtained, namely the objective function to be optimized:
wherein lambda is w For target action o w The importance of (2) can be obtained through priori knowledge;
s233, constructing a recommendation list according to the prediction results obtained in the S231 and the S232;
predicting the probability of target behavior occurrence according to the previous stepWeighting the likelihood of all target behaviors may reflect the preference of user u for item i: />
And after the R values of all the articles are ranked from large to small, recommending the articles ranked in front to the user.
The terms describing the positional relationship in the drawings are merely illustrative, and are not to be construed as limiting the present patent;
it is to be understood that the above examples of the present invention are provided by way of illustration only and not by way of limitation of the embodiments of the present invention. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are desired to be protected by the following claims.
Claims (4)
1. The neural network recommendation method based on multi-user behavior is characterized by comprising the following steps of:
s1, mining the relevance of non-target behaviors and target behaviors by using a behavior relevance analysis algorithm, and obtaining the confidence coefficient from the non-target behaviors to the target behaviors; the method comprises the following specific steps:
s11, using U to represent a user set, I to represent an article set, B to represent a non-target behavior set, O to represent a target behavior set, and using the behavior data set of the user U as D u Data setRepresenting the behaviour of the user on item i; wherein non-target behavior b j And target behavior o w The relationship between is expressed as an association rule R: b j →o w The confidence of this association is denoted as c (b j →o w ) For representation at b j In the case of occurrence, by association rule "b j →o w "occurrence of push out o w Probability of (2);
s12, association rule b j →o w Confidence sequence C of (2) jw Has the following expression form:
C jw ={c(b j →o w ) 1 ,c(b j →o w ) 2 ,…c(b j →o w ) t }
wherein b j For j-th non-target behavior, o w For the w-th target behavior, t is the current time period, c (b j →o w ) t For association rule b j →o w At data subset D ut Confidence in (c); wherein the method comprises the steps ofIs for data set D u Data subsets divided by time period;
s13, the confidence coefficient is in the range of 0,1]Dividing the interval into n subintervals, wherein n is a super parameter and corresponds to n integers respectively for representing states; obtaining a confidence state sequence S according to the confidence sequence and the conversion rules jw :
S jw ={s(b j →o w ) 1 ,s(b j →o w ) 2 ,…s(b j →o w ) t };
Wherein s (b) j →o w ) t For association rule b j →o w At data subset D ut Confidence state in (c);
s14, calculating an association rule b by using the confidence state sequence j →o w The transition probability p of each state to any other state xy =p(s x →s y ) j Form a state transition matrix P jw :
S15, according to the confidence state sequence obtained in S13, the final state is S (b j →o w ) t The state vector is represented by single hot codeThe predicted next state vector is:
S16, letting index beSubscript corresponding to maximum value in (b), confidence state s (b) of time period t j →o w ) t+1 Index, i.e. confidence of next state c (b j →o w ) t+1 =s(b j →o w ) t+1 A median value of the corresponding confidence intervals;
s2, mining the relation between the multiple behaviors and the user preferences by using a neural network recommendation model based on the multiple behaviors of the user, wherein the method comprises the steps of constructing a behavior feature matrix of the user and the object, applying a neural collaborative filtering model, and solving the model by using a behavior classification learning strategy based on the confidence coefficient obtained in the S1 to obtain an object recommendation list; the method comprises the following specific steps:
s21, encoding IDs of the user and the article respectively by using independent thermal encoding according to a characteristic matrix P of the user and a characteristic matrix Q of the article, and constructing a behavior characteristic matrix according to the multi-behavior characteristics of the user; wherein:
s211, generating a user characteristic matrix P and an article characteristic matrix Q, and respectively encoding the IDs of the user and the article by using single thermal encoding to obtain M×E and N×E matrixes;
s212, adding K features to the M×E user feature matrix, wherein the K features correspond to the occurrence times of K behaviors of the user; similarly, K features are added for the N x E article feature matrix, the number of times of occurrence of K behaviors related to the article is respectively corresponding to the number of times of occurrence of K behaviors related to the article, and the sizes of the constructed user feature matrix P and the article feature matrix Q are M x (E+K) and N x (E+K) respectively;
S213.and->The unique heat coded vectors representing user u and item i, respectively, are used to obtain the corresponding feature vectors, i.e., the ith row of the matrix P and the ith row of Q, using the following formula: />
S22, inputting the behavior feature matrix obtained in the step S21, and using a neural collaborative filtering algorithm to represent a learning function of the behavior;
s23, performing independent learning on non-target behaviors and performing multi-behavior learning strategies of target behavior joint learning, and generating a recommendation list for a user according to the result of the joint learning; wherein:
s231, independently learning non-target behaviors;
s2311 user-item is in non-target behavior b j Is represented as a matrix Y j ,Y j The size of (2) is M multiplied by N, M is the number of users, and N is the number of articles;
s2312 Each non-target behavior b j All have independent prediction and loss functions, b j The prediction function of (2) is as follows:
wherein the method comprises the steps ofIs the article in action b j Bias item on->Is a functional representation;
s2313 for Single action b j Likelihood functions of (2) are as follows:
wherein the method comprises the steps ofRepresenting a behavior matrix Y j Item 1 in>Representing a behavior matrix Y j An item of 0;
s2314 non-target behavior b j The loss function of (2) is as follows:
optimizing the loss function of each non-objective behavioral function independently using a stochastic gradient descent method;
s232, performing joint learning on target behaviors;
s2321. To be usedUser and article in target behavior o w Is represented as a matrix Z w ,Z w The size of (2) is M x N, M is the number of users, N is the number of articles,
s2322 for target behavior o w For the sake of this, consider non-target behavior and its relevance;
wherein c jw For the confidence coefficient c (b) obtained in step S16 j →o w ) t+1 ,Is the article in behavior o w Bias item on->Is a functional representation;
s2323 for a single target behavior o w Likelihood functions of (2) are as follows:
wherein the method comprises the steps ofRepresenting a behavior matrix Z w Item 1 in>Representing a behavior matrix Z w An item of 0;
s2324. the joint probability function of all non-target behaviors is expressed as:
s2325, taking the negative logarithm of the probability function, obtaining the following loss function, namely an objective function to be optimized:
wherein lambda is w For target action o w The importance of (2) is obtained through priori knowledge;
s233, constructing a recommendation list according to the prediction results obtained in the S231 and the S232;
predicting the probability of target behavior occurrence according to the previous stepWeighting the likelihood of all target behaviors may reflect the preference of user u for item i:
and after the R values of all the articles are ranked from large to small, recommending the articles ranked in front to the user.
2. The neural network recommendation method based on multi-user behavior according to claim 1, wherein the output of the neural network in S22 is
3. The neural network recommendation method based on multi-user behavior according to claim 2, wherein the following steps are performedComprising 3 commonly used function representation methods, namely a general matrix decomposition method (GMF), a multi-layer perceptron Method (MLP) and a neural matrix decomposition method (NeuMF), which are described below,
the general matrix factorization method (GMF) is to add weights to each term on the result of matrix factorization:
wherein h represents a weight vector;
the multi-layer perceptron Method (MLP) learns by a nonlinear method:
…
z L =ReLU(W L z L-1 +b L )
wherein L represents the number of hidden layers in the multi-layer perceptron, W x And b x The weight and the bias item of the x layer are respectively expressed, and the linear rectification function is used as the activation function by default;
the neural matrix decomposition method (NeuMF) combines GMF and MLP according to a certain weight:
where h represents a weight vector, z L Is the result of the last layer of the hidden layer obtained through MLP learning.
4. A neural network recommendation system based on multi-user behaviors, which is applied to the neural network recommendation method based on multi-user behaviors as claimed in any one of claims 1 to 3, and is characterized by comprising a behavior association algorithm and a neural network recommendation model based on multi-user behaviors;
the behavior association algorithm is used for mining the association between the target behavior and obtaining the confidence coefficient from the non-target behavior to the target behavior;
the neural network recommendation model based on the user multi-behavior is used for mining the relation between the multi-behavior and the user preference, wherein a behavior feature matrix of the user and the object is constructed, a neural collaborative filtering model is applied, the model is solved by using a behavior classification learning strategy according to the confidence coefficient obtained by a behavior association algorithm, and finally an object recommendation list is obtained.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911207316.7A CN110991601B (en) | 2019-11-29 | 2019-11-29 | Neural network recommendation method based on multi-user behavior |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911207316.7A CN110991601B (en) | 2019-11-29 | 2019-11-29 | Neural network recommendation method based on multi-user behavior |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110991601A CN110991601A (en) | 2020-04-10 |
CN110991601B true CN110991601B (en) | 2023-04-21 |
Family
ID=70088764
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911207316.7A Active CN110991601B (en) | 2019-11-29 | 2019-11-29 | Neural network recommendation method based on multi-user behavior |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110991601B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111523044B (en) * | 2020-07-06 | 2020-10-23 | 南京梦饷网络科技有限公司 | Method, computing device, and computer storage medium for recommending target objects |
CN113763075B (en) * | 2020-07-17 | 2024-08-20 | 北京沃东天骏信息技术有限公司 | Method, device, equipment and medium for pushing articles |
CN111859155B (en) * | 2020-08-04 | 2024-08-13 | 深圳前海微众银行股份有限公司 | Item recommendation method, device and computer readable storage medium |
CN114630185B (en) * | 2020-12-11 | 2024-05-07 | 江西省众灿互动科技股份有限公司 | Target user identification method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109446413A (en) * | 2018-09-25 | 2019-03-08 | 上海交通大学 | Serializing recommended method based on item associations relationship |
CN109522474A (en) * | 2018-10-19 | 2019-03-26 | 上海交通大学 | Recommended method based on interaction sequence data mining depth user's similitude |
CN110188283A (en) * | 2019-06-05 | 2019-08-30 | 中国人民解放军国防科技大学 | Information recommendation method and system based on joint neural network collaborative filtering |
-
2019
- 2019-11-29 CN CN201911207316.7A patent/CN110991601B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109446413A (en) * | 2018-09-25 | 2019-03-08 | 上海交通大学 | Serializing recommended method based on item associations relationship |
CN109522474A (en) * | 2018-10-19 | 2019-03-26 | 上海交通大学 | Recommended method based on interaction sequence data mining depth user's similitude |
CN110188283A (en) * | 2019-06-05 | 2019-08-30 | 中国人民解放军国防科技大学 | Information recommendation method and system based on joint neural network collaborative filtering |
Also Published As
Publication number | Publication date |
---|---|
CN110991601A (en) | 2020-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112598462B (en) | Personalized recommendation method and system based on collaborative filtering and deep learning | |
CN110991601B (en) | Neural network recommendation method based on multi-user behavior | |
Sun et al. | What and how: generalized lifelong spectral clustering via dual memory | |
CN109299396B (en) | Convolutional neural network collaborative filtering recommendation method and system fusing attention model | |
CN110717098B (en) | Meta-path-based context-aware user modeling method and sequence recommendation method | |
Karatzoglou et al. | Multiverse recommendation: n-dimensional tensor factorization for context-aware collaborative filtering | |
Ortega et al. | Recommending items to group of users using matrix factorization based collaborative filtering | |
Chen et al. | Efficient ant colony optimization for image feature selection | |
CN110781409B (en) | Article recommendation method based on collaborative filtering | |
CN111737578A (en) | Recommendation method and system | |
CN114357312B (en) | Community discovery method and personality recommendation method based on graph neural network automatic modeling | |
CN113033090A (en) | Push model training method, data push device and storage medium | |
CN114298783A (en) | Commodity recommendation method and system based on matrix decomposition and fusion of user social information | |
Zhou et al. | Manifold optimization-assisted Gaussian variational approximation | |
CN117252665A (en) | Service recommendation method and device, electronic equipment and storage medium | |
CN114565436B (en) | Vehicle model recommendation system, method, equipment and storage medium based on time sequence modeling | |
CN118246939A (en) | Method and system for processing DeepFM model browsing data based on attention mechanism | |
CN117235375A (en) | User multi-behavior recommendation method based on graphic neural network and element learning | |
Ibrahim et al. | Recommender systems: algorithms, evaluation and limitations | |
CN115455286A (en) | Self-attention recommendation method, device and equipment based on data blood margin characteristics and behavior semantic characteristics | |
Gao | $ Ae^ 2I $: A Double Autoencoder for Imputation of Missing Values | |
Zhang et al. | High-order factorization machine based on cross weights network for recommendation | |
Patil et al. | Comparison of different music recommendation system algorithms | |
Kumar et al. | Deep scalable and distributed restricted boltzmann machine for recommendations | |
CN114117191A (en) | Context-aware recommendation method based on deep neural network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |