[Paper Review] A Theory-Based Explainable Deep Learning Architecture for Music Emotion
This paper proposes a theory-based, explainable deep learning CNN for music emotion recognition that uses physics-inspired harmonic filters to model consonance—a key perceptual driver of emotion. The model achieves comparable accuracy to atheoretical deep learning models while offering superior explainability by linking filter responses to known music-theoretic features, and it outperforms handcrafted feature models in emotion prediction and ad engagement applications.
This paper paper develops a theory-based, explainable deep learning convolutional neural network (CNN) classifier to predict the time-varying emotional response to music. We design novel CNN filters that leverage the frequency harmonics structure from acoustic physics known to impact the perception of musical features. Our theory-based model is more parsimonious, but provides comparable predictive performance to atheoretical deep learning models, while performing better than models using handcrafted features. Our model can be complemented with handcrafted features, but the performance improvement is marginal. Importantly, the harmonics-based structure placed on the CNN filters provides better explainability for how the model predicts emotional response (valence and arousal), because emotion is closely related to consonance--a perceptual feature defined by the alignment of harmonics. Finally, we illustrate the utility of our model with an application involving digital advertising. Motivated by YouTube mid-roll ads, we conduct a lab experiment in which we exogenously insert ads at different times within videos. We find that ads placed in emotionally similar contexts increase ad engagement (lower skip rates, higher brand recall rates). Ad insertion based on emotional similarity metrics predicted by our theory-based, explainable model produces comparable or better engagement relative to atheoretical models.
Motivation & Objective
- To develop a deep learning model for predicting time-varying emotional responses (valence and arousal) to music that is both accurate and explainable.
- To integrate music theory—specifically the role of harmonic partials—into CNN filter design to improve model interpretability and performance.
- To demonstrate the model’s utility in digital advertising by optimizing ad insertion timing based on emotional similarity between content and ads.
- To reduce reliance on handcrafted features by embedding theoretical priors directly into the network architecture, enhancing model parsimony.
- To provide a transparent, visualizable explanation of how emotional predictions are made using Grad-CAM and harmonic feature mapping.
Proposed method
- Design novel convolutional filters based on the harmonic structure of musical tones, where filter weights are constrained to align with integer multiples of the fundamental frequency.
- Construct a CNN architecture that processes spectrograms of music audio, with filters explicitly tuned to detect consonance-related features derived from acoustic physics.
- Integrate theory-based filters into a deep learning framework to improve generalization and reduce parameter count, enhancing model parsimony.
- Use Grad-CAM visualization to highlight spectral regions contributing most to emotion predictions, enabling interpretability of filter responses.
- Train the model end-to-end on music audio data using the valence-arousal emotion framework, with loss functions optimized for both emotion dimensions.
- Complement the model with handcrafted features (e.g., MFCCs) to test for marginal performance gains, but find minimal improvement.
Experimental results
Research questions
- RQ1Can a theory-based CNN architecture that embeds music-theoretic principles (specifically harmonic structure) achieve competitive emotion prediction performance compared to atheoretical deep learning models?
- RQ2Does incorporating harmonic filters into CNNs improve model explainability by linking learned features to known perceptual drivers of emotion, such as consonance?
- RQ3To what extent does the inclusion of theory-based filters reduce the need for handcrafted features in music emotion classification?
- RQ4Can the model’s emotion predictions be used effectively to optimize ad insertion timing in digital video content, improving engagement metrics?
- RQ5How does the performance of the theory-based model compare to both atheoretical deep learning models and traditional handcrafted feature models in real-world advertising applications?
Key findings
- The theory-based CNN achieves predictive performance comparable to atheoretical deep learning models, despite being more parsimonious in parameter count.
- The model outperforms traditional machine learning models using handcrafted features (e.g., MFCCs) in emotion classification accuracy.
- Adding handcrafted features to the theory-based model results in only marginal performance improvements, indicating that the harmonic filters already capture essential emotion-relevant features.
- The model’s explainability is enhanced by visualizing filter responses via Grad-CAM, which clearly links emotional predictions to specific harmonic components in the spectrogram.
- In a lab experiment simulating YouTube mid-roll ads, emotion-based ad insertion using the model’s predictions led to lower skip rates and higher brand recall, matching or exceeding performance of atheoretical models.
- The model effectively captures time-varying emotional dynamics in music, enabling applications such as emotionally coherent playlist transitions and optimized ad placement.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.