Next Article in Journal
HYSARD: A Hybrid Feature-Fusion Model for Sarcasm Detection Using RoBERTa Embeddings and Linguistic Features
Previous Article in Journal
Towards Improved Clinical Adoption of AI Segmentation Models: Benchmarking High-Performance Models for Resource-Constrained Settings
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Evaluating Computational Approaches for Harmful Content Analysis: Promise, Pitfalls and Tools for Responsible Research

1
Department of Advertising and Public Relations, University of Georgia, Athens, GA 30602, USA
2
Institute for Artificial Intelligence, University of Georgia, Athens, GA 30602, USA
*
Author to whom correspondence should be addressed.
Big Data Cogn. Comput. 2026, 10(5), 143; https://doi.org/10.3390/bdcc10050143
Submission received: 18 March 2026 / Revised: 13 April 2026 / Accepted: 16 April 2026 / Published: 2 May 2026
(This article belongs to the Section Data Mining and Machine Learning)

Abstract

This manuscript develops and demonstrates a practical framework for evaluating automated classifiers used in communication research, using harmful language detection as an illustrative case. We combine (a) a structured review of documentation practices for 27 publicly available classifiers and their associated annotation processes with (b) a cross-dataset evaluation that re-tests each model beyond its original training context. Across 27 datasets, we extract and compare reporting on construct definitions, annotator instructions, and inter-annotator agreement, and we quantify generalization by applying each model to multiple out-of-domain test sets. We also benchmark a contemporary large language model (GPT-5) under a consistent prompting protocol to illustrate how LLM-based classification compares to fine-tuned classifiers. Results show that documentation is uneven and often insufficient for theory-driven measurement, inter-annotator agreement varies widely across datasets, and cross-dataset performance frequently drops substantially relative to within-dataset evaluations. Building on these findings and existing validation guidance, we provide a reusable checklist and decision flow to help researchers select, justify, and report classifier-based measures in ways that support transparency and cumulative science. Recommendations for researchers, reviewers, and journal editors stress aligning model selection with standards of validity, reliability, and transparency.

1. Introduction

As social media increasingly serves as central spaces for sharing opinions and debating contentious societal issues, concerns about their use to disseminate harmful content have also grown [1,2]. Exposure to online hate is linked to increased anxiety, depression, and post-traumatic stress among targeted users [3], and to hate crime activity [4]. Extremist violence can also trigger spikes in hate speech on Twitter/X, including content that advocates violence [5]. These stakes have made computational methods central for analyzing large volumes of user-generated content and identifying harmful expressions such as hate speech and offensive language [2,6,7].
As computational methods become routine in communication research, scholars and editors increasingly expect model-based coding to meet the reliability and validity standards long associated with human content analysis, yet validation and reporting remain inconsistent across text-as-data studies [8] and are often under-specified for construct alignment, evaluation design, and transfer across contexts in approaches like topic modeling, framing, and sentiment analysis [9,10,11]. To support credible inference, we treat transparent documentation of dataset provenance and labeling conditions as a pre-requisite [12] and center evaluation rather than constant model development [13,14], responding to concerns that harmful content research often prioritizes new architectures over generalization, validation, and bias [6,15].
Existing tools for evaluating harmful language classifiers include systematic dataset reviews [16], surveys of detection methods [17], and model repositories such as Hugging Face Hub [18]. These frameworks assess model performance through accuracy and F1 scores computed on the same dataset the model was trained on. This approach has known limitations: models frequently overfit to their training data, and cross-dataset evaluation is widely recommended to better reflect real-world performance [17,19]. We build on this by additionally evaluating whether annotators were trained and instructed consistently and whether the construct being measured aligns with how hate, offense, and threat are defined in communication research [20,21].
Our framework audits annotator instructions, recruitment, and qualifications to assess dataset-level construct validity and the operationalization of “hate,” “offense,” and “incivility” [11,12,22,23], and it foregrounds inter-annotator agreement by comparing reported reliability metrics to align ML practice with established communication measurement standards [8,24,25]. We also implement multi-dataset evaluation to avoid over-fitting conclusions to a narrow set of benchmarks and social contexts [6,26], addressing known limits in target and context coverage [27] and recommendations for validation across heterogeneous settings [9,11]. Finally, we strengthen replicability by documenting data retrieval when only post IDs are available [28], responding to broader reproducibility critiques [12,22], and we operationalize these principles as a practical, bias-aware evaluation framework with minimal reporting requirements and decision rules, demonstrated in harmful language detection where definitional and annotation heterogeneity can change what models effectively measure [6,8,9,12,22,27].
Empirically, we evaluate 27 publicly available models across five categories—hate speech, offensive language, bullying, racism, and threats—drawing on 27 training datasets (9 of them that we rebuilt) and retesting each model across additional datasets to quantify out-of-domain performance [11,29,30]. We also compare ChatGPT-5 labeling under a fixed prompting protocol to illustrate when LLM-based classification can and cannot substitute for task-specific models, given evidence of systematic classification bias in related settings [7,22]. Finally, we situate model selection within a theory-driven measurement approach, emphasizing that theory should guide both what is measured and how it is validated [14], and we close with recommendations for researchers, reviewers, and editors as AI tools continue to evolve [25].

1.1. Literature Review

As harmful content like hate speech, racism, threats, and bullying continues to grow on social media, its psychological and social consequences become increasingly severe. Exposure to such content can lead to anxiety, depression, and post-traumatic stress [31], while also creating hostile online environments that silence marginalized voices and discourage participation. Algorithms that prioritize engagement often amplify divisive posts, boosting extremism [32]. This can erode civil discourse and deepen social divides, normalizing prejudice and reinforcing harmful stereotypes [33]. Over time, this silencing of targeted communities weakens democratic participation and reduces the diversity of voices in public discussions [34].
The effects of online hate content are not limited to digital spaces; they shape real-world attitudes, politics, and violence [5]. Normalized hate speech can legitimize exclusionary ideologies and fuel support for xenophobic policies, especially during politically charged moments. For instance, Müller and Schwarz [4] found that anti-refugee sentiment on Facebook in Germany correlated with increased attacks against refugees, especially in far-right-leaning regions. Scholars using computational methods have uncovered the patterns and impact of such content: hate speech often delegitimizes protest movements [4], spreads within ideological echo chambers, and is masked through humor in memes [35]. At the same time, detecting nuanced toxic expressions remains a major challenge, especially in dataset development.
Increasing access to social media data and concerns about content misuse have prompted the adoption of computational methods for content analysis. These computational techniques label social media posts with predefined tags [17]. Borrowed from other disciplines, mainly computer sciences, computational methods raise concerns regarding the accuracy standards and whether they meet the expectations that communication researchers have followed for more than half a century. Content analysis principles are widely taught in communication research methods globally and need no detailed introduction; Berelson [20] nicely summarizes them as “the objective, systematic, and quantitative description of the manifest content of communication.” In essence, it involves extracting meaning from large volumes of content, yielding distinct labels for statistical analysis. Thus, using computational methods to label social media content shares objectives with traditional content analysis. However, standards in communication disciplines may diverge from those in computational approaches. We will first examine computational learning models to establish a foundation for assessing their quality. Next, we propose evaluating machine learning models against established communication science standards, focusing on construct validity, methods-specific external validity or cross-dataset consistency, internal validity, and intercoder reliability.

1.1.1. Computational Language Models: Background

Researchers can label previously unseen texts with predefined categories using multiple approaches, including classic supervised learning, human-in-the-loop workflows, and more recent neural language models. In this study, we focus on two widely used families of approaches: (1) pretrained language models (PLMs) that are typically fine-tuned for supervised classification, and (2) large language models (LLMs) that can be used for classification through prompting. We focus on these families because they dominate publicly available “off-the-shelf” solutions and are increasingly adopted in computational communication research.

1.1.2. Pretrained Language Models (PLMs)

