Implementation of Supervised Learning Algorithm on Spotify Music Genre Classification

Authors

  • Muhammad Fiqri Universitas of Tabuk, Saudi Arabia
  • Farhan Bin Siddik Lizen Nowab Foyzunnesa Govt Collage
  • Muhammad Ikrom Universitas Islam Negeri Sultan Syarif Kasim Riau, Indonesia

DOI:

https://doi.org/10.57152/ijatis.v2i1.1123

Keywords:

Decision Tree, K-NN, Music Genre, Naïve Bayes, Random Forest, Spotify

Abstract

Spotify is a music streaming application that has been around since 2008. In the application, users can compile a playlist of songs they want to listen to. Users can determine the name of the singer, type of music, music genre and tempo of the music they want to listen to play as needed. The genre received by each user from his device will produce different recommendations, this is due to the classification process based on music listening behavior, such as songs that are often, rarely, or even never listened to or played at all by users. Therefore, the process of classifying music genres on spotify with the help of machine learning using supervised learning algorithms with algorithms namely Naïve Bayes, K-Nearest Neighbors (K-NN), Random Forest and Decision Tree with the aim of comparing the accuracy of each algorithm so as to get the best model for calcification. The results of this study obtained Random Forest has the highest accuracy value of 79.40%, followed by Decision Tree at 79.30%.  In the next position Naïve Bayes with an accuracy value of 77.28%, the algorithm with the lowest accuracy is K-NN with an accuracy value of 60.74%. Meanwhile, evaluation with the t-test algorithm with the best performance is obtained from the Random Forest algorithm with a value of 0.794. It can be concluded that the best algorithm in music genre classification on Spotify is using Random Forest.

References

A. S. Rahayu, A. Fauzi, and Rahmat, “Komparasi Algoritma Naïve Bayes Dan Support Vector Machine ( SVM ) Pada Analisis Sentimen Spotify,” J. Sist. Komput. dan Inform., vol. 4, no. 2, pp. 349–354, 2022, doi: 10.30865/json.v4i2.5398.

A. R. Zaidah, C. I. Septiarani, M. S. Nisa, A. Yusuf, and N. Wahyudi, “KOMPARASI ALGORITMA K-MEANS , K-MEDOID , AGGLOMEARTIVE CLUSTERING TERHADAP GENRE SPOTIFY,” J. Ilm. Ilmu Komput., vol. 7, no. 1, pp. 49–54, 2021.

S. Navisa, L. Hakim, and A. Nabilah, “Komparasi Algoritma Klasifikasi Genre Musik pada Spotify Menggunakan CRISP-DM,” J. Sist. Cerdas, vol. 04, no. 02, pp. 114–125, 2021.

S. Ahmed, A. El, M. Sk, A. Ali, and Q. Bao, “Spatial modeling and susceptibility zonation of landslides using random forest , naïve bayes and K ? nearest neighbor in a complicated terrain,” Earth Sci. Informatics, pp. 1227–1243, 2021, doi: 10.1007/s12145-021-00653-y.

R. Devika, S. V. Avilala, and V. Subramaniyaswamy, “Comparative Study of Classifier for Chronic Kidney Disease prediction using Naive Bayes , KNN and Random Forest,” 2019 3rd Int. Conf. Comput. Methodol. Commun., no. Iccmc, pp. 679–684, 2019.

A. Purnamawati, W. Nugroho, D. Putri, and W. F. Hidayat, “Penyakit Daun pada Tanaman Padi Menggunakan Algoritma Decision Tree , Random Forest , Naïve Bayes , SVM dan KNN,” InfoTekJar J. Nas. Inform. dan Deteksi, vol. 1, no. 1, pp. 212–215, 2020.

A. M. Rahat, A. Kahir, A. Kaisar, and M. Masum, “Comparison of Naive Bayes and SVM Algorithm based on Sentiment Analysis Using Review Dataset,” 8th Int. Conf. Syst. Model. Adv. Res. Trends, 2019.

