Automatic Music Genre Classification based on CNN and LSTM

Authors

  • Xining Luo

DOI:

https://doi.org/10.54097/hset.v39i.6494

Keywords:

Music Genre Classification; CNN; LSTM; GTZAN; FMA.

Abstract

Various applications of machine learning are discovered and receiving more and more attention contemporarily. The music industry has benefited from the incorporation of artificial intelligence, especially the field of music classification, as machines are able to organize big data in a more efficient manner than the traditional human expertises. This paper compares two machine learning models, the Convolutional Neural Network model (CNN), and the Long Short Term Memory model (LSTM), from their architectures, functionality, to classification accuracy based on empirical data. The models were trained on two datasets, GTZAN and FMA. The result indicates that the CNN model achieved a 56.0% and 50.5% accuracy for the two datasets respectively, outperforming the LSTM model, which had a 42.0% and 33.5% accuracy. The paper aims to analyze the two models’ capability for music classification and determine which model is better suited for the task. These results shed light on guiding further exploration of computer music.

Downloads

Download data is not yet available.

References

Kirk A, Miranda E R. Guide to Computing for Expressive Music Performance. Springer Publishing Company, Incorporated, 2012.

Bahuleyan Hareesh. Music genre classification using machine learning techniques. University of Waterloo, n.d.

Fradkov Alexander. Early history of machine learning. Institute for Problems in Mechanical Engineering, 2021.

Gessel Gabriel, Akesson Simon. A comparative analysis of CNN and LSTM for music genre classification. KTH Royal Institute of Technology, 2019.

Hewahi Nabil, AlSaigal Salman, and AlJanahi Sulaiman. Generation of music pieces using machine learning:

M Athulya, S Sindhu. Deep learning based music genre classification using spectrograms. NSS College of Engineering, 2021.

O’Shea Keiron, Nash Ryan. An introduction to convolutional neural networks. Aberystwyth University & Lancaster University, n.d.

Tibadiya Prem. Music genre classification using RNN-LSTM. 2020.

Zhang Jingwen. Music feature extraction and classification algorithm based on deep learning. Xi’an Peihua University, 2021.

long short-term memory neural networks approach. University of Bahrain, 2019.

long-short term memory neural network approach. University of Bahrain, 2019.

Downloads

Published

01-04-2023