SlideShare a Scribd company logo
1 of 35
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Greg Share, Solutions Architect
December 10th
2018
AWS Builders’ Day London
Fraud Detection with Amazon Sagemaker
What we will cover in this session
• Fraud Detection
• Machine Learning @ Amazon
• Amazon SageMaker
• Using SageMaker to Detect Fraud
Payment Fraud is an ongoing concern for FS organizations
In 2016…
$9b of fraud losses
in the US*
$22.8b of fraud
losses globally*
In 2021…
$32.96b of projected
fraud losses globally*
* From The Nilson Report, October 2017, Issue 1118 (https://nilsonreport.com/upload/content_promo/The_Nilson_Report_Issue_1118.pdf)
Types of Fraudulent Behaviour
Endpoint Authentication
☞ stolen card or machine
Layer 1
Endpoint Authentication
☞ stolen card or machine
Layer 1
Anomaly within a session
☞ Irregular behaviour within a session—e.g. transfer before balance
Layer 2
Types of Fraudulent Behaviour
Endpoint Authentication
☞ stolen card or machine
Layer 1
Anomaly within a session
☞ Irregular behaviour within a session—e.g. transfer before balance
Layer 2
Anomaly within an account
☞ Irregular transactions—e.g. spike in transfer and recipients
Layer 3
Types of Fraudulent Behaviour
Endpoint Authentication
☞ stolen card or machine
Layer 1
Anomaly within a session
☞ Irregular behaviour within a session—e.g. transfer before balance
Layer 2
Anomaly within an account
☞ Irregular transactions—e.g. spike in transfer and recipients
Layer 3
Anomaly within multiple channels of the same account
☞ Irregular transactions across channels—e.g. spike in transfer and recipients
Layer 4
Types of Fraudulent Behaviour
Endpoint Authentication
☞ stolen card or machine
Layer 1
Anomaly within a session
☞ Irregular behaviour within a session—e.g. transfer before balance
Layer 2
Anomaly within an account
☞ Irregular transactions—e.g. spike in transfer and recipients
Layer 3
Anomaly within multiple channels of the same account
☞ Irregular transactions across channels—e.g. spike in transfer and recipients
Layer 4
Anomaly within multiple channels of multiple accounts
☞ Irregular transactions across channels and accounts
Layer 5
Types of Fraudulent Behaviour
Rule-Based Fraud Detection
DENY
Over
Limit
High
Rate
Stolen
Card
?
APPROVE
Rule-Based Fraud Detection – Shortcomings
Static Rules Bug-Prone Complicated Cannot ScaleAlways Behind
Requirements for a modern solution
Self Improving Easy to Maintain ScalableReal-timeDynamic Rules
Machine Learning – Supervised Learning
Understand
your data
Algorithmically
discover hidden
patterns
Generalize
solution
algorithm
Apply solution
to unseen
patterns
Make
predictions
Our Mission:
Put machine learning in the hands of
every developer and data scientist
Machine Learning at AWS
Machine Learning at Amazon: A long heritage
Voice driven
interactions
Fulfillment automation
& inventory management
Personalized
recommendations
Drones
Inventing entirely new
customer experiences
Machine Learning at Amazon: A long heritage
Voice driven
interactions
Fulfillment automation
& inventory management
Personalized
recommendations
Drones
Inventing entirely new
customer experiences
1000s of customers running Machine Learning on AWS
The AWS Machine Learning Stack
PLATFORMS
APPLICATION SERVICES
R E K O G N I T I O N R E K O G N I T I O N
V I D E O
P O L L Y T R A N S C R I B E T R A N S L A T E C O M P R E H E N D L E X
Amazon SageMaker Amazon Mechanical Turk
FRAMEWORKS KERAS
P3
NVIDIA Tesla V100 GPU
accelerated for AI/ML training
Machine Learning
AMIs
INFRASTRUCTURE
&
Greengrass
ML
Amazon Deep Learning AMIs
Compute intensive instances for
AI/ML Inference
C5
The AWS Machine Learning Stack
PLATFORMS
APPLICATION SERVICES
R E K O G N I T I O N R E K O G N I T I O N
V I D E O
P O L L Y T R A N S C R I B E T R A N S L A T E C O M P R E H E N D L E X
Amazon SageMaker Amazon Mechanical Turk
FRAMEWORKS KERAS
P3
NVIDIA Tesla V100 GPU
accelerated for AI/ML training
Machine Learning
AMIs
INFRASTRUCTURE
&
Greengrass
ML
Amazon Deep Learning AMIs
Compute intensive instances for
AI/ML Inference
C5
The AWS Machine Learning Stack
PLATFORMS
APPLICATION SERVICES
R E K O G N I T I O N R E K O G N I T I O N
V I D E O
P O L L Y T R A N S C R I B E T R A N S L A T E C O M P R E H E N D L E X
Amazon SageMaker Amazon Mechanical Turk
FRAMEWORKS KERAS
P3
NVIDIA Tesla V100 GPU
accelerated for AI/ML training
Machine Learning
AMIs
INFRASTRUCTURE
&
Greengrass
ML
Amazon Deep Learning AMIs
Compute intensive instances for
AI/ML Inference
C5
The AWS Machine Learning Stack
PLATFORMS
APPLICATION SERVICES
R E K O G N I T I O N R E K O G N I T I O N
V I D E O
P O L L Y T R A N S C R I B E T R A N S L A T E C O M P R E H E N D L E X
Amazon SageMaker Amazon Mechanical Turk
FRAMEWORKS KERAS
P3
NVIDIA Tesla V100 GPU
accelerated for AI/ML training
Machine Learning
AMIs
INFRASTRUCTURE
&
Greengrass
ML
Amazon Deep Learning AMIs
Compute intensive instances for
AI/ML Inference
C5
ML is still too complicated for everyday developers
Collect and prepare
training data
Choose and
optimize your ML
algorithm
Set up and manage
environments for
training
Train and tune model
(trial and error)
Deploy model
in production
Scale and manage
the production
environment
A managed service
that provides the quickest and easiest way for
data scientists and developers to get
ML models from idea to production
Amazon SageMaker
Amazon SageMaker
Collect and prepare
training data
Choose and
optimize your ML
algorithm
Set up and manage
environments for
training
Train and tune model
(trial and error)
Deploy model
in production
Scale and manage
the production
environment
Easily build, train, and deploy machine learning models
Amazon SageMaker
Pre-built
notebooks for
common
problems
K-Means Clustering
Principal Component Analysis
Neural Topic Modelling
Factorization Machines
Linear Learner – Regression
DeepAR Forecasting
XGBoost
Latent Dirichlet Allocation
Image Classification
Seq2Seq
Linear Learner – Classification
BlazingText
Random Cut Forest
ALGORITHMS
Apache MXNet
TensorFlow
Caffe2, CNTK,
PyTorch, Torch
FRAMEWORKS
S e t u p a n d m a n a g e
e n v i r o n m e n t s f o r
t r a i n i n g
T r a i n a n d t u n e
m o d e l ( t r i a l a n d
e r r o r )
D e p l o y m o d e l
i n p r o d u c t i o n
S c a l e a n d m a n a g e t h e
p r o d u c t i o n e n v i r o n m e n t
Built-in, high-
performance
algorithms
Build
Pre-built
notebooks for
common
problems
Built-in, high-
performance
algorithms
One-click
training
Hyperparameter
optimization
Build Train
Deploy model
in production
Scale and manage
the production
environment
Amazon SageMaker
Fully managed
hosting with auto-
scaling
One-click
deployment
Pre-built
notebooks for
common
problems
Built-in, high-
performance
algorithms
One-click
training
Hyperparameter
optimization
Build Train Deploy
Amazon SageMaker
Amazon Sagemaker for Fraud
Detection
Model hosting (SM)
Calculate
features
Reader
Cleanser
Processor
Data
Look-up
Training
Feature store
Model training (SM)
Model
Client service
Amazon EMR
Real-time Fraud Detection in AWS
with Amazon SageMaker
• Training algorithm / inference code is
packaged in a Docker image
published on Amazon ECR
• SageMaker pulls the training
algorithm image from Amazon ECR
into the Model Training Service
• Amazon SM downloads or streams
the training data and runs the training
algorithm on the data.
• After training, Amazon SM uploads
model artifacts to Amazon S3
• For inference, Amazon SM pulls the
model artifacts and the inference
image from Amazon ECR, into the
Model Hosting Service
• Amazon SM exposes an inference
endpoint for client applications to send
prediction requests to check Fraud
• Ground truth data collected from the
client application could be sent into
the training bucket to retrain and
update the model
Deploying a Model on Amazon SageMaker
Linear Learner
Regression:
Estimate a real valued function
Binary classification:
Predict a 0/1 class
Demo
Resources:
Demo Notebook: https://github.com/cyrusmvahid/sagemaker-
demos/blob/master/credircard_fraud/linearlearner-blogpost-
part2.ipynb
Sagemaker Docs:
https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-
works-training.html
Kaggle Dataset: https://www.kaggle.com/mlg-
ulb/creditcardfraud/
Thank you!

More Related Content

What's hot

Introduction to Threat Detection and Remediation on AWS
Introduction to Threat Detection and Remediation on AWSIntroduction to Threat Detection and Remediation on AWS
Introduction to Threat Detection and Remediation on AWSAmazon Web Services
 
Low code with Flowable
Low code with FlowableLow code with Flowable
Low code with FlowableFlowable
 
Machine Learning & Amazon SageMaker
Machine Learning & Amazon SageMakerMachine Learning & Amazon SageMaker
Machine Learning & Amazon SageMakerAmazon Web Services
 
Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...
Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...
Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Building Data Lakes for Analytics on AWS
Building Data Lakes for Analytics on AWSBuilding Data Lakes for Analytics on AWS
Building Data Lakes for Analytics on AWSAmazon Web Services
 
AWS Billing Deep Dive (DMG203) | AWS re:Invent 2013
AWS Billing Deep Dive (DMG203) | AWS re:Invent 2013AWS Billing Deep Dive (DMG203) | AWS re:Invent 2013
AWS Billing Deep Dive (DMG203) | AWS re:Invent 2013Amazon Web Services
 
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain PipelineThe Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain PipelineAmazon Web Services
 
Security best practices the well-architected way - SDD318 - AWS re:Inforce 2019
Security best practices the well-architected way - SDD318 - AWS re:Inforce 2019 Security best practices the well-architected way - SDD318 - AWS re:Inforce 2019
Security best practices the well-architected way - SDD318 - AWS re:Inforce 2019 Amazon Web Services
 
Why AWS in Education: Transforming Education in the Cloud
Why AWS in Education: Transforming Education in the CloudWhy AWS in Education: Transforming Education in the Cloud
Why AWS in Education: Transforming Education in the CloudAmazon Web Services
 
SAP Cloud Platform - The Business Platform for the Intelligent Enterprise
SAP Cloud Platform - The Business Platform for the Intelligent EnterpriseSAP Cloud Platform - The Business Platform for the Intelligent Enterprise
SAP Cloud Platform - The Business Platform for the Intelligent EnterpriseSAP Cloud Platform
 
reInvent reCap 2022
reInvent reCap 2022reInvent reCap 2022
reInvent reCap 2022CloudHesive
 
Deploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control TowerDeploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control TowerAmazon Web Services
 
Accenture Cloud Platform: Control, Manage and Govern the Enterprise Cloud
Accenture Cloud Platform: Control, Manage and Govern the Enterprise CloudAccenture Cloud Platform: Control, Manage and Govern the Enterprise Cloud
Accenture Cloud Platform: Control, Manage and Govern the Enterprise Cloudaccenture
 

What's hot (20)

Introduction to Threat Detection and Remediation on AWS
Introduction to Threat Detection and Remediation on AWSIntroduction to Threat Detection and Remediation on AWS
Introduction to Threat Detection and Remediation on AWS
 
AWS Partnership Model
AWS Partnership ModelAWS Partnership Model
AWS Partnership Model
 
Deep dive into AWS fargate
Deep dive into AWS fargateDeep dive into AWS fargate
Deep dive into AWS fargate
 
Low code with Flowable
Low code with FlowableLow code with Flowable
Low code with Flowable
 
Fundamentals of AWS Security
Fundamentals of AWS SecurityFundamentals of AWS Security
Fundamentals of AWS Security
 
Machine Learning & Amazon SageMaker
Machine Learning & Amazon SageMakerMachine Learning & Amazon SageMaker
Machine Learning & Amazon SageMaker
 
Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...
Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...
Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Building Data Lakes for Analytics on AWS
Building Data Lakes for Analytics on AWSBuilding Data Lakes for Analytics on AWS
Building Data Lakes for Analytics on AWS
 
AWS Billing Deep Dive (DMG203) | AWS re:Invent 2013
AWS Billing Deep Dive (DMG203) | AWS re:Invent 2013AWS Billing Deep Dive (DMG203) | AWS re:Invent 2013
AWS Billing Deep Dive (DMG203) | AWS re:Invent 2013
 
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain PipelineThe Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
 
Security best practices the well-architected way - SDD318 - AWS re:Inforce 2019
Security best practices the well-architected way - SDD318 - AWS re:Inforce 2019 Security best practices the well-architected way - SDD318 - AWS re:Inforce 2019
Security best practices the well-architected way - SDD318 - AWS re:Inforce 2019
 
Why AWS in Education: Transforming Education in the Cloud
Why AWS in Education: Transforming Education in the CloudWhy AWS in Education: Transforming Education in the Cloud
Why AWS in Education: Transforming Education in the Cloud
 
AWS_Meetup_BLR_July_22_Social.pdf
AWS_Meetup_BLR_July_22_Social.pdfAWS_Meetup_BLR_July_22_Social.pdf
AWS_Meetup_BLR_July_22_Social.pdf
 
SAP integration best practices and tools
SAP integration best practices and toolsSAP integration best practices and tools
SAP integration best practices and tools
 
SAP Cloud Platform - The Business Platform for the Intelligent Enterprise
SAP Cloud Platform - The Business Platform for the Intelligent EnterpriseSAP Cloud Platform - The Business Platform for the Intelligent Enterprise
SAP Cloud Platform - The Business Platform for the Intelligent Enterprise
 
reInvent reCap 2022
reInvent reCap 2022reInvent reCap 2022
reInvent reCap 2022
 
Introduction to Amazon Athena
Introduction to Amazon AthenaIntroduction to Amazon Athena
Introduction to Amazon Athena
 
Deploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control TowerDeploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control Tower
 
Accenture Cloud Platform: Control, Manage and Govern the Enterprise Cloud
Accenture Cloud Platform: Control, Manage and Govern the Enterprise CloudAccenture Cloud Platform: Control, Manage and Govern the Enterprise Cloud
Accenture Cloud Platform: Control, Manage and Govern the Enterprise Cloud
 

Similar to Fraud Detection with Amazon SageMaker

Amazon SageMaker for Fraud Detection
Amazon SageMaker for Fraud DetectionAmazon SageMaker for Fraud Detection
Amazon SageMaker for Fraud DetectionAmazon Web Services
 
Integrating Amazon SageMaker into your Enterprise - AWS Online Tech Talks
Integrating Amazon SageMaker into your Enterprise - AWS Online Tech TalksIntegrating Amazon SageMaker into your Enterprise - AWS Online Tech Talks
Integrating Amazon SageMaker into your Enterprise - AWS Online Tech TalksAmazon Web Services
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS SummitAmazon Web Services
 
Data Summer Conf 2018, “Build, train, and deploy machine learning models at s...
Data Summer Conf 2018, “Build, train, and deploy machine learning models at s...Data Summer Conf 2018, “Build, train, and deploy machine learning models at s...
Data Summer Conf 2018, “Build, train, and deploy machine learning models at s...Provectus
 
Amazon SageMaker Deep Dive for Builders
Amazon SageMaker Deep Dive for BuildersAmazon SageMaker Deep Dive for Builders
Amazon SageMaker Deep Dive for BuildersAmazon Web Services
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS SummitAmazon Web Services
 
Build-Train-Deploy-Machine-Learning-Models-at-Any-Scale
Build-Train-Deploy-Machine-Learning-Models-at-Any-ScaleBuild-Train-Deploy-Machine-Learning-Models-at-Any-Scale
Build-Train-Deploy-Machine-Learning-Models-at-Any-ScaleAmazon Web Services
 
Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...Amazon Web Services
 
Machine Learning in azione con Amazon SageMaker
Machine Learning in azione con Amazon SageMakerMachine Learning in azione con Amazon SageMaker
Machine Learning in azione con Amazon SageMakerAmazon Web Services
 
WhereML a Serverless ML Powered Location Guessing Twitter Bot
WhereML a Serverless ML Powered Location Guessing Twitter BotWhereML a Serverless ML Powered Location Guessing Twitter Bot
WhereML a Serverless ML Powered Location Guessing Twitter BotRandall Hunt
 
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)Julien SIMON
 
