Skip to content

Risk Engine Platform

The Acme Financial Services Risk Engine is the centralized decisioning platform responsible for credit scoring, fraud detection, and anti-money laundering (AML) screening across all lending and deposit products. The platform processes over 1.2 million transactions daily with sub-100ms latency requirements for real-time fraud screening and delivers credit decisions within 2 seconds end-to-end.

ComponentTechnologyVersionPurpose
API LayerFastAPI0.104Async REST endpoints for risk decisioning
RuntimePython3.11.7Core application runtime
Primary DatabasePostgreSQL15.4Feature store, model metadata, decision logs
Message BrokerKafka3.6Event streaming for real-time feature computation
ML PlatformMLflow2.10Experiment tracking, model registry, serving
Feature ProcessingApache Spark3.5Batch feature engineering pipelines
Stream ProcessingKafka Streams3.6Real-time velocity and behavioral features
Container OrchestrationAKS1.28Kubernetes cluster (prod-risk-aks-eastus2)
MonitoringDatadog—APM, custom metrics, SLO dashboards

The Risk Engine team comprises 25 engineers organized into the following functional groups:

RoleHeadcountResponsibilities
ML Engineers8Model development, training pipelines, feature engineering, model validation
Backend Engineers7API development, system integration, performance optimization, infrastructure
Data Engineers5Data pipelines, feature store, batch processing, data quality monitoring
QA Engineers3Integration testing, regression suites, performance testing, chaos engineering
Model Validators2Independent model validation, regulatory compliance, backtesting, documentation

Service Tier: Tier 1 — 99.95% availability SLA, 24/7 on-call rotation, 15-minute incident response.


The production credit scoring model uses XGBoost (gradient boosted decision trees) trained on 10 years of historical loan performance data encompassing approximately 5 million loan observations. The model is retrained on a quarterly cadence with monthly monitoring checkpoints to detect performance degradation.

Training infrastructure runs on dedicated AKS node pools with GPU-enabled VMs (Standard_NC6s_v3) for hyperparameter optimization. The champion model is served via MLflow Model Serving behind the FastAPI gateway.

The model ingests approximately 180 features organized into the following categories:

CategoryFeature CountExamplesSource
Credit History42Payment history, delinquency counts, oldest account age, inquiries (6mo/12mo), utilization trendBureau (Experian, TransUnion, Equifax)
Income & Employment28Gross income, net income, employment tenure, income stability index, employer verification statusApplication, payroll verification, IRS 4506-C
Debt Obligations31DTI ratio, revolving balance, installment balance, mortgage payment, contingent liabilitiesBureau, application
Assets & Collateral22Liquid assets, retirement accounts, real estate equity, LTV ratio, collateral valuation deltaApplication, appraisal, account aggregation
Application Attributes18Loan purpose, requested amount, term, channel (branch/digital/partner), time-on-pageApplication system
Behavioral39Transaction velocity, deposit patterns, account tenure, product cross-sell depth, digital engagement scoreCore banking, digital analytics

Each credit scoring request returns a structured decision payload:

  • Credit Score: Normalized score on a 300–850 scale, mapped to internal risk grades (A1–E5)
  • Probability of Default (PD): Calibrated 12-month default probability expressed as a percentage
  • Risk Drivers: Top 5 contributing factors ranked by SHAP importance values, with consumer-friendly reason codes (per FCRA adverse action requirements)
  • Decision: Approve, refer, decline, or counteroffer with recommended terms

All credit models comply with the Equal Credit Opportunity Act (ECOA) and Regulation B requirements:

  • Prohibited Variables: Race, color, religion, national origin, sex, marital status, age (except as permitted by ECOA), and public assistance status are excluded from model inputs and feature derivation.
  • Disparate Impact Testing: Quarterly adverse impact ratio analysis across all protected classes. Models must demonstrate that any observed disparities are justified by legitimate business necessity and that no less discriminatory alternative achieves comparable predictive performance.
  • Fair Lending Review Board: New models and material changes require sign-off from the Fair Lending Officer, Chief Risk Officer, and Legal Counsel before production deployment.
  • Adverse Action Notices: Automated generation of reason codes mapped to FCRA-compliant explanations, delivered within 30 days of adverse decision.

