Table of Contents
ToggleA soft sensor that matched the lab at commissioning can be wrong by the next monsoon. Learn why plant ML models lose accuracy, how to measure the shift with PSI and KS tests, and when to retrain or recalibrate.
Machine learning models trained on plant historian data slowly stop matching reality as sensors, feeds and seasons change. Here are the causes of model drift, the statistics that catch it and a practical response plan.

What is model drift in industrial AI and how do you detect it?
Model drift is the loss of accuracy of a deployed machine learning model because plant data or process behaviour has moved away from the training period. Detect it with the Population Stability Index on inputs, PSI = Σ (A minus E) × ln(A ÷ E), and by tracking prediction error against lab results. A feed temperature tag with PSI 0.136 shows a moderate shift.
What Is Model Drift?
Model drift is the drop in accuracy of a deployed machine learning model because live data no longer looks like its training data. The model itself does not change, but the sensors, feed, equipment and weather around it do.
- Data drift: inputs change. Concept drift: the input to output relationship changes.
- PSI below 0.1 is stable, 0.25 or more is significant.
- Fix the instrument first, retrain only when the process really changed.
IBM calls model drift model decay and warns that accuracy can degrade within days of deployment. On a plant the decay is usually slower but silent, because no alarm sounds when a soft sensor starts reading 2 % high.
Treat the model like an instrument calibrated once against historian data. Like a pressure transmitter with span drift, it needs periodic checks against a reference, usually the lab result.
Why Does Model Drift Happen in Industrial AI?
Model drift happens because a plant is never stationary: instruments get recalibrated, feeds change, equipment ages and seasons swing. Each of these moves live data away from the training window while the model keeps its old assumptions.
Many causes are familiar field problems, such as thermocouple drift from contamination. The ML model hides them by turning a bad input into a believable but wrong prediction.

The figure follows a typical soft sensor from transmitters through the process historian to the model and back to the DCS. Drift enters at every stage, so watch both inputs and output.
Even a new swinging door compression setting can flatten the variations the model uses as features. IBM calls this an upstream data change, and it can hit every prediction at once.
Gama and coauthors, in their ACM Computing Surveys paper on concept drift adaptation, describe four patterns: sudden, incremental, gradual and recurring. A plant shows all four, from a feed switch to the yearly monsoon.
Data Drift vs Concept Drift: What Is the Difference?
Data drift means inputs moved to a new range while the physics linking them to the output stayed the same, and concept drift means that link changed. You see data drift in historian tags alone, but concept drift only shows when you compare predictions with true values.
| Aspect | Data drift | Concept drift |
|---|---|---|
| What changes | Input distribution | Input to output relation |
| Plant example | Feed 10 °C hotter in summer | Aged catalyst, lower conversion |
| Needs lab data? | No | Yes |
| Detector | PSI, KS test | Rolling lab error |
| Response | Check instruments | Retrain on recent data |
Before blaming the model, open the input tag calibration records for that week. An as found and as left certificate with a corrected offset explains many sudden PSI jumps.
How to Detect Model Drift on Plant Data
You detect model drift with statistical tests that compare live inputs with training data, plus error tracking against lab results. Input checks give early warning, and error tracking confirms real damage.
Compares bin shares of one input between training and recent data as one number.
Largest gap between the cumulative curves of two samples of one tag.
Rolling bias of prediction minus lab value, plotted like a control chart.
PSI started in credit risk scoring as a check on whether a scorecard population had changed. For model drift screening it works just as well on a temperature or flow tag once you bin the values.
Ei = training share in bin i
Ai = recent share in bin i
Below 0.1 stable, 0.1 to 0.25 moderate,
0.25 or more significant
Du Pisanie and coauthors note these bands are a rule of thumb that ignores sample size and bin count. A bin with zero samples makes PSI infinite, so merge empty bins.
The two sample Kolmogorov Smirnov test is nonparametric and checks whether two data sets share one distribution. Its statistic D is the largest vertical gap between the two cumulative curves.
Critical D at 5 % significance:
Dcrit ≈ 1.36 × √((n + m) ÷ (n × m))
n = m = 1000 gives Dcrit ≈ 0.061
n = m = 8760 gives Dcrit ≈ 0.021
With a year of hourly data, even a tiny shift of no practical value comes out statistically significant. Historian samples are also autocorrelated, so treat the p value as a reason to review the tag.
Error tracking is the only direct check for concept drift. Trend prediction minus lab value and treat it like a calibration error calculation, with a bias limit agreed with the process engineer.
Population Stability Index Calculator
This calculator gives PSI for one input tag in five bins, from percentages or raw counts. It normalises each column, so the totals need not match.
Take a purity soft sensor using reactor feed temperature. Training put 10, 20, 40, 20 and 10 % of samples in the bins below 180 °C, 180 to 190, 190 to 200, 200 to 210 and above 210 °C, and last month gave 5, 15, 35, 25 and 20 %.
Bin 2: (0.15 minus 0.20) × ln(0.75) = 0.0144
Bin 3: (0.35 minus 0.40) × ln(0.875) = 0.0067
Bin 4: (0.25 minus 0.20) × ln(1.25) = 0.0112
Bin 5: (0.20 minus 0.10) × ln(2) = 0.0693
PSI = 0.1363, moderate shift
Every term is positive, because when A is below E both factors are negative. Bin 5 gives half the total, so most of the shift sits in the hot tail.

