The field manual for machine learning in manufacturing · updated September 1, 2026
ManufacturingML
Home / Encyclopedia / Soft sensors (virtual sensors)
Methods · Entry · updated September 1, 2026

Soft sensors (virtual sensors)

Key takeaways
  • A soft sensor is a model that estimates a hard-to-measure quantity (composition, viscosity, final quality) from signals you already have.
  • It replaces waiting (for lab results, offline tests, end-of-line inspection) with a continuous live estimate.
  • Classic in process industries for decades; ML made them cheaper to build and able to capture nonlinear interactions.
  • Every predictive-quality feature in modern platforms is a soft sensor by another name.

Some of the most decision-relevant quantities in a plant are the hardest to measure continuously: melt viscosity, concentration, moisture, the final quality grade that only a lab test reveals two hours later. A soft sensor closes the gap with inference: a model trained to estimate the unmeasurable quantity from the dozens of signals you do measure continuously.

From regression to ML

Process industries have built soft sensors for decades from first-principles and linear regression. The ML generation changed two economics: construction cost (models learn the relationship from historian data instead of months of manual modeling) and fidelity (nonlinear methods capture interaction effects (the material-lot-by-temperature-by-speed dependencies that linear models flatten). The result is that predictive quality) scoring in-process product against final quality, continuously: became a standard platform feature rather than an engineering project.

Where they pay

Three recurring wins: replacing lab latency (act on estimated quality now, confirm at the lab later), impossible locations (estimating conditions where no physical sensor survives), and cost avoidance (a model on existing signals versus an analyzer plus its maintenance contract). The discipline that keeps them honest is periodic reconciliation against ground truth, a soft sensor that drifts unmonitored is a confident liar.

FAQ

How accurate are ML soft sensors?
Accurate enough to act on when regularly reconciled against lab or inspection ground truth: that reconciliation loop is a design requirement, not an option. Treat the estimate as a control signal with known error bars, not gospel.
Are soft sensors the same as predictive quality?
Predictive quality is the flagship soft-sensor application: the 'sensor' being synthesized is the final quality result, estimated live from in-process signals so bad runs get caught mid-run.
Related entries
Comparing platforms that do this? The adoption data pack carries the market numbers behind this entry.
From theory to signals
Which machine signals become which features, and how each breaks
Free, no login. One follow-up from TEEPTRAK, then nothing.
Get the mapping kit →

Soft sensors: predicting a quality value you cannot measure in line

A soft sensor is a model that estimates, every minute or faster, a quality or process value that is only measured slowly or offline, such as a lab impurity, a polymer melt flow index or a product moisture, from signals the plant already records. Building one takes three things: time-aligned historian data, enough lab results to learn from, and a monitoring loop that catches drift.

The sections below go beyond the definition: how process engineers choose the model, a worked example on a distillation column, the data a plant needs before starting, the rules that keep a virtual sensor honest once it is live, and the pitfalls that sink most first attempts.

Key takeaways

  • A soft sensor turns a slow lab value into a continuous estimate from existing process signals.
  • Partial least squares is the baseline to beat before choosing a more complex model.
  • True sample times and full operating-range coverage matter more than the algorithm.
  • Every lab result becomes a check: residual charts and bias updates keep the estimate honest.
  • Advisory mode comes first; closed-loop use comes only once the error is proven.

Which model should a soft sensor use?

The model choice follows the data, not fashion. Process engineers usually compare four families before committing.

Model familyWorks best whenWatch out for
Partial least squares (PLS)Many correlated inputs, mostly linear behavior, a few hundred lab samplesMisses strong nonlinear effects such as grade transitions
Gradient-boosted treesNonlinear interactions in tabular historian dataCannot extrapolate: predictions go flat outside the training range
Neural networks, including recurrent onesLong dynamic histories and thousands of labeled samplesHarder to validate and to explain to operators
Hybrid model (first principles plus ML on the residual)A mass or energy balance of the unit already existsOnly as good as the physical model underneath

A practical rule: build PLS first as the baseline, then keep a more complex model only if it beats the baseline on held-out data by a margin that matters for the decision it drives. A virtual sensor that operators cannot explain is a virtual sensor they will ignore at the first surprising value.

Worked example: a soft sensor on a distillation column

