Ideas on Conduct Collaborative Filtering for Recommendation Systems

Recommendation engines are becoming more and more useful for organizations in retail, education, and entrainment. There are two general types of recommendation engine:

  1. Content-Based Filtering: an item is recommended based on a user’s own viewed and purchased histories. This requires tags or features to be created/obtained for different items.
  2. Collaborative Filtering: an item is recommended based on similar users’ viewed and purchased histories.

A creative way to use collaborative filtering is to find similar users by matching user view-purchase groups rather than all views and purchases, and then recommend the current items, as well as past items and future items. This way, the time variable is considered. For feature engineering, the variables should be set up as below:

  1. Contacts: Gender, Current Age, Location.
  2. Histories: One variable will be items purchased by the user, and other variables are the number of views by items viewed BEFORE this purchase, and AFTER the previous purchase. Each row for the dataset would be such a viewed item + purchase combination (multiple for each user)

An example dataset:

Product Viewed
Before This Purchase &
After Last Purchase
UserDatePurchased   Gender (1/0) Age  A1A2A3A4A5A6B1B2B3
User 1       2/2/20       A2110786164000
User 22/4/08B3020000000618
User 22/8/20B1128703008821
User 32/8/20A6020868705885
User 32/1/20A31207528102278

Comments