Model Drift in Industrial AI: PSI Calculator & Example

Share:
Industrial AI
Model Drift in Industrial AI: Why Plant ML Models Degrade and How to Detect and Fix It

A 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.

Data drift Concept drift PSI calculator KS test 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.

Hello everyone, today we are going to learn what model drift is, why it happens on plant data and how to detect and fix it.
model drift
Quick Answer

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.

Key Facts
  • 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.

Advertisement

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.

Sensor recalibration
A transmitter reranged from 0 to 10 bar to 0 to 16 bar shifts the input with no process change.
Fouling and sensor drift
Coated pH electrodes and ageing thermocouples bend readings slowly over weeks.
New feed or grade
A new crude or polymer grade pushes inputs into ranges rarely seen in training.
Equipment ageing
Falling catalyst activity and exchanger fouling change how inputs relate to quality.
Seasons
Monsoon humidity and summer cooling water temperature move the operating point every year.
Pipeline changes
A renamed tag, a kg/h to t/h unit change or new historian compression breaks features overnight.

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.

model drift sources in a plant soft sensor from field sensors to DCS
Diagram by Instrumentation Blog showing where data drift, pipeline changes and concept drift enter a plant soft sensor, and the input and output monitors that catch them.

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.

Do You Know?

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.

AspectData driftConcept drift
What changesInput distributionInput to output relation
Plant exampleFeed 10 °C hotter in summerAged catalyst, lower conversion
Needs lab data?NoYes
DetectorPSI, KS testRolling lab error
ResponseCheck instrumentsRetrain on recent data
Quick Tip

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.

Population Stability Index

Compares bin shares of one input between training and recent data as one number.

Best for: Weekly screening of many tags
Inputs
Kolmogorov Smirnov test

Largest gap between the cumulative curves of two samples of one tag.

Best for: Confirming a shift on a key tag
Inputs
Error tracking

Rolling bias of prediction minus lab value, plotted like a control chart.

Best for: Catching concept drift
Outputs

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.

PSI = Σ (Ai minus Ei) × ln(Ai ÷ Ei)
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.

D = max | Ftrain(x) minus Fnow(x) |
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.

1
Freeze a reference
Store training period data for every input as the baseline.
2
Fix the bins
Set bin edges on reference data, such as ten equal count bins.
3
Run PSI weekly
Compute and trend PSI for every input tag.
4
Confirm with KS
Run a KS test on high PSI tags and compare curves.
5
Track lab error
Update rolling bias with every new lab result.
6
Assign owners
Input alerts to instruments, output alerts to process.
Advertisement

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.

PSI Calculator (5 Bins)
Population Stability Index
PSI = 0.136 (moderate shift, investigate)

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 1: (0.05 minus 0.10) × ln(0.5) = 0.0347
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.

model drift PSI example bar chart with five feed temperature bins and total 0.136
Diagram by Instrumentation Blog showing the PSI solved example: training and recent shares in five feed temperature bins, the contribution of each bin and the total of 0.136.

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.

Do You Know?

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.

InstrumentsCompare suspect tags with redundant transmitters and calibration records.
Data pathConfirm tag names, units, scaling and compression match training.
ProcessAsk operations about feed, grade or catalyst changes.
ReleaseShadow test the new model against lab results.

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.

flowchart to troubleshoot model drift with PSI check, sensor fault check and retraining
Diagram by Instrumentation Blog showing a troubleshooting flowchart that moves from a weekly PSI and lab error check to fixing the instrument, human review or retraining.

The sensor question comes before the retrain question on purpose. Many model drift alarms end at the second box with a corrected transmitter.

Scheduled retraining
  • Easy to plan every quarter or season
  • Suits slow, predictable change
Triggered retraining
  • Retrains only when limits are crossed
  • Needs reliable monitoring and owners
  • May react to a sensor fault
Myth: A tested model stays accurate.
Fact: Test accuracy only describes the training period.
Myth: High PSI means retrain.
Fact: It often points to a recalibrated transmitter.
Myth: Concept drift shows in tag trends.
Fact: It needs lab results, as inputs may look normal.
Advertisement

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.

SymptomLikely causeCheck firstAction
PSI jump on one tagRecalibrated or reranged transmitterCalibration logFix scaling, no retrain
Prediction stuckFrozen tag or comms lossTag qualityRepair data path
Slow growing biasCatalyst ageing or foulingRolling lab errorBias update or retrain
Error up every summerCooling water effectLast year same monthsTrain 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.

Quick Tip

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.

PDF
A Critical Review of Population Stability Testing Procedures (arXiv PDF)
Du Pisanie and coauthors: PSI formula, rule of thumb bands and zero bin caveats

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

What is model drift in machine learning with a simple plant example?

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.

What is the difference between data drift and concept drift with examples?

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.

How to calculate the population stability index step by step?

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.

What PSI value means significant drift in an industrial ML model?

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.

What is the most common mistake when fixing model drift on plant data?

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.

Which response is best for model drift: retrain, recalibrate or review?

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.

Advertisement

Related Articles

External References

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.
Advertisement
I hope you like above blog. There is no cost associated in sharing the article in your social media. Thanks for reading!! Happy Learning!!
Sunayana Gadepatil, author at Instrumentation Blog
Author · instrumentationblog.in
Ms. Sunayana Gadepatil is an instrumentation professional, technical writer, and the author behind Instrumentation Blog. With a strong interest in industrial instrumentation, process measurement, and automation, she specializes in simplifying complex technical concepts into clear, practical, and easy to understand insights. Through her articles, Ms. Sunayana shares valuable knowledge on flow, pressure, level, temperature, control systems, and industrial automation for engineers, students, technicians, and industry professionals.
Technically reviewed on

Leave a Reply

Your email address will not be published. Required fields are marked *

Support free learning

Help keep every guide, calculator and tool 100% free

Hosting, software and hours of research go into every article. Even a small contribution helps us publish more in-depth guides for students, technicians and engineers.

  • No paywalls
  • No sign up
  • Free for everyone