Home

Awesome

Hits contributions welcome PRs Welcome MIT license

"Short is the Road that Leads from Fear :fearful: to Hate :cursing_face: " :Fear Speech in Indian WhatsApp Groups [Accepted at The Web Conference 2021]

:warning: WARNING: The repository contains content that are polarising in nature. :warning:

:tada: :tada: Have a look at our preprint for more detailed information link here :tada: :tada:.

Abstract

WhatsApp is the most popular messaging app in the world. Due to its popularity, WhatsApp has become a powerful and cheap tool for political campaigning being widely used during the 2019 Indian general election, where it was used to connect to the voters on a large scale. Along with the campaigning, there have been reports that WhatsApp has also become a breeding ground for harmful speech against various protected groups and religious minorities. Many such messages attempt to instil fear among the population about a specific (minority) community. According to research on inter-group conflict, such "fear speech" messages could have a lasting impact and might lead to real offline violence. In this paper, we perform the first large scale study on fear speech across thousands of public WhatsApp groups discussing politics in India.


Contributions :volcano:


Example from the dataset :writing_hand:

<p align="center"><img src="Figures/Fearspeech_arxiv.png" width="350" height="300"></p>

Please cite our paper in any published work that uses any of these resources.

@inproceedings{punyajoy2021fear,
author = {Saha, Punyajoy and Mathew, Binny and Garimella, Kiran and Mukherjee, Animesh},
title = {“Short is the Road That Leads from Fear to Hate”: Fear Speech in Indian WhatsApp Groups},
year = {2021},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
booktitle = {Proceedings of the Web Conference 2021},
pages = {1110–1121},
location = {Ljubljana, Slovenia},
series = {WWW '21}
}

Folders' Description :open_file_folder:

./Data                --> Contains dataset related files.
./Network             --> Contains precomputed network files for user and emoji networks.
./models	      --> Contains deep learning model architecture codes and helper codes.
./utils               --> Contains several utility functions for common usage.

Notebooks' description :notebook_with_decorative_cover:


Classical_models.ipynb  --> Contains the implementation of doc2vec vectors with Support vector machines and Logistic Regression 
Data-statistics.ipynb   --> Contains common data statistics and comparison between fear speech and non fear speech based on their sharing, number of groups, and number of users.
Inference.ipynb         --> Contains the performance scores for test dataset across 5 fold cross validation. Also calculates the lime based interpretability for few of the samples.
Network_analysis.ipynb  --> Contains the network based analysis of the user-user networks.
Textual analysis.ipynb  --> Contains different analysis of the fear speech messages -> topics , empath and emojis.


Usage instructions :construction_worker:

Install the libraries using the following command (preferably inside an environemt)

pip install -r requirements.txt

Training the deep learning models :weight_lifting:

usage: training_caller.py

One has to change parameters in the dicitionary params inside the python file. A detailed instructions about the parameters dictionary in the this Guideline


Ethics note :eye_speech_bubble:

We established strict ethics guidelines throughout the project. The Committee on the Use of Humans as Experimental Subjects at MIT approved the data collection as exempt.All personally identifiable information was anonymized and stored separately from the message data. Our data release conforms to the FAIR principles. We explicitly trained our annotators to be aware of the disturbing nature of social media messages and to take regular breaks from the annotation.


Blogs and github repos which we used for reference :angel:

  1. For annotation we used the Docanno platform and its unoffical client.
  2. For finetuning BERT this blog by Chris McCormick is used and we also referred Transformers github repo.
:thumbsup: The repo is still in active developements. Feel free to create an issue !! :thumbsup: