Hostname: page-component-77f85d65b8-pztms Total loading time: 0 Render date: 2026-03-30T03:47:47.528Z Has data issue: false hasContentIssue false

Should we stay silent on violence? An ensemble approach to detect violent incidents in Spanish social media texts

Published online by Cambridge University Press:  06 September 2024

Deepawali Sharma
Affiliation:
Department of computer science, Banaras Hindu University, Varanasi, India
Vedika Gupta
Affiliation:
Jindal Global Business Global School, O.P. Jindal Global University, Sonipat, Haryana, India
Vivek Kumar Singh*
Affiliation:
Department of computer science, Banaras Hindu University, Varanasi, India Department of computer science, University of Delhi, Delhi, India
David Pinto
Affiliation:
Faculty of Computer Science, Benemérita Universidad Autónoma de Puebla (BUAP). Mexico
*
Corresponding author: Vivek Kumar Singh; Email: vivek@bhu.ac.in
Rights & Permissions [Opens in a new window]

Abstract

There has been a steep rise in user-generated content on the Web and social media platforms during the last few years. While the ease of content creation allows anyone to create content, at the same time it is difficult to monitor and control the spread of detrimental content. Recent research in natural language processing and machine learning has shown some hope for the purpose. Approaches and methods are now being developed for the automatic flagging of problematic textual content, namely hate speech, cyberbullying, or fake news, though mostly for English language texts. This paper presents an algorithmic approach based on deep learning models for the detection of violent incidents from tweets in the Spanish language (binary classification) and categorizes them further into five classes – accident, homicide, theft, kidnapping, and none (multi-label classification). The performance is evaluated on the recently shared benchmark dataset, and it is found that the proposed approach outperforms the various deep learning models, with a weighted average precision, recall, and F1-score of 0.82, 0.81, and 0.80, respectively, for the binary classification. Similarly, for the multi-label classification, the proposed model reports weighted average precision, recall, and F1-score of 0.54, 0.79, and 0.64, respectively, which is also superior to the existing results reported in the literature. The study, thus, presents meaningful contribution to detection of violent incidents in Spanish language social media posts.

Information

Type
Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press
Figure 0

Table 1. Tabular representation of previous research work

Figure 1

Table 2. Distribution of tweets for each category

Figure 2

Figure 1. Illustration of the subtasks performed.

Figure 3

Table 3. Category-wise distribution of tweets

Figure 4

Table 4. Category-wise distribution of tweets

Figure 5

Figure 2. Implementation of CNN for both tasks.

Figure 6

Figure 3. Block diagram to show the implementation of LSTM.

Figure 7

Figure 4. Architecture of Transformer.

Figure 8

Figure 5. Illustration of BERT tokenizer.

Figure 9

Figure 6. Block diagram of BERT.

Figure 10

Figure 7. Ensemble approach for violent incident detection in Spanish

Figure 11

Table 5. Classification report for the implemented models on the first subtask

Figure 12

Table 6. Classification report for the implemented models on the second subtask

Figure 13

Table 7. Category-wise distribution of tweets

Figure 14

Table 8. Category-wise distribution of tweets