Detecting Aggression in Language: From Diverse Data to Robust Classifiers
Open Access
- 10 December 2024
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 13 (24) , 4857
Abstract
The automatic detection of aggressive language is a difficult challenge. Currently, three datasets are available in Polish, enabling the training of machine learning models to recognise different types of linguistic aggression. In this paper, we address the issues of the transferability of knowledge between datasets and training a single model that works best on all types of aggression. Due to data imbalance, we experiment with two loss functions dedicated to training on imbalanced data: Weighted Cross-Entropy and Focal loss. Using the Polish language HerBERT model, we present the results of experiments in the Cross-dataset scenario and the model results using the combined data. Our results show that (1) combining diverse types of linguistic aggression during training leads to a better-performing classifier and (2) Weighted Cross-Entropy outperforms other tested loss functions.Keywords
Funding Information
- Institute of Computer Science, Polish Academy of Sciences
This publication has 15 references indexed in Scilit:
- A transformer-based multi-task framework for joint detection of aggression and hate on social media dataNatural Language Engineering, 2023
- Cyberbullying-related Hate Speech Detection Using Shallow-to-deep LearningComputers, Materials & Continua, 2023
- Tackling cyber-aggression: Identification and fine-grained categorization of aggressive texts on social media using weighted ensemble of transformersNeurocomputing, 2022
- Aggression Detection in Social Media from Textual Data Using Deep Learning ModelsApplied Sciences, 2022
- KLEJ: Comprehensive Benchmark for Polish Language Understanding2020
- The Meaning of Aggression Varies Across Culture: Testing the Measurement Invariance of the Refined Aggression Questionnaire in Samples From Spain, the United States, and Hong KongJournal of Personality Assessment, 2018
- An integrative theoretical understanding of aggression: a brief expositionCurrent Opinion in Psychology, 2018
- Czy komputer rozpozna hejtera? Wykorzystanie uczenia maszynowego (ML) w jakościowej analizie danychPrzegląd Socjologii Jakościowej, 2017
- A Survey on Hate Speech Detection using Natural Language Processing2017
- Bullying in the digital age: A critical review and meta-analysis of cyberbullying research among youth.Psychological Bulletin, 2014