Every ML model deployed in a UK production environment is subject to an inevitable process of performance degradation over time. This degradation has two root causes that the industry terms data drift and concept drift. Data drift (also called covariate shift) occurs when the statistical distribution of input features changes between training time and inference time — for example, a UK credit scoring model trained on 2019-2022 economic conditions encountering the inflationary environment of 2023-2025 will receive feature distributions it has never seen. Concept drift is more fundamental: the relationship between inputs and the target variable itself changes — what predicted credit default in 2019 may not predict it in 2025 due to structural economic changes. For UK regulated firms, undetected drift is not merely a performance problem; it is a governance failure. The FCA's PS22/9 Consumer Duty requires firms to achieve good outcomes for customers — a drifted ML model producing systematically worse decisions for customers is a Consumer Duty breach risk.
Data drift detection methods form the foundation of any UK ML monitoring strategy. For continuous features, the Population Stability Index (PSI) is the industry standard in UK financial services, inherited from credit risk modelling practice. PSI compares the distribution of a feature in the training data against the current production data: PSI below 0.1 indicates no significant shift; 0.1-0.2 indicates moderate shift requiring investigation; above 0.2 indicates major shift requiring model review. The Kolmogorov-Smirnov (KS) test provides a more statistically rigorous alternative for continuous distributions, testing the null hypothesis that two samples are drawn from the same distribution. For categorical features, chi-squared tests and Jensen-Shannon divergence are appropriate. For high-dimensional feature vectors (e.g. NLP embedding vectors), Maximum Mean Discrepancy (MMD) or a classifier two-sample test (train a classifier to distinguish training-time from production-time samples; high AUC indicates significant drift) are more powerful.
Concept drift detection requires observing model outputs and (where available) ground truth labels. In UK financial services, ground truth feedback loops vary dramatically by use case: fraud detection has near-real-time labels (dispute outcomes); credit default has 12-24 month feedback lag; customer churn prediction has 3-12 month lag. For low-latency feedback use cases, performance monitoring (tracking AUC, precision, recall, F1 over rolling windows) is the primary concept drift signal. For high-latency use cases, proxy metrics must substitute: monitoring output score distributions (PSI on predicted probability distributions), monitoring decision boundary stability (percentage of predictions near threshold), and detecting covariate shift as an early warning signal of upcoming concept drift. The ADWIN (ADaptive WINdowing) and Page-Hinkley statistical process control algorithms are well-suited for sequential concept drift detection in UK production ML streams.
UK MLOps tooling landscape for model monitoring: Evidently AI is the most widely adopted open-source model monitoring library among UK ML teams — it provides a Python library and self-hostable dashboard for data drift reports, data quality checks, and model performance monitoring, with pre-built reports for classification, regression, and ranking tasks. WhyLabs (SaaS) offers a managed alternative with deeper LLM monitoring capabilities. Arize AI and Fiddler AI are US-headquartered platforms with UK enterprise clients in financial services. For UK data residency requirements (particularly relevant for NHS and regulated financial services), self-hosted Evidently with a PostgreSQL backend or MLflow with custom monitoring extensions are preferred. Grafana with Prometheus custom metrics is widely used in UK SRE-heavy engineering cultures; ML model metrics are emitted as Prometheus gauges and tracked alongside infrastructure metrics.
Automated retraining pipelines are the operational response to detected drift in a UK ML production system. A well-designed UK MLOps retraining architecture follows this pattern: (1) Monitoring layer — Evidently or custom drift metrics computed on a scheduled basis (daily, weekly) against a reference dataset; (2) Alert layer — threshold breaches trigger PagerDuty/Opsgenie alerts to the ML engineering team; (3) Triage — automated statistical significance test; human review of drift reports; business context assessment (is the drift driven by genuine data change or data pipeline bug?); (4) Retraining decision — retrain with expanded data window vs. champion-challenger experiment vs. emergency rollback; (5) Retraining pipeline — Kubeflow Pipelines, Apache Airflow, or GitHub Actions scheduled workflow fetches new labelled data, retrains model, runs evaluation suite; (6) Validation gate — new model must beat incumbent on held-out test set AND pass bias/fairness checks before promotion; (7) Deployment — MLflow model registry manages model versions; Seldon Core or BentoML handles production serving with canary deployment support.
Governance and documentation requirements for UK ML model monitoring: FCA Model Risk Management (MRM) expectations (set out in SS1/23 for banks, and analogous expectations for other regulated firms) require that production ML models have documented monitoring frameworks specifying metrics, thresholds, review frequency, and escalation procedures. The Bank of England's March 2022 discussion paper on AI in UK financial services highlighted monitoring adequacy as a key supervisory concern. Practical governance requirements: (1) Model Risk Register entry for each production ML model including monitoring metrics and alert thresholds; (2) Monthly model performance report to the Model Risk Committee for material models; (3) Annual independent model validation including review of monitoring adequacy; (4) Senior Manager accountability under SMCR for model performance — the accountable SMF must be informed of material drift events; (5) Audit trail — all monitoring outputs, alerts, and retraining decisions logged for regulatory review. For NHS AI applications, NHS England's AI Assurance framework similarly requires documented monitoring plans as part of deployment governance.
Пов'язані послуги Codeworth
Потрібна допомога з реалізацією?
Команда Codeworth готова втілити ці ідеї у вашому проєкті. Безкоштовна консультація.
Обговорити проєктСпеціаліст команди Codeworth.