Music Genre Classification Using Classical Machine Learning Algorithms on the GTZAN Dataset

Authors

  • Matina Tuladhar Department of Electronics and Computer Engineering, Thapathali Campus, Kathmandu
  • Shishir Gaire Department of Electronics and Computer Engineering, Thapathali Campus, Kathmandu
  • Rajad Shakya Department of Electronics and Computer Engineering, Thapathali Campus, Kathmandu

Keywords:

music genre classification, machine learning, GTZAN dataset, k-Nearest Neighbors, audio features, MFCC

Abstract

This study presents a comprehensive evaluation of classical machine learning algorithms for automatic music genre classification using the GTZAN dataset gacor5000. We systematically analyze k-Nearest Neighbors (k-NN), Decision Trees, and Logistic Regression on 1,000 audio tracks spanning ten genres, utilizing 58 pre-extracted audio features including MFCCs, spectral descriptors, and temporal characteristics. Our methodology employs rigorous preprocessing, stratified cross-validation, and extensive hyperparameter optimization. Results demonstrate that k-NN achieves exceptional performance with 92.04% accuracy—significantly outperforming Logistic Regression (71.97%) and Decision Trees (65.12%). Per-class analysis reveals substantial genre-specific variations, with classical music achieving 94.97% accuracy while rock music presents the greatest challenge at 51.50%. Feature importance analysis identifies MFCC coefficients and spectral centroid as the most discriminative. Statistical significance testing confirms k-NN superiority (p < 0.001). These findings establish a new benchmark for classical approaches on GTZAN, demonstrating that traditional methods can achieve remarkable accuracy when combined with appropriate feature engineering and optimization strategies.

Abstract
133
PDF
0

Downloads

Published

2025-12-24 — Updated on 2026-04-22

Versions

How to Cite

Tuladhar, M., Gaire, S., & Shakya, R. (2026). Music Genre Classification Using Classical Machine Learning Algorithms on the GTZAN Dataset. International Journal on Engineering Technology, 3(1), 135-145. https://doi.org/10.3126/injet.v3i1.87018 (Original work published 2025)

Issue

Section

Articles

How to Cite

Tuladhar, M., Gaire, S., & Shakya, R. (2026). Music Genre Classification Using Classical Machine Learning Algorithms on the GTZAN Dataset. International Journal on Engineering Technology, 3(1), 135-145. https://doi.org/10.3126/injet.v3i1.87018 (Original work published 2025)