Skip to main content
QUICK REVIEW

[Paper Review] Evaluating a bot detection model on git commit messages

Mehdi Golzadeh, Alexandre Decan|arXiv (Cornell University)|Mar 22, 2021
Advanced Malware Detection TechniquesComputer Science12 references5 citations
TL;DR

This paper evaluates a bot detection model trained on GitHub pull request and issue comments for its performance on git commit messages, demonstrating that retraining the model on commit messages improves precision to 0.80. The authors introduce BoDeGiC, an open-source command-line tool to detect bots in git repositories using commit message patterns and statistical dispersion features, showing strong generalizability across socio-technical analysis tasks.

ABSTRACT

Detecting the presence of bots in distributed software development activity is very important in order to prevent bias in large-scale socio-technical empirical analyses. In previous work, we proposed a classification model to detect bots in GitHub repositories based on the pull request and issue comments of GitHub accounts. The current study generalises the approach to git contributors based on their commit messages. We train and evaluate the classification model on a large dataset of 6,922 git contributors. The original model based on pull request and issue comments obtained a precision of 0.77 on this dataset. Retraining the classification model on git commit messages increased the precision to 0.80. As a proof-of-concept, we implemented this model in BoDeGiC, an open source command-line tool to detect bots in git repositories.

Motivation & Objective

  • To assess the generalizability of a bot detection model trained on PR and issue comments to git commit messages.
  • To improve bot detection precision by retraining the model specifically on commit message data.
  • To develop a practical tool enabling researchers and practitioners to detect bots in git repositories at scale.
  • To evaluate the impact of mixed human-bot behaviors on bot classification and suggest activity-level bot identification.

Proposed method

  • The model uses four features derived from commit messages: number of unique patterns, pattern frequency, Gini inequality index of pattern frequencies, and total number of messages.
  • A random forest classifier is trained on a ground-truth dataset of 6,922 git contributors labeled as bots or humans.
  • The model is first evaluated on the original dataset using the same features trained on PR/issue comments, then retrained on commit message data.
  • BoDeGiC, a command-line tool, automates the analysis of git repositories, extracting commit messages and applying the classification model to predict bot or human status.
  • The tool supports output in text, JSON, or CSV format and includes a verbose mode for detailed logging.
  • Manual validation of 100 randomly selected cases was performed to assess label reliability and model consistency.

Experimental results

Research questions

  • RQ1Can a bot detection model trained on PR and issue comments generalize effectively to git commit messages?
  • RQ2Does retraining the model specifically on commit message data improve its precision in bot detection?
  • RQ3How does the performance of the model compare to existing approaches like BIMAN that use multiple signals?
  • RQ4To what extent do mixed human-bot contributors challenge the binary classification of bot vs. human?

Key findings

  • The original model, trained on PR and issue comments, achieved a precision of 0.77 when applied to git commit messages.
  • Retraining the model on commit message data increased precision to 0.80, representing a 3% improvement.
  • The random forest classifier outperformed other models in detecting bot-like patterns in commit messages.
  • Manual validation of 100 cases revealed 19 label disagreements with the original dataset, but the model correctly predicted all 19 cases.
  • The presence of contributors exhibiting both bot-like and human-like behaviors suggests a need to redefine bot identification at the activity level rather than the contributor level.
  • BoDeGiC successfully implements the model as a command-line tool, supporting multiple output formats and enabling practical use in large-scale git repository analysis.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.