Real-Time Emotion-Driven Music Recommendation Integrating User Mood and Song Feature Analysis

dc.contributor.authorPerera, M. R. S.
dc.contributor.authorFernando, P. A.
dc.date.accessioned2026-11-19T05:14:06Z
dc.date.issued2026
dc.description.abstractThe pressures of modern lifestyles have heightened stress and emotional challenges, with individuals increasingly turning to social media for emotional expression, while existing music recommendation systems fail to align suggestions with a user's real-time emotional state. This study aimed to design, develop, and evaluate a Real-Time Emotion-Driven Music Recommendation System that integrates social media-based user mood detection with multimodal song feature analysis to deliver personalised music recommendations for emotional wellbeing. Following a mixed-methods design, three machine learning models were developed: a Convolutional Neural Network applied to audio features capturing timbre, energy, and harmony for music emotion recognition; a multi-label Dense Neural Network with TF-IDF term weighting for lyrical emotion classification, both trained on the MIREX Emotion Dataset; and a text-based Dense Neural Network, trained on the GoEmotions corpus, for detecting user emotions from Reddit posts of the preceding 24 hours. A novel emotion score algorithm computed composite emotional probabilities by combining music-feature and lyrical outputs via a literature-weighted average normalised to 100%. An emotion mapping framework, whereby certain emotions ease others, translated six user emotional states (Happy, Anger, Sadness, Anxiety, Curiosity, and Neutral) into five music emotional categories (Energetic, Humorous, Negative, Positive, and Neutral), with songs retrieved by closest emotion-score (Euclidean) match; both verified through functional and user testing. After 50 training passes (epochs), test-set accuracy reached 63.34% (audio features), 99.66% (lyrics), and 66.02% (social media text). Seven of ten functional (75%) and all four non-functional (100%) requirements were fulfilled. Thematic analysis of expert feedback and ratings from 22 user testers confirmed positive usability and that recommended songs effectively supported emotional relief. The findings establish the viability of a multimodal, AI-driven approach to real-time emotion-aware music recommendation; posted text alone as a mood indicator remains a limitation, motivating a hybrid text and facial-recognition approach, multi-language support, and streaming platform integration.
dc.identifier.citationPerera, M. R. S., & Fernando, P. A. (2026). Real-Time Emotion-Driven Music Recommendation Integrating User Mood and Song Feature Analysis. Proceedings of the University of Colombo International Conference (UCIC) 2026, University of Colombo, Sri Lanka, p.9. https://doi.org/10.66281/70130/9342
dc.identifier.isbn978-624-5518-87-6
dc.identifier.urihttps://archive.cmb.ac.lk/handle/70130/9342
dc.identifier.urihttps://doi.org/10.66281/70130/9342
dc.language.isoen
dc.publisherUniversity of Colombo
dc.subjectEmotion detection
dc.subjectMusic recommendation
dc.subjectMachine learning
dc.subjectNatural language processing
dc.subjectConvolutional neural networks
dc.titleReal-Time Emotion-Driven Music Recommendation Integrating User Mood and Song Feature Analysis
dc.typeArticle

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
9.pdf
Size:
162.45 KB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: