131
recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma Music Recommendation and Discovery Remastered Tutorial @recsys, 2011

Music Recommendation and Discovery

Embed Size (px)

DESCRIPTION

Tutorial on Music Recommendation by Oscar Celma (Gracenote) and Paul Lamere (The Echo Nest).The world of music is changing rapidly. We are now just a few clicks away from being able to listen to nearly any song that has ever been recorded. This easy access to a nearly endless supply of music is changing how we explore, discover, share and experience music.As the world of online music grows, music recommendation and discovery tools become an increasingly important way for music listeners to engage with music. Commercial recommenders such as Last.fm, iTunes Genius and Pandora have enjoyed commercial and critical success. But how well do these systems really work? How good are the recommendations? How far into the "long tail" do these recommenders reach? In this tutorial we look at the current state-of-the-art in music recommendation and discovery. We examine current commercial and research systems, focusing on the advantages and the disadvantages of the various recommendation strategies. We look at some of the challenges in building music recommenders and we explore some of the novel techniques that are being used to improve future music recommendation and discovery systems.Òscar Celma is the Chief Innovation Officer at Barcelona Music and Audio Technologies (BMAT). In 2008, Òscar obtained his Ph.D. in Computer Science and Digital Communication, in the Pompeu Fabra University (Barcelona, Spain). Òscar has a book published by Springer, titled "Music Recommendation and Discovery: The Long Tail, Long Fail and Long Play in the Music Digital Age" (2010). He holds 2 patents (US2003009344 and JP2003323188, 2002) from his work on the Vocaloid system, a singing voice-synthesizer bought by Yamaha in 2004. Follow on Twitter: @ocelmaPaul Lamere is the Director of Developer Platform for The Echo Nest, a music intelligence company located in Boston. Paul is interested in using technology to help people explore for new and interesting music. He is active in both the music information retrieval and the recommender systems research communities. Paul authors a popular blog on music technology at MusicMachinery.com. Follow on Twitter: @plamere

Citation preview

Page 1: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Music Recommendation and Discovery Remastered

Tutorial

@recsys, 2011

Page 2: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

@plamere @ocelma

Page 3: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

INTRO CHORUS VERSE BRIDGE OUTRO

Page 4: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

INTRO CHORUS VERSE BRIDGE OUTRO

Page 5: Music Recommendation and Discovery

How many songs fit in my pocket?

10 Songs1979

1,000 Songs2001

10,000,000 Songs2011

Music Recommendation is importantrecsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 6: Music Recommendation and Discovery

What's so special about music?● Huge item space● Very low cost per item● Many item types● Low consumption time● Very high per-item reuse● Highly passionate users ● Highly contextual usage● Consumed in sequences● Large personal collections● Doesn't require our full attention● Highly Social

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 7: Music Recommendation and Discovery

Music recommendation is broken ...If you like Britney Spears you might like...

...Report on Pre-War Intelligence

Let's look at some of the issues ....

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 8: Music Recommendation and Discovery

What makes a good music recommendation?

● Relevance● Novelty / Serendipity● Transparency / Trust● Reach● Context

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 9: Music Recommendation and Discovery

● Relevance● Novelty / Serendipity● Transparency / Trust● Reach● Context

What makes a good music recommendation?

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 10: Music Recommendation and Discovery

Relevancerecsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 11: Music Recommendation and Discovery

Relevance – cold start new or unpopular items

If you like Gregorian Chants you might like Green Day

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 12: Music Recommendation and Discovery

Cold Start – New User - Enrollmentrecsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 13: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

New User – Implicit taste dataThe Audioscrobbler

Page 14: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Relevance – Metadata Mismatches

Page 15: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Relevance – Metadata Mismatches

Why?

Page 16: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Relevance - The grey sheep problem

Page 17: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Relevance – Cultural Mismatches

Page 18: Music Recommendation and Discovery

What makes a good music recommendation?

● Relevance● Novelty / Serendipity● Transparency / Trust● Reach● Context

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 19: Music Recommendation and Discovery

Novelty and Serendipityrecsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 20: Music Recommendation and Discovery

Popularity Bias - The Harry Potter Effect

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 21: Music Recommendation and Discovery

...also known as the Coldplay effectrecsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 22: Music Recommendation and Discovery

Novelty / Serendipity – the enemy

High stakes competitions focused on relevance can reduce novelty and serendipity

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 23: Music Recommendation and Discovery

● Relevance● Novelty / Serendipity● Transparency / Trust● Reach● Context

What makes a good music recommendation?

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 24: Music Recommendation and Discovery

“If you like NiN you might like Johnny Cash” The Opacity Problem

