e ect of random noise, quasi random noise and systematic … ·  · 2017-12-20behaviour of the...

21
Applied Mathematical Sciences, Vol. 11, 2017, no. 62, 3051 - 3071 HIKARI Ltd, www.m-hikari.com https://doi.org/10.12988/ams.2017.79283 Effect of Random Noise, Quasi Random Noise and Systematic Random Noise on Unknown Continuous Stirred Tank Reactor (CSTR) Jean Pierre Muhirwa 1 and Denis Ndanguza Department of Mathematics, College of Science and Technology University of Rwanda, P.O. Box 3900 Kigali, Rwanda Copyright c 2017 Jean Pierre Muhirwa and Denis Ndanguza. This article is distributed under the Creative Commons Attribution License, which permits unrestricted use, distribu- tion, and reproduction in any medium, provided the original work is properly cited. Abstract Continuously stirred tank reactors (CSTRs) play a big role in chemi- cal engineering and in industries nowadays. Therefore, it is important and necessary to make sure CSTRs work successfully by avoiding dis- turbance from external factors. In this paper, we look at the impact of different kind of uncertainties (errors) to the model fitting and the parameter estimation of the CSTR’s, for both cases of exothermic and endothermic reactors by taking into consideration of high and low vari- ances of noise into concentration and temperature of the model. Two parameters, activation energy E and pre-exponential Arrhenius reaction rate k 0 have been estimated and investigated, due to their sensitivities to the system facilitated by the guessed noisy data and by using Minimiza- tion Assimilation Method (MAM). Results showed that, the increase of noise in measurements affects activation energy E much more than the pre-exponential Arrhenius reaction rate k 0 for all types of noise as k 0 converges to its guessed values. Also, from the results obtained, the en- dothermic CSTR is more sensitive than the exothermic CSTR for any kind of noise according to much deviation observed in its estimated ac- tivation energy values. Furthermore, quasi random noise has provided closer values for parameter estimation compared to the remaining types of noise but with negative activation energies for both cases (exothermic and endothermic). 1 Corresponding author

Upload: votuyen

Post on 30-May-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Applied Mathematical Sciences, Vol. 11, 2017, no. 62, 3051 - 3071HIKARI Ltd, www.m-hikari.com

https://doi.org/10.12988/ams.2017.79283

Effect of Random Noise, Quasi Random Noise and

Systematic Random Noise on Unknown Continuous

Stirred Tank Reactor (CSTR)

Jean Pierre Muhirwa1 and Denis Ndanguza

Department of Mathematics, College of Science and TechnologyUniversity of Rwanda, P.O. Box 3900 Kigali, Rwanda

Copyright c© 2017 Jean Pierre Muhirwa and Denis Ndanguza. This article is distributed

under the Creative Commons Attribution License, which permits unrestricted use, distribu-

tion, and reproduction in any medium, provided the original work is properly cited.

Abstract

Continuously stirred tank reactors (CSTRs) play a big role in chemi-cal engineering and in industries nowadays. Therefore, it is importantand necessary to make sure CSTRs work successfully by avoiding dis-turbance from external factors. In this paper, we look at the impactof different kind of uncertainties (errors) to the model fitting and theparameter estimation of the CSTR’s, for both cases of exothermic andendothermic reactors by taking into consideration of high and low vari-ances of noise into concentration and temperature of the model. Twoparameters, activation energy E and pre-exponential Arrhenius reactionrate k0 have been estimated and investigated, due to their sensitivities tothe system facilitated by the guessed noisy data and by using Minimiza-tion Assimilation Method (MAM). Results showed that, the increase ofnoise in measurements affects activation energy E much more than thepre-exponential Arrhenius reaction rate k0 for all types of noise as k0

converges to its guessed values. Also, from the results obtained, the en-dothermic CSTR is more sensitive than the exothermic CSTR for anykind of noise according to much deviation observed in its estimated ac-tivation energy values. Furthermore, quasi random noise has providedcloser values for parameter estimation compared to the remaining typesof noise but with negative activation energies for both cases (exothermicand endothermic).

1Corresponding author

3052 Jean Pierre Muhirwa and Denis Ndanguza

Keywords: CSTR, Exothermic, Endothermic, Random noise, Systematicrandom noise and Quasi random noise

1 Introduction

Many years ago, continuously stirred tank reactor was used for waste treatmentonly but currently, it is used in chemical engineering to produce products fromthe given input of substances. For instance, the treatment of waste by pro-ducing organic fertilizers [6], electricity from biogas [6], production of chemicalproducts (eg: alcohols) [8], polymerization [1], etc. Based on the dynamicalbehaviour of the CSTR, it is better to understand how it operates for design-ing controllers [10]. Some methods are currently used by different authors tostudy the steady states and to prove their effectivenesses on parameter esti-mation of the CSTR such as Approximate Expectation Maximization (AEM),Approximate Maximum Likelihood Estimate (AMLE) and the ContinuouslyTime Stochastic Modelling (CTSM) [2], sigma point method in [9] and theExtended Kalman Filter method. The Extended Kalman Filter method isvery famous method for non-linear systems and was used in [11] to estimatethe valve constants (k11, k22) for the two communicating tanks-in-series pro-cess, the temperature of reaction mixture and the pre-Arrhenius reaction rate(frequency factor (k0)) for CSTRs. In their work they wanted to apply theExtended Kalman Filter method for the purpose of linearisation of the twoCSTR models around the Kalman Filter estimate. The estimation of the pa-rameters and states of the process were observed by adding white noise to themodels. Simulations and parameter estimation results showed that the Ex-tended Kalman Filter algorithm gives small deviation from the true solutions.Also, the estimated parameters converge with the minimum time for differentproposed initial values.

There is a shortage of literature found discussing some similar works whichmay take into consideration of all three kinds of noise. Again, unlike thoseabove methods, in this paper we are using MAM to estimate parameters andto study the effect of high and low different types of noise on concentration andtemperature for both models as they include parameters under investigation.We chose to use MAM estimator because it is among the methods that providesthe accuracy for parameter estimation for non-linear dynamical processes.

