Detecting Hate Speech in Hindi Digital Discourse Using Transformer–Long Short-Term Memory Models

Main Article Content

Rachna Narula
Vedika Gupta
Jawad Khan
Tariq Rahim
Vijay Kumar

Abstract

Hate speech on digital communication platforms has become a major obstacle to healthy online discourse, especially in multilingual societies such as India, where Hindi is a dominant language in social media interactions. Hostile, offensive, and defamatory speech is linguistically and socio-culturally complex because of colloquial idioms, regional variations, code-mixing, and culturally embedded references. However, effective detection is crucial for creating safer and more inclusive digital communication environments. This study evaluates advanced language models for analysing hate speech in Hindi social media content. A dataset of 21000 Hindi posts from Twitter and public repositories, categorized into five categories, was analysed: hate, offensive, fake, defamation, and non-hostile. General-purpose models were tested against Hindi-specific language models, including Hindi-BERT (based on Bidirectional Encoder Representations from Transformers, or BERT) and MuRIL, to investigate whether performance can be further enhanced by integrating Long Short-Term Memory (LSTM) layers. In tests, the best-performing model, Hindi-BERT (with sequential learning added), correctly identified 94 out of every 100 posts—a considerable improvement over simpler models. For social media platforms, it has real-world consequences: it can automatically identify harmful content to be reviewed by a human, minimize nuisance alerts that waste human moderators' time, and identify defamatory or bogus posts before they gain a lot of traction. The results offer a systematic approach to researching how hostility develops in the Hindi-speaking online community, how linguistic creativity (e.g., slang, sarcasm, code-mixing) can conceal or manifest hostility, and how decisions about content moderation influence public discourse for communication scholars. Overall, this paper illustrates that language-specific computational tools can be used for both platform governance and communication research, provided that the cultural context is considered. Finally, technical methods are combined with communication scholarship to explain and curb harmful speech in the online public sphere.

Article Details

How to Cite
Narula, R., Gupta, V., Khan, J., Rahim, T., & Kumar, V. (2026). Detecting Hate Speech in Hindi Digital Discourse Using Transformer–Long Short-Term Memory Models. Journal of Communication, Language and Culture, 6(2), 301–323. https://doi.org/10.33093/jclc.2026.6.2.16
Section
Articles

References

Almaliki, M., Almars, A. M., Gad, I., & Atlam, E.-S. (2023). ABMM: Arabic BERT-Mini Model for Hate-Speech Detection on Social Media. Electronics, 12(4), 1048. https://doi.org/10.3390/electronics12041048

Alshalan, R., & Al-Khalifa, H. (2020). A Deep Learning Approach for Automatic Hate Speech Detection in the Saudi Twittersphere. Applied Sciences, 10(23), 8614. https://doi.org/10.3390/app10238614

Bansal, V., Tyagi, M., Sharma, R., Gupta, V., & Xin, Q. (2022). A transformer based approach for abuse detection in code mixed Indic languages. ACM Transactions on Asian and Low-Resource Language Information Processing. Advance online publication. https://doi.org/10.1145/3571818

