Research Article Open Access

Long Short-Term Memory Model for Classification of English-PtBR Cross-Lingual Hate Speech

Thiago D. Bispo1, Hendrik T. Macedo2, Flávio de O. Santos3, Rafael P. da Silva2, Leonardo N. Matos2, Bruno O.P. Prado2, Gilton J.F. da Silva2 and Adolfo Guimarães4
  • 1 Instituto Federal de Sergipe, Brazil
  • 2 Universidade Federal de Sergipe, Brazil
  • 3 Universidade Federal de Pernambuco, Brazil
  • 4 Universidade Tiradentes, Brazil

Abstract

Automatic and accurate recognition of hate speech is a difficult job. In addition to the inherent ambiguity of the natural language, deep understanding of the linguistic structure is imperative. Usually, discriminatory discourse does not make use of typical expressions and often abuse of sarcasm. Good knowledge of world and assessment of context are thus highly demanded. Several approaches have been proposed for automating hate speech recognition task. Many of them consider a combination of strategies in order to achieve better results: character-based or word-based N-grams, lexical features such as the presence or absence of negative words, classes or expressions indicative of insult, punctuation marks, repetition of letters, the presence of emoji, etc. The solitary use of linguistic features such as POS tagging have shown itself inefficient. The recent usage of neural networks to create a distributed representation of the sentences within a hate speech corpus is a promising path. Unfortunately, providing such a corpus is hard. Except for the English language, hate speech corpora are rarely found. This work proposes a cross-lingual approach to automatically recognize hate speech in Portuguese language, leveraging the knowledge of English corpora. A deep Long Short-Term Memory (LSTM) model has been trained and many different experimentation scenarios were set to deal with embeddings, TFIDF, N-grams, GloVe vocabulary and so on. At the end, a Gradient Boosting Decision Tree (GBDT) was used to improve classification results. We achieved accuracy of up to 70% in the better scenarios. Two important contributions of this work are: (i) An effective approach to deal with the lack of hate speech corpora in the desired language and (ii) a hate speech database in Portuguese to contribute to research community.

Journal of Computer Science
Volume 15 No. 10, 2019, 1546-1571

DOI: https://doi.org/10.3844/jcssp.2019.1546.1571

Submitted On: 28 August 2019 Published On: 1 November 2019

How to Cite: Bispo, T. D., Macedo, H. T., Santos, F. O., da Silva, R. P., Matos, L. N., Prado, B. O., da Silva, G. J. & Guimarães, A. (2019). Long Short-Term Memory Model for Classification of English-PtBR Cross-Lingual Hate Speech. Journal of Computer Science, 15(10), 1546-1571. https://doi.org/10.3844/jcssp.2019.1546.1571

  • 3,929 Views
  • 1,886 Downloads
  • 9 Citations

Download

Keywords

  • Hate Speech
  • Portuguese Language
  • Deep Learning
  • (Bi) LSTM
  • GBDT