SlideShare a Scribd company logo
1 of 59
Download to read offline
Overview of Recommender System
STANLEY WANG
SOLUTION ARCHITECT, TECH LEAD
@SWANG68
http://www.linkedin.com/in/stanley-wang-a2b143b
Recommender System
What is Recommender System?
Feedback to Recommender System
Which Areas can Recommender Benefit?
Typical Architecture of Recommender
System
Recommender System Types
• Collaborative Filtering System – aggregation of consumers’
preferences and recommendations to other users based on
similarity in behavioral patterns;
• Content-based System – supervised machine learning used
to induce a classifier to discriminate between interesting and
uninteresting items for the user;
• Knowledge-based System – knowledge about users and
products used to reason what meets the user’s
requirements, using discrimination tree, decision support
tools, case-based reasoning ;
Paradigms of Recommender: Collaborative
Filtering
Collaborative: "Tell me what's
popular among my peers"
Paradigms of Recommender : Content
Based
Content-based: "Show me more of the
same what I've liked"
Paradigms of Recommender : Knowledge Based
Knowledge-based: "Tell me what fits
based on my needs"
Paradigms of Recommender : Hybrid
Hybrid: combinations of various
inputs and/or composition of
different mechanism
Technology Evolution of Recommender
abcd
People who liked this also liked …..
How Collaborative Filtering works?
13
Item
to
Item
User to
User
abcd
User-to-User
 Recommendations are made by finding users
with similar tastes. Jane and Tim both liked
Item 2 and disliked Item 3; it seems they might
have similar taste, which suggests that in
general Jane agrees with Tim. This makes
Item 1 a good recommendation for Tim.
This approach does not scale well for millions
of users.
Item-to-Item
 Recommendations are made by finding items
that have similar appeal to many users.
Tom and Sandra are two users who liked both
Item 1 and Item 4. That suggests that, in
general, people who liked Item 4 will also like
item 1, so Item 1 will be recommended to Tim.
This approach is scalable to millions of users
and millions of items.
Collaborative Filtering
• The most prominent approach to generate
recommendations
o used by large, commercial e-commerce sites
o well-understood, various algorithms and variations exist
o applicable in many domains (book, movies, songs, ..)
• Approach
o use the "wisdom of the crowd" to recommend items
• Basic assumption and idea
o Users give ratings to catalog items (implicitly or explicitly)
o Customers who had similar tastes in the past, will have
similar tastes in the future
Collaborative Filtering Toolkit
• Implemented Big Graph ML Algorithms, including:
o Alternative Least Squares (ALS)
o Sparse-ALS
o SVD++
o LibFM (factorization machines)
o GenSGD
o Item-similarity based methods
User-based Nearest-Neighbor CF
• The basic technique:
o Given an "active user" (Alice) and an item I not yet seen by
Alice
o The goal is to estimate Alice's rating for this item, e.g., by
• find a set of users (peers) who liked the same items as
Alice in the past and who have rated item I
• use, e.g. the average of their ratings to predict, if Alice
will like item I
• do this for all items Alice has not seen and
recommend the best-rated
User-based Nearest-Neighbor CF
• Some first questions
o How do we measure similarity?
o How many neighbors should we consider?
o How do we generate a prediction from the neighbors' ratings?
Item1 Item2 Item3 Item4 Item5
Alice 5 3 4 4 ?
User1 3 1 2 3 3
User2 4 3 4 3 5
User3 3 3 1 5 4
User4 1 5 5 2 1
Commonly Used Similarity Measure
KNN Nearest Neighbour Methods
• unseen item needed to be
classified
• positive rated items
• negative rated items
• k = 3: negative
• k = 5: positive
A user-based kNN collaborative filtering
method consists of two primary phases:
• the neighborhood formation phase
• the recommendation phase
Measuring user similarity
• A popular similarity measure in user-based CF: Pearson correlation
a, b : users
ra,p : rating of user a for item p
P : set of items, rated both by a and b
Possible similarity values between -1 and 1; = user's average ratings
Item1 Item2 Item3 Item4 Item5
Alice 5 3 4 4 ?
User1 3 1 2 3 3
User2 4 3 4 3 5
User3 3 3 1 5 4
User4 1 5 5 2 1
sim = 0,85
sim = 0,70
sim = -0,79
𝒓 𝒂, 𝒓 𝒃
Making predictions
• A common prediction function:
• Calculate, whether the neighbors' ratings for the unseen item i are
higher or lower than their average
• Combine the rating differences – use the similarity as a weight
• Add/subtract the neighbors' bias from the active user's average and use
this as a prediction
Item-based Collaborative Filtering
• Basic idea:
o Use the similarity between items (and not users) to make predictions
• Example:
o Look for items that are similar to Item5
o Take Alice's ratings for these items to predict the rating for Item5
Item1 Item2 Item3 Item4 Item5
Alice 5 3 4 4 ?
User1 3 1 2 3 3
User2 4 3 4 3 5
User3 3 3 1 5 4
User4 1 5 5 2 1
Pre-processing for Item-based CF
• Item-based filtering does not solve the scalability problem itself
• Pre-processing approach by Amazon.com in 2003
o Calculate all pair-wise item similarities in advance
o The neighborhood to be used at run-time is typically rather small,
because only items are taken into account which the user has rated
o Item similarities are supposed to be more stable than user similarities
• Memory requirements
o Up to N2 pair-wise similarities to be memorized (N = number of items)
in theory
o In practice, this is significantly lower (items with no co-ratings)
o Further reductions possible
• Minimum threshold for co-ratings (items, which are rated at least
by n users)
• Limit the size of the neighborhood (might affect recommendation
accuracy)
Similarity Measure for Item based CF
• Produces better results in item-to-item filtering
o for some datasets, no consistent picture in literature
• Ratings are seen as vector in n-dimensional space
• Similarity is calculated based on the angle between the vectors
• Adjusted cosine similarity
o take average user ratings into account, transform the original
ratings
o U: set of users who have rated both items a and b
Recommendation for Item-based CF
• After computing the similarity between items we select a set
of k most similar items to the target item and generate a
predicted value of user u’s rating
where J is the set of k similar items






