Item recommendation method based on latent factor model with time series drift

Through the latent factor model based on temporal drift, a temporal drift matrix decomposition model and a joint objective function are constructed to capture user temporal changes, solving the problem that existing recommendation systems are difficult to capture dynamic changes in user preferences, and achieving better recommendation effects.

CN114491095BActive Publication Date: 2024-10-01NANJING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210054508.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2024-10-01
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

It is difficult for existing recommendation systems to effectively capture the temporal dynamic changes in user preferences and the impact of past behavior on current behavior. In particular, the topic factors of the content provided by reviewers cannot be revealed in multi-modal data, resulting in poor recommendation results.

Method used

Using a latent factor model based on temporal drift, by constructing a temporal drift matrix decomposition model and a joint objective function, and introducing auxiliary transfer matrices and time influence factors, we can capture the evolutionary relationship between users in two periods and balance the impact of current and past behaviors. Make project recommendations.

Benefits of technology

In the experimental data set, compared with the baseline method, the accuracy and recall rate of recommendations are significantly improved, and the dynamic changes in user time series can be better captured, which improves the performance of the recommendation system, especially when dealing with user time series dynamic preference issues. on other models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114491095B_ABST
    Figure CN114491095B_ABST
Patent Text Reader

Abstract

The method for recommending items based on the latent factor model of temporal drift collects the historical information of the items to be recommended, constructs the temporal drift matrix decomposition model and the temporal drift joint objective function, solves the joint objective function to obtain the temporal drift matrix decomposition model, and inputs the user information to make item recommendations. The present invention considers and combines the evolution of the user's temporal dynamic preferences and the influence of the user's past behavior on the current behavior to model, captures the evolution relationship between the two periods of the user by constructing an auxiliary matrix, introduces the time influence factor to balance the influence of the current and past behaviors, and achieves better simulation recommendation effects in the comparison test with the baseline method in three experimental data sets, to illustrate that the present invention has superior effectiveness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of multimedia information processing, and in particular relates to a method for recommending items based on a latent factor model of temporal drift. Background Art

[0002] With the development of the big data era, recommendation systems play a vital role in life. In recommendation systems, users with similar activity information are often recommended, including explicit information (such as rating or tagging behavior, etc.) and implicit information (temporal behavior characteristics, etc.). Implicit information is often the most critical because it has a larger amount of implicit information and can better reflect the detailed behavioral relationship of users. In actual environments, user preferences also evolve implicitly over time. To solve this problem, Vaca et al. proposed collective matrix decomposition to model the online topic discovery problem in "A Time-based Collective Factorization for Topic Discovery and Monitoring in News" published in "International Conference on World Wide Web." in 2014. An adaptive non-negative matrix factorization (NMF) method was used, which captures the interest conversion between two time periods by mapping matrices to jointly obtain topic evolution. However, this model only focuses on topic discovery of news and cannot be run on conventional recommendation systems. Rafailidis et al. proposed a recommendation scheme to reduce data sparsity by combining multimodal information with scores in "Preference Dynamics with Multimodal User-Item Interactions in Social Media Recommendation" published in "Expert Systems with Applications" in 2017. The model also considers multimodal data to explain the scores at each time step, but this data cannot reveal the content topic factors provided by the reviewer. Summary of the invention

[0003] In order to solve the deficiencies in the prior art, the present invention aims to provide a latent factor model recommendation method based on time series drift.

[0004] The present invention adopts the following technical solution:

[0005] The method for recommending items based on the latent factor model with time series drift includes the following steps:

[0006] Step 1: Collect historical information of the items to be recommended;

[0007] Step 2: construct a time series drift matrix decomposition model based on the collected historical information;

[0008] Step 3, constructing a timing drift joint objective function based on the timing drift matrix decomposition model;

[0009] Step 4, after solving the joint objective function constructed in step 3, a time series drift matrix decomposition model is obtained, and item recommendations can be made after inputting user information.

[0010] In step 1, the historical information includes the user information and the rating information of the project;

[0011] User information includes time information of user behavior; time information of user behavior includes the time users browsed these items on the Amazon website, the time of collecting, the time of adding to the shopping cart, and the time of checkout;

[0012] The rating range is an integer from 1 to 5 points, and the data with the number of user ratings less than or equal to 1 in the dataset are filtered out.

[0013] In step 2, the time series drift matrix decomposition model transforms each user u i The user potential factor matrix at time t And the user potential factor matrix at time tT In conjunction with this, an auxiliary transfer matrix is ​​defined between times t and tT Represents the current user's latent factor matrix The user potential factor matrix at available time tT Through the auxiliary transfer matrix After the transfer, it is indicated;

