Research Article

Evaluating Full-Track Log-Mel Features and a CNN-BiGRU Model for Music Genre Classification Using the FMA-Small Dataset

Liyu Deng*
Tongji University

* Corresponding author: [email protected]

Abstract

Automatic music genre classification is complicated by overlapping genre boundaries and by distribution differences between development and test data. This study evaluates whether expanding temporal coverage and recurrent modeling improves a compact convolutional baseline on the official FMA-small split. All 8,000 thirty-second clips are represented as 128-bin log-Mel spectrograms. The baseline CNN uses a fixed 512-frame excerpt, whereas the proposed system retains the full track, samples random 512-frame crops during training, uses a bidirectional gated recurrent unit after convolutional feature extraction, and averages five deterministic crops at inference. SpecAugment, mixup, class-weighted cross-entropy, AdamW, and cosine learning-rate decay are applied without changing the official 6,400/800/800 train-validation-test partition. The proposed system raises validation accuracy from 46.50% to 62.25% and validation macro-F1 from 43.93% to 59.62%. However, test accuracy changes from 48.75% to 47.63%, while test macro-F1 increases modestly from 45.19% to 47.30%. The resulting 14.62-percentage-point validation-to-test accuracy gap shows that the optimization package improved development-set performance but did not establish stronger overall generalization. The work therefore contributes a reproducible, leakage-aware evaluation and demonstrates why final claims must be based on held-out test behavior rather than validation gains alone.

Keywords: music genre classification; FMA-small; log-Mel spectrogram; CNN-BiGRU; macro-F1
Published: November 17, 2026
DOI: 10.54254/2755-2721/2027.SE39184
Volume: ACE Vol.284
pp. 1-8
Download PDF

References

  1. Defferrard, M., Benzi, K., Vandergheynst, P., & Bresson, X. (2017). FMA: A dataset for music analysis.Proceedings of the 18th International Society for Music Information Retrieval Conference (ISMIR), 316-323.
  2. McFee, B. et al. (2015). librosa: Audio and music signal analysis in Python.Proceedings of the 14th Python in Science Conference, 18-24.
  3. Choi, K., Fazekas, G., Sandler, M., & Cho, K. (2017). Convolutional recurrent neural networks for music classification.Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2392-2396.
  4. Zhang, H., Cisse, M., Dauphin, Y. N., & Lopez-Paz, D. (2018). mixup: Beyond empirical risk minimization.International Conference on Learning Representations (ICLR).
  5. Park, D. S., Chan, W., Zhang, Y., Chiu, C.-C., Zoph, B. et al. (2019). SpecAugment: A simple data augmentation method for automatic speech recognition.Interspeech, 2613-2617.
  6. Loshchilov, I., & Hutter, F. (2019). Decoupled weight decay regularization.International Conference on Learning Representations (ICLR).
  7. Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J. et al. (2019). PyTorch: An imperative style, high-performance deep learning library.Advances in Neural Information Processing Systems, 32, 8024-8035.
  8. Chen, K., Du, X., Zhu, B., Ma, Z., Berg-Kirkpatrick, T. et al. (2022). HTS-AT: A hierarchical token-semantic audio transformer for sound classification and detection.Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 646-650.
  9. Koutini, K., Schlüter, J., Eghbal-zadeh, H., & Widmer, G. (2022). Efficient training of audio transformers with patchout.Interspeech, 2753-2757.
  10. Huang, P.-Y., Xu, H., Li, J., Baevski, A., Auli, M. et al. (2022). Masked autoencoders that listen.Advances in Neural Information Processing Systems, 35, 28708-28720.
  11. Gong, Y., Lai, C.-I., Chung, Y.-A., & Glass, J. (2022). SSAST: Self-supervised audio spectrogram transformer.Proceedings of the AAAI Conference on Artificial Intelligence, 36, 10699–10709.
  12. Chen, S., Wu, Y., Wang, C., Liu, S., Tompkins, D., et al. (2023). BEATs: Audio pre-training with acoustic tokenizers.Proceedings of the 40th International Conference on Machine Learning, 202, 5178–5193.
  13. Elizalde, B., Deshmukh, S., Al Ismail, M., & Wang, H. (2023). CLAP: Learning audio concepts from natural language supervision.Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 1–5.
  14. Li, Y., Yuan, R., Zhang, G., Ma, Y., Chen, X., et al. (2024). MERT: Acoustic music understanding model with large-scale self-supervised training.International Conference on Learning Representations (ICLR).
  15. Wang, J., Li, S., & Sung, Y. (2023). Deformer: Denoising transformer for improved audio music genre classification.Applied Sciences, 13, 12673.