PLMs, such as BERT (Bidirectional Encoder Representations from Transformers), are models trained on large amounts of unlabeled text to capture language patterns [36]. PLMs are then fine-tuned on specific, labeled datasets to classify content (e.g., hate speech) with high accuracy. This approach involves building upon a general language understanding to address a specialized task. In practice, PLMs are adapted to a classification task by training (often called fine-tuning) on labeled examples, producing a model that maps text inputs to class probabilities [36]. Fine-tuning can improve task performance when labeled data are informative and the target domain matches the deployment setting, but gains are not guaranteed and depend on data quality, label definitions, and domain shift.
Training datasets: The Data. The most common approach is to gather social media data directly from social media platforms like Twitter or Reddit [26,37,38], using publicly available Application Programming Interfaces (APIs) or using already prepared and cleaned datasets made available by other researchers. In other cases, training datasets are generated by large language models, such as ChatGPT, which produce specific content, such as offensive posts.
Training Datasets: Labeling. Models are trained on datasets considered the “accurate” classification of data into predefined labels. Labels can be broad, like “harassment” or “bullying,” or specific, such as “racist slur,” “threat,” or “derogatory language” [2]. Labeling this data is challenging, as concepts of “hate” or “toxicity” differ across cultures, languages, and contexts [26]. Most training dataset creators rely on crowdsourcing platforms like Amazon Mechanical Turk or Appen, or professional labeling services to annotate large volumes of content [37]. In these setups, hundreds of annotators tag each post as hateful, offensive, threatening, or none of the above. The schema varies: some datasets use binary classifications (“hate” vs. “not hate”), others adopt multiclass schemes (“racism,” “sexism,” “neutral”), and some implement hierarchical structures (“offensive” vs. “offensive with targeted hate” vs. “offensive without targeted hate”) [23,38]. Labeling content is subjective, prompting researchers to use inter-annotator agreement metrics like Cohen’s kappa or Krippendorff’s alpha to assess label consistency [17]. In such cases, domain experts, such as sociologists or linguists, may revise the annotation scheme or address contentious examples. Some research groups adopt iterative labeling, starting with crowd-based labels, identifying inconsistencies, and resolving them with expert annotators who clarify subtle distinctions [38].
The Model Training Process. Training itself is an iterative process [36]. A model begins with randomly initialized parameters, essentially, random guesses about how to transform an input (e.g., a social media post) into an output (i.e., a label, such as “racist” or “not racist”). It then refines these parameters by comparing its predictions to the correct “answer” in the dataset.
Evaluating the Accuracy of Models. Harmful speech detection models often report high accuracy based on in-sample testing, but these figures rarely reflect real-world performance [17]. Models frequently overfit to their training data and struggle with unseen content, especially when trained on narrow communities or slur sets, with accuracy dropping to 75–80% on new data [39]. Cross-domain and multi-dataset evaluations are recommended to improve generalization [2,17]. The lack of cross-platform testing raises concerns about generalizability, reinforcing the need for broader validation across different platforms and user groups [2].
Transparency. Evaluating computational models for content classification relies on transparency regarding dataset creation, annotator instructions, and model training. Davidson et al. [26] highlight the risks of keyword-based sampling in hate speech datasets, while Mathew et al. [1] demonstrate the importance of explainable annotations. Open-sourcing code along with labeling criteria and dataset details like source platforms and linguistic diversity enhances trustworthy evaluation [40]. As hateful language evolves swiftly, this openness is vital. Models like SOSNet [41] illustrate how design interpretability can be structured.
Three procedural decisions apply uniformly across all cross-dataset evaluations and are documented here for transparency. First, where the size of the negative class substantially exceeded the positive class, the negative class was down sampled to match the positive class size, ensuring that model performance metrics are not inflated by class imbalance. Second, BiasCorp does not contain a discrete racism label; binary labels were derived using the confidence-weighted scoring method described in the original dataset paper, whereby a weighted bias score above 1 is treated as positive (racially biased) and a score of 1 or below as negative. Bias scores range from 1 to 5, and confidence scores from 1 to 10 per annotator, with weights applied proportionally. Third, the Jigsaw Unintended Bias in Toxicity dataset provides continuous toxicity scores ranging from 0 to 1; following the binarization threshold recommended in the dataset’s official documentation, scores of 0.5 or above are treated as positive (toxic/threat) and scores below 0.5 as negative. In the Supplementary Materials, we present a Label Mapping Map for each target task, specifying which original dataset labels are coded as “positive,” which as “negative,” and which are excluded.

1.1.3. Large Language Models (LLMs)

LLMs are generative models trained to predict and generate text. Beyond pretraining on large corpora, many contemporary LLMs are instruction-tuned and aligned with human feedback to follow natural-language prompts. For classification, researchers can prompt an LLM to assign labels (zero-shot or few-shot) or to produce structured outputs, which can reduce the need for task-specific training data but introduces sensitivity to prompt design, model safety filters, and hidden training data [14]. A large body of work has studied prompting and instruction-following for classification; in this manuscript, we treat GPT-5 as a transparent baseline under a fixed prompting protocol rather than as a substitute for domain-specific validation.

1.1.4. Evaluation Framework: Validity, Reliability, and Transferability

We treat deep computational methods, PLMs and LLMs, that are used for automated content classification as measurement devices whose validity must be demonstrated rather than assumed [42]. We organize evaluation around three questions that map directly onto common social-scientific validity concerns and recent validation reviews [8,43].
Construct validity asks whether the labels correspond to the intended concept and whether the operational definition is documented (e.g., label definitions, examples, annotator instructions, and data provenance; [12]). Annotation reliability (i.e., human intercoder reliability) asks whether humans could apply the coding scheme consistently (e.g., Krippendorff’s alpha or related agreement statistics; [11]). External validity, in this context, concerns whether performance generalizes across time, platforms, languages, communities, or sampling frames, particularly when the model is applied beyond its training context [22,30]. Recognizing that external validity is more frequently perceived in terms of sample-to-population generality, we refer to this type of validity for this reason as “cross-dataset consistency.” Recent work further suggests that instruction-based variants can improve robustness against certain training-data biases, reinforcing the value of explicit instructions as part of the measurement instrument [44]. See Figure 1.

2. Materials and Methods

This study aims to assist communication scholars in evaluating and selecting computational models for classifying harmful content, such as hate speech, racism, threats, bullying, and offensive language. The methodology was designed to mirror what researchers might encounter when selecting or deploying a model using publicly available resources. Three core aspects of the methodology are described here: model selection, training dataset selection, and cross-dataset testing. Links to models and datasets are on the online Supplementary Materials section.

2.1. Model Selection

We followed a multi-criteria selection process to identify widely used models for five harmful language tasks (hate speech, offensive language, bullying/harassment, racism, and threats). We began with the Hugging Face model hub and the model papers cited in their documentation, then cross-checked task popularity using download counts and citations to prioritize models that are actively used in research and practice. In total, 27 models were identified and examined: 7 hate, 7 threat, 7 offensive language, 4 bullying, and 2 racism models. For each model we recorded the architecture, reported training data, label mapping, and any published evaluation details.
Types of models. Most selected models are BERT-family encoders fine-tuned for classification, but the set also includes alternative transformer variants and models trained with different pretraining or fine-tuning regimes to capture common choices available to researchers.

2.2. Training Dataset Selection

Datasets were sourced primarily from the Hugging Face Datasets hub and from the original papers linked in model documentation. When multiple datasets existed for a task, we prioritized those that are (a) publicly accessible, (b) accompanied by a paper or technical report, and (c) commonly used in benchmark comparisons. We extracted metadata about platform, language, sampling, label definitions, and availability of annotation documentation. Because many datasets contain multiple labels, some datasets contribute to more than one task category. For example, TDavidson’s corpus includes hate and offensive labels, enabling separate operationalizations depending on label mapping decisions.

2.3. Documentation Extraction and Coding (RQ1–RQ2)

For RQ1–RQ2, we created a structured extraction form aligned with prior validation guidance [12,43]. For each model and dataset, we recorded: (1) how the construct was defined (if at all), (2) the annotation protocol (instructions, examples, adjudication), (3) annotator characteristics and training, and (4) any reported inter-annotator agreement (e.g., Krippendorff’s alpha). When papers did not report information, we coded the item as not reported rather than inferring it. A second author audited a subset of extracted fields against the original sources to reduce transcription error.

2.4. Cross-Dataset Testing

