Back to search

Universidade de Coimbro

MERGE Lyrics: Next-Generation Lyrics Music Emotion Variation Detection

Abstract

dc:description.abstract

Lyrics Music Emotion Variation Detection (LMEVD), which focuses on tracking emotional shifts within song lyrics, is a growing sub-field of Music Information Retrieval (MIR). However, progress has been hindered by the scarcity of publicly available high-quality datasets, inconsistencies in annotation practices, lack of standardized benchmarks, and limitations in the employed data representations, e.g., textual features and word embeddings. This thesis addresses these gaps through a large-scale empirical study and the creation of a novel resource for the community. The core contribution of this work is the introduction of the Music Emotion Recognition - Next Generation (MERGE) Bimodal Music Emotion Variation Detection (BMEVD) dataset, comprising 152 songs and 926 manually annotated segments with decoupled audio and lyric emotion labels. This dataset enables granular, stanza-level analysis of emotional progression. Using this dataset and an established benchmark, we conducted a comprehensive evaluation of modern Natural Language Processing (NLP) techniques for LMEVD. We systematically compared traditional feature engineering against static and contextual word embeddings, a wide range of machine learning and deep learning classifiers, and various feature pooling strategies. Our experiments demonstrate that contextual embeddings, particularly fine-tuned RoBERTa, significantly outperform static embeddings and classic features. Crucially, we found that a well-tuned Convolutional Neural Network classifier paired with fine-tuned RoBERTa embeddings and no pooling achieved the highest performance, a macro F1-score of 75% on the BMEVD dataset and 70% on a previous benchmark, surpassing prior results. Building on this strong unimodal foundation, we proposed a novel bimodal framework for Music Emotion Variation Detection (MEVD), where structural segments were obtained using All in One, with lyrics automatically transcribed from the isolated vocals (Demucs) via Whisper. These transcriptions were processed using our best-performing lyrical model (fine-tuned RoBERTa + CNN). Despite leveraging this optimal configuration, the bimodal fusion, evaluated through averaging and arousal-valence (AV) strategies, did not surpass the audio-only model’s macro F1-score of 48.37%. The average method only achieved a macro F1-score of 43.44%, and the AV method (macro F1-score: 44.94%) showed a targeted improvement on quadrants (Q2 and Q4). However, the overall performance was ultimately limited by the poor quality of automated transcriptions (Word Error Rate (WER): 55%), with the lyrics-only model only achieving a 40.31% macro F1-score. These findings confirm that reliable lyrical extraction remains the critical bottleneck for effective bimodal MEVD. Finally, to bridge the gap between computational analysis and practical application, we developed an interactive dashboard that visualizes the emotional dynamics of songs using our best-performing model. This work provides a robust benchmark, practical guidelines for effective LMEVD, and a foundation for future research into music’s emotional narrative, with applications in recommendation systems and music therapy, for example.

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Mangara, Alice Fátima
Advisors dc:contributor.advisor
  • Malheiro, Ricardo
  • Paiva, Rui Pedro Pinto de Carvalho e

Subjects

dc:subject × 10

Rights

dc:rights
Statement dc:rights
  • openAccess
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Tid
204036992

Chain of custody

source
Harvested from
Universidade de Coimbro
Base URL
estudogeral.sib.uc.pt/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Mangara, Alice Fátima. MERGE Lyrics: Next-Generation Lyrics Music Emotion Variation Detection. 2025. https://hdl.handle.net/10316/120736