Inferensys

Glossary

Model Drift

Model drift is the degradation of a machine learning model's predictive performance over time caused by a change in the statistical properties of the production data relative to the training data.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
CONCEPT DRIFT & DATA DRIFT

What is Model Drift?

Model drift is the degradation of a machine learning model's predictive performance over time due to evolving statistical properties in production data.

Model drift is the silent decay of a deployed model's accuracy caused by a mismatch between the static data it was trained on and the dynamic, evolving data it encounters in production. This divergence undermines reliability, making previously correct predictions obsolete without any explicit code change or system failure.

In manufacturing computer vision, drift manifests when lighting conditions shift, raw materials change suppliers, or new defect types emerge that were absent from the original training set. Monitoring for drift requires continuous statistical comparison of production input distributions against a baseline reference, triggering retraining pipelines when divergence exceeds defined thresholds.

DEGRADATION DYNAMICS

Key Characteristics of Model Drift

Model drift describes the silent degradation of a machine learning model's predictive accuracy in production, driven by a statistical mismatch between the static training data and the evolving real-world environment.

01

Concept Drift

Occurs when the fundamental statistical relationship between the input features and the target variable changes. The model's learned mapping from inputs to outputs is no longer valid.

Example: A new raw material supplier introduces a visually distinct but acceptable surface texture. The model, trained on the old texture, incorrectly flags this as a scratch defect, increasing the False Reject Rate (FRR).

  • P(Y|X) changes: The conditional probability of the label given the features shifts.
  • Sudden Drift: An abrupt change, like a new product SKU.
  • Incremental Drift: A gradual change, like slow tool wear altering part geometry.
02

Data Drift (Covariate Shift)

A change in the statistical distribution of the input features themselves, even if the decision boundary remains valid. The model sees data unlike what it was trained on.

Example: Gradual degradation of factory floor lighting shifts the pixel intensity histogram of captured images. The model, trained on bright images, becomes uncertain on darker inputs.

  • P(X) changes: The probability distribution of the input features shifts.
  • Sensor Decay: Physical camera degradation, lens dust accumulation, or vibration misalignment.
  • Environmental Shift: Changes in ambient temperature, humidity, or background clutter.
03

Label Drift

A change in the distribution of the target variable itself, independent of the input features. The prior probability of seeing a certain class changes in production.

Example: A successful process improvement reduces the actual defect rate from 5% to 0.1%. The model, calibrated for a higher base rate, now over-predicts defects relative to the new reality.

  • P(Y) changes: The marginal probability of the target label shifts.
  • Class Imbalance Shift: The ratio of defective to non-defective parts changes dramatically.
  • Seasonality: Cyclical changes in production volume or product mix that alter defect frequency.
04

Temporal Drift

A specific form of drift where the relevance of data decays purely as a function of time, often due to cyclical patterns or obsolescence of the training data's context.

Example: A model trained on summer production data fails in winter because material viscosity changes with temperature, altering the visual appearance of acceptable parts.

  • Non-Stationarity: The data-generating process is not constant over time.
  • Recurring Contexts: Drift that follows a predictable pattern (hourly, daily, seasonal).
  • Model Staleness: The training data simply becomes too old to represent the current process.
05

Detection via Population Stability Index (PSI)

A primary metric for quantifying data drift by comparing the distribution of a feature in the production data against its distribution in the training baseline. It measures the divergence between two distributions.

Interpretation Guide:

  • PSI < 0.1: Insignificant drift. No action required.
  • 0.1 ≤ PSI < 0.25: Moderate drift. Requires monitoring and investigation.
  • PSI ≥ 0.25: Significant drift. Model retraining or feature engineering is likely necessary.

PSI is calculated by binning the feature values and summing the logarithmic difference between the actual and expected percentages in each bin.

06

Mitigation via Ground Truth Verification

The most robust defense against drift is a continuous feedback loop that samples production inferences, sends them for human or high-precision verification, and compares the model's prediction against the newly established ground truth.

Process:

  • Shadow Mode: Run the new model in parallel, logging predictions without actioning them.
  • Champion/Challenger: A/B test a retrained model against the current production model.
  • Active Learning: A human operator labels only the most uncertain or high-value samples flagged by the model to efficiently create a targeted retraining dataset.
MODEL DRIFT

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the degradation of machine learning model performance in production environments, specifically within computer vision quality inspection systems.

Model drift is the degradation of a machine learning model's predictive performance over time due to a statistical change between the training data and the live production data. In computer vision quality inspection, this occurs when the data distribution the model encounters on the factory floor diverges from the distribution it learned during training. There are two primary mechanisms: data drift (covariate shift), where the input features themselves change—such as gradual lighting degradation, a new camera angle, or different material batches—and concept drift, where the fundamental relationship between the input and the target variable changes, such as the introduction of a completely new defect morphology the model has never seen. The model's decision boundary, optimized for the original data manifold, no longer accurately separates conforming from non-conforming products, leading to increased false reject rates or, more critically, higher escape rates.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.