To evaluate cross-dataset consistency (RQ3), we tested each model not only on its original benchmark dataset (when available) but also on multiple alternative labeled datasets that operationalize similar constructs. We standardized text preprocessing and label mapping across datasets to the extent possible, then computed performance on held-out splits without additional fine-tuning. This design approximates the common research scenario in which a classifier trained on one platform or population is applied to another; for example, a model trained on Twitter may be used to code YouTube comments or forum posts. Such domain shifts are known to reduce performance and can introduce systematic error [6,30]. We report accuracy and macro-averaged F1 for each model–dataset pairing and summarize generalization as the difference between within-dataset and out-of-domain performance. Where feasible, we complement these summaries with qualitative error inspection to identify recurrent failure modes (e.g., implicit hate, sarcasm, or contextual slurs).

2.5. GPT-5 Benchmark (LLM Prompting)

To contextualize results for researchers considering LLM-based labeling, we evaluated GPT-5 on the same dataset splits using a fixed prompt and the same label set used for each task. Inference was executed via OpenAI’s Batch API to ensure identical prompts and settings across items. We constrained outputs to a single label from the task’s label vocabulary and used deterministic decoding to reduce run-to-run variation. GPT-5 is not treated as ground truth; rather, it serves as a comparable, prompt-based classifier whose strengths and limitations can be contrasted with fine-tuned PLMs [7].

3. Results

RQ1: How do published harmful language classifiers document construct validity (concept definitions, labeling instructions, and training data provenance)?
Only 19 of the 27 models disclosed their training datasets. The level of transparency regarding the process of making and evaluating these datasets varies. Table 1 details the findings regarding annotators, inter-annotator agreement, and the label selection process. Where data was unavailable, it is indicated by “not mentioned”. It should be noted that models, such as detoxify, were trained to classify posts into more than one label, such as toxic, obscene, insult, threat, and identity_hate. In Table 1 below, we repeat these models, as they reflect the multiple labels this study explores. However, aggregate data for models are reported for unique models, with no replications. The same applies to training datasets, which often provide multiple labels for training multiple models.
Overall, we find that different models for the same label (e.g., Hate) were often trained on the same datasets. Both the bullying models whose training datasets are accessible were trained on the same dataset; 3 of the 7 offensive language models were trained on one dataset, and 5 of the 7 Threat models were trained on the same dataset. This is a common practice because benchmark datasets offer standardized, high-quality resources that enable consistent evaluation, reproducibility, and accelerate model training by removing the overhead of data collection [16]. However, this practice also highlights even further the importance of being able to evaluate, or at least better understand, the training models.
In contrast to traditional manual content analysis, where just a few well-trained human coders label the datasets, the process of labeling was much different. Of the total 11 models with at least some information about the training datasets, 10 used crowdsourcing platforms, such as Amazon MTurk or Appen, to manually label the posts. The number of annotators (i.e., “human coders”) is only mentioned in one model, hatexplain. The annotator guidelines across hate, bullying, racism, offensive, and threat detection datasets vary significantly in depth and transparency, as related to the training of the annotators. To systematically evaluate them, we categorize the guidelines into six types: Definition, Examples, Test Set, Spans, and Not Mentioned. The “Definition” category indicates that datasets provided annotators with explicit definitions of hate or bias and their different forms. Six of the models utilized datasets that indicated that a definition was given to annotators. However, only four disclosed the definition, all relying on the same training dataset. The definition provided in the TDavidson dataset, for instance, is “A language that is used to express hatred towards a targeted group or is intended to be derogatory, to humiliate, or to insult the members of the group.”
The “Examples” category indicates that annotators were given examples of labeled content, such as hate speech or racism, as part of their guidelines. Only the HateXplain dataset provided multiple examples with classification, target community, and span annotations to help the annotators understand the task. The “Spans” category, also seen only in HateXplain, indicates that instructions were given to annotators by marking specific portions of the text to highlight where hate is expressed. In other words, rather than providing examples of hateful content, for instance, this approach to training shows annotators how a specific type of content, as hate or racism, is being manifested in text. The hatexplain model relies on the HateXplain training dataset, which provides a sample of posts with spans that experts highlight as a reference for annotators.
Models with the “Test Set” note in the table suggest that a sample of pre-labeled posts was used to evaluate and select annotators before the complete annotation task. These posts are labeled by experts and serve as a benchmark to assess annotator reliability. In particular, 3 models in this study rely on the OLID dataset, which incorporates such a test set and imposes a minimum accuracy threshold. Only annotators who meet this threshold on the test set are allowed to proceed with labeling the full dataset, ensuring higher annotation quality. However, 16 of the 27 models rely on 10 datasets that fall under the “Not mentioned” group, where annotator instruction details are absent, reducing transparency and limiting interpretability.

3.1. Additional Training Datasets

Dataset Information. The limited amount of training data used for these models and the scarcity of information about them prompted us to explore additional publicly available datasets for training. Specifically, for bullying, offensive language, and racism, the scarcity of training datasets led us to identify supplementary datasets for cross-evaluation. This approach aligns with prior research, which emphasizes that cross-dataset evaluation is essential for assessing model generalizability across domains, particularly in detecting social bias and harmful content [17]. We identified an additional 18 training datasets: 4 for Racism, 4 for Offensive Language, 6 for Bullying, 3 for Hate Speech, and 2 for Threats (one dataset included both hate and offensive labels). A total of 4 datasets—BiasCorp, OffensiveLang, MMHS150k, and Implicit Hate Corpus—used Amazon Mechanical Turk annotators to assess bias and confidence scores. Three datasets—HASOC, Online Harassment Research, and New-Wave-Hate—are annotated by their authors. The Large-Scale Hate Speech dataset contains both hate and offensive labels and was labeled by 20 graduate and undergraduate students. One racism dataset, Are You Racist Or Am I Seeing Things, is labeled by Appen annotators. The other 7 datasets did not disclose their annotator sources or any other information about the process.
Annotator Information. Of the 18 additional datasets, 4 use Amazon Mechanical Turk annotators. The Large-Scale Hate Speech dataset uses 20 graduate and undergraduate student annotators. The authors of three datasets, including HASOC, Automated Cyberbullying Detection, and New-Wave-Hate, developed their own codebooks and annotated them themselves. The Are You Racist or Am I Seeing Things dataset employed Appen annotators, while Cyberbullying Twitter personally contacted 17 annotators. However, detailed information about them is not publicly disclosed. The Automated Cyberbullying Detection dataset incorporated pre-labeled aggressive/non-aggressive messages from prior work [47]. Seven of the 18 additional datasets did not disclose the source of their annotators.
Other labeling procedures. The Automated Cyberbullying Detection dataset combines pre-labeled aggressive/non-aggressive messages from Elsafoury et al. [47] with synthetically generated user data (e.g., age, gender, student grade) to simulate user interactions. Final bully/not-bully labels are determined by integrating aggression labels with three computed factors: intent to harm, peerness, and repetition. The Offensive-Lang dataset employs a novel strategy: generating posts with ChatGPT and labeling them manually via Amazon Mechanical Turk. See Table 2.
RQ2: What evidence is provided about annotation reliability in the datasets used to train these classifiers (e.g., inter-annotator agreement), and how is it reported?
Across datasets, evidence on annotation reliability is uneven and often difficult to interpret because papers differ in what they report. Some datasets provide detailed coder instructions and report formal agreement statistics, whereas others provide only minimal descriptions of the labeling workflow or omit agreement entirely. This variability matters because classifier performance is bounded by label quality: When labels are noisy or ambiguous, high predictive accuracy may reflect replication of noise rather than valid measurement [25].
Types of reported reliability. When agreement was reported, Krippendorff’s alpha was the most common statistic, alongside percent agreement and occasional use of Cohen’s kappa or Fleiss’ kappa. However, many papers did not specify key details needed for comparability, such as the unit of analysis, whether agreement was computed before or after adjudication, and how many annotators coded each item.
Final labels and adjudication. Even when agreement statistics were available, many datasets used majority voting or a final adjudication step to produce a single “gold” label for training. This practice can increase label consistency but can also mask systematic disagreements about borderline cases, which are often theoretically consequential in harmful language research [27].
RQ3: How well do these classifiers generalize when applied to alternative labeled datasets beyond their original training data (out-of-domain testing)?
We selected multiple training datasets for each harmful content category, including, where available, the datasets originally associated with the selected models, as well as widely used, stand-alone datasets that contained the same labels.