The goal of this work is to track the influence of three kinds of noise onCSTRs through parameter estimation and simulation. We firstly, track theinfluence of random noise which is the Gaussian distribution noise on CSTRsand may get into the system randomly, mathematically defined as R.E =(xi − x̄) [3]. Secondly, we look at the impact of quasi random noise whichis like sobol sequence on CSTRs. Quasi random noise has the property oflow-discrepancy means points are generated in a correlation procedure and are

Effect of random noise, quasi random noise and ... 3053

located in a such way that the next point to be generated knows where allprevious ones are located [7]. Finally, we investigate the effect of systematicrandom noise which is bias noise or determinate noise with systematic patterndistribution on CSTRs, mathematically defined as S.E = x̄ − µ [3]. Thiskind of noise may occur in measurements from non-calibrated measurementinstrument and hence can be measured, adjusted and corrected [3]. One canalso show how internal noise sources can be transferred to the output terminalsof a process, where the noise becomes observable to the outside world.

The paper will proceed as follows: Section 1 motivates the ideas behind theCSTR, while the Section 2 describes the model formulation. Section 3 pointsout parameters to be estimated and the source of data that is going to be usedand the tools as well. Section 4 which is the main part of this paper covers thesimulations and the interpretation of the graphs. Section 5 is the discussion ofthe results obtained whilst the last section includes conclusion and dedicationfor further work.

2 Model framework

To describe the dynamic behaviour of the CSTR with exothermic or endother-mic reactions, we have to take care of the mass component balance and en-ergy component balance [12]. Inside the CSTR, a reaction will produce newcomponents (products) while on the other hand, reduces the concentration ofthe reactants. This process may cause exothermic reactions (which releaseheat energy) or endothermic reactions (which acquire heat energy) [12]. Theschematic diagrams in Figure 1 and Figure 2 for both tanks are constructedbased on a diagram found in [5].

Figure 1: Graph describing the exothermic process with the cooling Jacket.

3054 Jean Pierre Muhirwa and Denis Ndanguza

Figure 2: Graph describing the endothermic process with the heating jacket.

Therefore, both models for exothermic and endothermic reactions insidethe tank with cooling and heating jackets are respectively derived by usingthe mass balance and conservation of the energy for which the reaction ratek depends on temperature and pre-exponential Arrhenius reaction rate k0 ac-

cording to Arrhenius equation k = k0e− E

R(∆T ) [4] and are as follow,dT (t)

dt= F

V(Tin − T (t)) − (∆H)k0e

− ER(∆T )C(t)

ρCp− UA

ρV Cp(T (t) − Tc(t)) ,

dTc(t)dt

= Fc

Vc(Tcin − Tc(t)) + UA

ρcVcCpc(T (t) − Tc(t)) ,

dC(t)dt

= FV

(Cin − C(t)) − k0e− E

R(∆T )C(t).

(1)

Where T (t), Tc(t) in (oK) and C(t) in (molem3 ) are variables which represent the

temperature, temperature of the cooling jacket and the concentration insideof the exothermic tank at time t respectively.

AnddT (t)

dt= F

V(Tin − T (t)) + (∆H)k0e

− ER(∆T )C(t)

ρCp+ UA

ρV Cp(TH(t) − T (t)) ,

dTH(t)dt

= FH

VH(THin − T (t)) − UA

ρHVHCpH(TH(t) − T (t)) ,

dC(t)dt

= FV

(Cin − C(t)) − k0e− E

R(∆T )C(t).

(2)

Where T (t), TH(t) in (oK) and C(t)in (molem3 ) represent the temperature, tem-

perature of the heating jacket and the concentration inside of the endothermictank at t successively.

Constants that are in systems of equation (1) and equation (2) are explainedin Table 1.

Effect of random noise, quasi random noise and ... 3055

Table 1: Table Constants and Parameters

Constants Descriptions Values Units

R Gas law constant 8.314 Nm3

s

Tmean Mean of temperature 298.15 oK

k0 Pre-exponential Arrhenius reaction rate to be estimated molem3

E Activation energy to be estimated J

F Volumetric flow rate in or out of tank 130 × 10−6 m3

s

V Volume of reactor 110 × 10−6 m3

∆H Enthalpy for the endothermic and exothermic 10043 × 102 and−10043 × 102

Jmole

Cin Concentration of substance flows into tank 316.8 molem3

t Time interval [0 : 20] s

ρ Density of the substance in reactor 1000 kgm3

cp Heat capacity of reactor 4186 JkgoK

Tin Temperature of the substance flows into tank 250C = 298.350K oKU Heat transfer coefficient 10000 No unitA Heat transfer area 0.015 m2

FH Volumetric flow rate of the heating substance 465 × 10−7 m3

s

VH Volume of the heating jacket 50 × 10−6 m3

ρH Density of the heating substance 1000 kgm3

cpH Heat capacity of heating jacket 4186 JkgoK

THin Temperature of the heating substance 288.15 oKTc(t) Temperature of cooling Jacket at time t to be computed oK

ρc Density of the cooling substance 1000 kgm3

cpc Heat capacity of the cooling Jacket 4186 JkgoK

Fc Volumetric flow rate of the coolant 465 × 10−7 m3

s

Vc Volume of the cooling Jacket 50 × 10−6 m3

Tcin Temperature of the cooling substance 288.15 oK

3 Estimation of parameters

Data: We assume real activation energies (E) and pre-exponential Arrheniusreaction rates (k0) for generating data from models, which in turns the noiseis added to the concentration and temperature data for proving guessed pa-rameters of models. Therefore, the noisy data is used to estimate back theparameters and fitting models. Several results of estimated parameters andtheir difference from guessed parameters were noted during simulation periodusing Scilab codes. Deviation of estimated solutions from guessed solutions(residuals), its squared with the mean squared residuals were plotted to ob-serve their variations as one of the analysis method. Finally, residuals areanalysed through plots and their variations are observed. Parameters to beestimated are E and k0 and we use the MAM to estimate these parameters.

