liveBook · Manning

Chapter 9: Unveiling hidden connections: Graph-based analytics for advanced fraud detection

What you will learn in chapter 9 of Financial AI in Practice

Introduces why graph analytics can reveal coordinated fraud that transaction-by-transaction detection may miss.

After this chapter you will be able to

What it builds on

Section by section

Introduction

Introduces why graph analytics can reveal coordinated fraud that transaction-by-transaction detection may miss.

Key terms: graph analytics, coordinated networks, topological connections, fraud ring

9.1 Why graph analytics are now essential in BFSI fraud detection

This section explains why modeling relationships among financial entities reveals organized fraud patterns that isolated-event analysis can miss.

Key terms: graph analytics, topology, relational perspective, nodes, edges, entities, shared attributes, coordinated activity, multi-hop analysis, communities

9.2 Fundamentals of graph data in finance

Introduces a graph as a way to represent relationships between objects in financial data.

Key terms: graph, relationships, objects

9.2.1 Core components: Nodes, edges, and properties

Defines nodes, edges, and properties as the basic components of a financial fraud graph.

Key terms: nodes, vertices, edges, links, relationships, properties

9.2.2 Types of graphs in fraud detection and prevention

This section distinguishes six graph structures used in fraud analysis and shows how the entities and relationships being modeled guide the choice of representation.

Key terms: directed graph, undirected graph, weighted graph, unweighted graph, cyclic graph, acyclic graph, sparse graph, dense graph, homogeneous graph, heterogeneous graph

9.2.3 The fundamental process for creating graph data for fraud analytics

This section explains how to turn raw financial data into a clean, structured graph for fraud analysis and how to choose an environment for working with it.

Key terms: data sources, schema, data quality, customer IDs, transaction IDs, graph data model, nodes, edges, properties, ETL

9.3 Hands-on: Building and analyzing a transaction graph with NetworkX

Introduces a planned NetworkX exercise using transaction data to explore a graph and detect potentially suspicious communities, with a note about assumed library imports.

9.3.1 Loading and initial inspection of the transaction dataset

This section loads and inspects a transaction dataset before using it to build a fraud-detection graph.

Key terms: fraud_transactions.csv, pandas DataFrame, transactions_ df.info(), is_fraud

9.3.2 Constructing the multi-entity graph with NetworkX using parallel processing

This section turns transaction rows into a multi-entity graph, explains how edge preparation is parallelized, and interprets the resulting graph.

Key terms: nodes, edges, weight attribute, multi-entity graph, parallel processing, ThreadPoolExecutor, entity co-occurrences, edge preparation, graph statistics

9.3.3 Community detection using the Louvain algorithm

This section uses Louvain community detection to find groups in a transaction graph, then profiles and visualizes them to identify shared resources that may warrant fraud investigation.

Key terms: community detection, Louvain algorithm, community_id, community ID, subgraph, density, size, entity types, ThreadPoolExecutor, bottleneck

9.4 Toward advanced graph-based techniques: Graph Neural Networks

This section explains why Graph Neural Networks are useful for financial fraud detection: they learn from relationships, evolving networks, and diverse financial data rather than relying only on predefined graph features.

Key terms: Graph Neural Networks (GNNs), message passing, graph convolution, embeddings, local neighborhoods, temporal TGNNs, dynamic DGNNs, temporal dependencies, static graph analysis, multimodal

9.4.1 Key design considerations for GNNs in fraud detection

This section explains the main design tradeoffs when applying GNNs to financial fraud detection.

Key terms: GCNs, GATs, GraphSAGE, TGNNs, HGNNs, oversmoothing, node and edge feature engineering, transaction velocity, account age, IP risk score

9.4.2 Hands-on: A simplified GNN for transaction fraud detection with PyTorch

This section walks through a simplified PyTorch GNN fraud-detection demo, from transaction graph construction and neighborhood aggregation to training, suspicious-transaction rankings, and their interpretation.

Key terms: node features, adjacency matrix, user_id, device_id, graph convolution layer, message passing, Normal/Fraud, run_fast_gnn_demo, is_fraud, CrossEntropyLoss

9.5 Synergistic fraud defense: Combining GNNs, LLMs, and future directions

The section explains how complementary AI methods, especially LLMs alongside graph analytics, could strengthen fraud defense while identifying other capabilities needed in production systems.

Key terms: LLMs, augmented case review, relational insights, preliminary investigation, supervised, unsupervised, graph-based analytics, LLMOps, multilayered system, behavioral biometrics

9.6 Summary

Concepts explained in this chapter

← Chapter 8: Building AI fraud detectors: From supervised scoring to anomaly identification Chapter 10: Building the quantitative engine: Market direction prediction with machine learning →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.