Jj
Jj j
jisim
jisimr
ip
),(
),(
)(
,u
u,
What is Latent Factor Model?
Latent variables are introduced to account for the underlying reasons of a
user’s choice. When the connections between the latent variables and
observed variables (user, product, rating, etc.) are estimated during the
training recommendations can be made to users by computing their possible
interactions with each product through the latent variables;
Matrix Factorization Approach
How does LSM Work?
Latent Factor Model Algorithm
LSM Algorithm : Alternating Least Square
LSM Algorithm : Alternating Least Square
LSM Algorithm : Stochastic Gradient Descent
Context-Based Recommender Systems
Overview
 The recommender system uses additional data about the context of an
item consumption;
 For example, in the case of a restaurant the time or the location may
be used to improve the recommendation compared to what could be
performed without this additional source of information;
 A restaurant recommendation for a Saturday evening when you go
with your spouse should be different than a restaurant
recommendation on a workday afternoon when you go with co-
workers;
abcd
Overview
Context-Based Recommender Systems
 Recommend a vacation
 Winter vs. summer
 Recommend a purchase (e-retailer)
 Gift vs. for yourself
 Recommend a movie
 To a student who wants to watch it on Saturday
night with his girlfriend in a movie theater.
Motivating Examples
35
 Recommend music
 The music that we like to hear is greatly affected by a context, such
that can be thought of a mixture of our feelings (mood) and the
situation or location (the theme) we associate it with.
 Listen to Bruce Springteen "Born in USA" while driving along the
101.
 Listening to Mozart's Magic Flute while walking in Salzburg.
Motivating Examples
Context-Based Recommender Systems
36
 What is the user when asking for a recommendation?
 Where (and when) the user is ?
 What does the user (e.g., improve his knowledge or really
buy a product)?
 Is the user or with other ?
 Are there products to choose or only ?
Plain recommendation technologies forget to take
into account the user context.
Context-Based Recommender Systems
What simple recommendation techniques ignore?
37
 Obtain sufficient and reliable data describing the user context
 Selecting the right information, i.e., relevant in a particular
personalization task
 Understand the impact of contextual dimensions on the
personalization process
 Computational model the contextual dimension in a more
classical recommendation technology
 For instance: how to extend Collaborative Filtering to include
contextual dimensions?
abcd
Major obstacle for contextual computing
Context-Based Recommender Systems
38
 Each item in the data base is a candidate for splitting
 Context defines all possible splits of an item ratings vector
 We test all the possible splits – we do not have many contextual features
 We choose one split (using a single contextual feature) that maximizes
an impurity measure and whose impurity is higher than a threshold
abcd
Item Split - Intuition and Approach
Context-Based Recommender Systems
39
 Each item in the data base is a candidate for splitting
 Context defines all possible splits of an item ratings vector
 We test all the possible splits – we do not have many contextual features
 We choose one split (using a single contextual feature) that maximizes
an impurity measure and whose impurity is higher than a threshold
abcd
Item Split - Intuition and Approach
Context-Based Recommender Systems
40
Context-Aware Splitting Approaches
Types of Context
Different Views of Context
Model of Context-Based Recommender Systems
Context-Based Pre Filtering Model
Context-Based Post Filtering Model
Context-Based Contextual Model
?3
Active user
Rating
prediction
Trust- based Collaborative Filtering
Active users’ trusted
friends
Users tend to receive advice from people
they trust, such as Trusted friends who can
be defined explicitly by the users or
inferred from social networks .
• Global Metrics: computes a single global trust value for every
single user (reputation on the network)
• Pros:
o Based on the whole community opinion
• Cons:
o Trust is subjective (controversial users)
a
b
d
c
1 3
32
3
Metrics of Trust based Recommender
• Local Metrics: predicts (different) trust scores that are
personalized from the point of view of every single user
• Pros:
o More accurate
o Attack resistance
• Cons:
o Ignoring the “wisdom of the crowd”
a
b
d
c
1 5
32
?
Metrics of Trust based Recommender
51
Content-Based Recommender System
• In content-based recommendations the system tries to
recommend items that matches the User Profile;
• The Profile is based on items user has liked in the past or
explicit interests that he defines;
• A content-based recommender system matches the profile of
the item to the user profile to decide on its relevancy to the
user;
52
Read update
User Profile
New books User Profile
Recommender
Systems
Match
recommendation
Example of Content Based Recommender
What is the “Content"?
• The genre is actually not part of the content of a book
• Most CB-recommendation methods originate from
Information Retrieval (IR) field:
o The item descriptions are usually automatically
extracted (important words)
o Goal is to find and rank interesting text documents
(news articles, web pages)
• Here are some examples:
o Classical IR-based methods based on keywords
o No expert recommendation knowledge involved
o User profile (preferences) are rather learned than explicitly
elicited
Content Representation
• Items stored in a database table
Content Representation
• Structured data
 Small number of attributes
 Each item is described by the same set of attributes
 Known set of values that the attributes may have
• Straightforward topic to work with
 User’s profile contains positive rating for 1001, 1002, 1003
 Would the user be interested in say Oscar, French cuisine, table
service?
• Unstructured data
 No attribute names with well-defined values
 Need to impose structure on free text before it can be used
 Natural language complexity
 Same word with different meanings
 Different words with same meaning
Term-Frequency - Inverse Document Frequency
• Simple keyword representation has its problems
o In particular when automatically extracted because
• Not every word has similar importance
• Longer documents have a higher chance to have an overlap with the
user profile
• Standard measure: TF-IDF
o Encodes text documents as weighted term vector
o TF: Measures, how often a term appears (density in a document)
• Assuming that important terms appear more often
• Normalization has to be done in order to take document length into
account
o IDF: Aims to reduce the weight of terms that appear in all documents
TF - IDF Weighting
• Term frequency tft,d of a term t in a document d
• Inverse document frequency idft of a term t
• TF*IDF weighting


k
dk
dt
dt
n
n
tf
,
,
,







t
t
df
N
idf log
  tdt idftfdtw  ,,
Example TF IDF Representation
User Profiles
• User profile consists of two main types of information
 A model of the user’s preferences. e.g., a function that for any item
predicts the likelihood that the user is interested in that item
 User’s interaction history. e.g., items viewed by a user, items
purchased by a user, search queries, etc.
• “Manual” recommending approaches
 Provide “check box” interface that let the users construct their own
profiles of interests
 A simple database matching process is used to find items that meet
the specified criteria and recommend these to users.
• Rule-based Recommendation
 The system has rules to recommend other products based on user
history
 Rule to recommend sequel to a book or movie to customers who
purchased the previous item in the series
 Can capture common reasons for making recommendations

More Related Content

What's hot

How to build a recommender system?
How to build a recommender system?How to build a recommender system?
How to build a recommender system?blueace
 
Recommendation system
Recommendation systemRecommendation system
Recommendation systemAkshat Thakar
 
Recommender Systems (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)Recommender Systems (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)Xavier Amatriain
 
[Final]collaborative filtering and recommender systems
[Final]collaborative filtering and recommender systems[Final]collaborative filtering and recommender systems
[Final]collaborative filtering and recommender systemsFalitokiniaina Rabearison
 
Collaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemCollaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemMilind Gokhale
 
Recommender system algorithm and architecture
Recommender system algorithm and architectureRecommender system algorithm and architecture
Recommender system algorithm and architectureLiang Xiang
 
Recommendation system
Recommendation systemRecommendation system
Recommendation systemSAIFUR RAHMAN
 
How to Build Recommender System with Content based Filtering
How to Build Recommender System with Content based FilteringHow to Build Recommender System with Content based Filtering
How to Build Recommender System with Content based FilteringVõ Duy Tuấn
 
Recent advances in deep recommender systems
Recent advances in deep recommender systemsRecent advances in deep recommender systems
Recent advances in deep recommender systemsNAVER Engineering
 
Recommendation System
Recommendation SystemRecommendation System
Recommendation SystemAnamta Sayyed
 
Recommender systems for E-commerce
Recommender systems for E-commerceRecommender systems for E-commerce
Recommender systems for E-commerceAlexander Konduforov
 
Recommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringRecommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringViet-Trung TRAN
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender SystemsLior Rokach
 
A Hybrid Recommendation system
A Hybrid Recommendation systemA Hybrid Recommendation system
A Hybrid Recommendation systemPranav Prakash
 
Boston ML - Architecting Recommender Systems
Boston ML - Architecting Recommender SystemsBoston ML - Architecting Recommender Systems
Boston ML - Architecting Recommender SystemsJames Kirk
 
Recommender Systems! @ASAI 2011
Recommender Systems! @ASAI 2011Recommender Systems! @ASAI 2011
Recommender Systems! @ASAI 2011Ernesto Mislej
 
Recommender systems using collaborative filtering
Recommender systems using collaborative filteringRecommender systems using collaborative filtering
Recommender systems using collaborative filteringD Yogendra Rao
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender SystemsT212
 
Recommendation system
Recommendation systemRecommendation system
Recommendation systemRishabh Mehta
 

What's hot (20)

Recommender system
Recommender systemRecommender system
Recommender system
 
How to build a recommender system?
How to build a recommender system?How to build a recommender system?
How to build a recommender system?
 
Recommendation system
Recommendation systemRecommendation system
Recommendation system
 
Recommender Systems (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)Recommender Systems (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)
 
[Final]collaborative filtering and recommender systems
[Final]collaborative filtering and recommender systems[Final]collaborative filtering and recommender systems
[Final]collaborative filtering and recommender systems
 
Collaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemCollaborative Filtering Recommendation System
Collaborative Filtering Recommendation System
 
Recommender system algorithm and architecture
Recommender system algorithm and architectureRecommender system algorithm and architecture
Recommender system algorithm and architecture
 
Recommendation system
Recommendation systemRecommendation system
Recommendation system
 
How to Build Recommender System with Content based Filtering
How to Build Recommender System with Content based FilteringHow to Build Recommender System with Content based Filtering
How to Build Recommender System with Content based Filtering
 
Recent advances in deep recommender systems
Recent advances in deep recommender systemsRecent advances in deep recommender systems
Recent advances in deep recommender systems
 
Recommendation System
Recommendation SystemRecommendation System
Recommendation System
 
Recommender systems for E-commerce
Recommender systems for E-commerceRecommender systems for E-commerce
Recommender systems for E-commerce
 
Recommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringRecommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filtering
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
A Hybrid Recommendation system
A Hybrid Recommendation systemA Hybrid Recommendation system
A Hybrid Recommendation system
 
Boston ML - Architecting Recommender Systems
Boston ML - Architecting Recommender SystemsBoston ML - Architecting Recommender Systems
Boston ML - Architecting Recommender Systems
 
Recommender Systems! @ASAI 2011
Recommender Systems! @ASAI 2011Recommender Systems! @ASAI 2011
Recommender Systems! @ASAI 2011
 
Recommender systems using collaborative filtering
Recommender systems using collaborative filteringRecommender systems using collaborative filtering
Recommender systems using collaborative filtering
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Recommendation system
Recommendation systemRecommendation system
Recommendation system
 

Viewers also liked

Developing a Movie recommendation Engine with Spark
Developing a Movie recommendation Engine with SparkDeveloping a Movie recommendation Engine with Spark
Developing a Movie recommendation Engine with SparkEdureka!
 
Active Learning in Collaborative Filtering Recommender Systems : a Survey
Active Learning in Collaborative Filtering Recommender Systems : a SurveyActive Learning in Collaborative Filtering Recommender Systems : a Survey
Active Learning in Collaborative Filtering Recommender Systems : a SurveyUniversity of Bergen
 
Recommender Systems with Apache Spark's ALS Function
Recommender Systems with Apache Spark's ALS FunctionRecommender Systems with Apache Spark's ALS Function
Recommender Systems with Apache Spark's ALS FunctionWill Johnson
 
Collaborative Filtering and Recommender Systems By Navisro Analytics
Collaborative Filtering and Recommender Systems By Navisro AnalyticsCollaborative Filtering and Recommender Systems By Navisro Analytics
Collaborative Filtering and Recommender Systems By Navisro AnalyticsNavisro Analytics
 
Building a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engineBuilding a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engineNYC Predictive Analytics
 

Viewers also liked (7)

Developing a Movie recommendation Engine with Spark
Developing a Movie recommendation Engine with SparkDeveloping a Movie recommendation Engine with Spark
Developing a Movie recommendation Engine with Spark
 
Apache Spark RDD 101
Apache Spark RDD 101Apache Spark RDD 101
Apache Spark RDD 101
 
Collaborative filtering
Collaborative filteringCollaborative filtering
Collaborative filtering
 
Active Learning in Collaborative Filtering Recommender Systems : a Survey
Active Learning in Collaborative Filtering Recommender Systems : a SurveyActive Learning in Collaborative Filtering Recommender Systems : a Survey
Active Learning in Collaborative Filtering Recommender Systems : a Survey
 
Recommender Systems with Apache Spark's ALS Function
Recommender Systems with Apache Spark's ALS FunctionRecommender Systems with Apache Spark's ALS Function
Recommender Systems with Apache Spark's ALS Function
 
Collaborative Filtering and Recommender Systems By Navisro Analytics
Collaborative Filtering and Recommender Systems By Navisro AnalyticsCollaborative Filtering and Recommender Systems By Navisro Analytics
Collaborative Filtering and Recommender Systems By Navisro Analytics
 
Building a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engineBuilding a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engine
 

Similar to Overview of recommender system

Big data certification training mumbai
Big data certification training mumbaiBig data certification training mumbai
Big data certification training mumbaiTejaspathiLV
 
Best data science courses in pune
Best data science courses in puneBest data science courses in pune
Best data science courses in puneprathyusha1234
 
Top data science institutes in hyderabad
Top data science institutes in hyderabadTop data science institutes in hyderabad
Top data science institutes in hyderabadprathyusha1234
 
best online data science courses
best online data science coursesbest online data science courses
best online data science coursesprathyusha1234
 
Lecture Notes on Recommender System Introduction
Lecture Notes on Recommender System IntroductionLecture Notes on Recommender System Introduction
Lecture Notes on Recommender System IntroductionPerumalPitchandi
 
Demystifying Recommendation Systems
Demystifying Recommendation SystemsDemystifying Recommendation Systems
Demystifying Recommendation SystemsRumman Chowdhury
 
Recommender systems
Recommender systemsRecommender systems
Recommender systemsTamer Rezk
 
case based recommendation approach for market basket data
case based recommendation approach for market basket datacase based recommendation approach for market basket data
case based recommendation approach for market basket datamniranjanmurthy
 
Modern Perspectives on Recommender Systems and their Applications in Mendeley
Modern Perspectives on Recommender Systems and their Applications in MendeleyModern Perspectives on Recommender Systems and their Applications in Mendeley
Modern Perspectives on Recommender Systems and their Applications in MendeleyKris Jack
 
Recommandation systems -
Recommandation systems - Recommandation systems -
Recommandation systems - Yousef Fadila
 
recommendation system techunique and issue
recommendation system techunique and issuerecommendation system techunique and issue
recommendation system techunique and issueNutanBhor
 
Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”Dakiry
 
Tag based recommender system
Tag based recommender systemTag based recommender system
Tag based recommender systemKaren Li
 
IntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdfIntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdfAlphaIssaghaDiallo
 
Recommendation Systems Roadtrip
Recommendation Systems RoadtripRecommendation Systems Roadtrip
Recommendation Systems RoadtripThe Real Dyl
 
Social Recommender Systems Tutorial - WWW 2011
Social Recommender Systems Tutorial - WWW 2011Social Recommender Systems Tutorial - WWW 2011
Social Recommender Systems Tutorial - WWW 2011idoguy
 

Similar to Overview of recommender system (20)

Big data certification training mumbai
Big data certification training mumbaiBig data certification training mumbai
Big data certification training mumbai
 
Best data science courses in pune
Best data science courses in puneBest data science courses in pune
Best data science courses in pune
 
Top data science institutes in hyderabad
Top data science institutes in hyderabadTop data science institutes in hyderabad
Top data science institutes in hyderabad
 
best online data science courses
best online data science coursesbest online data science courses
best online data science courses
 
Lecture Notes on Recommender System Introduction
Lecture Notes on Recommender System IntroductionLecture Notes on Recommender System Introduction
Lecture Notes on Recommender System Introduction
 
Filtering content bbased crs
Filtering content bbased crsFiltering content bbased crs
Filtering content bbased crs
 
Demystifying Recommendation Systems
Demystifying Recommendation SystemsDemystifying Recommendation Systems
Demystifying Recommendation Systems
 
Recommender systems
Recommender systemsRecommender systems
Recommender systems
 
case based recommendation approach for market basket data
case based recommendation approach for market basket datacase based recommendation approach for market basket data
case based recommendation approach for market basket data
 
Modern Perspectives on Recommender Systems and their Applications in Mendeley
Modern Perspectives on Recommender Systems and their Applications in MendeleyModern Perspectives on Recommender Systems and their Applications in Mendeley
Modern Perspectives on Recommender Systems and their Applications in Mendeley
 
Recommandation systems -
Recommandation systems - Recommandation systems -
Recommandation systems -
 
recommendation system techunique and issue
recommendation system techunique and issuerecommendation system techunique and issue
recommendation system techunique and issue
 
Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”
 
Fashiondatasc
FashiondatascFashiondatasc
Fashiondatasc
 
Tag based recommender system
Tag based recommender systemTag based recommender system
Tag based recommender system
 
IntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdfIntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdf
 
Recommendation Systems Roadtrip
Recommendation Systems RoadtripRecommendation Systems Roadtrip
Recommendation Systems Roadtrip
 
Lec7 collaborative filtering
Lec7 collaborative filteringLec7 collaborative filtering
Lec7 collaborative filtering
 
Recommender system
Recommender system Recommender system
Recommender system
 
Social Recommender Systems Tutorial - WWW 2011
Social Recommender Systems Tutorial - WWW 2011Social Recommender Systems Tutorial - WWW 2011
Social Recommender Systems Tutorial - WWW 2011
 

More from Stanley Wang

Sparql a simple knowledge query
Sparql  a simple knowledge querySparql  a simple knowledge query
Sparql a simple knowledge queryStanley Wang
 
Ontologies and semantic web
Ontologies and semantic webOntologies and semantic web
Ontologies and semantic webStanley Wang
 
Ontology model and owl
Ontology model and owlOntology model and owl
Ontology model and owlStanley Wang
 
Resource description framework
Resource description frameworkResource description framework
Resource description frameworkStanley Wang
 
Semantic web technology
Semantic web technologySemantic web technology
Semantic web technologyStanley Wang
 
Next generation big data bi
Next generation big data biNext generation big data bi
Next generation big data biStanley Wang
 
Data analytics as a service
Data analytics as a serviceData analytics as a service
Data analytics as a serviceStanley Wang
 
Distributed machine learning examples
Distributed machine learning examplesDistributed machine learning examples
Distributed machine learning examplesStanley Wang
 
Distributed machine learning
Distributed machine learningDistributed machine learning
Distributed machine learningStanley Wang
 
Fundamental of deep learning
Fundamental of deep learningFundamental of deep learning
Fundamental of deep learningStanley Wang
 
Graph analytic and machine learning
Graph analytic and machine learningGraph analytic and machine learning
Graph analytic and machine learningStanley Wang
 
Big data analytic market opportunity
Big data analytic market opportunityBig data analytic market opportunity
Big data analytic market opportunityStanley Wang
 
A sdn based application aware and network provisioning
A sdn based application aware and network provisioningA sdn based application aware and network provisioning
A sdn based application aware and network provisioningStanley Wang
 

More from Stanley Wang (15)

Sparql a simple knowledge query
Sparql  a simple knowledge querySparql  a simple knowledge query
Sparql a simple knowledge query
 
Ontologies and semantic web
Ontologies and semantic webOntologies and semantic web
Ontologies and semantic web
 
Ontology model and owl
Ontology model and owlOntology model and owl
Ontology model and owl
 
Resource description framework
Resource description frameworkResource description framework
Resource description framework
 
Semantic web technology
Semantic web technologySemantic web technology
Semantic web technology
 
Next generation big data bi
Next generation big data biNext generation big data bi
Next generation big data bi
 
Data analytics as a service
Data analytics as a serviceData analytics as a service
Data analytics as a service
 
Distributed machine learning examples
Distributed machine learning examplesDistributed machine learning examples
Distributed machine learning examples
 
Distributed machine learning
Distributed machine learningDistributed machine learning
Distributed machine learning
 
Fundamental of deep learning
Fundamental of deep learningFundamental of deep learning
Fundamental of deep learning
 
Graph analytic and machine learning
Graph analytic and machine learningGraph analytic and machine learning
Graph analytic and machine learning
 
Big data analytic market opportunity
Big data analytic market opportunityBig data analytic market opportunity
Big data analytic market opportunity
 
A sdn based application aware and network provisioning
A sdn based application aware and network provisioningA sdn based application aware and network provisioning
A sdn based application aware and network provisioning
 
Hadoop ecosystem
Hadoop ecosystemHadoop ecosystem
Hadoop ecosystem
 
Hadoop ecosystem
Hadoop ecosystemHadoop ecosystem
Hadoop ecosystem
 

Recently uploaded

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 

Recently uploaded (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 

Overview of recommender system

  • 1. Overview of Recommender System STANLEY WANG SOLUTION ARCHITECT, TECH LEAD @SWANG68 http://www.linkedin.com/in/stanley-wang-a2b143b
  • 5. Which Areas can Recommender Benefit?
  • 6. Typical Architecture of Recommender System
  • 7. Recommender System Types • Collaborative Filtering System – aggregation of consumers’ preferences and recommendations to other users based on similarity in behavioral patterns; • Content-based System – supervised machine learning used to induce a classifier to discriminate between interesting and uninteresting items for the user; • Knowledge-based System – knowledge about users and products used to reason what meets the user’s requirements, using discrimination tree, decision support tools, case-based reasoning ;
  • 8. Paradigms of Recommender: Collaborative Filtering Collaborative: "Tell me what's popular among my peers"
  • 9. Paradigms of Recommender : Content Based Content-based: "Show me more of the same what I've liked"
  • 10. Paradigms of Recommender : Knowledge Based Knowledge-based: "Tell me what fits based on my needs"
  • 11. Paradigms of Recommender : Hybrid Hybrid: combinations of various inputs and/or composition of different mechanism
  • 12. Technology Evolution of Recommender
  • 13. abcd People who liked this also liked ….. How Collaborative Filtering works? 13 Item to Item User to User abcd User-to-User  Recommendations are made by finding users with similar tastes. Jane and Tim both liked Item 2 and disliked Item 3; it seems they might have similar taste, which suggests that in general Jane agrees with Tim. This makes Item 1 a good recommendation for Tim. This approach does not scale well for millions of users. Item-to-Item  Recommendations are made by finding items that have similar appeal to many users. Tom and Sandra are two users who liked both Item 1 and Item 4. That suggests that, in general, people who liked Item 4 will also like item 1, so Item 1 will be recommended to Tim. This approach is scalable to millions of users and millions of items.
  • 14. Collaborative Filtering • The most prominent approach to generate recommendations o used by large, commercial e-commerce sites o well-understood, various algorithms and variations exist o applicable in many domains (book, movies, songs, ..) • Approach o use the "wisdom of the crowd" to recommend items • Basic assumption and idea o Users give ratings to catalog items (implicitly or explicitly) o Customers who had similar tastes in the past, will have similar tastes in the future
  • 15. Collaborative Filtering Toolkit • Implemented Big Graph ML Algorithms, including: o Alternative Least Squares (ALS) o Sparse-ALS o SVD++ o LibFM (factorization machines) o GenSGD o Item-similarity based methods
  • 16. User-based Nearest-Neighbor CF • The basic technique: o Given an "active user" (Alice) and an item I not yet seen by Alice o The goal is to estimate Alice's rating for this item, e.g., by • find a set of users (peers) who liked the same items as Alice in the past and who have rated item I • use, e.g. the average of their ratings to predict, if Alice will like item I • do this for all items Alice has not seen and recommend the best-rated
  • 17. User-based Nearest-Neighbor CF • Some first questions o How do we measure similarity? o How many neighbors should we consider? o How do we generate a prediction from the neighbors' ratings? Item1 Item2 Item3 Item4 Item5 Alice 5 3 4 4 ? User1 3 1 2 3 3 User2 4 3 4 3 5 User3 3 3 1 5 4 User4 1 5 5 2 1
  • 19. KNN Nearest Neighbour Methods • unseen item needed to be classified • positive rated items • negative rated items • k = 3: negative • k = 5: positive A user-based kNN collaborative filtering method consists of two primary phases: • the neighborhood formation phase • the recommendation phase
  • 20. Measuring user similarity • A popular similarity measure in user-based CF: Pearson correlation a, b : users ra,p : rating of user a for item p P : set of items, rated both by a and b Possible similarity values between -1 and 1; = user's average ratings Item1 Item2 Item3 Item4 Item5 Alice 5 3 4 4 ? User1 3 1 2 3 3 User2 4 3 4 3 5 User3 3 3 1 5 4 User4 1 5 5 2 1 sim = 0,85 sim = 0,70 sim = -0,79 𝒓 𝒂, 𝒓 𝒃
  • 21. Making predictions • A common prediction function: • Calculate, whether the neighbors' ratings for the unseen item i are higher or lower than their average • Combine the rating differences – use the similarity as a weight • Add/subtract the neighbors' bias from the active user's average and use this as a prediction
  • 22. Item-based Collaborative Filtering • Basic idea: o Use the similarity between items (and not users) to make predictions • Example: o Look for items that are similar to Item5 o Take Alice's ratings for these items to predict the rating for Item5 Item1 Item2 Item3 Item4 Item5 Alice 5 3 4 4 ? User1 3 1 2 3 3 User2 4 3 4 3 5 User3 3 3 1 5 4 User4 1 5 5 2 1
  • 23. Pre-processing for Item-based CF • Item-based filtering does not solve the scalability problem itself • Pre-processing approach by Amazon.com in 2003 o Calculate all pair-wise item similarities in advance o The neighborhood to be used at run-time is typically rather small, because only items are taken into account which the user has rated o Item similarities are supposed to be more stable than user similarities • Memory requirements o Up to N2 pair-wise similarities to be memorized (N = number of items) in theory o In practice, this is significantly lower (items with no co-ratings) o Further reductions possible • Minimum threshold for co-ratings (items, which are rated at least by n users) • Limit the size of the neighborhood (might affect recommendation accuracy)
  • 24. Similarity Measure for Item based CF • Produces better results in item-to-item filtering o for some datasets, no consistent picture in literature • Ratings are seen as vector in n-dimensional space • Similarity is calculated based on the angle between the vectors • Adjusted cosine similarity o take average user ratings into account, transform the original ratings o U: set of users who have rated both items a and b
  • 25. Recommendation for Item-based CF • After computing the similarity between items we select a set of k most similar items to the target item and generate a predicted value of user u’s rating where J is the set of k similar items       Jj Jj j jisim jisimr ip ),( ),( )( ,u u,
  • 26. What is Latent Factor Model? Latent variables are introduced to account for the underlying reasons of a user’s choice. When the connections between the latent variables and observed variables (user, product, rating, etc.) are estimated during the training recommendations can be made to users by computing their possible interactions with each product through the latent variables;
  • 28. How does LSM Work?
  • 29.
  • 30. Latent Factor Model Algorithm
  • 31. LSM Algorithm : Alternating Least Square
  • 32. LSM Algorithm : Alternating Least Square
  • 33. LSM Algorithm : Stochastic Gradient Descent
  • 34. Context-Based Recommender Systems Overview  The recommender system uses additional data about the context of an item consumption;  For example, in the case of a restaurant the time or the location may be used to improve the recommendation compared to what could be performed without this additional source of information;  A restaurant recommendation for a Saturday evening when you go with your spouse should be different than a restaurant recommendation on a workday afternoon when you go with co- workers; abcd Overview
  • 35. Context-Based Recommender Systems  Recommend a vacation  Winter vs. summer  Recommend a purchase (e-retailer)  Gift vs. for yourself  Recommend a movie  To a student who wants to watch it on Saturday night with his girlfriend in a movie theater. Motivating Examples 35
  • 36.  Recommend music  The music that we like to hear is greatly affected by a context, such that can be thought of a mixture of our feelings (mood) and the situation or location (the theme) we associate it with.  Listen to Bruce Springteen "Born in USA" while driving along the 101.  Listening to Mozart's Magic Flute while walking in Salzburg. Motivating Examples Context-Based Recommender Systems 36
  • 37.  What is the user when asking for a recommendation?  Where (and when) the user is ?  What does the user (e.g., improve his knowledge or really buy a product)?  Is the user or with other ?  Are there products to choose or only ? Plain recommendation technologies forget to take into account the user context. Context-Based Recommender Systems What simple recommendation techniques ignore? 37
  • 38.  Obtain sufficient and reliable data describing the user context  Selecting the right information, i.e., relevant in a particular personalization task  Understand the impact of contextual dimensions on the personalization process  Computational model the contextual dimension in a more classical recommendation technology  For instance: how to extend Collaborative Filtering to include contextual dimensions? abcd Major obstacle for contextual computing Context-Based Recommender Systems 38
  • 39.  Each item in the data base is a candidate for splitting  Context defines all possible splits of an item ratings vector  We test all the possible splits – we do not have many contextual features  We choose one split (using a single contextual feature) that maximizes an impurity measure and whose impurity is higher than a threshold abcd Item Split - Intuition and Approach Context-Based Recommender Systems 39
  • 40.  Each item in the data base is a candidate for splitting  Context defines all possible splits of an item ratings vector  We test all the possible splits – we do not have many contextual features  We choose one split (using a single contextual feature) that maximizes an impurity measure and whose impurity is higher than a threshold abcd Item Split - Intuition and Approach Context-Based Recommender Systems 40
  • 44. Model of Context-Based Recommender Systems
  • 48. ?3 Active user Rating prediction Trust- based Collaborative Filtering Active users’ trusted friends Users tend to receive advice from people they trust, such as Trusted friends who can be defined explicitly by the users or inferred from social networks .
  • 49. • Global Metrics: computes a single global trust value for every single user (reputation on the network) • Pros: o Based on the whole community opinion • Cons: o Trust is subjective (controversial users) a b d c 1 3 32 3 Metrics of Trust based Recommender
  • 50. • Local Metrics: predicts (different) trust scores that are personalized from the point of view of every single user • Pros: o More accurate o Attack resistance • Cons: o Ignoring the “wisdom of the crowd” a b d c 1 5 32 ? Metrics of Trust based Recommender
  • 51. 51 Content-Based Recommender System • In content-based recommendations the system tries to recommend items that matches the User Profile; • The Profile is based on items user has liked in the past or explicit interests that he defines; • A content-based recommender system matches the profile of the item to the user profile to decide on its relevancy to the user;
  • 52. 52 Read update User Profile New books User Profile Recommender Systems Match recommendation Example of Content Based Recommender
  • 53. What is the “Content"? • The genre is actually not part of the content of a book • Most CB-recommendation methods originate from Information Retrieval (IR) field: o The item descriptions are usually automatically extracted (important words) o Goal is to find and rank interesting text documents (news articles, web pages) • Here are some examples: o Classical IR-based methods based on keywords o No expert recommendation knowledge involved o User profile (preferences) are rather learned than explicitly elicited
  • 54. Content Representation • Items stored in a database table
  • 55. Content Representation • Structured data  Small number of attributes  Each item is described by the same set of attributes  Known set of values that the attributes may have • Straightforward topic to work with  User’s profile contains positive rating for 1001, 1002, 1003  Would the user be interested in say Oscar, French cuisine, table service? • Unstructured data  No attribute names with well-defined values  Need to impose structure on free text before it can be used  Natural language complexity  Same word with different meanings  Different words with same meaning
  • 56. Term-Frequency - Inverse Document Frequency • Simple keyword representation has its problems o In particular when automatically extracted because • Not every word has similar importance • Longer documents have a higher chance to have an overlap with the user profile • Standard measure: TF-IDF o Encodes text documents as weighted term vector o TF: Measures, how often a term appears (density in a document) • Assuming that important terms appear more often • Normalization has to be done in order to take document length into account o IDF: Aims to reduce the weight of terms that appear in all documents
  • 57. TF - IDF Weighting • Term frequency tft,d of a term t in a document d • Inverse document frequency idft of a term t • TF*IDF weighting   k dk dt dt n n tf , , ,        t t df N idf log   tdt idftfdtw  ,,
  • 58. Example TF IDF Representation
  • 59. User Profiles • User profile consists of two main types of information  A model of the user’s preferences. e.g., a function that for any item predicts the likelihood that the user is interested in that item  User’s interaction history. e.g., items viewed by a user, items purchased by a user, search queries, etc. • “Manual” recommending approaches  Provide “check box” interface that let the users construct their own profiles of interests  A simple database matching process is used to find items that meet the specified criteria and recommend these to users. • Rule-based Recommendation  The system has rules to recommend other products based on user history  Rule to recommend sequel to a book or movie to customers who purchased the previous item in the series  Can capture common reasons for making recommendations