An emotion aware context adaptive machine learning approach for detecting hate speech in social media

Abstract Detecting hate speech is challenging because language constantly evolves, often carrying subtle emotional undertones that can be difficult to interpret. While many existing approaches rely on semantic analysis, they frequently miss these emotional cues and struggle to adapt to different contexts. This paper introduces an enhanced Dual Contrastive Learning (DCL) framework, integrating emotion profiling with fine-tuned language models (BERTweet, RoBERTa, TimeLMs) to address these gaps. By using SHAP (SHapley Additive exPlanations) for interpretability, our approach enhances both detection accuracy and explainability. Experiments on SemEval-2019, Davidson, and a Unified Twitter corpus show that our EmotionDCL models outperform baseline methods, with TimeLMs achieving 81.20% accuracy on SemEval and 94.04% on Davidson. Ablation studies confirm the synergy between contrastive learning and emotion integration, highlighting anger, fear, and anticipation as dominant emotional drivers of hate speech. These findings show the importance of emotion-aware, context-adaptive detection systems and the need for strategies to address class imbalance and linguistic evolution.

Authors

Institutions

Publication Details

Journal
Neural Computing and Applications
Published
2026-04-01
DOI
https://doi.org/10.1007/s00521-026-12029-8
Primary Topic
Hate Speech and Cyberbullying Detection
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An emotion aware context adaptive machine learning approach for detecting hate speech in social media

Damminda Alahakoon, Uthayasanker Thayasivam, Kirishnni Prabagar, Nisansa de Silva et al.
Neural Computing and Applications
Hate Speech and Cyberbullying Detection
article

An emotion aware context adaptive machine learning approach for detecting hate speech in social media

Damminda Alahakoon, Uthayasanker Thayasivam, Kirishnni Prabagar, Nisansa de Silva, Kogul Srikandabala, Pasan Kalansooriya, Thushalya Weerasuriya, Krishan Chavinda
article en

Abstract

Abstract Detecting hate speech is challenging because language constantly evolves, often carrying subtle emotional undertones that can be difficult to interpret. While many existing approaches rely on semantic analysis, they frequently miss these emotional cues and struggle to adapt to different contexts. This paper introduces an enhanced Dual Contrastive Learning (DCL) framework, integrating emotion profiling with fine-tuned language models (BERTweet, RoBERTa, TimeLMs) to address these gaps. By using SHAP (SHapley Additive exPlanations) for interpretability, our approach enhances both detection accuracy and explainability. Experiments on SemEval-2019, Davidson, and a Unified Twitter corpus show that our EmotionDCL models outperform baseline methods, with TimeLMs achieving 81.20% accuracy on SemEval and 94.04% on Davidson. Ablation studies confirm the synergy between contrastive learning and emotion integration, highlighting anger, fear, and anticipation as dominant emotional drivers of hate speech. These findings show the importance of emotion-aware, context-adaptive detection systems and the need for strategies to address class imbalance and linguistic evolution.

Neural Computing and ApplicationsVol. 38(8)
University of Moratuwa (LK), La Trobe University (AU)
La Trobe University
Reduced inequalities
Openalex Percentile: Top 22%
Hate Speech and Cyberbullying Detection
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.