Tezeract

Leveraging Key Concepts Of Recommendation Systems Using This Simple Guide

Recommendation Systems

Contents

Overview

If you are a beginner and have zero knowledge about recommendation systems and how they work then you my friend are at the right place. In this article we are going to discuss what recommendation systems are, its types and how they work. I’ll try to make the article a bit easy to understand for both the audiences, who have basic knowledge and those who don’t have any knowledge about recommendation systems.

Let’s start with a very basic introduction to these systems.

Recommendation System

Recommendation systems are basically designed to recommend things to the users based on features. These systems predict those products which most likely a user will buy or must have interest in. In simple words a recommendation system is an algorithm that suggests relevant items to the users.

If we take an example of Netflix, that’s how it’s recommendation system works. We often get a list of movies from netflix to watch, this information is completely based on a these system.

Now you have a basic understanding of the recommendation systems, let’s talk about the types of it. There are mainly two types of recommendation systems namely:

Types of recommendation systems
  1. Content-Based Filtering
  2. Collaborative Based Filtering

Content-Based Filtering

This type of recommendation systems are specific to a single user and the recommendations in this system are made using the user’s past history, user’s profile features or the user’s explicit feedback. Such systems work in a way that if a user was interested in an item in the past, he will once again be interested in it in the future.

Let’s take an example of amazon which uses content based filtering for recommending products to the users by showing a list of similar products which are sorted by some similarity algorithm.

Now, we will discuss the pros and cons of it , to make it easier for the users to decide what type of recommendation systems to choose,

Pros of Content-Based Filtering:

  1. Recommendations are specific to a single user, the system doesn’t need data of other users. 
  2. Recommendations are highly relevant to the user. 
  3. Easy to implement for a large number of users.

Cons of Content-Based Filtering:

  1. The system can never recommend something out of the box to the user such as the user must be interested in but he hasn’t bought it before. 
  2. The process of item/product feature representation is hand engineered to some extent that makes this approach not fully automated.

Now after knowing what is basically Content-Based Filtering and its pros and cons, Let’s dig into the second type of recommendation system…

Collaborative Based Filtering

This type of recommendation system works in such a way that it recommends new items to the users based on other similar users interest and preferences. Like in Collaborative Based Filtering the system makes clusters of users and items and recommends people or items based on similarities.

Let’s consider the example of Amazon as it uses Collaborative Based Filtering to recommend products to the users in such a way that users who bought this also bought this. 

It is divided into two subtypes which are: 

Subtypes of Collaborative Based Filtering
  1. User-Based Collaborative Filtering
  2. Item-Based Collaborative Filtering

We will explain both of these types one by one along with describing when to use which one, 

User-Based Collaborative Filtering:

In user-based collaborative filtering recommendations are made based on the similarity of users. And users’ similarity is calculated through the items the user preferred or not. Like people who like a lot of the same stuff would also like the other stuff which you like.

Let’s understand this with the help of an example shown in the image below, you

Based on the image above, let’s assume that User A purchased all 4 fruits, User B purchased only strawberries  whereas User C purchased strawberries and watermelon. So here we will consider that User A & User C are similar users and based on this similarity the system will recommend Grapes and Orange to User C as shown with the dotted line.

Item-Based Collaborative Filtering:

In item-based collaborative filtering, recommendations are made based on the similarity of items. Item-to-item similarity is calculated using the ratings users gave to the items. Like items which have most similar features and ratings are clustered together as similar items. 

Let’s understand this with the help of an example shown in the image below,

Let’s compare the above image with an example as defined above about users and items. Here the only difference is that we see similar items, not similar users like if you see grapes and watermelon you will realize that watermelon is purchased by all the children but grapes are purchased by only Children A and B. Therefore grapes are being recommended to Children C.

Now you must be wondering when to use which type of Collaborative Filtering, So let’s make it simple,

  • Use User-based collaborative filtering when the No. of items is greater than No. of users. 
  • Use Item-based collaborative filtering when the No. of users is greater than No. of items. 

As above we had discuss the pros and cons of the Content based filtering, Now we will also discuss it for Collaborative-Based Filtering,

Pros of Collaborative-Based Filtering:

  1. This system helps the users to discover a new interest by recommending new products liked by similar users. 
  2. It performs pretty well even if the data is very small. 
  3. Doesn’t require much domain knowledge.

Cons of Collaborative-Based Filtering:

  1. The system finds it difficult to handle new items because the model doesn’t get trained on the newly added items in the database. This problem is known as the Cold Start Problem.
  2. Problem with new users and new products.
  3. Needs lots of data to perform good recommendations.

Sum Up of All

In this article we have covered many topics related to recommendation systems like What are these, how they work with the help of examples. We have also discussed different types of it which are content-based filtering and collaborative based filtering and also sub-types of collaborative filtering namely user-based and item-based along with examples, pros and cons and when to use which type of these systems.

Hopefully, today you have learned the basics of an interesting and the most hyped topic in AI nowadays. Cheers!!

Iqra Shafqat

Iqra Shafqat

AI Engineer

Share

Suggested Articles

Tezeract.ai