Suppose a chemical plant runs a distillation column whose top-product impurity is analyzed by the lab every four hours. The specification limit is 500 ppm, and an off-spec drift is only discovered when the lab result comes back, after hours of product have already gone to the downgrade tank. This is the classic case for soft sensors in chemical manufacturing.

  1. Pick the inputs. Eight tray temperatures, column pressure, reflux flow, feed rate and reboiler duty, all logged every minute.
  2. Align time. Each lab result is matched to the process state at the moment the sample was drawn, shifted by the transport delay between the trays and the sample point, here about 20 minutes.
  3. Build the dataset. Six samples a day over 90 days gives 540 labeled rows. The first 60 days train the model, the last 30 days test it.
  4. Train and compare. The PLS baseline reaches a test error of about 60 ppm; gradient-boosted trees reach about 35 ppm and are kept.
  5. Set the decision rule. For example, operators adjust reflux as soon as the estimate passes 400 ppm, which leaves a margin of almost three times the model error before the 500 ppm limit.

The column now has an estimate every minute instead of a lab value every four hours. The lab does not disappear: every result becomes a check on the model, which is what makes the estimate trustworthy enough to act on.

Distillation soft sensor example540Lab samples500 ppmSpec limit35 ppmModel error400 ppmAction point
Building the column soft sensor1Pick the inputs2Align sample times3Build the dataset4Train and comparemodels5Set the decisionrule

What data does a soft sensor need before a plant starts?

Most failed projects fail on data, not algorithms. The checklist below is worth running before any model is trained.

  • Historian resolution. Inputs logged at least as fast as the process changes, often every minute in continuous units.
  • True sample times. The time the sample was drawn, not the time the lab typed the result into the system.
  • Range coverage. Lab results across every grade, throughput and season the sensor will face; a model trained on one grade will not estimate another.
  • Event log. Catalyst changes, cleanings, grade changes and recalibrations, so the data can be segmented and the model retrained at the right moments.
  • Instrument health. A record of which input sensors were faulty and when, because a drifting thermocouple teaches the model the wrong relationship.

Not every lab delay justifies a model. The table helps decide.

SituationBetter choice
Lab delay hides off-spec production and existing process signals react to the quality variableSoft sensor
Quality depends on something no existing signal reflects, such as raw material compositionOnline analyzer or tighter incoming inspection
The lab result arrives fast enough to act and off-spec events are rareKeep the lab routine

On batch or discrete equipment with no historian, the first project is usually to collect process parameters with their context. ProcessTrak, the process parameter monitoring product from TEEPTRAK, the reference solution ManufacturingML benchmarks against, is one way to build that history; the soft sensor comes after it.

How do you keep a virtual sensor trustworthy once it is live?

A virtual sensor is a model in production, and it needs the same supervision as a physical instrument. Five mechanisms cover most cases.

  • Residual chart. Plot estimate minus lab result for every sample; a run of residuals on the same side signals drift long before a large error does.
  • Bias update. Correct the offset after each lab result through a slow filter, so one bad sample does not swing the estimate.
  • Range guard. Flag the estimate as unreliable whenever an input leaves the range seen in training.
  • Input validation. Replace a frozen or out-of-range input with a fallback value and tell the operator which input failed.
  • Retraining trigger. For example, retrain when the mean residual of the last 10 lab samples exceeds the test error measured at go-live.

Pitfalls seen on real plants

  • Data leakage. An input calculated from past lab values makes the test look excellent and the live estimate useless.
  • Steady-state training only. A model that never saw start-ups or grade changes fails exactly when operators need it most.
  • Closing the loop too early. Run the soft sensor in advisory mode, with alarms, before any controller uses it.
  • No owner. Without a named process engineer who reviews residuals, nobody notices the slow drift.

For neighboring methods such as golden batch analysis and industrial time-series modeling, the ManufacturingML encyclopedia of machine learning in manufacturing covers each one with the same worked-example approach.

Frequently asked questions

How many lab samples are needed to build a soft sensor?

Enough to cover every operating condition the sensor will see. For example, a few hundred well-timed samples spread across all grades usually make a usable PLS baseline, while more complex models need more.

Is a virtual sensor the same as a soft sensor?

Yes. Virtual sensor, soft sensor and inferential sensor all name a model that estimates a hard-to-measure variable from available process signals.

Can a soft sensor be used in closed-loop control?

It can, once it has run in advisory mode long enough to prove its error and its behavior during upsets. Most plants start with operator alarms and feed the estimate to a controller later.

How often should a soft sensor be retrained?

On evidence rather than on a calendar: when residuals against the lab drift, after a process change such as a new catalyst, or when the unit starts running outside the training range.

Where are soft sensors used in chemical manufacturing?

Typical uses are distillation impurity, reactor conversion, polymer melt flow index and product moisture, wherever the quality value comes from a slow lab analysis and process signals react to it.

2026 State of ML in Manufacturing
Benchmark your AI maturity against peers: adoption data, ROI by use case, and where to start without a data-science team.
Get the Free 2026 Report →