Module 17 · Finding Hidden Groups

Can you see the vibes in a pile of songs?

Lesson 17.1 · Groups Without Labels

Ashley · Felix

Three hundred dots, no labels. The clumps are already there.

Felix dumps 300 songs on a map: energy across, danceability up.

Nobody labeled anything. Ashley squints.

There’s a clump in the top right, a smear along the bottom, and a lonely cloud at the left.

She starts circling them with her finger before anyone says the word.

The short answer

Clustering: Clustering is grouping things by how similar their features are, with no labels telling you the groups in advance. It’s the main kind of unsupervised learning from Module 14. The model proposes the groups. Deciding what they mean comes after.

Try it yourself

Tap dots to color them into groups by eye. Aim for three groups that look like they belong together.

Tap dots to color them into groups by eye. Aim for three groups that look like they belong together.Unholy (feat. Kim Petras)Quevedo: Bzrp Music Sessions, Vol. 52I'm Good (Blue)La BachataMe Porto BonitoTití Me PreguntóUnder The InfluenceEfectoI Ain't WorriedOjitos LindosAs It WasMoscow MuleGlimpse of UsSweater WeatherAnother LoveCUFF ITNeveritaPROVENZALeft and Right (Feat. Jung Kook of BTS)Super Freaky GirlI Wanna Be YoursCalm Down (with Selena Gomez)Jimmy Cooks (feat. 21 Savage)LOKERATarotCaileBlinding LightsVegas (From the Original Motion Picture Soundtrack ELVIS)FerrariAtlantisSTAR WALKIN' (League of Legends Worlds Anthem)Te FelicitoPartyLa CorrienteRunning Up That Hill (A Deal With God)StarboyMIDDLE OF THE NIGHTDandelionsUntil I Found YouI Was Never ThereGATÚBELASex, Drugs, Etc.Something in the OrangeOne Kiss (with Dua Lipa)Gangsta's ParadiseSTAY (with Justin Bieber)BILLIE EILISH.About Damn TimeWAIT FOR U (feat. Drake & Tems)I Love You SoLA INOCENTEcómo dormiste?Hold Me Closerlovely (with Khalid)Call Out My NameWatermelon SugarSave Your TearsBonesWomanWhere Are You NowI'm Not The Only OneDo I Wanna Know?505Why'd You Only Call Me When You're High?Mary On A CrossWithout MeNo Role ModelzKesariya (From "Brahmastra")Heat WavesAfter LIKELA CANCIÓNBABY OTAKULa Llevo Al Cielo (Ft. Ñengo Flow)Night ChangesGhostBad Habitsdrivers licenseThe HillsDie For Youtraitorgood 4 uDon’t Blame MeHappier Than EverBelieverEvergreen (You Didn’t Deserve Me At All)Daddy IssuesMiss YouOnly Love Can Hurt Like ThisBad Decisions (with BTS & Snoop Dogg)NumbBelly DancerBam Bam (feat. Ed Sheeran)Locked out of HeavenRevengeTHATS WHAT I WANTThe Real Slim ShadyBetty (Get Money)Shut DownYonaguniLo Siento BB:/ (with Bad Bunny & Julieta Venegas)Un RatitoFeliz Cumpleaños FerxxoDos Mil 16Un CocoPerfectSomeone You LovedHeatherdeja vuEverybody Wants To Rule The WorldSoftcoreMr. BrightsideabcdefuYou ProofThe NightsThere's Nothing Holdin' Me BackThe Mottoeverything i wantedHopeINDUSTRY BABY (feat. Jack Harlow)Till I CollapseFirst ClassSupermanBeggin'FreaksTalk that TalkPepasProhibidoxAndreaShape of YouPeaches (feat. Daniel Caesar & Giveon)augustIn The StarshappierEnemy (with JID) - from the series Arcane League of LegendsEvery Breath You TakeCreepIn the EndEasy On MeLost in the Fire (feat. The Weeknd)Levitating (feat. DaBaby)positionsSomething Just Like ThisLeave Before You Love Me (with Jonas Brothers)Wake Me UpWords (feat. Zara Larsson)Bad Memories (feat. Elley Duhé & FAST BOY)Crazy What Love Can DoLet Me Down SlowlyBoredEverybody Dies In Their NightmaresHighway to HellBack In BlackOne DanceStanTHE LONELIESTShinunoga E-WaDynamitePink VenomYet To ComeLOVE DIVEMEMORIASPUNTO 40X ÚLTIMA VEZLos CachosOtro AtardecerNormalYo No Soy CelosoMe Fui de VacacionesLivin' On A PrayerSomewhere Only We KnowRunning Up That Hill (A Deal With God) - 2018 RemasterInfinityBlank SpaceHymn for the WeekendMemoriesPhotographSay You Won't Let GoLoverMAMIIIThunderHouse of MemoriesStressed OutTake on MeClean White Noise - Loopable with no fadeAll of MePink + WhiteLostSeven Nation ArmyLosing My ReligionEverlongFeel Good Inc.ApocalypseHotel California - 2013 RemasterHave You Ever Seen The RainRock and A Hard PlaceCloserLet Me Love You7 ringsLevitatingNeed to KnowTreat You BetterYou RightHips Don't Lie (feat. Wyclef Jean)Leave The Door OpenShallowDon't Be ShyHot In Itbad guyDeep Down (feat. Never Dull)Jocelyn FloresStill D.R.E.EnvolverBamba (feat. Aitch & BIA)Sweet Child O' MineThunderstruckGod's PlanHUMBLE.goosebumpsYKWIM?Pumped Up KicksRun BTSYo Voy (feat. Daddy Yankee)La SantaEnséñame a BailarAguaceroI'm Still StandingWhat Makes You BeautifulLove Yourselfyou broke me firstPayphoneHeartbreak AnniversaryDemonsLittle Dark AgeYou Get Me So HighSmells Like Teen SpiritShut Up and DanceNumbChop Suey!KICK BACKdouble takeWasted On YouNo LieI Like Me BetterAttentionStuck with U (with Justin Bieber)HappierToo Good At GoodbyesOne Last TimeMoth To A Flame (with The Weeknd)Bye ByeStreetsThat's What I LikeUptown Funk (feat. Bruno Mars)For My Hand (feat. Ed Sheeran)21 Reasons (feat. Ella Henderson)Last LastSeptemberWhere Did You Go? (feat. MNEK)Fuck Love (feat. Trippie Redd)SAD!MoonlightThe Night We MetR U Mine?Don't Stop Believin'Summer HighNo LoveMONTERO (Call Me By Your Name)Mask OffGodzilla (feat. Juice WRLD)All The Stars (with SZA)Love The Way You LieN95In Da ClubFair Trade (with Travis Scott)SICKO MODEFormulaMount EverestI WANNA BE YOUR SLAVEWashing Machine HeartLovers RockSUPERMODELNotionTek It - Sped UpYoungRush Hour (Feat. j-hope of BTS)ButterFEARLESSDÁKITIBesos Moja2DesesperadosSi Te La Encuentras Por AhíVolvíVolando - RemixParty en el Barrio (feat. Duki)DilesUN PESOSi Estuviésemos JuntosA Tu MercedAgostoEl ApagónABCUnholy (feat. Kim Petras)Quevedo: Bzrp Music Sessions, Vol. 52I'm Good (Blue)La BachataMe Porto BonitoTití Me PreguntóUnder The InfluenceEfectoI Ain't WorriedOjitos LindosAs It WasMoscow MuleGlimpse of UsSweater WeatherAnother LoveCUFF ITNeveritaPROVENZALeft and Right (Feat. Jung Kook of BTS)Super Freaky GirlI Wanna Be YoursCalm Down (with Selena Gomez)Jimmy Cooks (feat. 21 Savage)LOKERATarotCaileBlinding LightsVegas (From the Original Motion Picture Soundtrack ELVIS)FerrariAtlantisSTAR WALKIN' (League of Legends Worlds Anthem)Te FelicitoPartyLa CorrienteRunning Up That Hill (A Deal With God)StarboyMIDDLE OF THE NIGHTDandelionsUntil I Found YouI Was Never ThereGATÚBELASex, Drugs, Etc.Something in the OrangeOne Kiss (with Dua Lipa)Gangsta's ParadiseSTAY (with Justin Bieber)BILLIE EILISH.About Damn TimeWAIT FOR U (feat. Drake & Tems)I Love You SoLA INOCENTEcómo dormiste?Hold Me Closerlovely (with Khalid)Call Out My NameWatermelon SugarSave Your TearsBonesWomanWhere Are You NowI'm Not The Only OneDo I Wanna Know?505Why'd You Only Call Me When You're High?Mary On A CrossWithout MeNo Role ModelzKesariya (From "Brahmastra")Heat WavesAfter LIKELA CANCIÓNBABY OTAKULa Llevo Al Cielo (Ft. Ñengo Flow)Night ChangesGhostBad Habitsdrivers licenseThe HillsDie For Youtraitorgood 4 uDon’t Blame MeHappier Than EverBelieverEvergreen (You Didn’t Deserve Me At All)Daddy IssuesMiss YouOnly Love Can Hurt Like ThisBad Decisions (with BTS & Snoop Dogg)NumbBelly DancerBam Bam (feat. Ed Sheeran)Locked out of HeavenRevengeTHATS WHAT I WANTThe Real Slim ShadyBetty (Get Money)Shut DownYonaguniLo Siento BB:/ (with Bad Bunny & Julieta Venegas)Un RatitoFeliz Cumpleaños FerxxoDos Mil 16Un CocoPerfectSomeone You LovedHeatherdeja vuEverybody Wants To Rule The WorldSoftcoreMr. BrightsideabcdefuYou ProofThe NightsThere's Nothing Holdin' Me BackThe Mottoeverything i wantedHopeINDUSTRY BABY (feat. Jack Harlow)Till I CollapseFirst ClassSupermanBeggin'FreaksTalk that TalkPepasProhibidoxAndreaShape of YouPeaches (feat. Daniel Caesar & Giveon)augustIn The StarshappierEnemy (with JID) - from the series Arcane League of LegendsEvery Breath You TakeCreepIn the EndEasy On MeLost in the Fire (feat. The Weeknd)Levitating (feat. DaBaby)positionsSomething Just Like ThisLeave Before You Love Me (with Jonas Brothers)Wake Me UpWords (feat. Zara Larsson)Bad Memories (feat. Elley Duhé & FAST BOY)Crazy What Love Can DoLet Me Down SlowlyBoredEverybody Dies In Their NightmaresHighway to HellBack In BlackOne DanceStanTHE LONELIESTShinunoga E-WaDynamitePink VenomYet To ComeLOVE DIVEMEMORIASPUNTO 40X ÚLTIMA VEZLos CachosOtro AtardecerNormalYo No Soy CelosoMe Fui de VacacionesLivin' On A PrayerSomewhere Only We KnowRunning Up That Hill (A Deal With God) - 2018 RemasterInfinityBlank SpaceHymn for the WeekendMemoriesPhotographSay You Won't Let GoLoverMAMIIIThunderHouse of MemoriesStressed OutTake on MeClean White Noise - Loopable with no fadeAll of MePink + WhiteLostSeven Nation ArmyLosing My ReligionEverlongFeel Good Inc.ApocalypseHotel California - 2013 RemasterHave You Ever Seen The RainRock and A Hard PlaceCloserLet Me Love You7 ringsLevitatingNeed to KnowTreat You BetterYou RightHips Don't Lie (feat. Wyclef Jean)Leave The Door OpenShallowDon't Be ShyHot In Itbad guyDeep Down (feat. Never Dull)Jocelyn FloresStill D.R.E.EnvolverBamba (feat. Aitch & BIA)Sweet Child O' MineThunderstruckGod's PlanHUMBLE.goosebumpsYKWIM?Pumped Up KicksRun BTSYo Voy (feat. Daddy Yankee)La SantaEnséñame a BailarAguaceroI'm Still StandingWhat Makes You BeautifulLove Yourselfyou broke me firstPayphoneHeartbreak AnniversaryDemonsLittle Dark AgeYou Get Me So HighSmells Like Teen SpiritShut Up and DanceNumbChop Suey!KICK BACKdouble takeWasted On YouNo LieI Like Me BetterAttentionStuck with U (with Justin Bieber)HappierToo Good At GoodbyesOne Last TimeMoth To A Flame (with The Weeknd)Bye ByeStreetsThat's What I LikeUptown Funk (feat. Bruno Mars)For My Hand (feat. Ed Sheeran)21 Reasons (feat. Ella Henderson)Last LastSeptemberWhere Did You Go? (feat. MNEK)Fuck Love (feat. Trippie Redd)SAD!MoonlightThe Night We MetR U Mine?Don't Stop Believin'Summer HighNo LoveMONTERO (Call Me By Your Name)Mask OffGodzilla (feat. Juice WRLD)All The Stars (with SZA)Love The Way You LieN95In Da ClubFair Trade (with Travis Scott)SICKO MODEFormulaMount EverestI WANNA BE YOUR SLAVEWashing Machine HeartLovers RockSUPERMODELNotionTek It - Sped UpYoungRush Hour (Feat. j-hope of BTS)ButterFEARLESSDÁKITIBesos Moja2DesesperadosSi Te La Encuentras Por AhíVolvíVolando - RemixParty en el Barrio (feat. Duki)DilesUN PESOSi Estuviésemos JuntosA Tu MercedAgostoEl Apagón

What you just did has a name

Clustering

Clustering is grouping things by how similar their features are, with no labels telling you the groups in advance.

It’s the main kind of unsupervised learning from Module 14. The model proposes the groups. Deciding what they mean comes after.

A few more things

Similar means close

On the map, similar songs sit near each other. Clustering is finding the clumps of nearby points. With two features you can do it by eye. With twenty, you need the math, but it’s the same idea.

There’s no right answer to check

In classification you could grade the model against labels. Here there are none. Two people can circle different groups and both be defensible. That’s unsettling, and it’s honest.

It’s a first look, not a verdict

Clustering is what you do when you don’t know what the groups are yet. It hands you a starting guess. Everything after that is a person asking whether the guess makes sense.

Go deeper

The longer version, if you want it.

Distance in many dimensions

With two features, “close” is the distance on the page. With ten, it’s the same formula extended: square the difference in each feature, add them up, take the square root. That number is the straight-line distance in a ten-dimensional space nobody can picture, and it works the same way the two-dimensional one does.

Which features you include changes every distance and therefore every cluster. Add “release year” and songs regroup by era. Feature choice matters as much here as in Module 14.

Quick check

A store groups its shoppers by what they buy, with no idea ahead of time what the groups will be. What is that?

Let’s take it slower

Think of it as sorting a drawer of loose Lego with no instructions. You don’t have a list of categories. You start putting bricks that look alike together, and piles form. Some piles are obvious, some are arguable. That is clustering: let the similarities make the piles, then step back and ask what each pile is. A computer does the piling by measuring how alike things are. Nobody hands it labels first. What each pile means is a question for whoever is looking at it afterward.

More examples

1

The photo app’s albums

Your phone quietly groups photos that look alike: beach shots here, the dog there, screenshots in a pile. Nobody told it what a beach is. It noticed those photos resemble each other more than the rest, and left you to name the album.

2

New school, week one

Drop into a new school and by Friday you can see the cafeteria tables: theater kids, gamers, athletes. Nobody handed out a seating chart. People drifted toward people like them, and you named the groups from the outside.

Back to the question

So can you see the vibes?

Show the answer

Three of them, roughly: high-energy danceable stuff in the top right, slow low-energy songs bottom left, and a middle band of everything else. Ashley circled them in about ten seconds. The next lesson is how a computer does the circling.

One last question

How is clustering different from classification?

Talk Card

Talk Card · 17.1

Put things on a map by their features and groups start to appear without anyone labeling them. That’s clustering, and naming the groups is still a person’s job.

Data to AI · pettigrewlab.com/learn

Next lesson