← Learn AI
C_000126 · mlops and platform · intermediate

Drift Detection

Monitoring for changes in input distribution, prediction distribution or the input-output relationship over time.

Step 1 of 5

In words

What it is, why it matters, and what it is like.

Why am I learning this?

A model you train today will not keep working forever. The world changes: customers change their habits, prices shift, new products appear, old ones vanish. When that happens, your model's predictions slowly stop matching reality, and if you do not notice, the damage is silent — bad recommendations, missed fraud, wrong medical warnings — while everything looks fine on your dashboard. Learning drift detection gives you the alarm. It tells you the moment your model's assumptions start to break, so you can retrain, adjust, or investigate before the errors become expensive. This reason is why every serious AI operation — from a startup recommending movies to a bank approving loans — monitors for drift. It is one of the tools that separates a demo from a system people actually rely on.

The idea, in plain terms

You are a doctor who has been seeing the same kind of patient for years. You are excellent at diagnosing the common cold. But then a new virus arrives, or the climate changes and allergies become more frequent. Your usual rules stop working as well. You would want to notice, early, that something is different — before a patient's illness gets worse. Drift detection is like the equipment that tells the doctor, 'The pattern of symptoms you are seeing is no longer what you are used to.' In AI, a model is trained on a particular slice of the world. It learns patterns from that training data. When the real world's data starts to look different from that training data, the model's predictions become less reliable. Drift detection measures how different — and alerts you. There are three kinds of things that can drift: the characteristics of the people or things being analyzed (for example, your customers suddenly earn less), the pattern of answers the model gives (it starts approving far more loans than before), and the rule connecting the two (the link between 'high income' and 'repays loan' stops being true). Drift detection watches one or more of these and raises a flag when the change is too big to ignore. It gives you a signal, not a judgment. A drift alert does not say 'your model is broken' — it says 'the world looks different from what you trained on; you should look closer'.

An analogy

Think of yourself as the caretaker of a large public garden. You have planted many flowers, and you water them according to a carefully learned schedule: each type of flower needs a certain amount of water each day, based on your observations of past seasons. You have a smart watering system that you trained with all your experience. But one year, the climate shifts subtly. Rain falls less often, the sun is stronger, and some flowers start to wilt. The watering system, though, still follows its old rules. It does not know the weather has changed. If you were the gardener, you would walk through the garden each morning, look at the flowers, and notice they are drooping earlier than usual. That is the alarm. Drift detection is your walk through the garden. It compares what the system expects (based on the training data) with what it is currently seeing (the live data coming in). If the leaves are drooping — if the incoming data is significantly different — it rings a bell. The bell does not tell you what to change; it just tells you to pay attention. You still need to inspect the garden, figure out whether the soil is dry, whether a disease is spreading, or whether it is just autumn and the flowers are supposed to wilt. Drift detection is the same. It flags the difference; you, the human, diagnose the cause.

Definition

Drift detection is watching live data and model answers against their original training benchmarks to flag when the current situation differs enough that the model may no longer be accurate.

Where this sits

This concept sits inside MLOps, the practice of keeping machine learning models working in production. You already have notes on Model Registry and Versioning (which tracks which version of a model is running) and Canary Releases (which test new models on a small group before full rollout). Drift detection is what comes after deployment: it is the step that checks if the live model is still fit for purpose. It connects to Human-in-the-Loop Feedback (where drift alerts trigger people to review errors) and Production Feedback Loops (where the data found during drift triggers the next training cycle). In short, drift detection is the bridge from building a model to keeping it alive.

Signal from the Frontier

Get the next essay on mind, machine, and meaning

Essays at the intersection of AI, philosophy, and Indian governance. No promotional content.

We'll send a one-click sign-in link to confirm. No password needed.

Views expressed are personal and do not represent the Government of India or the Government of Uttarakhand.