Research Article

Music Genre Classification: A Comprehensive Study on Feature Fusion with CNN and MLP Architectures

Xiang Li1, Fan Li2, Zhi Peng Lu3, Zi yue Yang4,*
1. Guangdong University of Finance and Economics, China
2. Jiangnan University, China
3. South China Normal University, China
4. Brown University, Shanghai, 02912, China

* Corresponding author: [email protected]

Abstract

The classification of music genres has been a key focus in the field of music information retrieval (MIR), many researchers are also looking for a number of ways to solve this problem. Early approach Feature-based methods such as Support Vector Machines (SVMs) and K-nearest Neighbors (k-NN) are mainly used for handcrafted features such as Mel frequency cepstrum coefficients (MFCC). As convolutional neural networks (CNNs) are increasingly used to capture complex time-frequency patterns in audio data, the performance and accuracy of music genre classification has been dramatically improved.Recent research advances have been made in integrating attention mechanisms and mixing mechanisms, which further improves the accuracy of the genre classification model. But that's it. Methods often rely on a single type of input data, such as spectrograms or raw audio data, and are therefore limited. They are able to fully capture the multifaceted nature of music.In this research, we propose a novel multi-input neural network architecture that uniquely integrates a CNN for Mel spectrogram processing with a Multilayer Perceptron (MLP) for handling additional feature data extracted from CSV files. This two-branch approach can effectively help us understand music data more comprehensively while processing spectral and feature-based information. The GTZAN dataset was a great help for our experiments, and the details of this part will be explained later. In addition, our model effectively combines the advantages of both CNN and MLP methods, thereby improving the classification accuracy of multiple music genres. And finally, our results show that the system achieves [0.77] accuracy, support [10], recall [0.67], and F1 score [0.65].

Keywords: Music Genre Classification; Audio Features; CNN; MLP; GTZAN Dataset
Published: January 24, 2025
DOI: 10.54254/2755-2721/2024.20632
Volume: ACE Vol.132
pp. 158-165
Download PDF

References

  1. Wei Y, Xia W, Lin M, Huang J, Ni B, Dong J, Zhao Y, Yan S (2016) Hcp: A exible cnn framework for multi-label image classification. IEEE Trans Pattern Anal Mach Intell 38(9):1901–1907
  2. Ciresan D, Meier U, Masci J, Gambardella ML, Schmidhuber J (2011) Flexible, high performance convolutional neural networks for image classification, in IJCAI Proceedings-International Joint Conference on Artificial Intelligence, 22:1237, Barcelona, Spain
  3. Arabi A, Lu G (2009) Enhanced polyphonic music genre classification using high level features, In Signal and Image Processing Applications (ICSIPA), 2009 IEEE International Conference on, pp 101–106, IEEE
  4. Yang S, Hai Long W, Lin L, Dong Mei P.(2022). A review of the classification of music genres in the field of music information retrieval. FX361, 30 June. Available at: https://m.fx361.com/news/2022/0630/18906073.html (Accessed: 16 August 2024)
  5. Tzanetakis, G. & Cook, P., 2002. Musical genre classification of audio signals. IEEE Transactions on Speech and Audio Processing, 10(5), pp.293-302. Available at: https://ieeexplore.ieee.org/document/1021071 [Accessed 18 Aug. 2024].
  6. Dieleman, S. & Schrauwen, B., 2014. End-to-end learning for music audio. arXiv preprint. Available at: https://arxiv.org/abs/1312.6614 [Accessed 18 Aug. 2024].
  7. Choi, K., Fazekas, G., Sandler, M. & Cho, K., 2017. Convolutional recurrent neural networks for music classification. arXiv preprint. Available at: https://arxiv.org/abs/1609.04243 [Accessed 18 Aug. 2024].
  8. Salamon, J. & Bello, J.P., 2017. Deep convolutional neural networks and data augmentation for environmental sound classification. arXiv preprint. Available at: https://arxiv.org/abs/1608.04363 [Accessed 18 Aug. 2024].
  9. Miron, M., Lattner, S. & Richard, G., 2019. A recurrent neural network approach to music genre classification using audio features. IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). Available at: https://ieeexplore.ieee.org/document/8744015 [Accessed 18 Aug. 2024].
  10. Fontes, A., Richard, G. & Peeters, G., 2022. Music genre classification using deep learning techniques. arXiv preprint. Available at: https://arxiv.org/abs/2107.03465 [Accessed 18 Aug. 2024].
  11. Anirudh Ghildiyal, Komal Singh, and Sachin Sharma, “Music genre Classification using Machine Learning”, Proceedings of the 4th International Conference on Electronics, Communication and Aerospace Technology (ICECA 2020) : 5-7, November 2020.
  12. Allamy S, Koerich A L. 1D CNN architectures for music genre classification[C]//2021 IEEE symposium series on computational intelligence (SSCI). IEEE, 2021: 01-07.
  13. D. Sun, M. Lv, H. Ren, J. Fan, and Q. Liu, “A Classification Model of Music Genres Using BP Neural Network Based on Genre Similarity Analysis, ” in Proceeding - 2021 China Automation Congress, CAC 2021, Institute of Electrical and Electronics Engineers Inc., 2021, pp. 6989–6994. doi:10.1109/CAC53003.2021.9728352.
  14. Elbir A, Aydin N. Music genre classification and music recommendation by using deep learning[J]. Electronics Letters, 2020, 56(12): 627-629.
  15. Xie C, Song H, Zhu H, et al. Music genre classification based on res-gated CNN and attention mechanism[J]. Multimedia Tools and Applications, 2024, 83(5): 13527-13542.