Research

What Drives Music Popularity?: Residual Analysis of Exposure Bias

Members
Jiwoo Roh (solo)
My Role
Data, audio pipeline, modeling, Streamlit app
Project Period
Dec 2025 – Jan 2026
Data
6,849 temporal-split tracks · 9,544 audio-preview tracks (Apple Music + Spotify API)
Stack
Python · librosa · scikit-learn · Tableau · Streamlit

R² = 0.003audio features alone (MAE 14.17)
R² = 0.198best baseline: artist + momentum (MAE 12.07)
80.2%variance unexplained by pre-release signals
~20%of tracks fall in extreme residual tails

Abstract

Music-popularity studies typically optimize hit prediction from acoustic or metadata features, yet leave most real-world variance unexplained. Across 6,849 tracks split strictly by release chronology (5,479 earlier releases for training, 1,370 later releases held out), I show that audio features alone explain virtually none of track popularity (R² = 0.003, MAE = 14.17), while adding artist reputation and prior-release momentum reaches only R² = 0.198 (MAE = 12.07) — leaving 80.2% of variance outside pre-release signals. Rather than treating prediction error as noise, I analyze the residuals (actual − predicted) to expose structural discovery gaps: roughly 20% of tracks sit in the top or bottom 10% tails, where niche genres (Classical +3.75 pp, Children’s Music +2.06 pp, Metal +1.78 pp, Country +1.37 pp) are systematically underexposed despite matching artist baselines, whereas mainstream genres are amplified. Finally, I translate the 9,544-track audio-preview corpus into a live Streamlit producer tool (Sonic Analytics: Hit Predictor) that extracts librosa features, predicts a 0–100 score, and prescribes genre-specific “Doctor’s Orders” edits.

Research question

Most music-popularity studies ask what predicts a hit. This study reverses the lens: when popularity predictions fail, why? Instead of treating prediction error as noise to minimize away, I model expected popularity strictly from pre-release artist signals and inspect the residuals (actual − predicted) as a diagnostic signal for structural exposure gaps in recommendation and discovery systems.

Looking at prediction errors directly surfaces four phenomena that aggregate accuracy scores hide: hidden gems (tracks systematically underexposed despite strong artist baselines), surprise hits, genre-level discovery bias, and cumulative advantage in streaming visibility.

Data & temporal evaluation protocol

I merged track catalogs from the Apple Music dataset with Spotify Web API metadata (track popularity, artist popularity, follower counts, and release dates) and extracted acoustic descriptors directly from 30-second audio previews using librosa (tempo/BPM, RMS energy, spectral centroid brightness, and onset rhythm strength).

Temporal split
6,849 aligned tracks split strictly by release chronology to prevent temporal leakage: 5,479 earlier releases (80% train) and 1,370 later releases (20% holdout test).
Pre-release signals
Baseline features restricted strictly to information available before release: artist popularity, follower count, prior release performance (momentum), historical averages, and track duration.
Audio corpus
9,544 cleaned tracks with valid 30-second previews used for acoustic feature extraction, genre sonic fingerprinting, and training the companion Streamlit application.

Baseline modeling: audio vs. reputation vs. momentum

Evaluated on the held-out future releases (n = 1,370), acoustic features alone have virtually zero predictive power (R² = 0.003). Artist reputation establishes a modest cumulative-advantage baseline (R² = 0.104), and adding prior-release momentum nearly doubles explained variance to R² = 0.198 (MAE = 12.07). Yet even the strongest pre-release model leaves 80.2% of popularity variance unexplained — pointing to platform exposure, playlisting, timing, and viral dynamics outside intrinsic track properties.

Baseline ModelPre-Release FeaturesTest R²Test MAE
Audio onlyBPM, RMS energy, spectral centroid, rhythm strength0.00314.17
Artist onlyArtist popularity + follower count0.10413.34
Artist + momentumReputation + prior release performance + history + duration0.19812.07
Comparison of baseline R² and MAE across audio, artist reputation, and momentum models, plus 80.2% unexplained variance breakdown.
Held-out temporal evaluation (n = 1,370) and variance decomposition: audio alone explains 0.3%, pre-release signals explain 19.8%, and 80.2% lies outside pre-release metadata.

Residual analysis: isolating discovery gaps

Computing residual = actual − predicted separates expected career trajectories from systematic over- and under-performance. Using percentile thresholds rather than arbitrary raw cutoffs segments the catalog into three groups: Surprise Hits (top 10%), Expected Trajectory (middle 80%), and Underrated / Hidden Gems (bottom 10%). Plotting actual against predicted scores shows wide dispersion around the baseline: even among artists with identical predicted popularity (~45–60), actual track scores span nearly the entire 0–96 range.

Actual vs. predicted popularity scatter plot highlighting top-10% surprise hits and bottom-10% underrated tracks.
Actual vs. predicted popularity around the reputation + momentum baseline. Dashed boundaries mark the top-10% surprise-hit and bottom-10% underrated regimes.

Inspecting the full residual distribution reveals a clear asymmetry: roughly 20% of tracks sit in the extreme tails, and the negative tail extends much farther — down to −60 popularity points — indicating severe underexposure drops among tracks from otherwise established artists rather than symmetric random noise.

Residual distribution histogram showing the bottom-10% underrated tail, middle-80% expected trajectory, and top-10% surprise hits.
Residual distribution (Actual − Predicted): a heavier negative tail exposes under-surfaced tracks down to −60 points below expectation.

Structural exposure bias across genres

