Research Article

Data augmentation techniques for classification of music genre

Aixin Zhang1,*, Hanyu Zhang2
1. Westmount Collegiate Institute, 1000 New Westminster Dr, Thornhill, ON, L4J 8G3, Canada
2. Zhengzhou No.7 Middle School Senior High School Branch, 70 Sanquan Rd, Jinshui District, Zhengzhou, Henan, China, 450045

* Corresponding author: [email protected]

Abstract

Music genre classification, a crucial aspect in the field of audio processing, has been widely investigated using different machine learning methods. However, there is still a need to determine the most optimal application between Long Short-Term Memory (LSTM) networks and Convolutional Neural Networks (CNNs) in the field of music genre classification, and the augmentation and enhancement of the data utilized for these machine learning techniques is still an important topic to study. The objective of this research is to identify the most effective solution and to improve the accuracy of music categorization. This will be achieved through an in-depth comparison of various data augmentation techniques and neural networks. In this study, both CNN and LSTM networks are optimized and trained. The dataset has been enhanced by extracting Mel Frequency Cepstral Coefficients (MFCC) data from music recordings using three different sampling techniques. The thorough approach undertaken facilitates a detailed assessment of the effectiveness of each method in classifying genres. The experimental findings show that the combination of CNN and random sampling outperforms all other tested algorithms, resulting in a significant enhancement in genre classification accuracy. This research provides valuable findings that can inform future studies in the pursuit of more effective techniques for classifying music genres.

Keywords: music genre classification; data augmentation; mel frequency cepstral coefficients
Published: February 4, 2024
DOI: 10.54254/2755-2721/33/20230257
Volume: ACE Vol.33
pp. 149-156
Download PDF

References

  1. Tan, Zhiyuan. (2020). Research on Multimodal Music Emotion Classification of Audio-Text Fusion. North China University of Technology.
  2. Denk, J., Burmester, A., Kandziora, M., & Clement, M. (2022). The impact of COVID-19 on music consumption and music spending. Plos one, 17(5), e0267640.
  3. Gao, Yuxuan. (2020). Research on Music Audio Classification based on Deep Learning. South China University of Technology.
  4. Zhong, Huihu. (2022). Research on Sentiment Classification of Pop Music App Reviews. Guilin University of Electronic Technology.
  5. Liu, C., Feng, L., Liu, G., Wang, H., & Liu, S. (2021). Bottom-up broadcast neural network for music genre classification. Multimedia Tools and Applications, 80, 7313-7331.
  6. Lau, Dhevan & Ajoodha, Ritesh. (2022). Music Genre Classification: A Comparative Study Between Deep Learning and Traditional Machine Learning Approaches. 10.1007/978-981-16-2102-4_22.
  7. Kostrzewa D, Ciszynski M, Brzeski R. Evolvable hybrid ensembles for musical genre classification[C]//Proceedings of the Genetic and Evolutionary Computation Conference Companion. 2022: 252-255.
  8. Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., & Salakhutdinov, R. (2014). Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1), 1929-1958.
  9. Berrar, Daniel. (2018). Cross-Validation. 10.1016/B978-0-12-809633-8.20349-X.
  10. Agarap, A. F. (2018). Deep learning using rectified linear units (relu). arXiv preprint arXiv:1803.08375.
  11. Sturm, B. L. (2012, November). An analysis of the GTZAN music genre dataset. In Proceedings of the second international ACM workshop on Music information retrieval with user-centered and multimodal strategies (pp. 7-12).
  12. GTZAN, https://www.kaggle.com/datasets/andradaolteanu/gtzan-dataset-music-genre-classification
  13. Tzanetakis, G., & Cook, P. (2002). Musical genre classification of audio signals. IEEE Transactions on speech and audio processing, 10(5), 293-302.
  14. Patil, N. M., & Nemade, M. U. (2017). Music genre classification using MFCC, K-NN and SVM classifier. International Journal of Computer Engineering In Research Trends, 4(2), 43-47.
  15. McFee, B., Raffel, C., Liang, D., Ellis, D. P., McVicar, M., Battenberg, E., & Nieto, O. (2015, July). librosa: Audio and music signal analysis in python. In Proceedings of the 14th python in science conference (Vol. 8, pp. 18-25).