Effects of Scale Regularization in Fraud Detection Graphs
https://doi.org/10.3390/electronics14183660
Electronics 2025, 14(18), 3660
ISSN:2079-9292
eISSN:2079-9292
The repository is organized as follows:
data/: dataset folderAmazon.zip: Data of the dataset Amazon;
log/: log foldermodel/: model foldergraphsage.py: model code for vanilla GraphSAGE model;layers.py: RioGNN-sr layers implementations;model.py: RioGNN-sr model implementations;
RL/: RL folderactor_critic.py: RL algorithm, Actor-Critic;rl_model.py: RioGNN-sr RL Forest implementations;
utils/: functions folderdata_process.py: transfer sparse matrix to adjacency lists;utils.py: utility functions for data i/o and model evaluation;
train.py: training and testing all models
We build different multi-relational graphs for experiments in two task scenarios and three datasets:
| Dataset | Task | Nodes | Relation |
|---|---|---|---|
| Amazon | Fraud Detection | 11,944 | upu, usu, uvu, homo |
To run RioGNN-sr on your datasets, you need to prepare the following data:
- Multiple-single relation graphs with the same nodes where each graph is stored in
scipy.sparsematrix format, you can usesparse_to_adjlist()inutils.pyto transfer the sparse matrix into adjacency lists used by RioGNN-sr; - A numpy array with node labels. Currently, RioGNN-sr only supports binary classification;
- A node feature matrix stored in
scipy.sparsematrix format.
You can download the project and and run the program as follows:
unzip data/amazon.zip* Note that all datasets need to be unzipped in the folder \data first;
pip3 install -r requirements.txtpython data_process.pypython train.py --embed_rescalied# '72' is the seed value
mkdir log/amazon/seed-72
mkdir log/amazon/seed-72/log
sh mecro.sh* To run the code, you need to have Python 3.10.
If you use our code, please cite the paper below:
@article{jeon2025effects,
title={Effects of Scale Regularization in Fraud Detection Graphs},
author={Jeon, Janggun and Ahn, Junho and Kim, Namgi},
journal={Electronics},
volume={14},
number={18},
pages={3660},
year={2025},
publisher={MDPI}
}