# mansi-upadhyay-12/capstone_fraud_detection architecture

> Architecture diagram of the GitHub repository mansi-upadhyay-12/capstone_fraud_detection, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mansi-upadhyay-12/capstone_fraud_detection
- Repository: https://github.com/mansi-upadhyay-12/capstone_fraud_detection

## Overview

This is a research benchmark for chronological Bitcoin-transaction fraud detection. Its documented workflow is dataset inspection, leakage-controlled preprocessing into graph/tabular data, then comparison of tabular, static-GNN, and temporal-GNN models. The available source excerpts show inspection and preprocessing internals plus root launchers, but not the imported training implementations; model relationships are therefore limited to launcher calls and documented stages. EvolveGCN, explainability, and a dashboard are roadmap capabilities, not implemented components evidenced by this tree.

Main entry points: [`preprocess_graph.py`](https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/preprocess_graph.py) (Graph preprocessing), [`train_gcn_lstm.py`](https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/train_gcn_lstm.py) (GCN-LSTM), [`train_gnn_static.py`](https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/train_gnn_static.py) (Static GNNs), [`inspect_dataset.py`](https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/inspect_dataset.py) (Dataset inspection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_inspection["Dataset inspection<br/>[inspect_dataset.py]"]
  node_preprocessing["Graph preprocessing"]
end

subgraph group_experiments["Model experiments"]
  node_tabular["Tabular baselines<br/>[train_baselines.py]"]
  node_static["Static GNNs"]
  node_temporal["GCN-LSTM<br/>[train_gcn_lstm.py]"]
  node_historical["Historical GCN-LSTM"]
end

subgraph group_roadmap["Roadmap capabilities"]
  node_evolvegcn["EvolveGCN"]
  node_explainability["Subgraph XAI"]
  node_dashboard["Interactive dashboard"]
end

node_dataset["Elliptic++ data"]

node_dataset -->|"inspects"| node_inspection
node_dataset -->|"preprocesses"| node_preprocessing
node_inspection -->|"precedes"| node_preprocessing
node_preprocessing -->|"prepares data"| node_tabular
node_preprocessing -->|"prepares data"| node_static
node_preprocessing -->|"prepares data"| node_temporal
node_preprocessing -->|"prepares data"| node_historical
node_tabular -->|"compares models"| node_static
node_static -->|"compares models"| node_temporal
node_temporal -->|"ablates history"| node_historical
node_temporal -.->|"planned extension"| node_evolvegcn
node_temporal -.->|"planned analysis"| node_explainability
node_explainability -.->|"planned demo"| node_dashboard

click node_inspection "https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/inspect_dataset.py"
click node_preprocessing "https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/preprocess_graph.py"
click node_tabular "https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/train_baselines.py"
click node_static "https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/train_gnn_static.py"
click node_temporal "https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/train_gcn_lstm.py"
click node_historical "https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/train_gcn_lstm_historical.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_inspection,node_preprocessing toneBlue
class node_tabular,node_static,node_temporal,node_historical toneAmber
class node_evolvegcn,node_explainability,node_dashboard toneMint
class node_dataset toneIndigo
```

## Components

### Data preparation

- [Dataset inspection](https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/inspect_dataset.py): `inspect_dataset.py`
- [Graph preprocessing](https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/preprocess_graph.py): `preprocess_graph.py`

### Model experiments

- [Tabular baselines](https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/train_baselines.py): `train_baselines.py`
- [Static GNNs](https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/train_gnn_static.py): `train_gnn_static.py`
- [GCN-LSTM](https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/train_gcn_lstm.py): `train_gcn_lstm.py`
- [Historical GCN-LSTM](https://github.com/mansi-upadhyay-12/capstone_fraud_detection/blob/main/train_gcn_lstm_historical.py): `train_gcn_lstm_historical.py`

### Roadmap capabilities

- **EvolveGCN**
- **Subgraph XAI**
- **Interactive dashboard**

### Other components

- **Elliptic++ data**

## Connections

- Elliptic++ data → Dataset inspection: inspects (evidence: `README.md`)
- Elliptic++ data → Graph preprocessing: preprocesses (evidence: `README.md`)
- Dataset inspection → Graph preprocessing: precedes (evidence: `README.md`)
- Graph preprocessing → Tabular baselines: prepares data (evidence: `README.md`)
- Graph preprocessing → Static GNNs: prepares data (evidence: `README.md`)
- Graph preprocessing → GCN-LSTM: prepares data (evidence: `README.md`)
- Graph preprocessing → Historical GCN-LSTM: prepares data (evidence: `README.md`)
- Tabular baselines → Static GNNs: compares models (evidence: `README.md`)
- Static GNNs → GCN-LSTM: compares models (evidence: `README.md`)
- GCN-LSTM → Historical GCN-LSTM: ablates history (evidence: `README.md`)
- GCN-LSTM → EvolveGCN: planned extension (evidence: `README.md`)
- GCN-LSTM → Subgraph XAI: planned analysis (evidence: `README.md`)
- Subgraph XAI → Interactive dashboard: planned demo (evidence: `README.md`)
