Sentiment-Based Music Recommendation System using Natural Language Processing for Emotion-aware Song Suggestions
Main Article Content
Abstract
Music plays a vital role in influencing emotions, mood, and mental health. However, classical music recommendation systems mostly rely on listening to history, genre preference, or popularity, ignoring the listener’s mood. Motivation to go further in this area gave birth to this study, where a new sentiment-based music recommendation system is being designed by incorporating Natural Language Processing (NLP) and Machine Learning (ML) techniques to provide emotion-aware song recommendations. The system collects various audio features such as valence, energy, tempo, and danceability from music distribution platforms such as Spotify, which are well-known indicators for classifying the emotional tone of a song. Thereafter, NLP processes are used to analyse audio features and provide sentiment scores assigned to each music track: positive, negative, or neutral. These sentiment scores were further used with other song features, such as genre and tempo, to build in-depth emotional profiles for each song. Three ML methods were implemented in the system for classification and recommendation: K-Nearest Neighbors (KNN), Support Vector Machine (SVM), and Decision Tree (DT). After many trials, the SVM scored the highest in sentiment classification accuracy (87.5%), with maximum precision and recall values of 0.88. The recommendation is fed through a simple interface on a website where the user can enter their feelings and obtain song recommendations instantly determined by mood. According to the survey, 78% of users said that mood-based recommendations fit their emotional state better than traditional recommendations. Although the results prove this, limitations have been noted, particularly with a limited range of features and small dataset. Future enhancements will focus on real-time affect tracking, additional affect features, and larger and more diverse datasets. Traditional NLP applies to text data, but this system applies sentiment detection to numerical audio features. This version does not use lyric-based NLP.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
All articles published in JIWE are licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) License. Readers are allowed to
- Share — copy and redistribute the material in any medium or format under the following conditions:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use;
- NonCommercial — You may not use the material for commercial purposes;
- NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
References
Y. Mamani-Coaquira, and E. Villanueva, “A Review on Text Sentiment Analysis with Machine Learning and Deep Learning Techniques,” IEEE Access, vol. 12, 2024, pp. 193115–30, doi:10.1109/access.2024.3513321
K. L. Tan, C. P. Lee, and K. M. Lim, “A survey of sentiment analysis: Approaches, datasets, and future research,” Applied Sciences, vol. 13, no. 7, Apr. 2023, pp. 4550, doi:10.3390/app13074550
N. S. Suryawanshi, “Sentiment analysis with machine learning and deep learning: A survey of techniques and applications,” International Journal of Science and Research Archive, vol. 12, no. 2, pp. 005–015, Jul. 2024, doi: 10.30574/ijsra.2024.12.2.1205
K. P. Gunasekaran, “Exploring Sentiment Analysis Techniques in Natural Language Processing: A Comprehensive review,” 2023, arXiv: 10.48550/arxiv.2305.14842
P. Shetty, and S. Kini, “Leveraging Big Data for Sentiment Analysis: A Review of Techniques, Applications and Challenges,” International Journal for Multidisciplinary Research, vol. 6, no. 4, Jul. 2024, pp. 24841, doi:10.36948/ijfmr.2024.v06i04.24841
Y. Deldjoo, M. Schedl, and P. Knees, “Content-driven music recommendation: Evolution, state of the art, and challenges,” Computer Science Review, vol. 51, p. 100618, Jan. 2024, doi: 10.1016/j.cosrev.2024.100618
V. S. R. T. Kothapalli, “Leveraging Machine Learning for Personalized Knee Replacement Surgery: Predictive Models and Outcomes,” Journal of Electrical Systems, vol. 20, no. 11s, Nov. 2024, pp. 1782–92, doi:10.52783/jes.7589
C. Kothawadel, G. Jagtap, P. Relusinghani, V. Chavan, and S. Smitha. “A Survey on Speech Emotion Based Music Recommendation System.” Interantional Journal Of Scientific Research In Engineering And Management, vol. 08, no. 04, Apr. 2024, pp. 1–5. doi:10.55041/IJSREM30150
T. Zhi-hang, T. Tao, G. Jun, and W. Shi-qi, “Intelligent Recommendation System Based On K-Means Clustering Algorithm,” International Journal of Advanced Networking and Applications, vol. 11, no. 05, 2020, doi:10.35444/IJANA.2020.11053
O. Fouad, R. Fouad, N. Hussen, and I. Abuhadrous, “A comprehensive review of music recommendation systems,” Advanced Sciences and Technology Journal, vol. 2, no. 1, pp. 1–18, Jan. 2025, doi: 10.21608/astj.2025.342474.1017
H. Tran, T. Le, A. Do, T. Vu, S. Bogaerts, and B. Howard, “Emotion-Aware music recommendation,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 37, no. 13, pp. 16087–16095, Jun. 2023, doi: 10.1609/aaai.v37i13.26911
A. Phaneendra, M. Muduli, S. L. Reddy, and R. Veenasree, “EMUSE–An emotion based music recommendation system,” International Research Journal of Modernization in Engineering Technology and Science, 4(5), 4159-4163, 2022, doi:10.56726/IRJMETS31671
S. Saranya, M. V. Devi, M. C. Powell, D. D. Bharathy, and K. Devatharshini, “Emotion Based Music Recommendation System,” International Conference on Smart Systems for Electrical, Electronics, Communication and Computer Engineering (ICSSEECC), 2024, doi:10.1109/ICSSEECC61126.2024.10649404
Kiran, B. Kranthi, “Emotion Based Music Recommendation System Using VGG16-CNN Architecture,” International Journal for Research in Applied Science and Engineering Technology, vol. 12, no. 6, Jun. 2024, pp. 592–96, doi: 10.22214/ijraset.2024.63181
H. Ng, M. S. Jalani, T. T. V. Yap, and V. T. Goh, “Performance of sentiment classification on tweets of clothing brands,” Journal of Informatics and Web Engineering, vol. 1, no. 1, pp. 16–22, Mar. 2022, doi: 10.33093/jiwe.2022.1.1.2
T. A. Khan, R. Sadiq, Z. Shahid, M. M. Alam, and M. M. Su’ud, “Sentiment Analysis using Support Vector Machine and Random Forest,” Journal of Informatics and Web Engineering, vol. 3, no. 1, pp. 67–75, Feb. 2024, doi: 10.33093/jiwe.2024.3.1.5
J. Jayaram, Y. Kulkarni, L. V. Ganesh, P. Naveen, and E. A. Anaam, “Treatment Recommendation using BERT Personalization,” Journal of Informatics and Web Engineering, vol. 3, no. 3, Oct. 2024, pp. 41–62, doi:10.33093/jiwe.2024.3.3.3
H. D. C. Vilca, A. L. S. Medina, and R. S. Leon, “Music Recommender System based on Sentiment Analysis Enhanced with Natural Language Processing Technics,” Computación Y Sistemas, vol. 27, no. 1, Mar. 2023, doi: 10.13053/cys-27-1-4006
S. Wang, C. Xu, A. S. Ding, and Z. Tang, “A Novel Emotion-Aware Hybrid Music Recommendation Method Using Deep Neural Network,” Electronics, vol. 10, no. 15, Jul. 2021, doi:10.3390/electronics10151769
R. Ejjami,"Enhancing User Experience through Recommendation Systems: A Case Study in the E-Commerce Sector,"International Journal For Multidisciplinary Research, vol. 6, no. 4, Jul. 2024, doi:10.36948/ijfmr.2024.v06i04.24598