Skip to content
프로젝트

jiyuanwang-afk/Explainable-AI-in-Financial-Fraud-and-Anomaly-Detection

GitHub에서 보기

소개

이 저장소는 금융 사기 탐지와 이상 분석을 위한 설명 가능한 딥러닝 모델을 연구합니다. 그래프 신경망(GNN), 오토인코더, SHAP 기반 설명 가능성 기법을 통합해 거래 데이터에서 사기 행위를 식별하고 해석합니다.

비즈니스 및 금융

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
-1
in 7 days
-1
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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-geometric installation depends on your local CUDA/CPU stack. See https://pytorch-geometric.readthedocs.io for wheels.
  • If torch-geometric is unavailable, you can run tabular + autoencoder only by setting "use_gnn": false in the config.

관련 프로젝트 살펴보기

불러오는 중…