Lab 05: Artificial Neural Networks

CHEN4011: Advanced modeling and Control

Author
Published

September 10, 2023

Objectives

  1. To develop ANN model using MATLAB Neural Net Fitting toolbox.
  2. To simulate the ANN model as a soft sensor in Simulink.

Problem Statement

A distillation column top product impurity (percentage impurity) is known to be strongly related to one of the tray temperatures and column differential pressure. Figure 1 illustrates the distillation column simulation in Simulink. Note that u1 denotes the feed flow rate, u2 the feed heavy component molar fraction, x1 the tray temperature, x2 the differential pressure and Y the distillate percentage impurity.

Distillation column distillate product impurity (Y) representation in Simulink.

Product purity model

x1 transfer function (based on u1):

\[ x_1(s) = \frac{1}{3 s + 1} \tag{1}\]

x2 transfer function (based on u2):

\[ x_2(s) = \frac{0.7 s - 0.5}{s^2 + s + 1} \tag{2}\]

Relation between x and Y

\[ y = 2.5 + 0.9 x_1 - 0.3 x_2 - 0.1 x_1 x_2 + 0.05 {x_1}^2 - 0.06 {x_2}^2 \tag{3}\]

You wish to develop an ANN model to predict the distillate impurity. You decide to use uniform random number generator with sampling time of 1 unit to be applied to the feed flow rate and heavy component molar fraction. Additionally, you wish to test the ANN model predictive capability using another set of data generated using step changes applied to the two inputs: 1 unit step up in u1 at t = 1, followed by 1 unit step down in u2 at t = 20, then 1 unit step up in u2 at t = 30 and finally 1 unit step down in u1 at t = 65.

  1. Develop an ANN model (Y as a function of x1 and x2) using the data generated over the following simulation time:
    1. 100 units simulation time (ANN 1)
    2. 200 units simulation time (ANN 2)
  2. Implement the ANN models in the Simulink (use the given Simulink model) and perform simulation of the distillate impurity to compare the ANN model prediction with the actual impurity.

Report Format

The report should be no more than 5 pages excluding the cover page.

  1. Describe your models. For each ANN model (ANN1 and ANN2) above, state the number of hidden layers used, and R2 in addition to showing the regression plot. You might try different number of hidden layers in order to get the best fitting results. [4 marks]

  2. Show your implementation of the ANN models. Show the responses (figures) of the ANN predicted values and the actual impurity when the u1 and u2 are subjected to the sequence of step changes mentioned above. [4 marks]

  3. Comment on the ANN model prediction accuracy. [2 marks]

Citation

BibTeX citation:
@online{utikar2023,
  author = {Utikar, Ranjeet},
  title = {Lab 05: {Artificial} {Neural} {Networks}},
  date = {2023-09-10},
  url = {https://amc.smilelab.dev//content/labs/lab-05},
  langid = {en}
}
For attribution, please cite this work as:
Utikar, Ranjeet. 2023. “Lab 05: Artificial Neural Networks.” September 10, 2023. https://amc.smilelab.dev//content/labs/lab-05.