A Novel Collaborative Filtering Algorithm and Its Application for Recommendations in E-Commerce

Jie Zhang, Juan Yang, Wang Li, Yizhang Jiang, Pengjiang Qian, Yuan LiuComputer 2020

Abstract

With the rapid development of the Internet, the amount of data recorded on the Internet has increased dramatically. It is becoming more and more urgent to effectively obtain the specific information we need from the vast ocean of data. In this study, we propose a novel collaborative filtering algorithm for generating recommendations in e-commerce. This study has two main innovations. First, we propose a mechanism that embeds temporal behavior information to find a neighbor set in which each neighbor has a very significant impact on the current user or item. Second, we propose a novel collaborative filtering algorithm by injecting the neighbor set into probability matrix factorization. We compared the proposed method with several state-of-the-art alternatives on real datasets. The experimental results show that our proposed method outperforms the prevailing approaches.

Introduction

Collaborative Filtering (CF) is the backbone of modern e-commerce recommendations. However, traditional CF often treats users as independent entities and assumes symmetric relationships—if User A is similar to User B, B is assumed to be equally similar to A. In reality, influence is often a one-way street. Furthermore, explicit social data is often sparse. This paper presents TemporalMF, a recommendation algorithm that improves CF by mining the "hidden" directed influence between users based on the timing of their actions.

Methodology

The TemporalMF approach consists of two primary stages: modeling temporal behavior and integrating these insights into a probabilistic framework.

1. Temporal Behavior Modeling

Instead of looking at just what people bought, the authors looked at when. If User A buys a product and User B buys the same product shortly after, the model records a directed edge from A to B. This builds a User Consumption Network where weights are asymmetric, reflecting real-world influence dynamics.

2. Injecting Neighbors into PMF

The core engine is Probabilistic Matrix Factorization (PMF). The innovation lies in adding a regularization term to the PMF objective function that "nudges" a user’s latent vector to be more similar to the vectors of their most influential temporal neighbors.

Graphical model and posterior distribution for the proposed TemporalMF algorithm.

As shown in the figure above, the model balances a user’s own historical preferences with the influence exerted by their neighbor set, formulated through a posterior distribution that incorporates latent factors for both users ($\Theta$) and items ($\Xi$).

Experimental Evaluation

The model was evaluated using the Douban dataset, focusing on Books (23,944 users) and Movies (9,601 users). These datasets are ideal as they include timestamps and social relationships for comparison.

The primary metric used was Root Mean Square Error (RMSE). TemporalMF consistently outperformed standard PMF, BPTF (Bayesian PMF), SocialMF, and TagMF. For instance, on the Books dataset with $K=20$ latent factors, TemporalMF achieved an RMSE of 0.7217, significantly better than the 0.7435 achieved by standard PMF.

Discussion and Conclusion

TemporalMF demonstrates that time is a powerful proxy for influence. By modeling influence as directed and asymmetric, the algorithm better reflects real-world social dynamics. Notably, it outperforms models using explicit social or tag data while relying on more ubiquitous timestamp data.

Future work will address the "sparsity problem" for users with very few ratings and explore the integration of temporal neighbor selection into deep learning-based recommendation models.

Summary updated

BibTeX
@inproceedings{zhang2020novel,
  author = {Jie Zhang and Juan Yang and Wang Li and Yizhang Jiang and Pengjiang Qian and Yuan Liu},
  title = {{A Novel Collaborative Filtering Algorithm and Its Application for Recommendations in E-Commerce}},
  booktitle = {Computer},
  year = {2020},
  doi = {10.32604/cmes.2021.012112},
}
Figure