Mood-Based Song Recommendation System Using TF-IDF and Cosine Similarity

Authors

  • Andri Riyan Dwi Putra Siregar Muhammadiyah University of North Sumatra Medan
  • Rizaldy Khair Muhammadiyah University of North Sumatra Medan

DOI:

https://doi.org/10.58526/jsret.v5i4.1272

Keywords:

Recommendation System, Mood, TF-IDF, Cosine Similarity, Content-Based Filtering

Abstract

This study created a mood-based music recommendation system using a content-based filtering approach with TF-IDF and Cosine Similarity to handle the huge amount of digital music data. Using about 15,000 songs from Kaggle, the system processes metadata and audio features like valence, energy, danceability, and tempo, all implemented in a Python and Flask web app. The mix of text similarity and audio features works really well for giving spot-on recommendations, as shown by performance scores of 0.97 accuracy, 0.90 precision, 0.82 recall, and 0.86 F1-score. Plus, with a System Usability Scale (SUS) rating in the good range, the system is not just technically accurate but also super easy to use and well-liked by users.

Downloads

Download data is not yet available.

References

Abidin, A. Z. Z., & Sukmadinata, A. (2020). Damage detection system in operating systems using TF-IDF and cosine similarity methods. Journal of Informatics Science, 8(2), 108–112. https://doi.org/10.33884/jif.v8i2.2155

Apriani, A., Zakiyudin, H., & Marzuki, K. (2021). Application of cosine similarity algorithm and TF-IDF weighting in a new student admission system at a private campus. Bumigora Information Technology Journal (BITe), 3(1), 19–27. https://doi.org/10.30812/bite.v3i1.1110

Ardhana, V. Y. P. (2021). Usability Testing of the Halodoc Application Using the System Usability Scale (SUS) Method, J. Kesehat. Qamarul Huda, vol. 9, no. 2, pp. 132–136.

Aziz, M. A. (2023). Job recommendation system using content-based filtering algorithm (TF-IDF and cosine similarity)

Azmi, A. H., Mahardika, N. I., Prasetya, R. S. A., & Sari, A. P. (2024). Content-based movie recommendation system using cosine similarity and TF-IDF techniques. Journal of Multidisciplinary Inquiry in Science, Technology and Educational Research, 1(4), 2135–2145. https://doi.org/10.32672/mister.v1i4.2206

Binangkit, C. A., Voutama, A., & Heryana, N. (2023). The use of UML (Unified Modeling Language) in planning a web-based musical instrument rental management system. JATI (Journal of Informatics Engineering Students), 7(2), 1429–1436. https://doi.org/10.36040/jati.v7i2.6858

Hersianty, V. M., Amalia, E. L., Puspitasari, D., & Wibowo, D. W. (2025). The application of the TF-IDF algorithm and cosine similarity in job vacancy recommendation systems. JATI (Journal for Informatics Engineering Students), 9(1), 1619–1625.

Kesuma, H. W. A. (2016). The application of the TF-IDF method and cosine similarity in the Commercial Law Code book app.

Melita, R. (2018). Application of the Term Frequency Inverse Document Frequency (TF-IDF) method and cosine similarity in an information retrieval system to understand hadith explanations based on the web (Case Study: Sahih Bukhari-Muslim Hadith)

Noorhidayah, N., Indriani, F., & Faisal, M. R. (2019). Online news recommendation system using TF-IDF weighting and cosine similarity. National Seminar on Computer Science (SOLITER), 2, 85–93.

Rasyid, R. A., & Ningsih, D. H. U. (2024). Application of TF-IDF Algorithm and Cosine Similarity for Search Queries on a Tourism Destination Dataset. JTIK Journal (Journal of Information and Communication Technology), 8(1), 170–178. https://doi.org/10.35870/jtik.v8i1.1416

Sari, T. (2020). The Effect of Music on Anger and Stress in Elderly. International Journal of Scientific and Technological Research. https://doi.org/10.7176/jstr/6-03-30

Siswidiyanto, S., Munif, A., Wijayanti, D., & Haryadi, E. (2020). Web-based house rental information system using the prototype method. Interkom Journal, 15(1), 18–25. https://doi.org/10.35969/interkom.v15i1.64

Voutama, A., & Novalia, E. (2021). Designing an Android-based M-Magazine app as a medium for high school bulletin boards. TEKNO KOMPAK Journal, 15(1), 104–115. https://doi.org/10.35969/interkom.v15i1.64

Wahyuni, R. T., Prastiyanto, D., & Supraptono, E. (2017). The application of the cosine similarity algorithm and TF-IDF weighting in a thesis document classification system. Journal of Electrical Engineering, 9(1), 18–23.

Downloads

Published

2026-10-28

How to Cite

Siregar, A. R. D. P., & Khair, R. (2026). Mood-Based Song Recommendation System Using TF-IDF and Cosine Similarity. Journal of Scientific Research, Education, and Technology (JSRET), 5(4), 2771–2779. https://doi.org/10.58526/jsret.v5i4.1272