The fraud detection subsystem operates as a real-time scoring pipeline with strict latency requirements of under 100 milliseconds per transaction. The system processes over 1.2 million transactions daily across all channels (ACH, wire, card-present, card-not-present, P2P, mobile deposit).

The scoring architecture uses a two-layer ensemble approach:

  1. Rule Engine: Approximately 200 deterministic rules maintained by the Financial Crimes Unit. Rules cover velocity checks, geographic anomalies, known fraud patterns, device fingerprinting mismatches, and merchant category restrictions. Rules are versioned in Git and deployed via CI/CD with a mandatory 48-hour staging validation period.

  2. ML Layer — Isolation Forest: An unsupervised anomaly detection model trained on 18 months of transaction data. The model identifies outlier transactions based on deviation from established customer behavioral profiles. Retrained monthly with weekly monitoring.

The ensemble scoring function combines rule engine flags and ML anomaly scores using a weighted aggregation, calibrated to produce a unified fraud probability score (0–100).

Score RangeRisk LevelActionSLA
0–30LowLog and pass — no analyst review requiredN/A
31–60MediumQueue for batch review — next business day analyst triage24 hours
61–80HighReal-time alert — immediate analyst review, transaction held pending decision2 hours
81–100CriticalAuto-block transaction, push alert to senior analyst and team lead, customer contact initiated30 minutes

Fraud analysts interact with flagged transactions through the Fraud Operations Console (internal React application). The workflow proceeds as follows:

  1. Case Assignment: Alerts are routed based on transaction type, dollar amount, and analyst specialization. Load balancing ensures equitable distribution across the 14-person analyst team.
  2. Investigation: Analyst reviews transaction context, customer history, device telemetry, and behavioral patterns. The console surfaces related alerts and historical cases for the same customer or counterparty.
  3. Disposition: Analyst marks the case as confirmed fraud, false positive, or escalation (to BSA/AML team if suspicious activity indicators are present).
  4. Feedback Loop: Disposition labels are fed back into the ML training pipeline to continuously improve model accuracy.
MetricTargetCurrent (Q4 2024)
True Positive Rate (TPR)> 92%94.1%
False Positive Rate (FPR)< 3%2.4%
P95 Latency< 100ms67ms
Mean Time to Disposition (High)< 2 hours1.3 hours
Model AUC-ROC> 0.950.967

The platform integrates with Refinitiv World-Check One for comprehensive sanctions and watchlist screening. Screening occurs at the following touchpoints:

  • Customer onboarding (CIP/KYC)
  • Wire transfers (originator and beneficiary)
  • ACH origination (batch pre-screening)
  • Periodic rescreening (daily delta, full portfolio quarterly)

Watchlist coverage includes:

ListSourceUpdate Frequency
OFAC SDN / SSI / Non-SDNU.S. TreasuryDaily
EU Consolidated SanctionsEuropean CommissionDaily
PEP DatabaseRefinitivContinuous
Adverse MediaRefinitivContinuous
UN Security CouncilUnited NationsAs published
HMT (UK)HM TreasuryDaily

The AML transaction monitoring system analyzes customer activity patterns to detect behaviors indicative of money laundering, terrorist financing, or other financial crimes:

  • Structuring Detection: Identification of transactions structured to evade the $10,000 CTR reporting threshold. Pattern analysis across rolling 1-day, 7-day, and 30-day windows per customer.
  • Layering Detection: Complex fund movement patterns involving rapid transfers between accounts, jurisdictions, or institutions designed to obscure the origin of funds.
  • Geographic Risk Scoring: Transactions involving FATF-identified high-risk and non-cooperative jurisdictions receive elevated scrutiny. Country risk scores are updated quarterly per FATF mutual evaluation results.
  • Unusual Activity Profiles: Deviation from established customer baseline activity using statistical z-score and peer group comparison models.
FilingTriggerDeadlineDestination
Currency Transaction Report (CTR)Cash transactions > $10,000 (aggregate daily)15 calendar daysFinCEN via BSA E-Filing
Suspicious Activity Report (SAR)Suspicious transactions ≥ $5,000 (or $2,000 for insider abuse)30 calendar days from detectionFinCEN via BSA E-Filing

