Next Article in Journal
Es-Tacotron2: Multi-Task Tacotron 2 with Pre-Trained Estimated Network for Reducing the Over-Smoothness Problem
Next Article in Special Issue
Optimizing Parallel Collaborative Filtering Approaches for Improving Recommendation Systems Performance
Previous Article in Journal
Deep Image Similarity Measurement Based on the Improved Triplet Network with Spatial Pyramid Pooling
Previous Article in Special Issue
Using Opinion Mining in Context-Aware Recommender Systems: A Systematic Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Combined Recommendation Algorithm Based on Improved Similarity and Forgetting Curve

School of Maritime Economics and Management, Dalian Maritime University, Dalian 116026, China
*
Author to whom correspondence should be addressed.
Information 2019, 10(4), 130; https://doi.org/10.3390/info10040130
Submission received: 17 December 2018 / Revised: 8 March 2019 / Accepted: 3 April 2019 / Published: 8 April 2019
(This article belongs to the Special Issue Modern Recommender Systems: Approaches, Challenges and Applications)

Abstract

:
The recommendation algorithm in e-commerce systems is faced with the problem of high sparsity of users’ score data and interest’s shift, which greatly affects the performance of recommendation. Hence, a combined recommendation algorithm based on improved similarity and forgetting curve is proposed. Firstly, the Pearson similarity is improved by a wide range of weighted factors to enhance the quality of Pearson similarity for high sparse data. Secondly, the Ebbinghaus forgetting curve is introduced to track a user’s interest shift. User score is weighted according to the residual memory of forgetting function. Users’ interest changing with time is tracked by scoring, which increases both accuracy of recommendation algorithm and users’ satisfaction. The two algorithms are then combined together. Finally, the MovieLens dataset is employed to evaluate different algorithms and results show that the proposed algorithm decreases mean absolute error (MAE) by 12.2%, average coverage 1.41%, and increases average precision by 10.52%, respectively.

1. Introduction

Recommendation system can be employed to provide users with personalized services, commodities or information, guiding users to browse targeted online goods or information, which makes the Internet from the past “people looking for information” to “information looking for people” intelligent stage [1]. With the gradual development of Internet to be more intelligent, recommendation system will be more and more widely applied in various fields, such as social network [2], information retrieval, text mining, personalization recommendation, biomedicine, and so on [3]. The rapid development of recommendation system in the e-business has also led to the academic research progress. Its main task is to improve the performance of recommendation algorithm and user satisfaction [3]. With the continuous development of recommendation systems, it is faced with many problems and challenges, such as the impact of negative evaluation on recommendation [4], emotional tendency of comments [5], trust evaluation of merchants [6] etc. However, data sparsity and user interest migration are the core problems needing to be solved. There are many studies on data sparsity, for example, Li, Deng et al. [7,8] partition users according to situational information for reducing the data dimension and sparsity of user scores. Ren, Qian, Lian et al. [9,10,11] proposed a joint probability model to simulate the decision-making process of user check-in behavior in order to deal with data sparsity. There are some recommendation algorithms considering the migration of user interests. For example, Zhu et al. [12] established a user interest model based on the non-linear progressive forgetting function in order to predict products’ scores. Considering both data sparsity and user interest migration will be beneficial to improve the performance of personalization recommendations. The literature [13,14] listed a number of combinatorial recommendation methods. Yu and Li [15] defined the user’s interests as short-term interest and long-term interest, and defined the weight function based on the time-window as well, provide significantly better quality advice. Yin et al. [16] solved the problem of time effect quantification by quantifying the time effect of historical information in the recommendation system. These papers provided a good research direction.
Therefore, a combined recommendation algorithm based on improved similarity and forgetting curve is proposed for improving the accuracy of the results. Finally, the Movielens dataset was employed to evaluate the proposed algorithm by four indicators, including mean absolute error (MAE), mean square root error (RMSE), precision rate (Precision) and recall rate (Recall).

2. Materials and Methods

2.1. Collaborative Filtering Algorithm Based on Pearson

