Skip to main content
QUICK REVIEW

[Paper Review] Music Genre Classification using Machine Learning Techniques

Hareesh Bahuleyan|arXiv (Cornell University)|Apr 3, 2018
Music and Audio ProcessingComputer Science23 references47 citations
TL;DR

The paper compares CNN-based spectrogram classification with traditional hand-crafted features for music genre classification on AudioSet, and shows an ensemble of VGG-16 transfer learning and XGBoost achieving the best AUC of 0.894.

ABSTRACT

Categorizing music files according to their genre is a challenging task in the area of music information retrieval (MIR). In this study, we compare the performance of two classes of models. The first is a deep learning approach wherein a CNN model is trained end-to-end, to predict the genre label of an audio signal, solely using its spectrogram. The second approach utilizes hand-crafted features, both from the time domain and the frequency domain. We train four traditional machine learning classifiers with these features and compare their performance. The features that contribute the most towards this multi-class classification task are identified. The experiments are conducted on the Audio set data set and we report an AUC value of 0.894 for an ensemble classifier which combines the two proposed approaches.

Motivation & Objective

  • Motivate automatic music genre tagging for large libraries and streaming services.
  • Compare end-to-end CNN approaches using spectrograms with traditional feature-based classifiers.
  • Identify which features contribute most to genre classification.
  • Evaluate performance on the AudioSet dataset and analyze feature importance.

Proposed method

  • Convert audio to MEL spectrograms and feed to a CNN based on VGG-16 with transfer learning or fine-tuning.
  • Extract time-domain and frequency-domain hand-crafted features using librosa and train conventional classifiers (LR, RF, SVM, XGB).
  • Train a baseline feed-forward network on flattened spectrograms.
  • Regularize neural nets with L2 regularization and dropout to mitigate overfitting.
  • Evaluate models using accuracy, F-score, and AUC with a 90/5/5 train/validation/test split.
  • Ensemble the best CNN (VGG-16 TL) with the best feature-based model (XGB) by averaging predicted probabilities.

Experimental results

Research questions

  • RQ1Can spectrogram-based CNNs achieve higher genre classification performance than traditional feature-based classifiers?
  • RQ2Which hand-crafted features contribute most to music genre classification performance?
  • RQ3Does ensembling CNN-based and feature-based models improve overall performance on AudioSet?

Key findings

  • The VGG-16 CNN using only the spectrogram achieved the highest metrics among single models (Accuracy 0.63, F-score 0.61, AUC 0.891 for transfer learning; 0.64, 0.61, 0.889 for fine-tuning).
  • Among feature-based models, SVM (0.57/0.52/0.856) and XGB (0.59/0.55/0.865) outperform LR and RF.
  • The ensemble of VGG-16 CNN and XGBoost yields the best overall AUC of 0.894 and accuracy of 0.65, F-score 0.62.
  • MFCCs are among the top features, with spectral contrast means/stds and tempo also important.
  • Using top 10, 20, 30, and 97 features shows substantial performance with only 30 features (AUC 0.845, Accuracy 0.55) approaching the full feature set (AUC 0.865, Accuracy 0.59).
  • Frequency-domain features outperform time-domain features for this task, and combining both offers the best results (AUC 0.865, Accuracy 0.59).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.