All AML records, including screening results, investigation notes, and filed reports, are retained for a minimum of 5 years from the date of filing per BSA/AML record retention requirements (31 CFR § 1010.430).


The Risk Engine uses MLflow as the centralized ML lifecycle management platform:

  • Experiment Tracking: All training runs log hyperparameters, metrics (AUC, KS statistic, Gini coefficient, PSI), and artifacts. Experiments are organized by model type and business use case.
  • Model Versioning: Every trained model artifact is versioned with full reproducibility metadata including training data snapshot hash, feature schema version, and Python dependency lockfile.
  • Model Registry: Production models are promoted through a staged registry workflow: None → Staging → Production → Archived. Stage transitions require approval from the model owner and an independent validator.

New model versions are deployed as challenger models running in shadow mode alongside the production champion. The challenger receives live traffic for scoring but its decisions are not actioned. After a minimum 30-day observation period, performance comparison determines whether the challenger is promoted:

  • Statistical significance testing (two-sided KS test, p < 0.01)
  • Business metric comparison (approval rate, loss rate, revenue impact)
  • Fair lending impact assessment
  • Model Risk Management (MRM) review and sign-off

Model governance adheres to SR 11-7 (Federal Reserve Supervisory Guidance on Model Risk Management) and OCC Bulletin 2011-12:

RequirementImplementationFrequency
Independent ValidationDedicated model validation team (reports to CRO, not model developers)Every new model, material change
BacktestingComparison of predicted vs. actual outcomes across all risk segmentsMonthly
Annual RevalidationFull model review including conceptual soundness, ongoing monitoring results, and outcomes analysisAnnual
Model InventoryCentralized registry with risk tier, owner, validation status, next review dateContinuous (updated real-time)

Production models are continuously monitored for data and concept drift:

  • Population Stability Index (PSI): Measures distributional shift in input features and model scores relative to the training population. Alert threshold: PSI > 0.10 (warning), PSI > 0.25 (critical — triggers mandatory retraining review).
  • Kullback-Leibler (KL) Divergence: Information-theoretic measure of distributional divergence for individual features. Used to identify which specific features are driving population shifts.
  • Performance Monitoring: Realized default rates are compared against predicted PD bands on a monthly cohort basis. Deviation beyond ±15% of expected triggers a model performance review.

The batch feature engineering pipeline runs nightly on Apache Spark 3.5 clusters provisioned on AKS. The pipeline computes approximately 300 features per customer per execution cycle:

  • Execution Window: 01:00–04:00 ET daily
  • Input Sources: Core banking (Oracle CDC), bureau data (SFTP batch), transaction history (Kafka topic replay)
  • Output: Materialized feature vectors written to the PostgreSQL feature store
  • Compute: 8-node Spark cluster (Standard_E16s_v5), auto-scaling to 16 nodes during month-end processing

Real-time features are computed using Kafka Streams applications consuming from transaction event topics:

  • Velocity Features: Transaction count and amount aggregations over sliding windows (1hr, 6hr, 24hr, 7d, 30d) per customer, per channel, per merchant category
  • Session Features: Device fingerprint consistency, geolocation velocity (impossible travel detection), behavioral biometrics score

The PostgreSQL-based feature store provides point-in-time correct feature retrieval to prevent data leakage during model training:

  • Schema: Versioned feature tables with effective timestamps enabling temporal joins
  • Serving: Read replicas dedicated to online serving with connection pooling (PgBouncer, 200 max connections)
  • Lineage: Feature definitions are tracked in a metadata catalog with full upstream lineage to source systems, transformation logic (Git SHA), and downstream model dependencies

POST /risk/credit-score
Content-Type: application/json
Authorization: Bearer {service-token}
X-Request-ID: {uuid}
X-Correlation-ID: {uuid}

Request Body:

