Multimedia ResearchISSN:2582-547X

Understanding the Decision-Making Process of Music Genre Classification with Explainable Algorithms

  • Msge Desta A,
  • Chalachew Mulu C and
  • Abdulkerim Mohammed Y.

Abstract

Music genre classification is a fundamental task in music information retrieval, but the lack of interpretability in many machine learning models poses a significant challenge. To address this issue, we propose using a Random Forest Classifier (RFC), a simple and explainable artificial intelligence (XAI) technique, for music genre classification. Our objective is to develop a model that can identify the genre of a given music sample based on its audio features, while also providing insights into which features are most important for each genre. By doing so, we aim to gain a deeper understanding of the underlying patterns in music data and enable the development of more effective music-related applications. In this study, we combine two datasets and employ XAI techniques to gain insights into the decision-making process of the model while addressing the issue of class imbalance in the dataset. Overall, our approach provides a comprehensive and effective solution to music genre classification using XAI tools and methods.

References

  • G. Tzanetakis, S. Member, and P. Cook, “Musical Genre Classification of Audio Signals”, vol. 10, no. 5, pp. 293– 302, 2002. doi: 10.1109/TSA.2002.800560.
  • C. Molnar, B. Bischl, and G. Casalicchio, “Interpretable Machine Learning – A Brief History, State-of-the-Art and Challenges”, PKDD/ECML Work., no. 01, pp. 1–15, 2020. doi: 10.1007/978-3-030-65965-3_28.
  • L. Breiman, “Random Forests. Machine Learning”, Mach. Learn., vol. 45, no. 1, pp. 5–32, 2001. doi: https://doi.org/10.1023/A:1010933404324.
  • R. Singhal, S. Srivatsan, and P. Panda, “Classification of Music Genres using Feature Selection and Hyperparameter Tuning”, J. Artif. Intell. Capsul. Networks, vol. 4, no. 3, pp. 167–178, 2012. doi: https://doi.org/10.36548/jaicn.2022.3.003.
  • M. Ribeiro, S. Singh, and C. Guestrin, “Why Should I Trust You ? Explaining the Predictions of Any Classifier”, in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining., 1998, pp. 445–453. doi: 10.5555/645527.657469.
  • M. Brent, P. Allo, M. Taddeo, S. Wachter, and L. Floridi, “The Ethics of Algorithms: Mapping the Debate”, Big Data Soc., vol. 3, no. 2, 2016. doi: 10.1177/2053951716679679, 2016.
  • G. M. Bressan, B. C. de Azevedo, and E. A. S. Lizzi, “A decision tree approach for the musical genres classification”, Appl. Math. Inf. Sci., vol. 11, no. 6, pp. 1703–1713, 2017. doi: http://dx.doi.org/10.18576/amis/110617.
  • T. Arjannikov and J. Z. Zhang, “An Association-based Approach to Genre Classification in Music”, 15th Int. Soc. Music Inf. Retr. Conf. (ISMIR 2014), pp. 96–100, 2014.
  • W. Zhang, “Music Genre Classification Based on Deep Learning”, Mob. Inf. Syst., vol. 2022, pp. 1–11, 2022. doi: 10.1155/2022/2376888.
  • S. Poonia, C. Verma, and N. Malik, “Music Genre Classifi cation using Machine Learning A Comparative Study”, IITM J. Manag. IT, vol. 13, no. 1, pp. 15–21, 2022 [Online].
  • G. Song, Z. Wang, F. Han, and S. Ding, "Transfer learning for music genre classification", In Intelligence Science I: Second IFIP TC 12 International Conference, ICIS 2017, Shanghai, China, October 25-28, 2017, Proceedings 2 (pp. 183-190). Springer International Publishing, 2017.
  • C. Xu, N. C., X. S. Maddage, F. Cao, and Q. Tian, “Musical genre classification using support vector machines”, 2003 IEEE Int. Conf. Acoust. Speech, Signal Process. 2003. Proceedings. (ICASSP ’03)., vol.5, pp.V–429, 2003. doi: 10.1109/icassp.2003.1199998.
  • Y. H. Cheng and C. N. Kuo, “Machine Learning for Music Genre Classification Using Visual Mel Spectrum”, Mathematics, vol. 10, no. 23, pp. 4427, 2022. doi: 10.3390/math10234427.
  • A. P. Viswanathan, “Music Genre Classification”, Int. J. Eng. Comput. Sci., vol. 11, no. 5, pp. 255–259, 2016. doi: 10.18535/ijecs/v4i10.38.
  • D. Afchar, R. Hennequin, E. V Epure, and M. Moussallam, “Explainability in Music Recommender Systems”, AI Mag. 2022, vol. 1, no. 1, pp. 1–23, 2022.
  • N. Burkart and M. F. Huber, “A Survey on the Explainability of Supervised Machine Learning”, J. Artif. Intell. Res. X, vol. 70, pp. 245.347, 2020. doi: 10.48550/arXiv.2011.07876.
  • N. Karunakaran, "A Scalable Hybrid Classifier for Music Genre Classification using Machine Learning Concepts and Spark", vol. 11, no. 1. IEEE, 2018. doi: 10.1109/ICoIAS.2018.8494161.
  • H. Homburg, I. Mierswa, B. Möller, K. Morik, and M. Wurst, “A Benchmark Dataset for Audio Classification and Clustering”, International Conference on Music Information Retrieval (ISMIR), 2005. https://www-ai.cs.tu- dortmund.de/audio.html (accessed Apr. 04, 2023).
  • E. Alshdaifat, D. Alshdaifat, A. Alsarhan, F. Hussein, and S. Moh, “The Effect of Preprocessing Techniques, Applied to Numeric Features, on Classification Algorithms’ Performance”, MDPI, vol. 6, no. 2, 2021. doi: https://doi.org/10.3390/data 6020011.
  • N.V Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE : Synthetic Minority Over-sampling Technique”, Journal Artif. Intell. Res., vol. 16, pp.321–357,2002,doi: https://doi.org/10.1613/jair.953.
  • S. Mahanta, “Audio Feature Extraction”, Devopedia, 2021. https://devopedia.org/audio-feature-extraction (accessed Mar. 19, 2023).
  • M. Schedl, E. Gómez, and J. Urbano, “Music Information Retrieval : Recent Developments and Applications”, Found. Trends R© Inf., vol. 8, no. 2, pp. 127–261, 2014. doi: 10.1561/1500000042.
  • S. Tiwari and R. Verma, “Music Genre Classification,” New Delhi, 2018. [Online]. Available: file:///C:/Users/toler/Downloads/FinalReport_MT19019.pdf
  • B. J. Snoek, H. Larochelle, And R. P. Adams, “Practical Bayesian Optimization Of Machine Learning,” Adv. Neural Inf. Process. Syst., Pp. 1–12, 2012, Doi: 10.48550/Arxiv.1206.2944.
  • S. M. Lundberg and S. Lee, “A Unified Approach to Interpreting Model Predictions Scott”, Adv. Neural Inf. Process. Syst., pp. 4765–4774, 2017. doi: https://doi.org/10.48550/arXiv.1705.07874.
  • A. B. Arrieta, N. Díaz-Rodríguez, J. Del Ser, A. Bennetot, S. Tabik, A. Barbado, S. García, S. Gil-López, D. Molina, R. Benjamins, and R. Chatila, "Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI", Information fusion, Vol. 58, pp.82-115, 2020.
  • K. Choi, M. Sandler, and G. Fazekas, “Explaining Deep Convolutional Neural Networks on Music Classification,” ArXiv, vol. abs/1607.0, 2016. doi: https://doi.org/10.48550/arXiv.1607.02444.
  • Y. Padgaonkar, J. Gole, and B. Tekwani, “Music Genre Classification using Machine Learning”, Int. Res. J. Eng. Technol., vol. 09, no. 04, pp. 139–143, 2022.
  • J. Hanley and B. McNeil, “The meaning and use of the area under a receiver operating characteristic (ROC) curve”, Radiology, vol. 143, no. 1, pp. 29–36, 1982. doi: 10.1148/radiology.143.1.7063747.