Giter VIP home page Giter VIP logo

twitter-election-spam-classification's Introduction

Twitter Spam Detection with a focus on Election

Architecture Workflow

Social networking sites have become very popular in recent years. Users use them to find new friends, updates their existing friends with their latest
thoughts and activities. Among these sites, Twitter is the fastest growing site. Its popularity also attracts many spammers to infiltrate legitimate users’ accounts with a large amount of spam messages. In this paper, we discuss some user-based and content-based features that are different between spammers and legitimate users. Then, we use these features to facilitate spam detection. Using the API methods provided by Twitter, we crawled active Twitter users, their followers/following information and their most recent 100 tweets. Then, we evaluated
our detection scheme based on the suggested user and content-based features. Our results show that among the four classifiers we evaluated, the Random Forest
classifier produces the best results. Our spam detector can achieve 95.7% precision and 95.7% F-measure using the Random Forest classifier.

File name definition

src : is a folder that contains all the utilities functions in python scripts that was used to preprocess the data as well as explore the data

notebooks : contains ipynb files that explores the data and clean up the data and build the model

data : is used to store some of the data that have been used

images : contains the images that was generated during the modelling & Evaluation stage of the peoject

models : contains models that was built for this project

src : contains the scripts files

- `account_checker.py` : for checking the autheticity of a twitter account
- `classifier_spam` : a python script to classify whether a tweet is spam or not
- `confusion_matrix` : to plot the confusion matrix of the model
- `data_extractor` : used to get data from twitter
- `modelling` : to build the models and visualize results
- `predict_account_type` : to predict different account type
- `screenNameCollector` : a script to collect screen Name from list of Twitter users

To Recreate this Project

  1. User needs to clone this repo and change directory to the newly created folder
  2. run pip install -r requirements.txt
  3. run python src/modelling.py

Thanks

twitter-election-spam-classification's People

Contributors

abuton avatar

Watchers

 avatar

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.