AI/ML Week: Strengthen Cybersecurity
AI/ML Week: Strengthen CybersecurityAI/ML Week: Strengthen Cybersecurity
AI/ML Week: Strengthen CybersecurityAmazon Web Services
 
AWS reinvent 2019 recap - Riyadh - AI And ML - Ahmed Raafat
AWS reinvent 2019 recap - Riyadh - AI And ML - Ahmed RaafatAWS reinvent 2019 recap - Riyadh - AI And ML - Ahmed Raafat
AWS reinvent 2019 recap - Riyadh - AI And ML - Ahmed RaafatAWS Riyadh User Group
 
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Amazon Web Services
 
Train ML Models Using Amazon SageMaker with TensorFlow - SRV336 - Chicago AWS...
Train ML Models Using Amazon SageMaker with TensorFlow - SRV336 - Chicago AWS...Train ML Models Using Amazon SageMaker with TensorFlow - SRV336 - Chicago AWS...
Train ML Models Using Amazon SageMaker with TensorFlow - SRV336 - Chicago AWS...Amazon Web Services
 
Mcl345 re invent_sagemaker_dmbanga
Mcl345 re invent_sagemaker_dmbangaMcl345 re invent_sagemaker_dmbanga
Mcl345 re invent_sagemaker_dmbangaDan Romuald Mbanga
 
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...Amazon Web Services
 
Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Julien SIMON
 

