# Mood classification from song lyrics using the Naive Bayes Algorithm, Support Vector Machine (SVM) and XGBoost > Punne M.R. URL kanonis: https://discover.unhas.ac.id/publications/mood-classification-from-song-lyrics-using-the-naive-bayes-algorithm-support-vec Jurnal / Konferensi: Proceedings of the 2024 IEEE International Conference on Industry 4 0 Artificial Intelligence and Communications Technology Iaict 2024 Tahun terbit: 2024 DOI: https://doi.org/10.1109/IAICT62357.2024.10617452 Citations: 1 ## Authors - Punne M.R. ## Abstract Music has become a crucial aspect of daily life, with more people using streaming apps to listen to music. This research focuses on analyzing song extraction through Natural Language Processing (NLP) to determine mood information. The primary feature used in this analysis is song lyrics. Initially, we perform text preprocessing and apply feature extraction methods like Term Frequency-Inverse Document Frequency (TF-IDF), Smoothed TF-IDF, Inverse Term Count (ITC), and Smoothed ITC. Subsequently, we classify moods based on lyrics using machine learning classifiers, including Naïve Bayes, Support Vector Machine (SVM), and Extreme Gradient Boosting (XGBoost) algorithms. The findings of this study reveal that the SVM algorithm excels over other feature extraction methods. The most accurate combination is Smoothed ITC with the SVM algorithm, achieving an accuracy of 91.52%, precision of 91.84%, recall of 91.40%, and F1-score of 91.50%. ## Keywords - Support vector machine - Naive Bayes classifier - Lyrics - Computer science - Artificial intelligence - Structured support vector machine - Statistical classification - Bayes' theorem - Pattern recognition (psychology) - Machine learning - Algorithm - Bayesian probability - Literature - Art --- Sumber: Discover Unhas — RIMS Universitas Hasanuddin. Saat mengutip, gunakan DOI bila tersedia atau URL kanonis di atas.