Objectives
- To develop Partial Least Squares (PLS) models using the
plsregressfunction in MATLAB.
- To evaluate and compare the predictive accuracies of PLS models for different input excitation patterns and sampling periods.
- To implement PLS models as soft sensors for predicting distillate and bottom product impurities.
Problem Statement
Distillation columns are complex multivariable systems where direct measurement of quality variables such as distillate impurity (
The process considered in this lab is represented by the Simulink model. The model has the following structure:
- Inputs (manipulated variables):
: Feed flow rate
: Reflux flow rate
: Steam flow rate to the reboiler
- Measured states (secondary variables):
: Tray temperature 1
: Tray temperature 2
: Column pressure
- Outputs (quality variables, difficult to measure):
: Distillate impurity
: Bottom impurity
Your task is to develop PLS regression models that use the available input and state variables to predict
Methodology
Data Generation
- Generate datasets from the Simulink model under different input excitation schemes:
- Uniform random signals for
, , with sampling times and .
- Sequential step changes in
, , with the same two sampling times.
- Uniform random signals for
- Collect time series of inputs (
), measured states ( ), and outputs ( ).
- Normalize or mean-center the data if required.
- Generate datasets from the Simulink model under different input excitation schemes:
PLS Model Construction
- Use the MATLAB
plsregressfunction to build PLS models for predicting and from the inputs and states.
- Construct separate models for each dataset (input shape × sampling period).
- Record regression coefficients, number of components, and model error metrics (MSE).
Example in MATLAB:
[XL, YL, XS, YS, beta, PCTVAR, MSE] = plsregress(X, Y, ncomp);where
X = [u1 u2 u3 x1 x2 x3]andY = [y1 y2].- Use the MATLAB
Accuracy Comparison
- Tabulate regression coefficients and MSE values for all models.
- Compare performance across different excitation patterns and sampling periods.
Soft Sensor Implementation
- Select the two best-performing PLS models (lowest MSE).
- Implement them in the Simulink model as prediction blocks for
and . - Test predictive capability under mixed excitations (e.g., steps in
, and random input in ). - Compare predicted impurity profiles against actual values.
Evaluation
- Comment on which conditions (input shape, sampling period) gave the most accurate models.
- Discuss robustness and limitations of PLS soft sensors.
Report Format
Your report (5 pages maximum) should include the following:
Submission Details Include a brief table at the beginning of the report with the following information:
Lab Title: Lab 07 - PLS Modelling Student Name ID Unit: CHEN4011 Student 1 12345678 Date: 12 August 2025 Student 2 87654321
Your report (maximum 5 pages excluding submission details) should include:
- Objective & Problem Statement
Summarize the purpose of PLS modeling and the need for soft sensors in distillation processes.
- Methodology & Implementation
- Describe datasets used (input shapes, sampling periods).
- Explain how PLS models were built using
plsregress. - State number of latent variables/components chosen.
- Results
- Present regression coefficients and MSE values in tables.
- Show plots comparing actual vs predicted
and . - Include results for both training and validation datasets.
- Analysis and Discussion
- Compare accuracy of models for different input excitations and sampling periods.
- Identify which models are most effective and why.
- Discuss implications for designing reliable soft sensors.
- Conclusion
- Summarize key findings on PLS model performance.
- State which model(s) are recommended as soft sensors for
and . - Discuss broader applications of PLS in chemical process monitoring and control.
Assessment Rubric
| No | Section | Marks | Evaluation basis |
|---|---|---|---|
| 1. | Objectives & Problem | 2 | Clarity of problem definition; articulation of objectives |
| 2. | Methodology and Implementation | 5 | Dataset preparation; correct use of plsregress; explanation of latent variables |
| 3. | Results | 4 | Quality of tables and plots; completeness of regression coefficients and MSE data |
| 4. | Analysis and Discussion | 6 | Comparison across cases; insights on input shapes, sampling times, and accuracy |
| 5. | Conclusion and Presentation | 3 | Clear summary; quality of writing, formatting, and visual presentation |
Citation
@online{utikar2023,
author = {Utikar, Ranjeet},
title = {Lab 07: {PLS} {Modelling}},
date = {2023-10-02},
url = {https://amc.smilelab.dev/content/labs/lab-07/},
langid = {en}
}