Similar to Fraud Detection with Amazon SageMaker (20)

Amazon SageMaker for Fraud Detection
Amazon SageMaker for Fraud DetectionAmazon SageMaker for Fraud Detection
Amazon SageMaker for Fraud Detection
 
Integrating Amazon SageMaker into your Enterprise - AWS Online Tech Talks
Integrating Amazon SageMaker into your Enterprise - AWS Online Tech TalksIntegrating Amazon SageMaker into your Enterprise - AWS Online Tech Talks
Integrating Amazon SageMaker into your Enterprise - AWS Online Tech Talks
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
 
Data Summer Conf 2018, “Build, train, and deploy machine learning models at s...
Data Summer Conf 2018, “Build, train, and deploy machine learning models at s...Data Summer Conf 2018, “Build, train, and deploy machine learning models at s...
Data Summer Conf 2018, “Build, train, and deploy machine learning models at s...
 
Amazon SageMaker Deep Dive for Builders
Amazon SageMaker Deep Dive for BuildersAmazon SageMaker Deep Dive for Builders
Amazon SageMaker Deep Dive for Builders
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
 
Build-Train-Deploy-Machine-Learning-Models-at-Any-Scale
Build-Train-Deploy-Machine-Learning-Models-at-Any-ScaleBuild-Train-Deploy-Machine-Learning-Models-at-Any-Scale
Build-Train-Deploy-Machine-Learning-Models-at-Any-Scale
 
Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...
 