Collaborative filtering recommendation employs the behavioral data of other users, whose data is most similar to the target user, to predict how much the target user likes the item, which was used to determine whether the item is recommended to the target user [17]. This idea is consistent with people’s behavior habits and it is easier for people to accept and recognize them [18].
Figure 1 summarizes and displays the general recommendation process of the collaborative filtering algorithm.
Collaborative Filtering Recommendation predicts the preferences of the target user based on the relevance of the items or the behavior of other users with same interests and experience. In other words, the traditional recommendation is an improved user collaborative filtering base on similarly (IUCF). Hence, collaborative filtering can be divided into user-based collaborative filtering (User-based CF) and item-based collaborative filtering (Item-based CF) [19,20].
For the user-based collaborative filtering, the larger the value of similarity between two users as showing Equation (1). If the similarity between two users is 1, it shows that they are completely similar and their habits are basically the same. Therefore, this paper focuses on improving user-based collaborative filtering recommendation. Since Pearson correlation coefficient is calculated based on the user’s common scoring item. Therefore, when the score matrix is relatively dense, the number of items intersected by users is large and the reliability of the correlation coefficient is relatively high. On the contrary, the similarity calculated by users does not accurately reflect the degree of association between users. For example, the number of items intersected by users is very small, but the users’ scores on these items are very similar. If a Pearson correlation coefficient is used to calculate, the degree of correlation between two users is very high. If cosine similarity is used to calculate, the degree of similarity is relatively small. The calculated user similarity is too large or small, which cannot effectively reflect the actual degree of association between two users.
s i m ( u , v ) = i I u , v ( R u , i R u ¯ ) ( R v , i R v ¯ ) i I u , v ( R u , i R u ¯ ) 2 i I u , v ( R v , i R v ¯ ) 2
where, R u , i is user u’s score on item i, I u , v is a collection of common items between user u and user v, R u ¯ is the average of a user’s score history. In the recommendation system, the advantage of using Pearson correlation coefficient calculation is that the similarity calculation is not affected when the user scoring standard is different, and the number of scoring items is not the same.
Therefore, when calculating the similarity among users, we should also consider the effect of the number of items with a common score on similarity. In general, the larger the proportion of items intersected by sets to all items scored by two users, the more similar these two users are to some extent.
In view of this, for user-based recommendation system, in order to prevent the influence of some behavior-intensive and hobby-wide users on Pearson correlation coefficient calculation under the condition of high data sparseness, a user-based collaborative filtering (UCF) algorithm based on Pearson is proposed by adding a user-related degree of weight factor to improve Pearson correlation coefficient. The weight is calculated by the proportion of a common score item between two users in its historical score items, and then it can calculate Pearson correlation coefficient by weighting for improving the accuracy of user similarity. Through this improvement, it can effectively reduce the impact of users who have scored many items on similarity, and to some extent alleviate the problem of data sparsity, so that the end-user neighbors and target users are closer to each other. In this paper, the improved Pearson correlation coefficient formula is shown as follows.
S i m ( u , v ) = μ s i m ( u , v ) .
Formula (2) consists of two parts, the first is the weight of the user correlation degree μ = I ( u ) I ( v ) I ( u ) I ( v ) , the larger weight indicates that the improved Pearson correlation coefficient can reflect the degree of correlation between two users. The second is sim(u,v), which is calculated according to the Pearson correlation coefficient of the Formula (1). According to the calculation formula, we know that μ∈(0,1]; I(u) represents a collection of items that have been rated by user u, and I(v) represents a collection of items that have been rated by user v.

2.2. Recommendation Algorithm Based on Improved Ebbinghaus Forgetting Curve

The original recommendation system does not pay attention to the time, and the number of users is relatively small, moreover, the recommendation system is insensitive to the user’s interest change under the influence of time. However, in recent years, with the development of the Internet, more and more attention has been paid to the interest mining of users, and the time-related factors have gradually begun to attract people’s attention. Therefore, adding the influence of time on user interest into a recommendation system has become an important research topic in recommendation field [21].
In recent years, scholars have introduced time and user interest change factors into the relevant recommendation algorithms. Ding put forward arguments in his paper and presented that the overall interest of the user in the future was mainly influenced by his recent interests, so the recommendation algorithm should reduce the impact of early interest and increase the impact of the user’s recent behavior on the recommended results [22]. Töscher proposed a dynamic ItemKNN algorithm, in which the nearest neighbor model in clustering was used to reflect the influence of different weight values of user interest [23]. Lu stated that the scoring vectors of users and items were regarded as a dynamic eigenvectors that change over time, and then the time factor was embedded in the recommendation model as a new one-dimensional to improve the performance of the recommendation system by modifying the matrix decomposition model in the traditional collaborative filtering algorithm [24]. Lee et al. proposed a time-based collaborative recommendation system (TRS); TRS set a pseudo-score in the course of its work based on the shelf time of a commodity item and its time of purchase, and filled the score matrix with a pseudo-score to increase the density of the scoring matrix. The score filling mechanism of TRS reflected the effect of time on the recommendation system to a certain extent [25], but the TRS algorithm filled the score completely according to the predefined empirical scoring pattern, which required the prior knowledge of domain experts, so it was difficult to popularize and apply it on a large scale. Reference [15] and reference [16] had proposed the recommendation algorithm by combining the similarity and users’ interest shift, which had shown that this idea is feasible. Hence, we try to use this idea to build a combination recommendation method.

2.2.1. Recommendation Considering Time

According to the analysis mentioned above, when calculating similarity, the shift of user interest with time will be considered. The time decay function is defined as Formula (2).
T ( t ) = ( 1 θ ) + θ ( t t min t max t min ) 2
where t is the actual time for the user to score the item, and tminttmax, where tmin is the first time when the user evaluates in a recommendation system. Coefficient θ reflects a change in T(t) interest, the greater the value of θ, the faster the user’s interest changes, the slower the reversal speed. When θ = 1, the user’s interest changes the most. When 0 < θ < 1, the change of interest tends to show an average trend. When θ = 0, the user’s interest remains unchanged. Therefore, the value of the θ corresponds to the speed of change of a user’s interest in the recommendation system, which is positive proportional correlation.
Then, we will introduce the Ebbinghaus forgetting curve to improve the recommendation algorithm. Inspired by academic research and the Ebbinghaus forgetting curve, we can obtain that there are similarities between the changes in users’ interest with time and the law of Ebbinghaus forgetting. Therefore, the Ebbinghaus forgetting function is used to simulate the users’ interest change, and the user’s score is calculated for interest migration to produce recommendations more in line with users’ preferences. The traditional Pearson correlation coefficient only measures the linear correlation of two items in score, but does not distinguish the importance of score time characteristics in describing a user’s interest [26]. This paper focuses on this aspect accordingly.

