Hybrid Music Recommendation System Using K-Means Clustering and Neural Collaborative Filtering for Spotify Playlist Personalization


  • Rastomi Pamungkas * Mail Universitas Teknokrat Indonesia, Bandar Lampung, Indonesia
  • Permata Permata Universitas Teknokrat Indonesia, Bandar Lampung, Indonesia
  • Rakhmat Dedi Gunawan Universitas Teknokrat Indonesia, Bandar Lampung, Indonesia
  • Adhie Thyo Priandika Universitas Teknokrat Indonesia, Bandar Lampung, Indonesia
  • (*) Corresponding Author
Keywords: Music Recommendation; K-Means Clustering; Deep Collaborative Filtering; Neural Matrix Factorization; Spotify

Abstract

Personalizing music recommendations has become a significant challenge on music streaming platforms such as Spotify due to the vast number of available songs and the limitations of conventional recommendation systems in accurately capturing user preferences. In addition, traditional single-method recommendation approaches often face the cold start problem, which reduces the effectiveness of generated recommendations. Therefore, this study aims to develop and evaluate a hybrid recommendation system that integrates the K-Means Clustering algorithm and Deep Collaborative Filtering based on Neural Matrix Factorization to improve the relevance of music playlist recommendations. The dataset used in this study consists of more than 15,151 Spotify songs obtained from the Spotify dataset available on Kaggle. The dataset was processed through several stages including data inspection, data cleaning, feature selection, and standardization. Audio features used in the analysis include danceability, energy, acousticness, instrumentalness, valence, tempo, and duration. The optimal number of clusters was determined using the Elbow Method and Silhouette Score, resulting in five clusters with a relatively balanced data distribution. The clustering results were then used as the basis for Cluster-Based Filtering to narrow the search space of candidate songs before being processed by the Neural Matrix Factorization model. Performance evaluation was conducted using Hit Ratio at rank 10 and Normalized Discounted Cumulative Gain at rank 10. The proposed model achieved values of 0.1110 and 0.0507, respectively, indicating that the integration of clustering and deep collaborative filtering can improve the effectiveness and personalization of music recommendation systems. This study contributes by proposing a hybrid recommendation framework that integrates clustering-based item grouping with deep collaborative filtering to improve recommendation efficiency and playlist personalization in large-scale music streaming platforms.

Downloads

Download data is not yet available.

References

P. B. Chopade, “Music Recommendation System on Spotify Using Deep Learning,” Int. J. Sci. Res. Eng. Manag., vol. 09, no. 06, pp. 1–9, 2025, doi: 10.55041/ijsrem49675.

K. R. Putra and M. A. Rachman, “Perbandingan Metode Content-based, Collaborative dan Hybrid Filtering pada Sistem Rekomendasi Lagu,” MIND J., vol. 9, no. 2, pp. 179–193, 2024, doi: 10.26760/mindjournal.v9i2.179-193.

M. A. Munajad, A. Ridwan, and T. G. Pratama, “Pengembangan Sistem Rekomendasi Musik dengan K-Means dan KNN Berbasis Cosine Similarity,” Sainteks, vol. 22, no. 2, pp. 153–165, 2025, doi: 10.30595/sainteks.v22i2.27815.

D. Roy and M. Dutta, "A Systematic Review and Research Perspective on Recommender Systems," Journal of Big Data, vol. 9, no. 1, 2022, doi: 10.1186/s40537-022-00592-5

N. K. Ayyiyah, R. Kusumaningrum, and R. Rismiyati, “Film Recommender System Menggunakan Metode Neural Collaborative Filtering,” J. Teknol. Inf. dan Ilmu Komput., vol. 10, no. 3, pp. 699–708, 2023, doi: 10.25126/jtiik.2023106616.

B. Hakim, F. J. Kaunang, C. Susanto, J. Salim, and R. Indradjaja, “Implementasi Machine Learning Dalam Pengelompokan Musik Menggunakan Algoritma K-Means Clustering,” IDEALIS Indonesian Journal of Information Systems., vol. 8, no. 1, pp. 74–83, 2025, doi: 10.36080/idealis.v8i1.3357.

M. I. Firmansyah, R. S. Rohman, and Marsusanti, "Penerapan Algoritma Klastering K-Means untuk Fitur Atribut pada layanan streaming Spotify," Indonesian Journal Computer Science, vol. 2, no. 2, 2023, doi: 10.31294/ijcs.v2i2.2465

K. B. Dharmasena and C. Pramartha, “Segmentasi Pengguna Spotify Berdasarkan Preferensi Musik dengan Algoritma K-Means Clustering,” Jnatia, vol. 3, no. 1, pp. 37–42, 2024. doi: 10.24843/JNATIA.2024.v03.i01.p05.

