Emotion Classification in Song Lyrics: Comparing Logistic Regression, DistilBERT, and Ensemble Models with TF-IDF and Word2Vec Features

Classifying emotions from song lyrics can be an interesting discussion in natural language processing (NLP) due to the subjectivity of language and the ambiguity of emotional expression. This study leverages the advantages of four different modeling approaches for classifying song lyrics into three emotion categories: Sadness, Tenderness, and Tension. The evaluated models include TF-IDF based Logistic Regression, Word2Vec based Logistic Regression, a stacked model combining TF-IDF based BiLSTM and XGBoost, and a transformer-based DistilBERT model. Experiments were conducted on a labeled dataset and achieving results of DistilBERT model outperformed other approaches, achieving an accuracy of 69.83% and a macro F1-score of 68%. Furthermore, the TF-IDF based Logistic Regression baseline achieved a macro F1-score of 59%, while Word2Vec based Logistic Regression and the stacked model yielded 55% and 52%, respectively. The findings demonstrate that contextual language models significantly improve emotion classification performance over traditional and shallow learning models, particularly when handling nuanced emotional language in music lyrics. However, class imbalance remains a limiting factor for minority labels such as Tension, suggesting the need for data augmentation or class-balancing strategies in future work.

Authors

Institutions

Publication Details

Published
2025-08-07
DOI
https://doi.org/10.1109/icoailo66760.2025.11156024
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Emotion Classification in Song Lyrics: Comparing Logistic Regression, DistilBERT, and Ensemble Models with TF-IDF and Word2Vec Features

Flavia Louis, Hidayaturrahman Hidayaturrahman, Alvin Alvitodinova
Sentiment Analysis and Opinion Mining
article

Emotion Classification in Song Lyrics: Comparing Logistic Regression, DistilBERT, and Ensemble Models with TF-IDF and Word2Vec Features

Flavia Louis, Hidayaturrahman Hidayaturrahman, Alvin Alvitodinova
article en

Abstract

Classifying emotions from song lyrics can be an interesting discussion in natural language processing (NLP) due to the subjectivity of language and the ambiguity of emotional expression. This study leverages the advantages of four different modeling approaches for classifying song lyrics into three emotion categories: Sadness, Tenderness, and Tension. The evaluated models include TF-IDF based Logistic Regression, Word2Vec based Logistic Regression, a stacked model combining TF-IDF based BiLSTM and XGBoost, and a transformer-based DistilBERT model. Experiments were conducted on a labeled dataset and achieving results of DistilBERT model outperformed other approaches, achieving an accuracy of 69.83% and a macro F1-score of 68%. Furthermore, the TF-IDF based Logistic Regression baseline achieved a macro F1-score of 59%, while Word2Vec based Logistic Regression and the stacked model yielded 55% and 52%, respectively. The findings demonstrate that contextual language models significantly improve emotion classification performance over traditional and shallow learning models, particularly when handling nuanced emotional language in music lyrics. However, class imbalance remains a limiting factor for minority labels such as Tension, suggesting the need for data augmentation or class-balancing strategies in future work.

Binus University (ID)
Openalex Percentile: Top 87%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Emotion Classification in Song Lyrics: Comparing Logistic Regression, DistilBERT, and Ensemble Models with TF-IDF and Word2Vec Features — Flavia Louis, Hidayaturrahman Hidayaturrahman, et al. · (2025) | TGRS Research Map | TGRS