[0014] Current user latent factor matrix Contains user information for each item at time t; item latent factor matrix Contains the item rating information for each item at time t.

[0015] The constructed timing drift matrix decomposition model satisfies the following relationship:

[0016]

[0017] in, represents n-dimensional real number space, represents the rating matrix at the current time t, Represents the rating matrix R (t) It consists of i×j-dimensional real numbers; Represents the target matrix R at time t (t) The user latent factor matrix, Represents the potential factor matrix of potential users It consists of i×l-dimensional real numbers; Represents the target matrix R at time tT (t) The user latent factor matrix; Represents the target matrix R at time t (t) The latent factor matrix of the items, Represents the item latent factor matrix It consists of l×j-dimensional real numbers; express and Auxiliary transformation matrix between .

[0018] Define the score matrix R corresponding to time t and time tT respectively (t) and R (t-1) The minimization problem is:

[0019]

[0020]

[0021] in, represents the Frobenius norm.

[0022] Introducing the time influence factor α, we get the joint minimization problem:

[0023]

[0024] Among them, 0<α<1,

[0025] The joint minimization problem is solved to obtain the joint objective function of timing drift, which satisfies the following relationship:

[0026]

[0027] in, Indicates that the error between the predicted data and the actual data is minimized. represents the minimization of the conversion prediction error of the user's latent factor matrix obtained at time t-1; U (t-T) The decomposition bias of control, γ1, γ2 are the influencing adjustment parameters. The higher the γ1 value, the better the model is. Prefer auxiliary matrix Its influence; ||·||1 represents the L1 norm.

[0028] Solving the timing drift joint objective function using the first-order necessary condition equality constraint yields the following relationship:

[0029]

[0030]

[0031]

[0032] The symbol ⊙ represents the product of the corresponding position elements of two matrices. The symbols represent the gradient of the loss function for each parameter.

[0033] as well as The update rule for the gradient is:

[0034]

[0035]

[0036]

[0037] Said The update rule is:

[0038]

[0039] The update rule is:

[0040]

[0041] The update rule is:

[0042]

[0043] The beneficial effect of the present invention is that, compared with the prior art, the present invention takes into account and combines the user's temporal dynamic preference evolution and the influence of the user's past behavior on the current behavior to model, captures the evolution relationship between the user's two periods by constructing an auxiliary matrix, introduces a time influence factor to balance the influence of current and past behaviors, and achieves better simulation recommendation effects in three experimental data sets and comparative tests with the baseline method, indicating that the present invention is effective. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic diagram of a latent factor decomposition model based on time series drift proposed by the present invention;

[0045] Figure 2 This is a schematic diagram of the relationship between the value of the time impact factor α and the accuracy index of the present invention;

[0046] Figure 3 This is a schematic diagram showing the comparison of NDCG indicators between the model of the present invention and each baseline model in different TopNs;

[0047] Figure 4 Schematic diagram of the comparison of accuracy indicators of the model of the present invention and each baseline model in different TopN. DETAILED DESCRIPTION

[0048] The present application is further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present application.

[0049] The latent factor model recommendation method based on time series drift includes the following steps:

[0050] Step 1: Collect historical information of the items to be recommended;

[0051] The historical information includes the user information and the rating information of the project. In the present invention, the Amazon data set collected from Stanford University in the United States is selected, which includes the user information and the rating of the project of home appliances, books and computer games.

[0052] User information includes time information of user behavior; time information of user behavior includes the time users browsed these items on the Amazon website, the time of collecting, the time of adding to the shopping cart, and the time of rating;

[0053] The rating range is an integer from 1 to 5 points, and the data with a user rating number less than or equal to 1 in the data set are filtered out;

[0054] The specific data are shown in Table 1:

[0055] Table 1 Data scale used in the embodiment of the present invention

[0056]

[0057] Step 2: construct a time series drift matrix decomposition model based on the collected historical information;

[0058] First, construct a data matrix, which includes the user's latent factor matrix And the item latent factor matrix User latent factor matrix Contains user information for each item at time t; item latent factor matrix Contains the project rating information for each project at time t;

[0059] like Figure 1 The figure shows a schematic diagram of the time series drift matrix decomposition model. The model considers each user u i The user potential factor matrix at time t And the user potential factor matrix at time tT Taking into account the relationship between t and tT, an auxiliary transfer matrix is ​​defined between Represents the current user's latent factor matrix Available past user latent factor matrix Through the auxiliary transfer matrix After the transfer, it is expressed; on the other hand, according to the length of the time interval to time t, it is considered to introduce the influence factor to express the time influence on the user feature factor matrix at different times;

[0060] The constructed timing drift matrix decomposition model satisfies the following relationship:

[0061]

[0062] in, represents n-dimensional real number space, represents the rating matrix at the current time t, Represents the rating matrix R (t) It consists of i×j-dimensional real numbers; Represents the target matrix R at time t (t) The user latent factor matrix, Represents the user latent factor matrix It consists of i×l-dimensional real numbers; Represents the target matrix R at time tT (t) The user latent factor matrix; Represents the target matrix R at time t (t) The latent factor matrix of the items, Represents the item latent factor matrix It consists of l×j-dimensional real numbers; express and Auxiliary transformation matrix between, used to capture and The temporal change relationship between multiple potential users' potential factors

[0063] Step 3, constructing a timing drift joint objective function based on the timing drift matrix decomposition model;

[0064] First, define the score matrix R corresponding to time t and time tT respectively (t) and R (t-1) The minimization problem is:

[0065]

[0066]

[0067] in, represents the Frobenius norm;

[0068] Introducing the time influence factor α (0<α<1) into the above formula, it is transformed into a joint minimization problem:

[0069]

[0070] in,

[0071] The time impact factor α is used to balance the time decay effect of user ratings. The present invention sets the adjustment parameters γ1 and γ2 to 0.5, and adjusts the value of α to compare the effect. The value range of the time interval parameter T is 24 months. The value range of the impact factor α is 0.05 to 1.0, with a step of 0.05. The results are as follows: Figure 2 As shown in the figure, it can be seen that when α increases, the performance gradually improves, but when α exceeds 0.55, the accuracy begins to decrease. This result shows that if α is too large or too small, the accuracy is low and the user preference cannot be accurately predicted. Therefore, the optimal value of the performance is when α = 0.55, which means that the user's recent preference has a greater impact.

[0072] In this embodiment, the objective function for solving the joint minimization problem is:

[0073]

[0074] Indicates that the error between the predicted data and the actual data is minimized. represents the minimization of the conversion prediction error of the user's latent factor matrix obtained at time t-1; U (t-T) The decomposition bias of control, γ1, γ2 are the influencing adjustment parameters. The higher the γ1 value, the better the model is. Prefer auxiliary matrix Influence on it; ||·||1 represents the L1 norm; considering the complexity of simplifying the algorithm implementation, the present invention sets the model adjustment parameter γ1=γ2;

[0075] Preferably, γ1 and γ2 are both set to 0.5;

[0076] Step 4: After solving the joint objective function constructed in step 3, a time series drift matrix decomposition model is obtained, and project recommendations can be made after inputting user information;

[0077] Those skilled in the art can use existing calculation models or commercial solution software to solve the problem. The method provided in this embodiment is only a preferred solution and cannot be an inevitable constraint of the present invention.

[0078] Solving the optimization problem according to the first-order necessary condition equality constraints, we get the following relationship:

[0079]

[0080]

[0081]

[0082] The symbol ⊙ represents the product of the corresponding position elements of two matrices. The symbol represents the gradient of the loss function of each parameter. The gradient of the loss function of each parameter satisfies the following relationship:

[0083]

[0084]

[0085]

[0086] in, The update rule is:

[0087]

[0088] The update rule is:

[0089]

[0090] The update rule is:

[0091]

[0092] In order to determine the relationship between the model and the recommended number, the present invention sets the number of potential factors to 20 and increases the recommended number from 100 to 500 in steps of 100. Figure 3 and Figure 4 The performance of different recommendation methods in terms of NDCG and accuracy are shown respectively. It can be seen that in different Top-N recommendations, the TDMF model proposed in this invention outperforms all other baseline models, indicating that it has a strong ability in dealing with user temporal dynamic preference problems.

[0093] The present invention uses NDCG (Normalized Discounted Cummulative Gain), precision P, recall rate Recall and F1 value as the main experimental evaluation indicators, and the definitions of each indicator are as follows:

[0094] NDCG stands for Normalized Discounted Cumulative Gain. The definition of NDCG@N in the top N recommendation results is as follows:

[0095]

[0096] Among them, b i If item i is in the recommended result set, it is 1, otherwise it is 0; IDCG@N is defined as follows:

[0097]

[0098] IDCG@N represents the most relevant list of recommended results in an ideal situation, that is, the top N results are sorted in descending order of recommendation relevance. Therefore, the higher the relevance of the recommended results, the greater the NDCG value.

[0099] Classify items based on whether the user is interested in purchasing them. Assuming that the recommendation system provides a recommendation list containing N items for the target user, the accuracy is defined as follows:

