プロジェクト
GitHubで見る
jiyuanwang-afk/Explainable-AI-in-Financial-Fraud-and-Anomaly-Detection
概要
このリポジトリでは、金融詐欺の検出と異常分析に向けた説明可能な深層学習モデルを研究しています。グラフニューラルネットワーク(GNN)、オートエンコーダー、SHAPベースの説明可能性手法を統合し、取引データに含まれる不正行動を特定して解釈します。
ビジネス・金融計測したスター増加
- 24時間
- -1
- 7日間
- -1
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルExplainable AI in Financial Fraud and Anomaly Detection
This repository implements a hybrid, explainable fraud/anomaly detection pipeline that combines:
- Graph Neural Networks (GNNs) over a transaction graph
- Tabular Gradient Boosting (baseline) for calibrated probabilities
- Autoencoder for unsupervised anomaly scoring
- Post‑hoc explainability via SHAP, Permutation Importance, and GNNExplainer-like node/edge importance
- Drift tracking (population stability index, PSI) and threshold optimization (F1/PR-AUC maximizing)
It includes a configurable training CLI, reproducible experiments, and a lightweight unit test suite.
Quickstart
pip install -r requirements.txt
python -m src.experiments.main --config configs/default_config.json
# visualize
python -m src.experiments.evaluate --artifacts results/run_000
Project Structure
explainable-ai-fraud-detection/
├── README.md
├── requirements.txt
├── configs/
│ └── default_config.json
├── data/
│ └── transactions.csv # sample synthetic data
├── src/
│ ├── data/
│ │ ├── build_graph.py
│ │ └── tabular_features.py
│ ├── models/
│ │ ├── gnn_model.py
│ │ ├── autoencoder.py
│ │ └── tabular_baseline.py
│ ├── explainability/
│ │ ├── shap_explainer.py
│ │ └── gnn_explainer_like.py
│ ├── experiments/
│ │ ├── main.py
│ │ └── evaluate.py
│ ├── utils.py
│ └── metrics.py
├── docs/
│ └── project_report.md
├── results/
│ └── (artifacts saved here)
└── tests/
└── test_shapes.py
Reproducible Runs
- All hyperparameters and seeds are in
configs/default_config.json. - Artifacts (metrics, confusion matrix, feature importances, explainability plots) are saved under
results/run_xxx.
Notes
torch-geometricinstallation depends on your local CUDA/CPU stack. See https://pytorch-geometric.readthedocs.io for wheels.- If
torch-geometricis unavailable, you can run tabular + autoencoder only by setting"use_gnn": falsein the config.
関連プロジェクトを探す
読み込み中…