3.2. Hate Speech Detection Models

Training accuracies for these models range from 69% to over 94%, but cross-dataset performance often fluctuates, indicating challenges with cross-dataset consistency. For example, distilroberta_offensive_hate achieves a high accuracy of 96% on its training dataset, Badmatr11x, but drops to around 56–91% on other datasets. Our cross-dataset analysis reveals that the distilroberta_offensive_hate and roberta_large_offensive_hate models achieved the highest average accuracy (0.74, F1 = 0.72; 0.73, F1 = 0.73), respectively. These values are significantly lower than the values (0.97, F1 = 0.97; and 0.99, F1 = 0.99, respectively). See Table 3.

3.3. Threat Detection Models

This section presents the performance of seven threat detection models across four benchmark datasets, evaluated using accuracy and F1 scores. Among the models, lstm_glove achieved the highest average accuracy (0.73). detoxify_unbiased showed strong F1 performance (0.61), particularly on datasets with nuanced toxicity like Jigsaw and Combined Toxicity Profanity. In contrast, ensemble and nb_svm models exhibited significantly lower F1 scores, indicating limited effectiveness in identifying threats beyond surface-level cues. See Table 4.

3.4. Bully Detection Models

On average, the cyberbullying_bert model demonstrated the highest performance, with a mean accuracy of 0.71 and an F1 score of 0.55 across all datasets. The distil-bert_cyberbully model consistently performed the lowest, yielding a mean accuracy of 0.40 and an F1 score of 0.36. The highest individual performance was achieved by the lstm_bert model on the Kaggle Cyberbullying Dataset, with an accuracy of 0.95. The lowest recorded performance was by the distilbert_cyberbully model on the Online Harassment Dataset, with an accuracy score of 0.24. See Table 5.

3.5. Offensive Speech Detection Models

The hatexplain model demonstrated the highest overall average performance across all datasets, achieving an accuracy of 0.73 and an F1-score of 0.62. While the distilrob-erta_offensive_hate model had the lowest average F1-score, it achieved the single best performance with an accuracy of 0.97 and an F1-score of 0.95 on the TDavidson dataset. The analysis also revealed that F1-scores were consistently lower than accuracy scores for most models, indicating a common challenge in striking a balance between precision and recall. See Table 6.

3.6. Racism Detection Models

Racism models like deberta are trained on a mix of datasets, including TDavidson, but even with reported training accuracies up to 70%, their cross-dataset F1 scores drop to 40–60%. xlm_r_racismo has comparable performance to deberta, but deberta has higher F1 scores. See Table 7.

4. Discussion

This study proposed and implemented a structured process for evaluating machine learning models and generative AI tools used to label harmful content, positioning automated classification measurement instruments rather than purely technical tools [8,42,43]. By following the steps outlined here, researchers can assemble the information needed to justify model selection in ways that align with long-standing standards of validity, reliability, and transparency in content analysis [11,20,21]. While this study presents empirical findings on model performance across datasets, the broader contribution lies in reframing model choice as a methodological decision embedded in theory, construct definition, and research design [14,43].
We started with Figure 1 above, which presents the evaluation workflow. Based on this study, we now document the key decision thresholds applied at each stage to support replication and guide researchers adopting this framework. At the label selection stage, majority voting among 3 annotators was the most common final label decision method across datasets, used in most of the 27 datasets examined; supplementary approaches included unanimous agreement among 5 annotators with curator adjudication for ties, agreement of at least 2 of 5 annotators, and confidence-weighted aggregation for continuous-score datasets (Jigsaw: threshold ≥ 0. 0.5; BiasCorp: threshold > 1). Researchers selecting datasets should note the label decision method, as single-annotator labels or majority votes with low inter-annotator agreement may introduce noise into cross-valuation results. At the inter-annotator agreement stage, reported Krippendorff’s α values across all datasets in this study ranged from 0.39 to 0.84. Following the benchmarks established in content analysis [45], values below 0.40 are considered poor, and datasets relying on them should be flagged as higher-risk; values between 0.40 and 0.60 indicate moderate agreement and warrant interpretive caution; values above 0.60 are generally considered acceptable for scholarly use. These thresholds are domain-dependent for tasks involving subjective or implicit content (e.g., implicit hate, racism), which tend to yield lower agreement and may require adjusted expectations. For the ChatGPT-5 evaluation, inference was run via OpenAI’s Batch API using the v 1/responses endpoint with GPT-5.1, reasoning effort set to low, verbosity set to minimal, and maximum output tokens capped at 128 per post; these settings are reported to ensure the prompting protocol is fully reproducible. Finally, for cross-evaluation stability, datasets with fewer than 500 labeled positive class instances may yield unstable F1 estimates; results from such datasets should be interpreted with caution and flagged in reporting. This study addresses recent methodological critiques by evaluating the model rather than just developing it, with an emphasis on documentation quality, annotator agreement, testing across datasets, and procedural transparency [8,9,12,13]. Across all harmful content categories, we find substantial variation in how datasets report construct definitions, annotator preparation, coding procedures, and inter-annotator reliability. Although this unevenness does not necessarily reflect poor-quality work, it limits comparability and leaves important measurement properties only partially visible to researchers using these classifiers [11,21,42].
These gaps matter because classifiers inherit the assumptions embedded in their training data. Many datasets provide limited conceptual definitions for labels such as hate or racism, relying more on examples or crowdsourced judgments than on sustained coder training. Prior research shows that such judgments are shaped by annotator background and context, meaning that labels are socially situated rather than purely objective [48,49,50]. For communication research, this underscores the need to treat classifiers as measurement instruments whose construct validity must be made explicit and justified, rather than as neutral tools [14,20,21].
Our cross-dataset evaluation further shows that performance varies across labels and domains. Hate speech, offensive language, and threat models generally perform better than racism models, which are less stable across settings, likely because racism is especially context-dependent and vulnerable to bias in annotation and training data [27,39,51]. Models built to detect multiple harms also tend to underperform compared with models optimized for a single construct, suggesting limits to broad, one-size-fits-all approaches. At the same time, cross-dataset testing is constrained by differences in how datasets define labels, so performance reflects both model generalization and variation in construct operationalization. Even so, this kind of testing remains essential because it more closely approximates real-world research use, where models are often applied beyond their original training context [11,30].
The comparison between PLM classifiers and GPT-5 highlights a related tradeoff. PLM-based systems often provide more visible documentation of training and evaluation, whereas LLM-based classification offers flexibility but adds opacity regarding training data, alignment, and prompt sensitivity [12,52]. Although GPT-5 can be competitive under a consistent prompting protocol, recent research suggests that LLM-based classification may also introduce systematic biases across contexts and targets [7,22]. Overall, our findings support a central conclusion: automated classifiers in communication research should be treated as socially and methodologically embedded measurement instruments, requiring explicit attention to construct definition, annotation reliability, and cross-context validation. The framework proposed here is intended to make those considerations more visible, systematic, and usable in future research [8,42].

4.1. Implications for Researchers, Reviewers, and Editors

Treat classifiers as measurement instruments. Automated classifiers should be treated as measurement tools rather than purely technical systems. Researchers should specify what construct a model measure, how it is operationalized in the training data, and how this aligns with theory.
Be transparent. Studies should report the origin of training data, annotation procedures, annotator instructions, and any inter-annotator agreement, since these practices shape how constructs such as hate or racism are defined.
Do not rely only on reported accuracy. Reporting benchmark accuracy alone says little about performance in new contexts; cross-dataset evaluation on data that resemble the target context is necessary to assess generalizability.
Align model choice with theory. Broad “harmful content” categories can obscure conceptually distinct constructs, so model labels should match theoretical distinctions such as racism, incivility, or threats.
PLM or LLM is a methodological choice. PLM classifiers may offer clearer documentation of training and evaluation, while LLM labeling provides flexibility but introduces opacity and prompt sensitivity; in both cases, researchers should document operational definitions and validate performance in the intended context.
Overall, these implications suggest that as automated classifiers become routine, communication science’s established standards for construct clarity, coder reliability, and cross-dataset consistency provide a foundation for their responsible and cumulative use [8,11,21].

4.2. Limitations and Further Research