Machine Learning in azione con Amazon SageMaker
Machine Learning in azione con Amazon SageMakerMachine Learning in azione con Amazon SageMaker
Machine Learning in azione con Amazon SageMaker
 
WhereML a Serverless ML Powered Location Guessing Twitter Bot
WhereML a Serverless ML Powered Location Guessing Twitter BotWhereML a Serverless ML Powered Location Guessing Twitter Bot
WhereML a Serverless ML Powered Location Guessing Twitter Bot
 
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
 
AI/ML Week: Strengthen Cybersecurity
AI/ML Week: Strengthen CybersecurityAI/ML Week: Strengthen Cybersecurity
AI/ML Week: Strengthen Cybersecurity
 
AWS reinvent 2019 recap - Riyadh - AI And ML - Ahmed Raafat
AWS reinvent 2019 recap - Riyadh - AI And ML - Ahmed RaafatAWS reinvent 2019 recap - Riyadh - AI And ML - Ahmed Raafat
AWS reinvent 2019 recap - Riyadh - AI And ML - Ahmed Raafat
 
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
 
AI & AWS DeepComposer
AI & AWS DeepComposerAI & AWS DeepComposer
AI & AWS DeepComposer
 
Train ML Models Using Amazon SageMaker with TensorFlow - SRV336 - Chicago AWS...
Train ML Models Using Amazon SageMaker with TensorFlow - SRV336 - Chicago AWS...Train ML Models Using Amazon SageMaker with TensorFlow - SRV336 - Chicago AWS...
Train ML Models Using Amazon SageMaker with TensorFlow - SRV336 - Chicago AWS...
 
