Lyrics-Based Mood Detection in Music Using Text Mining Techniques

This paper classifies songs based on lyrical content for the growing demand of better user experiences and personal music recommendations. The main idea is to come up with a classifier that could determine whether a song is happy, sad, calm, or energetic based on the lyrics. It uses indepth text analysis over data retrieved from kaggle(Spotify) to see word distributions which differ across categories of emotions. Achieving meaningful text representation, feature selection uses the Bag of Words (BOW) model, along with Part-of-Speech (POS) tagging and stemming through WordNet. The classification model built with Random Forest and XGBoost uses hyperparameter tuning through grid search to improve model performance. The outcome of this research demonstrates the effective application of text mining techniques in Python to analyze, categorize, and predict the emotion of music, thus offering a more personalized music experience for users.

Authors

Institutions

Publication Details

Published
2025-02-05
DOI
https://doi.org/10.1109/idciot64235.2025.10914753
Primary Topic
Music and Audio Processing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Lyrics-Based Mood Detection in Music Using Text Mining Techniques

Anantha Murthy, Ramyashree Ramyashree, G M Harshitha, Rashmi Rashmi et al.
Music and Audio Processing
article

Lyrics-Based Mood Detection in Music Using Text Mining Techniques

Anantha Murthy, Ramyashree Ramyashree, G M Harshitha, Rashmi Rashmi, Keerthi Shetty, S Punyashree
article en

Abstract

This paper classifies songs based on lyrical content for the growing demand of better user experiences and personal music recommendations. The main idea is to come up with a classifier that could determine whether a song is happy, sad, calm, or energetic based on the lyrics. It uses indepth text analysis over data retrieved from kaggle(Spotify) to see word distributions which differ across categories of emotions. Achieving meaningful text representation, feature selection uses the Bag of Words (BOW) model, along with Part-of-Speech (POS) tagging and stemming through WordNet. The classification model built with Random Forest and XGBoost uses hyperparameter tuning through grid search to improve model performance. The outcome of this research demonstrates the effective application of text mining techniques in Python to analyze, categorize, and predict the emotion of music, thus offering a more personalized music experience for users.

Manipal Academy of Higher Education (IN)
Openalex Percentile: Top 95%
Music and Audio Processing
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.

Lyrics-Based Mood Detection in Music Using Text Mining Techniques — Anantha Murthy, Ramyashree Ramyashree, et al. · (2025) | TGRS Research Map | TGRS