Feature Optimization for a Content-Based Music Recommendation System on Spotify

  • Viga Laksa Hardjanto Computer Science Department, Binus Online Learning, Bina Nusantara University
  • Nisrina Hanifa Setiono Data Science, Telkom University Purwokerto, Indonesia

Abstrak

The growth of music streaming services like Spotify has encouraged users to explore millions of songs, making effective recommendation systems essential. This study examines content-based music recommendation systems by comparing feature configurations and similarity metrics. The system uses 11 Spotify audio features, both with and without genre features encoded using one-hot encoding. Similarity is calculated using cosine similarity and Euclidean distance on normalized features (MinMaxScaler) to generate the top 10 recommendations. Recommendations are considered relevant if the recommended song is by the same artist as the searched song. Performance is measured using Precision@10 and Recall@10 on 100 samples. Using audio features alone yields Precision@10 of 3.80–3.90% and Recall@10 of 6.36–6.45%. The addition of genre features improved performance to Precision@10 of 9.00–9.10% and Recall@10 of 9.06–9.89%. These results show that genre features significantly improve the relevance of recommendations, while both similarity metrics perform similarly when the features have been well normalized. This study contributes by demonstrating that feature representation plays a more critical role than similarity metrics in content-based music recommendation.

Referensi

Y. Mu dan Y. Wu, “Multimodal Movie Recommendation System Using Deep Learning,” Mathematics, vol. 11, no. 4, hal. 1–12, 2023, doi: 10.3390/math11040895.

M. Martijn, C. Conati, dan K. Verbert, “Knowing me, knowing you”: personalized explanations for a music recommender system, vol. 32, no. 1–2. Springer Netherlands, 2022. doi: 10.1007/s11257-021-09304-9.

Y. Afoudi, M. Lazaar, dan M. Al Achhab, “Hybrid recommendation system combined content-based filtering and collaborative prediction using artificial neural network,” Simul. Model. Pract. Theory, vol. 113, no. July, hal. 102375, 2021, doi: 10.1016/j.simpat.2021.102375.

R. Widayanti, M. H. R. Chakim, C. Lukita, U. Rahardja, dan N. Lutfiani, “Improving Recommender Systems using Hybrid Techniques of Collaborative Filtering and Content-Based Filtering,” J. Appl. Data Sci., vol. 4, no. 3, hal. 289–302, 2023, doi: 10.47738/jads.v4i3.115.

X. Wen, “Using deep learning approach and IoT architecture to build the intelligent music recommendation system,” Soft Comput., vol. 25, no. 4, hal. 3087–3096, 2021, doi: 10.1007/s00500-020-05364-y.

P. N., K. K. R. Mangalore, R. B., P. N., dan S. R., “Content Based Movie Recommendation System,” Int. J. Res. Ind. Eng., 2020, doi: 10.1109/SOLI57430.2022.10294792.

S. Sahu, R. Kumar, M. S. Pathan, J. Shafi, Y. Kumar, dan M. F. Ijaz, “Movie Popularity and Target Audience Prediction Using the Content-Based Recommender System,” IEEE Access, vol. 10, hal. 42030–42046, 2022, doi: 10.1109/ACCESS.2022.3168161.

S. Sridhar, D. Dhanasekaran, dan G. C. P. Latha, “Content-Based Movie Recommendation System Using MBO with DBN,” Intell. Autom. Soft Comput., vol. 35, no. 3, hal. 3241–3257, 2022, doi: 10.32604/iasc.2023.030361.

I. Yoshua dan H. Bunyamin, “Pengimplementasian Sistem Rekomendasi Musik dengan Metode Collaborative Filtering,” J. Strateg., vol. 3, no. 1, hal. 1–16, 2021.

C. Liu dan Z. Chao, “Supervised learning and unsupervised learning on music data with different genres,” in Proceedings - 2021 IEEE 7th International Conference on Big Data Intelligence and Computing, DataCom 2021, IEEE, 2021, hal. 7–12. doi: 10.1109/DataCom53700.2021.00008.

S. Shinde, S. Kulkarni, P. Kulkarni, dan A. Bhatt, “Machine learning Based Clustering Using Spotify Audio Features,” in 2023 1st DMIHER International Conference on Artificial Intelligence in Education and Industry 4.0, IDICAIEI 2023, IEEE, 2023, hal. 1–5. doi: 10.1109/IDICAIEI58380.2023.10406332.

J. S. Gulmatico, J. A. B. Susa, M. A. F. Malbog, A. Acoba, M. D. Nipas, dan J. N. Mindoro, “SpotiPred: A Machine Learning Approach Prediction of Spotify Music Popularity by Audio Features,” in ICPC2T 2022 - 2nd International Conference on Power, Control and Computing Technologies, Proceedings, IEEE, 2022, hal. 1–5. doi: 10.1109/ICPC2T53885.2022.9776765.

Z. Dai dan X. Huang, “Electronic Dance Music Classification Based on Machine Learning Methods,” in Proceedings - 2022 International Conference on Electronics and Devices, Computational Science, ICEDCS 2022, IEEE, 2022, hal. 351–354. doi: 10.1109/ICEDCS57360.2022.00084.

N. B. Bahadure, M. Vishwakarma, M. P. Kurhekar, J. C. Patni, dan P. D. Patil, “Machine Learning-Based Music Classification and Recommendation System from Spotify,” Int. J. Comput. Inf. Syst. Ind. Manag. Appl., vol. 17, hal. 143–154, 2025, doi: 10.70917/2025011.

N. Hanafiah, I. Wijaya, S. Xavier, dan C. Grolyus, “Itinerary Recommendation Generation using Enhanced Simulated Annealing Algorithm,” in Procedia Computer Science, Elsevier B.V., 2019, hal. 605–612. doi: 10.1016/j.procs.2019.09.020.

M. Sheikh Fathollahi dan F. Razzazi, “Music similarity measurement and recommendation system using convolutional neural networks,” Int. J. Multimed. Inf. Retr., vol. 10, no. 1, hal. 43–53, 2021, doi: 10.1007/s13735-021-00206-5.

A. Ridwansyah, “Implementation of Small Language Model for On- Device Creative Lyrics Generation Using LoRA and 8-bit Quantization Methods,” in 2025 International Conference on Informatics, Multimedia, Cyber and Information System (ICIMCIS), IEEE, 2025, hal. 551–556. doi: 10.1109/ICIMCIS68501.2025.11327303.

D. Afchar, A. B. Melchiorre, M. Schedl, R. Hennequin, E. V. Epure, dan M. Moussallam, “Explainability in music recommender systems,” AI Mag., vol. 43, no. 2, hal. 190–208, 2022, doi: 10.1002/aaai.12056.

T. Jain, N. S. Kumar, V. Tiwari, dan P. K. Tiwari, “Music Recommendation System Using Machine Learning,” in 2023 2nd International Conference on Futuristic Technologies, INCOFT 2023, IEEE, 2023, hal. 1–6. doi: 10.1109/INCOFT60753.2023.10425522.

A. D. Hartono dan J. Sutopo, “Implementasi Algoritma Upper Confidence Bound Untuk Sistem Rekomendasi Musik,” J. Algoritm., vol. 21, no. 2, hal. 82–90, 2024, doi: 10.33364/algoritma/v.21-2.2095.

A. Poulose, C. S. Reddy, S. Dash, dan B. J. R. Sahu, “Music recommender system via deep learning,” J. Inf. Optim. Sci., vol. 43, no. 5, hal. 1081–1088, 2022, doi: 10.1080/02522667.2022.2094546.

Diterbitkan
2026-07-24