Klasifikasi Mood pada Musik Pop dan Jazz dengan Menggunakan Mel Frequency Cepstral Coefficients dan K-Nearest Neighbor

  • I Gusti Bagus Putrawan Universitas Udayana
  • I Ketut Gede Suhartana Universitas Udayana

Abstract

This research discusses mood classification in pop and jazz music using Mel Frequency Cepstral Coefficients (MFCC) and the K-Nearest Neighbor (KNN) algorithm. The dataset used consists of 900 songs with mood labels angry, happy, relaxed, and sad obtained from Kaggle. The data was processed by extracting 13 MFCC features and then continuing with classification using KNN. The research results show that the best accuracy reaches 64% with K=9. Accuracy at K=7 obtained a value of 60%, while at K=11 an accuracy of 58% was obtained. Evaluation was carried out using accuracy, precision, recall and f1-score metrics, with the best results found at K=9. This research emphasizes the importance of selecting K parameters for optimizing mood classification models.


Keywords: Mood Clasification, MFCC, K-Nearest Neighor, Music Emotion Recognition

Published
2024-11-01
How to Cite
PUTRAWAN, I Gusti Bagus; SUHARTANA, I Ketut Gede. Klasifikasi Mood pada Musik Pop dan Jazz dengan Menggunakan Mel Frequency Cepstral Coefficients dan K-Nearest Neighbor. Jurnal Nasional Teknologi Informasi dan Aplikasnya, [S.l.], v. 3, n. 1, p. 995-1002, nov. 2024. ISSN 3032-1948. Available at: <https://ojs.unud.ac.id/index.php/jnatia/article/view/116091>. Date accessed: 09 jan. 2025. doi: https://doi.org/10.24843/JNATIA.2024.v03.i01.p13.