# How Does iTunes' Genius Feature Work.

**URL:** <https://boards.straightdope.com/t/how-does-itunes-genius-feature-work/468224>\
**Category:** Factual Questions\
**Created:** [October 16, 2008, 4:42pm UTC](https://boards.straightdope.com/t/how-does-itunes-genius-feature-work/468224 "2008-10-16T16:42:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nobody\_Special](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@Nobody\_Special](https://boards.straightdope.com/u/Nobody_Special)\
**Post date:** [October 16, 2008, 4:42pm UTC](https://boards.straightdope.com/t/how-does-itunes-genius-feature-work/468224/1 "2008-10-16T16:42:47Z")

</div>

I assume the underlying code is a secret, but I’m interested in the basic theory for how iTunes uses the cumulative ratings of millions of user’s songs in the music library to recommend appropriate songs in a similar genre.

ITunes’ approach seems fundamentally different form Netflix’s recommendation which assumes that users who have a large number of similar likes and dislikes in common will have similar taste in unrated movies. Unlike previous recommendation algorithms, the genre of the movie is unimportant; it won’t suggest the “western” Blazing Saddles just because the user liked Shane and The Searchers.

With, iTunes, however, the genre, or at least type of song (loud, rap, oldie, etc.) is more important. If I select Peter, Paul and Mary’s “Leaving on a Jet Plane,” iTunes’ Genius recommends Bob Dylan’s “Blowing in the Wind.” How does it know that the two songs are musically a good match just because many people may have rated them the same? I’ve also rated a lot of hard rock, alternative and grunge songs highly. Why doesn’t it also suggest Nirvana’s “Smells Like Teen Spirit” since I’ve given it five stars, too. I’m sure I’m not the only one with all three of those songs both A) in my music library and B) with five star ratings.

---

<div class="post-metadata">

**Author:** ![SmackFu](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@SmackFu](https://boards.straightdope.com/u/SmackFu)\
**Post date:** [October 16, 2008, 5:11pm UTC](https://boards.straightdope.com/t/how-does-itunes-genius-feature-work/468224/2 "2008-10-16T17:11:25Z")

</div>

Actually, I’d suggest it probably uses iTunes purchase data as the underlying source, rather than ratings.

---

<div class="post-metadata">

**Author:** ![Really\_Not\_All\_That\_Bright](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@Really\_Not\_All\_That\_Bright](https://boards.straightdope.com/u/Really_Not_All_That_Bright)\
**Post date:** [October 16, 2008, 5:23pm UTC](https://boards.straightdope.com/t/how-does-itunes-genius-feature-work/468224/3 "2008-10-16T17:23:52Z")

</div>

> [@SmackFu](#):
>
> Actually, I’d suggest it probably uses iTunes purchase data as the underlying source, rather than ratings.

That’s what Amazon’s book-recommending feature does.

There’s a website called [Pandora](http://www.pandora.com/mgp.shtml) which allows you to stream songs online in the style of a particular song or band of your choice. It works using something called the “Music Genome Project”, which apparently involves in-depth analysis of each available song to find commonalities.

It then tells you what common elements it will use based on your song/band choice to select similar songs. A lot of the elements are pretty unintelligible to laymen, though; here’s an example (using Sepultura’s _Refuse/Resist_):

> [@](#):
>
> **Features Of This Song**  
> hard rock roots  
> repetitive melodic phrasing  
> demanding instrumental part writing  
> extensive vamping  
> minor key tonality  
> a dirty electric guitar solo  
> an aggressive male vocalist  
> thrasher drums  
> heavy instrumental improvisation

---

<div class="post-metadata">

**Author:** ![RealityChuck](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/realitychuck/32/195_2.png) [@RealityChuck](https://boards.straightdope.com/u/RealityChuck)\
**Post date:** [October 16, 2008, 5:36pm UTC](https://boards.straightdope.com/t/how-does-itunes-genius-feature-work/468224/4 "2008-10-16T17:36:07Z")

</div>

It seems to pick songs at random, not out of any other algorithm. There is a vague connection, I suppose (if you pick a blues song, you’ll get blues songs), but it’s not particularly sophisticated.

---

<div class="post-metadata">

**Author:** ![Really\_Not\_All\_That\_Bright](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@Really\_Not\_All\_That\_Bright](https://boards.straightdope.com/u/Really_Not_All_That_Bright)\
**Post date:** [October 16, 2008, 5:40pm UTC](https://boards.straightdope.com/t/how-does-itunes-genius-feature-work/468224/5 "2008-10-16T17:40:27Z")

</div>

> [@RealityChuck](#):
>
> It seems to pick songs at random, not out of any other algorithm. There is a vague connection, I suppose (if you pick a blues song, you’ll get blues songs), but it’s not particularly sophisticated.

What’s odd is that it seems to aggregate all the features of a given band’s songs together, so if you pick a band like Faith No More it will get really confused- the first three songs it picked when I did that were _Enter Sandman_, Extreme’s _More than Words_, and something by Duke Ellington (which I assumed it decided was related to _I’m Easy_, a ballad by Keith Carradine that FNM did an ironic cover of)
