Giter VIP home page Giter VIP logo

twibot-22's Introduction

TwiBot-22

This is the offical repository of TwiBot-22.

Introduction

TwiBot-22 is the largest and most comprehensive Twitter bot detection benchmark to date. Specifically, TwiBot-22 is designed to address the challenges of limited dataset scale, imcomplete graph structure, and low annotation quality in previous datasets. For more details, please refer to the TwiBot-22 paper and statistics. compare

Dataset Format

Each dataset contains node.json (or tweet.json, user.json, list.json, and hashtag.json for TwiBot-22), label.csv, split.csv and edge.csv (for datasets with graph structure). See here for a detailed description of these files.

How to download TwiBot-22 dataset

Reviewers at the NeurIPS 2022 Datasets and Benchmarks Track: Feel free to download TwiBot-22 at Google Drive.

gdown --id 1YwiOUwtl8pCd2GD97Q_WEzwEUtSPoxFs

How to download other datasets

For TwiBot-20, visit the TwiBot-20 github repository.

For other datasets, please visit the Bot Repository.

After downloading these datasets, you can transform them into the 4-file format detailed in "Dataset Format". Alternatively, you can directly download our preprocessed version:

For TwiBot-20, visit the TwiBot-20 github repository, apply for TwiBot-20 access, and there will be a TwiBot-20-Format22.zip in the TwiBot-20 Google Drive link.

For other datasets, you can directly download them from Google Drive. You should respect the license of each dataset, the "Content redistribution" section of the Twitter Developer Agreement and Policy, the rules set by the Bot Repository, and only use these datasets for research purposes.

Requirements

  • pip: pip install -r requirements.txt
  • conda : conda install --yes --file requirements.txt

How to run baselines

  1. clone this repo by running git clone https://github.com/LuoUndergradXJTU/TwiBot-22.git
  2. make dataset directory mkdir datasets and download datasets to ./datasets
  3. change directory to src/{name_of_the_baseline}
  4. run experiments under the guidance of corresponding readme.md

Baseline Overview

baseline paper acc on Twibot-22 f1 on Twibot-22 type tags
Abreu et al. link 0.7066 0.5344 F random forest
Alhosseini et al. link 0.6910 0.4991 F G gcn
BGSRD link 0.7188 0.2114 F BERT GAT
Bot Hunter link 0.7279 0.2346 F random forest
Botometer link 0.4987 0.4257 F T G
BotRGCN link 0.7966 0.5750 F T G BotRGCN
Cresci et al. link - - T DNA
Dehghan et al. link - - F T G Graph
Efthimion et al. link 0.7408 0.2758 F T efthimion
EvolveBot link 0.7109 0.1409 F T G random forest
FriendBot link - - F T G random forest
Kipf et al. link 0.7839 0.5496 F T G Graph Neural Network
Velickovic et al. link 0.7948 0.5586 F T G Graph Neural Network
GraphHist link - - F T G random forest
Hayawi et al. link 0.7650 0.2474 F lstm
HGT link 0.7491 0.3960 F T G Graph Neural Networks
SimpleHGN link 0.7672 0.4544 F T G Graph Neural Networks
Kantepe et al. link 0.7640 0.5870 F T random forest
Knauth et al. link 0.7125 0.3709 F T G random forest
Kouvela et al. link 0.7644 0.3003 F T random forest
Kudugunta et al. link 0.6587 0.5167 F SMOTENN, random forest
Lee et al. link 0.7628 0.3041 F T random forest
LOBO link 0.7570 0.3857 F T random forest
Miller et al. link 0.3037 0.4529 F T k means
Moghaddam et al. link 0.7378 0.3207 F G random forest
NameBot link 0.7061 0.0050 F Logistic Regression
RGT link 0.7647 0.4294 F T G Graph Neural Networks
RoBERTa link 0.7207 0.2053 F T RoBERTa
Rodrguez-Ruiz link 0.4936 0.5657 F T G SVM
Santos et al. link - - F T decision tree
SATAR link - - F T G
SGBot link 0.7508 0.3659 F T random forest
T5 link 0.7205 0.2027 T T5
Varol et al. link 0.7392 0.2754 F T random forest
Wei et al. link 0.7020 0.5360 T

where - represents the baseline could not scale to TwiBot-22 dataset

Citation

Please cite TwiBot-22 if you use the TwiBot-22 dataset or this repository

@article{feng2022twibot,
  title={TwiBot-22: Towards Graph-Based Twitter Bot Detection},
  author={Feng, Shangbin and Tan, Zhaoxuan and Wan, Herun and Wang, Ningnan and Chen, Zilong and Zhang, Binchi and Zheng, Qinghua and Zhang, Wenqian and Lei, Zhenyu and Yang, Shujie and Feng, Xinshun and Zhang, Qingyue and Wang, Hongrui and Liu, Yuhan and Bai, Yuyang and Wang, Heng and Cai, Zijian and Wang, Yanbo and Zheng, Lijing and Ma, Zihan and Li, Jundong and Luo, Minnan},
  journal={arXiv preprint arXiv:2206.04564},
  year={2022}
}

How to contribute

  1. New dataset: convert the original data to the TwiBot-22 defined schema.
  2. New baseline: load well-formatted dataset from the dataset directory and define your model.

Welcome PR!

Questions?

Feel free to open issues in this repository! Instead of emails, Github issues are much better at facilitating a conversation between you and our team to address your needs. You can also contact the project lead Shangbin Feng through shangbin at cs.washington.edu.

twibot-22's People

Contributors

bunsenfeng avatar heheyas avatar mrwangyou avatar leopoldwhite avatar whr000001 avatar wenqian-zhang 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.