[0100]

[0101] BUY is the set of products purchased by the target user in the test set, ALL is the recommendation list of all N products in the recommendation list, and |ALL∩BUY| is the number of product intersections between ALL and BUY.

[0102] Recall is the ratio of the number of related items returned in the TopN position to the number of related items actually returned, as shown below:

[0103]

[0104] The F1 value is an overall evaluation of the precision and recall rate, which can prevent the situation where one indicator is too high and the other is too low. Its definition is as follows:

[0105]

[0106] Table 1 provides a more detailed analysis of the dataset. The performance indicators of R@N, P@N, F1@N and NDCG@N (N=100 and 200) of each model are shown in Table 1. Among the baseline methods, the TDMF model in this paper has the best performance in each indicator. Therefore, compared with other time series methods, this method can better capture the time series dynamic changes of identifying user preferences. In addition, unlike the auxiliary conversion matrix used by TCMF, the auxiliary matrix in this paper is trained separately for each user feature factor, so this method can better extract user personalized features. Therefore, recommendation can be achieved by combining the latent factor decomposition of user time series features.

[0107] Table 1: Comparison of detailed indicators between the proposed model and the baseline models

[0108]

[0109] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

Claims

1. A method for recommending items based on a latent factor model with time series drift, characterized in that: The method comprises: Step 1: Collect historical information of the recommended items, including user information and rating information of the items; User information includes time information of user behavior; time information of user behavior includes the time users browsed these items on the Amazon website, the time of collecting, the time of adding to the shopping cart, and the time of checkout; The rating range is an integer from 1 to 5 points, and the data with a user rating number less than or equal to 1 in the data set are filtered out; Step 2: construct a time series drift matrix decomposition model based on the collected historical information; The constructed time series drift matrix decomposition model satisfies the following relationship: in, represents n-dimensional real number space, represents the rating matrix at the current time t, Represents the rating matrix R (t) It consists of i×j-dimensional real numbers; Represents the target matrix R at time t (t) The user latent factor matrix, Represents the potential factor matrix of potential users It consists of i×l-dimensional real numbers; Represents the target matrix R at time tT (t) The user latent factor matrix; Represents the target matrix R at time t (t) The latent factor matrix of the items, Represents the item latent factor matrix It consists of l×j-dimensional real numbers; express and Auxiliary transformation matrix between ; Step 3, constructing a timing drift joint objective function based on the timing drift matrix decomposition model; Define the score matrix R corresponding to time t and time tT respectively (t) and R (t-T) The minimization problem is: in, represents the Frobenius norm; Introducing the time influence factor α, we get the joint minimization problem: Among them, 0<α<1, The joint minimization problem is solved to obtain the joint objective function of timing drift, which satisfies the following relationship: in, Indicates that the error between the predicted data and the actual data is minimized. represents the minimization of the conversion prediction error of the user's latent factor matrix obtained at time tT; U (t-T) The decomposition bias of control, γ1, γ2 are the influencing adjustment parameters. The higher the γ1 value, the better the model is. Prefer auxiliary matrix Its influence; ||·||1 represents the L1 norm; Step 4, after solving the timing drift joint objective function constructed in step 3, a timing drift matrix decomposition model is obtained, and item recommendations are performed after inputting user information.

2. The method for recommending items based on a latent factor model with time series drift according to claim 1, characterized in that: In step 2, the time series drift matrix decomposition model decomposes each user u i The user potential factor matrix at time t And the user potential factor matrix at time tT In conjunction with this, an auxiliary transfer matrix is ​​defined between times t and tT Represents the current user's latent factor matrix The user potential factor matrix at time tT Through the auxiliary transfer matrix After the transfer, it is indicated; Current user latent factor matrix Contains user information for each item at time t; item latent factor matrix Contains the item rating information for each item at time t.

3. The method for recommending items based on a latent factor model with time series drift according to claim 2, characterized in that: Solving the timing drift joint objective function using the first-order necessary condition equality constraint yields the following relationship: The symbol ⊙ represents the product of the corresponding position elements of two matrices. The symbols represent the gradient of the loss function for each parameter.

4. The method for recommending items based on a latent factor model with time series drift according to claim 3, characterized in that: as well as The update rule for the gradient is:

5. The method for recommending items based on a latent factor model with time series drift according to claim 4, characterized in that: Said The update rule is:

6. The method for recommending items based on a latent factor model with time series drift according to claim 4, characterized in that: The update rule is:

7. The method for recommending items based on a latent factor model with time series drift according to claim 4, characterized in that: The update rule is: