A Novel XLMR-DualCL Approach for Hate Speech Detection in Hindi-English Code-Mixed Data on Social Media

Authors

  • Amit Sharma School of Computer Application, Lovely Professional University, Punjab, India
  • Rajni Bhalla School of Computer Application, Lovely Professional University, Punjab, India

DOI:

https://doi.org/10.70917/ijcisim-2026-3556

Keywords:

Hate speech detection, Hindi-English code-mixed text, XLM-RoBERTa, Dual contrastive learning, NLP Text Classification

Abstract

Automated identification of hate speech in Hindi-English code-mixed content remains a significant open challenge in multilingual natural language processing, largely because users on Indian social media platforms routinely blend two languages within a single utterance, employ phonetic transliteration of Hindi in Roman script, and convey hostility through indirect or culturally situated expressions that resist straightforward lexical analysis. This study introduces XLMR-DualCL, a unified detection pipeline specifically designed to address these difficulties. The architecture integrates noise-aware text preprocessing, diversity-oriented data augmentation, deep multilingual encoding via XLM-RoBERTa, a dual contrastive learning objective that simultaneously exploits self-supervised and supervised signals, and focal loss to compensate for the class imbalance endemic to real-world hate speech corpora. Comprehensive evaluation is conducted across five publicly available benchmarks spanning HASOC, TRAC-1, ICHCL, THAR, and Kaggle Hinglish, supplemented by a self-curated corpus of Instagram and YouTube comments and a merged multi-source dataset. Across all evaluation settings the model delivers consistent and competitive results, recording F1-scores of 88.89, 89.83, 91.17, 88.49, 90.29, 91.62, and 87.92 on the seven corpora respectively, together with a peak classification accuracy of 91.67 on the self-collected data. Precision and recall values remain closely aligned throughout, confirming that the system avoids trading one error type against the other. Taken together, these outcomes demonstrate that coupling cross-lingual contextual encoding with dual contrastive representation learning substantially advances the state of hate speech detection in noisy, informal Hinglish social media environments.

Downloads

Download data is not yet available.

Downloads

Published

2026-07-21

How to Cite

Amit Sharma, & Rajni Bhalla. (2026). A Novel XLMR-DualCL Approach for Hate Speech Detection in Hindi-English Code-Mixed Data on Social Media. International Journal of Computer Information Systems and Industrial Management Applications, 18(9s), 1327–1347. https://doi.org/10.70917/ijcisim-2026-3556

Issue

Section

Original Articles