Predicting Song Popularity
Regression models that measure how much a song's audio features affect its popularity on Spotify.
How much of a song’s popularity can you predict from how it sounds? With Navid Samiei, Asen Lee and Yichen Xin, I took 1,517 songs from the Spotify top 200 charts of 2020 and 2021 and modelled their popularity from Spotify’s audio features: danceability, energy, valence, tempo, loudness, the song’s key and more.
Models
We fit linear, polynomial, LASSO and random forest regression models, then combined them in a weighted ensemble.
- Higher-degree polynomial terms only overfit. The plain linear model did best of the polynomial family.
- LASSO dropped danceability, energy, speechiness and several keys from the model, with a test RMSE of about 15.9 popularity points.
- A tuned random forest reached an out-of-bag error of about 15.
- The ensemble did best when it gave the random forest the most weight, with a training RMSE of 12.76.
What we found
Audio features explain some of a song’s popularity, but not most of it. The things that seem to matter more, like how well known the artist already is, their past hits, what genres are popular at the time and who they collaborate with, aren’t in Spotify’s audio data at all.