Implementation of Music Genre Classifier Using KNN Algorithm
DOI:
https://doi.org/10.54097/hset.v34i.5439Keywords:
KNN algorithm, K-clustering, GMM, Music genre classification.Abstract
As music history grew, music began to diversify into different genres. Thisstudy aims to implement a music genre classifier using the KNN algorithm and a faster method. The KNN algorithm is accurate but with long execution time. This study implements a new method that can speed up the process of the KNN algorithm, and the K-means clustering algorithm inspires the idea. The dataset is preprocessed using the new idea. The program will select the song that is the centroid of the genre and use the method of the KNN to return the closest genre based on the distance from the test sample to the centroid. In conclusion, the new method did not perform well in accuracy but sped up the program. This study provides a great reference for the music genre classification problem in the machine learning domain. The study investigates an infeasible method in preprocessing data for the KNN algorithm optimization.
Downloads
References
Wikipedia contributors. (2022, September 2). Music genre. Wikipedia. https://en.m.wikipedia.org/wiki/Music_genre
Cover, T., & Hart, P. (1967). Nearest neighbor pattern classification. IEEE transactions on information theory, 13(1), 21-27.
Kaggle. 2020. GTZAN Dataset - Music Genre Classification. https://www.kaggle.com/datasets/andradaolteanu/gtzan-dataset-music-genre-classification
Ittichaichareon, C., Suksri, S., &Yingthawornsuk, T. (2012, July). Speech recognition using MFCC. In International conference on computer graphics, simulation, and modeling (Vol. 9).
Dave, N. (2013). Feature extraction methods LPC, PLP, and MFCC in speech recognition. International Journal for advance research in engineering and technology, 1(6), 1-4.
Goldberger, J., &Aronowitz, H. (2005). A distance measure between GMMS based on the unscented transform and its application to speaker recognition. Interspeech, 1985-1988.
Bouhlel, N., &Dziri, A. (2019). Kullback–Leibler divergence between multivariate generalized gaussian distributions. IEEE Signal Processing Letters, 26(7), 1021-1025.
Zhang, Min-Ling, and Zhi-Hua Zhou. "ML-KNN: A lazy learning approach to multi-label learning." Pattern recognition 40.7 (2007): 2038-2048.
Wang, H., Xu, P., & Zhao, J. (2021). Improved KNN Algorithm Based on Preprocessing of Center in Smart Cities. Complexity, 2021.
Arthur, David, and Sergei Vassilvitskii. k-means++: The advantages of careful seeding. Stanford, 2006.
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.







