VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Why Mathematics? | Dynamic T-PLS for Time-Delayed Quality Monitoring: Lagged Predictors, Quality-Relevant Subspaces, Residuals and Fault Detection

WHY MATHEMATICS? • WHEN QUALITY FOLLOWS THE PROCESS LATER

Connect past measurements to present quality without losing the timeline

Why is mathematics important in time-delayed quality monitoring? Dynamic T-PLS gives a precise example. It augments process data with lags, learns latent directions related to quality, separates modelled subspaces and monitors both scores and residuals.

The value is practical and educational. A learner sees how sequences become matrices, how covariance supports prediction and how residuals expose broken relationships. The same reasoning appears in process engineering, energy systems, health monitoring, finance and AI.

This guide keeps factual method claims separate from illustrative arithmetic. Real deployment needs process genealogy, grouped validation, measurement uncertainty and a documented response; mathematics supports those decisions without guaranteeing them.

  • Route 1 — Align the timeline: material histories, lags and sampling.
  • Route 2 — Build the model: covariance, latent scores and T-PLS subspaces.
  • Route 3 — Monitor quality: predictions, score statistics and residuals.
  • Route 4 — Transfer responsibly: validation, missing assays, regimes and diagnosis.

Open the dynamic route · Calculate a lagged prediction · Build a timing lab

Why delayed relationships need mathematics

A static row says “now predicts now.” Many physical systems do not work that way. Material travels, heat accumulates and laboratory results arrive later. Lagged variables turn that history into explicit columns, while latent-variable modelling handles correlation among them.

The importance of mathematics is also visible in what it prevents: misaligned rows, leakage across time, false certainty from duplicated windows and causal claims based only on prediction.

Chapter index

ChaptersFocusStart
1–5Alignment, lag construction and preprocessingBuild the timeline
6–12PLS covariance, T-PLS subspaces and predictionLearn the relationship
13–16Score and residual monitoring with validationDetect departures
17–20Missing quality, regimes, diagnosis and learningUse responsibly
A reading route from delayed process action to quality-relevant fault detection.

CHAPTER 1 OF 20 · Back to index

1. Why quality arrives after the process action

In dynamic processes, an input change may affect quality only after transport, reaction or storage delays. Dynamic total partial least squares, or dynamic T-PLS, models lagged measurement-quality relationships rather than treating rows as simultaneous and independent.

Concrete process example

A feed composition change can alter reactor temperatures now and product purity after material reaches the laboratory sample point.

Limit to test

A delay estimated from data may change with production rate and does not itself prove a physical pathway.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Did you know? Adjacent lagged rows share many of the same raw measurements. A thousand rows may therefore contain far fewer than a thousand independent pieces of evidence, which is why grouped validation and boundary buffers matter.

Index · Next

CHAPTER 2 OF 20 · Back to index

2. Rows need material and time alignment

Every predictor row and quality row must refer to the same material history or response horizon. Data genealogy is often as important as the algorithm.

Concrete process example

Batch 42 process data should be paired with batch 42 assay results even if the laboratory reports them hours later.

Limit to test

Timestamp matching without residence-time knowledge can create a confident but wrong lag structure.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 3 OF 20 · Back to index

3. Lagged predictors create a dynamic block

Dynamic PLS augments predictors with past values such as x_t, x_{t−1},…,x_{t−L}. The model can represent autocorrelation and delayed influence through ordinary matrix operations.

Concrete process example

For one variable and L=2, each model row contains the current value and two prior values.

Limit to test

More lags increase dimension, collinearity and the risk that a model memorises one campaign.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 4 OF 20 · Back to index

4. Lag length is a scientific choice

Candidate lags can come from residence times, impulse-response knowledge, cross-correlation exploration and grouped validation.

Concrete process example

If material normally takes ten minutes to reach a sensor, a ten-minute lag deserves explicit testing.

Limit to test

Searching many lags and selecting the best on the test set leaks information and exaggerates performance.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 5 OF 20 · Back to index

5. Centring and scaling remain training operations

Current and lagged variables are centred and scaled using training values. Related lag columns may have nearly identical scales but strong correlation.

