Research Article

A Comparison of Machine Learning Algorithms for Music Genre Recognition

Yundi Xu*
Shandong University, Weihai

* Corresponding author: [email protected]

Abstract

Music information retrieval includes the classification of music genres as a key component. However, due to the complexity of music composition, existing artificial classification cannot achieve accurate results. In the music genre classification scenario, machine learning can effectively process large and complex data, bringing more accurate and personalized results for music recommendation. This article will start from three articles and use GTZAN as a data set to compare 3 traditional machine learning methods, including SVM, random forest and logistic regression, together with 2 deep learning models, involving convolutional and feedforward neural networks (CNN and FFNN) in music genres. classification accuracy. The results show that the classification accuracy will be affected by multiple factors such as the characteristics of the audio, whether data processing is performed and so on. In addition, the performance of deep learning has not been significantly better than traditional machine learning as expected. At the same time, the accuracy of CNN and FFNN is heavily dependent on whether the audio is processed into a spectrogram.

Keywords: machine learning; deep learning; music genre classification
Published: August 1, 2023
DOI: 10.54254/2755-2721/8/20230273
Volume: ACE Vol.8
pp. 550-555
Download PDF

References

  1. Neumayer, R., & Rauber, A. (2007). Integration of text and audio features for genre classification in music information retrieval. In Advances in Information Retrieval: 29th European Conference on IR Research, 724-727.
  2. Zhang, J. (2021). Music feature extraction and classification algorithm based on deep learning. Scientific Programming, 2021, 1-9.
  3. Doraisamy, S., Golzari, S., Mohd, N., Sulaiman, M. N., & Udzir, N. I. (2008). A Study on Feature Selection and Classification Techniques for Automatic Genre Classification of Traditional Malay Music, 331-336.
  4. McKay, C., & Fujinaga, I. (2006). Musical genre classification: Is it worth pursuing and how can it be improved? 101-106.
  5. Porter, A., Bogdanov, D., Kaye, R., Tsukanov, R., & Serra, X. (2015). Acousticbrainz: a community platform for gathering music information obtained from audio. 16th International Society for Music Information Retrieval Conference, 786-792.
  6. Tzanetakis, G., & Cook, P. (2002). Musical genre classification of audio signals. IEEE Transactions on speech and audio processing, 10(5), 293-302.
  7. Lau, D. S., & Ajoodha, R. (2022). Music genre classification: A comparative study between deep learning and traditional machine learning approaches. In Proceedings of Sixth International Congress on Information and Communication Technology, 4, 239-247.
  8. Padgaonkar, Y., Gole, J., & Tekwani, B. (2022). Music Genre Classification using Machine Learning, 139-143.
  9. Huang, D. A., Serafini, A. A., & Pugh, E. J. (2018). Music Genre Classification. CS229 Stanford, 1-6.
  10. Li, J., Cheng, K., Wang, S., Morstatter, F., Trevino, R. P., Tang, J., & Liu, H. (2017). Feature selection: A data perspective. ACM computing surveys (CSUR), 50(6), 1-45.