A ground-truth dataset and classification model for detecting bots in GitHub issue and PR comments

Mehdi Golzadeh, Alexandre Decan, Damien Legay, Tom Mens
10/7/2020
106 citations
cs.SEcs.LG
benchmark-dataset

Official code: sgl-umons/BoDeGHa (27 stars, Python, last commit 2026-02-17). 1 more implementation below.

Abstract

Bots are frequently used in Github repositories to automate repetitive activities that are part of the distributed software development process. They communicate with human actors through comments.

Show full abstract

While detecting their presence is important for many reasons, no large and representative ground-truth dataset is available, nor are classification models to detect and validate bots on the basis of such a dataset. This paper proposes a ground-truth dataset, based on a manual analysis with high interrater agreement, of pull request and issue comments in 5,000 distinct Github accounts of which 527 have been identified as bots. Using this dataset we propose an automated classification model to detect bots, taking as main features the number of empty and non-empty comments of each account, the number of comment patterns, and the inequality between comments within comment patterns. We obtained a very high weighted average precision, recall and F1-score of 0.98 on a test set containing 40% of the data. We integrated the classification model into an open source command-line tool to allow practitioners to detect which accounts in a given Github repository actually correspond to bots.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
sgl-umons/BoDeGHaOfficial27Python–2026-02-17
mehdigolzadeh/IdentifyBots_ReplicationPackageOfficial3Jupyter Notebook–2021-01-27
sgl-umons/BoDeGHaOfficial100%

A python tool to predict the identity type in github activities (Human,Bot)

2713Python, DockerfileJun 4, 20209 months agoNOASSERTION
33Jupyter NotebookAug 24, 20205 years ago

Similar Papers

Cite this paper

@article{golzadeh2020groundtruth,
  title  = {A ground-truth dataset and classification model for detecting bots in GitHub issue and PR comments},
  author = {Mehdi Golzadeh and Alexandre Decan and Damien Legay and Tom Mens},
  year   = {2020},
  eprint = {2010.03303},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.03303}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.03303.svg)](https://codeofpaper.com/paper/2010.03303)

Discussion