Concrete process example

A one-degree temperature shift should be interpreted consistently across t and t−1 columns.

Limit to test

Scaling each lag independently can obscure the fact that they represent one physical sensor.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Did you know? Adjacent lagged rows share many of the same raw measurements. A thousand rows may therefore contain far fewer than a thousand independent pieces of evidence, which is why grouped validation and boundary buffers matter.

Previous · Index · Next

CHAPTER 6 OF 20 · Back to index

6. PLS seeks covariance with quality

A predictor score t=Xw and response score u=Yc are chosen so their covariance is strong. Dynamic predictors allow this covariance to occur through past measurements.

Concrete process example

A weighted combination of current flow and earlier temperature can track future quality better than either raw variable.

Limit to test

Covariance can be driven by a shared production schedule instead of a causal effect.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 7 OF 20 · Back to index

7. Total PLS separates modelled subspaces

T-PLS decomposes measurement variation into parts associated with quality prediction and other structured or residual variation. Dynamic T-PLS extends that idea to lagged blocks.

Concrete process example

One subspace can explain quality-relevant dynamics while another captures process variation unrelated to the chosen quality target.

Limit to test

Subspace names depend on the exact formulation, so implementation details must match the cited method and software.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 8 OF 20 · Back to index

8. Quality-predictive scores support soft sensing

Latent scores can predict quality before delayed laboratory results arrive, producing a soft-sensor estimate with uncertainty and residual checks.

Concrete process example

A model may estimate purity every minute while a laboratory assay arrives once per hour.

Limit to test

A soft sensor is not a certified measurement and can drift when raw sensors or operating recipes change.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 9 OF 20 · Back to index

9. X residuals reveal unexplained process movement

After reconstructing lagged predictors from retained latent components, X residuals contain measurement variation outside the model.

Concrete process example

A new vibration pattern can produce a large residual even if predicted quality remains near target.

Limit to test

Residual magnitude can reflect sensor noise, missing modes or preprocessing errors rather than a fault.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Did you know? Adjacent lagged rows share many of the same raw measurements. A thousand rows may therefore contain far fewer than a thousand independent pieces of evidence, which is why grouped validation and boundary buffers matter.

Previous · Index · Next

CHAPTER 10 OF 20 · Back to index

10. Y residuals measure quality prediction error

When observed quality becomes available, y−ŷ tests whether the predictor-quality relationship still holds.

Concrete process example

If predicted centred quality is 4.8 and the measured value is 5.1, the residual is 0.3.

Limit to test

Laboratory measurement error contributes to the residual and should not be attributed entirely to the process.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 11 OF 20 · Back to index

11. Quality-relevant faults and quality-irrelevant faults

A departure can alter predicted quality, break the predictive relation or remain mostly in a quality-irrelevant measurement subspace.

Concrete process example

A temperature bias may change the soft-sensor output, while a redundant sensor glitch may only enlarge an X residual.

Limit to test

Calling variation irrelevant to one quality variable does not mean it is safe for equipment, emissions or another product property.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 12 OF 20 · Back to index

12. A small lagged prediction example

A simple regression illustration reveals the timing logic before latent-variable estimation is introduced.

Concrete process example

With x_t=6, x_{t−1}=4 and illustrative model ŷ_t=0.6x_t+0.3x_{t−1}, prediction is 4.8.

Limit to test

These chosen coefficients are not a fitted dynamic T-PLS model and do not demonstrate its full subspace decomposition.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 13 OF 20 · Back to index

13. Score-space statistics monitor known dynamics

Hotelling-style score statistics can flag unusual movement within the retained latent model, using covariance estimated from reference data.

Concrete process example

A combination of lagged flows may remain reconstructable but reach an extreme score rarely seen during normal operation.

Limit to test

Parametric thresholds can be inaccurate under non-Gaussian, autocorrelated or small-sample data.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Did you know? Adjacent lagged rows share many of the same raw measurements. A thousand rows may therefore contain far fewer than a thousand independent pieces of evidence, which is why grouped validation and boundary buffers matter.