One limitation of this study is its focus on harmful language detection; while this domain is consequential and methodologically challenging, the evaluation framework is intended to generalize to other classifier-based measures in communication research. A second limitation is that our LLM benchmark uses a single, fixed prompt designed for replicability; alternative prompts, few-shot examples, or different decoding settings may yield different performance. Future work should therefore treat prompt design as part of the measurement instrument and evaluate robustness across prompt variants. Finally, future research should expand bias and error-impact analyses, including how misclassification propagates into downstream statistical inference and how error-correction methods can be incorporated into standard workflows [53]. Importantly, the current design cannot differentiate between “generalization failure” and “construct shift,” because the cross-dataset tests used in this paper mostly involve heterogeneous datasets from different sources and annotation protocols, and performance declines may therefore arise from construct bias rather than from a failure of generalization. Furthermore, there is a potential ChatGPT leakage risk; the long-established training datasets have been included in the ChatGPT pretraining corpus, as they are publicly available. Future research using LLMs should validate findings on “recently collected or unpublished data. Lastly, another limitation of this study is that it primarily focuses on PLMs and uses only one LLM as a reference for comprehensive PLM analysis. We recognize that different LLMs and prompts could lead to different classifications, and this should be explored in future research.

Supplementary Materials

The supporting information—Models and Datasets—can be downloaded at: https://www.mdpi.com/article/10.3390/bdcc10050143/s1.

Author Contributions