3056 Jean Pierre Muhirwa and Denis Ndanguza

4 Numerical simulations

This section shows results achieved by doing simulations and parameter es-timation. Since we are dealing with two cases, the exothermic continuouslystirred tank reactor and endothermic continuously stirred tank reactor, to-gether with three types of noise, results are categorized into six subsections.Performing our simulations we chose the values of parameters according to ourguessed parameters. We have fixed the guessed parameters to be k0 = 0.9 ,E = 0.5 for the exothermic CSTR case and k0 = 0.4, E = 0.5 for the endother-mic CSTR case. We have run our simulations 5 times by guessing the valuesof parameters. These guesses were chosen based on the following criteria: byguessing higher values than the fixed parameters, higher values than the fixedparameters but closer, less values than the fixed parameters but closer, smallvalues compared to the fixed parameters and the final guess become fixed pa-rameters. The highest guess of values is [1, 1] for all cases of the exothermicand endothermic CSTR. Higher but closer guess values are [1, 0.6] and [0.5, 0.6]for the exothermic and endothermic cases respectively. Less but closer guessesare [0.8, 0.4] for exothermic case and [0.3, 0.4] for endothermic case. A very lessguess of values is [0.1, 0.1] for all cases whereas the last guesses are [0.9, 0.5]and [0.4, 0.5] for the exothermic and endothermic CSTRs respectively wherethe first value in bracket represents the guess for pre-exponential Arrheniusreaction rate while the second is the guess for activation energy.

The simulations were facilitated by the constants values and the parametersthat are described in Table 1.

4.1 Random noise effect on the exothermic CSTR

For σ = 2, the fitted curves and the residuals graphs are as shown in Figure 3.

Effect of random noise, quasi random noise and ... 3057

0 20102 4 6 8 12 14 16 18

200

300

160

180

220

240

260

280

320

340

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

fitted concentration

fitted temperature

cool temperature

(1) Fitted exothermic graph with sigma=2

0 20102 4 6 8 12 14 16 18

0

−1

1

−0.8

−0.6

−0.4

−0.2

0.2

0.4

0.6

0.8

1.2

1.4

1.6

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

conctr residuals

temp residuals

cool temp residuals

(2) Difference between true sol and estimated sol (Residuals)

0 20102 4 6 8 12 14 16 18

0

2

1

0.2

0.4

0.6

0.8

1.2

1.4

1.6

1.8

2.2

2.4

2.6

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr residuals square

temp residuals square

cool temp residuals square

(3) Squared residuals graph

Figure 3: plots (1), (2) and (3) respectively show the model fitting, residualsand squared residuals of exothermic CSTR model. σ = 2 and the fixed param-eters k0 = 0.9 and E = 0.5 are involved in numerical simulations. Estimatedparameters are k0 = 0.8853 and E = 377.2327.

From Figure 3, the result shows that the estimated pre-exponential Ar-rhenius reaction rate approaches the fixed value with the difference of 0.0147while the activation energy is too far from its estimated value. In sub-plot(2), more residuals of temperature are above zero in a scale of [−0.4, 1.59],which indicates that more temperature observations are greater than the es-timated temperature of the reactor. This is not the case for concentrationresiduals since almost 50% of the observations are greater than the estimatedconcentration while almost the other 50% are lower in the range [−0.9, 1.1].The difference between the observations and the estimated values is not verysignificant since the scale of residuals is small. In sub-plot (3), the squaredresiduals are varying in the range [0, 1.34] and [0, 2.49] with the mean valuesof 0.34584 and 0.5917550 for the concentration and temperature respectively.We cannot observe the squared residuals of the cooling temperature on thesquared residuals graph because they are around 0 with a very small meanvalue of 0.00082698. Hence, the results are quite good as the variation ofresiduals is at a low scale with small mean values. Therefore, the data isfitting the model well.

We now repeat the above simulations when σ = 10. The results are asshown in Figure 4.

3058 Jean Pierre Muhirwa and Denis Ndanguza

0 20102 4 6 8 12 14 16 18

200

300

160

180

220

240

260

280

320

340

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

fitted concentration

fitted temp

heating temp

(1) Fitted exothermic graph with sigma=10

0 20102 4 6 8 12 14 16 18

0

−4

−2

2

4

−5

−3

−1

1

3

5

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture concentr residuals

temp residuals

cool temp residuals

(2) Difference between true sol and estimated sol (Residuals)

0 20102 4 6 8 12 14 16 18

0

20

10

2

4

6

8

12

14

16

18

22

24

26

time

con

cen

tration

and

te

mp

era

ture

concentr residuals square

temp residuals square

cool temp residuals square

(3) Squared residuals graph

Figure 4: Sub-plots (1), (2) and (3) respectively show the model fitting, resid-uals and squared residuals of the exothermic CSTR model. σ = 10 and thefixed parameters are k0 = 0.9 and E = 0.5. Estimated parameters from Mini-mization Assimilation method are k0 = 0.9044 and E = −129.39.

In Figure 4, the estimated pre-exponential Arrhenius reaction rate is greaterbut converges to its fixed value with the difference of 0.0044 while the activa-tion energy becomes negative and diverges from its fixed value. The negativevalue for the activation energy, physically indicates that the reaction cannotbe stopped, unless the reactants are kept away from the tank. In sub-plot(2), the scale of concentration and the temperature residuals becomes highand ranges between −5 and 5 . This implies that the significance of the dif-ference between the observations and the estimated values of the temperatureand concentration is considerable. In sub-plot (3), the squared residuals ofthe concentration vary in [0, 24.53] with the mean value of 7.8652, and thesquared residuals of the temperature range from 0 up to 24.74 with the meanvalue of 7.8723. The squared residuals of the cooling temperature vary nearzero with the mean value of 0.000023. Hence, the variation and mean valuesof the squared residuals of the concentration and temperature increase. Thisis the reason why the data does not fit the model well.