2.2.2. Correction of Ebbinghaus Forgetting Curve

The Ebbinghaus forgetting curve is shown in Figure 2.
From Figure 2, many people’s forgetting of new memories is regular, which is not a uniform linear decreasing process, but in the initial stage, the forgetting speed is very fast, and then slows down gradually, at a certain time, the memory of things is kept at a relatively stable level, which is the law of memory forgetting. Many memory learning methods improve and utilize the law of forgetting curve, so as to achieve the effect of improving memory ability.
This pattern of oblivion is similar to the change in user interest, and our interest in an item can only last for a period of time, after that interest will be significantly weaker but not gone. Therefore, the curve of a user’s interest changing with time can be simulated by the curve of Ebbinghaus forgetting law.
The Ebbinghaus forgetting curve [27,28]. can be shown in Formula (4).
f ( x ) = 100 k ( log x ) c + k
where x represents the oblivion time of the new memory, which is calculated by subtracting the score time of the specific item through the user’s most recent score time. In order to obtain the value of two constants, c and k, Ebbinghaus tested the amount of memory left by letting people remember given words. After repeated experiments, he concluded that the amount of memory left was a logarithmic function curve and k = 1.84, c = 1.25 [28]. Then, the formula and historical score data are used to construct a new evaluation matrix to complete the recommendation. In the subsequent experiment of this paper, the formula is compared with the improved time calculation formula to verify the validity of the improved formula.
In Figure 2, longitudinal coordinates are relative memory, while the horizontal coordinate is the time when memory begins to pass. Curves indicate a process in which people’s relative memory storage gradually decreases over time. It can be seen that the law of meaningless letter forgetting is basically consistent with the basic time function Formula (4), both of which are non-incremental functions. So, the forgetting function is introduced to simulate the change of user’s interest over time. The slower the forgetting function decreases, the greater the impact of the user’s old interests on the recommendation results is, and the smaller the reverse. Therefore, the choice of forgetting function is very important, and will have a direct impact on the performance and effect of the recommendation system.
In order to obtain the best recommendation results, it should be consistent with the law of memory forgetting function in psychology while choosing the fitting function of forgetting law. Only by choosing a suitable function and applying it to the personalized recommendation system, can we provide users with more accurate recommendation results. Therefore, the forgetting curve fitting experiment will be carried out in this paper. The experiment is carried out under the environment of Matlab. The curve fitting toolbox cftool is used to fit the Ebbinghaus forgetting curve. The data in Table 1 is input as the basic data.
At present, the main functions of simulating the user’s interest forgetting process in some papers are exponential function and linear decreasing function. Referring to relevant academic papers, different functions are used to adjust and fit the parameters. The fitting results of each function are shown in Figure 3.
Figure 3 shows that the shapes of linear function and Gaussian function are far from the Ebbinghaus forgetting curve, and they are obviously not suitable to simulate the forgetting law. The shapes of Rational functions and Gaussian function are close to the curve of forgetting law, but the rational function deviates further from the Ebbinghaus forgetting function after the point (0.375, 36%). Therefore, the image fitted by exponential function can accurately reflect the law of human forgetting.
After comparing the fitting effect of the image, according to the correlation coefficient of the fitting formula, the corresponding formulas of each function can be obtained as shown in Table 2.
The experimental parameters of the fitting function are compared, and the final fitting formula is determined according to the fitness parameters. The main parameters include the sum of squares of errors (SSE), root mean square error (RMSE), determination coefficient (R-square), and modified determination coefficient (Adjusted R-square). The smaller the values of SSE and RMSE (tending to 0 is the best), the smaller the error between fitting function and original function, the better the fitting effect; and the larger the values of R-square and Adjusted R-square parameters (tending to 1 is the best), the better the fitting effect of function. Fitness parameters of each formula after fitting function are shown in Table 3.
By comparing the image and the fitting suitability parameters of the Ebbinghaus forgetting curve, the results of SSE, R-square, modified coefficient and RMSE show that the fitting results of exponential function are more consistent with the forgetting curve than those of other functions. Therefore, the function of exponential function is chosen as the formula of Ebbinghaus forgetting curve.
f ( x ) = 0.6584 e 61.17 x + 0.3325 e 0.01744 x
where f(x) is the retention rate of a memory after a broken time, and x indicates the time elapsed from memory (Time unit: days).

2.2.3. Improved Recommendation Algorithm

