Data Drift: Why Good Models Go Bad
Data drift is when a model's accuracy decays because the real-world data it was trained on has changed. This happens in fraud detection as scams evolve or in e-commerce as trends shift.
WHY IT EXISTS Models are built on a snapshot of data from a specific time. They learn patterns from that snapshot, but the real world is not static. Economies change, user behaviors evolve, and new factors emerge. Data drift is the inevitable consequence of a static model operating in a dynamic world, because the statistical properties of data are rarely permanent.
THE MENTAL MODEL Think of a machine learning model as a student who aced a test on last year's history curriculum. If you give them a test on this year's current events, they will fail. The student hasn't gotten dumber; the world they were tested on has simply changed. Data drift is this exact problem: the model is still the same, but the "test questions" from the real world are now different, leading to wrong answers.
HOW IT WORKS Data drift, also called concept drift, happens when the statistical properties of the target variable change over time. For example, the relationship between a user's clicks (input) and their likelihood to buy (output) might change due to a new competitor. The model, trained on pre-competitor data, doesn't know about this new factor and its predictions become less accurate. Detecting it involves monitoring model predictions against ground truth and looking for a decline in metrics like accuracy or precision.
WHEN TO USE IT You must account for data drift in any system where the data-generating process is not stationary. This includes fraud detection, where fraudsters constantly change tactics; demand forecasting, where consumer tastes and economic conditions shift; and spam filtering, where spammers invent new techniques. Any long-running predictive system is a candidate for data drift.
WHEN NOT TO USE IT Drift is less of a concern in systems where the underlying principles are fixed. A model predicting the physical properties of a chemical compound based on its molecular structure is unlikely to suffer from data drift, as the laws of physics are stable. It's also less of a problem for one-off analyses of static datasets where the model is not deployed for ongoing predictions.
ONE CANONICAL EXAMPLE A credit card company builds a model to detect fraudulent transactions based on large, unusual purchases. A year later, fraudsters shift to a new tactic: making many small, seemingly normal purchases. The original model, looking for large anomalies, now fails to catch this new pattern. Its accuracy drops significantly. The concept of "fraud" has evolved, and the model must be retrained to adapt.
Read the original → en.wikipedia.org
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.