Home

Awesome

DIAM

This repository is an official PyTorch(Geometric) implementation of DIAM in "Effective Illicit Account Detection on Large Directed MultiGraph Transaction Networks of Cryptocurrencies".

Framework

Requirements

Data

Dataset#Nodes#Edges#Edge attribute#Illicit#NormalIllicit:Normal
Ethereum-S1,329,7296,794,52121,6601,7001:1.02
Ethereum-P2,973,48913,551,30321,1653,4181:2.93
Bitcoin-M2,505,84114,181,316546,930213,0261:4.54
Bitcoin-L20,085,231203,419,7658362,3911,271,5561: 3.51

The four datasets can be downloaded here: datasets

Usage

  1. Download and extract data files to /data folder.

  2. Generate edge sequences.

    python3 preprocess.py

  3. Run DIAM.

    python3 main.py