CMSC471 Final Project
The Sound of Popularity: Decoding Spotify Hits
We test whether tempo, energy, and mood (valence) explain Spotify popularity—using only tracks that are already hits in our dataset.
What did you listen to this morning on your way to school or work? Maybe it was during a gym session, a daily run, while cooking dinner, or while finishing homework late at night. In today's world, music is deeply woven into everyday life. As streaming platforms expand and listening habits evolve, the music market keeps growing alongside them.
But what actually makes one hit more popular than another? Is it a faster tempo, higher energy, or a sunnier mood? We work with Spotify audio features on tracks from 2015–2025 that already score 45 or higher on Spotify’s popularity index—roughly the more recognizable end of the catalog—so we are not asking “hit vs. flop,” but whether tempo, energy, and valence separate bigger hits from smaller ones within that slice.
Are faster songs more popular?
Drag the tempo slider to explore tracks across BPM ranges and test whether higher speed consistently aligns with higher popularity.
Switch view
Track explorer = slider + one song · Tempo vs popularity = full scatter plot
Selected track
-
-
Tempo: -- BPM | Popularity: --
Click the button to open the selected song on YouTube.
Loading chart…
Popularity: Spotify’s 0–100 score ranks a track vs. others on the platform—not a play count.
You decide! Do you prefer songs with faster tempos or slower ones? What tempo is your favorite song on this list?
If you flip to Tempo vs popularity, the scatter plot makes the same story visible at a glance: our slice of hits is messy, and there is no clean line tying faster tempos to bigger songs. Tracks in the 80–90 popularity band sit at all kinds of BPMs—slow, mid, and fast—so tempo alone does not explain who rises to the top.
Another takeaway is that BPM alone does not always match how fast a song feels. A track with a lower tempo can still sound energetic if its rhythm uses many eighth or sixteenth notes, while a higher-tempo song can feel calmer when notes are more spread out. In other words, a song at 71 BPM may feel like 142 BPM in perception, and the reverse can also happen.
What about energy?
So tempo alone does not explain popularity—what else can we try? It seems plausible that how energetic a song sounds—not just how fast it is—might line up with popularity. Drag across the energy chart below—does isolating high-energy tracks produce a clearer popularity pattern, or does the curve stay flat?
Brush an energy range (0 = calm, 1 = intense)
Popularity density for tracks in your brush
Loading chart…
Energy: Spotify’s 0–1 measure of how intense or busy a track sounds—not tempo or mood.
Drag the brush from low to high energy and watch the popularity density on the right: the shape stays stubbornly similar. Calm tracks and intense ones both spread across the same popularity bands—there is no obvious “energy sweet spot” where hits pile up. Energy does not look like the single dial that solves our problem either.
Can a song make me happier?
What if we flip the script? A lot of us reach for music to feel better or unwind—so maybe the mood of a track shapes how popular it is with a wide audience. It seems plausible that a sunnier song would outperform a downbeat one. Each cell below is a valence × energy pocket; color is median popularity in that pocket (brighter = more popular), and the number inside each cell is the track count for that pocket. Hover for the full breakdown—if mood alone drove hits, sunnier columns would light up across the board.
Loading chart…
Valence: Spotify’s 0–1 “sunniness” from audio—not lyrics or whether the song cheers you up.
We might be getting somewhere—but not quite. There is some visible correlation between energy and valence, which makes sense: higher-energy songs often sound sunnier too.
Looking at the heatmap, lower-valence cells do tend to appear slightly brighter, but the difference is too small to be meaningful. So maybe not valence, then…
Do genres have an audio personality?
We have been looking at individual features—but what if we zoom out to entire genres? Each bubble below represents a genre, placed by its average energy and mood. Bubble size shows how danceable it is on average. Hover a bubble to see its full audio fingerprint.
Loading chart…
Data: Averages computed from 1,000 sampled tracks per genre via the Spotify dataset.
Genres do claim distinct sonic territory. Classical sits alone in the calm, introspective corner. Metal surges into the high-energy, low-valence zone. Latin and R&B share the sunny, rhythmic corner—and their large bubbles confirm they are also the most danceable. Pop and K-Pop cluster near the center, accessible across moods.
But even within a genre, individual songs scatter widely—which is exactly why no single dial predicts a hit.
What it all means
OK—maybe all these visualizations have helped you realize something we learned while parsing the data: a popular song is not made by its statistics. A track you love might not land with your friend; each song hits each listener differently, and that is part of what makes music great.
The answer is simple: there is not one clear-cut way to decide what makes a song popular.
One more thing. Using the three attributes we looked at—tempo, energy, and valence—let us try to point you toward songs you might like based on similarity.
Which songs are living in the same sonic neighborhood as yours?
Each track sits at a point in 3D space defined by its energy, mood (valence), and tempo. Type a song or artist below—your pick lights up in gold, and the 20 closest matches glow pink. Drag to rotate; scroll to zoom.
Search: English tracks from our CSVs only. Neighbors use energy, valence, and tempo.
Hopefully you learned something today. Maybe next time you queue up a favorite, you will pay a little more attention to its mood, energy, and tempo—or maybe our 3D viz pointed you to something new worth a spin.
Whatever it is, happy listening!