The time user-based collaborative filtering (TUCF) proposed in this paper is based on the law of memory forgetting to track changes in user’s interest. Human memory of new things is decreasing with the pass of time, so user’s interest in a certain thing is in line with this trend, and the change of interest is reflected in the recommendation model by users’ scoring data.
TUCF combines the time of user score and score data effectively to reflect changes in user’s interest migration, so the processing of score time is a critical process. Therefore, for constructing the evaluation matrix, it is necessary to construct a corresponding time matrix as shown in Table 4.
In the Ebbinghaus forgetting curve, dependent variable x is a period of forgetting time, while the time data in the score time matrix is the time node data. Therefore, before calculating the retention rate of user scores, a formula is introduced to process the user score time, and the user’s active time in the system is processed accordingly, the formula is defined as Formula (6).
T ( t ) = T max t T max T min × T
where T max refers to the user’s most recent scoring time in the system, T min refers to the user’s earliest scoring time in the system, and t is the current time to calculate the score ( T min < t < T max ). And T is the time period (The unit is day), such as T = 7 means that the user’s activity time is one week. Where the function T(t) is monotonically non-increment, with the increase of the variable t, T ( t ) becomes smaller, that is, the closer the current calculation time is from the user’s most recent scoring time, the shorter t forgetting time experienced by the user, and the greater the amount of interest saved. Conversely, the farther away from the recent scoring time, the longer the forgetting time experienced, and the smaller the overall interest contribution to the user.
By combining the Ebbinghaus forgetting formula with the Formula (6), we can get the time influence function to calculate the user’s interest retention rate based on scoring as Formula (7).
F ( t ) = 0.6584 × e 61.17 × T max t T max T min × T + 0.3225 × e 0.01744 × T max t T max T min × T
Considering that the time impact function described above is only an attenuation process for the user’s interest, and does not take into account the weighting of the user’s recent interest, the calculated forecast score will not conform to the true score of the user’s recent interest. Therefore, this further improvement, in the above time formula to add an interest adjustment factor, the user’s recent interest to adjust, so that the final forecast score more accurate. According to the Ebbinghaus forgetting curve, the user’s memory retention rate in the first 2 days is large, after that the retention rate change tends to be flat, so set to 0–2 days between active intervals for user’s interest. Therefore, a threshold is set; when the user’s interest retention rate is greater than the threshold, the interest influence factor α is added to the time impact function, the reason for which is to increase the impact of recent interest, and then the score is weighted by the improved formula. When the user’s interest retention rate for the item is less than the threshold, it is considered that the item does not match the user’s current interest, but considers that the item user has scored, replaces the historical score with the mean will be more in line with the user’s preference habits. The final formula is defined as Formula (8)
F ( t ) = 0.6584 × e 61.17 × T max t T max T min × T + 0.3225 × e 0.01744 × T max t T max T min × T + a
On the basis of Pearson collaborative filtering, combined with the law of the forgetting curve mentioned above, the change of user interest over time is considered when searching for target user neighbors and predicting score. The change of user interest in this paper is reflected in user scoring data. The time influence function based on Ebbinghaus forgetting is introduced into the Pearson coefficient, and the final improved user score similarity is defined as Formula (9), which expresses the correlation between users by their scores.
s i m ( u , v ) = i I u , v ( R u , i F ( t u , i ) R u ¯ ) ( R v , i F ( t v , i ) R v ¯ ) i I u , v ( R u , i F ( t u , i ) R u ¯ ) 2 i I u , v ( R v , i F ( t v , i ) R v ¯ ) 2
Eventually, the improved forecast formula is given as follows.
P u , i = R u ¯ + v N ( u ) s i m ( u , v ) ( R v , i F ( t v , i ) R v ¯ ) v N ( u ) | s i m ( u , v ) |
Iu,v represents a collection of items that user u and user v have jointly scored, tu,i indicates the score time of user u for item i, R u ¯ represents the evaluation score of user u. F(tu,i) calculates the amount of interest retention after the historical score of user u is removed from the center, so that the calculated score is more in line with the user’s current interests.

2.3. Combined Recommendations of Improved Similarity and Forgetting Curve

The improved Pearson similarity can effectively enhance the similarity calculation under the condition of data sparse, so the similarity degree after calculation is more accurate and the recommendation quality is greatly increased. The improvement based on time impact is a collaborative filtering algorithm, which can effectively simulate the migration of user’s interest, and through the processing of user scores, not only the recommended accuracy but also the coverage of the system have been greatly improved.
There are many references for improving the quality of recommendation by focusing on the change of interest with time, for example, Margaris and Vaz [29,30] considered the impact of the time for improving prediction quality by using datasets of movies, music, videogames and books, Chen and Lo [31,32] studied on user rating for tracking their interest shift, and Vinagre [33] used forgetting mechanisms for scalable collaborative filtering.
Therefore, in this section, the methods of the collaborative filtering algorithm and Ebbinghaus forgetting curve are combined according to the various methods of mixed weighting, which can reflect the user’s interest. Therefore, the combined recommendation based on time and improved similarity is proposed.
The recommendation algorithm based on similarity and time influence can effectively improve the accuracy of recommendation and reduce the error of prediction score. It shows that the effect of reducing the number of users with too many scores, and adding time factors can effectively increase the recommended quality. After a number of fusion methods, two algorithms are combined by weighting, stacking and so on, mainly from two aspects of similarity calculation and prediction score.
(1)
The similarity calculation is enhanced by two methods respectively, and the recommendation results based on the improved similarity of the user are more accurate than the effect based on the time effect. Therefore, under the condition of sparse data, the improved similarity can more accurately match the correlation among users, so it is more appropriate to use improved user similarity in similarity calculations.
(2)
For predicting user scores, on the basis of traditional similarity, the historical score data of the nearest neighbor of the target user is processed based on time influence, so the score is more in correspondence with the interest of the user’s score, and effectively enhances the recommendation effect.
Finally, the similarity coefficient calculation of the fusion algorithm is based on the similarity calculation of the frequent user penalty. If the user is rated, the user’s historical score is calculated according to the time influence function, and the final scoring forecast list is obtained.

