Emotion Classification of Song Lyrics Using the Naïve Bayes SVM Method

  • Putu Ode Irfan Ardika Udayana University
  • I Gusti Ngurah Anom Cahyadi Putra
  • I Gede Arta Wibawa
  • Luh Gede Astuti

Abstract

In the digital era, emotion recognition in music enhances personalized recommendation systems. This study classifies emotions in Indonesian song lyrics—happy and sad—using Naïve Bayes and Support Vector Machines (SVM). A dataset of 1,051 lyrics was scraped from Genius and labeled using the NRC Word-Emotion Lexicon. Preprocessing included case folding, normalization, tokenization, stopword removal, and stemming, followed by TF-IDF feature extraction. Model evaluation used 5-Fold Cross Validation with accuracy, precision, recall, and f1-score metrics. Results show that Naïve Bayes outperforms SVM, achieving 67% accuracy and a 66% f1-score, while SVM reached only 50% accuracy and a 33% f1-score. Thus, Naïve Bayes is more effective for emotion classification in Indonesian lyrics

Downloads

Download data is not yet available.
Published
2025-07-15
How to Cite
ARDIKA, Putu Ode Irfan et al. Emotion Classification of Song Lyrics Using the Naïve Bayes SVM Method. JELIKU (Jurnal Elektronik Ilmu Komputer Udayana), [S.l.], v. 14, n. 1, july 2025. ISSN 2654-5101. Available at: <http://ojs.unud.ac.id/index.php/jlk/article/view/127789>. Date accessed: 12 sep. 2025.
Warning: array_merge(): Argument #2 is not an array in /var/www/ojs.unud.ac.id_backup/lib/pkp/classes/core/PKPApplication.inc.php on line 578 Warning: Invalid argument supplied for foreach() in /var/www/ojs.unud.ac.id_backup/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114

Most read articles by the same author(s)

<< < 1 2 3 4 5 > >>