S. Chen, G. I. Webb, L. Liu, and X. Ma, “Knowledge-Based Systems A novel selective naïve Bayes algorithm ?,” Knowledge-Based Syst., no. xxxx, p. 105361, 2019, doi: 10.1016/j.knosys.2019.105361.

I. Wickramasinghe and H. Kalutarage, “Naive Bayes?: applications , variations and vulnerabilities?: a review of literature with code snippets for implementation,” Soft Comput., no. 1989, 2020, doi: 10.1007/s00500-020-05297-6.

N. Hidayati and A. Hermawan, “K-Nearest Neighbor ( K-NN ) algorithm with Euclidean and Manhattan in classification of student graduation,” J. Eng. Appl. Technol., vol. 2, no. 2, pp. 86–91, 2021.

R. Andrian, M. A. Naufal, B. Hermanto, A. Junaidi, and F. R. Lumbanraja, “k-Nearest Neighbor ( k-NN ) Classification for Recognition of the Batik Lampung Motifs,” J. Phys. Conf. Ser. Pap., pp. 1–6, 2019, doi: 10.1088/1742-6596/1338/1/012061.

D. M. P. Murti, A. P. Wibawa, and M. I. Akbar, “K-Nearest Neighbor ( K-NN ) based Missing Data Imputation,” Int. Conf. Sci. Inf. Technol. K-Nearest, pp. 1–6, 2019.

C. M. Yesilkanat, “Chaos , Solitons and Fractals Spatio-temporal estimation of the daily cases of COVID-19 in worldwide using random forest machine learning algorithm,” Chaos, Solitons and Fractals, vol. 140, 2020, doi: 10.1016/j.chaos.2020.110210.

J. L. Speiser, M. E. Miller, J. Tooze, and E. Ip, “A comparison of random forest variable selection methods for classification prediction modeling,” Expert Syst. Appl., vol. 134, pp. 93–101, 2019, doi: 10.1016/j.eswa.2019.05.028.

K. Shah, H. Patel, D. Sanghvi, and M. Shah, “A Comparative Analysis of Logistic Regression , Random Forest and KNN Models for the Text Classification,” Augment. Hum. Res., vol. 5, no. 12, 2020, doi: 10.1007/s41133-020-00032-0.

H. Lu and X. Ma, “Chemosphere Hybrid decision tree-based machine learning models for short-term water quality prediction,” Chemosphere, vol. 249, p. 126169, 2020, doi: 10.1016/j.chemosphere.2020.126169.

A. D. Purwanto, K. Wikantika, A. Deliar, and S. Darmawan, “Decision Tree and Random Forest Classification Algorithms for Mangrove Forest Mapping in Sembilang National Park , Indonesia,” Remote Sens., vol. 16, no. 151–31, 2023.

W. Baswardono, D. Kurniadi, A. Mulyani, and D. M. Arifin, “Comparative analysis of decision tree algorithms?: Random forest and C4 . 5 for airlines customer satisfaction classification,” J. Phys. Conf. Ser., 2019, doi: 10.1088/1742-6596/1402/6/066055.

C. A. Ramezan, T. A. Warner, and A. E. Maxwell, “Evaluation of Sampling and Cross-Validation Tuning Strategies for Regional-Scale Machine Learning Classification,” Remote Sens., vol. 11, no. 185, pp. 1–21, 2019, doi: 10.3390/rs11020185.

J. Sakhnini, H. Karimipour, and A. Dehghantanha, “Smart Grid Cyber Attacks Detection using Supervised Learning and Heuristic Feature Selection,” proceeding IEEE SEGE 2019, 2019.

M. Koklu and I. A. Ozkan, “Multiclass classi fi cation of dry beans using computer vision and machine learning techniques,” Comput. Electron. Agric., vol. 174, no. May, p. 105507, 2020, doi: 10.1016/j.compag.2020.105507.

Downloads

Published

2025-02-28