Large-Scale Music Genre Analysis and Classification Using Machine Learning with Apache Spark
Article
Chaudhury, M., Karami, A. and Ghazanfar, M. A. 2022. Large-Scale Music Genre Analysis and Classification Using Machine Learning with Apache Spark. Electronics. 11 (16), p. 2567. https://doi.org/10.3390/electronics11162567
Authors | Chaudhury, M., Karami, A. and Ghazanfar, M. A. |
---|---|
Abstract | The trend for listening to music online has greatly increased over the past decade due to the number of online musical tracks. The large music databases of music libraries that are provided by online music content distribution vendors make music streaming and downloading services more accessible to the end-user. It is essential to classify similar types of songs with an appropriate tag or index (genre) to present similar songs in a convenient way to the end-user. As the trend of online music listening continues to increase, developing multiple machine learning models to classify music genres has become a main area of research. In this research paper, a popular music dataset GTZAN which contains ten music genres is analysed to study various types of music features and audio signals. Multiple scalable machine learning algorithms supported by Apache Spark, including naïve Bayes, decision tree, logistic regression, and random forest, are investigated for the classification of music genres. The performance of these classifiers is compared, and the random forest performs as the best classifier for the classification of music genres. Apache Spark is used in this paper to reduce the computation time for machine learning predictions with no computational cost, as it focuses on parallel computation. The present work also demonstrates that the perfect combination of Apache Spark and machine learning algorithms reduces the scalability problem of the computation of machine learning predictions. Moreover, different hyperparameters of the random forest classifier are optimized to increase the performance efficiency of the classifier in the domain of music genre classification. The experimental outcome shows that the developed random forest classifier can establish a high level of performance accuracy, especially for the mislabelled, distorted GTZAN dataset. This classifier has outperformed other machine learning classifiers supported by Apache Spark in the present work. The random forest classifier manages to achieve 90% accuracy for music genre classification compared to other work in the same domain. |
Keywords | music genre; Apache Spark; PySpark; machine learning; exploratory data analysis |
Journal | Electronics |
Journal citation | 11 (16), p. 2567 |
ISSN | 2079-9292 |
Year | 2022 |
Publisher | MDPI |
Publisher's version | License File Access Level Anyone |
Digital Object Identifier (DOI) | https://doi.org/10.3390/electronics11162567 |
Web address (URL) | https://www.mdpi.com/2079-9292/11/16/2567 |
Publication dates | |
Online | 17 Aug 2022 |
Publication process dates | |
Accepted | 14 Aug 2022 |
Deposited | 04 Jul 2023 |
Copyright holder | © 2022, The Author(s) |
https://repository.uel.ac.uk/item/8w3qz
Download files
210
total views276
total downloads4
views this month2
downloads this month