Rating Prediction Algorithm Based on User Time-Sensitivity
Abstract
:1. Introduction
2. Related Work
2.1. Improvement of Similarity Calculating Methods
2.2. Integration of Time Context
2.3. Time Context Application for Trust-Based Social Recommendation
3. Time-Sensitive Detection Algorithm
3.1. Item-Based CF Algorithms
3.2. Time-Sensitive Detection Algorithm
3.2.1. Time-Sensitive Detection
3.2.2. Time Function
4. Algorithm Design
4.1. Time-Sensitive Detection Algorithm
Algorithm 1. Rating Prediction Algorithm Based on User Time-Sensitivity |
Input: the ratings matrix R; the number of time windows, K; the number of neighbors, N; the half-life parameter, T0. |
Output: predicted rating, . |
1: Initialization, and structure timestamp matrix T. |
2: for u = 1, …, m do |
3: for i = 1, …, n do |
4: Calculating the similarity between items according to Equations (1) and (2). |
5: End for |
6: Ranking timestamps in descending order and dividing time windows. |
7: for k = 1, …, K do |
8: Calculating item types probability distribution. |
9: Calculating cosine distance matrix according to Equation (4). |
10: Calculating the relative entropy matrix according to Equations (5) and (6). |
11: Judging the user’s sensitivity according to Equations (7)–(9). |
12: End for |
13: Predicting the rating according to Equations (10)–(12). |
14: End for |
4.2. Parameters Learning Algorithm
Algorithm 2. Parameters Learning Algorithm |
Input: the ratings matrix R; training set of users, U’. |
Output: the number of optimal time windows, ; the number of optimal neighbors, ; the optimal half-life, . |
1: Initialization, K = 2, N = 1, T0 = 7, , , MAE = 0 |
2: while K ≤ 10 |
3: while N ≤ 20 |
4: while T0 ≤ 360 |
5: For each Ui in U’ |
6: Call TSDCF(R, K, N, T0)//i.e., call Algorithm 1. |
7: Get Prediction Rating |
8: End for |
9: Calculating MAE |
10: If > MAE then |
11: Update , , |
12: END if |
13: T0++ |
14: End while |
15: N++ |
16: End while |
17: K++ |
18: End while |
19: Return , , |
20: END |
5. Experiments
5.1. Experiment Design
5.2. Experiment (1): The Validity of the Proposed Algorithm
5.3. Experiment (2): Parameters Learning Experiments
6. Conclusions and Future Research
Author Contributions
Funding
Acknowledgments
Conflicts of Interest
References
- Herlocker, J.L.; Konstan, J.A.; Terveen, L.G. Evaluating CF recommender systems. ACM Trans. Inf. Syst. 2004, 22, 5–53. [Google Scholar] [CrossRef]
- Zhang, J.; Lin, Z.; Xiao, B.; Zhang, C. An optimized item-based collaborative filtering recommendation algorithm. In Proceedings of the 2009 IEEE International Conference on Network Infrastructure and Digital Content, Beijing, China, 6–8 November 2009; pp. 414–418. [Google Scholar]
- Wang, X.D.; Sang, J. A Collaborative Filtering Recommendation Algorithm with Time-Adjusting Based on Cloud Model. Comput. Eng. Sci. 2012, 34, 160–163. [Google Scholar]
- Ma, X.; Wang, C.; Yu, Q.; Li, X.; Zhou, X. An FPGA-based accelerator for neighborhood-based collaborative filtering recommendation algorithms. In Proceedings of the2015 IEEE International Conference on Cluster Computing, Washington, DC, USA, 14–17 November 2015; pp. 494–495. [Google Scholar]
- Bobadilla, J.S.; Ortega, F.; Hernando, A.; Bernal, J. A collaborative filtering approach to mitigate the new user cold start problem. Knowl.-Based Syst. 2012, 26, 225–238. [Google Scholar] [CrossRef] [Green Version]
- Goldberg, D.; Nichols, D.; Oki, B.M.; Terry, D. Using collaborative filtering to weave an information tapestry. Commun. ACM 1992, 35, 61–71. [Google Scholar] [CrossRef]
- Cheng, S.; Liu, Y. Time-aware and grey incidence theory based user interest modeling for document recommendation. Cybern. Inf. Technol. 2015, 15, 36–52. [Google Scholar] [CrossRef] [Green Version]
- Ding, Y.; Li, X.; Orlowska, M.E. Recency-based collaborative filtering. In Proceedings of the 17th Australasian Database Conference, Hobart, Australia, 16–19 January 2006; Australian Computer Society, Inc.: Darlinghurst, Australia, 2006; Volume 49, pp. 99–107. [Google Scholar]
- Jin, R.; Si, L. A study of methods for normalizing user ratings in collaborative filtering. In Proceedings of the 27th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Sheffield, UK, 25–29 July 2004; pp. 568–569. [Google Scholar]
- Jin, R.; Chai, J.Y.; Si, L. An automatic weighting scheme for collaborative filtering. In Proceedings of the 27th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Sheffield, UK, 25–29 July 2004; pp. 337–344. [Google Scholar]
- Ahn, H.J. A new similarity measure for collaborative filtering to alleviate the new user cold-starting problem. Inf. Sci. 2008, 178, 37–51. [Google Scholar] [CrossRef]
- Bobadilla, J.; Ortega, F.; Hernando, A. A collaborative filtering similarity measure based on singularities. Inf. Process. Manag. 2012, 48, 204–217. [Google Scholar] [CrossRef] [Green Version]
- Polatidis, N.; Georgiadis, C.K. A dynamic multi-level collaborative filtering method for improved recommendations. Comput. Stand. Interfaces 2017, 51, 14–21. [Google Scholar] [CrossRef] [Green Version]
- Tao, L.; Cao, J.; Liu, F. Dynamic feature weighting based on user preference sensitivity for recommender systems. Knowl.-Based Syst. 2018, 149, 61–75. [Google Scholar] [CrossRef]
- Yu-pu, S.J.Y. Dynamic Collaborative Filtering Recommender Model Based on Rolling Time Windows and its Algorithm. Comput. Sci. 2013, 40, 206–209. [Google Scholar]
- 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]
- Koren, Y. Collaborative filtering with temporal dynamics. In Proceedings of the 15th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Paris, France, 28 June–1 July 2009; pp. 447–456. [Google Scholar]
- Wei, S.; Ye, N.; Yang, X. Collaborative Filtering Algorithm Combining Item Category and Dynamic Time Weighting. Comput. Eng. 2014, 6, 45. [Google Scholar]
- Zhao, F.; Xiong, Y.; Liang, X.; Gong, X.; Lu, Q. Privacy-preserving collaborative filtering based on time-drifting characteristic. Chin. J. Electron. 2016, 25, 20–25. [Google Scholar] [CrossRef]
- Hu, Y.; Peng, Q.; Hu, X. A time-aware and data sparsity tolerant approach for web service recommendation. In Proceedings of the 2014 IEEE International Conference on Web Services, Anchorage, AK, USA, 27 June–2 July 2014; pp. 33–40. [Google Scholar]
- Xiao, Y.; Ai, P.; Hsu, C.H.; Wang, H.; Jiao, X. Time-ordered collaborative filtering for news recommendation. China Commun. 2015, 12, 53–62. [Google Scholar] [CrossRef]
- Meo, P.D. Trust Prediction via Matrix Factorisation. ACM Trans. Internet Technol. 2019, 19, 44. [Google Scholar] [CrossRef]
- Liu, G.; Liu, A.; Wang, Y.; Li, L. An efficient multiple trust paths finding algorithm for trustworthy service provider selection in real-time online social network environments. In Proceedings of the 2014 IEEE International Conference on Web Services, Anchorage, AK, USA, 27 June–2 July 2014; pp. 121–128. [Google Scholar]
- Campos, P.G.; Díez, F.; Cantador, I. Time-aware recommender systems: A comprehensive survey and analysis of existing evaluation protocols. User Model. User-Adapt. Interact. 2014, 24, 67–119. [Google Scholar] [CrossRef]
- Haydar, C.; Boyer, A.; Roussanaly, A. Time-aware trust model for recommender systems. In Proceedings of the International Symposium on Web AlGorithms, Deauville, France, 2–4 June 2015. [Google Scholar]
- Frikha, M.; Mhiri, M.; Zarai, M.; Gargouri, F. Time-sensitive trust calculation between social network friends for personalized recommendation. In Proceedings of the 18th Annual International Conference on Electronic Commerce: E-Commerce in Smart Connected World, New York, NY, USA, 17–19 August 2016; p. 36. [Google Scholar]
- Kalaï, A.; Wafa, A.; Zayani, C.A.; Amous, I. LoTrust: A social Trust Level model based on time-aware social interactions and interests similarity. In Proceedings of the 2016 14th Annual Conference on Privacy, Security and Trust (PST), Auckland, New Zealand, 12–14 December 2016; IEEE: West Lafayette, IN, USA, 2016; pp. 428–436. [Google Scholar]
- Karahodza, B.; Supic, H.; Donko, D. An Approach to design of time-aware recommender system based on changes in group user’s preferences. In Proceedings of the 2014 X International Symposium on Telecommunications (BIHTEL), Sarajevo, Bosnia and Herzegovina, 27–29 October 2014; IEEE: West Lafayette, IN, USA, 2014; pp. 1–4. [Google Scholar]
- Li, K.; Zhou, X.; Lin, F.; Zeng, W.; Wang, B.; Alterovitz, G. Sparse online collaborative filtering with dynamic regularization. Inf. Sci. 2019, 505, 535–548. [Google Scholar] [CrossRef]
I1 | I2 | I3 | … | In | |
---|---|---|---|---|---|
U1 | R11 | R12 | R13 | … | R1n |
U2 | R21 | R22 | R23 | … | R2n |
U3 | R31 | R32 | R33 | … | R3n |
… | … | … | … | … | … |
Um | Rm1 | Rm2 | Rm3 | … | Rmn |
I1 | I2 | I3 | … | In | |
---|---|---|---|---|---|
U1 | T11 | T12 | T13 | … | T1n |
U2 | T21 | T22 | T23 | … | T2n |
U3 | T31 | T32 | T33 | … | T3n |
… | … | … | … | … | … |
Um | Tm1 | Tm2 | Tm3 | … | Tmn |
T1 | T2 | … | Tk | |
---|---|---|---|---|
T1 | D(T1,T1) | D(T1,T2) | … | D(T1,Tk) |
T2 | D(T2,T1) | D(T2,T2) | … | D(T2,Tk) |
… | … | … | … | … |
Tk−1 | D(Tk−1,T1) | D(Tk−1,T2) | … | D(Tk−1,Tk) |
Tk | D(Tk,T1) | D(Tk,T2) | … | D(Tk,Tk) |
T1 | T2 | … | Tk | |
---|---|---|---|---|
T1 | KL(T1,T1) | KL(T1,T2) | … | KL(T1,Tk) |
T2 | KL(T2,T1) | KL(T2,T2) | … | KL(T2,Tk) |
… | … | … | … | … |
Tk−1 | KL(Tk−1,T1) | KL(Tk−1,T2) | … | KL(Tk−1,Tk) |
Tk | KL(Tk,T1) | KL(Tk,T2) | … | KL(Tk,Tk) |
K | T0 | N = 5 | N = 10 | N = 15 | N = 20 |
---|---|---|---|---|---|
3 | 7 | 0.7745 | 0.8090 | 0.8212 | 0.8398 |
30 | 0.7750 | 0.8063 | 0.8199 | 0.8392 | |
90 | 0.7743 | 0.8056 | 0.8190 | 0.8396 | |
183 | 0.7748 | 0.8055 | 0.8197 | 0.8402 | |
365 | 0.7752 | 0.8056 | 0.8201 | 0.8406 | |
5 | 7 | 0.7883 | 0.8131 | 0.8318 | 0.8440 |
30 | 0.7865 | 0.8102 | 0.8271 | 0.8401 | |
90 | 0.7849 | 0.8072 | 0.8248 | 0.8388 | |
183 | 0.7845 | 0.8065 | 0.8246 | 0.8388 | |
365 | 0.7844 | 0.8062 | 0.8246 | 0.8389 | |
7 | 7 | 0.7939 | 0.8158 | 0.8346 | 0.8499 |
30 | 0.7938 | 0.8162 | 0.8326 | 0.8471 | |
90 | 0.7942 | 0.8158 | 0.8324 | 0.8465 | |
183 | 0.7944 | 0.8161 | 0.8325 | 0.8467 | |
365 | 0.7944 | 0.8163 | 0.8325 | 0.8467 |
T0 | K | N | MAE |
---|---|---|---|
7 | 3 | 5 | 0.7745 |
30 | 4 | 5 | 0.7714 |
90 | 4 | 5 | 0.7701 |
183 | 4 | 5 | 0.7739 |
365 | 4 | 5 | 0.7698 |
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Cheng, S.; Wang, W. Rating Prediction Algorithm Based on User Time-Sensitivity. Information 2020, 11, 4. https://doi.org/10.3390/info11010004
Cheng S, Wang W. Rating Prediction Algorithm Based on User Time-Sensitivity. Information. 2020; 11(1):4. https://doi.org/10.3390/info11010004
Chicago/Turabian StyleCheng, Shulin, and Wanyan Wang. 2020. "Rating Prediction Algorithm Based on User Time-Sensitivity" Information 11, no. 1: 4. https://doi.org/10.3390/info11010004