Claim Missing Document
Check
Articles

Found 1 Documents
Search

Perbandingan Decision Tree, KNN, dan Naive Bayes pada Klasifikasi Mood Musik Menggunakan Dataset Emotion Kaggle Rahman, Miftakhur; Lutfi, Muhammad Arham; Wakhidah, Nur
Jurnal Saintekom : Sains, Teknologi, Komputer dan Manajemen Vol 16 No 1 (2026): Maret 2026
Publisher : STMIK Palangkaraya

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.33020/saintekom.v16i1.1019

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