Machine learning for fraud detection uses patterns in data to estimate whether activity deserves attention. Instead of describing every suspicious combination in a separate rule, teams train or configure models to recognise relationships between signals. The result can support investigation, prioritisation or a payment decision.
The difficult part is not simply choosing an algorithm. Fraud labels can arrive late, legitimate behaviour changes and attackers adapt. A model that looks strong in a historical test may perform poorly if the test includes information unavailable at the time of the decision.
Understanding how models learn helps fraud teams ask better questions about the systems they rely on.
How machine learning differs from a rule
A rule expresses an explicit condition. For example, it might flag more than a specified number of payment attempts within a period. A supervised model learns relationships between input features and historical outcomes.
This can help when several weak signals become more meaningful together. A new device, an unusual beneficiary and a change in transaction timing may collectively suggest a higher level of risk even when none is decisive alone.
Rules still have value. They can express a clear policy, address a known pattern quickly or provide a fallback. Machine learning is useful when it contributes information that improves the decision beyond those controls.
Our existing introduction to how machine learning helps fraud detection provides the broader context. Here, the focus is how to evaluate the learning process and its outputs.
The main approaches to fraud modelling
Supervised learning
Supervised models learn from examples associated with outcomes, such as confirmed fraudulent and legitimate transactions. Common approaches include logistic regression, decision trees and ensembles such as gradient boosting.
The labels define what the model is learning. A chargeback is not always the same as confirmed fraud, and an unreported transaction is not necessarily legitimate. Teams need a documented label policy and an understanding of its limitations.
Unsupervised and anomaly detection methods
These methods look for structure or unusual observations without requiring the same type of labelled examples. They may help identify behaviour that differs from a customer’s history or a broader population.
Their output is usually a reason to investigate. Rare behaviour can be legitimate, so an anomaly score should not be treated as a direct probability of fraud without appropriate calibration and evidence.
Graph-based methods
Graph approaches represent relationships between entities such as accounts and beneficiaries. They can help expose patterns that are difficult to identify when each transaction is considered independently.
The BIS Project Aurora examined machine learning and network analysis in an AML proof of concept. Findings from synthetic data require validation in the intended operating environment.
Features translate activity into usable information

A model usually works with features rather than raw business meaning. Features might describe recent payment frequency, changes in average amount or connections with previously reviewed accounts.
Good features reflect the decision and the time at which it is made. A count of earlier transactions can be valid. A feature that incorporates a later investigation outcome cannot support a genuine real-time test.
Feature definitions should be consistent between training and production. If one system calculates a daily count in a different time zone, the live model may receive a different signal from the one it learned.
Missing values also carry meaning. An unavailable device identifier should not automatically be treated as a known safe device. The model and the wider policy need an intentional way to handle absent or unreliable inputs.
Why fraud datasets are difficult
Fraud is often much less common than legitimate activity. This class imbalance makes overall accuracy a weak measure. A system that labels every transaction legitimate can appear accurate while failing at its purpose.
Labels may also be delayed. A customer can report an unauthorised payment after the transaction has already entered a training dataset. Teams need a suitable observation period before treating outcomes as mature.
There is also selection bias. Transactions that were blocked or investigated are more visible than those that passed without review. The model may learn the behaviour of the existing control system as much as the behaviour of fraudsters.
These problems do not make modelling impossible. They make careful evaluation essential. A clear record of data selection and label construction helps the team interpret what the results really show.
Testing on the future rather than remembering the past

Randomly splitting transaction records can produce misleading results when related events appear in both training and testing. A model may effectively recognise an account or a repeated pattern it has already seen.
A time-based split is often a more realistic starting point: train on an earlier period and evaluate on later activity. Depending on the use case, teams may also need to prevent related entities or fraud campaigns from leaking across the split.
Keep feature generation within the same time boundary. It is not enough to split the rows correctly if a customer’s historical summary includes future activity.
Then test performance across relevant segments. New customers, low-volume accounts and new payment channels may have less historical information. A model that relies heavily on long histories needs a suitable approach for those cases.
Precision and recall in a simple example
Consider an illustrative test with 100 confirmed fraudulent transactions. A model flags 80 of them and also flags 120 legitimate transactions. Its recall is 80%, because it identifies 80 of the 100 known fraudulent transactions. Its precision is 40%, because 80 of the 200 flagged transactions are confirmed fraud.
These are hypothetical numbers, not Formica performance results. They show why both measures matter. The system detects much of the known fraud, but analysts still review more legitimate transactions than fraudulent ones.
Changing the decision threshold can alter that balance. A lower threshold may catch more fraud while increasing workload. A higher threshold may reduce unnecessary reviews while allowing more fraud through.
The right choice depends on the intervention, loss exposure and review capacity. There is no universal threshold that solves every fraud problem.
Explainability should support a useful question
An investigator needs to understand why a case deserves attention. Feature contributions and reason codes can help, but they should connect to evidence the reviewer can inspect.
For example, “unusual beneficiary relationship” is more useful when the analyst can see the relevant history. A numerical explanation without business context may be technically accurate but difficult to act on.
The Bank of England and FCA’s AI survey reports on explainability approaches used by financial firms. Explanation should be evaluated alongside performance and operational usefulness.
A reason code also does not prove causation. A feature may influence a score because it correlates with the training outcome, not because it causes fraud.
Monitoring models after deployment
Customer behaviour and attack patterns change. So do products, integrations and data sources. A model needs ongoing monitoring to determine whether its assumptions still hold.
Track input quality, score distributions and confirmed outcomes where available. Investigate segment-level changes and delays in outcome reporting. A sudden fall in alerts may reflect improved behaviour, but it may also reflect a broken feed.
Retraining should follow a controlled process. Compare a proposed version with the current model, test relevant weaknesses and define how to reverse the change. Models do not need to update themselves continuously to benefit from new evidence.
Analyst feedback should distinguish confirmed fraud, legitimate activity and unresolved cases. Treating every closed alert as a clean negative can teach the model the wrong lesson.
Connecting models with fraud operations
Machine learning becomes valuable when its output improves an actual workflow. A strong model with no clear response path may create another score for analysts to interpret rather than a better decision.
Formica AI Transaction Monitoring supports the combination of rules and AI. Evaluate that approach against your data, decision window and investigation process, and connect relevant session signals through account protection where appropriate.
The useful question is whether the model adds dependable information at the point your team needs it. Testing and ongoing review provide the answer.
Frequently asked questions
Which machine learning model is best for fraud detection?
There is no universal best model. Data quality, labels, latency, interpretability and the fraud problem should guide selection and testing.
Why is accuracy insufficient?
When fraud is rare, a model can be highly accurate by approving almost everything. Precision, recall and business outcomes provide more meaningful evidence.
Can anomaly detection work without fraud labels?
Yes, it can identify unusual activity. The organisation still needs to determine whether those anomalies are relevant and what action is justified.
Does a self-learning model update automatically?
Not necessarily. Learning can occur through controlled retraining. Production updates should follow the organisation’s validation and release process.


