Introduction
The task of predicting the emotional mood of music has traditionally been approached by the Music Information Retrieval (MIR) community as an audio classification challenge. Conventional methods involve feeding acoustic signals—such as spectrograms or raw waveforms—into deep neural networks to identify tags like "happy," "gloomy," or "energetic." However, audio signals alone may fail to capture the complex psychological and contextual nuances that define how a song truly "feels" to a listener.
This research explores an alternative hypothesis: user behavior, specifically listening history and preferences, contains rich signals about a track's mood that acoustic analysis cannot reach. By analyzing who listens to a song rather than just what it sounds like, can we achieve more accurate mood classification? This paper introduces a novel, expert-annotated dataset of 67,000 tracks to demonstrate that listening-based embeddings derived from collaborative filtering significantly outperform state-of-the-art audio-based models.
Methodology
The researchers framed mood prediction as a multi-label classification problem, mapping track embeddings to a vocabulary of 188 specific mood tags. They compared two distinct input modalities:
- Audio-Based Models: These utilized pre-trained convolutional neural networks (CNNs), including Musicnn (trained on the Million Song Dataset) and a Short-Chunk CNN trained specifically for this study. These models extract features from 30-second audio previews.
- Listening-Based Models: Track embeddings were generated using weighted matrix factorization (Alternating Least Squares) on user-item interaction matrices. This approach, common in collaborative filtering, was applied to both implicit feedback (play counts from the Taste Profile Subset) and explicit feedback (a proprietary dataset of 100 billion user ratings).
To ensure a fair comparison, the study employed a transfer-learning setup. The embeddings from both modalities were frozen, and a Multi-Layer Perceptron (MLP) was trained on top of them to predict mood tags. Hyperparameters were tuned using Bayesian optimization.
Datasets
The study introduces the AllMusic Mood Subset (AMS), a benchmark dataset of 66,993 tracks mapped to the Million Song Dataset (MSD). It features 188 expert-annotated mood tags from AllMusic, representing the largest expert-annotated mood dataset currently available to the community.
Results and Discussion
The core finding of this research is that collaborative filtering embeddings inherently capture the "vibe" of a song more effectively than acoustic features. Listeners naturally group songs by mood during their sessions, and matrix factorization successfully encodes this latent emotional space.
As shown in the performance comparison, the listening-based model trained on open data (TP-L) achieved a macro-averaged Average Precision (AP) of 0.47, compared to only 0.32 for the best open audio-based model (MCN-MSD-A). At an industrial scale, the proprietary listening model (P-L) reached an impressive AP of 0.75, highlighting the power of massive explicit user feedback.
The "Audio-Friendly" Subspace
While listening data is superior overall, audio models possess a distinct advantage in a specific niche. The researchers identified a cluster of 11 related moods—including "Aggressive," "Harsh," "Rebellious," and "Nihilistic"—where audio data outperformed listening data.
These "harsh" moods (illustrated above) likely rely on easily measurable acoustic characteristics, such as heavy distortion or high volume, which are more directly captured by audio waveforms than by latent user behavior. Conversely, audio-based models showed a "blind spot" for more nuanced moods, with different architectures often failing on the same tags.
Conclusion
This study demonstrates that user listening data is a more potent signal for mood classification than audio content alone. By leveraging how humans interact with music, models can capture emotional contexts that elude pure acoustic analysis.
However, the findings also suggest that the two modalities are complementary. Future work should focus on multi-modal architectures that combine the broad emotional intelligence of listening data with the acoustic precision of audio models for "harsh" or highly textured genres. Such hybrid systems represent the next frontier in creating truly empathetic music recommendation engines.
Summary updated