SlideShare a Scribd company logo
1 of 36
Download to read offline
Recommender Systems &
Collaborative Filtering
Yusuke Yamamoto
Faculty of Informatics
Senior Lecturer
yusuke_yamamoto@acm.org
Data Engineering (Recommender System 1)
2019.10.16
1 Introduction to
Recommender Systems
2
3
Predicts user preference model and
decides which items should be recommended.
Recommender System
The most familiar recommender system: Amazon(1/2)
4画像出典:https://www.amazon.co.jp/
Recommend items which users will like
The most familiar recommender system: Amazon(2/2)
5画像出典:https://www.amazon.co.jp/
Recommend items related to a target item
SNS x Recommender System
6
User recommendation
on Twitter
Event recommendation
on Facebook
Movie recommendation from Netflix
7
Apple Music x Recommender System
8
News x Recommender System
9
Computational Ads
10画像出典:http://www.apple-style.com
Recommendation Systems appear anywhere!
11
Why using Recommender Systems?
12
Value for users
● Find things that are interesting
● Narrow down the set of choices
Value for providers
● Increase trust and customer loyalty
● Increase sales, click rates, conversion etc.
● Discover new things..
● Opportunities for promotion
Definition of Recommender System
13
Favorite artist setting
Purchase
Dwell time
Clickthrough
Bookmark
…
Rating Comment
Retweet
…
Explicit preference info.
+
Predicts user preference model and
decides which items should be recommended.
Implicit preference info.
Favorite genre setting
Favorite brand setting
Definition of Recommender System
14
Ad
MusicProduct
…
Web pageUser
Event
Predicts user preference model and
decides which items should be recommended.
Paradigms of Recommender System
15Dietmar Jannach氏のRecommender Systems: An IntroductionのPPT資料より
Recommender
System
item score
item1 0.9
item2 1
item3 0.3
… …
User profile
& context
Recommendation
list for a target user
1
Community
data2
Item features
3
User model
3 main approach for recommendation
16
Collaborative filtering
Decides which items should be recommended,
based on past behavior logs of similar users
Content-based filtering
Decides which items should be recommended,
based on item features and its metadata
Knowledge-based filtering
Decides which items should be recommended,
based on preference info. which users explicitly show
Problem Definition
17
§ User u’s behavior data setBu={b1, b2, …, bn}
§ Item set I = {i1, i2, …, im}
§ User u’s profile(user model):pu
§ Relevance between pu and item i :Rel (pu, i)
Input
Output
Ranked list of item set I (∀ i ∈ I), based on Rel (pu, i)
s.t.
l How to model user profiles?
l How to compute relevance?
Point
Content list of this lecture
18
1. Collaborative Filtering (CF)
2. Content-based Filtering
3. Link analysis
4. Advanced CF
Lecture + Programming Work
as you can see how methods work
References for this lecture
画像出典:https://www.amazon.co.jp/ 19
2 Collaborative Filtering – Part 1
20
Collaborative Filtering (CF)
21
Approach
Uses the preferences of a community data to
recommend items
Basis assumption
• Users appropriately give ratings to items
• Patterns in the rating data help us predict the ratings
Practical points
• Large commercial eCommerce sites use the CF
• Well-understood
• Applicable in many domains if only rating data can be
obtained
Example
22
How much does
Alice like Item5?Q.
Alice
Item 1 Item 2 Item 3 Item 4 Item 5
?
Items purchased by Alice and her ratings
Un-purchased item
A
✓ ✓ ✓ ✓
Let’s observe other users’ ratings
23
Can we predict Alice’s rating using others’ ratings?Q.
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
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
24
Dissimilar
Similar
Let’s observe other users’ ratings
Can we predict Alice’s rating using others’ ratings?Q.
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
Let’s observe other users’ ratings
25
Alice will give about 5 to item 5?
Can we predict Alice’s rating using others’ ratings?Q.
User-based Collaborative Filtering
26
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
Use ratings of the users with similar preferenceIdea:
Point
How to compute user similarity
How do we combine the ratings of the similar users
to predict Alice’s rating?
Which/how many similar users’ ratings to consider?
1.
2.
3.
Similarity between users(1/3)
27
Pearson Correlation Coefficient
𝑠𝑖𝑚 𝑢', 𝑢) =
∑,∈-(𝑟01,, − 𝑟01
)(𝑟04,, − 𝑟04
)
∑,∈- 𝑟01,, − 𝑟01
5
∑,∈- 𝑟01,, − 𝑟01
5
:User a, b𝑢', 𝑢)
𝑟01,, :User a’s rating to item i
𝐼 : Item set
𝑟01
𝑟04, :User a, b’s average rating
Similarity between users(2/3)
28
𝑠𝑖𝑚 𝑢', 𝑢) =
∑,∈-(𝑟01,, − 𝑟01
)(𝑟04,, − 𝑟04
)
∑,∈- 𝑟01,, − 𝑟01
5
∑,∈- 𝑟04,, − 𝑟04
5
Item1 Item2 Item3 Item4
Alice 5 3 4 4
User1 3 1 2 3
User2 4 3 4 3
User3 3 3 1 5
User4 1 5 5 2
sim=0.71
sim=-0.79
Pearson Correlation Coefficient
Similarity between users(3/3)
29
𝑠𝑖𝑚 𝑢', 𝑢) =
∑,∈-(𝑟01,, − 𝑟01
)(𝑟04,, − 𝑟04
)
∑,∈- 𝑟01,, − 𝑟01
5
∑,∈- 𝑟04,, − 𝑟04
5
Item1 Item2 Item3 Item4
Alice 5 3 4 4
User1 3 1 2 3
User2 4 3 4 3
User3 3 3 1 5
User4 1 5 5 2
sim = ?
Let’s calculate
Pearson Correlation Coefficient
Pearson correlation(1/2)
30
A measure of the linear correlation between
two variables X and Y
0
1
2
3
4
5
6
Item1 Item2 Item3 Item4
Alice
User1
User4
Ratingscore
sim(Alice, User4)=-0.79
sim(Alice, User1)=0.85
(It takes differences in rating behavior into account)
Pearson correlation(2/2)
31
0
1
2
3
4
5
6
Item1 Item2 Item3 Item4
Alice
User1
User2
Ratingscore
sim(Alice, User2)=0.71
A measure of the linear correlation between
two variables X and Y
(It takes differences in rating behavior into account)
Predicting rating scores based on user similarity(1/3)
32
A typical prediction function
𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01
+
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01
)
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢)
:Target user a𝑢'
𝑟0,, :Rating score of u for item i
𝑖 :Target item i
𝑟01 :User a’s average rating score
𝑈A :A set of similar users to ua
Predicting rating scores based on user similarity(2/3)
33
𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01
+
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01
)
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢)
Item5 sim Average rating
Alice ? 1 4
User1 3 0.85 2.4
User2 5 0.71 3.8
Similar
users
4.0 +
0.85× 3 − 2.4 + 0.71×(5 − 3.8)
0.85 + 0.71
= 4.87
Predicted rating score of Alice for Item5
A typical prediction function
Predicting rating scores based on user similarity(3/3)
34
𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01
+
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01
)
∑0∈=>
𝑠𝑖𝑚(𝑢', 𝑢)
Item5 sim Average rating
Alice ? 1 4
User1 3 0.85 2.4
User2 5 0.71 3.8
Similar
users
4.0 +
0.85× 3 − 2.4 + 0.71×(5 − 3.8)
0.85 + 0.71
= 4.87
Predicted rating score of Alice for Item5
A typical prediction function
How to choose similar users?Q.
How to decide “similar users” (nearest neighbors)?
35
Set a threshold for user similarity
• If a user has higher similarity than a threshold,
he/she can be regarded as a “similar” user
• In worst cases, no similar users will be found
Focus on top K similar users (kNN method)
• If a user ranks at the top K similarity, he/she can be
regarded as a similar user
• K is often set to between 50 〜 200
• In worst cases, a system uses rating information of users
with low similarity
Summary of User-based Collaborative Filtering
36
Basic Approach
• User similarities are obtained from a rating matrix
• Based on rating scores of similar users, systems predict
a rating score of target user for a target item
Similarity Calculation
Pearson correlation coefficient is often used
Selection of Similar Users
Top K users with high similarity are often selected as
similar users

More Related Content

What's hot

Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introduction
Liang Xiang
 
Recommender system algorithm and architecture
Recommender system algorithm and architectureRecommender system algorithm and architecture
Recommender system algorithm and architecture
Liang Xiang
 
Deep Learning for Recommender Systems
Deep Learning for Recommender SystemsDeep Learning for Recommender Systems
Deep Learning for Recommender Systems
inovex GmbH
 

What's hot (20)

Collaborative filtering
Collaborative filteringCollaborative filtering
Collaborative filtering
 
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 system
Recommender systemRecommender system
Recommender system
 
Project presentation
Project presentationProject presentation
Project presentation
 
Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introduction
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
[Final]collaborative filtering and recommender systems
[Final]collaborative filtering and recommender systems[Final]collaborative filtering and recommender systems
[Final]collaborative filtering and recommender systems
 
Recommendation System
Recommendation SystemRecommendation System
Recommendation 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?
 
Content based filtering
Content based filteringContent based filtering
Content based filtering
 
Movie recommendation system using collaborative filtering system
Movie recommendation system using collaborative filtering system Movie recommendation system using collaborative filtering system
Movie recommendation system using collaborative filtering system
 
Recent advances in deep recommender systems
Recent advances in deep recommender systemsRecent advances in deep recommender systems
Recent advances in deep recommender systems
 
Recommender system algorithm and architecture
Recommender system algorithm and architectureRecommender system algorithm and architecture
Recommender system algorithm and architecture
 
Tutorial: Context In Recommender Systems
Tutorial: Context In Recommender SystemsTutorial: Context In Recommender Systems
Tutorial: Context In Recommender Systems
 
An introduction to Recommender Systems
An introduction to Recommender SystemsAn introduction to Recommender Systems
An introduction to Recommender Systems
 
Chapter 02 collaborative recommendation
Chapter 02   collaborative recommendationChapter 02   collaborative recommendation
Chapter 02 collaborative recommendation
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Movies Recommendation System
Movies Recommendation SystemMovies Recommendation System
Movies Recommendation System
 
Deep Learning for Recommender Systems
Deep Learning for Recommender SystemsDeep Learning for Recommender Systems
Deep Learning for Recommender Systems
 

Similar to Collaborative Filtering 1: User-based CF

collaborativefiltering-150228122057-conversion-gate02.pptx
collaborativefiltering-150228122057-conversion-gate02.pptxcollaborativefiltering-150228122057-conversion-gate02.pptx
collaborativefiltering-150228122057-conversion-gate02.pptx
ABINASHPADHY6
 
Empirical Evaluation of Active Learning in Recommender Systems
Empirical Evaluation of Active Learning in Recommender SystemsEmpirical Evaluation of Active Learning in Recommender Systems
Empirical Evaluation of Active Learning in Recommender Systems
University of Bergen
 

Similar to Collaborative Filtering 1: User-based CF (20)

A recommendation engine for your php application
A recommendation engine for your php applicationA recommendation engine for your php application
A recommendation engine for your php application
 
Collaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CFCollaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CF
 
Recommendation Systems
Recommendation SystemsRecommendation Systems
Recommendation Systems
 
Introduction to Recommender System
Introduction to Recommender SystemIntroduction to Recommender System
Introduction to Recommender System
 
Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence
 
collaborativefiltering-150228122057-conversion-gate02.pptx
collaborativefiltering-150228122057-conversion-gate02.pptxcollaborativefiltering-150228122057-conversion-gate02.pptx
collaborativefiltering-150228122057-conversion-gate02.pptx
 
Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...
Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...
Evaluating and Enhancing Efficiency of Recommendation System using Big Data A...
 
Collaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemCollaborative Filtering Recommendation System
Collaborative Filtering Recommendation System
 
Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...
 
Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...Studying the Dialogue Between Users and Developers of Free Apps in the Google...
Studying the Dialogue Between Users and Developers of Free Apps in the Google...
 
20320140501009 2
20320140501009 220320140501009 2
20320140501009 2
 
Recommendation Systems Roadtrip
Recommendation Systems RoadtripRecommendation Systems Roadtrip
Recommendation Systems Roadtrip
 
Rokach-GomaxSlides.pptx
Rokach-GomaxSlides.pptxRokach-GomaxSlides.pptx
Rokach-GomaxSlides.pptx
 
Rokach-GomaxSlides (1).pptx
Rokach-GomaxSlides (1).pptxRokach-GomaxSlides (1).pptx
Rokach-GomaxSlides (1).pptx
 
Movie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial IntelligenceMovie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial Intelligence
 
Teacher training material
Teacher training materialTeacher training material
Teacher training material
 
Empirical Evaluation of Active Learning in Recommender Systems
Empirical Evaluation of Active Learning in Recommender SystemsEmpirical Evaluation of Active Learning in Recommender Systems
Empirical Evaluation of Active Learning in Recommender Systems
 
Introduction to recommender systems
Introduction to recommender systemsIntroduction to recommender systems
Introduction to recommender systems
 
IRJET- Hybrid Recommendation System for Movies
IRJET-  	  Hybrid Recommendation System for MoviesIRJET-  	  Hybrid Recommendation System for Movies
IRJET- Hybrid Recommendation System for Movies
 
IRJET - Online Product Scoring based on Sentiment based Review Analysis
IRJET - Online Product Scoring based on Sentiment based Review AnalysisIRJET - Online Product Scoring based on Sentiment based Review Analysis
IRJET - Online Product Scoring based on Sentiment based Review Analysis
 

More from Yusuke Yamamoto

More from Yusuke Yamamoto (20)

WISE2019 presentation
WISE2019 presentationWISE2019 presentation
WISE2019 presentation
 
Link Analysis
Link AnalysisLink Analysis
Link Analysis
 
Matrix Factorization
Matrix FactorizationMatrix Factorization
Matrix Factorization
 
データ解析技術2019
データ解析技術2019データ解析技術2019
データ解析技術2019
 
研究室紹介資料2019
研究室紹介資料2019研究室紹介資料2019
研究室紹介資料2019
 
ACM WebSci 2018 presentation/発表資料
ACM WebSci 2018 presentation/発表資料ACM WebSci 2018 presentation/発表資料
ACM WebSci 2018 presentation/発表資料
 
不便益システムシンポジウム2018発表資料
不便益システムシンポジウム2018発表資料不便益システムシンポジウム2018発表資料
不便益システムシンポジウム2018発表資料
 
KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319
KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319
KURA HOUR拡大版・附属図書館研究開発室セミナー 20180319
 
批判的ウェブ情報探索リテラシー尺度の開発
批判的ウェブ情報探索リテラシー尺度の開発批判的ウェブ情報探索リテラシー尺度の開発
批判的ウェブ情報探索リテラシー尺度の開発
 
東北地区大学図書館協議会 第72回総会講演資料20170922
東北地区大学図書館協議会 第72回総会講演資料20170922東北地区大学図書館協議会 第72回総会講演資料20170922
東北地区大学図書館協議会 第72回総会講演資料20170922
 
WI2研究会 Vol.10発表資料20170708
WI2研究会 Vol.10発表資料20170708WI2研究会 Vol.10発表資料20170708
WI2研究会 Vol.10発表資料20170708
 
情報学応用論20170622
情報学応用論20170622情報学応用論20170622
情報学応用論20170622
 
情報学総論20170623
情報学総論20170623情報学総論20170623
情報学総論20170623
 
情報学総論20170616
情報学総論20170616情報学総論20170616
情報学総論20170616
 
ビッグデータとITイノベーション
ビッグデータとITイノベーションビッグデータとITイノベーション
ビッグデータとITイノベーション
 
ウェブと研究者との関わり方20150302
ウェブと研究者との関わり方20150302ウェブと研究者との関わり方20150302
ウェブと研究者との関わり方20150302
 
大学の研究力を考える
大学の研究力を考える大学の研究力を考える
大学の研究力を考える
 
研究力DOWNシナリオ
研究力DOWNシナリオ研究力DOWNシナリオ
研究力DOWNシナリオ
 
URAかるた 〜URA業務の理解・共有を促進するゲーム教材
URAかるた 〜URA業務の理解・共有を促進するゲーム教材URAかるた 〜URA業務の理解・共有を促進するゲーム教材
URAかるた 〜URA業務の理解・共有を促進するゲーム教材
 
ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」
ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」
ポスター「科研費申請書の教科書 ~ 作成に意味はあったのか?」
 

Recently uploaded

Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
 
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit RiyadhCytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Abortion pills in Riyadh +966572737505 get cytotec
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
nirzagarg
 
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
vexqp
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
wsppdmt
 
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
ptikerjasaptiker
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
nirzagarg
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
q6pzkpark
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
cnajjemba
 
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
wsppdmt
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
gajnagarg
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
ranjankumarbehera14
 
怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
vexqp
 

Recently uploaded (20)

Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt
 
Sequential and reinforcement learning for demand side management by Margaux B...
Sequential and reinforcement learning for demand side management by Margaux B...Sequential and reinforcement learning for demand side management by Margaux B...
Sequential and reinforcement learning for demand side management by Margaux B...
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit RiyadhCytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
 
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
 
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
 

Collaborative Filtering 1: User-based CF

  • 1. Recommender Systems & Collaborative Filtering Yusuke Yamamoto Faculty of Informatics Senior Lecturer yusuke_yamamoto@acm.org Data Engineering (Recommender System 1) 2019.10.16
  • 3. 3 Predicts user preference model and decides which items should be recommended. Recommender System
  • 4. The most familiar recommender system: Amazon(1/2) 4画像出典:https://www.amazon.co.jp/ Recommend items which users will like
  • 5. The most familiar recommender system: Amazon(2/2) 5画像出典:https://www.amazon.co.jp/ Recommend items related to a target item
  • 6. SNS x Recommender System 6 User recommendation on Twitter Event recommendation on Facebook
  • 8. Apple Music x Recommender System 8
  • 12. Why using Recommender Systems? 12 Value for users ● Find things that are interesting ● Narrow down the set of choices Value for providers ● Increase trust and customer loyalty ● Increase sales, click rates, conversion etc. ● Discover new things.. ● Opportunities for promotion
  • 13. Definition of Recommender System 13 Favorite artist setting Purchase Dwell time Clickthrough Bookmark … Rating Comment Retweet … Explicit preference info. + Predicts user preference model and decides which items should be recommended. Implicit preference info. Favorite genre setting Favorite brand setting
  • 14. Definition of Recommender System 14 Ad MusicProduct … Web pageUser Event Predicts user preference model and decides which items should be recommended.
  • 15. Paradigms of Recommender System 15Dietmar Jannach氏のRecommender Systems: An IntroductionのPPT資料より Recommender System item score item1 0.9 item2 1 item3 0.3 … … User profile & context Recommendation list for a target user 1 Community data2 Item features 3 User model
  • 16. 3 main approach for recommendation 16 Collaborative filtering Decides which items should be recommended, based on past behavior logs of similar users Content-based filtering Decides which items should be recommended, based on item features and its metadata Knowledge-based filtering Decides which items should be recommended, based on preference info. which users explicitly show
  • 17. Problem Definition 17 § User u’s behavior data setBu={b1, b2, …, bn} § Item set I = {i1, i2, …, im} § User u’s profile(user model):pu § Relevance between pu and item i :Rel (pu, i) Input Output Ranked list of item set I (∀ i ∈ I), based on Rel (pu, i) s.t. l How to model user profiles? l How to compute relevance? Point
  • 18. Content list of this lecture 18 1. Collaborative Filtering (CF) 2. Content-based Filtering 3. Link analysis 4. Advanced CF Lecture + Programming Work as you can see how methods work
  • 19. References for this lecture 画像出典:https://www.amazon.co.jp/ 19
  • 20. 2 Collaborative Filtering – Part 1 20
  • 21. Collaborative Filtering (CF) 21 Approach Uses the preferences of a community data to recommend items Basis assumption • Users appropriately give ratings to items • Patterns in the rating data help us predict the ratings Practical points • Large commercial eCommerce sites use the CF • Well-understood • Applicable in many domains if only rating data can be obtained
  • 22. Example 22 How much does Alice like Item5?Q. Alice Item 1 Item 2 Item 3 Item 4 Item 5 ? Items purchased by Alice and her ratings Un-purchased item A ✓ ✓ ✓ ✓
  • 23. Let’s observe other users’ ratings 23 Can we predict Alice’s rating using others’ ratings?Q. 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
  • 24. 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 24 Dissimilar Similar Let’s observe other users’ ratings Can we predict Alice’s rating using others’ ratings?Q.
  • 25. 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 Let’s observe other users’ ratings 25 Alice will give about 5 to item 5? Can we predict Alice’s rating using others’ ratings?Q.
  • 26. User-based Collaborative Filtering 26 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 Use ratings of the users with similar preferenceIdea: Point How to compute user similarity How do we combine the ratings of the similar users to predict Alice’s rating? Which/how many similar users’ ratings to consider? 1. 2. 3.
  • 27. Similarity between users(1/3) 27 Pearson Correlation Coefficient 𝑠𝑖𝑚 𝑢', 𝑢) = ∑,∈-(𝑟01,, − 𝑟01 )(𝑟04,, − 𝑟04 ) ∑,∈- 𝑟01,, − 𝑟01 5 ∑,∈- 𝑟01,, − 𝑟01 5 :User a, b𝑢', 𝑢) 𝑟01,, :User a’s rating to item i 𝐼 : Item set 𝑟01 𝑟04, :User a, b’s average rating
  • 28. Similarity between users(2/3) 28 𝑠𝑖𝑚 𝑢', 𝑢) = ∑,∈-(𝑟01,, − 𝑟01 )(𝑟04,, − 𝑟04 ) ∑,∈- 𝑟01,, − 𝑟01 5 ∑,∈- 𝑟04,, − 𝑟04 5 Item1 Item2 Item3 Item4 Alice 5 3 4 4 User1 3 1 2 3 User2 4 3 4 3 User3 3 3 1 5 User4 1 5 5 2 sim=0.71 sim=-0.79 Pearson Correlation Coefficient
  • 29. Similarity between users(3/3) 29 𝑠𝑖𝑚 𝑢', 𝑢) = ∑,∈-(𝑟01,, − 𝑟01 )(𝑟04,, − 𝑟04 ) ∑,∈- 𝑟01,, − 𝑟01 5 ∑,∈- 𝑟04,, − 𝑟04 5 Item1 Item2 Item3 Item4 Alice 5 3 4 4 User1 3 1 2 3 User2 4 3 4 3 User3 3 3 1 5 User4 1 5 5 2 sim = ? Let’s calculate Pearson Correlation Coefficient
  • 30. Pearson correlation(1/2) 30 A measure of the linear correlation between two variables X and Y 0 1 2 3 4 5 6 Item1 Item2 Item3 Item4 Alice User1 User4 Ratingscore sim(Alice, User4)=-0.79 sim(Alice, User1)=0.85 (It takes differences in rating behavior into account)
  • 31. Pearson correlation(2/2) 31 0 1 2 3 4 5 6 Item1 Item2 Item3 Item4 Alice User1 User2 Ratingscore sim(Alice, User2)=0.71 A measure of the linear correlation between two variables X and Y (It takes differences in rating behavior into account)
  • 32. Predicting rating scores based on user similarity(1/3) 32 A typical prediction function 𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01 + ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01 ) ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) :Target user a𝑢' 𝑟0,, :Rating score of u for item i 𝑖 :Target item i 𝑟01 :User a’s average rating score 𝑈A :A set of similar users to ua
  • 33. Predicting rating scores based on user similarity(2/3) 33 𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01 + ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01 ) ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) Item5 sim Average rating Alice ? 1 4 User1 3 0.85 2.4 User2 5 0.71 3.8 Similar users 4.0 + 0.85× 3 − 2.4 + 0.71×(5 − 3.8) 0.85 + 0.71 = 4.87 Predicted rating score of Alice for Item5 A typical prediction function
  • 34. Predicting rating scores based on user similarity(3/3) 34 𝑝𝑟𝑒𝑑𝑖𝑐𝑡 𝑢', 𝑖 = 𝑟01 + ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) ? (𝑟0,, − 𝑟01 ) ∑0∈=> 𝑠𝑖𝑚(𝑢', 𝑢) Item5 sim Average rating Alice ? 1 4 User1 3 0.85 2.4 User2 5 0.71 3.8 Similar users 4.0 + 0.85× 3 − 2.4 + 0.71×(5 − 3.8) 0.85 + 0.71 = 4.87 Predicted rating score of Alice for Item5 A typical prediction function How to choose similar users?Q.
  • 35. How to decide “similar users” (nearest neighbors)? 35 Set a threshold for user similarity • If a user has higher similarity than a threshold, he/she can be regarded as a “similar” user • In worst cases, no similar users will be found Focus on top K similar users (kNN method) • If a user ranks at the top K similarity, he/she can be regarded as a similar user • K is often set to between 50 〜 200 • In worst cases, a system uses rating information of users with low similarity
  • 36. Summary of User-based Collaborative Filtering 36 Basic Approach • User similarities are obtained from a rating matrix • Based on rating scores of similar users, systems predict a rating score of target user for a target item Similarity Calculation Pearson correlation coefficient is often used Selection of Similar Users Top K users with high similarity are often selected as similar users