Effect of random noise, quasi random noise and ... 3059

4.2 Random noise effect on the endothermic CSTR

0 20102 4 6 8 12 14 16 18

300

240

260

280

320

230

250

270

290

310

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

fitted concentration

fitted temperature

heating temperature

(1) Fitted endothermic graph with sigma=2

0 20102 4 6 8 12 14 16 18

0

1

−0.8

−0.6

−0.4

−0.2

0.2

0.4

0.6

0.8

1.2

1.4

1.6

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

conctr residuals

temp residuals

cool temp residuals

(2) Difference between true sol and estimated sol (Residuals)

0 20102 4 6 8 12 14 16 18

0

2

1

0.2

0.4

0.6

0.8

1.2

1.4

1.6

1.8

2.2

2.4

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr residuals square

temp residuals square

cool temp residuals square

(3) Squared residuals graph

Figure 5: Sub-plots (1), (2) and (3) respectively represent the model fitting,residuals and squared residuals of the endothermic CSTR model. The levelof noise is σ = 2 and the fixed parameters involved in numerical implemen-tation are k0 = 0.4 and E = 0.5. Estimated parameters from MinimizationAssimilation method become k0 = 0.3948 and E = 485.69.

The results obtained from Figure 5 also look good as the pre-exponential Arrhe-nius reaction rate is closer to its fixed value with only a difference of 0.0052,although the activation energy does not converge. It is however among thesmallest values compared to the estimated activation energies obtained in thiswork. In sub-plot (2), the scale of concentration residuals is [−0.8, 1.7] whilethe temperature residuals are skewed and almost a half of them are greaterthan zero on a scale of [−0.4, 1.58]. The difference between the observationsand the estimated values of the concentration and the temperature is not high.The squared residuals of the concentration range between 0 and 1.31 with themean value of 0.3028747 and the squared residuals of the temperature vary inthe range [0, 2.4] with the mean value of 0.5334537. The mean value of thesquared residuals of the heating temperature is 0.00029228. Fortunately, goodfitting can be seen in Figure 5, as most of the data points are in a margin offitting the curves.

The fitting model and the residuals graphs of CSTR with the endothermicreaction when σ = 10 are as represented in Figure 6.

3060 Jean Pierre Muhirwa and Denis Ndanguza

0 20105 15

300

240

260

280

320

230

250

270

290

310

time

Co

nce

ntr

atio

n a

nd

Te

mp

era

ture

fitted concentr

fitted temp

heating temp

(1) Fitted endothermic graph with sigma=10

0 20105 15

0

−4

−2

2

4

−5

−3

−1

1

3

5

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture conctr residuals

temp residuals

cool temp residuals

(2) Residuals

0 20105 15

0

20

10

2

4

6

8

12

14

16

18

22

24

26

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr resid square

temp resid square

cool temp resid square

(3) Squared residuals graph

0 20105 15

0

20

10

2

4

6

8

12

14

16

18

22

24

26

time

co

nce

ntr

atio

n

(4) Squared resid of concentr graph

0 20105 15

0

20

10

2

4

6

8

12

14

16

18

22

24

26

time

tem

pe

ratu

re

(5) Squared resid of temp graph

Figure 6: Graphs representing the endothermic CSTR model. Sub-plot (1)points out both fitting concentration and temperature curves. Sub-plot (2)shows the residuals while sub-plots (3), (4) and (5) show the squared residuals.The experimental parameters are k0 = 0.4 and E = 0.5 whilst estimatedparameters are k0 = 0.3782 and E = 3606.8. The level of random noise isgiven by σ = 10.

The result shows that the variability in the pre-exponential Arrhenius reac-tion rates has increased slightly with the difference of 0.0218 and the estimatedactivation energy remains large compared to the results obtained in Figure 5.The range of residuals has also increased and becomes [−5, 5] for both temper-ature and concentration. Almost half of the residuals are above zero while theother half are below zero. This implies that almost 50% of the observationsare greater than the estimated values while the other 50% are less than theestimated temperature and concentration solutions. The difference betweenobservations and the estimated values is significant since more of the residu-als are not around zero. The residuals of concentration squared vary in therange [0, 25] with the mean value of 7.7814381 whereas the squared residualsof temperature vary between 0 and 24.8 with the mean value of 7.8997289, ascan be seen in sub-plots (4) and (5) of Figure 6. The obtained mean valueof the squared residuals of the heating temperature is 0.000086324, which isvery small and negligible. Few data points among hundred fit the model whileothers are far away from the model.

4.3 Quasi random noise effect on the exothermic CSTR

The fitted curves and the residual graphs of the exothermic CSTR when σ = 2are represented in Figure 7.

Effect of random noise, quasi random noise and ... 3061

0 20105 15

200

300

160

180

220

240

260

280

320

340

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

fitted concentr

fitted temp

heating temp

(1) Exothermic fitted graph with sigma=2

0 20105 15

0

−4

−2

2

4

−5

−3

−1

1

3

5

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

conctr residuals

temp residuals

cool temp residuals

(2) Residuals

0 20105 15

0

20

10

2

4

6

8

12

14

16

18

22

24

time

co

nce

ntr

atio

n

(3) Graph of squared resid of concentr

0 20105 15

0

20

10

2

4

6

8

12

14

16

18

22

24

time

tem

pe

ratu

re

(4) Graph of squared resid of Temp

Figure 7: Plots showing the fitted curves of the exothermic CSTR model.Sub-plot (1) points out the fitted temperature and concentration. Sub-plot (2)represents the residuals while sub-plots (3) and (4) show the squared residualsof concentration and temperature respectively. The experimental parametersare k0 = 0.9, E = 0.5 and the estimated parameters become k0 = 0.9006,E = −25.7933.

