You tap a card at a petrol station in a town you have never visited. Between the tap and the beep, which is about half a second, the payment has travelled from the terminal to the shop's bank, across a card network to your own bank and back again. Somewhere on that journey a model looked at it and produced a number: the probability that the person holding the card is not you.

If the number is low, the payment is approved. If it is high, it is refused. In between, you may be asked for a code. This happens for every card transaction in the world, tens of thousands of times a second.

What the model sees

It sees more than the amount. A typical fraud system considers several kinds of information about each payment.

The transaction itself. Amount, currency, time of day, type of merchant, country, whether the card was physically present, whether the chip or the magnetic stripe was read.

Your history. What you usually spend, where, how often, at what kinds of shop. The system keeps a running profile of each cardholder.

Velocity. How many transactions in the past minute, hour and day. Fraudsters who obtain card details tend to use them fast, before the card is stopped.

The device and location, for online payments. Whether this phone or computer has been seen with this card before, where the internet connection appears to be, whether the delivery address is new.

The merchant. Whether this shop or website has recently been the scene of other fraud.

Out of these come hundreds of calculated features: how far the amount departs from your average, the distance from your last transaction divided by the time since it, the number of different merchants in the past hour.

The classic patterns

Certain sequences are so typical that they have names.

Card testing. A very small payment, often for a trivial sum to a charity or a digital service, followed minutes later by a large one. The criminal is checking that the stolen details work.

Impossible travel. A purchase in one country and, an hour later, a purchase with the physical card on another continent.

The sudden change of character. A card used for years at supermarkets and a pharmacy abruptly buys electronics and gift cards, which are easy to resell.

Early fraud systems were lists of rules written by analysts to catch these. Rules are still used, because they are easy to explain and quick to change. But criminals learn where the thresholds are, so rules are now combined with models that learn from data.

How the model learns

The bank has an enormous record of past transactions, some of which were later reported as fraudulent. A machine-learning model is trained to distinguish the two groups from their features.

Three things make this harder than most prediction problems.

Fraud is rare. Well under one transaction in a thousand is fraudulent. A model that approved everything would be right more than 99.9 per cent of the time and worthless.

The labels arrive late. A fraud is confirmed only when the customer notices and complains, which may be weeks afterwards. The model is always learning from a slightly out-of-date picture.

The opponent adapts. In most fields, the thing being predicted does not change its behaviour to defeat the prediction. Fraudsters do. A pattern that worked last quarter is abandoned as soon as it stops paying.

Banks therefore retrain their models frequently and also run systems that look for anything unusual, whether or not it resembles known fraud.

Why honest payments are blocked

Every model of this kind makes two sorts of error. It lets some fraud through, and it stops some legitimate payments. The second is called a false decline, and anyone who travels has met one.

Because fraud is so rare, the arithmetic is unforgiving. Even a very good model, set to catch most fraud, will flag far more genuine transactions than fraudulent ones. Industry estimates have long suggested that the value of legitimate sales wrongly declined exceeds the value of fraud itself, several times over.

The bank chooses where to set the threshold, and the costs on either side are unequal. If it approves a fraudulent card payment, the bank or the merchant usually bears the loss. If it declines a genuine one, the customer is inconvenienced and embarrassed, and may reach for another bank's card and keep using it. Banks watch that second cost closely.

This is why the middle course has become common: a text message or a prompt in the banking app asking whether the payment is yours. In Europe, rules introduced from 2019 require a second factor for many online payments, such as a code or a fingerprint, with exemptions for transactions the bank judges to be low risk. That judgement is the model again.

What you can do about declines

Not very much, though a few things help.

  • Keep your phone number and email up to date with the bank, so that a query can reach you.
  • Install the bank's app and allow its notifications. Confirming a payment there takes seconds.
  • Most banks no longer need to be told about travel, because the models cope. Some still offer the option. Use it if they do.
  • Carry a second card from a different issuer when travelling.

The fraud the model cannot see

Here the picture has changed in recent years, and it matters more than anything above.

The systems described are designed to detect a stranger using your details. They are much weaker against fraud in which you make the payment yourself, having been deceived. This is called authorised push payment fraud, and in several countries it now accounts for losses on a similar scale to card fraud.

The forms vary. A caller says he is from your bank's security team: your account has been compromised and you must move your money to a "safe account" at once. An email that appears to come from your builder or solicitor gives new bank details for an invoice. A text message from a "child" with a new phone number asks for help with an urgent bill. An investment with remarkable returns needs a first deposit. A relationship that began online reaches the point where money is required.

From the bank's side, these payments look legitimate. The right person logged in, from their usual device, passed every check and sent the money. Models can pick up some signals: a first payment to a new recipient, an unusually large amount, an account that has received money from many victims. Banks increasingly interrupt such payments with a warning or a delay. But the customer, who is being coached by the criminal, often clicks through.

Rules worth keeping

The defence here is behavioural, and a few rules cover most cases.

  1. Your bank will never ask you to move money to keep it safe. Not by phone, text or email. Nor will the police or the tax authority.
  2. Urgency is the warning sign. Every one of these frauds depends on your acting before you think. A genuine problem can wait ten minutes.
  3. Hang up and call back on the number printed on your card, ideally from a different phone. Caller display can be faked.
  4. Check changed bank details by voice, using a number you already hold, before paying any invoice to a new account.
  5. Never share a one-time code. It exists to authorise something. Whoever asks for it is the one doing the authorising.
  6. Take the bank's warning screens seriously. If the app asks whether someone told you to make this payment, that is the model saying the transaction resembles a known fraud.

If it happens, tell the bank at once. Speed matters, because stolen money is moved on within minutes. Rules on reimbursement differ between countries and are changing. Ask what applies to you.

A balanced view

The fraud systems on card payments are one of the quiet successes of applied statistics. Fraud as a share of card spending is small and has been held down for years despite huge growth in online payments.

The consequence is that the weakest point is no longer the card or the bank's systems but the account holder, and criminals have moved their attention accordingly. The bank's model handles strangers who use your card. Against a persuasive caller who wants you to send the money yourself, the defence has to come from you.

General information, not financial or legal advice. Protections vary by country and provider. Socibank is an editorial site and not a bank.