Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Detection of Credit Card Fraud with an Autoencoder

10 min readJun 1, 2023

--

Detection of Credit Card Fraud with an Autoencoder
Photo by Christiann Koepke on Unsplash

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…

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Janik and Patrick Tinz
Janik and Patrick Tinz

Written by Janik and Patrick Tinz

Data Scientists | Artificial Intelligence and Software Engineering | Get our FREE data science cheat sheets: tinztwinshub.com/blog/