# mei-yong/bankfrauddetection architecture

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

- Interactive diagram: https://gitdiagram.com/mei-yong/bankfrauddetection
- Repository: https://github.com/mei-yong/bankfrauddetection

## Overview

This mini-project uses connected customer information to identify potential bank fraud rings, including rings with financial risk. The documented workflow is to build and query a graph database from customer and financial-product data, then inspect potential-ring patterns. The README identifies the notebook and data but provides no source excerpts, so data-loading details and internal query stages cannot be verified; the graph shows only documented relationships.

Main entry points: [`BankFraudRings.ipynb`](https://github.com/mei-yong/bankfrauddetection/blob/master/BankFraudRings.ipynb) (Graph build and query), [`data`](https://github.com/mei-yong/bankfrauddetection/tree/master/data) (Customer and product data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Data inputs"]
  node_records["Customer and product data"]
end

subgraph group_analysis["Graph analysis"]
  node_notebook["Graph build and query"]
  node_neo4j[("Neo4j graph database")]
  node_rings["Potential fraud rings"]
end

node_analyst(("Analyst"))

node_analyst -->|"uses"| node_notebook
node_notebook -->|"builds and queries"| node_neo4j
node_records -.->|"provides data"| node_notebook
node_neo4j -.->|"reveals patterns"| node_rings

click node_records "https://github.com/mei-yong/bankfrauddetection/tree/master/data"
click node_notebook "https://github.com/mei-yong/bankfrauddetection/blob/master/BankFraudRings.ipynb"
click node_rings "https://github.com/mei-yong/bankfrauddetection/blob/master/BankFraudRings.ipynb"

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_records toneBlue
class node_notebook,node_neo4j,node_rings toneAmber
class node_analyst toneIndigo
```

## Components

### Data inputs

- [Customer and product data](https://github.com/mei-yong/bankfrauddetection/tree/master/data): `data`

### Graph analysis

- [Graph build and query](https://github.com/mei-yong/bankfrauddetection/blob/master/BankFraudRings.ipynb): `BankFraudRings.ipynb`
- **Neo4j graph database**
- [Potential fraud rings](https://github.com/mei-yong/bankfrauddetection/blob/master/BankFraudRings.ipynb): `BankFraudRings.ipynb`

### Other components

- **Analyst**

## Connections

- Analyst → Graph build and query: uses (evidence: `README.md`)
- Graph build and query → Neo4j graph database: builds and queries (evidence: `README.md`)
- Customer and product data → Graph build and query: provides data
- Neo4j graph database → Potential fraud rings: reveals patterns