Why???

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 25: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Is this a good recommendation?

If you like Norah Jones ...

You might like Ravi Shankar

Page 26: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Is this a good recommendation?

If you like Norah Jones ...

You might like her father, Ravi Shankar

Page 27: Music Recommendation and Discovery

Photo cc by Mithrandir3

???????

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Brutal Death Metal Quiz

Page 28: Music Recommendation and Discovery

Brutal Death Metal Quiz

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 29: Music Recommendation and Discovery

Hacking the recommenderrecsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 30: Music Recommendation and Discovery

● Relevance● Novelty / Serendipity● Transparency / Trust● Reach● Context

What makes a good music recommendation?

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 31: Music Recommendation and Discovery

The limited reach of music recommendationHelp! I’m stuck in the head

Popu

lari

ty

Sales Rank83 Artists 6,659 Artists 239,798 Artists

0% ofrecommendations

48% of recommendations

Study by Dr. Oscar Celma - MTG UPF

52% of recommendations

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 32: Music Recommendation and Discovery

Personal discovery a challenge tooMusic Discovery Challenge

Listener StudyListeners 5,000

Average Songs Per User 3,500

Percent of songs never listened to

65%

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 33: Music Recommendation and Discovery

● Relevance● Novelty / Serendipity● Transparency / Trust● Reach● Context

What makes a good music recommendation?

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 34: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Music Recommendation is not just shopping

● It is not just for shopping, but...● Discovery● Exploration● Play ● Organization● Playlisting● Recommendation for groups● Devices

● Doesn't have to look like a spreadsheet!

Page 35: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Context: Tools for exploration

http://techno.org/electronic-music-guide/

Ishkur's Guide to Electronic Dance Music

Page 36: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

INTRO CHORUS VERSE BRIDGE OUTRO

Page 37: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 38: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 39: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Ingestion process

● Input data source● Own data, Customer, Labels, UGC, ...

● Protocol● Ingestion format

– TSV, XML, DDEX, XLS!, …● Method

– FTP, API, ...● Frequency

– Offline processing: Daily / weekly?– Data freshness!

● Documentation

Page 40: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Ingestion process

● Post-processing● Data cleaning: Duplicates, normalization● Allow customer to use its own Ids!

● Add links to external sources● Rosetta Stone

Page 41: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Ingestion process

● Considerations● Allow customer to use its own IDs when using the

rec. system.● How long does it take to process the whole

collection?● Incremental updates

Page 42: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 43: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 44: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering● Social-based● Content-based● Hybrid (combination)

Page 45: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based

“X similar to (or influenced by) Y”

Editorial metadata (Genre, Decades, Location, …)

Music Genome● Collaborative filtering● Social-based● Content-based● Hybrid (combination)

Page 46: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering

“people who listen to X also listen to Y”● Social-based● Content-based● Hybrid (combination)

Page 47: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering

“people who listen to X also listen to Y”● Social-based● Content-based● Hybrid (combination)

Page 48: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering

“people who listen to X also listen to Y”● Social-based● Content-based● Hybrid (combination)

Raw plays:

Page 49: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering

“people who listen to X also listen to Y”● Social-based● Content-based● Hybrid (combination)

Raw plays:

Normalize to [5..1]

Page 50: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering

“people who listen to X also listen to Y”● Social-based● Content-based● Hybrid (combination)

Probability distribution:0.32 , 0.24 , 0.18 , 0.1 , 0.07 , 0.04, 0.03 , 0.02

Normalize to [5..1]

Raw plays:

Page 51: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering

“people who listen to X also listen to Y”● Social-based● Content-based● Hybrid (combination)

Probability distribution:0.32 , 0.24 , 0.18 , 0.1 , 0.07 , 0.04, 0.03 , 0.02

Binary:1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 1

Raw plays:

Normalize to [5..1]

Page 52: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering

Matrix Factorization. E.g: SVD, NMF, ...● Social-based● Content-based● Hybrid (combination)

Page 53: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering● Social-based

● WebMIR [Schedl, 2008]

● Content-based● Hybrid (combination)

Content Reviews Lyrics Blogs Social Tags Bios Playlists

Page 54: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering● Social-based● Content-based

“X and Y sound similar”● Hybrid

Page 55: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering● Social-based● Content-based

Audio features

– Bag-of-frames (MFCC) [Aucouturier, 2004], Rhythm [Gouyon, 2005], Harmony [Gomez, 2006], ...

Similarity

