Professional Documents
Culture Documents
Recommendation System
Recommendation System
A Seminar report submitted in partial fulfilment of the requirements for the Degree
of Bachelor of Engineering & Technology
In
Computer Engineering (CP)
Semester - IV
By
Mufaddal Challawala
Enrollment no. 12202040503008
Under supervision of
Prof. Hetal Gudani
Academic Year 2022-23 (Even)
1
CERTIFICATE
This is to certify that Seminar work embodied in this report entitled, “Recommendation System”
was carried out by Mufaddal Challawala Enrollment no. 12202040503008 at G H Patel College
of Engineering & Technology for partial fulfilment of B.E. degree to be awarded by Charutar
Vidya Mandal University (CVMU). This seminar work has been carried out under my supervision
and is to the satisfaction of department.
2
Acknowledgement
The completion of any seminar work depends upon cooperation, co-ordination, and combined
efforts of several sources of knowledge. I would like to express my deepest thanks to Prof. Hetal
Gudani, for her valuable inputs, guidance, encouragement, wholehearted cooperation, and
constructive criticism throughout the duration of our project.
I hope that this seminar work report will provide all necessary information required to
readers to fulfil their aspiration. Man’s quest for knowledge never ends. Theory and practices are
essential and complimentary to each other. I would like to express my sincere thanks to Dr.
Maulika Patel (Head of Department) for wholehearted support.
3
TABLE OF CONTENT
List of Figures 5
CHAPTER 1 INTRODUCTION 6
1.1 Introduction To Recommendation System 6
CHAPTER 2 RECOMMENDATION SYSTEM 7
2.1 What Is Recommendation System? 7
2.2 Types Of Recommendation System 7
CHAPTER 3 COLLABORATIVE FILTERING 8
3.1 What Is Collaborative Filtering? 8
3.2 Types Of Collaborative Filtering 8
3.2.1 User Based Collaborative Filtering 8
3.2.2 Item Based Collaborative Filtering 9
CHAPTER 4 ITEM BASED COLLABORATIVE FILTERING 11
4.1 What Is Item Based Collaborative Filtering Algorithm 11
CHAPTER 5 ALGORITHM FOR ITEM BASED COLLABORATIVE 12
FITERING
5.1 Item Similarity Computation 12
5.2 Prediction Computation 15
CHAPTER 6 ADVANTAGES AND DISADVANTAGES OF ITEMBASED 17
COLLABORATIVE FILTERING
6.1 Advantages 17
6.2 Disadvantages 17
Conclusion 18
References 19
4
TABLE OF FIGURES
5
CHAPTER 1
INTRODUCTION
1.1 Introduction To Recommendation System
The explosive growth in the amount of available digital information and the number of visitors to
the Internet have created a potential challenge of information overload which hinders timely access
to items of interest on the Internet. Information retrieval systems, such as Google, DevilFinder and
Altavista have partially solved this problem but prioritization and personalization of information
were absent. This has increased the demand for recommender systems more than ever before.
Recommender systems are information filtering systems that deal with the problem of information
overload by filtering vital information fragment out of large amount of dynamically generated
information according to user’s preferences, interest, or observed behavior about item.
Recommender system has the ability to predict whether a particular user would prefer an item or
not based on the user’s profile.
Recommender systems (RS) are used to help users find new items or services, such as books,
music, transportation or even people, based on information about the user, or the recommended
item. These systems also play an important role in decision-making, helping users to maximize
profits or minimize risks. Recommender systems are beneficial to both service providers and users.
They reduce transaction costs of finding and selecting items in an online shopping environment.
Recommendation systems have also proved to improve decision making process and quality.
6
CHAPTER 2
RECOMMENDATION SYSTEM
2.1 What Is Recommendation System?
Recommender system is defined as a decision making strategy for users under complex
information environments. Also, recommender system was defined from the perspective of E-
commerce as a tool that helps users search through records of knowledge which is related to users’
interest and preference. Recommender system was defined as a means of assisting and augmenting
the social process of using recommendations of others to make choices when there is no sufficient
personal knowledge or experience of the alternatives. Recommender systems handle the problem
of information overload that users normally encounter by providing them with personalized,
exclusive content and service recommendations.
ML algorithms are being used in Recommendation Systems to provide users with better
recommendations. However, the ML field does not have a clear classification scheme for its
algorithms, mainly because of the number of approaches and the variations proposed in the
literature. As a consequence, it becomes difficult and confusing to choose an ML algorithm that
fits one’s need when developing an RS.
1. Collaborative Filtering
2. Content - Based Filtering
3. Hybrid Filtering
4. Stereotyping
5. Graph Based
6. Co-occurrence Recommendation
7. Global Relevance
In this report we will mainly focus on Collaborative Filtering. We will try to understand how the
Collaborative Filtering works and how it recommends item to user.
7
CHAPTER 3
COLLABORATIVE FILTERING
3.1 What Is Collaborative Filtering?
The term “collaborative filtering” was coined in 1992 by Goldberg et al. Their theory was that
users like what like-minded users like, where two users were considered like-minded when they
rated items alike. When like-minded users were identified, items that one user rated positively
were recommended to the other user, and vice versa.
Collaborative filtering is a domain-independent prediction technique for content that cannot easily
and adequately be described by metadata such as movies and music. Collaborative filtering
technique works by building a database of preferences for items by users. It then matches users
with relevant interest and preferences by calculating similarities between their profiles to make
recommendations [43]. Such users build a group called neighborhood. An user gets
recommendations to those items that he has not rated before but that were already positively rated
by users in his neighborhood. Recommendations that are produced by Collaborative Filtering can
be of either prediction or recommendation.
Collaborative filtering is the process of filtering for information or patterns using techniques
involving collaboration among multiple agents, viewpoints, data sources, etc. Applications of
collaborative filtering typically involve very large data sets. Collaborative filtering methods have
been applied to many different kinds of data including: sensing and monitoring data, such as in
mineral exploration, environmental sensing over large areas or multiple sensors; financial data,
such as financial service institutions that integrate many financial sources; or in electronic
commerce and web applications where the focus is on user data, etc.
8
In figure 3.1, you can see a picture where 3 children named A, B, C, and 4 fruits, grapes,
strawberry, watermelon, and orange respectively. Based on the image let assume ‘A’ purchased
all 4 fruits, ‘B’ purchased only strawberry and ‘C’ purchased strawberry as well as watermelon.
Here ‘A’ & ‘C’ are similar kinds of users because of this ‘C’ will be recommended Grapes and
Orange as shown in dotted line.
9
Fig 3.2 Item based filtering
10
CHAPTER 4
11
CHAPTER 5
Let’s pick two movies (Id 1: Toy Story and Id 2: Star Wars) for which we have to calculate the
similarity, how much these two movies are comparable to one another in terms of their likeness by
users. To compute this we will first multiply ratings of both the movies with each other and the sum
the result. Let’s call this value ‘A’.
12
Second, we‘ll sum the squared movie ratings and then take the square root of them. So square all
movie 1 ratings, sum them and then take the square root to get final value (do same of movie 2).
Doing so will get us two values i.e. square root value of movie 1 and movie 2. Multiply both the
values. We call this final value ‘B’.
13
Fig 5.1.5 Cosine similarity equation
Starting from label 1 (blue on left), above illustrates that in order to calculate the similarity between
an item ‘i’ and an item ‘j’ (consider ‘i’ and ‘j’ as movie id 1 and 2) multiple all ratings of item ‘i’
and ‘j’ given by users ‘u’ and sum them. Divided the result with the product of square root of the
sum of squared ratings of individual items given by user ‘u’.
This is exactly what we did in our excel exercise above. Iterating above for all the items will result
in a list of values that will indicate how close other items are to our main item ‘i’. This method is
also known as cosine similarity. It helps to calculate how close two vectors are to one another.
Cosine similarity works but it doesn’t take into account the optimistic behavior of users. Different
users can rate the same item differently depending upon how optimistic they are. On the scale of
5, one could rate an item 5 while another could rate 3 even though they both very much liked the
item. To account for this we have to make a small change to our similarity formula. Here is what
it looks like:
There is also a similar method where instead of subtracting with the user’s average rating we
subtract with items average rating. This helps to understand how much given user ratings deviate
from average item rating. This technique is known as Pearson similarity. Both Cosine and
Pearson are widely used methods to compute similarities.
14
Applying adjusted cosine similarity equation on ratings for items will produce a table or matrix
that’ll show how similar one item is to another. It should look something like this:
16
CHAPTER 6
6.2 Disadvantages
1. Cold start problem: Item-based collaborative filtering can suffer from the cold start
problem, where the system may not be able to make accurate recommendations for new
items that have not yet been interacted with by enough users.
2. Over-reliance on popular items: Item-based collaborative filtering can also be biased
towards popular items, as they are more likely to have been interacted with by a large
number of users and therefore have more data to base recommendations on.
3. Item drift: Item-based collaborative filtering can suffer from item drift, where the similarity
between items changes over time as user behavior and preferences change.
17
CONCLUSION
In conclusion, the recommendation system is an essential tool for businesses to enhance user
experience and increase customer satisfaction. A recommendation system can analyze
customer behavior, such as browsing history, purchase history, ratings, and reviews, and
provide personalized recommendations based on the user's preferences. The recommendation
system can be implemented in various industries, including e-commerce, entertainment, social
media, and healthcare, to name a few. The successful implementation of a recommendation
system requires a thorough understanding of the business objectives, data collection, data
preprocessing, algorithm selection, and performance evaluation.
18
REFERENCES
19