Coder Social home page Coder Social logo

jaygshah / evolution-of-fake-bots-on-twitter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 15.81 MB

fake bot detection, evolution of bots, cluster analysis, US election twitter data, social media mining, influence of twitter bots on 2016 US election

Python 94.93% Shell 5.07%
social-network-analysis twitter-bot fake-news us-elections social-media

evolution-of-fake-bots-on-twitter's Introduction

CSE-472 Project 2: Evolution of Bots

With the advent of internet there has been substantial increase in content polluters and fake bots on various popular social media platforms like Twitter, Facebook and many others. Out of these, political bots majorly involve in intentionally automating interactions related to political issues and elections. Hence it becomes critical for such a platform to detect these bots and eliminate them when found. And with increased knowledge they have improved over the time to refrain from getting detected using traditional methods. Through this study we have

  • Collected a subset of data-set comprising of accounts who were active on topics related to 2016 US Presidential elections
  • Used cluster analysis to identify different types of bots and their patterns
  • Compared these results to that of Lee et al.[2] to understand intentions of these bots
  • Presented an analysis on how these bots have evolved over time with knowledge.

Keywords fake bot detection, evolution of bots, cluster analysis, US election twitter data, social media mining, influence of twitter bots on 2016 US election

Running Instructions and Information:

  1. Code folder contains the source code for crawling twitter data, classifying bots and performing clustering.
  2. Run setup.sh to generate a virtual environment with all the dependencies.
  3. Within the virtualenv run the following command to generate the 57196x 10 feature vectors from the JSON data structure: "python generate_feature_vectors.py"
  4. Run the following command to classify the twitter users as bot or human:[The userlabels.pickle file which is created by this command is already provided,so this step can be skipped: "python detect_bot.py"
  5. Run the following command to perform clustering and display the clusters: "python generate_display_clusters.py"

Lee et. al[1] showed an analysis of different types of content polluters based on their activity and account characteristics on 2011 US election data. We use a subset of those features to analyse how these bots have evolved in their methodologies based on 2016 US election data and provide insights for robust classification.

Features we use: [screen-name length, account longevity, clusters in 2D using t-SNE on K-means followers/#following, #tweets, #tweets per day, retweets received, #favorites received]

Dataset: [9,016 / 57,196] bot accounts extracted from 1,85,000 tweets scraped using Twitter API.

Results: We used DBSCAN, K-Means and GMM using DBSCAN we are able to find 11 differentiable clusters and 4 categories

  • Duplicate + Duplicate @Spammers: 143
  • Sophisticated Active: 5988
  • Sophisticated Influential: 2885

clusters in 2D using t-SNE on K-means

evolution-of-fake-bots-on-twitter's People

Contributors

jaygshah avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.