As the previous case of the exothermic CSTR, the estimated parameters arecomputed using the fminsearch function in scilab. The obtained estimated pre-exponential Arrhenius reaction rate is greater than its experimental parameterbut converges to its fixed value k0 = 0.9 with the small difference of 0.0006.The estimated activation energy is negative and greater than its fixed valuein absolute value. However, it is the closest result in absolute value obtainedcompared to the other results obtained in this research. To quantify how goodthe fit is in Figure 7, we based on the variation of the residuals and the squaredresiduals of the components (variables) of the models. In sub-plot (2), theconcentration and temperature residuals are located in a range of [−4.5, 4.85],but more of them are accumulated in interval [−1, 1]. Therefore, not muchdeviation between observations and estimated values were observed. Again,the squared residuals of the concentration vary in the range of 0 and 23.2 withthe mean value of 3.6297, while the squared residuals of the temperature vary ina range of [0, 23.4] with the mean value of 3.63. The squared residuals of coolingtemperature vary around zero with a negligible mean value of 0.0000020521 asit could not be seen on the squared residuals graph. An enormous number ofdata points among a hundred fit the curves.

3062 Jean Pierre Muhirwa and Denis Ndanguza

0 20102 4 6 8 12 14 16 18

200

300

140

160

180

220

240

260

280

320

340

360

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

fitted concentr

fitted temp

cool temp

(1) Exothermic fitted graph with sigma=10

0 20102 4 6 8 12 14 16 18

0

−20

20

−10

10

−25

−15

−5

5

15

25

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture conctr residuals

temp residuals

cool temp residuals

(2) Residuals

0 20102 4 6 8 12 14 16 18

0

200

400

600

100

300

500

50

150

250

350

450

550

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr residuals square

temp residuals square

cool temp residuals square

(3) Squared residuals graph

Figure 8: Graphs showing the fitted curves of exothermic CSTR model. Sub-plot (1) shows the fitted temperature and concentration. Sub-plot (2) repre-sents the residuals while sub-plot (3) shows the squared residuals of concen-tration and temperature. The fixed parameters are k0 = 0.9, E = 0.5 and theestimated parameters become k0 = 0.903, E = −131.54. The noise level isdetermined by σ = 10.

From Figure 8, the simulations show that the pre-exponential Arrheniusreaction rate converges to its fixed value with the difference of 0.003 while theactivation energy becomes high in the negative sense. The squared residualsof the concentration and temperature vary in intervals [0, 580.4] and [0, 585.3]with the mean values of 90.74 and 90.75 respectively, as seen in sub-plot (3).The squared residuals of the cooling temperature vary around 0 but with themean value of 0.0000509, which cannot be seen on the squared residuals graph.The scale of residuals has increased from −22 to 24 with more of them between[−5, 5]. Therefore, the difference between the observations and the estimatedvalues is large as may be viewed in Figure 8. As a consequence, a small numberof data points among a hundred fit the concentration and temperature curves.

4.4 Quasi random noise effect on the endothermic CSTR

The endothermic CSTR fitted curves, residual graphs and its estimated pa-rameters with σ = 2 and σ = 10 are visualized in Figure 9 and Figure 10respectively.

Effect of random noise, quasi random noise and ... 3063

0 20105 15

300

240

260

280

320

230

250

270

290

310

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

fitted concentr

fitted temp

heating temp

(1) Endothermic fitted graph with sigma=2

0 20105 15

0

−4

−2

2

4

−5

−3

−1

1

3

5

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture conctr residuals

temp residuals

cool temp residuals

(2) Residuals

0 20105 15

0

20

10

2

4

6

8

12

14

16

18

22

24

time

co

nce

ntr

atio

n

(3) Graph of squared resid of concetr

0 20105 15

0

20

10

2

4

6

8

12

14

16

18

22

24

time

te

mp

era

ture

(4) Graph of squared resid temp

Figure 9: Graph (1) represents the model fitting, graph (2) represents theresiduals, graphs (3) and (4) show the squared residuals of concentration andtemperature respectively. Level of noise is σ = 2 and the experimental param-eters involved in numerical simulations are k0 = 0.4 and E = 0.5. Estimatedparameters from Minimization Assimilation method become k0 = 0.4008 andE = −144.1007.

0 20105 15

200

300

220

240

260

280

320

340

210

230

250

270

290

310

330

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

fitted concentr

fitted temp

heating temp

(1) Fitted endothermic graph with sigma=10

0 20105 15

0

−20

20

−10

10

−25

−15

−5

5

15

25

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

conctr residuals

temp residuals

cool temp residuals

(2) Residuals

0 20105 15

0

200

400

600

100

300

500

50

150

250

350

450

550

time

co

nce

ntr

atio

n

(3) Graph of squared resid of concentr

0 20105 15

0

200

400

600

100

300

500

50

150

250

350

450

550

time

tem

pe

ratu

re

(4) Graph of squared resid of temp

Figure 10: Sub-plot (1) represents the model fitting, sub-plot (2) representsthe residuals while sub-plots (3) and (4) show the squared residuals of con-centration and temperature respectively. Level of noise is σ = 10 and theexperimental parameters involved in numerical simulations are k0 = 0.4 andE = 0.5. Estimated parameters from Minimization Assimilation method be-come k0 = 0.4037 and E = −705.8411.

3064 Jean Pierre Muhirwa and Denis Ndanguza

It is clear that the values of the estimated activation energy has increasedin the absolute value compared to the result obtained from Figure 9. However,the pre-exponential Arrhenius reaction rate converges to its fixed value withthe difference error of 0.0037. The difference between the observations and theestimated solutions is significant as the concentration and temperature resid-uals vary between −22 and 24 with most of them accumulated in [−5, 5]. Thevariations of squared residuals of the concentration and temperature become[0, 580.2] and [0, 585.2] with the mean values of 90.7415 and 90.7572 respec-tively, and hence slightly increase. The mean value of the squared residuals ofthe heating temperature for this case is 0.00001911, which allows the squaredresiduals of the heating temperature to be around zero and negligible. Conse-quently, the data points do not fit the model well compared to the fitted curvesin Figure 9. This is the negative impact of high variability in the numericalsolutions caused by the increase of the quasi random noise.

