Perbandingan Decision Tree, KNN, dan Naive Bayes pada Klasifikasi Mood Musik Menggunakan Dataset Emotion Kaggle

Authors

  • Miftakhur Rahman Sistem Informasi, Universitas Semarang
  • Muhammad Arham Lutfi Sistem Informasi, Universitas Semarang
  • Nur Wakhidah Teknik Informatika, Universitas Semarang https://orcid.org/0000-0002-6486-8939

DOI:

https://doi.org/10.33020/saintekom.v16i1.1019

Keywords:

music mood, audio features, MFCC, Decision Tree, KNN, Naive Bayes

Abstract

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

Download data is not yet available.

Author Biographies

Miftakhur Rahman, Sistem Informasi, Universitas Semarang

Miftakhur Rahman is a student at Semarang University with a study program in Information Systems, who created or is the main author of this research

Muhammad Arham Lutfi, Sistem Informasi, Universitas Semarang

Muhammad Arham Lutfi is a student at the University of Semarang with an information systems study program who is interested in and helped in the creation of this research.

Nur Wakhidah, Teknik Informatika, Universitas Semarang

Lecturer at the Faculty of Information and Communication Technology, Universitas Semarang.

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

PlumX Metrics

Published

31-03-2026

How to Cite

Rahman, Miftakhur, Muhammad Arham Lutfi, and Nur Wakhidah. 2026. “Perbandingan Decision Tree, KNN, Dan Naive Bayes Pada Klasifikasi Mood Musik Menggunakan Dataset Emotion Kaggle”. Jurnal Saintekom : Sains, Teknologi, Komputer Dan Manajemen 16 (1):15-26. https://doi.org/10.33020/saintekom.v16i1.1019.

Issue

Section

Articles