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
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 Model | Pre-Release Features | Test R² | Test MAE |
|---|---|---|---|
| Audio only | BPM, RMS energy, spectral centroid, rhythm strength | 0.003 | 14.17 |
| Artist only | Artist popularity + follower count | 0.104 | 13.34 |
| Artist + momentum | Reputation + prior release performance + history + duration | 0.198 | 12.07 |

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.

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.

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.

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).

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.

- 02 · Upload demo & extract features
- Switching to the AI Demo Rater tab, a producer uploads an unreleased
.mp3or.wavclip (e.g., NF – The Search.mp3,4:51) and clicksExtract Audio Features. Runninglibrosain 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.

- 04 · Auto-classify genre & Doctor’s Orders
- Clicking
Predict Successscales 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:±45sduration (“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”).

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.