4.5 Systematic random noise effect on the exothermicCSTR

Figure 11 indicates the fitted exothermic CSTR models with systematic ran-dom noise produced by σ = 2, as well as the residuals on sub-plots (2) and(3).

0 20102 4 6 8 12 14 16 18

200

300

160

180

220

240

260

280

320

340

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture fitted concentr

fitted temp

cool temp

(1) Exothermic fitted graph with sigma=2

0 20102 4 6 8 12 14 16 18

0

2

−1

1

−0.5

0.5

1.5

2.5

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr residuals

temp residuals

cool temp residuals

(2) Residuals

0 20102 4 6 8 12 14 16 18

0

2

4

1

3

5

0.5

1.5

2.5

3.5

4.5

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr residuals square

temp residuals square

cool temp residuals square

(3) Squared residuals graph

Figure 11: Graphs representing the fitted curves of exothermic CSTR model.Sub-plot (1) shows the fitting temperature and concentration curves. Sub-plots (2) and (3) respectively show the residuals and squared residuals. Thefixed parameters involved in data Assimilation are k0 = 0.9, E = 0.5 and theobtained estimated parameters are k0 = 0.8893, E = 65.5958. The level ofsystematic noise is determined by σ = 2.

Effect of random noise, quasi random noise and ... 3065

The results show that the parameter for the activation energy does notconverge to the fixed value. Nevertheless, it is the second among the smallestestimated activation energy values in this research. The pre-exponential Ar-rhenius reaction rate converges to the fixed parameter with the difference errorof 0.0107. The concentration residuals are spreading in a range of [−0.7, 1.2],but more among them are accumulated in [−0.5, 0.5]. On the other hand, thetemperature residuals are varying in a range of [0.2, 2.14] with a big number ofthem in the scale of [0.5, 1.5]. Therefore, small differences between solutions ofconcentrations, temperatures and their estimated values are experienced in asystem. From sub-plot (3), the squared residuals of the concentration vary inthe range [0, 1.5146] with the mean value of 0.349 while the squared residualsof the temperature range from 0 up to 4.5929 with the mean value of 1.6231.The squared residuals for the cooling temperature are varying around zerowith the mean value of 0.0045. As the residual values and their mean valuesare small, then, all hundred data points fit the model as it is shown in Figure11.

The same fitted and residual graphs but different standard deviation σ =10, are shown in Figure 12.

0 20102 4 6 8 12 14 16 18

200

300

180

220

240

260

280

320

340

190

210

230

250

270

290

310

330

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

fitted concentr

fitted temp

cool temp

(1) Fitted exothermic graph with sigma=10

0 20102 4 6 8 12 14 16 18

0

10

−4

−2

2

4

6

8

12

−3

−1

1

3

5

7

9

11

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr residuals

temp residuals

cool temp residuals

(2) Residuals

0 20102 4 6 8 12 14 16 18

0

100

20

40

60

80

120

10

30

50

70

90

110

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr residuals square

temp residuals square

cool temp residuals square

(3) Graph of squared residuals

Figure 12: Graphs representing the fitted curves of exothermic CSTR model.Sub-plot (1) shows the fitting temperature and concentration curves. Sub-plots (2) and (3) respectively show the residuals and squared residuals. Thefixed parameters involved are k0 = 0.9, E = 0.5 and estimated parameters arek0 = 0.847, E = 364.97. The level of systematic random noise is determinedby σ = 10.

In Figure 12, the result shows that the activation energy becomes large com-pared to its fixed parameter, but the pre-exponential Arrhenius reaction rate

3066 Jean Pierre Muhirwa and Denis Ndanguza

seems to converge since the only difference from its estimated value is 0.053.From these estimated values, we can say that they become large comparedto the results obtained in Figure 11. In sub-plot (1) of Figure 12, variabil-ity of noisy data increased in the fitting models. The scale of concentrationresiduals has increased from −3.5 to 6.15 with an accumulation of them inthe range [−2, 2] while the residuals of temperature increase the scale from 0up to 10.7 with more accumulation in [3, 8]. Hence, the difference betweenthe observations and the estimated values becomes big. From sub-plot (3),the squared residuals of concentration are varying in [0, 37.878] with the meanvalue of 8.7 and the squared residuals of the temperature are varying in a rangeof [0, 114.81] with the mean value of 40.6 while the squared residuals of thecooling temperature vary around zero with the mean value of 0.112. Hence,the mean values of the squared residuals for the concentration and the tem-perature have increased. Therefore, a large number of data points does not fitthe model well.

4.6 Systematic random noise effect on the endothermicCSTR

For σ = 2 also we want to find out the effect of this kind of noise on theendothermic CSTR and the fitted curves and residuals graphs are as show inFigure 13.

0 20102 4 6 8 12 14 16 18

300

240

260

280

320

230

250

270

290

310

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

fitted concentration

fitted temperture

heating temperature

(1) Fitted endothermic graph with sigma=2

0 20102 4 6 8 12 14 16 18

0

2

−1

1

−0.5

0.5

1.5

2.5

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr residuals

temp residuals

heating temp residuals

(2) Residuals

0 20102 4 6 8 12 14 16 18

0

2

4

1

3

5

0.5

1.5

2.5

3.5

4.5

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr resid square

temp residuals square

cool temp resid square

(3) Graph of squared residuals

Figure 13: Graphs showing the fitted curves and residuals graph of endother-mic CSTR model. Sub-plot (1) shows the fitted curves, sub-plots (2) and(3) represent the residuals and squared residuals respectively. In this case,the experimental parameters are k0 = 0.4 and E = 0.5 while the estimatedparameters become k0 = 0.388 and E = 1173. Level of noise is given by σ = 2.