3. Results and Discussion

The 80,000 records chosen from the 100K dataset provided by Movielens are selected as training data, and the remaining 20,000 records are selected as test data.
The experiment in this paper is divided into three aspects.

3.1. Resutls of the Improved Similarity Recommendation Algorithm

In the experiment, we set the length of recommendation list N maximum to 100, if the recommendation list is too long, it is impossible for users to browse it all. For obtaining MAE and RMSE, the number of user’s neighbors is variable from 5 to 300, and the initial interval is 5, the interval after 50 is set to 10 and after the number of neighbors 100, the interval is set to 100. The comparison results of MAE and RMSE are shown in Figure 4 and Figure 5.
In Figure 4 and Figure 5, the algorithm of improved user-based collaborative filtering (IUCF) has enhanced greatly in the MAE index than the traditional user-based collaborative filtering (UCF). Compared to the item-based collaborative filtering (ICF), it also has a good performance, only in the number of neighbors in 60~90 slightly worse than ICF. For RMSE as shown in Table 5, the IUCF has lower errors then UCF and ICF, which shows that the improved algorithm has better performance in the environment with high scoring requirements.
For Precision and Recall, based on the above experiments, combined with the performance requirements of the MAE and RMSE indicators, the nearest neighbor number for UCF is 20 and those for ICF and IUCF are 25 and 20, respectively. The reason is that the corresponding algorithm has good recommendation accuracy when the number of neighbors is taken as these numbers. Then, according to the experiment need Top-N to select the integer among 5–100, the front 50 size when the recommendation list length N interval is 5, the interval after 50 is set to 10. Because of the contradiction between the Precision and the Recall indicators (shown in Figure 6 and Figure 7); finally, the experiment in Figure 8 is compared with the F1 indicator that is the formula with the α value of 1 in the F-Measure indicator.
Through the above experimental results in Figure 6, Figure 7 and Figure 8, it can be seen that in the Precision and Recall indicators, the improved algorithm in this paper is obviously better than the two, indicating that in the case of the same recommendation list length, the improved algorithm can more accurately hit the user needs and can have a more comprehensive coverage of the user. In the F1 index, the improved algorithm IUCF has a more stable performance than UCF and ICF in the case of weighing Precision and Recall.
From the verification of the above experiments, the improvement of this paper effectively improves the progress of the recommended forecast, hits and covers the user interest preference of the items.

3.2. Results of the Improved Ebbinghaus Forgetting Curves

The training data and test data are also divided like the above section, and the experiment is evaluated according to the corresponding indexes introduced in the second section. In order to verify the influence of threshold value and interest weighting factor on time-based algorithm, the threshold value is obtained from Ebbinghaus forgetting data under the condition of recommended list length N = 25 and the user’s nearest neighbor number K = 20. The threshold is obtained from the Ebbinghaus forgetting data. The improved score is tested among 0.2~1.1 for the interest weighted actor α. The experimental results are obtained as follows.
From Figure 9 and Figure 10, the threshold value is set to 0.33, with the change of interest weighted factor value, and the prediction error of the algorithm is low while the accuracy is high. By observing the change curves of MAE and Precision, we know that if α is close to 0.8, the error value of the algorithm is the smallest and the accuracy is the highest, so the recommendation algorithm based on time impact will have better recommendation performance. In the following comparison experiment, the time-based algorithm is taken under the optimal coefficient of the above experiment.
Comparative experiments are carried out on user-based collaborative filtering (UCF), recommendation based on a traditional Ebbinghaus forgetting formula (TCF1), and recommendation based on improved formulas (TCF2). The recommendation list length N is 100, the number of user neighbors is chosen from 5 to ~300, the experimental results are given in Figure 11 and Figure 12.
For MAE, the forgetting curve is employed to improve the processing of the historical score for increasing the accuracy of the recommendation system. The time-based collaborative filtering recommendation (TCF2) has a lower error than the recommendation based on the traditional Ebbinghaus forgetting formula. It allows for more accurate prediction of user scores, indicating that improvements in this paper are effective.
For F1, the proposed method has a high F1 value compared with UCF and TCF1, which shows that the proposed algorithm based on time effects has better recommendation performance and can cover user preferences more accurately when considering both accuracy and recall. Other specific statistical parameters of the experiment are shown in Table 6.

3.3. Results of the Combined Recommendation Algorithm

