Prediction of Spotify Chart Success Using Audio and Streaming Features
Cabansag, Ian Jacob and Ntegeka, Paul · 2025
Read Prediction of Spotify Chart Success Using Audio and Streaming Features by Cabansag, Ian Jacob and Ntegeka, Paul (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2508-11632.txt.
Introduction
Ian Jacob Cabansag and Paul Ntegeka ask, in a 2025 project paper, what makes a song climb the Spotify charts. Chart rank drives discovery, playlist spots, and income, so an early read on a song's odds has clear worth. The pair built a data set from all United States Top 200 daily charts in 2024, plus data from the Spotify Web API. It held 14,639 songs, with facts on each song and the sound traits of each track.
They tested four models in two phases, then tuned the best and checked class by class. Tree-based models won by a wide edge, with scores near 0.95 and accuracy near 97 percent. Even with stream counts and past rank stripped out, sound traits alone kept strong power. Labels can use that to scout acts and plan playlists.
Catalog record
| CREATOR | Cabansag, Ian Jacob and Ntegeka, Paul |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 20 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2508-11632
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Prediction of Spotify Chart Success Using Audio and Streaming Features Cabansag, Ian Jacob and Ntegeka, Paul Abstract 1. Abstract Spotify’s streaming charts offer a real-time lens into music popularity, driving discovery, playlists, and even revenue potential. Understanding what influences a song’s rise on these charts—especially early on—can guide marketing efforts, investment decisions, and even artistic direction. In this project, we developed a classification pipeline to predict a song’s chart success based on its musical characteristics and early engagement data. Using all 2024 U.S. Top 200 Spotify Daily Charts and the Spotify Web API, we built a dataset containing both metadata and audio features for 14,639 unique songs. The project was structured in two phases. First, we benchmarked four models: Logistic Regression, K Nearest Neighbors, Random Forest, and XGBoost—using a standard train-test split. In the second phase, we incorporated cross-validation, hyperparameter tuning, and detailed class-level evaluation to ensure robustness. Tree-based models consistently outperformed the rest, with Random Forest and XGBoost achieving macro F1-scores near 0.95 and accuracy around 97%. Even when stream count and rank history were excluded, models trained solely on audio attributes retained predictive power. These findings validate the potential of audio-based modeling in A&R scouting, playlist optimization, and hit forecasting—long before a track reaches critical mass. 2. Introduction Streaming platforms have transformed how music is distributed and consumed, and Spotify sits at the forefront of this ecosystem. Their Top 200 Daily Charts serve not only as a barometer of public taste, but also as a powerful determinant of a song’s trajectory—impacting visibility, playlist placement, and monetization opportunities. For artists and labels alike, anticipating whether a song will chart—and how high—has become both an art and a science. This project set out to answer whether machine learning models, trained on a combination of musical and engagement features, could classify a song’s peak chart rank. Specifically, we aimed to predict whether a song would land in the Top 10, Ranks 11–50, or Ranks 51–100. We pursued this through a rigorous modeling framework that began with simple benchmark models and evolved into a robust, cross-validated system based on feedback. Our goal was not only predictive accuracy but also model transparency, balance across class labels, and interpretability. 3. Purpose At its core, this project was motivated by a desire to understand how early signals in a song’s lifecycle—especially those available immediately upon release—might predict long-term chart success. Could a song’s composition alone, even without knowing how many people had streamed it, hint at whether it would become a hit? Three key objectives guided my approach: (1) Feasibility: Determine whether audio-only models could predict peak chart performance in the absence of stream counts or rank metadata. (2) Feature Impact: Evaluate the influence of metadata like stream count and previous rank when included or excluded from the model. (3) Model Rigor: Compare classifiers not just by accuracy but by macro-averaged F1, cross-validation variance, and class-specific performance. Initially, we approached the problem pragmatically, focusing on a simple holdout split and base model performance. But feedback from early reviewers helped pivot the project into a more rigorous direction. We learned to consider model variance, tuning sensitivity, and fairness across classes—insights that proved essential in developing models that are both powerful and trustworthy. 4. Data and Feature Engineering 4.1. Data Collection and Preparation To build the dataset, we combined two primary data sources: (1) the publicly available Spotify U.S. Top 200 Daily Charts, and (2) audio feature data retrieved from Spotify’s Web API. The first stage involved downloading all daily chart files for the year 2024 from SpotifyCharts.com. These files included song title, artist, Spotify URI, daily rank, stream count, and date. Using our R script music charts dataset usa, we concatenated over 360 CSV files into a single panel structure and extracted the peak rank that each track achieved during the year. This became the target label in the classification task. The second stage required enriching the dataset with track-level musical feature s. To do this, we used the Spotify Web API via the R package tinyspotifyr, which wraps Spotify’s GET endpoints with helpful token management and pagination functionality. Spotify’s API ( Spotify Developers 2024 ) allows querying up to 100 track IDs per call, so we chunked the list of unique track URIs into batches of 100. We implemented a batching function that dynamically created request URLs, handled query-string encoding, and used a loop to paginate through all entries. To respect Spotify’s API rate limits, we followed a conservative strategy of issuing at most 2 requests per second (well under the stated 10 requests/second soft limit). We also implemented a retry mechanism using exponential backoff, in case a 429 Too Many Requests response was encountered. This ensured that the process could run overnight without manual supervision and without being blocked. In total, over 14,600 unique tracks were enriched with the following 13 audio features: • danceability, energy, valence, tempo, acousticness, loudness, instrumentalness, speechiness, liveness, key, mode, duration_ms, and time_signature. An R script performed the data joining, merging the chart and feature datasets on Spotify’s unique track URI. We also ensured that each track had exactly one entry, retaining only the first appearance in cases of duplicate peak ranks. Missing values were rare (<0.2%) and were imputed using the mean of the training set during preprocessing. By the end of this process, we had created a high-integrity dataset that captured both quantitative musical structure and real-world streaming performance. This combination made it ideal for exploring predictive modeling applications in the music industry. 4.2. Feature Structure and Target Labeling We grouped each song into one of three outcome classes based on its peak chart position for the 2024 calendar year. This decision was grounded in how the music industry interprets ranking tiers. Songs that reach the Top 10 often benefit from large-scale promotion, frequent radio rotation, and premium playlist placements on Spotify’s editorial ecosystem. Tracks peaking in Ranks 11 to 50 represent rising or mid-level performers—often propelled by organic virality, targeted marketing, or loyal fanbases. Songs that fall within Ranks 51 to 100 are typically either early in their promotional cycle or plateaued in exposure. To implement this, We labeled each track using: • Top 10: Songs that peaked between Ranks 1 and 10 • 11–50: Songs that peaked between Ranks 11 and 50 • 51–100: Songs that peaked between Ranks 51 and 100 An analysis of class distribution revealed a notable imbalance: only 732 songs reached the Top 10 class, while the 11–50 and 51–100 categories contained 2,928 and 10,979 tracks, respectively. This imbalance had important implications for both training and evaluation. In particular, it reinforced the need to use macro-averaged F1-score, which treats each class equally regardless of frequency. It also prompted the use of stratified splitting in both the 80/20 holdout split and cross-validation, ensuring proportional representation of each class. Each song’s features were organized into two categories: metadata (e.g., streams, previous_rank, peak_rank, days_on_chart) and audio features extracted from the Spotify Web API. All numerical columns were scaled using StandardScaler to support models sensitive to feature magnitude, such as Logistic Regression and K-Nearest Neighbors. Categorical columns, such as mode and key, were encoded numerically. To test the value of musical composition alone, we also