Effect of random noise, quasi random noise and ... 3067

In Figure 13, the rate of reaction converges to the fixed parameter with thedifference error of 0.012 but the activation energy diverges from its fixed value.In sub-plot (2), the concentration residuals are oscillating between −0.8 and1.6 with much accumulation in a range of [−0.5, 1] while the scale of the tem-perature residuals is varying in [0.1, 2.1] with much accumulation in [0.5, 1.9].Hence, there is no big difference between the observations (concentration andtemperature) and their estimated values. The plot of squared residuals showsthat the squared residuals of the concentration are varying in [0, 1.35] with themean value of 0.370099, while the squared residuals of temperature are varyingin [0, 4.65] with the mean value of 1.561065. The mean value of the squaredresiduals of the heating temperature becomes 0.0015, which is very small. Asa result, the data points fit the model well.

Lastly, we show the effect of systematic random noise on the endothermicCSTR model when the level of noise raised up to σ = 10.

0 20102 4 6 8 12 14 16 18

300

240

260

280

320

230

250

270

290

310

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

fitted concentration

fitted temperture

heating temperature

(1) Fitted endothermic graph with sigma=10

0 20102 4 6 8 12 14 16 18

0

10

−6

−4

−2

2

4

6

8

12

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr residuals

temp residuals

heating temp residuals

(2) Residuals graph for endother sigma=10

0 20102 4 6 8 12 14 16 18

0

100

20

40

60

80

120

10

30

50

70

90

110

time

co

nce

ntr

atio

n a

nd

te

mp

era

ture

concentr resid square

temp resid square

heating temp resid square

(3) Graph of squared residuals

Figure 14: Graphs showing the fitted curves and residuals graph of the en-dothermic CSTR model. Sub-plot (1) shows the fitted curves, sub-plots (2)and (3) represent the residuals and squared residuals respectively. In this case,the experimental parameters are k0 = 0.4 and E = 0.5 while the estimatedparameters become k0 = 0.3442 and E = 5352.8. Level of noise is given byσ = 10.

From Figure 14, the estimated activation energy E becomes very large,while k0 has known deviation of 0.0558 from its fixed value. In sub-plot (2),the concentration residuals are oscillating in interval [−4, 5.63], with moreaccumulation in a scale of [−2, 3] while the temperature residuals are boundedin [0.9, 10.73] with high accumulation in [2, 9]. Hence, most of the observationsare different from the estimated values. Also, the squared residuals of the

3068 Jean Pierre Muhirwa and Denis Ndanguza

concentration are varying in a range of [0, 31.7] with the mean value of 10.0174whilst the squared residuals of the temperature are spreading in [0, 115] withthe mean value of 47.332562. The squared residuals of the heating temperatureare oscillating around zero and its mean value becomes 0.0474. The rangeof residuals has increased and the squared residuals for concentration andtemperature of the process have increased. The impact corresponds to muchdeviation in the model fitting as observed in Figure 14.

5 Discussions of results

The effect of 3 different kinds of noise (Random, Quasi and systematic) withdifferent levels (σ = 2, σ = 10) on both exothermic and endothermic processeshas been discussed in section 4. Based on simulations and parameter estima-tion results, it has been shown that the increase of any kind of noise into tanksalters the behaviour of the tanks. For instance, it highly changes the parame-ters of the models in both negative and positive directions. This causes muchdeviation of estimated solutions from true solutions as shown in residuals andsquared residuals graphs. Furthermore, one of the tanks is more influenced bynoise and that is the tank which requires endothermic reaction. More foundingand explanations are summarized in Table 2.

Effect of random noise, quasi random noise and ... 3069

Table 2: The table of Results

Exothermic CSTR Endothermic CSTRFixed parameters are [k0, E]=[0.9, 0.5] fixed parameters are [k0, E]=[0.4, 0.5]guesses=[1, 1];[1,0.6];[0.8,0.4];[0.1,0.1];[0.9,0.5] guesses=[1, 1];[0.5,0.6];[0.3,0.4];[0.1,0.1];[0.4,0.5]Random noise for σ = 2 Random noise for σ = 2estimated are k0 = 0.8853 and E = 377.2327 estimated are k0 = 0.3948 and E = 485.6932mean of squared resid of the concentr is 0.34584 mean of squared resid of the concentr is 0.3028747mean of squared resid of the temp is 0.5917550 mean of squared resid of the temp is 0.5334537mean of squared resid of the cooling temp is0.00082698

mean of squared resid of the heating temp is0.00029228

Random noise for σ = 10 Random noise for σ = 10estimated are k0 = 0.9044 and E = −129.39 estimated are k0 = 0.3782 and E = 3606.8183mean of squared resid of the concentr is 7.8652 mean of squared resid of the concentr is 7.7814381mean of squared resid of the temp is 7.8723 mean of squared resid of temp is 7.8997289mean of squared resid of the cooling temp is 0.000023 mean of squared resid of the heating temp is

0.000086324Quasi random noise for σ = 2 Quasi random noise for σ = 2estimated are k0 = 0.9006 and E = −25.7933 estimated k0 = 0.4008 and E = −144.1007mean of squared resid of the concentr is 3.6297 mean of squared resid of the concentr is 3.6297mean of squared resid of the temp is 3.6303 mean of squared resid of the temperature is 3.6303mean of squared resid of the cooling temp is0.0000020521

mean of squared resid of the heating temp is0.00000077041

Quasi random noise for σ = 10 Quasi random noise for σ = 10estimated are k0 = 0.903 and E = −131.54 estimated are k0 = 0.4037 and E = −705.8411mean of squared resid of the concentr is 90.74 mean of squared resid of the concentr is 90.7415mean of squared resid of the temp is 90.75 mean of squared resid of the temp is 90.7572mean of squared resid of the cooling temp is0.0000509

mean of squared resid of the heating temp is0.000019111