– KL-divergence: GMM [Aucouturier, 2002]– EMD [Logan, 2001]– Euclidean: PCA [Cano, 2005]– Cosine: mean/var (feature vectors)– Ad-hoc

Page 56: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering● Social-based● Content-based

Audio features

– Bag-of-frames (MFCC) [Aucouturier, 2004], Rhythm [Gouyon, 2005], Harmony [Gomez, 2006], ...

Similarity

– KL-divergence: GMM [Aucouturier, 2002]– EMD [Logan, 2001]– Euclidean: PCA [Cano, 2005]– Cosine: mean/var (feature vectors)– Ad-hoc

http://xkcd.com/26/

Page 57: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

music recommendation approaches

● Expert-based● Collaborative filtering● Social-based● Content-based● Hybrid

Weighted (linear combination)– E.g CF * 0.2 + CT * 0.4 + CB * 0.4

Cascade– E.g 1st apply CF, then reorder by CT or CB

Switching

...

Page 58: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 59: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 60: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Search

● Metadata search

Bruce*

● Using filters: “Popular Irish bands from the 80s”

popularity:[8.0 TO 10.0] AND

iso_country:IE AND decade:1980

● Audio search (and similarity)● Query by example

Page 61: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Similarity

Page 62: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Similarity

Using Last.fm-360K dataset

? ? ?

Page 63: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Similarity

Using Last.fm-360K dataset

Page 64: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Similarity' (include feedback)

Using Last.fm-360K dataset

Page 65: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Beyond similarity

Page 66: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Recommendation

● “If Paul likes Radiohead he might also like X”

vs.● “If Oscar likes Radiohead he might also like Y”

Page 67: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Recommendation

● “If Paul likes Radiohead he might also like X”

vs.● “If Oscar likes Radiohead he might also like Y”

SIMILARITY != RECOMMENDATION

Page 68: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Recommendation

● To whom are we recommending? Phoenix-2 (UK, 2006)

Page 69: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

lamere @ last.fm

Page 70: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

mini-lamere's @ last.fm

● Clustering (k-means) lamere top-50 artists

Page 71: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

mini-lamere's @ last.fm

● Clustering (k-means) lamere top-50 artists

Page 72: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

@lamere - Radiohead

Page 73: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

@lamere - Radiohead

Vs. Radiohead similar artists...

Page 74: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

@lamere - Radiohead

Vs. Radiohead similar artists...

Page 75: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

@lamere - Radiohead

Vs. Radiohead similar artists...

Page 76: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

@lamere - Radiohead

Vs. Radiohead similar artists...

Page 77: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Personalization (Itemization?)

● ...but also which Radiohead era?

Page 78: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Analytics

● Big data processing● capture, storage, search, share, analysis and

visualization● (local) Trend detection● Tastemakers● ...

Page 79: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

INTRO CHORUS VERSE BRIDGE OUTRO

Page 80: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Real-world Music Recommendation

Page 81: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Real-world Music Recommendation

Page 82: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Contextual Web Crawl

Page 83: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Audio Processing

Page 84: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Hybrid Recommendation

Page 85: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

● 100 million registered users ● 37 million active monthly users● More than 900,000 songs in catalog● More than 90,000 artists in catalog● More than 11 billion thumbs● More than 1.9 billion stations● 95% of the collection was played in July 2011

Page 86: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Curation and Analysis

Page 87: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Weighting vectors

Page 88: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

For unknown artists

Page 89: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

For popular artists

Page 90: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 91: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 92: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Country: UK

Record Labels: Acid Jazz, Sony BMG, Columbia

Genres: Funk, Disco, Acid Jazz, Jazz Fusion, Pop-rock

Years active: 1992 - present

Associated acts: Brand New Heavies, Guru, Julian Perretta

Page 93: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Country: UK

Record Labels: Acid Jazz, Sony BMG, Columbia

Genres: Funk, Disco, Acid Jazz, Jazz Fusion, Pop-rock

Years active: 1992 - present

Associated acts: Brand New Heavies, Guru, Julian Perretta

Mood: upbeat, energetic

Rhythm: 120bpm, no rubato, high percusiveness

Key: Dm

Tags: acid jazz funk dance

Sounds like: Sereia (Tiefschwarz Radio Edit) by Mundo Azul

Page 94: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

“I want some upbeat songs from unknown US bands, similar to Radiohead“

http://ella.bmat.ws/collections/bmat/artists/radiohead/similar/tracks ?filter=mood:happy +speed:fast +iso_country:US +popularity:[0.0+TO+4.0]

Page 95: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

INTRO CHORUS VERSE BRIDGE OUTRO

Page 96: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Evaluation