Comparing artist covariates across segments reveals a striking asymmetry. Underrated tracks match expected tracks on artist popularity, follower count, momentum, and duration — they are not produced by weaker artists. The sharpest separator is genre:

  • Niche genres are systematically underexposed: Classical (+3.75 pp), Children’s Music (+2.06 pp), Metal (+1.78 pp), and Country (+1.37 pp) are disproportionately overrepresented in the bottom-10% underrated segment relative to their catalog share.
  • Mainstream genres receive amplification: Surprise hits frequently come from artists with average or slightly weaker historical baselines, yet over-index in mainstream Pop, Rock, and R&B — consistent with algorithmic feedback loops favoring broad-appeal feeds.
Horizontal bar chart of top 10 genres overrepresented among underrated tracks, led by Classical, Children's Music, Metal, and Country.
Top 10 genres overrepresented in the bottom-10% underrated segment (segment share minus overall catalog share).

Product & ranking implications. Residual diagnostics translate directly into discovery interventions: residual-adjusted re-ranking to surface high-potential hidden gems, long-tail playlist diversification across niche genres, and fairer cold-start exposure for independent artists whose acoustic execution is strong but algorithmic visibility is low.

Companion system · Sonic Analytics: Hit Predictor

While independent artists cannot change platform algorithms overnight, they can inspect how their audio aligns with genre norms. To turn the empirical study into a practical creator tool, I built and deployed Sonic Analytics: Hit Predictor — a live Streamlit web application trained on the 9,544-track audio-preview corpus (where OLS and ANOVA tests confirmed a modest Fame Effect R² = 0.109, a stronger Momentum Effect R² = 0.340, and distinct Decision-Tree sonic clusters across genres).

Four-stage architecture diagram of Sonic Analytics: Hit Predictor from audio upload and librosa extraction through Random Forest scoring to Doctor's Orders production feedback.
End-to-end architecture of the companion Streamlit service, bridging statistical exposure benchmarks with actionable producer feedback.

The live service is structured into a four-step workflow spanning two tabs — Market Analyzer for benchmarking existing catalog hits and AI Demo Rater for diagnosing an unreleased demo:

01 · Benchmark existing hits
In the Market Analyzer tab, producers search any artist or song in the 9,544-track catalog (e.g., Taylor Swift’s Cruel Summer, Popularity 87.0/100, Pop, 112 BPM). The app displays album art alongside a Plotly polar radar chart comparing the track’s normalized BPM, Brightness, and Rhythm Strength directly against its genre average, plus an instant summary of whether the track is brighter/darker or punchier/softer than genre norms.
Market Analyzer screen in Sonic Analytics showing Taylor Swift's Cruel Summer benchmarked on a sonic fingerprint radar chart against the Pop genre average.
Step 01 · Market Analyzer tab: inspecting an existing hit’s popularity, BPM, and normalized Sonic Fingerprint against the Pop genre baseline.
02 · Upload demo & extract features
Switching to the AI Demo Rater tab, a producer uploads an unreleased .mp3 or .wav clip (e.g., NF – The Search.mp3, 4:51) and clicks Extract Audio Features. Running librosa in real time computes BPM (beat tracking, e.g., 117), Brightness (mean spectral centroid, 1933 Hz), Rhythm Strength (normalized onset envelope, 0.71), duration, and a time-series Feature Evolution curve plotting RMS energy and timbre across the full track.
03 · Supply market context
Because our empirical study established that pre-release momentum explains far more variance than raw acoustics alone, two sliders on the right let the user specify Artist Current Popularity (0–100) and Previous Track Success (0–100) so the prediction accounts for real market context.
AI Demo Rater screen showing MP3 upload, extracted librosa metrics (BPM 117, Brightness 1933, Rhythm 0.71, Duration 4:51), and Market Context sliders.
Steps 02–03 · AI Demo Rater input: real-time librosa feature extraction paired with Artist Current Popularity and Previous Track Success sliders.
04 · Auto-classify genre & Doctor’s Orders
Clicking Predict Success scales the acoustic features, automatically predicts the track’s Genre via a trained classifier (e.g., Alternative), and predicts a 0–100 Success Score from the combined audio + genre + momentum vector. Finally, Song Doctor overlays the demo’s radar fingerprint against the predicted genre’s Ideal Recipe across 14 genres and triggers concrete Doctor’s Orders whenever metrics fall outside target thresholds: ±45s duration (“Too Long: consider a Radio Edit”), ±15% brightness (“Too Dark: boost high-end EQ” / “Too Bright”), or −15% / +25% rhythm strength (“Low Energy” / “Too Aggressive”).
Song Doctor output showing predicted genre (Alternative), Success Score (100/100), Sonic Fingerprint vs. Target radar chart, and Doctor's Orders warning that the track is 60s longer than the Alternative average.
Step 04 · Song Doctor diagnostics: predicted genre, 0–100 success score, target-recipe radar overlay, and threshold-based Doctor’s Orders production advice.

Limitations & next steps

  • Proxy metric: Spotify popularity scores blend recency and volume and serve as an imperfect proxy for intrinsic listener satisfaction.
  • Unobserved exposure logs: Direct impression counts, editorial playlist placements, and algorithmic feed rank were not observable; residuals capture their combined footprint indirectly.
  • Linear baseline & causality: OLS captures interpretable additive expectations, but future work pairing nonlinear ensemble baselines with exposure logs or quasi-experimental audits could separate causal amplification from latent listener taste.