The client is described by industry and scale, without a name. KPI figures are targets agreed with the client after a baseline measurement.
In brief
- Problem
- Static rules generate many false alarms and at the same time let new fraud patterns through.
- Approach
- We combine the existing rules with a machine learning model based on customer behavior (device, time of day, new payee, session pace).
- Goal
- Model quality on validation data (e.g. AUC, precision): threshold agreed with the business before training; False alarm rate: a reduction against the current rules, target set in phase 1.
Client context
The Polish banking sector is highly digitized and at the same time operates under strict supervision by the KNF (Polish Financial Supervision Authority). Every change to a system used by customers must go through change control, testing and an acceptance process that can be shown to an auditor. The client is a retail bank facing a growing number of "bank employee" scams and account takeovers in which the customer authorizes the transfer themselves.
Challenge
Static rules generate many false alarms and at the same time let new fraud patterns through. Instant transfers leave no time for manual verification: the decision has to be made in a fraction of a second.
Requirements and constraints
- The AI Act, Regulation (EU) 2024/1689, introduces obligations that depend on the risk category of the AI system: transparency toward users, human oversight, technical documentation and event logging. Systems that affect creditworthiness or employment may fall into the high-risk category. (source)
- PSD2 and the RTS on strong customer authentication (SCA) require strong customer authentication, secure interfaces for third-party providers (TPPs) and transaction monitoring for fraud. Every change to a payment path requires tests of SCA exemptions and of API availability compliance. (source)
- The Polish Anti-Money Laundering Act (AML) imposes an obligation to apply financial security measures, monitor transactions and report to the GIIF (Polish Financial Intelligence Unit). Rules and scoring models must be explainable and versioned, and every threshold change documented. (source)
- GDPR, Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, processing agreements and, for high-risk processing, an impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
- DORA, the Digital Operational Resilience Act (Regulation (EU) 2022/2554), requires ICT risk management, a register of contracts with ICT providers, classification and reporting of major incidents, and regular testing of operational resilience. For the project this means every new component needs an owner, a dependency map and a resilience test scenario, and the provider (including us) goes into the register of information on contractual arrangements. (source)
- Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, every deliverable handed over with documentation the client's team can take over.
Approach and architecture
We start an AI project with the business question and the cost of error: what happens when the model is wrong in one direction or the other. Only then do we choose the method. A simpler, explainable model often beats a deep network. We work in an MLOps cycle: versioning of data and models, validation on data from a different period than training, drift monitoring and a path for rolling the model back to rules.
We combine the existing rules with a machine learning model based on customer behavior (device, time of day, new payee, session pace). The model does not block on its own: it returns a risk score, and the decision policy (hold, step-up verification, allow) stays in the bank's hands. Explanations for every decision (SHAP) go to the fraud analysts.
Key elements of the solution:
- Stream of session and transaction events (Kafka)
- Features computed online in a feature store
- Gradient boosting model with explanations
- Decision engine with rules and thresholds managed by the bank
- Drift monitoring and a label loop from complaint handling
Team and roles
| Role | Count | Responsibility |
|---|---|---|
| Data scientist | 2 | models, validation, explainability |
| MLOps engineer | 1 | model deployment, drift monitoring, versioning |
| Data engineer | 1 | pipelines, data model, data quality tests |
| Business analyst | 1 | requirements, processes, acceptance criteria |
| Project manager | 1 | plan, budget, risks, communication with the steering committee |
| Product owner and domain experts (client side) | as needed | priorities, business decisions, acceptance |
Phased schedule
| Phase | Weeks | Deliverable |
|---|---|---|
| 1. Problem and data definition | 1–3 | problem card, data analysis |
| 2. Prototype and offline evaluation | 4–8 | baseline model, metrics |
| 3. Pilot with users | 9–13 | pilot, evaluation report |
| 4. Production and MLOps | 14–18 | pipeline, monitoring, documentation |
| 5. Review and roadmap | 19–20 | report, backlog |
Technology stack
Python, LightGBM, Feast, Kafka, MLflow, Evidently, Kubernetes.
Risks and how we mitigate them
| Risk | How we mitigate it |
|---|---|
| Data drift and declining model quality | distribution monitoring, alerts, periodic validation and a path back to rules |
| Model bias toward groups of customers | fairness analysis on the validation set, exclusion of sensitive features, review by the compliance function |
| No test data free of personal data | synthetic data generator and masking that preserves referential integrity; no copying production into test |
Measurable goals and KPIs
The values below are targets that we set with the client after a baseline measurement in the first phase.
| KPI | Target | How it is measured |
|---|---|---|
| Model quality on validation data (e.g. AUC, precision) | threshold agreed with the business before training | out-of-time validation |
| False alarm rate | a reduction against the current rules, target set in phase 1 | alert review by analysts |
| API p99 latency | ≤ 300 ms | APM |
Lessons learned and good practices
In fraud, the most valuable features describe the session context, not the transaction itself. Without a label loop from complaint handling, a model ages faster than fraud patterns change. A simple model that works in production is worth more than the best model in a notebook.
Why DYNAMINDS Labs
DYNAMINDS Labs is the R&D division of B2B.net S.A. On the Elevate platform, our external IT department model, we deploy AI Workers that organize data and take over repetitive work. Each step is a separate ticket with a price and a deadline within 24 hours, and payment follows acceptance. The diagnosis is free.
Next step
Submit your first request in Elevate in your own words. You will get a price and a deadline within 24 hours, and you pay after acceptance. Contact: office@b2bnetwork.pl.
Start with one task.
Describe it in your own words. We start with a free diagnosis and reply within 24 hours.
Meet DYNAMINDS LabsB2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.