Conceptualization, I.H. and M.B.; methodology, I.H. and M.B.; software, M.B.; validation, I.H. and M.B.; formal analysis, I.H. and M.B.; investigation, I.H. and M.B.; resources, I.H.; data curation, I.H. and M.B.; writing—original draft preparation, I.H. and M.B.; writing—I.H.; visualization, I.H. and M.B.; supervision, I.H.; project administration, I.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are available in the online Supplementary Materials. All codes and public data are available for access in the Supplementary Materials.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Mathew, B.; Saha, P.; Yimam, S.M.; Biemann, C.; Goyal, P.; Mukherjee, A. HateXplain: A benchmark dataset for explainable hate speech detection with annotated rationales. Proc. AAAI Conf. Artif. Intell. 2021, 35, 14867–14875. [Google Scholar] [CrossRef] [Scilit]
  2. Schmidt, A.; Wiegand, M. A survey on hate speech detection using natural language processing. In Proceedings of the Fifth International Workshop on Natural Language Processing for Social Media, Valencia, Spain, 3 April 2017; pp. 1–10. [Google Scholar] [CrossRef] [Scilit]
  3. Kshetri, N.; Carter, W.; Kern, S.; Mensah, R.; Pokharel, B.P. hateUS—Analysis, impact of social media use and hate speech over university student platforms: Case study, problems, and solutions. arXiv 2024, arXiv:2410.20070. [Google Scholar] [CrossRef] [Scilit]
  4. Müller, K.; Schwarz, C. Fanning the flames of hate: Social media and hate crime. J. Eur. Econ. Assoc. 2021, 19, 2131–2167. [Google Scholar] [CrossRef] [Scilit]
  5. Olteanu, A.; Castillo, C.; Boy, J.; Varshney, K.R. The effect of extremist violence on hateful speech online. In Proceedings of the International AAAI Conference on Web and Social Media, 25–28 June 2018, Palo Alto, CA, USA; Volume 12, pp. 221–230. [CrossRef] [Scilit]
  6. Ramos, G.; Batista, F.; Ribeiro, R.; Fialho, P.; Moro, S.; Fonseca, A.; Guerra, R.; Carvalho, P.; Marques, C.; Silva, C. A comprehensive review on automatic hate speech detection in the age of the transformer. Soc. Netw. Anal. Min. 2024, 14, 204. [Google Scholar] [CrossRef] [Scilit]
  7. Stoll, A.; Yu, J.; Andrich, A.; Domahidi, E. Classification bias of LLMs in detecting incivility towards female and male politicians in German social media discourse. Commun. Methods Meas. 2025, 19, 350–368. [Google Scholar] [CrossRef] [Scilit]
  8. Birkenmaier, L.; Lechner, C.M.; Wagner, C. The search for solid ground in text as data: A systematic review of validation practices and practical recommendations for validation. Commun. Methods Meas. 2024, 18, 249–277. [Google Scholar] [CrossRef] [Scilit]
  9. Bernhard-Harrer, J.; Ashour, R.; Eberl, J.-M.; Tolochko, P.; Boomgaarden, H. Beyond standardization: A comprehensive review of topic modeling validation methods for computational social science research. Political Sci. Res. Methods 2025, 1–19. [Google Scholar] [CrossRef] [Scilit]
  10. Eisele, O.; Heidenreich, T.; Litvyak, O.; Boomgaarden, H.G. Capturing a news frame—Comparing machine-learning approaches to frame analysis with different degrees of supervision. Commun. Methods Meas. 2023, 17, 205–226. [Google Scholar] [CrossRef] [Scilit]
  11. Van Atteveldt, W.; van der Velden, M.A.C.G.; Boukes, M. The validity of sentiment analysis: Comparing manual annotation, crowd-coding, dictionary approaches, and machine learning algorithms. Commun. Methods Meas. 2021, 15, 121–140. [Google Scholar] [CrossRef] [Scilit]
  12. Bender, E.M.; Friedman, B. Data statements for natural language processing: Toward mitigating system bias and enabling better science. Trans. Assoc. Comput. Linguist. 2018, 6, 587–604. [Google Scholar] [CrossRef] [Scilit]
  13. Malik, J.S.; Qiao, H.; Pang, G.; van den Hengel, A. Deep learning for hate speech detection: A comparative study. Int. J. Data Sci. Anal. 2025, 20, 3053–3068. [Google Scholar] [CrossRef] [Scilit]
  14. Radford, J.; Joseph, K. Theory in, theory out: The uses of social theory in machine learning for social science. Front. Big Data 2020, 3, 18. [Google Scholar] [CrossRef] [Scilit]
  15. Galke, L.; Scherp, A.; Diera, A.; Karl, F.; Lin, B.X.; Khera, B.; Meuser, T.; Singhal, T. Are we really making much progress in text classification? A comparative review. arXiv 2022, arXiv:2204.03954. [Google Scholar] [CrossRef] [Scilit]
  16. Poletto, F.; Basile, V.; Sanguinetti, M.; Bosco, C.; Patti, V. Resources and benchmark corpora for hate speech detection: A systematic review. Lang. Resour. Eval. 2021, 55, 477–523. [Google Scholar] [CrossRef] [Scilit]
  17. Fortuna, P.; Nunes, S. A survey on automatic detection of hate speech in text. ACM Comput. Surv. 2018, 51, 85. [Google Scholar] [CrossRef] [Scilit]
  18. Osborne, C.; Ding, J.; Kirk, H.R. The AI community building the future? A quantitative analysis of development activity on Hugging Face Hub. J. Comput. Soc. Sci. 2024, 7, 2067–2105. [Google Scholar] [CrossRef] [Scilit]
  19. Fortuna, P.; Soler, J.; Wanner, L. How well do hate speech, toxicity, abusive and offensive language classification models generalize across datasets? Inf. Process. Manag. 2021, 58, 102524. [Google Scholar] [CrossRef] [Scilit]
  20. Berelson, B. Content Analysis in Communication Research; Free Press: Glencoe, IL, USA, 1952. [Google Scholar] [CrossRef] [Scilit]
  21. Krippendorff, K. Content Analysis: An Introduction to Its Methodology, 2nd ed.; Sage Publications: Thousand Oaks, CA, USA, 2004. [Google Scholar] [CrossRef] [Scilit]
  22. Hase, V.; Bachl, M.; TeBlunthuis, N. Critical, but constructive: Defining, detecting, and addressing bias in computational social science. Commun. Methods Meas. 2025, 19, 281–293. [Google Scholar] [CrossRef] [Scilit]
  23. Ross, B.; Rist, M.; Carbonell, G.; Cabrera, B.; Kurowsky, N.; Wojatzki, M. Measuring the reliability of hate speech annotations: The case of the European refugee crisis. In NLP4CMC III: 3rd Workshop on Natural Language Processing for Computer-Mediated Communication; Dipper, S., Ed.; Bochumer Linguistische Arbeitsberichte: Bochum, Germany, 2016; Volume 17, pp. 6–9. [Google Scholar] [CrossRef]
  24. Fussell, R.K.; Mazrui, A.; Holmes, N.G. Machine learning for automated content analysis: Characteristics of training data impact reliability. In Proceedings of the 2022 Physics Education Research Conference (PERC 2022), Grand Rapids, MI, USA, 13–14 July 2022; Frank, B.W., Jones, D.L., Ryan, Q.X., Eds.; American Association of Physics Teachers: College Park, MD, USA, 2022; pp. 176–181. [Google Scholar] [CrossRef] [Scilit]
  25. Lavelle-Hill, R.; Smith, G.; Murayama, K. Bridging traditional-statistics and machine-learning approaches in psychology: Navigating small samples, measurement error, nonindependent observations, and missing data. Adv. Methods Pract. Psychol. Sci. 2025, 8, 1–31. [Google Scholar] [CrossRef] [Scilit]
  26. Davidson, T.; Warmsley, D.; Macy, M.; Weber, I. Automated hate speech detection and the problem of offensive language. In Proceedings of the International AAAI Conference on Web and Social Media, 15–18 May 2017, Montreal, QC, Canada; 2017; Volume 11, pp. 512–515. [Google Scholar] [CrossRef] [Scilit]
  27. Yu, Z.; Sen, I.; Assenmacher, D.; Samory, M.; Fröhling, L.; Dahn, C.; Nozza, D.; Wagner, C. The unseen targets of hate: A systematic review of hateful communication datasets. Soc. Sci. Comput. Rev. 2025, 43, 965–989. [Google Scholar] [CrossRef] [Scilit]
  28. Verma, K.; Milosevic, T.; Cortis, K.; Davis, B. Benchmarking language models for cyberbullying identification and classification from social-media texts. In Proceedings of the First Workshop on Language Technology and Resources for a Fair, Inclusive, and Safe Society within the 13th Language Resources and Evaluation Conference; Adebayo, K., Nanda, R., Verma, K., Davis, B., Eds.; European Language Resources Association: Marseille, France, 2022; pp. 26–31. Available online: https://aclanthology.org/2022.lateraisse-1.4/ (accessed on 15 April 2026).
  29. Mansur, Z.; Omar, N.; Tiun, S. Twitter hate speech detection: A systematic review of methods, taxonomy analysis, challenges, and opportunities. IEEE Access 2023, 11, 16226–16249. [Google Scholar] [CrossRef] [Scilit]
  30. Burscher, B.; Vliegenthart, R.; de Vreese, C.H. Using supervised machine learning to code policy issues: Can classifiers generalize across contexts? Ann. Am. Acad. Political Soc. Sci. 2015, 659, 122–130. [Google Scholar] [CrossRef] [Scilit]
  31. Keum, B.T.; Miller, M.J. Racism on the internet: Conceptualization and recommendations for research. Psychol. Violence 2018, 8, 782–791. [Google Scholar] [CrossRef] [Scilit]
  32. Cinelli, M.; De Francisci Morales, G.; Galeazzi, A.; Quattrociocchi, W.; Starnini, M. The echo chamber effect on social media. Proc. Natl. Acad. Sci. USA 2021, 118, e2023301118. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  33. Dutton, W.H.; Reisdorf, B.C. Cultural divides and digital inequalities: Attitudes shaping internet and social media divides. Inf. Commun. Soc. 2019, 22, 18–38. [Google Scholar] [CrossRef] [Scilit]
  34. Aytac, U. Digital domination: Social media and contestatory democracy. Political Stud. 2024, 72, 6–25. [Google Scholar] [CrossRef] [Scilit]
  35. Schmid, U.K. Humorous hate speech on social media: A mixed-methods investigation of users’ perceptions and processing of hateful memes. New Media Soc. 2025, 27, 1588–1606. [Google Scholar] [CrossRef] [Scilit]
  36. Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, K. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers); Burstein, J., Doran, C., Solorio, T., Eds.; Association for Computational Linguistics: Minneapolis, MN, USA, 2019; pp. 4171–4186. [Google Scholar] [CrossRef] [Scilit]
  37. Waseem, Z.; Hovy, D. Hateful symbols or hateful people? Predictive features for hate speech detection on Twitter. In Proceedings of the NAACL Student Research Workshop; Andreas, J., Choi, E., Lazaridou, A., Eds.; Association for Computational Linguistics: San Diego, CA, USA, 2016; pp. 88–93. [Google Scholar] [CrossRef] [Scilit]
  38. Founta, A.; Djouvas, C.; Chatzakou, D.; Leontiadis, I.; Blackburn, J.; Stringhini, G.; Vakali, A.; Sirivianos, M.; Kourtellis, N. Large scale crowdsourcing and characterization of Twitter abusive behavior. In Proceedings of the International AAAI Conference on Web and Social Media, 25–28 June 2018, Palo Alto, CA, USA; Volume 12, pp. 491–500. [CrossRef] [Scilit]
  39. Wiegand, M.; Ruppenhofer, J.; Kleinbauer, T. Detection of abusive language: The problem of biased datasets. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers); Burstein, J., Doran, C., Solorio, T., Eds.; Association for Computational Linguistics: Minneapolis, MN, USA, 2019; pp. 602–608. [Google Scholar] [CrossRef] [Scilit]
  40. Kennedy, B.; Atari, M.; Davani, A.M.; Yeh, L.; Omrani, A.; Kim, Y.; Coombs, K., Jr.; Havaldar, S.; Portillo-Wightman, G.; Gonzalez, E.; et al. Introducing the Gab Hate Corpus: Defining and applying hate-based rhetoric to social media posts at scale. Lang. Resour. Eval. 2022, 56, 79–108. [Google Scholar] [CrossRef] [Scilit]
  41. Wang, J.; Fu, K.; Lu, C.T. SOSNet: A graph convolutional network approach to fine-grained cyberbullying detection. In Proceedings of the 2020 IEEE International Conference on Big Data (Big Data), Atlanta, GA, USA, 10–13 December 2020; pp. 1212–1220. [Google Scholar] [CrossRef] [Scilit]
  42. Grimmer, J.; Stewart, B.M. Text as data: The promise and pitfalls of automatic content analysis methods for political texts. Political Anal. 2013, 21, 267–297. [Google Scholar] [CrossRef] [Scilit]
  43. Baden, C.; Pipal, C.; Schoonvelde, M.; van der Velden, M.A.C.G. Three gaps in computational text analysis methods for social sciences: A research agenda. Commun. Methods Meas. 2022, 16, 1–18. [Google Scholar] [CrossRef] [Scilit]
  44. Laurer, M.; van Atteveldt, W.; Casas, A.; Welbers, K. On measurement validity and language models: Increasing validity and decreasing bias with instructions. Commun. Methods Meas. 2025, 19, 46–62. [Google Scholar] [CrossRef] [Scilit]
  45. Landis, J.R.; Koch, G.G. The measurement of observer agreement for categorical data. Biometrics 1977, 33, 159–174. [Google Scholar] [CrossRef] [Scilit]
  46. Koo, T.K.; Li, M.Y. A guideline of selecting and reporting intraclass correlation coefficients for reliability research. J. Chiropr. Med. 2016, 15, 155–163, Erratum in J. Chiropr. Med. 2017, 16, 346.. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  47. Elsafoury, F.; Katsigiannis, S.; Pervez, Z.; Ramzan, N. When the timeline meets the pipeline: A survey on automated cyberbullying detection. IEEE Access 2021, 9, 103541–103563. [Google Scholar] [CrossRef] [Scilit]
  48. Waseem, Z. Are you a racist or am I seeing things? Annotator influence on hate speech detection on Twitter. In Proceedings of the First Workshop on NLP and Computational Social Science; Bamman, D., Doğruöz, A.S., Eisenstein, J., Hovy, D., Jurgens, D., O’Connor, B., Oh, A., Tsur, O., Volkova, S., Eds.; Association for Computational Linguistics: Austin, TX, USA, 2016; pp. 138–142. [Google Scholar] [CrossRef] [Scilit]
  49. Vidgen, B.; Derczynski, L. Directions in abusive language training data, a systematic review: Garbage in, garbage out. PLoS ONE 2020, 15, e0243300. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  50. Ljubešić, N.; Mozetič, I.; Kralj Novak, P. Quantifying the impact of context on the quality of manual hate speech annotation. Nat. Lang. Eng. 2023, 29, 1481–1494. [Google Scholar] [CrossRef] [Scilit]
  51. Kovács, G.; Alonso, P.; Saini, R. Challenges of hate speech detection in social media. SN Comput. Sci. 2021, 2, 95. [Google Scholar] [CrossRef] [Scilit]
  52. Ouyang, L.; Wu, J.; Jiang, X.; Almeida, D.; Wainwright, C.L.; Mishkin, P.; Zhang, C.; Agarwal, S.; Slama, K.; Ray, A.; et al. Training language models to follow instructions with human feedback. Adv. Neural Inf. Process. Syst. 2022, 35, 27730–27744. Available online: https://proceedings.neurips.cc/paper/2022/hash/b1efde53be364a73914f58805a001731-Abstract-Conference.html (accessed on 15 April 2026).
  53. TeBlunthuis, N.; Hase, V.; Chan, C.H. Misclassification in automated content analysis causes bias in regression. Can we fix it? Yes we can! Commun. Methods Meas. 2024, 18, 278–299. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Evaluation of deep learning models. RQ1: How do published harmful language classifiers document construct validity (concept definitions, labeling instructions, and training data provenance)? RQ2: What evidence is provided about annotation reliability in the datasets used to train these classifiers (e.g., inter-annotator agreement), and how is it reported? RQ3: How well do these classifiers generalize when applied to alternative labeled datasets beyond their original training data (out-of-domain testing)?
