Code Monkey home page Code Monkey logo

hatespeechdetection's Introduction

Detection of Hate Speech Detection in Videos Using Machine Learning

[Master's Project]

Objective:

To detect hate speech in videos based on the spoken content of the videos using machine learning.

Approach:

  • Extract audio from video using FFmpeg API
  • Convert audio to text transcript using Google Cloud Speech-to-Text API
  • Extract features to get word counts, frequency of word counts, uni-grams and bi-grams
  • Train Naive Bayes, Linear SVM, Random Forrest and RNN models
  • Compute Accuracy, Precision score, Recall score, F1 score

Dataset:

  • YouTube videos are searched and downloaded using a YouTube crawler
  • Videos are searched using the 'search by keyword' function provided by YouTube Data API
  • Searched videos are downloaded using Pytube library
  • Each video is labeled as Normal or Hateful (Racist, Sexist)

Language Used:

  • Python

Tools Used:

  • YouTube Data API
  • FFmpeg API
  • Google Cloud Speech-to-Text API
  • Google Storage Bucket
  • Jupyter Notebook

Note: You can view .ipynb files using nbviewer - https://nbviewer.jupyter.org/

hatespeechdetection's People

Contributors

unnathi10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hatespeechdetection's Issues

Access to raw video data

Hi Unnathi, Good to see your work in the area of hate speech detection from videos. This is emerging area now considering video content on social website. I am also exploring similar topics for my research work. It would be really helpful, if you can share raw video data collected by you so that we can explore other options like audio analysis along with text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.