Previous · Index · Next

CHAPTER 14 OF 20 · Back to index

14. Residual statistics monitor unmodelled dynamics

Squared prediction error or related residual measures quantify what retained components do not reconstruct.

Concrete process example

A sensor stuck at a constant value can break the expected lag trajectory and raise residual energy.

Limit to test

A large residual identifies inconsistency, not the failed sensor without further diagnosis.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 15 OF 20 · Back to index

15. Component number and lag length interact

Too few components underfit dynamic quality structure; too many components and lags absorb noise. Both choices should be tuned together or through a disciplined staged design.

Concrete process example

A model with six lags may need fewer latent components than a shorter-lag model because predictors are highly redundant.

Limit to test

Lowest cross-validation prediction error may not give the best fault-detection run length or interpretation.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 16 OF 20 · Back to index

16. Grouped validation avoids temporal leakage

Adjacent rows share lagged values, so random row splitting can place almost the same vector in training and testing. Split entire runs, batches or time blocks.

Concrete process example

If a row uses the last ten minutes, keep a buffer around split boundaries so lagged inputs do not cross groups.

Limit to test

Without a buffer, the test set is partly reconstructed from training-period measurements.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 17 OF 20 · Back to index

17. Incomplete quality data changes the evidence

Delayed assays may be sparse or missing. PLS estimation and validation must report which rows have verified Y and how missingness is handled.

Concrete process example

If quality is tested more often during suspected problems, observed labels are not a random sample.

Limit to test

Imputation using future information can create leakage and optimistic soft-sensor accuracy.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Did you know? Adjacent lagged rows share many of the same raw measurements. A thousand rows may therefore contain far fewer than a thousand independent pieces of evidence, which is why grouped validation and boundary buffers matter.

Previous · Index · Next

CHAPTER 18 OF 20 · Back to index

18. Regimes, transitions and drift

Different grades, loads and seasons can have different delays and covariance. One dynamic model may fail systematically at transitions.

Concrete process example

Residence time can shorten at high throughput, shifting the most relevant lag.

Limit to test

Separate models or scheduled parameters may help, but regime identification and transition rules need their own validation.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 19 OF 20 · Back to index

19. Diagnosis needs time order and process knowledge

Contribution plots across current and lagged variables can suggest where a statistic accumulated, while process diagrams and time order help distinguish causes from downstream responses.

Concrete process example

A feed disturbance should normally appear upstream before a separator response, which strengthens one diagnosis over another.

Limit to test

Large lagged contribution is still model-based association, not automatic causal proof.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Next

CHAPTER 20 OF 20 · Back to index

20. A student pathway from sequences to latent models

Students can move from time-series tables and lag plots to regression, covariance, latent scores, residuals and monitored subspaces.

Concrete process example

Build a lagged table by hand for five observations, verify row alignment, then compare static and dynamic prediction.

Limit to test

A model card should record sampling interval, lag horizon, alignment, scaling, components, split buffer, statistics, thresholds and response.

Audit this step by drawing the time line, naming the row unit and marking which raw measurements enter each lagged vector. Confirm that means, scales, weights and thresholds come only from approved training data. A dimension check should show how observations, lagged variables and components fit together.

For transfer, compare the dynamic model with a static baseline and a physically expected delay. If prediction improves but the selected lags contradict material flow, investigate before deployment. Mathematics is most useful when statistical evidence and physical reasoning challenge one another constructively.

Previous · Index · Practice

Worked example: one current and one lagged predictor

Suppose a simple educational model uses current input x_t and one-step lag x_{t−1}. The illustrative prediction rule is ŷ_t=0.6x_t+0.3x_{t−1}. At a time where x_t=6 and x_{t−1}=4, prediction is 0.6×6+0.3×4=3.6+1.2=4.8.

QuantityValueContribution
Current input x_t60.6×6=3.6
Lagged input x_{t−1}40.3×4=1.2
Predicted centred quality ŷ_t4.8
Observed centred quality y_t5.1
Quality residual y_t−ŷ_t0.3
A transparent lagged regression illustration, not a fitted dynamic T-PLS decomposition.

