IDEAS home Printed from https://ideas.repec.org/p/osf/socarx/vba8f_v1.html

Genre and Temporal Dynamics in Spotify Popularity Prediction

Author

Listed:
  • Hausner, Ryan

Abstract

The rise of music streaming platforms has created modern access to track-specific data, allowing for analysis of song popularity. While existing literature has explored audio features as predictors of popularity, less attention has been given to the combined role of genre and temporal dynamics — this paper addresses that gap. Using a public dataset of 114,000 tracks from 2000 to 2022, we apply a data science framework combining iterative OLS regression, interaction modeling, random forest, and rolling coefficient analysis to explore the predictive power of Spotify audio characteristics: loudness, danceability, energy, liveness, and valence, as well as genre and release year. Four iterative OLS regression models are developed using an 80/20 train/test split, showing that genre accounts for the largest gain in explained variation, increasing R-squared from 0.042 to 0.434. A genre-year interaction model further improves R-squared to 0.641, with interaction terms jointly significant confirmed by a partial F-test (F(80,318,243)=653.72, p<.001), implying that the effect of genre on popularity varies across time — specifically that different genres rise and fall in prevalence at different periods. A random forest model confirms these findings, ranking genre and year significantly higher in feature importance based on impurity reduction. The most accurate model achieves RMSE=9.64 on a popularity scale of 0-100, with remaining variance likely attributable to unmeasured factors such as Spotify playlist algorithms and social media exposure. Rolling coefficient analysis further reveals the instability of audio features over time — energy's contribution to popularity turned strongly negative post-2010, while danceability peaked around 2015-2016 — suggesting that the streaming era has fundamentally reshaped which acoustic properties drive popularity.

