AI in Finance: Fraud Detection, Credit Scoring and More
November 18, 2026 · 10 min read

Every time you tap a card, a model decides in milliseconds whether the payment looks like you. AI in finance has powered fraud detection and credit decisions for years; in 2026 generative AI and agents joined them in customer service, compliance, back-office work and even payments made by AI on a customer's behalf. Adoption is now the norm rather than the exception, and regulators are paying close attention. This guide explains how banks, fintechs, insurers and payment companies use AI, with a closer look at fraud detection and credit scoring, a working SQL example, the risks and rules to manage, and practical advice for building AI into financial software.
How Widely AI Is Used in Financial Services
The Bank of England and the Financial Conduct Authority's 2026 survey of AI in UK financial services found that 86% of responding firms use AI, up from 75% in 2024, with operations the most common area of use and growing use of generative AI, agents and third-party AI services. Even among small firms, nearly three-quarters reported using AI. Similar trends appear in the US, Europe and Asia, where AI is embedded in payments, lending, insurance and wealth management.
Fraud Detection: AI's Biggest Win in Finance
Fraud detection is where AI has delivered the clearest value. Modern systems score every transaction in real time using hundreds of signals: amount, merchant, device, location, time, typing patterns and how this payment compares with the customer's normal behaviour. Graph models link accounts, devices and addresses to expose fraud rings that look innocent one transaction at a time.
The payment networks report striking results. Visa said its AI-powered systems blocked 144% more suspected fraud attempts over the 2025 Black Friday and Cyber Monday weekend than a year earlier, backed by billions of dollars of technology investment. Mastercard research found that 42% of card issuers had saved more than $5 million in fraud attempts over two years thanks to AI. The threat is growing too: Deloitte has estimated that generative AI could push US fraud losses to $40 billion by 2027, up from $12.3 billion in 2023, as criminals use voice clones, deepfake videos and convincing phishing at scale. In one widely reported case in early 2024, an employee of engineering firm Arup transferred about $25 million after a video call with deepfaked "colleagues". Our guides to AI-powered cyber attacks and voice AI explain why verification must never rely on how someone looks or sounds.
Catching fraud is only half the job. Every legitimate payment that gets declined is a frustrated customer and lost revenue, so good systems are judged on false positives as well as fraud caught. AI helps on both sides because it can recognise that an unusual purchase still fits a customer's broader pattern, such as a holiday booking followed by spending abroad.
Example: Fraud Features in SQL
Machine learning models are only as good as their features. Many fraud signals are simple aggregates you can compute in the database you already run. This query, written to work in MySQL 8 (and SQLite for testing), calculates each transaction's velocity (payments in the previous hour), the account's average amount over 30 days and whether the country is new, then applies starter rules that route suspicious payments to review:
-- Fraud features with plain SQL (works in MySQL 8 and SQLite).
-- created_at is stored as a Unix timestamp in seconds to keep the maths portable.
CREATE TABLE transactions (
id INT PRIMARY KEY,
account_id INT NOT NULL,
amount DECIMAL(10, 2) NOT NULL,
country CHAR(2) NOT NULL,
created_at INT NOT NULL
);
CREATE INDEX idx_account_time ON transactions (account_id, created_at);
SELECT f.*,
CASE
WHEN f.txns_last_hour >= 3 THEN 'review: velocity'
WHEN f.avg_amount_30d IS NOT NULL AND f.amount > 5 * f.avg_amount_30d THEN 'review: amount'
WHEN f.new_country = 1 AND f.avg_amount_30d IS NOT NULL THEN 'review: new country'
ELSE 'ok'
END AS decision
FROM (
SELECT t.id, t.account_id, t.amount,
(SELECT COUNT(*) FROM transactions p
WHERE p.account_id = t.account_id
AND p.created_at >= t.created_at - 3600
AND p.created_at < t.created_at) AS txns_last_hour,
(SELECT ROUND(AVG(p.amount), 2) FROM transactions p
WHERE p.account_id = t.account_id
AND p.created_at >= t.created_at - 2592000
AND p.created_at < t.created_at) AS avg_amount_30d,
CASE WHEN EXISTS (SELECT 1 FROM transactions p
WHERE p.account_id = t.account_id AND p.country = t.country
AND p.created_at >= t.created_at - 2592000
AND p.created_at < t.created_at) THEN 0 ELSE 1 END AS new_country
FROM transactions t
) AS f
ORDER BY f.id;
On our test data of nine transactions, it flags a $900 payment that is more than five times the account's 30-day average, a payment from a new country minutes after the previous one, and a fourth payment within an hour on another account, while letting normal activity through. In production, the same features feed a trained model rather than fixed rules, calculations run in a streaming system or feature store for real-time scoring, and every decision is logged for analysts. Rules are still valuable as a transparent safety net alongside the model.
Credit Scoring and Lending
Most AI credit models in production are not chatbots but machine learning models, such as gradient-boosted decision trees, trained on past applications and repayment outcomes. Explainability tools then estimate which factors pushed each decision up or down, so lenders can give reasons and spot suspicious patterns. Generative AI plays a supporting role: summarising applications, extracting figures from bank statements and payslips, and drafting letters, while the scoring itself stays in models that can be validated and explained.
AI credit models use more data and more complex patterns than traditional scorecards, for example cash-flow data from bank accounts (with consent), which can help people with thin credit histories. They also raise hard questions:
- Explainability: in the US, fair lending law (the Equal Credit Opportunity Act and Regulation B) requires lenders to give specific reasons when they deny credit, and regulators have stressed that complex models do not remove that duty.
- Fairness: models can reproduce historic discrimination through proxies such as postcode, so test outcomes across groups before and after launch.
- High-risk status in the EU: AI used to evaluate creditworthiness or set credit scores, and to price life and health insurance, is high-risk under the AI Act, with obligations applying from 2 December 2027, as explained in our EU AI Act compliance checklist.
More Ways AI Is Used in Finance
- Customer service assistants that answer account questions, explain fees and handle simple requests, with careful limits on what they may say or do.
- KYC and onboarding: reading identity documents, matching selfies and checking sanctions and politically exposed person lists.
- Anti-money laundering: transaction monitoring that prioritises alerts and drafts case summaries for investigators.
- Insurance: triaging claims, assessing damage photos and detecting suspicious claims.
- Back-office automation: invoice processing, reconciliation and reporting, often with workflow tools like those in our n8n automation guide.
- Research and advice: summarising filings and earnings calls for analysts and supporting advisers with client preparation.
- Agentic payments: card networks and payment providers launched frameworks in 2025 that let AI agents make purchases on a customer's behalf within set limits, a fast-moving area with new security and liability questions.
How to Measure the Value of AI in Finance
Financial AI projects should be judged on business and risk metrics, not model accuracy alone. Useful measures include fraud losses as a share of transaction volume, false-positive rates and the number of genuine customers declined, approval rates and default rates for lending, time from application to decision, hours of manual review saved in KYC and AML teams, and customer satisfaction after AI-assisted interactions. Track them against a baseline period and by customer segment, and include the cost of running and governing the models. A model that catches slightly less fraud but declines far fewer good customers can be worth more than a stricter one.
A 90-Day Plan for Financial Firms
- Days 1 to 30: inventory existing models and AI tools, classify their risk, and pick one high-value, lower-risk use case such as document processing or alert summarisation.
- Days 31 to 60: build a pilot with human review, full logging and a clear success metric; involve compliance and security from the start rather than at sign-off.
- Days 61 to 90: measure results against the baseline, document the model and its controls for your model risk process, and decide whether to scale, adjust or stop.
Repeat the cycle for the next use case, reusing the governance, data pipelines and monitoring you have already built.
Risks and Regulation
Financial services are among the most regulated users of AI, and the rules are mostly technology-neutral: if a model makes or influences a decision, the firm is accountable for it. Key frameworks include model risk management expectations (such as US supervisory guidance on model validation and governance), the EU AI Act for high-risk uses, the Digital Operational Resilience Act for ICT and third-party risk in EU finance, the GDPR for personal data, and consumer protection rules such as the UK FCA's Consumer Duty. The BoE and FCA survey also highlighted concentration risk: many firms depend on a handful of cloud and model providers.
Generative AI adds its own risks: invented answers in customer chats, leaks of confidential data through prompts, and prompt injection attacks on assistants connected to accounts. Apply the controls in our guides to AI guardrails and LLM evaluation, and never let a model move money without strong authentication and limits.
Building AI Into Financial Software
- Start with data quality: clean, well-labelled transaction and outcome data matters more than model choice.
- Design for real time: fraud decisions need answers in milliseconds, so plan streaming pipelines, caching and fallbacks if a model is unavailable.
- Keep humans in the loop: review queues for flagged payments, overrides for credit decisions and clear escalation paths.
- Log everything: inputs, model versions, scores, reasons and overrides, so you can explain any decision to a customer or regulator.
- Test for fairness and drift: monitor performance by customer group and over time, and retrain when behaviour changes.
- Secure the pipeline: encryption, least-privilege access and regular reviews, following our API security best practices and an application security audit.
Our guide to fintech app development covers the broader build, and our companion articles on AI in healthcare and AI in education show how other regulated sectors approach the same challenges.
Frequently Asked Questions
How is AI used in finance?
For fraud detection, credit scoring, anti-money laundering, customer service, onboarding and identity checks, insurance claims, back-office automation, research and, increasingly, payments initiated by AI agents.
How does AI detect fraud?
It scores each transaction against the customer's normal behaviour and known fraud patterns using signals such as amount, merchant, device, location and velocity, and flags or blocks unusual payments in real time.
Is AI credit scoring legal?
Yes, but it is regulated. Lenders must be able to explain adverse decisions, avoid discrimination and, in the EU, meet high-risk AI requirements for creditworthiness assessments.
Can generative AI give financial advice?
Providing regulated financial advice requires authorisation and suitability checks. Firms use generative AI mainly to support advisers and answer general questions, with strict limits and human oversight.
What are the biggest risks of AI in finance?
Biased or unexplainable decisions, model errors and drift, data leaks, dependence on a few providers, and criminals using AI for deepfake and phishing fraud.
How much do financial firms use AI?
Widely. A 2026 Bank of England and FCA survey found 86% of responding UK financial firms using AI, up from 75% in 2024.
Build Secure, Compliant FinTech With AI
We build financial software with fraud controls, explainable decisions, audit trails and security designed in from the start, from payment apps to back-office automation. Contact our team to discuss your fintech or financial services project.