{
"application_id": "APP-2025-0319-00847",
"customer_id": "CUST-10482937",
"product_type": "UNSECURED_PERSONAL",
"requested_amount": 25000.00,
"requested_term_months": 60,
"purpose": "DEBT_CONSOLIDATION",
"channel": "DIGITAL",
"consent_timestamp": "2025-03-15T14:22:31Z",
"bureau_pull_authorized": true
}

Response:

{
"request_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"application_id": "APP-2025-0319-00847",
"score": 724,
"risk_grade": "B2",
"probability_of_default": 0.034,
"decision": "APPROVE",
"recommended_terms": {
"approved_amount": 25000.00,
"interest_rate": 8.49,
"term_months": 60,
"monthly_payment": 512.37
},
"risk_drivers": [
{"rank": 1, "code": "RD14", "description": "Length of credit history below peer median"},
{"rank": 2, "code": "RD07", "description": "Revolving utilization above 45%"},
{"rank": 3, "code": "RD22", "description": "Recent credit inquiries in last 6 months"},
{"rank": 4, "code": "RD03", "description": "Limited diversity of credit account types"},
{"rank": 5, "code": "RD31", "description": "Debt-to-income ratio above threshold"}
],
"model_version": "credit-xgb-v4.2.1",
"scored_at": "2025-03-15T14:22:32.187Z"
}
POST /risk/fraud-screen
Content-Type: application/json
Authorization: Bearer {service-token}
X-Request-ID: {uuid}

Request Body:

{
"transaction_id": "TXN-20250315-1422-98761",
"customer_id": "CUST-10482937",
"transaction_type": "ACH_DEBIT",
"amount": 4750.00,
"currency": "USD",
"counterparty": {
"name": "Consolidated Payments LLC",
"routing_number": "021000021",
"account_last4": "8832"
},
"channel": "ONLINE_BANKING",
"device": {
"fingerprint": "fp_8a3b2c1d4e5f",
"ip_address": "198.51.100.42",
"user_agent": "Mozilla/5.0"
},
"timestamp": "2025-03-15T14:22:33Z"
}

Response:

{
"transaction_id": "TXN-20250315-1422-98761",
"fraud_score": 22,
"risk_level": "LOW",
"action": "PASS",
"rule_flags": [],
"ml_anomaly_score": 0.18,
"evaluation_time_ms": 43,
"model_version": "fraud-iforest-v2.8.0",
"evaluated_at": "2025-03-15T14:22:33.043Z"
}
POST /risk/aml-check
Content-Type: application/json
Authorization: Bearer {service-token}
X-Request-ID: {uuid}

Request Body:

{
"check_type": "TRANSACTION_SCREENING",
"customer_id": "CUST-10482937",
"transaction_id": "TXN-20250315-1422-98761",
"parties": [
{
"role": "ORIGINATOR",
"name": "Jane M. Whitfield",
"date_of_birth": "1983-06-14",
"country": "US",
"id_type": "SSN_LAST4",
"id_value": "6721"
},
{
"role": "BENEFICIARY",
"name": "Consolidated Payments LLC",
"country": "US",
"entity_type": "BUSINESS",
"registration_number": "EIN-82-1234567"
}
],
"transaction": {
"amount": 4750.00,
"currency": "USD",
"type": "ACH_DEBIT",
"originating_country": "US",
"destination_country": "US"
}
}

Response:

{
"check_id": "AML-20250315-0047821",
"transaction_id": "TXN-20250315-1422-98761",
"overall_risk": "LOW",
"screening_results": {
"ofac_match": false,
"pep_match": false,
"adverse_media_match": false,
"sanctions_match": false
},
"monitoring_flags": [],
"geographic_risk": "LOW",
"ctr_required": false,
"sar_recommended": false,
"screening_provider": "REFINITIV_WORLD_CHECK",
"screening_version": "2025.03.14",
"checked_at": "2025-03-15T14:22:33.112Z"
}

For operational procedures, incident response, and troubleshooting guides, refer to:

  • Platform Owner: Risk Engineering — risk-engineering@acmefinancial.com
  • On-Call: PagerDuty service risk-engine-prod (Tier 1 rotation)
  • Slack: #risk-engine-support (general), #risk-engine-incidents (P1/P2)
  • Model Governance: Model Risk Management Office — mrm-office@acmefinancial.com