Mcl345 re invent_sagemaker_dmbanga
Mcl345 re invent_sagemaker_dmbangaMcl345 re invent_sagemaker_dmbanga
Mcl345 re invent_sagemaker_dmbanga
 
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...
 
Introduction to Sagemaker
Introduction to SagemakerIntroduction to Sagemaker
Introduction to Sagemaker
 
Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWS
 

Fraud Detection with Amazon SageMaker

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Greg Share, Solutions Architect December 10th 2018 AWS Builders’ Day London Fraud Detection with Amazon Sagemaker
  • 2. What we will cover in this session • Fraud Detection • Machine Learning @ Amazon • Amazon SageMaker • Using SageMaker to Detect Fraud
  • 3. Payment Fraud is an ongoing concern for FS organizations In 2016… $9b of fraud losses in the US* $22.8b of fraud losses globally* In 2021… $32.96b of projected fraud losses globally* * From The Nilson Report, October 2017, Issue 1118 (https://nilsonreport.com/upload/content_promo/The_Nilson_Report_Issue_1118.pdf)
  • 4. Types of Fraudulent Behaviour Endpoint Authentication ☞ stolen card or machine Layer 1
  • 5. Endpoint Authentication ☞ stolen card or machine Layer 1 Anomaly within a session ☞ Irregular behaviour within a session—e.g. transfer before balance Layer 2 Types of Fraudulent Behaviour
  • 6. Endpoint Authentication ☞ stolen card or machine Layer 1 Anomaly within a session ☞ Irregular behaviour within a session—e.g. transfer before balance Layer 2 Anomaly within an account ☞ Irregular transactions—e.g. spike in transfer and recipients Layer 3 Types of Fraudulent Behaviour
  • 7. Endpoint Authentication ☞ stolen card or machine Layer 1 Anomaly within a session ☞ Irregular behaviour within a session—e.g. transfer before balance Layer 2 Anomaly within an account ☞ Irregular transactions—e.g. spike in transfer and recipients Layer 3 Anomaly within multiple channels of the same account ☞ Irregular transactions across channels—e.g. spike in transfer and recipients Layer 4 Types of Fraudulent Behaviour
  • 8. Endpoint Authentication ☞ stolen card or machine Layer 1 Anomaly within a session ☞ Irregular behaviour within a session—e.g. transfer before balance Layer 2 Anomaly within an account ☞ Irregular transactions—e.g. spike in transfer and recipients Layer 3 Anomaly within multiple channels of the same account ☞ Irregular transactions across channels—e.g. spike in transfer and recipients Layer 4 Anomaly within multiple channels of multiple accounts ☞ Irregular transactions across channels and accounts Layer 5 Types of Fraudulent Behaviour
  • 10. Rule-Based Fraud Detection – Shortcomings Static Rules Bug-Prone Complicated Cannot ScaleAlways Behind
  • 11. Requirements for a modern solution Self Improving Easy to Maintain ScalableReal-timeDynamic Rules
  • 12. Machine Learning – Supervised Learning Understand your data Algorithmically discover hidden patterns Generalize solution algorithm Apply solution to unseen patterns Make predictions
  • 13.
  • 14. Our Mission: Put machine learning in the hands of every developer and data scientist Machine Learning at AWS
  • 15. Machine Learning at Amazon: A long heritage Voice driven interactions Fulfillment automation & inventory management Personalized recommendations Drones Inventing entirely new customer experiences
  • 16.
  • 17. Machine Learning at Amazon: A long heritage Voice driven interactions Fulfillment automation & inventory management Personalized recommendations Drones Inventing entirely new customer experiences
  • 18. 1000s of customers running Machine Learning on AWS
  • 19. The AWS Machine Learning Stack PLATFORMS APPLICATION SERVICES R E K O G N I T I O N R E K O G N I T I O N V I D E O P O L L Y T R A N S C R I B E T R A N S L A T E C O M P R E H E N D L E X Amazon SageMaker Amazon Mechanical Turk FRAMEWORKS KERAS P3 NVIDIA Tesla V100 GPU accelerated for AI/ML training Machine Learning AMIs INFRASTRUCTURE & Greengrass ML Amazon Deep Learning AMIs Compute intensive instances for AI/ML Inference C5
  • 20. The AWS Machine Learning Stack PLATFORMS APPLICATION SERVICES R E K O G N I T I O N R E K O G N I T I O N V I D E O P O L L Y T R A N S C R I B E T R A N S L A T E C O M P R E H E N D L E X Amazon SageMaker Amazon Mechanical Turk FRAMEWORKS KERAS P3 NVIDIA Tesla V100 GPU accelerated for AI/ML training Machine Learning AMIs INFRASTRUCTURE & Greengrass ML Amazon Deep Learning AMIs Compute intensive instances for AI/ML Inference C5
  • 21. The AWS Machine Learning Stack PLATFORMS APPLICATION SERVICES R E K O G N I T I O N R E K O G N I T I O N V I D E O P O L L Y T R A N S C R I B E T R A N S L A T E C O M P R E H E N D L E X Amazon SageMaker Amazon Mechanical Turk FRAMEWORKS KERAS P3 NVIDIA Tesla V100 GPU accelerated for AI/ML training Machine Learning AMIs INFRASTRUCTURE & Greengrass ML Amazon Deep Learning AMIs Compute intensive instances for AI/ML Inference C5
  • 22. The AWS Machine Learning Stack PLATFORMS APPLICATION SERVICES R E K O G N I T I O N R E K O G N I T I O N V I D E O P O L L Y T R A N S C R I B E T R A N S L A T E C O M P R E H E N D L E X Amazon SageMaker Amazon Mechanical Turk FRAMEWORKS KERAS P3 NVIDIA Tesla V100 GPU accelerated for AI/ML training Machine Learning AMIs INFRASTRUCTURE & Greengrass ML Amazon Deep Learning AMIs Compute intensive instances for AI/ML Inference C5
  • 23. ML is still too complicated for everyday developers Collect and prepare training data Choose and optimize your ML algorithm Set up and manage environments for training Train and tune model (trial and error) Deploy model in production Scale and manage the production environment
  • 24. A managed service that provides the quickest and easiest way for data scientists and developers to get ML models from idea to production Amazon SageMaker
  • 25. Amazon SageMaker Collect and prepare training data Choose and optimize your ML algorithm Set up and manage environments for training Train and tune model (trial and error) Deploy model in production Scale and manage the production environment Easily build, train, and deploy machine learning models
  • 26. Amazon SageMaker Pre-built notebooks for common problems K-Means Clustering Principal Component Analysis Neural Topic Modelling Factorization Machines Linear Learner – Regression DeepAR Forecasting XGBoost Latent Dirichlet Allocation Image Classification Seq2Seq Linear Learner – Classification BlazingText Random Cut Forest ALGORITHMS Apache MXNet TensorFlow Caffe2, CNTK, PyTorch, Torch FRAMEWORKS S e t u p a n d m a n a g e e n v i r o n m e n t s f o r t r a i n i n g T r a i n a n d t u n e m o d e l ( t r i a l a n d e r r o r ) D e p l o y m o d e l i n p r o d u c t i o n S c a l e a n d m a n a g e t h e p r o d u c t i o n e n v i r o n m e n t Built-in, high- performance algorithms Build
  • 27. Pre-built notebooks for common problems Built-in, high- performance algorithms One-click training Hyperparameter optimization Build Train Deploy model in production Scale and manage the production environment Amazon SageMaker
  • 28. Fully managed hosting with auto- scaling One-click deployment Pre-built notebooks for common problems Built-in, high- performance algorithms One-click training Hyperparameter optimization Build Train Deploy Amazon SageMaker
  • 29. Amazon Sagemaker for Fraud Detection
  • 30. Model hosting (SM) Calculate features Reader Cleanser Processor Data Look-up Training Feature store Model training (SM) Model Client service Amazon EMR Real-time Fraud Detection in AWS with Amazon SageMaker
  • 31. • Training algorithm / inference code is packaged in a Docker image published on Amazon ECR • SageMaker pulls the training algorithm image from Amazon ECR into the Model Training Service • Amazon SM downloads or streams the training data and runs the training algorithm on the data. • After training, Amazon SM uploads model artifacts to Amazon S3 • For inference, Amazon SM pulls the model artifacts and the inference image from Amazon ECR, into the Model Hosting Service • Amazon SM exposes an inference endpoint for client applications to send prediction requests to check Fraud • Ground truth data collected from the client application could be sent into the training bucket to retrain and update the model Deploying a Model on Amazon SageMaker
  • 32. Linear Learner Regression: Estimate a real valued function Binary classification: Predict a 0/1 class
  • 33. Demo
  • 34. Resources: Demo Notebook: https://github.com/cyrusmvahid/sagemaker- demos/blob/master/credircard_fraud/linearlearner-blogpost- part2.ipynb Sagemaker Docs: https://docs.aws.amazon.com/sagemaker/latest/dg/how-it- works-training.html Kaggle Dataset: https://www.kaggle.com/mlg- ulb/creditcardfraud/