At 0.136, investigate before you think about retraining. First ask whether the preheater really runs hotter or whether someone replaced the transmitter last month.
A recent bin with zero samples sends the logarithm to infinity. That is why the calculator refuses zero values.
How to Fix Model Drift: Retrain, Recalibrate or Review
Fix model drift by removing instrument and data faults first, retraining only when the process changed, and reviewing every new model before release. Retraining on faulty sensor data teaches the model the fault.
A model cannot tell a real process change from a bad transmitter. As in AI root cause analysis, prove the cause before changing anything.
When retraining, avoid fitting a flexible model to a short window. Zenta Engineering explains overfitting and underfitting, and an overfitted soft sensor fails at the next feed change.

The sensor question comes before the retrain question on purpose. Many model drift alarms end at the second box with a corrected transmitter.
- Easy to plan every quarter or season
- Suits slow, predictable change
- Retrains only when limits are crossed
- Needs reliable monitoring and owners
- May react to a sensor fault
Model Drift Troubleshooting Table for Field Engineers
Start from the symptom on the trend screen. Each row gives the likely cause, the first check and the usual action.
| Symptom | Likely cause | Check first | Action |
|---|---|---|---|
| PSI jump on one tag | Recalibrated or reranged transmitter | Calibration log | Fix scaling, no retrain |
| Prediction stuck | Frozen tag or comms loss | Tag quality | Repair data path |
| Slow growing bias | Catalyst ageing or fouling | Rolling lab error | Bias update or retrain |
| Error up every summer | Cooling water effect | Last year same months | Train on full year |
The first two rows are data problems, and they are the most common reason a model looks broken. Good historical trending of raw tags beside the prediction makes them easy to spot.
If any input is out of training range or has bad quality, flag the prediction as uncertain on the HMI. Operators then trust it when it is green.
Many plants already set a calibration interval from drift history, and the same idea sets how often to review a model.
- Reference window and bin edges stored
- Weekly model drift PSI trend with 0.1 and 0.25 limits
- Rolling lab bias tracked
- Calibration events linked to input tags
- Shadow test before any update
The same checks apply to ML anomaly detection and remaining useful life prediction, and Zenta Engineering covers predictive maintenance with machine learning. For the wider picture, see AI in PLC, SCADA and DCS.
The NannyML video explains both drift types with simple charts, and the model drift cases in this article apply the same ideas to plant data.
Model Drift FAQ
Model drift is the drop in accuracy of a deployed model when live data moves away from training data. A purity soft sensor trained in winter may read high in summer.
The model is unchanged, but the plant around it changed.
Data drift is a change in inputs, such as feed running 10 °C hotter. Concept drift is a change in the relationship, such as aged catalyst giving lower conversion.
Data drift shows in tags alone, while concept drift needs lab results.
Bin the training data and find training and recent shares per bin. Add (A minus E) × ln(A ÷ E) over all bins.
Shares of 10, 20, 40, 20, 10 % against 5, 15, 35, 25, 20 % give 0.136, a moderate shift.
A common rule of thumb treats PSI below 0.1 as stable, 0.1 to 0.25 as moderate and 0.25 or more as significant. These bands come from credit scoring practice.
They ignore sample size and bin count, so confirm high values with a KS test, a trend plot and lab error before acting.
The most common model drift mistake is retraining on data from a faulty or recalibrated transmitter. The model then learns the fault and hides it from operators.
Check calibration records, redundant sensors and tag scaling first. Retrain only after a real process change confirmed by lab results.
Recalibrate or repair the instrument when a sensor or data path caused the shift. Retrain when the process, feed or equipment really changed and lab error confirms it.
Use human review when the cause is unclear. Every new model should run in shadow mode before release.
Related Articles
- Soft Sensor and Inferential Measurement
- Anomaly Detection with Machine Learning
- AI Root Cause Analysis of Process Upsets
- Remaining Useful Life Prediction
- Digital Twin in Industrial Automation
External References
- Population stability testing procedures in credit risk scoring (arXiv PDF)
- IBM: What is model drift?
- Wikipedia: Concept drift
What We Learn Today
- Model drift is the loss of accuracy of a deployed plant ML model when sensors, feeds, equipment or seasons move live data away from training.
- Data drift shows up in input tags and is screened with PSI and KS tests, while concept drift needs prediction error against lab results.
- Always rule out transmitter recalibration, tag changes and data path faults before retraining, then shadow test any new model before release.

