Transformer-Based Emotional State Classification in Poetic Texts
  • Author(s): Ayush S; Harshith Raj Gowda H S; Vinay M G
  • Paper ID: 1713456
  • Page: 438-444
  • Published Date: 08-01-2026
  • Published In: Iconic Research And Engineering Journals
  • Publisher: IRE Journals
  • e-ISSN: 2456-8880
  • Volume/Issue: Volume 9 Issue 7 January-2026
Abstract

While emotion recognition is a core task of NLP, its application to poetry is hindered by the heavy use of metaphors and irregular structures that bypass simple keyword-based detection. This paper details a deep learning approach using a fine-tuned BERT encoder to classify emotions in English poetry across nine categories, including Love, Joy, Courage, and Sadness. Our methodology utilizes deep contextual embeddings and standard regularization to ensure high performance and model stability. Empirical testing demonstrates the model’s effectiveness, reaching an accuracy of 89.75% and a weighted F1-score of 89.72%. The findings suggest that transformer models are exceptionally well-suited for decoding the complex affective signals found in literature. We conclude by addressing limitations regarding overlapping emotional states and proposing next steps for intensity-aware and cross-lingual emotion detection.

Keywords

Poetry Emotion Classification, BERT, Transformer Models, Semantic Embeddings, Deep Learning, Natural Language Processing, Affective Computing.

Citations

IRE Journals:
Ayush S, Harshith Raj Gowda H S, Vinay M G "Transformer-Based Emotional State Classification in Poetic Texts" Iconic Research And Engineering Journals Volume 9 Issue 7 2026 Page 438-444 https://doi.org/10.64388/IREV9I7-1713456

IEEE:
Ayush S, Harshith Raj Gowda H S, Vinay M G "Transformer-Based Emotional State Classification in Poetic Texts" Iconic Research And Engineering Journals, 9(7) https://doi.org/10.64388/IREV9I7-1713456