Content-based Filtering is a Machine Learning technique that uses similarities in features to make decisions. This technique is often used in recommender systems, which are algorithms designed to advertise or recommend things to users based on knowledge accumulated about the user.
This method revolves completely around comparing user interests to product features. The products that have the most overlapping features with user interests are what’s recommended.
Given the significance of product features in this system, it is important to discuss how the user’s favorite features are decided.
Here, two methods can be used (possibly in combination). Firstly, users can be given a list of features out of which they can choose whatever they identify with the most. Secondly, the algorithm can keep track of the products the user has chosen before and add those features to the users’ data.
Similarly, product features can be identified by the developers of the product themselves. Moreover, users can be asked what features they believe identify with the products the most.
Once a numerical value, whether it is a binary 1 or 0 value or an arbitrary number, has been assigned to product features and user interests, a method to identify similarities between products and user interests needs to be identified. A very basic formula would be the dot product. To calculate the dot product the following formula should be used, (where is the product feature value and user interest value in column i).
In the table given above, user interest level with Product 1 can be estimated to be , which equals . Similarly, interest in Product 2 will be and will be in Product 3. Hence, Product 3 will be the algorithm’s top recommendation to the user.
This model is easily scalable due to low amounts of data. Moreover, since, unlike other models, this does not need to compare with other users’ data, it can offer niche results specific to the current user.
However, this model requires a fair amount of domain knowledge from the people attributing features to products. So, its accuracy is largely dependent on that knowledge being accurate. Moreover, content-based filtering depends greatly on previously known user interests. Therefore, it is limited in that it’s unable to expand on known user interests.
View all Courses