Figure 1. Evaluation of deep learning models. RQ1: How do published harmful language classifiers document construct validity (concept definitions, labeling instructions, and training data provenance)? RQ2: What evidence is provided about annotation reliability in the datasets used to train these classifiers (e.g., inter-annotator agreement), and how is it reported? RQ3: How well do these classifiers generalize when applied to alternative labeled datasets beyond their original training data (out-of-domain testing)?
Bdcc 10 00143 g001
Table 1. Models and their respective training datasets *.
Table 1. Models and their respective training datasets *.
Model NameDataset NameDataset
Information
Annotator GuidelinesInter-Annotator Agreement **Final Label
Decision
HatehatexplainHateXplain250 Amazon MTurk
20 k tweets and GAB comments
Definition examplesK = 0.46
(not
acceptable)
Majority
facebook_robertaDynaHateNot mentioned 40 k tweets and commentsDefinitionK = 0.52
(not
acceptable)
Majority
dehatebert_ non-EnglishTDavidsonAppen 25 k tweetsDefinitionA = 0.92
(reliable)
Majority
distilroberta_of-fensive_hateBadmatr11xNot mentioned 57 k tweetsNot mentionedNot mentionedNot mentioned
roberta_large_hateTweetHateAmazon MTurk 7 k tweetsNot mentionedK = 0.53
(not
acceptable)
Agreement of at least 2 of 5 annotators
RacismdebertaTDavidsonAppen 25 k tweetsDefinitionA = 0.92
(reliable)
Majority
Bullyinglstm_bert cyberbully-ing_bertKaggle Cyberbullying DatasetNot mentioned 47 k tweetsNot mentionedNot mentionedNot mentioned
Offensivedistilroberta_olid twitter_roberta offensive_speech_ detectorOLIDAppen 14,100 tweetsTest SetF = 0.83 (al-
most perfect)
Majority
hatexplainHateXplain250 Amazon MTurk
20 k tweets and GAB comments
Definition examplesK = 0.46
(not acceptable)
Majority
distilroberta_ offensive_hateBadmatr11xNot mentioned 57 k tweetsNot mentionedNot mentionedNot mentioned
llamaTDavidsonAppen 25 k tweetsDefinitionA = 0.92
(reliable)
Majority
Threatensemble lstm_glove nb_svm lstm_rnn detoxifyToxic Comment ClassificationNot mentioned 160 k tweetsNot mentionedNot mentionedNot mentioned
detoxify_unbiasedJigsaw Unintended Toxicity BiasAppen 1.05 M commentsNot mentionedNot mentionedMajority
* Of the 27 models, 8 were not included in this table, as they did not disclose their training datasets. These are: hatebert (hate), distilbert_hate (hate), distilbert_cyberbully (Bully), fair_cyberbully (Bully), xlm_r_racismo (Racism), bert_threatening (Threat), and arash_bert (Offensive). The remaining 19 are listed above. ** Accuracy levels are inconsistent across metrics. We use language associated wit beach metrics, as indicated in its related article. K = Krippendorff’s alpha [21], F = Fleiss’ Kappa [45], C = Cohen Kappa [45], ICC = Intraclass Correlation Coefficient [46], A = Appen Platform’s score.
Table 2. Additional training datasets.
Table 2. Additional training datasets.
LabelDataset NameDataset & Annotators InformationAnnotator GuidelinesInter-annotator Agreement *Final Label Decision
HateLarge-Scale Hate Speech20 Student annotators
68.5 k tweets
Definition ExamplesK = 0.395
(not acceptable)
Unanimous
Implicit Hate CorpusAmazon MTurk 19 k tweetsDefinition Examples TestICC = 0.616
(moderate)
Majority
New-Wave-HateAuthors (Amazon MTurk -> authors)Definition CodebookF = 0.84 (almost perfect)Single
RacismBiasCorpAmazon MTurk 45 k commentsNot mentionedNot mentionedNot mentioned
Are You Racist, Or Am I Seeing ThingsAppen, Experts 7 k tweetsTestF = 0.57 (moderate)Majority
MMHS150kAmazon MTurk annotators
150 k tweets
Definition ExamplesNot mentionedMajority
Twitter Racism DatasetNot mentioned
13.5 k tweets
Not mentionedNot mentionedNot mentioned
BullyCyberbullying Twitter17 annotators personally contacted
62.5 k tweets
Not mentionedK = 0.67
(tentatively acceptable)
Majority
Online Harassment DatasetNot mentioned.
8.2 k tweets
Not mentionedNot mentionedNot mentioned
Kaggle Insults DatasetNot mentioned 2 k commentsNot mentionedNot mentionedNot mentioned
Bullying Traces DatasetNot mentioned
1.7 k tweets
Not mentionedNot mentionedNot mentioned
Automated Cyberbullying DetectionPre-labeled. 15 k messagesDefinition CodebookNot mentionedThreshold
Online Harassment ResearchAuthors 35 k tweetsDefinitionC = 0.84 (almost perfect)Majority
OffensiveOffensiveLangAmazon MTurk annotators
8270 posts generated by ChatGPT
DefinitionC = 0.54 (moderate)Majority
Multimodal Meme DatasetNot mentioned 743 meme contentExamples CodebookF = 0.4–0.5
(moderate)
Single
HASOCAuthors 6 k postsDefinition% of agreement: 72% (acceptable)Not mentioned
Large-Scale Hate Speech20 Student annotators
68.5 k tweets
Definition ExamplesK = 0.395 (not
acceptable)
Unanimous
ThreatCombined Toxicity ProfanityNot mentioned 710 k commentsNot mentionedNot mentionedNot mentioned. Comments can have multiple labels.
Suspicious TweetsNot mentioned 59 k tweetsNot mentionedNot mentionedNot mentioned
* K = Krippendorff’s alpha [21], F = Fleiss’ Kappa [45], C = Cohen Kappa [45], ICC = Intraclass Correlation Coefficient [46], A = Appen Platform’s score.
Table 3. Hate label results *.
Table 3. Hate label results *.
Dataset
Model
Dyna-HateHateX-PlainBadmatr11xTweetHateTDavidsonLarge-Scale Hate SpeechImplicit Hate CorpusNew-Wave-HateAverage
0.750.55 0.690.63
facebook_roberta(0.76)(0.55)0.62 (0.71)0.73 (0.74)0.25 (0.33)0.85 (0.90)0.62 (0.59)(0.68)(0.66)
0.540.84 0.600.76
hatexplain(0.43)(0.84)0.92 (0.90)0.73 (0.63)0.93 (0.92)0.98 (0.97)0.51 (0.37)(0.47)(0.70)
distilroberta_offen-0.560.65 0.630.74
sive_hate(0.50)(0.65)0.96 (0.96)0.69 (0.66)0.97 (0.97)0.91 (0.94)0.53 (0.52)(0.57)(0.72)
0.560.70 0.720.73
roberta_large_hate(0.50)(0.70)0.77 (0.82)0.98 (0.98)0.59 (0.69)0.96 (0.96)0.56 (0.48)(0.68)(0.73)
dehate-0.600.55 0.570.62
bert_mono_english(0.57)(0.56)0.63 (0.72)0.71 (0.72)0.76 (0.73)0.90 (0.93)0.60 (0.55)(0.57)(0.64)
0.560.54 0.600.61
hatebert(0.50)(0.52)0.50 (0.46)0.75 (0.71)0.39 (0.39)0.94 (0.56)0.60 (0.55)(0.58)(0.53)
0.500.50 0.540.56
distilbert_hate(0.49)(0.47)0.59 (0.42)0.57 (0.50)0.67 (0.42)0.71 (0.43)0.48 (0.45)(0.50)(0.46)
0.810.79 0.740.75
ChatGPT-5(0.81)(0.79)0.69 (0.66)0.69 (0.64)0.89 (0.85)0.64 (0.58)0.73 (0.73)(0.70)(0.72)
* Italicized text indicates results from the training dataset used to train the model. Bold text marks the best-performing model for each dataset. Each row shows the model’s accuracy across all datasets, with F1 scores in parentheses.
Table 4. Threat label results *.
Table 4. Threat label results *.
Dataset
Model
Toxic Comments DatasetJigsaw Unintended Toxicity BiasCombined Toxicity ProfanitySuspicious TweetsAverage
ensemble0.54 (0.42)0.60 (0.01)0.61 (0.03)0.60 (<0.01)0.59 (0.11)
lstm_glove0.90 (0.90)0.70 (0.43)0.68 (0.49)0.62 (0.25)0.73 (0.52)
nb_svm0.89 (0.88)0.60 (0.02)0.65 (0.22)0.60 (<0.01)0.69 (0.28)
bert_threatening0.81 (0.76)0.62 (0.08)0.66 (0.26)0.60 (<0.01)0.67 (0.28)
lstm_rnn0.75 (0.67)0.63 (0.14)0.66 (0.27)0.60 (<0.01)0.66 (0.27)
detoxify0.95 (0.95)0.58 (0.29)0.97 (0.03)<0.001 (<0.001)0.63 (0.32)
detoxify_unbi-ased0.82 (0.78)0.76 (0.68)0.80 (0.76)<0.001 (<0.001)0.60 (0.56)
ChatGPT-50.92 (0.92)0.72 (0.64)0.75 (0.70)0.60 (0.38)0.75 (0.72)
* Italicized text indicates results from the training dataset used to train the model. Bold text marks the best-performing model for each dataset. Each row shows the model’s accuracy across all datasets, with F1 scores in parentheses.
Table 5. Bully label results *.
Table 5. Bully label results *.
Model
Dataset
Kaggle
Cyberbullying Dataset
Automated
Cyberbullying Detection
Bullying
Traces
Dataset
Online
Harassment
Dataset
Cyberbul-
Lying
Twitter
Kaggle
Insults
Dataset
Online
Harassment Corpus
Average
lstm_bert0.95 (0.95)0.65 (0.63)0.75 (0.54)0.93 (0.64)0.53 (0.40)0.64 (0.57)0.47 (0.46)0.70
(0.60)
fair_cyber-bully0.61 (0.55)0.81 (0.76)0.64 (0.61)0.80 (0.56)0.47 (0.38)0.72 (0.69)0.53 (0.51)0.65
(0.58)
distilbert_ cyberbully0.40 (0.34)0.46 (0.44)0.41 (0.41)0.24 (0.21)0.45 (0.35)0.44 (0.37)0.42 (0.41)0.40
(0.36)
cyberbully-ing_bert0.86 (0.86)0.64 (0.48)0.69 (0.50)0.80 (0.50)0.72 (0.47)0.55 (0.54)0.69 (0.48)0.71
(0.55)
ChatGPT-50.50 (0.48)0.83 (0.80)0.54 (0.48)0.96 (0.79)0.64 (0.48)0.81 (0.80)0.54 (0.53)0.75
(0.66)
* Italicized text indicates results from the training dataset used to train the model. Bold text marks the best-performing model for each dataset. Each row shows the model’s accuracy across all datasets, with F1 scores in parentheses.
Table 6. Offensive label results *.
Table 6. Offensive label results *.
Dataset
Model
OLIDOffensive-LangTDavidsonHASOCLarge-Scale Hate SpeechMultimodal Meme DatasetAverage
arash_bert0.90
(0.90)
0.30 (0.29)0.79 (0.72)0.59
(0.48)
0.86 (0.68)0.61 (0.56)0.67
(0.60)
distilroberta_olid0.86
(0.77)
0.26 (0.26)0.79 (0.72)0.68
(0.51)
0.89 (0.83)0.61 (0.56)0.68
(0.61)
twitter_roberta0.86
(0.78)
0.28 (0.26)0.87 (0.80)0.62
(0.49)
0.88 (0.82)0.60 (0.54)0.69
(0.61)
offensive_speech_de-tector0.75
(0.71)
0.26 (0.26)0.75 (0.83)0.70
(0.52)
0.91 (0.85)0.61 (0.52)0.66
(0.61)
hatexplain0.75
(0.68)
0.28 (0.19)0.88 (0.93)0.87
(0.53)
0.98 (0.97)0.59 (0.40)0.73
(0.62)
llama0.73
(0.66)
0.27 (0.26)0.90 (0.88)0.68
(0.50)
0.87 (0.76)0.62 (0.60)0.68
(0.61)
distilroberta_ offensive_hate0.73
(0.61)
0.22 (0.19)0.97 (0.95)0.82
(0.42)
0.89 (0.78)0.59 (0.38)0.70
(0.57)
ChatGPT-50.72
(0.61)
0.48 (0.47)0.84 (0.83)0.51
(0.51)
0.72 (0.72)0.51 (0.49)0.52
(0.49)
* Italicized text indicates results from the training dataset used to train the model. Bold text marks the best-performing model for each dataset. Each row shows the model’s accuracy across all datasets, with F1 scores in parentheses.
Table 7. Racism Label Results *.
Table 7. Racism Label Results *.
Model DatasetAre You Racist,
Or Am I Seeing Things?
BiasCorpMMHS150kTwitter Racism DatasetAverage
deberta0.62 (0.60)0.52 (0.52)0.50 (0.48)0.61 (0.41)0.56 (0.50)
xlm_r_rac-ismo0.63 (0.58)0.51 (0.32)0.51 (0.38)0.63 (0.46)0.57 (0.43)
ChatGPT-50.84 (0.82)0.53 (0.53)0.63 (0.63)0.84 (0.83)0.71 (0.70)
* Italicized text indicates results from the training dataset used to train the model. Bold text marks the best-performing model for each dataset. Each row shows the model’s accuracy across all datasets, with F1 scores in parentheses.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Himelboim, I.; Baid, M. Evaluating Computational Approaches for Harmful Content Analysis: Promise, Pitfalls and Tools for Responsible Research. Big Data Cogn. Comput. 2026, 10, 143. https://doi.org/10.3390/bdcc10050143

AMA Style

Himelboim I, Baid M. Evaluating Computational Approaches for Harmful Content Analysis: Promise, Pitfalls and Tools for Responsible Research. Big Data and Cognitive Computing. 2026; 10(5):143. https://doi.org/10.3390/bdcc10050143

Chicago/Turabian Style

Himelboim, Itai, and Mudit Baid. 2026. "Evaluating Computational Approaches for Harmful Content Analysis: Promise, Pitfalls and Tools for Responsible Research" Big Data and Cognitive Computing 10, no. 5: 143. https://doi.org/10.3390/bdcc10050143

APA Style

Himelboim, I., & Baid, M. (2026). Evaluating Computational Approaches for Harmful Content Analysis: Promise, Pitfalls and Tools for Responsible Research. Big Data and Cognitive Computing, 10(5), 143. https://doi.org/10.3390/bdcc10050143

Article Metrics

Back to TopTop