"The key utility measure is user happiness. It seems reasonable to assume that relevance of the results is the most important factor: blindingly fast, useless answers do not make a user happy."

– "Introduction to Information Retrieval" (Manning, Raghavan, and Schutze, 2008)

Page 97: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

RMSE

Page 98: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

RMSE?

Page 99: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

NO RMSE

Page 100: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

NO RMSE (in music)

Page 101: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Evaluation

● Limitations of current metrics (RMSE, P/R, ROC, Spearman Rho, Kendall Tau, etc.)

● skewness– performed on test data that users chose to rate

● do not take into account– usefulness– novelty / serendipity– topology of the (item or user) similarity graph– ...

Page 102: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Evaluation

If no RMSE then...?● Predictive Accuracy vs. Perceived Quality● Does the recommendation help the user? (user

satisfaction)● Familiarity vs. Novelty

● Does the recommendation help the system?● $$$● Catalog exposure

Page 103: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

NEXT SONG?

Page 104: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

NEXT SONG?

?

Mean Reciprocal Rank+

User feedback

Page 105: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

??

Page 106: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 107: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Novelty & Relevance

Page 108: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Novelty & Relevance

Page 109: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Novelty & Relevance

Page 110: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Novelty & Relevance

Page 111: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Novelty & Relevance

WTF?

Page 112: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Novelty & Relevance

Emitt Rhodes

Page 113: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Novelty & Relevance

WHY as important as WHAT

Page 114: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Novelty & Relevance

WHY as important as WHAT

Page 115: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Novelty & Relevance

WHY as important as WHAT

Page 116: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Novelty & Relevance

WHY as important as WHAT

Page 117: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

WTF

Page 118: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Other evaluation techniques

How can I evaluate a 3rd party recommender: objective measures:

coverage, reach

subject measures:Focus on precision

Measure irrelevant results: The WTF test

Page 119: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

The WTF Test

Why the Freakomendation?

Page 120: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Evaluation

● Research Datasets● Million Song Dataset (CB, Social, Lyrics, Tags and

more)

http://labrosa.ee.columbia.edu/millionsong/

● Last.fm (CF)

http://ocelma.net/MusicRecommendationDataset/ – Last.fm 360K users <user, artist, total plays>– Last.fm 1K users <user, timestamp, artist, song>

Page 121: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 122: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Page 123: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Monitoring

● Do not monitor (or test) only the Algorithm, but the WHOLE recommender system: KPIs

● Catalog● % matches against full catalog?● Ingestion time?● Availability?

● Data & Algorithms● Time computing (e.g. Matrix factorization)?● Matrix size (e.g. ~10M x ~1M) in memory?

– 10M vectors with 300 floats per vector → ~11Gb

● Time computing vector similarity O(n)?

Page 124: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Monitoring

USAGE● Search

assert_equal(ID(search('The The')), ID('The The'))

● Similarity

assert(similarity(U2, REM) > 0.8)

assert(similarity(AC/DC, Rebecca Black) < 0.3)

● Recommendation

0) create_profile(@ocelma)

1) assert(similarity(@ocelma, U2) >= 0.8)

2) dislike(@ocelma, track(U2,Lemon))

3) assert(similarity(@ocelma, album(U2,Zooropa)) < 0.8)

Page 125: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Monitoring

● (web) API● Measure query response

– Jmeter, Apache Benchmark● Process real logs

– Fake (repeated) queries → fast because using cache?

Page 126: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Monitoring

● (web) API● Measure query response

– Jmeter, Apache Benchmark● Process real logs

– Fake (repeated) queries → fast because using cache?

Page 127: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

INTRO CHORUS VERSE BRIDGE OUTRO

Page 128: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Conclusions

● Music Recsys is multidisciplinary● search and filtering, musicology, data mining,

machine learning, personalization, social networks, text processing, complex networks, user interaction, information visualization, and signal processing (among others!)

● Music Recsys is important● These technologies will be integral in helping the next

generation of music listeners find that next favorite song

● Strong industry impact● Music Recsys is special

Page 129: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Further research

● How well do music recommenders work?● lack of standardized data sets and objective

evaluation methods

● How to recognize and incorporate context into recommendations? ● listener’s context (exercising, exploring, working,

driving, relaxing, and so on)

Page 130: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Further research

● How to make recommendations for all music? ● consider all music including new, unknown, and

unpopular content.

● What effect will automatic music recommenders have on the collective music taste?

Page 131: Music Recommendation and Discovery

recsys 2011 | music recommendation and discovery tutorial | paul lamere & oscar celma

Music Recommendation and Discovery Remastered

Tutorial

@recsys, 2011