Suggested Citation

  • Hausner, Ryan, 2026. "Genre and Temporal Dynamics in Spotify Popularity Prediction," SocArXiv vba8f_v1, Center for Open Science.
  • Handle: RePEc:osf:socarx:vba8f_v1
    DOI: 10.31219/osf.io/vba8f_v1
    as

    Download full text from publisher

    File URL: https://osf.io/download/69cc55c860c88fd37251f569/
    Download Restriction: no

    File URL: https://libkey.io/10.31219/osf.io/vba8f_v1?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Wright, Marvin N. & Ziegler, Andreas, 2017. "ranger: A Fast Implementation of Random Forests for High Dimensional Data in C++ and R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 77(i01).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Backer, David & Billing, Trey, 2024. "Forecasting the prevalence of child acute malnutrition using environmental and conflict conditions as leading indicators," World Development, Elsevier, vol. 176(C).
    2. Luis A Barboza & Shu-Wei Chou-Chen & Paola Vásquez & Yury E García & Juan G Calvo & Hugo G Hidalgo & Fabio Sanchez, 2023. "Assessing dengue fever risk in Costa Rica by using climate variables and machine learning techniques," PLOS Neglected Tropical Diseases, Public Library of Science, vol. 17(1), pages 1-13, January.
    3. Mariana Oliveira & Luís Torgo & Vítor Santos Costa, 2021. "Evaluation Procedures for Forecasting with Spatiotemporal Data," Mathematics, MDPI, vol. 9(6), pages 1-27, March.
    4. Bokelmann, Björn & Lessmann, Stefan, 2024. "Improving uplift model evaluation on randomized controlled trial data," European Journal of Operational Research, Elsevier, vol. 313(2), pages 691-707.
    5. Joel Podgorski & Oliver Kracht & Luis Araguas-Araguas & Stefan Terzer-Wassmuth & Jodie Miller & Ralf Straub & Rolf Kipfer & Michael Berg, 2024. "Groundwater vulnerability to pollution in Africa’s Sahel region," Nature Sustainability, Nature, vol. 7(5), pages 558-567, May.
    6. Heinisch, Katja & Scaramella, Fabio & Schult, Christoph, 2025. "Assumption errors and forecast accuracy: A partial linear instrumental variable and double machine learning approach," IWH Discussion Papers 6/2025, Halle Institute for Economic Research (IWH).
    7. Nayiri Galestian Pour & Soudabeh Shemehsavar, 2024. "Learning from high dimensional data based on weighted feature importance in decision tree ensembles," Computational Statistics, Springer, vol. 39(1), pages 313-342, February.
    8. Bazyli Czyżewski & Jakub Staniszewski & Joanna Staniszewska & Marta Guth, 2025. "Does Increasing Agricultural Efficiency Contribute to Food Security—Trade‐Offs of Value Addition in Crop Production?," Sustainable Development, John Wiley & Sons, Ltd., vol. 33(S1), pages 939-970, November.
    9. Arjan S. Gosal & Janine A. McMahon & Katharine M. Bowgen & Catherine H. Hoppe & Guy Ziv, 2021. "Identifying and Mapping Groups of Protected Area Visitors by Environmental Awareness," Land, MDPI, vol. 10(6), pages 1-14, May.
    10. David Dorn & Florian Schoner & Moritz Seebacher & Lisa Simon & Ludger Woessmann, 2024. "Multidimensional Skills on LinkedIn Profiles: Measuring Human Capital and the Gender Skill Gap," Papers 2409.18638, arXiv.org, revised May 2025.
    11. Albert Stuart Reece & Gary Kenneth Hulse, 2022. "European Epidemiological Patterns of Cannabis- and Substance-Related Congenital Neurological Anomalies: Geospatiotemporal and Causal Inferential Study," IJERPH, MDPI, vol. 20(1), pages 1-35, December.
    12. Michael Parzinger & Lucia Hanfstaengl & Ferdinand Sigg & Uli Spindler & Ulrich Wellisch & Markus Wirnsberger, 2020. "Residual Analysis of Predictive Modelling Data for Automated Fault Detection in Building’s Heating, Ventilation and Air Conditioning Systems," Sustainability, MDPI, vol. 12(17), pages 1-18, August.
    13. Nance Nerissa & Mertens Andrew & Gerds Thomas Alexander & Wang Zeyi & Torp-Pedersen Christian & van der Laan Mark & Kvist Kajsa & Lange Theis & Zareini Bochra & Petersen Maya L., 2025. "Applying the Causal Roadmap to longitudinal national registry data in Denmark: A case study of second-line diabetes medication and dementia," Journal of Causal Inference, De Gruyter, vol. 13(1), pages 1-18.
    14. Chen, Jianbao & Shen, Jiamin & Ke, Nan, 2025. "Assessing the impact of new energy demonstration city policy on industrial carbon intensity using machine learning," Economic Analysis and Policy, Elsevier, vol. 87(C), pages 1690-1707.
    15. Van Belle, Jente & Guns, Tias & Verbeke, Wouter, 2021. "Using shared sell-through data to forecast wholesaler demand in multi-echelon supply chains," European Journal of Operational Research, Elsevier, vol. 288(2), pages 466-479.
    16. Tania L. Maxwell & Mark D. Spalding & Daniel A. Friess & Nicholas J. Murray & Kerrylee Rogers & Andre S. Rovai & Lindsey S. Smart & Lukas Weilguny & Maria Fernanda Adame & Janine B. Adams & William E., 2024. "Soil carbon in the world’s tidal marshes," Nature Communications, Nature, vol. 15(1), pages 1-16, December.
    17. Albert Stuart Reece & Gary Kenneth Hulse, 2022. "European Epidemiological Patterns of Cannabis- and Substance-Related Body Wall Congenital Anomalies: Geospatiotemporal and Causal Inferential Study," IJERPH, MDPI, vol. 19(15), pages 1-38, July.
    18. Andrew P. Wheeler & Wouter Steenbeek, 2021. "Mapping the Risk Terrain for Crime Using Machine Learning," Journal of Quantitative Criminology, Springer, vol. 37(2), pages 445-480, June.
    19. Philipp Bach & Victor Chernozhukov & Malte S. Kurz & Martin Spindler & Sven Klaassen, 2021. "DoubleML -- An Object-Oriented Implementation of Double Machine Learning in R," Papers 2103.09603, arXiv.org, revised Jun 2024.
    20. Marchetto, Elisa & Da Re, Daniele & Tordoni, Enrico & Bazzichetto, Manuele & Zannini, Piero & Celebrin, Simone & Chieffallo, Ludovico & Malavasi, Marco & Rocchini, Duccio, 2023. "Testing the effect of sample prevalence and sampling methods on probability- and favourability-based SDMs," Ecological Modelling, Elsevier, vol. 477(C).

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:osf:socarx:vba8f_v1. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: OSF (email available below). General contact details of provider: https://arabixiv.org .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.