Classification and Categorization of Music Genre Using Machine Learning Algorithms

Authors

  • T. Bhaskar Sanjivani College of Engineering, Ahmednagar, Maharashtra, India
  • Avanti Joshi Sanjivani College of Engineering, Ahmednagar, Maharashtra, India
  • Kiran Nikam Sanjivani College of Engineering, Ahmednagar, Maharashtra, India
  • Pagar Pratibha Sanjivani College of Engineering, Ahmednagar, Maharashtra, India
  • Nale Divyani Sanjivani College of Engineering, Ahmednagar, Maharashtra, India
  • Nabriya Trupti Sanjivani College of Engineering, Ahmednagar, Maharashtra, India

Keywords:

Audio feature extraction, K-Nearest Neighbors (KNN), Librosa, Machine learning, Principal Component Analysis (PCA), Random Forest, Support Vector Machine (SVM)

Abstract

Music genre classification is crucial in music information retrieval for organizing large music libraries and enhancing recommendation systems. This research presents an innovative web-based application for music genre classification. Users can upload WAV format music files, which are processed to extract audio features such as spectral characteristics, rhythmic attributes, and Mel-Frequency Cepstral Coefficients (MFCCs) using the Librosa library. Preprocessing includes handling missing values, normalization, and dimensionality reduction via Principal Component Analysis (PCA). Machine learning classifiers—K-Nearest Neighbors (KNN), Support Vector Machine (SVM), and Random Forest—are trained on labelled music samples to predict genres accurately.

Classifier performance is evaluated using accuracy, precision, recall, and F1-score, with results visualized graphically. Experimental results demonstrate the approach's efficacy in inaccurate genre classification, highlighting its potential for improving music recommendation systems and genre-based analysis. In summary, the proposed music genre classification system represents a significant advancement in automated music categorization, providing a robust, efficient, and user-friendly solution that revolutionizes genre identification and classification.

Author Biographies

T. Bhaskar, Sanjivani College of Engineering, Ahmednagar, Maharashtra, India

Associate Professor, Department of Computer Engineering

Avanti Joshi, Sanjivani College of Engineering, Ahmednagar, Maharashtra, India

Under Graduate Student, Department of Computer Engineering

Kiran Nikam, Sanjivani College of Engineering, Ahmednagar, Maharashtra, India

Under Graduate Student, Department of Computer Engineering

Pagar Pratibha, Sanjivani College of Engineering, Ahmednagar, Maharashtra, India

Under Graduate Student, Department of Computer Engineering

Nale Divyani, Sanjivani College of Engineering, Ahmednagar, Maharashtra, India

Under Graduate Student, Department of Computer Engineering

Nabriya Trupti, Sanjivani College of Engineering, Ahmednagar, Maharashtra, India

Under Graduate Student, Department of Computer Engineering

Published

2024-05-31

How to Cite

T. Bhaskar, Avanti Joshi, Kiran Nikam, Pagar Pratibha, Nale Divyani, & Nabriya Trupti. (2024). Classification and Categorization of Music Genre Using Machine Learning Algorithms. Journal of Knowledge in Data Science and Information Management, 1(2), 15–22. Retrieved from https://matjournals.net/engineering/index.php/JoKDSIM/article/view/498

Issue

Section

Articles