about
Emotion Classification in Software Engineering Texts (arxiv.org)
1 point by jruohonen on Jan 22, 2024 | hide | past | pdf | 1 comment on HN

In plain words: Six ready-trained text models were tested on labeling emotions like anger, joy, and fear in developer posts from GitHub and Stack Overflow, compared with the best existing emotion tool. They beat it by 1.17% to 16.79%, with general-purpose models outdoing code-trained ones.

Abstract · Emotion Classification In Software Engineering Texts: A Comparative Analysis of Pre-trained Transformers Language Models

Emotion recognition in software engineering texts is critical for understanding developer expressions and improving collaboration. This paper presents a comparative analysis of state-of-the-art Pre-trained Language Models (PTMs) for fine-grained emotion classification on two benchmark datasets from GitHub and Stack Overflow. We evaluate six transformer models - BERT, RoBERTa, ALBERT, DeBERTa, CodeBERT and GraphCodeBERT against the current best-performing tool SEntiMoji. Our analysis reveals consistent improvements ranging from 1.17% to 16.79% in terms of macro-averaged and micro-averaged F1 scores, with general domain models outperforming specialized ones. To further enhance PTMs, we incorporate polarity features in attention layer during training, demonstrating additional average gains of 1.0\% to 10.23\% over baseline PTMs approaches. Our work provides strong evidence for the advancements afforded by PTMs in recognizing nuanced emotions like Anger, Love, Fear, Joy, Sadness, and Surprise in software engineering contexts. Through comprehensive benchmarking and error analysis, we also outline scope for improvements to address contextual gaps.

Mia Mohammad Imran
arXiv:2401.10845 · cs.SE · submitted Jan 19, 2024 · updated Feb 3, 2024
abstract · pdf · html

add comment on HN

Besides again the fundamental issue about the number of "emotions", what this genre of research fails to understand is that you cannot reliably deduce an "emotion" from something someone writes on the Internet (i.e., construct validity). And I have my doubts also about detecting "emotions" from face expressions. Maybe we might learn something from dramaturgy or some related wild field?