Bansod, P. P. (2023). Hate speech detection in Hindi (Master's project, San José State University). SJSU ScholarWorks. https://doi.org/10.31979/etd.yc74-7qas

Bashar, M. A., & Nayak, R. (2020). QutNocturnal@HASOC'19: CNN for hate speech and offensive content identification in Hindi language. arXiv. https://doi.org/10.48550/arXiv.2008.12448

Bender, E. M., Gebru, T., McMillan-Major, A., & Shmitchell, S. (2021). On the dangers of stochastic parrots: Can language models be too big? In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency (pp. 610–623). Association for Computing Machinery. https://doi.org/10.1145/3442188.3445922

Bhardwaj, M., Akhtar, M. S., Ekbal, A., Das, A., & Chakraborty, T. (2020). Hostility detection dataset in Hindi. arXiv. https://doi.org/10.48550/arXiv.2011.03588

Bilewicz, M., & Soral, W. (2020). Hate speech epidemic: The dynamic effects of derogatory language on intergroup relations and political radicalization. Political Psychology, 41(S1), 3–33. https://doi.org/10.1111/pops.12670

Bohra, A., Vijay, D., Singh, V., Akhtar, S. S., & Shrivastava, M. (2018). A dataset of Hindi-English code-mixed social media text for hate speech detection. In Proceedings of the Second Workshop on Computational Modeling of People’s Opinions, Personality, and Emotions in Social Media (pp. 36–41). Association for Computational Linguistics. https://doi.org/10.18653/v1/W18-1105

Caliskan, A., Bryson, J. J., & Narayanan, A. (2017). Semantics derived automatically from language corpora contain human-like biases. Science, 356(6334), 183–186. https://doi.org/10.1126/science.aal4230

Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–357. https://doi.org/10.1613/jair.953

Cohen, J. (1960). A coefficient of agreement for nominal scales. Educational and Psychological Measurement, 20(1), 37–46. https://doi.org/10.1177/001316446002000104

Crawford, K., & Gillespie, T. (2016). What is a flag for? Social media reporting tools and the vocabulary of complaint. New Media & Society, 18(3), 410–428. https://doi.org/10.1177/1461444814543163

De La Pena Sarracen, G. L. (2021). Multilingual and multimodal hate speech analysis in Twitter. In Proceedings of the 14th ACM International Conference on Web Search and Data Mining (pp. 1109–1110). Association for Computing Machinery. https://doi.org/10.1145/3437963.3441668

de Paula, A. F. M., Bensalem, I., Rosso, P., & Zaghouani, W. (2023). Transformers and ensemble methods: A solution for hate speech detection in Arabic languages. arXiv. https://doi.org/10.48550/arXiv.2303.09823

Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). 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) (pp. 4171–4186). Association for Computational Linguistics. https://doi.org/10.18653/v1/N19-1423

Fortuna, P., & Nunes, S. (2018). A survey on automatic detection of hate speech in text. ACM Computing Surveys, 51(4), 1–30. https://doi.org/10.1145/3232676

Founta, A., Djouvas, C., Chatzakou, D., Leontiadis, I., Blackburn, J., Stringhini, G., Vakali, A., Sirivianos, M., & Kourtellis, N. (2018). Large scale crowdsourcing and characterization of Twitter abusive behavior. Proceedings of the International AAAI Conference on Web and Social Media, 12(1), 491–500. https://doi.org/10.1609/ICWSM.V12I1.14991

Garg, H., Jhunthra, S., Goel, R., Sharma, S., Gupta, V., Sharma, R., & Dass, P. (2024). Understanding user polarisation regarding COVID-19 vaccines through social network analysis. Journal of Discrete Mathematical Sciences and Cryptography, 27(8), 2301–2336. https://doi.org/10.47974/jdmsc-1859

Gillespie, T. (2019). Custodians of the internet: Platforms, content moderation, and the hidden decisions that shape social media. Yale University Press. https://doi.org/10.12987/9780300235029

Gupta, V., Jain, N., Shubham, S., Madan, A., Chaudhary, A., & Xin, Q. (2021). Toward integrated CNN-based sentiment analysis of tweets for scarce-resource language—Hindi. ACM Transactions on Asian and Low-Resource Language Information Processing, 20(5), 1–23. https://doi.org/10.1145/3450447

Gupta, S., Nath, T., Gupta, V., & Gupta, M. (2025). LexiSemIR: A two-stage re-ranking framework with BM25 and zero-shot bi-encoder. FIRE 2025 Working Notes.

Hadj Ameur, M. S., & Aliane, H. (2021). AraCOVID19-MFH: Arabic COVID-19 multi-label fake news & hate speech detection dataset. Procedia Computer Science, 189, 232–241. https://doi.org/10.1016/j.procs.2021.05.086

He, H., & Garcia, E. A. (2009). Learning from imbalanced data. IEEE Transactions on Knowledge and Data Engineering, 21(9), 1263–1284. https://doi.org/10.1109/TKDE.2008.239

Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735

Jadhav, I., Kanade, A., Waghmare, V., & Chaudhari, D. (2021). Hate and offensive speech detection in Hindi Twitter corpus. In Working Notes of FIRE 2021: Forum for Information Retrieval Evaluation (pp. 338–348). CEUR-WS.org. CEUR Workshop Proceedings

Jhunthra, S., Garg, H., & Gupta, V. (2025). Using tensor processing units to identify the relationship between hypothesis and premise: A case of natural language inference problem. In S. Dash, B. Naik, & S. K. Shandilya (Eds.), Uncertainty in computational intelligence-based decision making (pp. 255–275). Academic Press. https://doi.org/10.1016/B978-0-443-21475-2.00008-4

Kemp, S. (2022, February 15). Digital 2022: India. DataReportal. https://datareportal.com/reports/digital-2022-india

Khezzar, R., Moursi, A., & Al Aghbari, Z. (2023). arHateDetector: Detection of hate speech from standard and dialectal Arabic tweets. Discover Internet of Things, 3(1), Article 18. https://doi.org/10.1007/s43926-023-00030-9

Landis, J. R., & Koch, G. G. (1977). The Measurement of Observer Agreement for Categorical Data. Biometrics, 33(1), 159. https://doi.org/10.2307/2529310

Mathew, B., Dutt, R., Goyal, P., & Mukherjee, A. (2019). Spread of hate speech in online social media. In Proceedings of the 10th ACM Conference on Web Science (pp. 173–182). Association for Computing Machinery. https://doi.org/10.1145/3292522.3326034

Mitchell, M., Wu, S., Zaldivar, A., Barnes, P., Vasserman, L., Hutchinson, B., Spitzer, E., Raji, I. D., & Gebru, T. (2019). Model cards for model reporting. In Proceedings of the Conference on Fairness, Accountability, and Transparency (pp. 220–229). Association for Computing Machinery. https://doi.org/10.1145/3287560.3287596

Mondal, M., Silva, L. A., & Benevenuto, F. (2017). A measurement study of hate speech in social media. In Proceedings of the 28th ACM Conference on Hypertext and Social Media (pp. 85–94). Association for Computing Machinery. https://doi.org/10.1145/3078714.3078723

Mossie, Z., & Wang, J.-H. (2018). Social network hate speech detection for Amharic language. In D. Nagamalai, M. H. Khafagy, & N. C. S. N. Iyengar (Eds.), Computer Science & Information Technology (CS & IT): Proceedings of the 6th International Conference on Computer Science and Information Technology (CSIT 2018) (pp. 41–55). AIRCC Publishing Corporation. https://doi.org/10.5121/csit.2018.80604

Mubarak, H., Darwish, K., Magdy, W., Elsayed, T., & Al-Khalifa, H. (2020, May). Overview of OSACT4 Arabic offensive language detection shared task. In Proceedings of the 4th Workshop on open-source arabic corpora and processing tools, with a shared task on offensive language detection (pp. 48-52).

Mubarak, H., Rashed, A., Darwish, K., Samih, Y., & Abdelali, A. (2021). Arabic offensive language on Twitter: Analysis and experiments. In Proceedings of the Sixth Arabic Natural Language Processing Workshop (pp. 126–135). Association for Computational Linguistics. https://aclanthology.org/2021.wanlp-1.13/

Nath, T., Gupta, V., Gupta, M., & Sharma, R. (2026). Decoding multimodal text analytics: Tasks, datasets, fusion models, and future frontiers. WIREs Data Mining and Knowledge Discovery, 16(2), e70083. https://doi.org/10.1002/widm.70083

Nath, T., Singh, V. K., & Gupta, V. (2025). BongHope: An annotated corpus for Bengali hope speech detection. International Journal of Information Technology, 17(4), 2523–2531. https://doi.org/10.1007/s41870-025-02484-2