Hybrid/combined improved time and user-based collaborative filtering (HITUCF) is the recommendation method based on both forgetting curve and similarity. The data in this section is randomly selected from Movielens, but it needs to be met that each user has scored at least 20 movies, with a total data of 100,000 records. In order to test the stability of the algorithm in different data, a random division of the dataset is taken five times for five-fold cross-validation. The tests for each partition are different from the other test set data, dividing the data by choosing 80% as the training data and 20% as the test data. In order to eliminate the effect of other factors on the experiment, the number of neighbor sets is set to 20, and the length of recommendation item list for users Top-N set to 25. The experimental results are compared by MAE, precision and coverage indicators, shown in Figure 13, Figure 14 and Figure 15.
From Figure 13, Figure 14 and Figure 15, according to five experiments on randomly grouping data, it is found that the improved algorithm proposed in this paper has lower error and higher accuracy than the traditional collaborative filtering algorithm, and in the coverage aspect, it also has good effects, which means that the proposed algorithm is relatively stable and has the good performance, and it is more effective for mining long tail items.
According to the change of the user’s neighbor set, a comparative experiment is carried out on the implemented algorithm, where N = 25, the number of neighbors is to take 5~100, and the recommendation results are shown in Figure 16.
In order to show the performance of the proposed methods, the 1M Movielens dataset is then used to do the experiment again. The number of neighbors is to take 10~100, and the recommendation results are shown in Figure 17.
From Figure 16 and Figure 17, we know that the precision of recommendation results goes up with the increase of the number of neighbors. The improved algorithm is obviously superior to other algorithms, which shows that the improved algorithm has a significant improvement.
The HITUCF proposed in this paper are more accurate than the traditional collaborative filtering recommendation, and can effectively increase the recommendation quality, meanwhile it reduces the average error.

4. Conclusions

User interest migration and data sparsity are crucial problems to be solved in the recommendation algorithm. Hence, in this paper, a combined recommendation algorithm based on improved similarity and forgetting curve is proposed. Firstly, it corrects the similarity of Pearson under the condition of sparse data. Secondly, the user scoring time is introduced into the recommendation system as an important factor, and the recommendation algorithm based on an improved Ebbinghaus forgetting curve is established; Finally, the Movielens dataset is used to verify the algorithms, and the combined recommendation algorithm has shown better results by comparing with UCF, TCF, IUCF algorithm.
Online shopping has become popular in recent years. Nowadays, a product introduction page of shopping software is opened randomly. The “Guess what you like” section will show dozens of products, some of which are the same products of different stores, and some of them are completely different substitutes, which are supported by the recommendation algorithm to provide customers with more product choices. Therefore, how to deal with the change of user interest with time, recommending favorite goods or providing information to users becomes the focus of e-commerce.

Author Contributions

