Book a demo or get in touch

Name and email are required. Your role and institution are optional.

You can also email info@studentvoice.ai.

Detecting hate speech online using machine learning models

By David Griffin

Updated Sep 07, 2026

A model trained on one topic may behave differently when applied to another. Cagri Toraman, Furkan Şahinuç and Eyup Halit Yilmaz examine that problem in Large-Scale Hate Speech Detection with Cross-Domain Transfer.

What the researchers tested

They assembled 100,000 English and 100,000 Turkish tweets from 2020–21. Each language dataset contained 20,000 tweets for each of five topics: religion, gender, racism, politics and sports. Annotators assigned hate, offensive or normal labels.

Transformer models performed best overall among the tested approaches. The evaluation used class-weighted metrics, so overall performance should not be read as the success rate for detecting hate alone.

Transfer direction mattered. Gender was relatively difficult to predict using training from other topics. Conversely, a model trained on English gender-related tweets transferred well to other topics; that pattern was weaker in Turkish. Sports-trained models lost the most performance when moved to other topics. The error analysis also showed failures involving context and apparently positive wording. Read the LREC paper.

What this means for an education project

The study concerns selected tweets and particular models, languages and labels. It does not establish performance on student feedback, cyberbullying cases or wellbeing concerns.

Our editorial recommendation is to define the intended use before testing a tool. Ask which kinds of mistakes are being counted, inspect examples of missed and incorrectly flagged comments, and evaluate the language and subject matter actually present in your material. Keep any procedure for reviewing sensitive comments explicit rather than treating a classifier's output as a decision about a student.

For ordinary feedback analysis, a separate question is whether the categories capture the issues you want to understand. The student comment analysis governance checklist can help structure that discussion; this study does not certify any commercial service.

Correction, 7 September 2026: This summary now distinguishes transfer into and out of a topic, clarifies the class-weighted evaluation and removes unsupported extensions to educational safeguarding. The update was checked against the full LREC 2022 paper.

Request a walkthrough

Book a free Student Voice Analytics demo

See all-comment coverage, sector benchmarks, and reporting designed for OfS quality and NSS requirements.

  • All-comment coverage with HE-tuned taxonomy and sentiment.
  • Versioned outputs with TEF-ready reporting.
  • Benchmarks and BI-ready exports for boards and Senate.
Book a free demo Prefer email? info@studentvoice.ai

UK-hosted · No public LLM APIs · Same-day turnaround

Related Entries

The Student Voice Weekly

Research, regulation, and insight on student voice. Every Friday. Prefer audio? Listen to the podcast.

© Student Voice Systems Limited, All rights reserved.