Real-Time Transaction Fraud Detection
Real-time transaction risk scoring that combines rolling behavior, graph analytics, and an online ML ensemble.
~70,000 simulated transactions/min · ~40 ms latency in team tests
- Delivery guarantees
- Exactly-once recovery across restarts and rebalances using idempotent Kafka writes and atomic state/offset checkpoints.
- Streaming pipeline
- Debezium streams PostgreSQL changes through Kafka. Pathway builds rolling transaction features, snapshots state to S3, and sends invalid events to a dead-letter queue.
- Graph features
- Neo4j computes PageRank, betweenness centrality, neighborhood density, and Louvain communities. These signals capture how accounts and transactions relate across the network.
- Online scoring
- A River ensemble scores the combined features, and a logistic meta-classifier combines its outputs. Analyst feedback updates the models incrementally as fraud patterns change.
- Kafka
- Debezium
- Pathway
- PostgreSQL
- Neo4j
- River