Papacharissi, Z. (2016). Affective publics and structures of storytelling: Sentiment, events and mediality. Information, Communication & Society, 19(3), 307–324. https://doi.org/10.1080/1369118X.2015.1109697

Pawar, A. B., Gawali, P., Gite, M., Jawale, M. A., & William, P. (2022). Challenges for Hate Speech Recognition System: Approach based on Solution. 2022 International Conference on Sustainable Computing and Data Communication Systems (ICSCDS), 699–704. https://doi.org/10.1109/icscds53736.2022.9760739

Raji, I. D., Smart, A., White, R. N., Mitchell, M., Gebru, T., Hutchinson, B., Smith-Loud, J., Theron, D., & Barnes, P. (2020). Closing the AI accountability gap. In Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency (pp. 33–44). Association for Computing Machinery. https://doi.org/10.1145/3351095.3372873

Raman, S., Gupta, V., Nagrath, P., & Santosh, K. (2022). Hate and aggression analysis in NLP with explainable AI. International Journal of Pattern Recognition and Artificial Intelligence, 36(15), 2259036. https://doi.org/10.1142/S0218001422590364

Saleem, H. M., Dillon, K. P., Benesch, S., & Ruths, D. (2017). A web of hate: Tackling hateful speech in online social spaces. arXiv. https://doi.org/10.48550/arXiv.1709.10159

Schmidt, A., & Wiegand, M. (2017). A survey on hate speech detection using natural language processing. In Proceedings of the Fifth International Workshop on Natural Language Processing for Social Media (pp. 1–10). Association for Computational Linguistics. https://doi.org/10.18653/v1/W17-1101

Sharma, D., Gupta, V., & Singh, V. K. (2023). Detection of homophobia & transphobia in Malayalam and Tamil: Exploring deep learning methods. In A. Abraham, A. K. Muda, N. Gandhi, S. N. Mohanty, & K. Cengiz (Eds.), Advanced Network Technologies and Intelligent Computing (pp. 217–226). Springer. https://doi.org/10.1007/978-3-031-28183-9_15

Sharma, D., Nath, T., Gupta, V., & Singh, V. K. (2025). Hate speech detection research in South Asian languages: A survey of tasks, datasets and methods. ACM Transactions on Asian and Low-Resource Language Information Processing, 24(3), 1–44. https://doi.org/10.1145/3711710

Sharma, D., Singh, V. K., & Gupta, V. (2024). TABHATE: A target-based hate speech detection dataset in Hindi. Social Network Analysis and Mining, 14, Article 190. https://doi.org/10.1007/s13278-024-01355-1

Swamy, S. D., Jamatia, A., & Gamback, B. (2019). Studying generalisability across abusive language detection datasets. In Proceedings of the 23rd Conference on Computational Natural Language Learning (CoNLL) (pp. 940–950). Association for Computational Linguistics. https://doi.org/10.18653/v1/K19-1088

Tufekci, Z. (2014). Social movements and governments in the digital age: Evaluating a complex landscape. Journal of International Affairs, 68(1), 1–18. Journal of International Affairs article

Sahana Udupa. (2018). Gaali cultures: The politics of abusive exchange on social media. New Media & Society, 20(4), 1506–1522. https://doi.org/10.1177/1461444817698776

Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, & R. Garnett (Eds.), Advances in Neural Information Processing Systems (Vol. 30, pp. 5998–6008). Curran Associates, Inc.

Waseem, Z., & Hovy, D. (2016). Hateful symbols or hateful people? Predictive features for hate speech detection on Twitter. In Proceedings of the NAACL Student Research Workshop (pp. 88–93). Association for Computational Linguistics. https://doi.org/10.18653/v1/N16-2013

Zannettou, S., Finkelstein, J., Bradlyn, B., & Blackburn, J. (2020). A quantitative approach to understanding online antisemitism. Proceedings of the International AAAI Conference on Web and Social Media, 14(1), 786–797. https://doi.org/10.1609/ICWSM.V14I1.7343