Systematic random noise for σ = 2 Systematic random noise for σ = 2estimated are k0 = 0.8893 and E = 65.5958 estimated are k0 = 0.388 and E = 1173.0331mean of squared resid of the concentr is 0.349 mean of squared resid of the concentr is 0.370099mean of squared resid of the temp is 1.6231 mean of squared resid of the temp is 1.561065mean of squared resid of cooling temp is 0.0045 mean of squared resid of heating temp is 0.0015Systematic random noise for σ = 10 Systematic random noise for σ = 10estimated k0 = 0.847 and E = 364.97 estimated are k0 = 0.3442 and E = 5352.8252mean of squared resid of the concentr is 8.7454 mean of squared resid of the concentr is 10.0174mean of squared resid of the temp is 40.577 mean of squared resid of the temp is 47.332562mean of squared resid of the cooling temp is 0.112 mean of squared resid of the heating temperature

temp is 0.0474

6 Conclusion

In this paper, numerical simulations and the parameter estimation of CSTRsbased on exothermic and endothermic reactions have been discussed using theMinimization Assimilation method (Least squares method). We introduced

3070 Jean Pierre Muhirwa and Denis Ndanguza

three types of noise with different levels σ = 2 and σ = 10 to the numericalsolutions obtained by fixing parameters of the model, in order to generate sixdifferent kinds of data, taken as observations or measurements of the contin-uously stirred tank reactors (exothermic and endothermic CSTRs) at time t.This noise data helped us to simulate and estimate the parameters, where theincrease of noise into the system has an impact on the parameter estimationand the model fitting as shown in simulation part. The different parameterswere fixed to be k0 = 0.9 and E = 0.5 for the CSTR with exothermic reactionsand k0 = 0.4 , E = 0.5 for the CSTR with endothermic reactions and havebeen compared with their estimated parameter values.

The influence of noise on the parameter estimation and the fitting modelfor continuously stirred tank reactors was tracked, by observing the differencebetween the experimental parameter values and the estimated ones. The bestfitting was determined by computing the variation of residuals, squared resid-uals and their mean values in the system. The smaller the variation and themean values of residuals, the best fit the model. The results show that theMinimization Assimilation Method seems to fail to provide convergent activa-tion energies though, the pre-exponential Arrhenius reaction rate converges.Moreover, the increase of noise into the system influences the activation en-ergy more than the pre-exponential Arrhenius reaction rate. The activationenergies of endothermic CSTR show the behaviour of being influenced by thenoise more than the ones of exothermic CSTR. The fact that the method failedto provide convergent values for activation energy has not, to our knowledge,been explained as our system is not identifiable. The challenge we faced inthis research is to test whether our estimated parameters are robust, since thisone requires the exact and real data from any known system. Therefore ,theloss of information may have resulted from guessing the parameters. Furtherwork needs to be done on this challenge by using real measurements from theknown process as the case of study or by considering the other methods toprove these parameters.

Acknowledgements. The authors would like to express appreciation andgratitude to Prof. Tuomo and Dr. Matylda for their help and guidance duringthis research. We also acknowledge the funding support from Eastern AfricaUniversities Mathematics Programme (EAUMP)-University of Rwanda node.

References

[1] B. Grassl and W. F. Reed, Online polymerization monitoring in a con-tinuous reactor, Macromolecular Chemistry and Physics, 203 (2002), no.3, 586- 597. https://doi.org/10.1002/1521-3935(20020201)203:3<586::aid-macp586>3.0.co;2-i

Effect of random noise, quasi random noise and ... 3071

[2] H. Karimi, Parameter estimation techniques for nonlinear dynamic modelswith limited data, process disturbances and modeling errors, (2013).

[3] P. Karkalousos and A. Evangelopoulos, Quality Control in Clinical Labo-ratories, Applications and Experiences of Quality Control, INTECH OpenAccess Publisher, 2011. https://doi.org/10.5772/15865

[4] K. J. Laidler, The development of the Arrhenius equation, Journal ofChemical Education, 61 (1984), no. 6, 494.https://doi.org/10.1021/ed061p494

[5] B. G. Osorio, H. B. Castro and J. D. S. Torres, (2011), State and unknowninput estimation in a CSTR using higher-order sliding mode observer, IXLatin American Robotics Symposium and IEEE Colombian Conference onAutomatic Control, 2011 IEEE, (2011), 1-5.https://doi.org/10.1109/larc.2011.6086829

[6] L. E. Rowse, Design of Small Scale Anaerobic Digesters for Applicationin Rural Developing Countries, Diss., University of South Florida, 2011.

[7] S. Sahu, Multivariate Adaptive Regression Spline Based Framework forStatistically Parsimonious Adaptive Dynamic Programming, Diss., Uni-versity of Texas at Arlington, 2011.

[8] O.C. Sitton and J.L. Gaddy, Ethanol production in an immobilized-cellreactor, Biotechnology and Bioengineering, 22 (1980), no. 8, 1735-1748.https://doi.org/10.1002/bit.260220814

[9] D. Telen, D. Vercammen, F. Logist and J. Van Impe, Robustifying op-timal experiment design for nonlinear, dynamic (bio) chemical systems,Computers and Chemical Engineering, 71 (2014), 415-425.https://doi.org/10.1016/j.compchemeng.2014.09.006

[10] J. Vojtesek and P. Dostal, Simulation analyses of continuous stirred tankreactor, In Proceedings of the 22nd European Conference on Modellingand Simulation, (2008), 506-511. https://doi.org/10.7148/2008-0506

[11] J. Voros, J. Miklevs and L. Cirka, Parameter estimation of nonlinearsystems, Acta Chimica Slovaca, 1 (2008), no. 1, 309-320.

[12] M.J. Willis, Continuous Stirred Tank Reactor Models, Dept. of Chemicaland Process Engineering, University of Newcastle, 2000.

Received: September 25, 2017; Published: December 19, 2017