Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Jul 15;13(1):11441.
doi: 10.1038/s41598-023-38171-0.

Machine learning-based guilt detection in text

Affiliations

Machine learning-based guilt detection in text

Abdul Gafar Manuel Meque et al. Sci Rep. .

Abstract

We introduce a novel Natural Language Processing (NLP) task called guilt detection, which focuses on detecting guilt in text. We identify guilt as a complex and vital emotion that has not been previously studied in NLP, and we aim to provide a more fine-grained analysis of it. To address the lack of publicly available corpora for guilt detection, we created VIC, a dataset containing 4622 texts from three existing emotion detection datasets that we binarized into guilt and no-guilt classes. We experimented with traditional machine learning methods using bag-of-words and term frequency-inverse document frequency features, achieving a 72% f1 score with the highest-performing model. Our study provides a first step towards understanding guilt in text and opens the door for future research in this area.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
Original label distribution for each subset.

References

    1. Kugler KE, Jones WH. On conceptualizing and assessing guilt. J. Pers. Soc. Psychol. 1992;62:318–327. doi: 10.1037/0022-3514.62.2.318. - DOI
    1. Rawlings, E. I. Reactive guilt and anticipatory guilt in altruistic behavior. In Altruism and Helping Behavior (eds Macaulay, J. & Berkowitz, L.) 163–177 (Academic Press, 1970).
    1. Kealy D, Treeby MS, Rice SM. Shame, guilt, and suicidal thoughts: The interaction matters. Br. J. Clin. Psychol. 2021;60:414–423. doi: 10.1111/bjc.12291. - DOI - PubMed
    1. Freud S. Mourning and melancholia. J. Nervous Ment. Dis. 1922;56:543–545. doi: 10.1097/00005053-192211000-00066. - DOI
    1. Baumeister, R. F. Guilt, Shame, and Anxiety: Understanding and Overcoming Negative Emotions (Lexington Books, 1994).

Publication types

MeSH terms