Member-only story
Detection of Credit Card Fraud with an Autoencoder
A guide for the implementation of an anomaly detector
Do you want to know how to create an anomaly detector using Python and TensorFlow? Then this article is for you. Credit card companies use anomaly detectors to detect fraudulent transactions. It is important to identify fraudulent transactions so that customers do not have to pay for something they did not buy.
Many credit card transactions take place every day, but very few transactions are fraudulent. The fraudulent transactions are anomalies. The article presents an implementation of an autoencoder model to detect these fraudulent transactions. First, we define an anomaly and introduce different types of anomalies. Then we describe the implementation of the anomaly detector for credit card fraud detection. Let’s begin!
Anomaly detection in general
An anomaly detection algorithm identifies novel and unexpected structures in acquired datasets. There are many definitions of an anomaly in the literature. We derive a definition for our use case.
Anomaly definition
Chandola et al [1] describe anomalies as patterns in data that do not conform to a well-defined notion of normal behaviour. Another widely used definition…