Research Article

Machine Learning Based Music Genre Classification and Recommendation System

Volume: 9 Number: 4 December 31, 2022
EN

Machine Learning Based Music Genre Classification and Recommendation System

Abstract

Music has an important role in our life. It is also known that music helps to relax and strengthen the human spirit. The widespread use of the Internet has led to significant changes and developments in the music industry. The increase and widespread use of online music listening and sales platforms, the constant updating of these platforms and the classification of music genres can be given as examples of these developments. Music genre classification is an important step for the music recommendation system. In order for music to be classified by individuals require to listen to many songs and choose their genre. This is a difficult process and waste of time. In this paper, it is aimed to classify music according to its genres by using machine learning algorithms and to suggest similar types of music to the user. For this purpose, the features of the music files were extracted with digital signal processing techniques, and the music genres were automatically detected by using machine learning algorithms with the obtained features and a recommendation system was developed. The GTZAN dataset was chosen to be used in the study. Eight different machine learning models were trained in the Jupyter Notebook environment and the findings were compared. For this purpose, the data set was split into two sets as 80% training and 20% testing, and the accuracy of the models was evaluated. Among the tested models, the most successful result was obtained with the XGBoost algorithm with an accuracy rate of 91,792%.

Keywords

References

  1. Brown, L. L. "The benefits of music education." PBS KIDS for Parents, 2012.
  2. İnternet: Number of Apple Music subscribers worldwide from October 2015 to June 2021, 2022, https://www.statista.com/statistics/604959/number-of-apple-music-subscribers/, Erişim Tarihi: Kasım 2022
  3. İnternet: Number of Spotify premium subscribers worldwide from 1st quarter 2015 to 3rd quarter 2022, 2022, https://www.statista.com/statistics/244995/number-of-paying-spotify-subscribers/ Erişim Tarihi: Kasım 2022
  4. İnternet: Spotify Investors Quick Facts, 2021, https://investors.spotify.com/home/default.aspx, Youtube Offical Blog, 2020, https://blog.youtube/news-and-events/youtube-music-transfer-google-play-music-library/, Erişim Tarihi: Ocak 2022
  5. İnternet: The 5 best music streaming services you can subscribe to in 2022, https://www.businessinsider.com/guides/tech/best-music-streaming-service-subscription, Erişim Tarihi: Kasım 2022
  6. İnternet: Music Genres List, https://www.musicgenreslist.com/, Erişim Tarihi: Kasım 2022
  7. Tzanetakis, G., Cook, P. “Musical genre classification of audio signal”, IEEE Transactions on Speech and Audio Processing, Vol. 10, No. 3, pp. 293-302, July 2002.
  8. Li, T., Ogihara, M., Li, Q. "A comparative study on content-based music genre classification", SIGIR '03 Proceedings of the 26th annual international ACM SIGIR conference on Research and development in informaion retrieval, pp. 282-289, 2003.

Details

Primary Language

English

Subjects

Engineering

Journal Section

Research Article

Publication Date

December 31, 2022

Submission Date

November 23, 2022

Acceptance Date

December 4, 2022

Published in Issue

Year 2022 Volume: 9 Number: 4

APA
Yılmaz, P., Akçakaya, Ş., Özkaya, Ş. D., & Çetin, A. (2022). Machine Learning Based Music Genre Classification and Recommendation System. El-Cezeri, 9(4), 1560-1571. https://doi.org/10.31202/ecjse.1209025
AMA
1.Yılmaz P, Akçakaya Ş, Özkaya ŞD, Çetin A. Machine Learning Based Music Genre Classification and Recommendation System. El-Cezeri Journal of Science and Engineering. 2022;9(4):1560-1571. doi:10.31202/ecjse.1209025
Chicago
Yılmaz, Pınar, Şeyma Akçakaya, Şule Deniz Özkaya, and Aydın Çetin. 2022. “Machine Learning Based Music Genre Classification and Recommendation System”. El-Cezeri 9 (4): 1560-71. https://doi.org/10.31202/ecjse.1209025.
EndNote
Yılmaz P, Akçakaya Ş, Özkaya ŞD, Çetin A (December 1, 2022) Machine Learning Based Music Genre Classification and Recommendation System. El-Cezeri 9 4 1560–1571.
IEEE
[1]P. Yılmaz, Ş. Akçakaya, Ş. D. Özkaya, and A. Çetin, “Machine Learning Based Music Genre Classification and Recommendation System”, El-Cezeri Journal of Science and Engineering, vol. 9, no. 4, pp. 1560–1571, Dec. 2022, doi: 10.31202/ecjse.1209025.
ISNAD
Yılmaz, Pınar - Akçakaya, Şeyma - Özkaya, Şule Deniz - Çetin, Aydın. “Machine Learning Based Music Genre Classification and Recommendation System”. El-Cezeri 9/4 (December 1, 2022): 1560-1571. https://doi.org/10.31202/ecjse.1209025.
JAMA
1.Yılmaz P, Akçakaya Ş, Özkaya ŞD, Çetin A. Machine Learning Based Music Genre Classification and Recommendation System. El-Cezeri Journal of Science and Engineering. 2022;9:1560–1571.
MLA
Yılmaz, Pınar, et al. “Machine Learning Based Music Genre Classification and Recommendation System”. El-Cezeri, vol. 9, no. 4, Dec. 2022, pp. 1560-71, doi:10.31202/ecjse.1209025.
Vancouver
1.Pınar Yılmaz, Şeyma Akçakaya, Şule Deniz Özkaya, Aydın Çetin. Machine Learning Based Music Genre Classification and Recommendation System. El-Cezeri Journal of Science and Engineering. 2022 Dec. 1;9(4):1560-71. doi:10.31202/ecjse.1209025

Cited By

Creative Commons License El-Cezeri is licensed to the public under a Creative Commons Attribution 4.0 license.
88x31.png