If observed centred quality later arrives as 5.1, the residual is 5.1−4.8=0.3. Interpreting 0.3 requires the reference residual variance, laboratory uncertainty and an independently validated threshold. The arithmetic alone cannot say whether the difference is important.

The example shows timing and residual logic. Dynamic T-PLS estimates latent weights from many current and lagged measurements and separates quality-related and other subspaces. That fuller model must be checked with the same discipline: frozen preprocessing, grouped splits and clear dimensional bookkeeping.

Dynamic quality practice lab

Build a lag table

Use sequence 1,2,4,7,11 and create rows with current value and two lags. State how many usable rows remain and why.

Change the delay

Compare prediction with one, two and three lags on separate validation runs. Avoid choosing the best result on the final test set.

Create a split buffer

For a ten-lag model, design a time split that prevents any raw measurement from appearing on both sides.

Add laboratory noise

Add ±0.2 uncertainty to observed quality and explain how it changes the interpretation of a residual of 0.3.

Trace a fault through time

Introduce a feed bias, mark when it enters the process and predict which lagged contributions should change first.

Guidance for students and parents

Students should start by writing lagged rows manually. Once alignment is correct, ordinary regression shows why past values can matter. PLS then has a clear purpose: compress a large correlated lag block while retaining quality-relevant covariance.

Parents can ask three helpful questions: Which past measurements belong to this prediction? Was the test period kept separate? What else could explain the residual? These prompts develop mathematical maturity without requiring specialised software.

Frequently asked questions

How is dynamic T-PLS different from static PLS?

Dynamic formulations include lagged relationships and decompose dynamic measurement-quality structure. Static PLS treats each row as a contemporaneous observation unless features already encode history.

How many lags should be included?

Use physical delay knowledge, exploratory evidence and grouped validation. More lags are not automatically better because dimension and leakage risk grow.

Does prediction error identify the fault?

No. It shows the quality relation is inconsistent. Diagnosis needs contributions, time order, process knowledge and measurement checks.

Can the model work before quality is measured?

It can produce a soft-sensor prediction from X, but later verified Y remains important for checking residuals, calibration and drift.

What does quality-irrelevant mean?

It means variation not related to the selected Y under the model. It may still matter for safety, wear, emissions or another unmodelled quality.

Can the model update online?

Only with a guarded policy. Updating on unreviewed data can absorb faults and changed laboratory bias into the reference.

Primary research and useful next reading

The primary dynamic T-PLS source is Gang Li, Baosheng Liu, S. Joe Qin and Donghua Zhou, “Quality Relevant Data-Driven Modeling and Monitoring of Multivariate Dynamic Processes: The Dynamic T-PLS Approach,” IEEE Transactions on Neural Networks 22(12), 2262–2271 (2011), DOI 10.1109/TNN.2011.2165853. The PubMed record verifies the authors, journal, pages and dynamic quality-monitoring focus.

Compare dynamic T-PLS with dynamic PCA. DPCA models lagged measurement structure without a quality target; dynamic T-PLS asks which lagged structures relate to Y and separates additional subspaces. The available target and decision should choose the method.

A timing audit before deployment

Before accepting a dynamic model, trace one physical unit of material or one controlled input change through the complete measurement chain. Record when the action occurs, when upstream sensors respond, when downstream sensors respond, when the sample is taken and when the laboratory result is reported. The model row should follow the physical history, not the database arrival order.

Next, check the sampling interval. A “lag of three” means three samples, so it represents three seconds at one sample per second and thirty minutes at one sample per ten minutes. Report both the index lag and the physical duration. When sampling is irregular, resampling or a model that handles actual time gaps may be necessary.

Finally, inspect transitions. Startup, grade change and shutdown often violate the steady delay assumed by a global lag model. Mark them explicitly, test them as separate groups and decide whether the monitor should abstain during transition. These checks add little glamour, yet they protect the central claim that past measurements are connected to the correct present quality.

Did you know? A laboratory result can be reported late without representing a late process response. Distinguishing measurement time, sample time and report time prevents a database delay from becoming a fictitious physical lag.