Detecting Aggression in Language: From Diverse Data to Robust Classifiers

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.

Authors

Institutions

Publication Details

Journal
Electronics
Published
2024-12-10
DOI
https://doi.org/10.3390/electronics13244857
Citations
2
Primary Topic
Hate Speech and Cyberbullying Detection
Type
article
Field-Weighted Citation Impact
0.69
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Detecting Aggression in Language: From Diverse Data to Robust Classifiers

Aleksander Wawer, B. Żuk, Agnieszka Mykowiecka
2 citations
Electronics
Hate Speech and Cyberbullying Detection
0.69
article

Detecting Aggression in Language: From Diverse Data to Robust Classifiers

Aleksander Wawer, B. Żuk, Agnieszka Mykowiecka
article en
2 citations

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.

ElectronicsVol. 13(24)
Institute of Computer Science (PL), Polish Academy of Sciences (PL)
Openalex Percentile: Top 23%
Hate Speech and Cyberbullying Detection
0.69
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.