IDEAS home Printed from https://ideas.repec.org/a/bjc/journl/v7y2020i2p62-65.html
   My bibliography  Save this article

Modeling Hate Speech Detection in Social Media Interactions Using Bert

Author

Listed:
  • Gibran Mwadime

    (Department of Computer Science, Multimedia University of Kenya)

  • Moses Odeo

    (Department of Computer Science, Multimedia University of Kenya)

  • Boniface Ngari

    (Department of Computer Science, Multimedia University of Kenya)

  • Stephen Mutuvi

    (Department of Computer Science, Multimedia University of Kenya)

Abstract

Hate speech propagation in social media sites has been happening over time and there is need to accurately identify and counter it so that those offended can seek redress and offenders can be punished for perpetrating the vice. In this paper, we demonstrate how fine tuning a pre-trained Google Bidirectional Encoder Representation from Transformers (BERT) model has been used to achieve an improvement in accuracy of classification of tweets as either hate speech or not. Random forests and logistic regression algorithms have been used to build baseline models with a publicly available twitter dataset from hatebase.org. To validate the BERT model, we collected data using Tweepy API and combined with data from hatebase.org for training. The results obtained show an improvement in accuracy of tweets classification as either hate speech or not from the baseline models by 7.22%.

Suggested Citation

  • Gibran Mwadime & Moses Odeo & Boniface Ngari & Stephen Mutuvi, 2020. "Modeling Hate Speech Detection in Social Media Interactions Using Bert," International Journal of Research and Scientific Innovation, International Journal of Research and Scientific Innovation (IJRSI), vol. 7(2), pages 62-65, February.
  • Handle: RePEc:bjc:journl:v:7:y:2020:i:2:p:62-65
    as

    Download full text from publisher

    File URL: https://www.rsisinternational.org/journals/ijrsi/digital-library/volume-7-issue-2/62-65.pdf
    Download Restriction: no

    File URL: https://www.rsisinternational.org/virtual-library/papers/modeling-hate-speech-detection-in-social-media-interactions-using-bert/?utm_source=Netcore&utm_medium=Email&utm_content=sscollections25oct&utm_campaign=First
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bjc:journl:v:7:y:2020:i:2:p:62-65. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Dr. Renu Malsaria (email available below). General contact details of provider: https://rsisinternational.org/journals/ijrsi/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.