Skip to content
mentoor

Topic 3 of 5 · 5 min read

Monitoring data drift and concept drift

Goal: Read a monitoring report, tell data drift from concept drift, and choose whether to alert, retrain or investigate.

A deployed model decays silently, so monitor two things separately: whether the inputs have changed (data drift) and whether the link between inputs and outcomes has changed (concept drift). The first you can see immediately. The second you often see only when the true labels arrive.

Check yourself · 1 of 3

Customers with the same profile now leave more often, but input statistics look unchanged. What is this?

Choose one answer

Why it matters

The model does not throw an error when the world changes. It keeps returning confident scores. A loan model trained before an interest-rate change, or a demand model trained before a new competitor, can lose accuracy for weeks with every dashboard green.

The two kinds of drift

  • Data drift (covariate shift): the distribution of an input changes. Average basket size moves from 30 to 55, or a new app version sends country as lowercase codes. The relationship may still hold, but the model now sees inputs it rarely saw in training.
  • Concept drift: the same inputs now lead to different outcomes. Customers with the same profile now churn more often because a rival cut prices. Input statistics can look normal while accuracy falls.
  • Label delay complicates the second kind. A fraud label may arrive 30 days after the transaction, and a loan default months later. Until then you cannot compute accuracy.

What to monitor

  1. Input checks, now: missing rates, ranges, category sets, and a drift statistic per feature against the training data, such as the population stability index or a two-sample test. Tools such as Evidently produce these reports.
  2. Output checks, now: the distribution of predicted scores. A sudden shift in the share of high scores is a warning.
  3. Quality checks, when labels arrive: accuracy, precision or recall on recent labelled data, compared with the validation baseline.
  4. Pipeline checks: row counts and freshness, because a broken upstream job looks like drift.

Deciding what to do

Drift on one feature, with a data-quality cause such as a changed format, means investigate and fix the pipeline. Drift plus a measured quality drop means retrain, and check first that the new data is trustworthy. Drift with no measured effect and no labels yet means alert and watch.

from evidently.report import Report
from evidently.metric_preset import DataDriftPreset

report = Report(metrics=[DataDriftPreset()])
report.run(reference_data=train_df, current_data=last_week_df)
report.save_html("drift-2026-12-02.html")

What goes wrong

  • Alerting on every statistical difference, so people learn to ignore alerts.
  • Waiting for labels before looking at anything.
  • Retraining on drifted data that is actually a bug.

Examples

A format change that looks like drift

A drift report flags country as heavily shifted. The cause: a new app release sends us instead of US. The model sees an unknown category for a quarter of users. The fix is to normalise the value in the pipeline, not to retrain.

Concept drift with healthy inputs

All input drift scores are low, but 30-day fraud labels show recall falling from 0.78 to 0.64. Fraudsters changed tactics, so the same-looking transactions now behave differently. Monitoring inputs alone would never have shown this. The action is to retrain with recent labelled cases.

Key points

  • Data drift is a change in the inputs; concept drift is a change in how inputs relate to outcomes.
  • Input and score distributions can be monitored immediately, but accuracy needs labels that may arrive weeks later.
  • Compare live data with the training reference using a per-feature drift statistic plus basic data-quality checks.
  • Check for a pipeline bug before treating drift as a real change in the world.
  • Match the response to the evidence: investigate a data fault, retrain on confirmed quality loss, watch when there is no measured effect.

Common mistakes

  • Watching only input drift and never measuring quality once labels arrive.
  • Treating every flagged feature as a reason to retrain without checking for a pipeline fault.
  • Setting alert thresholds so low that the team learns to ignore them.
  • Ignoring label delay and assuming no labels means no problem.

Check yourself · 2 of 3

A fraud label arrives about 30 days after each transaction. What can you monitor in the first week?

Choose one answer

Check yourself · 3 of 3

A report shows strong drift in one feature, and the cause is a client app now sending a different date format. What is the best action?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic