Page 09 · ML Engineering & MLOps
Machine Learning
Infrastructure & Models
Three purpose-built models operationalize the finance intelligence layer — anomaly detection, cash forecasting, and invoice classification — unified by a single MLOps spine: continuous retraining, multi-signal concept-drift monitoring, and HITL override rates as one of several early-warning signals of model health[cite: 12].
System Architecture
End-to-End ML Pipeline
Data flows from source systems through the Feature Store to three independent model inference paths, each gated by HITL queues before downstream automation[cite: 12].
← scroll to view full diagram →
Data flows from SAP/TMS/External sources through M-08 Data Governance and the Vertex AI Feature Store into three parallel model paths (IC Anomaly, Cash Forecast, Invoice Classifier). Each model is gated by a HITL review queue before automation. Override rates and PSI signals loop back to trigger retraining[cite: 12].
Model Specifications
Three Production Models
Each model card documents architecture, features, thresholds, performance metrics, explainability method, and drift signals — stored alongside the model artifact in the Registry[cite: 12].
Model 01 · Anomaly Detection[cite: 12]
IC Anomaly Detector
anomaly_score is the XGBoost probability output — IsoForest acts as a computational gate, not a voting member[cite: 12]. This distinction preserves label-free coverage while leveraging supervision where labels exist[cite: 12].
Inference Flow
Task
Score each intercompany transaction pair for mismatch probability, routing high-confidence anomalies to the HITL-IC-01 queue before any automated posting[cite: 12].
Training Data
36 months of IC transaction history (ClaraVis Group + anonymised industry comparables)[cite: 12]. Positive labels: verified mismatch cases from prior audit cycles[cite: 12].
Input Features
Performance Metrics
Model 02 · Time Series Forecasting[cite: 12]
Cash Forecast Model
Ensemble Architecture & Forecast Flow
Task
Produce a 7-day rolling cash position forecast per legal entity and currency, with calibrated 90% prediction intervals to support liquidity management decisions[cite: 12].
Ensemble Design
LightGBM captures structural signals (scheduled payments, IC sweeps, FX moves)[cite: 12]. Prophet contributes calendar seasonality[cite: 12]. Outputs are blended with rolling weight optimisation[cite: 12].
Input Features
Performance Metrics
Model 03 · Multiclass Classification[cite: 12]
Invoice Exception Classifier
Classification Flow & Output Classes
Task
Classify each incoming invoice into one of five exception categories or APPROVED[cite: 12]. High-confidence APPROVED predictions bypass the AP queue; all others receive SHAP explanations for the reviewer[cite: 12].
Output Classes
Input Features
Performance Metrics
Shared Infrastructure
MLOps Pipeline
A single operational spine supports all three models — from weekly retraining on GreenOps schedules to per-model drift alerting in BigQuery[cite: 12].
Vertex AI Pipelines
All three models retrain on a weekly cadence via Vertex AI managed pipelines[cite: 12]. Job scheduling is GreenOps-aware, with a ±6-hour flex window to target low-carbon compute availability[cite: 12].
Model Registry & Canary Deploy
Every trained artifact is version-pinned in the Vertex Model Registry with a data hash and pipeline run ID[cite: 12]. Deployment uses a canary pattern: 10% traffic for 48 hours, then full promotion — or automatic rollback to the pinned champion if the override rate exceeds 1.5× baseline[cite: 12].
Multi-Signal Drift Monitoring
Drift is detected via three concurrent signals: Population Stability Index (PSI) on input features (BigQuery scheduled query — triggers retraining if PSI > 0.2 on any key feature), prediction confidence distribution shift (Cloud Monitoring), and HITL override rate as an early behavioral proxy[cite: 12]. Rising override rate alone validates PSI before triggering retraining[cite: 12].
Training-Serving Skew Detection
Training-serving skew is validated post-deployment by comparing offline training feature statistics (computed at pipeline compile time and stored in GCS) against live Feature Store serving statistics via TFDV schema checks[cite: 12]. Schema violations block the promotion step and trigger an alert[cite: 12].
Feature Governance
Feature Lineage & Validation
All features are validated by the Data Governance process (M-08) before any write to the Feature Store[cite: 12]. Lineage tags link each feature to its source system and governance approval record[cite: 12].
← scroll to view full diagram →
| Feature | Source System | Model(s) | Governance | Store Status |
|---|---|---|---|---|
| entity_pair_id | SAP / Intercompany ledger | IC Anomaly | M-08 · approved | ✓ VALIDATED |
| amount_vs_agreement_rate | IC Agreement Register | IC Anomaly | M-08 · approved | ✓ VALIDATED |
| historical_balance_7d | Treasury TMS | Cash Forecast | M-08 · approved | ✓ VALIDATED |
| FX_rate_7d_ma | ECB / Bloomberg feed | Cash Forecast | M-08 · approved | ✓ VALIDATED |
| IC_sweep_history | Treasury TMS | Cash Forecast | M-08 · approved | ✓ VALIDATED |
| po_match_score | Procurement · ERP PO table | Invoice Classifier | M-08 · approved | ✓ VALIDATED |
| supplier_invoice_hash | AP module · invoice metadata | Invoice Classifier | M-08 · approved | ✓ VALIDATED |
| supplier_prior_exception_rate | AP history · raw exception log 30-day lagged window from raw AP audit log — not from model output table, to prevent feedback loop[cite: 12]. | Invoice Classifier | M-08 · approved | ✓ VALIDATED |
| payroll_calendar | HR system · payroll schedule | Cash Forecast | M-08 · approved | ✓ VALIDATED |
| prior_mismatch_count | HITL override log · BigQuery | IC Anomaly | M-08 · approved | ✓ VALIDATED |
Training-Serving Skew Monitoring
Training feature statistics are computed at pipeline compile time and stored as TFDV schema patches in GCS alongside each model version[cite: 12]. Post-deployment, these offline statistics are compared against live Feature Store serving statistics on each inference batch[cite: 12]. Schema violations — indicating distributional divergence between training and serving environments — block the canary promotion step and raise a Cloud Monitoring alert for investigation before any further traffic shift[cite: 12].
EU AI Act Article 13 compliance: SHAP TreeExplainer is applied deterministically to every IC Anomaly score above the 0.72 threshold and to every non-APPROVED Invoice Classifier output[cite: 12]. Explanation payloads are stored in the HITL audit trail alongside the original model inputs, prediction confidence, and reviewer decision — satisfying transparency and logging obligations for high-risk automated financial decisions[cite: 12].
| Art. 13 Obligation | Architectural Component | Status |
|---|---|---|
| Transparency of operation | SHAP TreeExplainer payloads stored in HITL audit trail (BigQuery) | ✓ MET |
| Human oversight capability | HITL queues HITL-IC-01 / HITL-CF-02 / HITL-INV-03 for all flagged decisions | ✓ MET |
| Logging of operations | All model inputs, outputs, confidence scores, and reviewer decisions logged to ae_finance.hitl_audit | ✓ MET |
| Intended purpose disclosure | System cards stored in Vertex Model Registry per acronym, documenting scope, known limitations, and deployment constraints | ✓ MET |
| Instructions for use (deployers) | Threshold configuration, HITL escalation paths, and override handling documented in runbook stored alongside each Model Registry entry | ✓ MET |