Scattered signals
Transaction velocity, unusual amounts, unfamiliar devices, locations and failed attempts can be difficult to interpret when reviewed in isolation.
Suspicious payment patterns, explained through evidence.
FraudLens is an experimental payment fraud detection and risk intelligence platform. It combines rule-based signals, statistical anomaly detection, supervised classification and AI-generated investigation summaries to help human reviewers understand which transactions may warrant further attention.
Each node is one layer of the investigation workflow.
Payment teams need to identify unusual transaction patterns without treating every outlier as fraud. Individual signals can be weak or misleading; reviewers need a way to inspect the evidence behind a risk assessment and understand the limitations of the models producing it.
Transaction velocity, unusual amounts, unfamiliar devices, locations and failed attempts can be difficult to interpret when reviewed in isolation.
Broad detection can flag legitimate activity alongside suspicious patterns. Reviewers need context, prioritisation and visibility into false positives.
A score alone does not tell an investigator which signals contributed, what remains unknown or what deserves human review.
I designed FraudLens as a layered decision-support workflow. Rather than relying on one detector, it combines transparent rules, statistical outlier detection and a supervised classifier into a consolidated experimental risk score.
Synthetic payment records with transaction amounts, velocity, device and location indicators, account age and failed-attempt counts.
Rules, Isolation Forest and logistic regression provide different views of potential risk. Their outputs are combined into one review-oriented score.
Reviewers can inspect the contributing evidence, model outputs, unknowns and an AI-generated investigation summary before making any decision.
The pipeline separates raw data, engineered features, detection, scoring and explanation so that an AI narrative does not replace the underlying evidence.
Synthetic payment records are generated with amount, merchant category, device, location and account-age fields.
Click any stage to inspect it.
Transparent conditions flag patterns such as high velocity, unusually large amounts, new devices, new locations and repeated failed attempts.
An unsupervised anomaly detector identifies statistically unusual feature combinations. An anomaly is not, by itself, evidence of fraud.
A supervised classifier learns from synthetic labels to produce a model score and classification. Its outputs depend on the quality and design of that dataset.
The current experiment uses 20,000 synthetic transactions, including 180 injected suspicious scenarios across six scenario types. These results describe this experiment; they are not a benchmark of production fraud detection.
The held-out test results demonstrate a high-sensitivity model with a substantial false-positive burden. Select a metric to see where it comes from.
| Metric | Result |
|---|---|
| Precision | 7.28% |
| Recall | 100% |
| F1 score | 13.57% |
| ROC-AUC | 98.14% |
Confusion matrix: 5,258 true negatives, 688 false positives, 0 false negatives and 54 true positives on the 6,000-record test split.
Because the suspicious labels were injected into synthetic data and may be strongly associated with engineered features, these metrics can overstate performance on real payment data. A production evaluation would require representative data, leakage checks, calibration and validation over time.
FraudLens turns model outputs into an investigation starting point. A high score prioritises attention; it does not establish intent, authorisation or guilt.
Example synthetic transaction · TXN-00001903-S
Select a signal to see the recorded value behind it.
Priority: URGENT_REVIEW
Recorded transaction attributes and the specific rule, anomaly and classifier outputs.
The combined score and each contributing signal, without presenting a model output as proof.
Whether the customer authorised the transaction, the transaction's purpose and any facts not contained in the supplied data.
Human-led review of the available evidence before any operational decision is made.
Fraud detection is a high-impact use case. I treated explainability, evidence boundaries and human oversight as product requirements rather than optional additions.
Investigation summaries must reflect supplied transaction attributes and model outputs, not invented explanations.
FraudLens does not autonomously block, decline, approve or reverse transactions.
The combined risk assessment remains connected to its rule signals, anomaly output and classifier score.
The prototype uses synthetic records rather than real customer payment data.
Anomaly scores, classifier probabilities and combined risk scores are described according to what they measure.
Results are presented with the limitations of injected labels, synthetic data and false positives in view.
I built a working prototype spanning data generation, feature engineering, risk detection, API development, a dashboard and evidence-grounded AI explanations.
Building FraudLens exposed an important distinction: detecting unusual patterns, predicting synthetic labels and establishing actual fraud are three different things.
The dataset cannot capture the full complexity, prevalence or evolving behaviour of real payment fraud.
The classifier's low precision means many normal transactions are flagged. Thresholds and operational costs need further evaluation.
The score is an experimental prioritisation signal, not a decision to accuse a customer or restrict a payment.
FraudLens is part of my exploration of how product thinking, data science and AI can improve payment operations and investigation workflows.