M. D. Noverta Effendi*1, Witrihan Ramadhani2, Fitri Farida3, “Jurnal Computer Science and Information Technology ( CoSciTech ) things,” J. Comput. Sci. Inf. Technol., vol. 5, no. 2, pp. 358–366, 2024, doi: 10.37859/conscitech.v5i2.5600.

Y. Lase and E. Panggabean, “Implementasi Metode K-Means Clustering Dalam Sistem Pemilihan Jurusan Di SMK Swasta Harapan Baru,” J. Teknol. dan Ilmu Komput. Prima, vol. 2, no. 2, p. 43, 2019, doi: 10.34012/jutikomp.v2i2.723.

M. Cui, “on the Elbow Method,” Clausius Sci. Press, vol. 1, no. 1, pp. 5–8, 2020, doi: 10.23977/accaf.2020.010102.

D. M. Saputra, D. Saputra, and L. D. Oswari, “Effect of Distance Metrics in Determining K-Value in K-Means Clustering Using Elbow and Silhouette Method,” Siconian 2019: Sriwijaya International Conference on Information Techonoly and Its Application, vol. 172, pp. 341–346, 2020, doi: 10.2991/aisr.k.200424.051.

B. A. Firdaus, D. E. Ratnawati, and B. T. Hanggara, “Klusterisasi Popularitas Artist pada Playlist Today’s Top Hits Menggunakan Metode K-Means dengan Integrasi Spotify Web API dan Teknologi Amazon SageMaker,” J. Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 5, no. 1, pp. 373–380, 2021, doi: 10.25126/j-ptiik.202151373.

M. A. Munajad, A. Ridwan, and T. G. Pratama, "Pengembangan Sistem Rekomendasi Musik dengan K-Means dan K-Nearest Neighbors berbasis Cosine Similarity," Sainteks: jurnal Sains dan Teknologi, vol. 22. no. 2, 2024, doi: 10.30595/sainteks.v22i2.27815.

D. D. Satrio, F. A. Akbar, and M. M. Al Haromainy, “Pengembangan Bot Discord Sebagai Pemutar dan Rekomendasi Musik Menggunakan Metode K-Means,” Jutisi: Jurnal Ilmu Teknologi Informormasi dan Sistem Informasi, vol. 13, no. 1, p. 95, 2024, doi: 10.35889/jutisi.v13i1.1681.

X. He, L. Liao, H. Zhang, L. Nie, X. Hu, and T. S. Chua, “Neural Collaborative Filtering,” Proceedings of the 26th International Conference on World Wide Web, January, 2021, doi: 10.1145/3038912.3052569.

Y. T. Bau, Reza, and K. C. Lee, "Developing and Comparing Machine Learning Algorithm for Music Recommendation," JOIV: International Journal on Informatics Visualization, vol. 8, no. 3-2, 2024, doi: 10.62527/joiv.8.3-2.2947.

Indah Lestari, “Analisis Clustering Lagu Berdasarkan Fitur Audio Pada Spotify Untuk Identifikasi Genre Musik Menggunakan Algoritma K-Means,” vol. 32, no. 3, 2023, pp. 167–186, 2021.

M. M. Raharjo and F. Arifin, "Machine Learning System Implementation of Education Podcast Recommendation on Spotify Application Using Content-Based Filtering and TF-IDF," ELINVO: Electronics, INformatics, and Vocational Education, vol. 8, no. 2, 2023, doi: 10.21831/elinvo.v8i2.58014.

R. C. de Araujo, V. M. S. Santos, J. F. L. de Oliveira, and A. M. A. Maciel, “A Hybrid Music Recommendation System Based on K-Means Clustering and Multilayer Perceptron,” Int. Conf. Enterp. Inf. Syst. ICEIS - Proc., vol. 1, no. Iceis, pp. 335–342, 2025, doi: 10.5220/0013436700003929.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Hybrid Music Recommendation System Using K-Means Clustering and Neural Collaborative Filtering for Spotify Playlist Personalization

Dimensions Badge
Article History
Submitted: 2026-01-11
Published: 2026-03-19
Abstract View: 67 times
PDF Download: 44 times
How to Cite
Pamungkas, R., Permata, P., Gunawan, R., & Priandika, A. (2026). Hybrid Music Recommendation System Using K-Means Clustering and Neural Collaborative Filtering for Spotify Playlist Personalization. Building of Informatics, Technology and Science (BITS), 7(4), 2609-2617. https://doi.org/10.47065/bits.v7i4.9181
Issue
Section
Articles

Most read articles by the same author(s)