You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Overview
This package provides a MATLAB implementation of a Soft Sensor based on Partial Least Squares (PLS) regression. The core of the model utilizes the Non-linear Iterative Partial Least Squares (NIPALS) algorithm to efficiently extract latent variables and compute loadings and weights. It is highly suitable for industrial process data modeling.
File Structure
- main_soft_sensor.m - The main script to load data, preprocess, train the model, and evaluate performance.
- NIPALS.m - The core function that performs the NIPALS iterative decomposition.
- pls_predict.m - Function to make predictions on test data using the trained PLS model.
- r2_score.m - Function to calculate the R-squared metric.
- RMSE_indices.m - Function to calculate the Root Mean Squared Error.
- drawing.m - Visualization function to plot the results.
Usage
Simply place all the .m files and your dataset (e.g., te_data.csv) in the same directory. Run the main_soft_sensor.m script in MATLAB. You can adjust the number of latent variables (K) and the train/test split ratio directly within the main script.
Tags 标签
Cite As
Zhaoyi Wang (2026). PLS Soft Sensor via NIPALS Algorithm (https://nl.mathworks.com/matlabcentral/fileexchange/184281-pls-soft-sensor-via-nipals-algorithm), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (1.16 MB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
