Fraud detection

Fraud detection is the use of rules, statistics and machine learning to spot fraudulent transactions, claims, accounts or identities, ideally before money is lost.

Every time a card is used, a bank or payment network has a fraction of a second to decide whether to approve it. Fraud detection systems make that call by scoring each transaction for risk. Older systems used rules written by experts, such as flagging a large purchase in a new country. Modern systems add statistical and machine learning models that weigh hundreds of signals at once: the amount, the merchant, the device, the time, and how all of these compare with the customer's usual behaviour.

Two families of methods do most of the work. Supervised models learn from past transactions labelled as fraud or genuine, and score new ones by how much they resemble known fraud. Unsupervised methods need no labels: they look for anything unusual, such as an account that suddenly stops behaving like similar accounts. Supervised models catch fraud that looks like past fraud; unsupervised ones matter because they can flag schemes nobody has labelled yet. Link analysis adds a third view, connecting accounts, devices and addresses to known fraudsters.

Fraud is rare, which makes the maths tricky. A widely used research dataset of card payments, released by Worldline and the Université Libre de Bruxelles, contains 492 frauds among 284,807 transactions, about 0.17 per cent. A model that labels every transaction genuine would be more than 99.8 per cent accurate and completely useless. So teams measure precision, the share of flagged transactions that really are fraud, and recall, the share of fraud that gets caught, and set the alert threshold according to the cost of each kind of mistake.

Both kinds of mistake cost money. A missed fraud is a direct loss; a false alarm blocks a genuine customer and may lose the sale. Payment networks now promote AI tools aimed at both. In May 2024 Visa announced a scoring tool that uses generative AI components to spot card-testing attacks, in which criminals use automated scripts to try card details at scale; Visa said it was trained on more than 15 billion transactions and cut false positives by 85 per cent compared with other risk models. Visa also said it had blocked $40 billion of suspected fraud in its 2023 financial year.

Fraud detection is a contest that never ends. When a model gets good at catching one scheme, criminals switch to another, so systems need regular retraining and human analysts who investigate alerts and feed the results back. A model's score is a probability, not a verdict, and in most organisations people still make the final call on cases that matter.

Common questions

How does AI detect fraud?

Machine learning models score each transaction or claim by comparing it with patterns in past data. Supervised models learn what known fraud looks like, while anomaly detection flags anything unusual for a given customer or group. High scores lead to a block, an extra check such as a one-time code, or a review by an analyst.

Why is accuracy a poor measure for fraud detection?

Because fraud is so rare. In one widely used card dataset only about 0.17 per cent of transactions are fraudulent, so a model that never flags anything scores over 99.8 per cent accuracy while catching no fraud. Precision and recall show how many alerts are real and how much fraud is caught.

What is a false positive in fraud detection?

A false positive is a genuine transaction or customer wrongly flagged as fraud. It annoys customers, loses sales and wastes analysts' time, so fraud teams balance it against the losses from fraud that gets through.

What is the difference between supervised and unsupervised fraud detection?

Supervised detection trains on past cases labelled as fraud or genuine and is good at catching familiar schemes. Unsupervised detection needs no labels and looks for unusual behaviour, which helps catch new schemes that have never been labelled. Most systems use both.

Finding more

Search for "fraud detection machine learning", "imbalanced classification fraud" or "card testing attacks" for how the methods work. Reliable sources include machine learning course material on imbalanced data, academic surveys of fraud analytics, and reports from payment networks and financial regulators. Treat vendors' figures on fraud stopped and false positives reduced as claims about their own products unless an independent party has checked them.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.