Conceptualization, T.L.; methodology, L.J.; software, L.J.; validation, Y.C.; writing—original draft preparation, T.L.; writing—review and editing, L.J. and Z.W.; project administration, T.L and Y.C.; funding acquisition, T.L and Y.C.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 71271034, the National Social Science Foundation of China, grant number 15CGL031, the Fundamental Research Funds for the Central Universities, grant number 3132016306 and 3132018160, the Program for Dalian High Level Talent Innovation Support, grant number 2015R063, the National Natural Science Foundation of Liaoning Province, grant number 20180550307, and the National Scholarship Fund of China for Studying Abroad.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kitts, B.; Freed, D.; Vrieze, M. A fast promotion tunable customer-item recommendation method based on conditionally independent probabilities. In Proceedings of the Second Annual International Conference on Knowledge Discovery in Data, KDD ’00, Boston, MA, USA, 20–23 August 2000; pp. 437–446. [Google Scholar]
  2. Jing, N.; Wang, J.; Xu, H.; Bian, Y. Friend Recommendation Algorithm based on User Relations in Social Networks. Chin. J. Manag. Sci. 2017, 25, 164–171. [Google Scholar]
  3. Huang, Z.; Zhang, J.; Tian, C.; Sun, S.; Xiang, Y. Survey on Learning-to-Rank Based Recommendation Algorithms. J. Softw. 2016, 27, 691–713. [Google Scholar]
  4. Su, Y.; Liu, J.; Guo, Q. Personalized Recommendation Algorithm by Considering the Negative Scores. Oper. Res. Manag. Sci. 2012, 21, 17–22. [Google Scholar]
  5. Wang, W.; Wang, H.; Meng, Y. The collaborative filtering recommendation based on sentiment analysis of online reviews. Syst. Eng. Theory Pract. 2014, 34, 3238–3249. [Google Scholar]
  6. Hu, R.; Yang, D.; Qi, R. Recommended Trust Evaluation Model in Mobile Commerce Based on Combination Evaluation Model. Oper. Res. Manag. Sci. 2010, 19, 85–93. [Google Scholar]
  7. Li, C.; Liang, C.; Yang, S. Sparsity Problem in Collaborative Filtering: A Classification. J. Ind. Eng. Eng. Manag. 2011, 25, 94–101. [Google Scholar]
  8. Deng, X.; Jin, C.; Han, J.C.; Higuchi, Y. Improved collaborative filtering model based on context clustering and user ranking. Syst. Eng. Theory Pract. 2013, 33, 2945–2953. [Google Scholar]
  9. Ren, X.; Song, M.; Song, J. Point-of-Interest Recommendation Based on the User Check-in Behavior. Chin. J. Comput. 2016, 39, 1–25. [Google Scholar]
  10. Qian, X.; Feng, H.; Zhao, G.; Mei, T. Personalized recommendation combining user interest and social circle. IEEE Trans. Knowl. Data Eng. 2014, 26, 1763–1777. [Google Scholar] [CrossRef]
  11. Lian, D.; Zhao, C.; Xie, X.; et al. GeoMF: Joint geographical modeling and matrix factorization for point-of-interest recommendation. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’14, New York, NY, USA, 24–27 August 2014; pp. 831–840. [Google Scholar]
  12. Zhu, G.; Zhou, L. Hybrid recommendation based on forgetting curve and domain nearest neighbor. J. Manag. Sci. China 2012, 15, 55–64. [Google Scholar]
  13. Cui, X. Hybrid recommendation based on functional network. Syst. Eng. Theory Pract. 2014, 34, 1034–1042. [Google Scholar]
  14. Xu, H.; Wu, X.; Li, X.; Yan, B. Comparison Study of Internet Recommendation System. J. Softw. 2009, 20, 350–362. [Google Scholar] [CrossRef]
  15. Yu, H.; Li, Z. A Collaborative Filtering Method Based on the Forgetting Curve. In Proceedings of the International Conference on Web Information Systems and Mining, WISM 2010, Sanya, China, 23–24 October 2010; pp. 183–187. [Google Scholar]
  16. Yin, G.; Cui, X.; Ma, Z. Forgetting curve-based collaborative filtering recommendation model. J. Harbin Eng. Univ. 2012, 33, 85–90. [Google Scholar]
  17. Wang, G.; Liu, H. Survey of personalized recommendation system. Comput. Eng. Appl. 2012, 7, 66–76. [Google Scholar]
  18. Resnick, P.; Varian, H.R. Recommender Systems. Commun. ACM 1997, 40, 56–58. [Google Scholar] [CrossRef]
  19. Deshpande, M.; Karypis, G. Item-Based Top-N Recommendation Algorithms. ACM Trans. Inf. Syst. 2004, 22, 143–177. [Google Scholar] [CrossRef]
  20. Sawar, B.; Kkarypis, G.; Konsan, J.A.; Riedl, J. Item-Based Collaborative Filtering Recommendation algorithms. In Proceedings of the Hypermedia Track of the 10th International World Wide Web Conference, Hong Kong, China, 1–5 May 2001; pp. 285–295. [Google Scholar]
  21. Zhang, Y.; Liu, Y. A Collaborative Filtering Algorithm Based on Time Period Partition. In Proceedings of the Third International Symposium on Intelligent Information Technology and Security Informatics, Jinggangshan, China, 2–4 April 2010; pp. 777–780. [Google Scholar]
  22. Ding, Y.; Li, X. Time weight collaborative filtering. In Proceedings of the 14th ACM International Conference on Information and Knowledge Management, Bremen, Germany, 31 October–5 November 2005; pp. 485–492. [Google Scholar]
  23. Töscher, A.; Jahrer, M.; Bell, R.M. The big chaos solution to the Netflix prize. 2009. Available online: https://www.netflixprize.com/assets/GrandPrize2009_BPC_BigChaos.pdf (accessed on 6 April 2019).
  24. Lu, Z.; Agarwal, D.; Dhillon, I.S. A spatio-temporal approach to collaborative filtering. In Proceedings of the Third ACM Conference on Recommender Systems, New York, NY, USA, 23–25 October 2009; pp. 13–20. [Google Scholar]
  25. Lee, T.Q.; Park, Y.; Park, Y.T. A time-based approach to effective recommender systems using implicit feedback. Expert Syst. Appl. 2008, 34, 3055–3062. [Google Scholar] [CrossRef]
  26. Ren, L. A Collaborative Recommendation Algorithm in Combination with Score Time Characteristic. Comput. Appl. Softw. 2015, 32, 112–115. [Google Scholar]
  27. Yu, H.; Li, Z. A collaborative filtering recommendation algorithm based on forgetting curve. J. Nanjing Univ. Nat. Sci. 2010, 46, 520–527. [Google Scholar]
  28. Ebbinghaus, H. Memory: A Contribution to Experimental Psychology. Ann. Neurosci. 2013, 20, 155–156. [Google Scholar] [CrossRef]
  29. Margaris, D.; Vassilakis, C. Pruning and aging for user histories in collaborative filtering. In Proceedings of the 2016 IEEE Symposium Series on Computational Intelligence, Athens, Greece, 6–9 December 2016. [Google Scholar]
  30. Vaz, P.C.; Ribeiro, R.; Matos, D.M. Understanding temporal dynamics of ratings in the book recommendation scenario. In Proceedings of the ISDOC 2013 International Conference on Information Systems and Design of Communication, Lisbon, Portugal, 11–12 July 2013; pp. 11–15. [Google Scholar]
  31. Cheng, W.; Yin, G.; Dong, Y.; Dong, H.; Zhang, W. Collaborative filtering recommendation on users’ interest sequences. PLoS ONE 2016, 11, e0155739. [Google Scholar] [CrossRef] [PubMed]
  32. Lo, Y.-Y.; Liao, W.; Chang, C.-S.; Lee, Y.-C. Temporal matrix factorization for tracking concept drift in individual user preferences. IEEE Trans. Comput. Soc. Syst. 2018, 5, 156–168. [Google Scholar] [CrossRef]
  33. Vinagre, J.; Jorge, A.M. Forgetting mechanisms for scalable collaborative filtering. J. Braz. Comput. Soc. 2012, 18, 271–282. [Google Scholar] [CrossRef]
