# AI underwriting and fraud detection in lending
A 27-year-old freelancer with no credit card, a thin FICO file, and steady income from three gig platforms walks into a traditional bank and gets rejected in seconds. The same applicant applies to a digital lender and gets approved in under a minute, at a rate the bank could not offer. Nothing about the borrower changed. What changed is the data and the model reading it.
This lesson walks through both halves of modern lending intelligence: how AI decides who gets a loan (underwriting), and how AI stops criminals from stealing the money (fraud detection).
FICO is a credit score built mostly from your borrowing history: how much debt you carry, whether you pay on time, how long your accounts have been open. It works well for people with long credit histories. It works poorly for everyone else.
Roughly 45 to 50 million US adults are estimated to be "credit invisible" or "unscorable" by the Consumer Financial Protection Bureau, meaning they have too little history to generate a reliable score. Immigrants, young workers, and the self-employed dominate this group.
For a lender, a thin file is not the same as a bad borrower. It is just missing information. AI underwriting fills that gap.
Traditional underwriting used a scorecard: a simple points-based table where each attribute (income, debt ratio, delinquencies) adds or subtracts points. Transparent, but crude.
Digital lenders increasingly use gradient-boosted trees (models like XGBoost or LightGBM). These build hundreds of small decision trees in sequence, where each new tree corrects the errors of the last. The result captures nonlinear patterns a scorecard misses, for example, that a high debt ratio is fine if paired with stable multi-year income but risky if income is volatile.
The fuel is alternative data: signals beyond the credit bureau. Common examples:
Cash flow underwriting is now a recognized practice. The CFPB has publicly discussed cash flow data as a way to expand access to credit, and open banking rules finalized in the US are pushing consumer-permissioned data into the mainstream.
The model does not output "approve" or "deny." It outputs a probability of default (PD): the estimated chance the borrower fails to repay over a set window. The lender then combines PD with loan amount, term, and its own cost of capital to price the loan (risk-based pricing).
# Simplified: model gives PD, business logic decides price
pd = model.predict_proba(applicant_features)[0][1] # e.g. 0.06 = 6% default risk
if pd < 0.03:
decision, apr = "approve", 0.089
elif pd < 0.10:
decision, apr = "approve", 0.159 # priced up for higher risk
else:
decision, apr = "decline", NoneThe model estimates risk. Humans and policy set the thresholds and prices.
Here is where fintech differs from most AI applications. Under the US Equal Credit Opportunity Act (ECOA) and its rule Regulation B, a lender that denies credit must give the applicant specific reasons. "The algorithm said no" is illegal.
This creates a hard constraint: the model must be explainable. Teams use tools like SHAP (SHapley Additive exPlanations), which attributes a prediction to individual features, to generate the required adverse action notices ("declined due to: high recent credit utilization, short employment history").
Two more constraints matter:
The lesson: in lending, a slightly less accurate model that you can explain and defend often beats a black box you cannot.
🎬 [VIDEO: "Explainable AI with SHAP" — youtube.com — a clear walkthrough of how SHAP attributes a model's prediction to each input feature]
Underwriting asks "will this person repay?" Fraud detection asks "is this person even real, and is this transaction legitimate?" The two run at different speeds. Underwriting can take a minute. Fraud scoring must happen in milliseconds, before money moves.
Single-transaction rules ("flag any transfer over $5,000") catch clumsy fraud. Organized fraud rings evade them by spreading activity across many small accounts. To catch rings, you have to look at relationships, not just transactions.
Enter the transaction graph. Model every account as a node and every transfer, shared device, shared phone number, or shared bank as an edge. Fraud rings light up as dense clusters: fifty "different" applicants sharing three devices and funneling funds to one account.
Graph neural networks (GNNs) learn patterns over these structures. Instead of scoring an account in isolation, a GNN incorporates the behavior of its neighbors. An account that looks clean alone but sits one hop from ten known mule accounts gets flagged.
A simple pattern lenders watch for:
Fraud decisions happen inline. A typical flow:
1. Application or transaction arrives.
2. Features are pulled from a feature storefeature storeA centralised repository managing ML features, ensuring consistency between training and serving environments.View full definition → (precomputed signals kept fresh, like "device seen on 8 accounts this week").
3. A model returns a risk score in milliseconds.
4. Low score: proceed. Medium: step-up authentication (extra verification). High: block and review.
The graph is precomputed and updated continuously so the live decision stays fast. The tradeoff every fraud team manages: block too aggressively and you create false positives (blocking real customers, called "friction"), block too little and losses rise.
Knowledge check
1. Why does traditional FICO scoring leave a large population of borrowers effectively unserved?
2. In the lesson's opening example, the same applicant is rejected by a bank but approved by a digital lender. What is the key conceptual takeaway?
3. Why can gradient-boosted tree models outperform traditional scorecards in underwriting?
4. Select ALL correct answers describing characteristics of traditional scorecard underwriting.
Select all the correct answers.
5. Select ALL correct answers about the concept of 'alternative data' and thin-file borrowers in AI underwriting.
Select all the correct answers.
Trace one applicant through a modern digital lender:
1. Identity and fraud check first. Is this a real person? Does the device, email, and application pattern resemble a known ring? A GNN plus rules score this in real time. Fail here and underwriting never runs.
2. Data aggregation. With the applicant's permission, pull bank transaction history and verify income and employment.
3. Underwriting model. Gradient-boosted model outputs a probability of default from bureau data plus alternative data.
4. Pricing and policy. Convert PD into an approve/decline and a rate, respecting fair lending rules.
5. Explainability layer. Generate the adverse action reasons if declined, using SHAP or similar.
6. Ongoing monitoring. Watch for model drift (performance decay as the economy or borrower mix shifts) and for fraud rings adapting to the model.
Notice that AI appears at two very different points, doing two very different jobs, under two very different time budgets.