Skip to content

Add Bitcoin address behavior dataset (BABD-13) dataset - #97

Open
b10claude wants to merge 1 commit into
bitcoin-data:mainfrom
b10claude:add-babd-address-behavior
Open

b10claude wants to merge 1 commit into
bitcoin-data:mainfrom
b10claude:add-babd-address-behavior

Conversation

@b10claude

Copy link
Copy Markdown

Adds datasets/babd-address-behavior.toml.

Sources

Every claim in the entry, and what backs it.

What one record is, and the formats

  • The construction repository's README describes the final file: step 8 of the
    preprocessing "merge[s] all preprocessed .csv files to generate BABD-13.csv
    as shown on BABD-13" on Kaggle. One row is a labelled address.
  • format/csv_format.yml in that repository is "the header of raw feature data
    .csv files" and lists account, SW and the feature columns grouped as
    PAIa*, PDIa*, PTIa*, CI1a*–CI4a* and S1–S9. The README calls
    these "statistical features" and "local structural features", and says step 7
    adds "number labels to the last column for each .csv file to represent
    different address types".
  • The Kaggle description lists the thirteen types: blackmail, cyber-security
    service, darknet market, centralized exchange, P2P financial infrastructure
    service, P2P financial service, gambling, government criminal blacklist,
    money laundering, Ponzi scheme, mining pool, tumbler and individual wallet,
    "respectively corresponding to labels 0~12".
  • JSON is in the format list because the Kaggle release also ships raw ledger
    data: "we share partial Bitcoin ledger data in JSON format from height
    600,000 to 605,999 on Kaggle BABD-13 since the whole raw Bitcoin ledger data
    are too large" (repository README; the Kaggle description says the same).

Where it comes from

  • Ledger data: data_collection/Bitcoin_Ledger_Reader_V3.1.py "is implemented
    for collecting Bitcoin ledger data from BTC.com".
  • Labels: labeled_data_API.py "is used for collecting Bitcoin addresses with
    labels from WalletExplorer", with thanks to Aleš Janda for API access. That
    is why the entry says the labels are a third party's.
  • Graph: graph_generation.py builds the transaction graph with graph-tool;
    features are extracted in data_extraction.ipynb and moduleG.py.

Period

  • The arXiv version of the paper (2204.05746v3) states it directly: "we build a
    dataset comprising Bitcoin transactions between 12 July 2019 and 26 May
    2021". Hence period_start = "2019-07-12" and period_end = "2021-05-26".

Paper, DOI and authors

  • Crossref for 10.1109/TIFS.2023.3347894 returns "BABD: A Bitcoin Address
    Behavior Dataset for Pattern Analysis", IEEE Transactions on Information
    Forensics and Security, volume 19, pages 2171-2185, 2024, with the eight
    authors named in the entry. The repository's BibTeX matches.
  • The same abstract gives the scale: "13 types of Bitcoin addresses, 5
    categories of indicators with 148 features, and 544,462 labeled data". No
    counts appear in the entry, per the timeless rule.

Licence

  • Kaggle reports licenseName "Attribution-NonCommercial-NoDerivatives 4.0
    International (CC BY-NC-ND 4.0)" for the dataset. The construction code in
    the GitHub repository is separately Apache-2.0; the entry's licence field
    describes the data.

Not verified / left out

  • I could not enumerate the Kaggle files: the dataset file-listing API needs an
    account, and the web page is a JavaScript app. Everything above comes from
    the dataset description, the paper and the construction repository.
  • Kaggle reports version 3 at 22,405,169,547 bytes (22.4 GB), far more than a
    544,462-row feature table would occupy, so most of the bulk is presumably the
    partial ledger JSON. Unconfirmed, for the same reason.
  • Whether WalletExplorer's labels have been re-checked since collection.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EQFKPv3mB1J6LFakJnjNsd

@github-actions

Copy link
Copy Markdown

Dataset preview (1 changed entry)

How these entries will read once merged, straight from the generator.

Bitcoin address behavior dataset (BABD-13)

/datasets/babd-address-behavior/

One row per labelled Bitcoin address in a CSV, giving the address, a numeric class from thirteen behaviour types such as exchange, darknet market, tumbler and Ponzi scheme, plus statistical and structural features. The authors built a transaction graph from ledger data and computed the features for addresses labelled by WalletExplorer. Useful for training address classifiers; labels come from a third-party service and the licence bars commercial use and derivatives.

Field Value
Category Transactions
Format CSV, JSON
Period 2019-07-12 – 2021-05-26
License CC BY-NC-ND 4.0
Author Yuexin Xiang, Yuchen Lei, Ding Bao, Tiantian Li, Qingqing Yang, Wenmao Liu, Wei Ren and Kim-Kwang Raymond Choo
DOI 10.1109/TIFS.2023.3347894
Tags addresses, attribution, machine-learning, mainnet
Description 3 sentences, 70 words

Links, in the order they will render:

Generated by ci/preview.py.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants