Perbandingan Decision Tree, KNN, dan Naive Bayes pada Klasifikasi Mood Musik Menggunakan Dataset Emotion Kaggle
DOI:
https://doi.org/10.33020/saintekom.v16i1.1019Keywords:
music mood, audio features, MFCC, Decision Tree, KNN, Naive BayesAbstract
The classification of music mood characteristics is a crucial instrument in Music Information Retrieval (MIR) systems to support recommendation technology and AI-based emotion analysis. This study aims to evaluate and compare the performance of three classification algorithms: Decision Tree, K-Nearest Neighbors (KNN), and Naive Bayes. The dataset utilized is sourced from the Kaggle Emotion Dataset, comprising 1,440 audio files. The feature extraction process was conducted using the Librosa library to capture acoustic parameters, including Mel-Frequency Cepstral Coefficients (MFCC), Delta-MFCC, Chroma, Spectral Contrast, Spectral Centroid, Spectral Bandwidth, and Tempo. All features were normalized using StandardScaler and distributed into training and testing sets with an 80:20 ratio. Based on the experimental results, the K-Nearest Neighbors algorithm demonstrated the most superior performance with an accuracy of 71.52%. Meanwhile, the Decision Tree algorithm achieved an accuracy of 54.16%, and Naive Bayes obtained 53.47%. The primary contribution of this research is the empirical evidence of the effectiveness of distance-based algorithms in identifying emotional patterns within multidimensional audio data. These findings provide a robust methodological reference for the future development of music emotion recognition systems
Downloads
References
Abrah et al. (2025). Arus Jurnal Sains dan Teknologi (AJST) Penerapan Machine Learning untuk Mengklasifikasikan Genre Musik Berdasarkan Fitur Audio. 3(2). http://jurnal.ardenjaya.com/index.php/ajsthttp://jurnal.ardenjaya.com/index.php/ajst
Ananda Putra, R., & Rama Nugroho, A. (2026). Sistem Klasifikasi Emosi Kucing Menggunakan SVM dan Strategi Augmentasi Data (Vol. 5).
Diaz, R. A. N., Suwirmayanti, N. L. G. P., & Budiarta, K. (2024). Perbandingan Kualitas Pengenalan Suara Untuk Ekstraksi Fitur Menggunakan Mfcc Dan Spectral. Naratif?: Jurnal Nasional Riset, Aplikasi Dan Teknik Informatika, 6(1), 58–63. https://doi.org/10.53580/naratif.v6i1.281
Fadlila Surenggana, F., Aranta, A., & Bimantoro, F. (2022). Klasifikasi Mood Musik Menggunakan K-Nearest Neighbor Dengan Mel Frequency Cepstral Coefficients (Mood Music Classification using K-Nearest Neighbor with Mel Frequency Cepstral Coefficients). https://doi.org/doi.org/10.29303/jtika.v4i2.191
Harsemadi, I. G. (2023). Perbandingan Kinerja Algoritma K-NN dan SVM dalam Sistem Klasifikasi Genre Musik Gamelan Bali. Informatics For Educators And Professional?: Journal of Informatics, 8(1), 1. https://doi.org/10.51211/itbi.v8i1.2417
Hendri, D., Nadha, D., Basri, F. K., Wajdi, M. F., & Nadhirah, N. (2024). Comparation of Decision Tree Algorithm, Naive Bayes, K-Nearest Neighbords on Spotify Music Genre. IJATIS: Indonesian Journal of Applied Technology and Innovation Science, 1(1), 47–53. https://doi.org/10.57152/ijatis.v1i1.1219
Marsya, N. D., Munadhil, M. M., Dzakyananta, M. A., Amaliah, K., & Rofianto, D. (2025). Penerapan Algoritma Random Forest dalam Prediksi Emosi Musik Berdasarkan Karakteristik Fitur Audio Spotify. Jurnal Sains Informatika Terapan, 4(2), 435–440. https://doi.org/10.62357/jsit.v4i2.648
Maulana, P. I., Aranta, A., Bimantoro, F., & Andika, I. G. (2022). Klasifikasi Mood Musik Berdasarkan Mel Frequency Cepstral Coefficients Dengan Backpropagation Neural Network. Jurnal RESISTOR (Rekayasa Sistem Komputer), 5(1), 72–85. https://doi.org/10.31598/jurnalresistor.v5i1.1089
Munajad, M. A., Ridwan, A., & Pratama, T. G. (2025). Pengembangan Sistem Rekomendasi Musik dengan K-Means dan KNN Berbasis Cosine Similarity. Sainteks, 22(2), 153–165. https://doi.org/10.30595/sainteks.v22i2.27815
Nindya Sari, A., Latifah, N., Lingkar Selatan, J., Kudus, K., & Tengah, J. (2025). PT. Media Akademik Publisher Pengenalan Suara Personal Menggunakan Ekstraksi Mfcc Dan Support Vector Machine Berbasis Cloud Computing. JMA), 3, 3031–5220. https://doi.org/10.62281
Purba, T. M., Gusti, I., Gede, A., Kadyanan, A., Raya, J., Udayana, K., Jimbaran, B., & Selatan, K. (2025). Klasifikasi Instrumen Musik Menggunakan Metode Machine Learning. JNATIA, 4(1).
Qurniaty, C. A., & Kusnawi, K. (2023). Ekspresi Emosi Berdasarkan Suara Menggunakan Algortima Multi Layer Perceptron dan Support Vector Machine. Indonesian Journal of Computer Science, 12(6), 2023–4014. https://doi.org/10.33022/ijcs.v12i6.3567
Wahyuni, N. M. P., Putri, L. A. A. R., Putra, I. G. N. A. C., Darmawan, D. M. B. A., Raharja, M. A., & Muliantara, A. (2022). Implementasi Metode K-Nearest Neighbor Dalam Mengklasifikasikan Jenis Suara Berdasarkan Jangkauan Vokal. JELIKU (Jurnal Elektronik Ilmu Komputer Udayana), 11(1), 187. https://doi.org/10.24843/JLK.2022.v11.i01.p20
Wairata, C. R., Swedia, E. R., & Cahyanti, M. (2021). Pengklasifikasian Genre Musik Indonesia Menggunakan Convolutional Neural Network. Sebatik, 25(1), 255–261. https://doi.org/10.46984/sebatik.v25i1.1286
Wibowo, A., & Isnain, A. R. (2025). Implementasi Algoritma Machine Learning untuk Klasifikasi Suara Lingkungan. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 5(2), 616–625. https://doi.org/10.57152/malcom.v5i2.1712
Zidane Dhamara, G., & Nugroho, A. (2025). Klasifikasi Genre Musik Menggunakan Machine Learning. Bulletin of Information Technology (BIT), 6(3), 206–217. https://doi.org/10.47065/bit.v5i2.2021
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Miftakhur Rahman, Muhammad Arham Lutfi, Nur Wakhidah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright :
By submitting manuscripts to Jurnal Saintekom : Sains, Teknologi, Komputer dan Manajemen, the author agrees with this policy. No specific document approval is required.
- The copyright in each article belongs to the author.
- Authors retain all their rights to the published work, not limited to the rights set forth in this page.
- Authors acknowledge that Saintekom Journal: Science, Technology, Computers and Management as the first to publish under the Creative Commons Attribution 4.0 International license (CC BY-SA).
- The author may submit the paper separately, arrange for non-exclusive distribution of the manuscript that has been published in this journal into other versions (e.g. sent to the author's institutional respository, publication into a book, etc.), by acknowledging that the manuscript has been first published Jurnal Saintekom : Sains, Teknologi, Komputer dan Manajemen;
- The author warrants that the article is original, written by the named author, has not been previously published, contains no unlawful statements, does not infringe the rights of others, is subject to copyright exclusively held by the author.
- If the article is jointly prepared by more than one author, each author submitting the manuscript warrants that he or she has been authorized by all co-authors to agree to copyright and license notices (agreements) on their behalf, and agrees to inform co-authors of the terms of this policy. Jurnal Saintekom : Sains, Teknologi, Komputer dan Manajemen will not be held liable for anything that may arise due to internal author disputes.
Lisensi :
Jurnal Saintekom : Sains, Teknologi, Komputer dan Manajemen is published under the terms of the Creative Commons Attribution 4.0 International License (CC BY-SA). This license permits anyone to:.
- Share - copy and redistribute this material in any form or format;
- Adaptation - modify, alter, and create derivatives of this material for any purpose.
- Attribution - you must give appropriate credit, include a link to the license, and state that changes have been made. You may do this in any appropriate manner, but it does not imply that the licensor endorses you or your use.
- Similar Sharing - If you modify, alter, or create a derivative of this material, you must distribute your contribution under the same license as the original material.