Figure 1. General recommendation process of collaborative filtering algorithm.
Figure 1. General recommendation process of collaborative filtering algorithm.
Information 10 00130 g001
Figure 2. The Ebbinghaus forgetting curve.
Figure 2. The Ebbinghaus forgetting curve.
Information 10 00130 g002
Figure 3. Fitting curves of different functions. They are listed as: (a) Linear function; (b) Gaussian function; (c) Rational function; (d) Exponential function.
Figure 3. Fitting curves of different functions. They are listed as: (a) Linear function; (b) Gaussian function; (c) Rational function; (d) Exponential function.
Information 10 00130 g003
Figure 4. Comparison of the changes in MAE with the number of neighbors.
Figure 4. Comparison of the changes in MAE with the number of neighbors.
Information 10 00130 g004
Figure 5. Comparison of changes in RASE with the number of neighbors.
Figure 5. Comparison of changes in RASE with the number of neighbors.
Information 10 00130 g005
Figure 6. Comparison of precision with Top-N changes.
Figure 6. Comparison of precision with Top-N changes.
Information 10 00130 g006
Figure 7. Comparison of recall with Top-N changes.
Figure 7. Comparison of recall with Top-N changes.
Information 10 00130 g007
Figure 8. Comparison of F1 with Top-N changes.
Figure 8. Comparison of F1 with Top-N changes.
Information 10 00130 g008
Figure 9. MAE with threshold and interest weighted factor.
Figure 9. MAE with threshold and interest weighted factor.
Information 10 00130 g009
Figure 10. Precision with thresholds and interest weighted factors.
Figure 10. Precision with thresholds and interest weighted factors.
Information 10 00130 g010
Figure 11. MAE with changing of the number of neighbors.
Figure 11. MAE with changing of the number of neighbors.
Information 10 00130 g011
Figure 12. F1 with changing of the number of user neighbors.
Figure 12. F1 with changing of the number of user neighbors.
Information 10 00130 g012
Figure 13. MAE of five data divisions.
Figure 13. MAE of five data divisions.
Information 10 00130 g013
Figure 14. Precision of five data divisions.
Figure 14. Precision of five data divisions.
Information 10 00130 g014
Figure 15. Coverage of five data divisions.
Figure 15. Coverage of five data divisions.
Information 10 00130 g015
Figure 16. Relation between precision and number of neighbors on 100K Movielens dataset.
Figure 16. Relation between precision and number of neighbors on 100K Movielens dataset.
Information 10 00130 g016
Figure 17. Relation between precision and number of neighbors on 1M Movielens dataset.
Figure 17. Relation between precision and number of neighbors on 1M Movielens dataset.
Information 10 00130 g017
Table 1. Ebbinghaus forgetting experimental data.
Table 1. Ebbinghaus forgetting experimental data.
NoTime (Day)Mnemic Residues (%)
10100
20.013958
30.041744
40.37536
5133
6228
7625
83121
Table 2. List of Fitting formulas.
Table 2. List of Fitting formulas.
FunctionsFormula
Linear function f ( x ) = 0.007206 x + 0.4027
Gaussian function f ( x ) = 2.75 e ( x + 7.113 5.843 ) 2
Rational function f ( x ) = 0.7018 x + 1.047
Exponential function f ( x ) = 0.6584 e 61.17 x + 0.3325 e 0.01744 x
Table 3. List of parameters after fitting experimental.
Table 3. List of parameters after fitting experimental.
SSER-SquareAdjusted R-SquareRMSE
Multiform approximation0.26060.43830.34470.2084
Gaussian approximation0.30790.33640.071020.2481
Rational approximation0.23640.49050.40560.1985
Exponential approximation0.010870.97660.9590.05213
Table 4. Score time matrix.
Table 4. Score time matrix.
User1……Userm
item1T11……T1m
…………Tij……
itemnTn1……Tnm
Table 5. Statistical results of RMSE.
Table 5. Statistical results of RMSE.
Maximum ValueMinimum ValueAverage Value
UCF1.133061.01341.0719
ICF1.09361.02651.0488
IUCF0.99590.95890.9695
Table 6. Statistical results on performance of different methods.
Table 6. Statistical results on performance of different methods.
Min MAEAvg MAEMax PrecisionAvg PrecisionMax RecallAvg Recall
UCF0.76420.81670.13350.07590.30640.1734
TCF10.76940.77510.12660.11540.29050.2647
TCF20.72540.73760.13530.12850.31040.2949

Share and Cite

MDPI and ACS Style

Li, T.; Jin, L.; Wu, Z.; Chen, Y. Combined Recommendation Algorithm Based on Improved Similarity and Forgetting Curve. Information 2019, 10, 130. https://doi.org/10.3390/info10040130

AMA Style

Li T, Jin L, Wu Z, Chen Y. Combined Recommendation Algorithm Based on Improved Similarity and Forgetting Curve. Information. 2019; 10(4):130. https://doi.org/10.3390/info10040130

Chicago/Turabian Style

Li, Taoying, Linlin Jin, Zebin Wu, and Yan Chen. 2019. "Combined Recommendation Algorithm Based on Improved Similarity and Forgetting Curve" Information 10, no. 4: 130. https://doi.org/10.3390/info10040130

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop