Research Article

Music Genre Classification with Lightweight CNN

Yuxing Jiang*
Shanghai Concord Bilingual School

* Corresponding author: [email protected]

Abstract

The classification of music genres is a fundamental task in music information field. This project investigated how the characteristics of audio, the model architecture, and the selection of input segment length jointly affect the classification accuracy on the FMA small dataset. Lightweight self-designed convolution network CompactResNet trains on 3 second fragments by using these three major feature representations: Mel spectrogram, stft spectrogram, mfcc. Then it is compared with svm baselines with rbf kernels in those same features. This paper has done more research about the segments of length between 3 and 30: The CNN using MFE gets the best result, which is 90.5%; and the SVM with STFT gets 89.7%, so these two kinds of models like features differently: The shorter segment was better than the longer one: Accuracy decreased monotonically from 90.5% at three seconds and 53.8% at 30s, so data enrichment via segmentation is better than adding more time context.

Keywords: Music genre classification; convolutional neural network; mel spectrogram; support vector machine
Published: May 18, 2026
DOI: 10.54254/2755-2721/2026.GU33513
Volume: ACE Vol.240
pp. 133-140
Download PDF

References

  1. Kamien, R. (2018). Music: An appreciation (13th ed.). McGraw-Hill Education.
  2. Brackett, D. (2016). Categorizing sound: Genre and twentieth-century popular music. Univ of California Press.
  3. Scaringella, N., Zoia, G., & Mlynek, D. (2006). Automatic genre classification of music content: A survey. IEEE Signal Processing Magazine, 23(2), 133–141.
  4. Sturm, B. L. (2013). The GTZAN dataset: Its contents, its faults, their effects on evaluation, and its future use. arXiv: 1306.1461.
  5. Tzanetakis, G., & Cook, P. (2002). Musical genre classification of audio signals. IEEE Transactions on Speech and Audio Processing, 10(5), 293–302.
  6. Li, T., Ogihara, M., & Li, Q. (2003). A comparative study on content-based music genre classification. In Proc. 26th ACM SIGIR, 282–289.
  7. SuriyaPrakash, J., & Kiran, S. (2022). Obtain better accuracy using music genre classification systemon gtzan dataset. In 2022 IEEE North Karnataka subsection flagship international conference (NKCon) (pp. 1-5). IEEE.
  8. Zhang, Y., & Li, T. (2025). Music genre classification with parallel convolutional neural networks and capuchin search algorithm. Scientific reports, 15(1), 9580.
  9. Zhang, J. (2023). Music Genre Classification with ResNet and Bi-GRU Using Visual Spectrograms. arXiv: 2307.10773.
  10. Defferrard, M., Benzi, K., Vandergheynst, P., & Bresson, X. (2017). FMA: A Dataset for Music Analysis. arXiv: 1612.01840.