Professional Documents
Culture Documents
9-Apr ML Fridays - Technical Edition - Fraud Detection Using Deep Graph Networks
9-Apr ML Fridays - Technical Edition - Fraud Detection Using Deep Graph Networks
Payment fraud
• Compromised payment instruments (e.g., stolen cards)
• Intentional nonpayment (e.g., prepaid cards)
Payment fraud
• Compromised payment instruments (e.g., stolen cards)
• Intentional nonpayment (e.g., prepaid cards)
Payment fraud
• Compromised payment instruments (e.g., stolen cards)
• Intentional nonpayment (e.g., prepaid cards)
Abuse
• Free tier misuse
• Premium phone number
Incorrectly
DECLINED
Correctly APPROVED (TN)
(FP)
False
Negatives
Increase
• revenue loss
• negative reviews
• customer churn
Decrease
fraud losses
False
Positives
Layer 2
AnomalyFraudulent transactions
within a session are
–e.g. transfer before anomalies
balance
Layer 3
Anomaly within an account–e.g. Unusual spikes in transfer
Fraud detection in its core is an anomaly detection problem
Layer 4
Anomaly within multiple channels of the same account–-e.g. spikes
Layer 5
Anomaly within multiple challens and multiple accounts–e.g. Irregular transfer
Pros
• Straight forward to implement
• Easy to explain
© 2020 Amazon Web Services, Inc. or its affiliates. All rights reserved |
Difficulties with rule-based Fraud Detection
Feed Discover
relationships Apply solution Make
labeled to unseen data predictions
data to between input
algorithm and output
Unlabeled Data
Train Deploy
Random Cut
Random
Forest Model
Cut Forest
using
SageMaker* Model
Amazon SageMaker
(Random Cut Forest)
Fraud Detection
Amazon API Gateway AWS Lambda Amazon S3 bucket
(Model and Data)
Optional
• Anomaly != (Normal)
• Problem to solve “Learn Normal”
• Learning normal is easier problem to solve since data for
(Normal) is exhaustively available
© 2020, Amazon Web Services, Inc. or its Affiliates.
Limitations and Considerations
Nodes
Edges
Homogeneous Heterogeneous
© 2020, Amazon Web Services, Inc. or its Affiliates.
Graph learning Tasks
Node Classification
Fraud detection
target right customers
Link Prediction
recommendations
missing relations in a knowledge graph
Graph Classification
predict property of a chemical compound
A family of (deep) neural networks that learn node, edge, and graph
embeddings
v5 h5
h2
V2
AGGREGATE
And
v1 h1
m1
COMBINE
v3 v4
h4
h3
Gilmer, J., Schoenholz, S. S., Riley, P. F., Vinyals, O., & Dahl, G. E. (2017, August). Neural message passing for quantum chemistry.
Xu, K., Hu, W., Leskovec, J., & Jegelka, S. (2018). How powerful are graph neural networks?
© 2020, Amazon Web Services, Inc. or its Affiliates.
Graph Neural Network models
(𝑙) 𝑙
AGGREGATE 𝑚𝑣 = 𝑀𝑣𝑤
𝑤∈𝑁 𝑣 ∪{𝑣}
(𝑙) 𝑙
COMBINE ℎ𝑣 = 𝜙(𝑚𝑣 𝑊 (𝑙) )
Kipf, T. N., & Welling, M. (2016). Semi-supervised classification with graph convolutional networks.
Veličković, P., Cucurull, G., Casanova, A., Romero, A., Lio, P., & Bengio, Y. (2017). Graph attention networks.
Schlichtkrull, M., Kipf, T. N., Bloem, P., Van Den Berg, R., Titov, I., & Welling, M. (2018, June). Modeling relational data with graph convolutional networks.
© 2020, Amazon Web Services, Inc. or its Affiliates.
© 2020, Amazon Web Services, Inc. or its Affiliates.
Deep Graph Library (DGL) for Deep Learning on Graphs
https://docs.aws.amazon.com/sagemaker/latest/dg/deep-graph-library.html
Fraud detection with graph
neural networks
⋮ ⋮ ⋮ ⋮ ⋮
Context
User signs-up and once some usage data
is collected, predict if user is fraud or not.
⋮ ⋮ ⋮ ⋮ ⋮ ⋮
Feature Transformation
Graph
𝑥11 ⋯ 𝑥1𝑚
⋮ ⋱ ⋮ User features
𝑥𝑛1 ⋯ 𝑥𝑛𝑚
https://github.com/awslabs/
sagemaker-graph-fraud-
detection
https://github.com/awsla
bs/sagemaker-graph-
fraud-detection