Next Article in Journal
Additive Manufacturing with Thermoplastic Collagen
Next Article in Special Issue
AFM Characterization of Temperature Effect on the SU-8 Mechanical and Tribological Properties
Previous Article in Journal
Identification of Representative Equivalent Volumes on the Microstructure of 3D-Printed Fiber-Reinforced Thermoplastics Based on Statistical Characterization
Previous Article in Special Issue
Experimental and Numerical Evaluations of Localized Stress Relaxation for Vulcanized Rubber
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Unscented Kalman Filter-Based Robust State and Parameter Estimation for Free Radical Polymerization of Styrene with Variable Parameters

National-Local Joint Engineering Laboratory for Digitalize Electrical Design Technology, College of Electrical and Electronic Engineering, Wenzhou University, Wenzhou 325035, China
*
Author to whom correspondence should be addressed.
Polymers 2022, 14(5), 973; https://doi.org/10.3390/polym14050973
Submission received: 28 January 2022 / Revised: 22 February 2022 / Accepted: 23 February 2022 / Published: 28 February 2022

Abstract

:
The free radical polymerization of styrene (FRPS) is a complex process system with uncertain parameters in its mechanistic model. When the reaction conditions are switched, or the reaction process generates faults, the parameters will change. Therefore, state and parameter estimation (SPE) becomes an important part of the process monitoring and process control for free radical polymerization of styrene. The unscented Kalman filter (UKF) is widely used for nonlinear process systems, but it rarely considers the problem of model parameter uncertainty. UKF can be used for SPE, called UKF-based SPE (UKF-SPE), where the parameters are usually estimated simultaneously as an extension of the state space. However, when the parameters change with system switching, the traditional UKF-SPE cannot detect and track the parameter changes in time, and inaccurate parameters generate modeling errors. To deal with the problem, a UKF-based robust SPE method (UKF-RSPE) for the free radical polymerization of styrene with variable parameters is proposed, introducing a parameter testing criterion based on hypothesis testing and moving windows to directly detect whether the parameters have changed. Based on the detection results, a gradient descent method with adaptive learning rate is used to iteratively update the parameters to speed up the tracking of the parameters and to obtain more accurate parameters and states. Finally, the proposed UKF-based robust SPE is applied to free radical polymerization of styrene in a jacketed continuous stirred tank reactor. The experimental results verify the effectiveness and robustness of the method, which can track the parameters faster and obtain more accurate states.

1. Introduction

The output of the free radical polymerization of styrene is distributed, called distribution output, and the control of the distribution output is critical because it significantly affects product quality. Therefore, accurate estimation of states and parameters is important to monitor the process of free radical polymerization of styrene. Models of free radical polymerization of styrene usually generate modeling errors due to uncertain parameters. In order to obtain accurate states and parameters, state and parameter estimation (SPE) plays an important role in the free radical polymerization of styrene.
State estimation, also called filtering, uses the redundancy of a real-time measurement system to improve data accuracy, automatically eliminates error messages caused by random disturbances, and can estimate states. Kalman proposed the Kalman filter (KF) in 1960, which was restricted to linear systems [1,2]. Subsequently, Bucy et al. proposed the extended Kalman filter (EKF) by linearizing the nonlinear equations to first order through Taylor expansions, but it inevitably introduced approximation errors [3]. In 1999, Julier et al. proposed the unscented Kalman filter (UKF) based on the unscented transformation (UT) to overcome the problem of EKF, which is widely used for nonlinear systems [4].
The free radical polymerization process of styrene is a large nonlinear dynamic model. Already in 1981, Schmidt and Ray proposed a mathematical model for the dynamics of polymerization in a jacketed continuous stirred tank reactor (CSTR). The model contains the material balance equation for different molecular weight polymer concentrations and derives the differential equation for the heavy mean molecular weight [5]. The state estimation of the free radical polymerization of styrene allows to accurately grasp the reaction process, predict the trend of the reaction, and reconcile the measured data. Based on this model, Zhang and Chen developed two data-processing algorithms, including correntropy-based nonlinear dynamic data reconciliation (CNDDR) and gross error detection and identification (GEDI), which greatly reduced the effect of gross errors on the reconciliation results of free radical polymerization of styrene [6]. Hu et al. proposed a robust EKF combined with measurement compensation (MC-REKF), and applied it to this model to compensate for gross errors in measurements and obtained accurate states [7].
Since the process model of free radical polymerization of styrene is complex, many modeling approaches are now available. Hu et al. effectively combined Elman neural network (ENN) with EKF to form a data-driven dynamic data coordination scheme, called ENN-EKF, which is able to model the free radical polymerization of styrene and effectively suppress the effect of measurement noise [8]. Al-Harthi et al. developed a comprehensive mathematical model for atom transfer radical copolymerization reactions in intermittent reactors [9]. Mohammadi et al. modeled styrene radical polymerization in a stirred tank reactor-spinning disc reactor (STR-SDR) device using Kinetic Monte Carlo (KMC) algorithm [10]. Maafa et al. developed a dynamic Monte Carlo model capable of simulating the polymerization of styrene with a bifunctional radical initiator in an intermittent reactor [11]. Woloszyn et al. developed a styrene polymerization model with bifunctional free-radical initiators in a batch reactor and considered the effect of parameters on model predictions [12]. Meißner et al. used machine learning to identify parameters [13]. Uncertainty of parameters, a problem in modeling, will have a huge impact on the mechanistic modeling of the free radical polymerization of styrene.
In order to obtain the accurate parameters of the mechanism model, a number of KF-based parameter estimation methods have been developed and are used in academia and industry. Kiparissides et al. used EKF to estimate the state variables and time-varying termination rate constants of the model [14]. Yousefi-Darani et al. used UKF for online estimation of biomass, glucose, and ethanol concentrations, and growth rate parameters [15]. Zhou et al. proposed a state-input-parameter mixed KF (SIPMKF) to deal with the coexistence of uncertain model parameters and control inputs [16]. Kim et al. proposed a method in estimating important parameters of gray-box model based on real nonlinear electroencephalogram (EEG) [17]. Geraldi et al. proposed a new UKF method for estimating synchronous generator parameters using measurements under unbalanced operating conditions [18]. Peng et al. proposed a battery modeling and online parameter identification method based on the Davinan equivalent circuit model (ECM) and recursive least squares (RLS) algorithm with forgetting factor [19]. Kong et al. proposed a new parameter adaptive method aging for state of charge (SOC) estimation [20]. Nakamura and Kawamura used the UKF to estimate the heat capacity and solar radiation shadow coefficients [21]. Li et al. used a joint state parameter UKF estimation method by adding state vectors to include model parameters to estimate the unknown states and parameters [22]. Chen et al. used UKF to estimate model parameters of a resistance-capacitance (RC) model [23]. Rodríguez et al. proposed a dual KF, which is used for state estimation and parameter estimation [24]. Wan et al. proposed a new UKF algorithm combined with the Huber method [25]. Lee and Song proposed a dual adaptive UKF to identify parameters of a dynamic system [26]. Ding et al. proposed a new Bayesian adaptive UKF algorithm for the aerodynamic parameter and noise estimation for aircraft dynamical systems [27]. Although the above scholars have studied the application and improvement of KF in parameter estimation, they have not been used in free radical polymerization of styrene with variable parameters. Most of the above studies used the method of state and parameter estimation, which is seen as an extension of the state by setting the parameters as time-varying parameters, and this method is called artificial evolution, and this strategy is widely used in SPE techniques [28,29].
The traditional SPE with slow tracking parameters will lead to slow convergence of the measurement error, making accurate parameter estimation difficult. Wang et al. proposed a new adaptive law to achieve optimal parameter estimation to maintain simultaneous convergence of the estimation error and tracking error [30]. To accomplish accurate and fast parameter estimation, gradient descent methods with adaptive learning rate are used to optimize filters. Common methods of adaptive learning rate include Delta-bar-delta [31], AdaGrad [32], RMSProp (Root-Mean-Square-Prop), Adam [33], etc. Long et al. proposed an adaptive online parameter identification method based on gradient descent optimization (GDO) and a variable iteration step search method based on the RMSProp gradient descent optimization (RMSprop-GDO) method to reduce the search time required for the optimal iteration step [34]. Long et al. proposed an online gradient learning algorithm with adaptive learning rate for identifying the parameters of a neuro-fuzzy system with a Gaussian fuzzy set representing the Mamdani fuzzy model [35]. Na et al. proposed an adaptive parameter estimation framework for the nonlinear systems with time-varying parameters [36].
Although the influence of parameters in the mechanistic model of free radical polymerization of styrene is taken into account, the state of the reaction process will change with the variation of parameters when the operating conditions of the reaction are changed, or some failure occurs in the reaction. Therefore, parameters and states need to be estimated together to obtain an accurate system model and estimated states. Because of the limitations of artificial evolution, these parameters cannot be tracked quickly and accurately by traditional SPE. In this paper, a UKF-based robust SPE method for free radical polymerization of styrene with variable parameters is proposed. A hypothesis test-based parameter testing criterion is introduced to directly identify whether the parameters change. Based on the identification results, the learning rate of the gradient descent method is adaptively modified, and the gradient descent method is used to accelerate the parameter tracking. Finally, accurate parameters and states are obtained simultaneously.
The remainder of the paper is organized as follows. The foundations of UKF-based SPE are reviewed in Section 2. Section 2.1 introduces the algorithm of standard UKF for state estimation, and Section 2.1 introduces UKF-based SPE. In Section 3, the UKF-based robust SPE scheme is proposed to improve parameter estimation performance, which combines moving window and adaptive learning rate gradient descent. The proposed UKF-based robust SPE is applied to free radical polymerization of styrene with variable parameters, and the results demonstrate the effectiveness the proposed UKF-based robust SPE in Section 4. Finally, the conclusions are drawn in Section 5.

2. Foundations of UKF-Based SPE

2.1. Review of Standard UKF

KF is a model-based linear minimum variance estimation, which is widely used in stochastic signal processing, but it is only applicable to linear systems. EKF solves this problem, but it must do a Taylor expansion of the nonlinear system equations and retain only the linear term, so EKF is only applicable to weakly nonlinear systems, and the stronger the nonlinearity, the larger the estimation error. To solve the estimation problem of nonlinear systems, UKF is proposed. UKF is based on the minimum variance estimation of the model like KF, while the model of UKF is a nonlinear system. The standard state space model of nonlinear dynamic system containing state equation and measurement equation has a discrete form, which can be described as
x k = f ( x k 1 , u k 1 , θ ) + w k 1
z k = h ( x k , u k , θ ) + v k
where k denotes the time step of the system operation. x k R N x × 1 is the process state of system, which is usually unknown during system operation; z k R N z × 1 is the vector of measurement; and u k 1 is the vector of input. f = [ f 1 ; f 2 ; ; f N x ] and h = [ h 1 ; h 2 ; ; h N z ] are the state equations and measurement equations, respectively. w k 1 and v k are the vectors of uncorrelated zero-mean white noise, i.e., E { w i v j T } = 0 , i , j . The process noise w k 1 and the measurement noise v k are assumed to Gaussian distribution, i.e., w k 1 ~ G ( w k 1 ; 0 , Q ) , and v k ~ G ( v k ; 0 , R ) , the process noise covariance matrix Q and measurement noise covariance matrix R depend on the sensor accuracy and the interference of environmental factors in the system, respectively. Q and R are then set as diagonal matrices and are assumed to be constant in the present work. θ is the vector of constants parameters. For traditional state estimation, the parameters are known constants, but as the system becomes more complex, uncertain parameters may appear in the model. This is also the focus of this paper’s research.

2.1.1. Unscented Transformation

The major difference between UKF and KF is the finding of the optimal gain array, which depends on the mean and covariance. The UKF uses the unscented transformation (UT) to deal with the nonlinear transfer problem of the mean and covariance [4]. In Figure 1, the UT generates Sigma points in the original state distribution based on certain rules, and the mean and covariance of these points are equal to the original state distribution, and then the nonlinear system equations are used for nonlinear transfer to obtain the set of nonlinear function values, which leads to the transformed mean and covariance. Suppose the random vector X is nonlinearly transformed by f ( · ) to obtain the random vector Y , i.e., Y = f ( X ) . If the mean X ¯ and covariance matrix P X X of X is known, the mean Y ¯ and covariance matrix P Y Y of Y can be calculated by UT. The detailed steps are as follows.
χ ( i ) = { X ¯ , i = 0 X ¯ + P X X , i , i = 1 ~ 2 N x ( N x + λ ) P X X = [ p 1 , p 2 , , p N x ] ( N x + λ ) P X X = [ p N x + 1 , p N x + 2 , , p 2 N x ]
The sigma points are transferred through f ( · ) to obtain the transformed sigma points Y ( i ) .
Y ( i ) = f ( χ ( i ) ) , i = 0 ~ 2 N x
Then, the weights are determined according to the symmetric sampling rule as
W m ( i ) = { λ N x + λ , i = 0 1 2 ( N x + λ ) , i = 1 ~ 2 N x
W c ( i ) = { λ N x + λ + ( 1 - α 2 + β ) , i = 0 1 2 ( N x + λ ) , i = 1 ~ 2 N x
λ = α 2 ( N x + κ ) - N x
where N x donates Dimension of X . W m ( i ) and W c ( i ) are the mean weight and covariance weight of the i t h sigma point, respectively. In the above equation, λ is a scaling parameter used to reduce the total prediction error. α , κ , and β are the parameters to be selected, α is a small positive constant ( 10 4 α 1 ); κ = 3 - N x has to ensure that the matrix ( N x + λ ) P X X is semi-positive definite; β is related to the form of the distribution of X , β = 2 is optimal for a Gaussian distribution.
Finally, the mean and covariance matrix after the nonlinear mapping is calculated as
Y ¯ i = 0 2 N x W m ( i ) Y ( i )
P Y Y = i = 0 2 N x W c ( i ) [ Y ( i ) Y ¯ ] [ Y ( i ) Y ¯ ] T

2.1.2. UKF for State Estimation

Standard UKF is based on the UT, which takes the transformed mean and covariance and is used to calculate the optimal gain array. Generally, UKF performs two UTs, using the state equation and measurement equation for nonlinear transfer, which correspond to the time update phase and measurement update phase of UKF, respectively. For the standard nonlinear system, the steps of UKF are as follows [4,25].
Firstly, in order to make the state estimation value always unbiased in the filtering process, i.e., E [ x ^ k ] = E [ x k ] , the initial condition of the UKF can be given by
x ^ 0 = E [ x 0 ]
P 0 = E [ ( x 0 x ^ 0 ) ( x 0 x ^ 0 ) T ]
where x ^ 0 is the initial state vector of UKF; P 0 is the initial covariance matrix; and x 0 is the initial true state vector.
In the time update stage, according to the initial condition, the 2 N x + 1 sigma points x k 1 | k 1 ( i ) can be obtained as
χ k 1 | k 1 ( i ) = { x ^ k 1 , i = 0 x ^ k 1 + p k 1 , i , i = 1 ~ 2 N x ( N x + λ ) P k 1 = [ p 1 , k 1 , p 2 , k 1 , , p N x , k 1 ] ( N x + λ ) P k 1 = [ p N x + 1 , k 1 , p N x + 2 , k 1 , , p 2 N x , k 1 ]
where χ k 1 | k 1 ( i ) is the i t h sigma point of x ^ k 1 at time step k , p k 1 , i is the i t h column of ( N x + λ ) P k 1 or ( N x + λ ) P k 1 , which donate the i t h column of the square root of the lower triangular decomposition of ( N x + λ ) P k 1 .
Next, the nonlinear transfer is performed on the sigma points and the priori estimation is calculated as
χ k | k 1 ( i ) = f ( χ k 1 | k 1 ( i ) , u k 1 , θ )
x ^ k | k 1 = i = 0 2 N x W m ( i ) χ k | k 1 ( i )
P k | k - 1 = i = 0 2 N x W c ( i ) [ x ^ k | k - 1 χ k | k - 1 ( i ) ] [ x ^ k | k - 1 χ k | k - 1 ( i ) ] T + Q
where χ k | k 1 ( i ) is the one-step prediction of sigma points, x ^ k | k 1 is the priori estimation of the state vector, and P k | k - 1 is the priori estimation of the covariance matrix.
In the measurement update stage, a new set of sigma points is generated as
χ k | k 1 * ( i ) = { x ^ k | k 1 , i = 0 x ^ k | k 1 + p k | k 1 , i , i = 1 ~ 2 N x ( N x + λ ) P k | k 1 = [ p 1 , k | k 1 , p 2 , k | k 1 , , p N x , k | k 1 ] ( N x + λ ) P k | k 1 = [ p N x + 1 , k | k 1 , p N x + 2 , k | k 1 , , p 2 N x , k | k 1 ]
where χ k | k 1 * ( i ) is the i t h new sigma point of x ^ k 1 at time step k , p k | k 1 , i is the i t h column of ( N x + λ ) P k | k 1 or ( N x + λ ) P k | k 1 , which donate the i t h column of the square root of the lower triangular decomposition of ( N x + λ ) P k | k 1 .
As in the time update stage, a nonlinear transfer of measurement equation is performed on the new sigma points and the priori estimation of measurement is calculated as
z k | k 1 ( i ) = h ( χ k | k 1 * ( i ) , u k , θ )
z ^ k | k 1 = i = 0 2 N x W m ( i ) z k | k 1 ( i )
where z k | k 1 ( i ) is the one-step prediction of measurements of sigma points, z ^ k | k 1 is the priori estimation of the measurement.
The covariance P z z , k and P x z , k can be obtained by the weighted summation of the sigma point set as
P z z , k = i = 0 2 N x W c ( i ) [ z k | k 1 ( i ) z ^ k | k 1 ] [ z k | k 1 ( i ) z ^ k | k 1 ] T + R
P x z , k = i = 0 2 N x W c ( i ) [ χ k | k 1 ( i ) x ^ k | k 1 ] [ z k | k 1 ( i ) z ^ k | k 1 ] T
Then, the Kalman gain matrix K k calculation is obtained as
K k = P x z , k P z z , k 1
Finally, the estimated state and the covariance can be calculated as
x ^ k = x ^ k | k 1 + K k [ z k z ^ k | k 1 ]
P k = P k | k - 1 K k P z z , k K k T
According to the estimated state and measurement equation, measurement is reconciled as
z ^ k = h ( x ^ k , u k , θ )
The above process is the standard UKF for state estimation, which does not take into account the time-varying parameters in the system and is only applicable when the parameters are known.

2.2. UKF-Based SPE

Considering the problem of system parameter estimation, the complex system will contain several uncertain parameters, and assuming that the parameters are time-varying, define the time-varying parameter vector θ k at time step k , which is a random vector with zero mean. Therefore, SPE can be achieved by considering θ k as an extension of the state space, which is estimated together with the state vector [29].
x k = [ x k θ k ]
where x k is augmented state vector, which considers the parameters as part of the state.
The nonlinear dynamic system model can be rewritten with the augmented state x as
x k = f ( x k 1 , u k 1 ) + w k 1 = [ f ( x k 1 , u k 1 , θ k 1 ) f θ ( θ k 1 ) ] + [ w k 1 ς k 1 ]
z k = h ( x k , u k ) + v k = h ( x k , u k , θ k ) + v k
where f ( · ) = [ f f θ ] is augmented state equation and w k 1 = [ w k 1 ς k 1 ] is augmented process noise vector with covariance matrix Q .
The state equation f θ for parameter vector can be expressed as
θ k = f θ ( θ k 1 ) + ς k 1 = θ k 1 + ς k 1
where ς k 1 ~ G ( 0 , S ) is the white noise with zero mean satisfying Gaussian distribution, S is covariance matrix of parameters, the value of which is assumed to be small. Q combined with S yields the augmented covariance matrix Q .
Q = [ Q 0 0 S ]
Therefore, standard UKF can also be extended for the application of SPE. The process of UKF-based SPE is shown in Figure 2 and its algorithm is derived as follows.
χ k 1 | k 1 ( i ) = { x ^ k 1 , i = 0 x ^ k 1 + p k 1 , i , i = 1 ~ 2 ( N x + N θ ) ( N x + λ ) P k 1 = [ p 1 , k 1 , , p N x , k 1 , p N x + 1 , k 1 , , p N x + N θ , k 1 ] ( N x + λ ) P k 1 = [ p N x + N θ + 1 , k 1 , , p 2 N x + N θ , k 1 , p 2 N x + N θ + 1 , k 1 , , p 2 ( N x + N θ ) , k 1 ]
χ k | k 1 ( i ) = f ( χ k 1 | k 1 ( i ) , u k 1 )
x ^ k | k 1 = i = 0 2 ( N x + N θ ) W m ( i ) χ k | k 1 ( i )
P k | k - 1 = i = 0 2 ( N x + N θ ) W c ( i ) [ x ^ k | k - 1 χ k | k - 1 ( i ) ] [ x ^ k | k - 1 χ k | k - 1 ( i ) ] T + Q
χ k | k 1 * ( i ) = { x ^ k | k 1 , i = 0 x ^ k | k 1 + p k | k 1 , i , i = 1 ~ 2 ( N x + N θ ) ( N x + λ ) P k | k 1 = [ p 1 , k | k 1 , , p N x , k | k 1 , p N x + 1 , k | k 1 , , p N x + N θ , k | k 1 ] ( N x + λ ) P k | k 1 = [ p N x + N θ + 1 , k | k 1 , , p 2 N x + N θ , k | k 1 , p 2 N x + N θ + 1 , k | k 1 , , p 2 ( N x + N θ ) , k | k 1 ]
z k | k 1 ( i ) = h ( χ k | k 1 * ( i ) , u k )
z ^ k | k 1 = i = 0 2 ( N x + N θ ) W m ( i ) z k | k 1 ( i )
P z z , k = i = 0 2 ( N x + N θ ) W c ( i ) [ z k | k 1 ( i ) z ^ k | k 1 ] [ z k | k 1 ( i ) z ^ k | k 1 ] T + R
P x z , k = i = 0 2 ( N x + N θ ) W c ( i ) [ χ k | k 1 ( i ) x ^ k | k 1 ] [ z k | k 1 ( i ) z ^ k | k 1 ] T
K k = P x z , k P z z , k 1
P k = P k | k - 1 K k P z z , k K k T
The estimated states and parameters are calculated as
[ x ^ k θ ^ k ] = x ^ k | k 1 + K k [ z k z ^ k | k 1 ]
Finally, the measurements are reconciled as
[ x ^ k θ ^ k ] = x ^ k | k 1 + K k [ z k z ^ k | k 1 ]
This strategy is known as artificial evolution, which treats fixed model parameters θ as stochastic time-varying model parameters θ k [29]. The ability of SPE to track the variation of parameters depends heavily on the covariance matrix S . In the practical case, the parameters are fixed and S should be zero, but then UKF will lose the ability of parameter estimation and the estimated parameters will remain time-invariant. If S is large, the stochastic wander implies an increase in covariance as the number of iterations increases, which will cause the parameters θ k to gradually deviate from the fixed parameters θ . Therefore, S is usually set to a matrix of small values.

3. UKF-Based Robust SPE for System with Variable Parameters

UKF-SPE fixes the variance of each system parameter to a small value, and when the parameters are fixed, UKF-SPE gives good estimates. However, the values of parameters can change when the operating conditions switch or when certain faults occur. Due to the limitations of traditional UKF-SPE, changes in the parameters cannot be tracked quickly. Since the covariance matrix S in UKF-SPE is small and fixed, the parameters change slowly during the UKF-SPE tracking iterations, which will produce large estimation errors. This section proposes a reliable method to solve the problem.
At the time step k , the parameters of the process model change, which will result in a corresponding change in the estimated parameters. If the parameters are fixed, the estimated parameters will not change accordingly and converge to a fixed value. Parameter testing based on the trend of parameter changes can be used to identify parameter changes. Once changes in parameters are detected, a gradient descent method is used to speed up the tracking of the parameter, and the learning rate is adaptively adjusted to stabilize the estimated parameters.

3.1. Parameters Test

Assuming that UKF-SPE correctly estimates the augmented state, the parameters and states estimated by Equation (41) can be split from this vector. If the parameters do not change, the values of estimated parameters satisfy normal distribution in the vicinity of the correct parameters. Once the system has switched and the parameters have changed, the estimated parameters will deviate from their original values with certain rules. Therefore, based on the corresponding characteristics of parameters, for diagnosing whether the estimated parameters are true or not, a moving window containing information about the estimated parameters in the time series is used to calculate the mean θ ¯ n , k and variance s n , k 2 of each parameter in the window, as shown in Figure 3.
θ ¯ n , k = 1 W i = 0 W 1 θ ^ n , k i
s n , k 2 = 1 W 1 i = 0 W 1 ( θ ^ n , k i θ ¯ n , k ) 2
where W is the size of the move window. Regarding the choice of W , W is a hyperparameter, which is usually obtained according to the empirical method. W needs to be set to an appropriate size. If W is too small, the parameters within the window will have a certain size of variance due to random noise. Conversely, if W is too large, the window contains too much historical information, which can lead to misclassification of the correct parameters.
In order to distinguish whether the parameters are true or not based on their means and variances, statistical methods based on hypothesis testing are used. Firstly, the null hypothesis ( H 0 ) and the alternative hypothesis ( H 1 ) can be defined as
H 0 : θ ^ i , k = θ i H 1 : θ ^ i , k θ i
where θ ^ i , k and θ i is the i t h estimated parameter and true parameter, respectively.
Due to the parameter noise ς k is related to S , the test statistic for the χ 2 distribution can be established as
χ 2 ( W 1 ) = ( W 1 ) S n , n s n , k 2
Based on the quantified variance set for parameters, statistics determined χ α 2 ( W 1 ) by the significance level α can be set and the probability event can be described as
P { s n , k 2 χ α 2 ( W 1 ) W 1 S n , n } = P { s n , k 2 s t h 2 } = α
Based on the threshold s t h 2 , s n , k 2 can be tested with the equivalent null hypothesis ( H 0 ) and alternative hypothesis ( H 1 ):
H 0 : θ ^ i , k = θ i s n , k 2 s t h 2 H 1 : θ ^ i , k θ i s n , k 2 > s t h 2
Since the parameters estimated by UKF-SPE fluctuate within a small range of the correct parameters, the variance of the latest correct parameters is much smaller than the variance of the incorrect parameters, which is close to zero. If the variance of the estimated parameters in the moving window is below the defined threshold ( s t h 2 ), then the estimated parameters θ ^ k is identified as the true parameters; otherwise, they are the false parameters. Once an estimated parameter is judged to be false, then the RMSProp gradient descent method is used to modify the parameters.

3.2. RMSProp Gradient Descent

Once the system has switched, the parameter test results will judge that the parameters have changed and the estimated parameters will deviate from their original values, showing a trend towards the true parameters, which can be defined as gradient. With the gradient descent method, the information of the loss function E k is used to calculate the gradient [8], and the parameters are corrected along the direction of the gradient. The gradient descent method is to modify the parameters by iterations to minimize the loss. Assuming that the measurement is desired, the loss function is set to squared error, expressed as
E k = 1 2 ( z k z ^ k ) T ( z k z ^ k )
According to the rule of back propagation, the gradient can be calculated as
Γ k 1 = E k θ k 1 = ( z k z ^ k ) h θ k 1
The observation error r k can be obtained by Equation (27).
r k = z k z ^ k = h ( x k , u k , θ ) + v k h ( x ^ k , u k , θ ^ k )
Equation (51) can be approximated as a first-order Taylor expansion as follows
r k = z k z ^ k h θ k ( θ ^ k θ ^ k 1 )
The gradient Γ k 1 is approximated as
Γ k 1 h θ k ( θ ^ k θ ^ k 1 ) h θ k 1 = D k ( θ ^ k θ ^ k 1 ) T
where D k = T h θ k h θ k 1 , T is the interval time between two samples. It can be found that the gradient is related to the trend of the parameters. The gradient is also a modification quantity for the parameters, assuming that the learning rate is η , and the parameters can be modified as
θ ^ k 1 * = θ ^ k 1 η Γ k 1
where θ ^ k 1 * is the vector of modified parameters, η is a fixed constant which will lead to large fluctuations of parameter estimation results. The ideal learning rate is set large at the beginning, with a fast convergence rate, and then decays slowly to ensure stable arrival at the optimal point, as shown in Figure 4. η can be turned into a time-varying learning rate vector η k 1 . The learning rate adaptive algorithm often uses RMSProp, which uses exponentially decaying averaged gradients to discard past historical information, allowing it to converge quickly after finding the gradient minimum, solving the problem of large oscillations in optimization.
RMSProp needs to calculate the cumulative squared gradient as
λ k 1 = ρ λ k 2 + ( 1 ρ ) Γ k 1 Γ k 1
where ρ [ 0 , 1 ) is the rate of reduction. The learning rate of each parameter is then updated to
η i , k 1 = ε δ + λ i , k 1
where ε is the global learning rate, δ is a small constant that makes the value stable when divided by a decimal, usually set to 10−6. η i , k 1 A is the learning rate of the i t h parameter, RMSProp chooses a different learning rate for each parameter. Equation (54) can be rewritten as
θ ^ k 1 * = θ ^ k 1 η k 1 Γ k 1
Finally, with the modified parameter vector θ ^ k 1 * , the UKF-SPE is re-conducted to obtain new x ^ k and θ ^ k , the measurements are also reconciled to new z ^ k .
The proposed UKF-based robust SPE considers the effect of parameter changes and is applicable to nonlinear dynamic systems with variable parameters. When the system is switched, or a failure occurs, the system parameters change, and the parameter testing based on hypothesis testing and moving windows is introduced to detect whether the system parameters have changed. Based on the detection results, the RMSProp gradient descent method that adaptively modifies the learning rate is used to fast track the changed parameters. The proposed UKF-based robust SPE algorithm is shown as follows (Algorithm 1).
Algorithm1: UKF-based robust SPE
Input:  x ^ k 1 ; θ ^ k 1 ; z k
Begin:
Step 1. Extend the state vector to obtain x k 1 .
Step 2. Conduct UKF-SPE based on x k 1 to estimate x ^ k , θ ^ k , and reconcile z ^ k .
Step 3. Conduct parameters test:
1. Calculate the mean θ ¯ n , k and variance s n , k 2 of each estimated parameter in the window using Equations (43) and (44);
2. Performing hypothesis testing;
   For n = 1: N θ
     If null hypothesis H 0 is accepted, θ ^ i , k = θ i , skip the following steps to output
     Else θ ^ i , k θ i , proceed to the next step
Step 4. Conduct RMSProp gradient descent:
1. Calculate loss E k using Equation (49);
2. Calculate the approximate gradient Γ k 1 using Equation (53);
   3. Calculate the learning rate η i , k 1 for each parameter using Equation (56);
4. Modify parameters using Equation (57);
Step 5. Re-conduct UKF-SPE based on the modified parameters to estimate x ^ k , θ ^ k , and reconcile z ^ k .
End
Output:  x ^ k ; θ ^ k ; z ^ k

4. Case Studies

To verify the effectiveness of the proposed UKF-RSPE, the UKF-RSPE was applied to a typical nonlinear dynamic process system and the free radical polymerization of styrene. All case studies were performed by using MATLAB 2016a.

4.1. Case Study 1: Typical Nonlinear Dynamic System

In order to simply show the effect of the proposed UKF-RSPE, the proposed UKF-RSPE is applied to a typical nonlinear dynamic process system, which is commonly used in filter testing [29,37]. Its mathematical model can be expressed as
x k = x k 1 2 + θ x k 1 1 + x k 1 2 + 8 cos ( 1.2 k ) + w x , k 1
z k = 1 20 x k 2 + v z , k 1
where v k 1 and v z , k 1 are the process noise and the measurement noise with standard deviations of 0.1, respectively. θ is the model parameter. Under normal conditions, the value of the parameter θ is set to be 25. If a fault occurs, the parameter changes to be 12.5. To keep track of the changed parameter, the state vector and the state equations are expanded to be
x k =    [ x k   θ k       ] = [ x k 1 2 + θ k - 1 x k 1 1 + x k 1 2 + 8 cos ( 1.2 k ) θ k - 1 ] + [ w x , k 1   ς θ , k 1 ]
where ς θ , k 1 is the parameter noise with the standard deviation of 0.01.
In this simulation, W is set to be 5, α is set to be 0.05. The simulation time step is set to be 500 and the value of parameter changes at time step 200. The initial state is set to be x ( 0 ) = [ 0 , 25 ] . The comparison results of SPE are shown in Figure 5, Figure 6 and Figure 7. The comparison of the estimated results of the state in Figure 5 shows that the distribution of system state changes at time step 200. Since the random noise in the simulation is small, it can be clearly seen that the state error of the traditional UKF-SPE estimation increases significantly after the fault occurs in Figure 5b. Compared with the traditional UKF-SPE, the proposed UKF-RSPE can achieve more accurate state estimation. In Figure 6, the comparison of the estimated results of parameter directly shows that the parameter changes from 25 to 12.5. The traditional UKF-SPE cannot track the true parameter quickly, while UKF-RSPE can track the parameters quickly and accurately and reduce the error of parameter estimation. Due to the presence of the learning rate in UKF-RSPE, there is a small fluctuation after the estimated parameter reaches the true value. With the learning rate continuously updating, the parameter is finally stabilized around the true value. Finally, the measurements are reconciled according to the estimated states and parameters. The comparison of the reconciled results of measurements shows that the UKF-RSPE can reconcile measurements, and the measurement error of the UKF-RSPE is smaller than that of UKF-SPE, as shown in Figure 7.
To further quantify the effect of UKF-RSPE, the statistical information of estimated results is listed in Table 1. Compared with the traditional UKF-SPE, the MSE of state estimation is reduced from 20.4359 to 0.8509; and the MSE of parameter estimation is reduced from 26.4655 to 1.3346. The MSE of the measurement data is 0.0106; due to the failure, the traditional UKF-SPE cannot accurately estimate the status, resulting in the MSE of measurements increasing to be 4.3588, but the UKF-RSPE can reduce the MSE to be 0.3375. Therefore, the proposed UKF-RSPE can be applied to the general nonlinear dynamic system with variable parameter and achieve more accurate state and parameter estimation.

4.2. Case Study 2: Free Radical Polymerization of Styrene

To verify the effectiveness of the proposed UKF-RSPE, the UKF-RSPE was applied to the free radical polymerization of styrene. This paper uses the mathematical model of dynamics of polymerization in a jacketed continuous stirred tank reactor proposed by Schmidt and Ray [5]. The reaction mechanism of free radical polymerization of styrene is divided into decomposition reaction of initiator, initiator reaction to form monomer radical, chain propagation reaction, and termination reaction. First of all, the reaction mechanisms start with the decomposition reaction of an initiator such as azodiisobutyronitrile (AIBN) [38] which can be represented as
I k d , 0 , E d 2 R * ( Decomposition   reaction )
where I is the initiator involved in the decomposition reaction that produces the radical R * . k d , 0 and E d are the specific reaction rate constant and energy of activation of the decomposition reaction.
Hereafter, the radical R * reacts with the monomer M in the initiation reaction to produce P 1 which is a live polymer of the unit chain length.
R * + M k i , 0 , E i P 1 ( Initiator   reaction )
where k i , 0 and E i are the specific reaction rate constant and energy of activation of the initiation reaction.
The propagation reaction for P n , alive polymer of n units of monomer to produce P n + 1 , starting with P 1 is given by
P n + M k p , 0 , E p P n + 1 ( Propagation   reaction )
where k p , 0 and E p are the corresponding specific reaction rate constant and energy of activation of the propagation reaction
Afterwards, the polymer product is obtained from the dead polymer product M n + m with chain lengths of n + m units of monomer formed by the termination reaction.
P n + P m k t , 0 , E t M n + m ( Termination   reaction )
where k t , 0 and E t are the corresponding specific reaction rate constant and energy of activation of the termination reaction. The above reaction conditions are listed in Table 2.
The feed and output flow rates and the feed solvent concentration do not change with time throughout the reaction. It is assumed that the feed is equal to the output and there is no solvent build-up in the reactor.
The mechanistic model describes the actual dynamic process of free radical polymerization of styrene, in which the products have distributional properties, such as the concentrations of the polymers. The estimation of the distribution output is critical as it significantly affects the product quality and process efficiency. The polymer concentration is considered as the process state, and the output of this process is the distribution of polystyrene concentration as a function of polystyrene chain length at the reactor outlet. Simulations of real scenarios revealed that the estimated error in polystyrene concentration for chain lengths longer than 1000 units of monomer is 10−4 or less; therefore, the maximum chain length estimated for this process was set to 1000.
The concentration of the initiator C ˜ I , k   , concentration of the monomer C ˜ M , k   and the temperature of reactor T ˜ k are taken as the process states. The equations of states in the nonlinear dynamic model are given by
x k =    [ C ˜ I , k     C ˜ M , k       T ˜ k ] = [ f 1 ( C ˜ I , k 1   , T ˜ k 1 )   f 2 ( C ˜ I , k 1   , C ˜ M , k 1    , T ˜ k 1 )   f 3 ( C ˜ I , k 1   , C ˜ M , k 1    , T ˜ k 1 )    ] + [ w 1 , k 1 w 2 , k 1   w 3 , k 1   ]
where f 1 , f 2 , and f 3 are state equations of C ˜ I , k   , C ˜ M , k   , and T ˜ k , respectively. w 1 , k 1 , w 2 , k 1 , and w 3 , k 1 are process noise of C ˜ I , k   , C ˜ M , k   , and T ˜ k , respectively. The information of C ˜ I , k   , C ˜ M , k   , and T ˜ k is listed in Table 3. At a steady state set-point reactor temperature T s s of 310 K, the following values are obtained.
C I , s s = 0.0691   kmol · mol 3 C M , s s = 3.393   kmol · mol 3
where s s represents the steady state. At set-point conditions, the steady-state concentration range of the polymer is zero. The magnitudes of changes in the states C ˜ I , k , C ˜ M , k   , and T ˜ k are large, therefore, the states must be redefined in terms of dimensionless variables so that when the system reaches the set-point condition, they are scaled to one.
C ˜ I = C I C I , s s
C ˜ M = C M C M , s s
T ˜ = T T s s
The state equations f 1 , f 2 , and f 3 can be obtained from the differential equations, which, rewritten in terms of scaled dimensionless variables, are listed as follows.
d C ˜ I d t = C ˜ I τ k d , 0 exp [ ( E d R T s s ) T ˜ ] C ˜ I + ( F i V ) C ˜ I , i
d C ˜ M d t = C ˜ M τ k p , 0 exp [ ( E p R T s s ) T ˜ ] C P C ˜ M + ( F m V ) C ˜ M , m
d T ˜ d t = T ˜ i T ˜ τ + γ C m , s s k p .0 T s s exp [ ( E p R T s s ) T ˜ ] C ˜ M C P + ( Q s s ρ c p V T s s ) Q ˜
where the information of parameters in the above equations is listed in Table 2 and Table 4. The total concentration of live polymers C P is expressed in terms of dimensionless variables C ˜ I and T ˜ by
C P = 2 C I f k d k t = 2 C ˜ I   ·   C I , s s f k d , 0 exp [ ( E d R T s s ) ( T T s s ) ] k t , 0 exp [ ( E t R T s s ) ( T T s s ) ]   = 2 C I , s s f k d , 0 k t , 0 · C ˜ I exp [ ( E t E d R T s s ) T ˜ ]
where f = 0.6 is an initiator efficiency factor which accounts for the fraction of initiator participating in the chain initiation reaction.
Considering the state vector and C P , the measurement vector is set to z k =    [ y 1 , k ; y 2 , k ; y 3 , k      ; y 4 , k ] = [ C ˜ I , k ; C ˜ M , k   ; T ˜ k   ; C P   ] , the measurement equations can be expressed as
z k =    [ y 1 , k y 2 , k   y 3 , k      y 4 , k ] = [ C ˜ I , k C ˜ M , k   T ˜ k   C P   ] + [ v 1 , k v 2 , k v 3 , k v 4 , k ]
where v 1 , k , v 2 , k , v 2 , k , and v 3 , k are the measurement noise with standard deviations of 0.001, 0.001, 0.001, and 1, respectively
To verify the performance of the proposed UKF-based robust SPE, it was applied to the simulations of free radical polymerization of styrene and compared with traditional UKF-SPE. Two independent cases were considered, in which there are different combinations of uncertain parameters that change when failure occurs. Case Study 2.1 has only a single uncertain parameter, while Case Study 2.2 contains multiple uncertain parameters. The other parameters are the same in the two cases. W is set to be 5, α is set to be 0.05. The simulation time step is set to be 800 and the parameters are changed at time step 300.

4.2.1. Case Study 2.1: Robust SPE with Single Parameter

The initiator efficiency factor f is a constant which is assumed to be an uncertain parameter. With this parameter included, the state vector and the state equations are expanded to
x k =    [ C ˜ I , k     C ˜ M , k       T ˜ k f ] = [ f 1 ( C ˜ I , k 1   , T ˜ k 1 )   f 2 ( C ˜ I , k 1   , C ˜ M , k 1    , T ˜ k 1 )   f 3 ( C ˜ I , k 1   , C ˜ M , k 1    , T ˜ k 1 )     f θ ( f ) ] + [ w 1 , k 1 w 2 , k 1   w 3 , k 1   ς f , k 1 ]
where ς f , k 1 is the parameter noise with the standard deviation of 106, f is 0.6 under normal conditions. When a fault occurs, the parameter f changes to 0.3 at time step 300.
The comparison results of SPE are shown in Figure 8, Figure 9, Figure 10 and Figure 11. The effect of parameter f change on states C ˜ I , k and C ˜ M , k is not significant, the parameter f mainly affects the temperature of reactor T ˜ k . Figure 8 shows the comparison of the estimated results of the state T ˜ k , it can be clearly seen that starting from time step 300, estimated state T ˜ k of the traditional UKF-SPE deviates from the theoretical true state. The UKF-SPE can only slowly track the true state, while the proposed UKF-RSPE can maintain accurate state estimation. In Figure 9, from the comparison of the estimated results of parameter f , it is clear that the traditional UKF-SPE tracks the parameter slowly, while the UKF-RSPE can track the true parameter much faster. Due to the presence of the learning rate in UKF-RSPE, there is a certain fluctuation when the true parameter is first tracked, which leads to misdetection as a false parameter, but with iteration, the learning rate is continuously updated, accompanied by past information being forgotten until the parameter f is finally stabilized as the true parameter through parameter testing. It can also be observed in Figure 9 that the fluctuations appear at the beginning of the parameter estimation due to the adjustment of the covariance P k from the initial unit matrix with iterations. Finally, the measurements are reconciled according to the estimated states and parameter. The comparison of the reconciled results of measurement T ˜ k is the same as the estimated results of the state T ˜ k as shown in Figure 10. The proposed UKF-RSPE can reconcile measurements, and the errors of the measurements are smaller than the measurements, indicating that the UKF-RSPE still has the ability to reconcile the data in the event of a fault. The change of f not only affects T ˜ k , but also the measurement of the total concentration of live polymers C p . The comparison of the reconciled results of measurement C p is shown in Figure 11; C p undergoes a direct change when s fault occurs indicating that f has a large effect on C p . The UKF-RSPE can reconcile the measurements quickly, while the traditional UKF-SPE can only track the measurements slowly. The measurement error of the UKF-RSPE is smaller than the measurement and the measurement of UKF-SPE, as shown in Figure 11b.
To further quantify the effect of UKF-RSPE, the statistical information of estimated results is listed in Table 5. Compared with the traditional UKF-SPE, the mean square error (MSE) of state estimation is reduced from 1.51 × 10−6 to 8.67 × 10−7; and the MSE of parameter estimation is reduced from 7.09 × 10−3 to 2.08 × 10−4. The MSE of the measurement data is 2.49 × 10−1, and the traditional UKF-SPE not only fails to correct the measurements, but also increases the MSE to 1.03. The UKF-RSPE can reconcile the measurements and reduce the MSE to 8.58 × 10−2. Therefore, the proposed UKF-RSPE tracks the parameter change faster and can achieve more accurate state and parameter estimation.

4.2.2. Case Study 2.2: Robust SPE with Multiple Parameters

The reaction rate constant of the propagation reaction k p , 0 and the termination reaction k t , 0 are assumed to be uncertain parameters. With the parameters included, the state vector and the state equations are expanded to
x k =    [ C ˜ I , k     C ˜ M , k       T ˜ k k p , 0 k t , 0 ] = [ f 1 ( C ˜ I , k 1   , T ˜ k 1 )   f 2 ( C ˜ I , k 1   , C ˜ M , k 1    , T ˜ k 1 )   f 3 ( C ˜ I , k 1   , C ˜ M , k 1    , T ˜ k 1 )     f θ ( k p , 0 ) f θ ( k t , 0 ) ] + [ w 1 , k 1 w 2 , k 1   w 3 , k 1   ς p , k 1 ς t , k 1 ]
where ς p , k 1 and ς t , k 1 are the parameter noises with the standard deviation of 10−6. Under normal conditions, the parameter values are set to be k p , 0 = 1.00 × 10 7   kmol · m 3 · s - 1 , k t , 0 = 1.25 × 10 7   kmol · m 3 · s - 1 . When a fault occurs, the parameters change to be k p , 0 = 1.50 × 10 7   kmol · m 3 · s - 1 , k t , 0 = 0.6 × 10 7   kmol · m 3 · s - 1 at time step 300.
The comparison results of SPE are shown in Figure 12, Figure 13, Figure 14, Figure 15 and Figure 16. In this case, the simultaneous change of both parameters has a dramatic effect on the state estimation. In Figure 12, the temperature of the reactor T ˜ k estimated by traditional UKF-SPE changes abruptly and UKF-SPE takes longer time to track the true state. The proposed UKF-RSPE can rapidly estimate the true state and improve the accuracy of state estimation. Figure 13 and Figure 14 compare the estimated results of parameters k p , 0 and k t , 0 , respectively. For k t , 0 , UKF-RSPE maintains its excellent performance in the case with single parameter, as shown in Figure 14a. However, for k p , 0 , although UKF-RSPE tracks the true parameter faster compared to UKF-SPE, it still takes more than 150 time steps due to the interplay between multiple parameters when they are estimated simultaneously. There is also some fluctuation after tracking the true parameters until the parameter detection is judged to be true. Fluctuations in the vicinity of the true parameters have small effects on the state estimation and measurement reconciliation, so they can be ignored and the estimated parameters can be considered as true parameters. Figure 15 shows the comparison of the reconciled results of measurement T ˜ k ; UKF-RSPE can reconcile the measurements and reduce the errors of measurements, which greatly improves on the accuracy of traditional UKF-SPE. Figure 16 shows the comparison of the reconciled results of measurement C p , a sudden change occurred at the time of the fault, both the traditional UKF-SPE and UKF-RSPE are able to reconcile the measurements, the errors of UKF-RSPE are smaller.
To further quantify the effect of UKF-RSPE, the statistical information of estimated results is listed in Table 6. Compared with the traditional UKF-SPE, the MSEs of state estimation and parameter estimation are reduced from 7.17 × 10−6 and 4.53 × 10−2, respectively, to 9.20 × 10−7 and 6.04 × 10−3. The MSE of the measurement data is 2.59 × 10−1 and the MSE of the measurements reconciled by UKF-RSPE is reduced to 2.35 × 10−1. In summary, the proposed UKF-RSPE can track all the parameters changes faster not only in the case with single parameter but also in the case with different combinations of multiple parameters changes. The proposed UKF-RSPE can achieve more accurate state and parameter estimates and has stronger robustness.
The proposed UKF-based robust SPE is not limited to free radical polymerization of styrene, it can be applied to other radical polymerization processes. The free radical polymerization of styrene described in this section is just one case of the application of UKF-based robust SPE. UKF is a model-based approach, and by changing the mathematical model, it can be applied in the case of other radical polymerization processes. However, when the UKF-based robust SPE is applied to other radical polymerization processes, the mathematical models of other radical polymerization processes need to be obtained firstly. In general, the chemical reaction is complicated, and it may be difficult to derive the accurate mathematical model of the chemical reaction. Therefore, a characteristic of UKF is model-driven. Based on being model-driven, it can be used in other radical polymerization processes.

5. Conclusions

In this work, the SPE problem of the free radical polymerization of styrene with variable parameters was studied, given that there are uncertain parameters in the mechanistic model. When the reaction conditions are switched, or the reaction process generates faults, the parameters will change. Due to the limitation of traditional UKF-SPE in detecting and fast-tracking changes in model parameters, this paper proposed a UKF-based robust SPE method, which establishes a moving window and introduces a hypothesis-test-based parameter testing criterion within the window to detect whether the parameters have changed. Based on the detection results, the gradient descent method which adaptively modifies the learning rate is used to modify the parameters to accelerate the tracking of the parameters, and to obtain more accurate parameters and states. The proposed UKF-based robust SPE is applied to the simulation study of the free radical polymerization of styrene using the mathematical model of dynamics of polymerization in a jacketed continuous stirred tank reactor. The model is based on the reaction mechanism and describes the dynamics of the actual free radical polymerization of styrene. The experimental results show that the proposed UKF-based robust SPE can quickly track the parameter changes and achieve more accurate state and parameter estimation with stronger robustness.

Author Contributions

Conceptualization, methodology, validation, writing—original draft preparation, Z.Z. (Zhenhui Zhang); resources, data curation, writing—review and editing, Z.Z. (Zhengjiang Zhang); supervision, project administration, Z.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors gratefully acknowledge the National Natural Science Foundation of China (No. 61703309) for financial support.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kalman, R.E. A New approach to linear filtering and prediction problems. J. Basic Eng. 1960, 82, 35–45. [Google Scholar] [CrossRef] [Green Version]
  2. Kalman, R.E.; Bucy, R.S. New results in linear filtering and prediction theory. J. Basic Eng. 1961, 83, 95–108. [Google Scholar] [CrossRef]
  3. Bucy, R.S.; Senne, K.D. Digital synthesis of non-linear filters. Automatica 1971, 7, 287–298. [Google Scholar] [CrossRef]
  4. Julier, S.J.; Uhlmann, J.K. Unscented filtering and nonlinear estimation. Proc. IEEE 2004, 92, 401–422. [Google Scholar] [CrossRef] [Green Version]
  5. Schmidt, A.D.; Ray, W.H. The dynamic behavior of continuous polymerization reactors—I: Isothermal solution polymerization in a CSTR. Chem. Eng. Sci. 1981, 36, 1401–1410. [Google Scholar] [CrossRef]
  6. Zhang, Z.; Chen, J. Correntropy based data reconciliation and gross error detection and identification for nonlinear dynamic processes. Comput. Chem. Eng. 2015, 75, 120–134. [Google Scholar] [CrossRef]
  7. Hu, G.; Zhang, Z.; Armaou, A.; Yan, Z. Robust extended Kalman filter based state estimation for nonlinear dynamic processes with measurements corrupted by gross errors. J. Taiwan Inst. Chem. Eng. 2020, 106, 20–33. [Google Scholar] [CrossRef]
  8. Hu, G.; Zhang, Z.; Chen, J.; Zhang, Z.; Armaou, A.; Yan, Z. Elman neural networks combined with extended Kalman filters for data-driven dynamic data reconciliation in nonlinear dynamic process systems. Ind. Eng. Chem. Res. 2021, 60, 15219–15235. [Google Scholar] [CrossRef]
  9. Al-Harthi, M.; Soares, J.B.P.; Simon, L.C. Mathematical modeling of atom-transfer radical copolymerization. Macromol. React. Eng. 2007, 1, 468–479. [Google Scholar] [CrossRef]
  10. Mohammadi, Y.; Pakdel, A.S.; Saeb, M.R.; Boodhoo, K. Monte Carlo simulation of free radical polymerization of styrene in a spinning disc reactor. Chem. Eng. J. 2014, 247, 231–240. [Google Scholar] [CrossRef]
  11. Maafa, I.M.; Soares, J.B.P.; Elkamel, A. Prediction of chain length distribution of polystyrene made in batch reactors with bifunctional free-radical initiators using dynamic monte carlo simulation. Macromol. React. Eng. 2007, 1, 364–383. [Google Scholar] [CrossRef]
  12. Woloszyn, J.D.; Hesse, P.; Hungenberg, K.-D.; McAuley, K.B. Parameter selection and estimation techniques in a styrene polymerization model. Macromol. React. Eng. 2013, 7, 293–310. [Google Scholar] [CrossRef]
  13. Meißner, P.; Watschke, H.; Winter, J.; Vietor, T. Artificial neural networks-based material parameter identification for numerical simulations of additively manufactured parts by material extrusion. Polymers 2020, 12, 2949. [Google Scholar] [CrossRef] [PubMed]
  14. Kiparissides, C.; Seferlis, P.; Mourikas, G.; Morris, A.J. Online optimizing control of molecular weight properties in batch free-radical polymerization reactors. Ind. Eng. Chem. Res. 2002, 41, 6120–6131. [Google Scholar] [CrossRef]
  15. Yousefi-Darani, A.; Paquet-Durand, O.; Hinrichs, J.; Hitzmann, B. Parameter and state estimation of backers yeast cultivation with a gas sensor array and unscented Kalman filter. Eng. Life Sci. 2021, 21, 170–180. [Google Scholar] [CrossRef]
  16. Zhou, Z.; Zhou, G.; Wang, Y.; Du, H.; Hu, J.-S.; Yin, C. PTV Longitudinal-lateral state estimation considering unknown control inputs and uncertain model parameters. IEEE Trans. Veh. Technol. 2021, 70, 4366–4376. [Google Scholar] [CrossRef]
  17. Kim, S.-H.; Yang, H.-J.; Nguyen, N.A.T.; Mehmood, R.M.; Lee, S.-W. Parameter estimation using unscented Kalman filter on the gray-box model for dynamic EEG system modeling. IEEE Trans. Instrum. Meas. 2020, 69, 6175–6185. [Google Scholar] [CrossRef]
  18. Geraldi, E.L.; Fernandes, T.C.C.; Piardi, A.B.; Grilo, A.P.; Ramos, R.A. Parameter estimation of a synchronous generator model under unbalanced operating conditions. Electr. Power Syst. Res. 2020, 187, 106487. [Google Scholar] [CrossRef]
  19. Peng, X.; Li, Y.; Yang, W.; Garg, A. Real-time state of charge estimation of the extended Kalman filter and unscented Kalman filter algorithms under different working conditions. J. Electrochem. Energy Convers. Storage 2021, 18, 041007. [Google Scholar] [CrossRef]
  20. Kong, D.; Wang, S.; Ping, P. A novel parameter adaptive method for state of charge estimation Intelligent particle filter and its application on fault detection of nonlinear system of aged lithium batteries. J. Energy Storage 2021, 44, 103389. [Google Scholar] [CrossRef]
  21. Nakamura, R.; Kawamura, T. Building heat load estimation method including parameter estimation from actual data. IEEJ Trans. Electr. Electron. Eng. 2021, 16, 1067–1075. [Google Scholar] [CrossRef]
  22. Li, Y.; Castiglione, J.; Astroza, R.; Chen, Y. Real-time thermal dynamic analysis of a house using RC models and joint state-parameter estimation. Build. Environ. 2021, 188, 107184. [Google Scholar] [CrossRef]
  23. Chen, Y.; Castiglione, J.; Astroza, R.; Li, Y. Parameter estimation of resistor-capacitor models for building thermal dynamics using the unscented Kalman filter. J. Build. Eng. 2021, 34, 101639. [Google Scholar] [CrossRef]
  24. Rodríguez, A.J.; Sanjurjo, E.; Pastorino, R.; Naya, M.N. State, parameter and input observers based on multibody models and Kalman filters for vehicle dynamics. Mech. Syst. Signal Process. 2021, 155, 107544. [Google Scholar] [CrossRef]
  25. Wan, W.; Feng, J.; Song, B.; Li, X. Huber-based robust unscented Kalman filter distributed drive electric vehicle state observation. Energies 2021, 14, 750. [Google Scholar] [CrossRef]
  26. Lee, S.-H.; Song, J. Regularization-based dual adaptive Kalman filter for identification of sudden structural damage using sparse measurements. Appl. Sci. 2020, 10, 850. [Google Scholar] [CrossRef] [Green Version]
  27. Ding, D.; He, K.F.; Qian, W.Q. A Bayesian adaptive unscented Kalman filter for aircraft parameter and noise estimation. J. Sens. 2021, 2021, 9002643. [Google Scholar] [CrossRef]
  28. Liu, J.; West, M. Combined parameter and state estimation in simulation-based filtering. In Sequential Monte Carlo Methods in Practice; Springer: New York, NY, USA, 2001; pp. 197–223. [Google Scholar] [CrossRef]
  29. Zhu, Z.; Meng, Z.; Cao, T.; Zhang, Z.; Dai, Y. Particle filter-based robust state and parameter estimation for nonlinear process systems with variable parameters. Meas. Sci. Technol. 2017, 28, 065003. [Google Scholar] [CrossRef]
  30. Wang, S.; Na, J.; Xing, Y. Adaptive optimal parameter estimation and control of servo mechanisms: Theory and experiments. IEEE Trans. Ind. Electron. 2021, 68, 598–608. [Google Scholar] [CrossRef]
  31. Jacobs, R.A. Increased rates of convergence through learning rate adaptation. Neural Netw. 1988, 1, 295–307. [Google Scholar] [CrossRef]
  32. Duchi, J.; Hazan, E.; Singer, Y. Adaptive subgradient methods for online learning and stochastic optimization. J. Mach. Learn. Res. 2011, 12, 2121–2159. [Google Scholar]
  33. Kingma, D.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:abs/1412.6980. Available online: https://arxiv.org/abs/1412.6980 (accessed on 22 December 2021).
  34. Long, B.; Zhu, Z.; Yang, W.; Chong, K.T.; Rodriguez, J.; Guerrero, J.M. Gradient descent optimization based parameter identification for FCS-MPC control of LCL-type grid connected converter. IEEE Trans. Ind. Electron. 2022, 69, 2631–2643. [Google Scholar] [CrossRef]
  35. Li, L.; Long, Z.; Ying, H.; Qiao, Z. An online gradient-based parameter identification algorithm for the neuro-fuzzy systems. Fuzzy Sets Syst. 2022, 426, 27–45. [Google Scholar] [CrossRef]
  36. Na, J.; Xing, Y.; Costa-Castello, R. Adaptive estimation of time-varying parameters with application to roto-magnet plant. IEEE Trans. Syst. Man Cybern. Syst. 2021, 51, 731–741. [Google Scholar] [CrossRef] [Green Version]
  37. Zhang, Z.; Chen, J. Simultaneous data reconciliation and gross error detection for dynamic systems using particle filter and measurement test. Comput. Chem. Eng. 2014, 69, 66–74. [Google Scholar] [CrossRef]
  38. Hidalgo, P.M.; Brosilow, C.B. Nonlinear model predictive control of styrene polymerization at unstable operating points. Comput. Chem. Eng. 1990, 4, 481–494. [Google Scholar] [CrossRef]
Figure 1. The schematic of unscented transformation.
Figure 1. The schematic of unscented transformation.
Polymers 14 00973 g001
Figure 2. The process of UKF-based SPE.
Figure 2. The process of UKF-based SPE.
Polymers 14 00973 g002
Figure 3. The moving window for parameter testing.
Figure 3. The moving window for parameter testing.
Polymers 14 00973 g003
Figure 4. The tracking effect of different learning rates.
Figure 4. The tracking effect of different learning rates.
Polymers 14 00973 g004
Figure 5. The comparison of the estimated results of the state in Case Study 1: (a) estimated state; (b) state error.
Figure 5. The comparison of the estimated results of the state in Case Study 1: (a) estimated state; (b) state error.
Polymers 14 00973 g005
Figure 6. The comparison of the estimated results of parameter in Case Study 1: (a) estimated parameter; (b) parameter error.
Figure 6. The comparison of the estimated results of parameter in Case Study 1: (a) estimated parameter; (b) parameter error.
Polymers 14 00973 g006
Figure 7. The comparison of the reconciled results of measurement in Case Study 1: (a) reconciled measurement; (b) measurement error.
Figure 7. The comparison of the reconciled results of measurement in Case Study 1: (a) reconciled measurement; (b) measurement error.
Polymers 14 00973 g007
Figure 8. The comparison of the estimated results of the state T ˜ k in Case Study 2.1: (a) estimated state; (b) state error.
Figure 8. The comparison of the estimated results of the state T ˜ k in Case Study 2.1: (a) estimated state; (b) state error.
Polymers 14 00973 g008
Figure 9. The comparison of the estimated results of parameter f in Case Study 2.1: (a) estimated parameter; (b) parameter error.
Figure 9. The comparison of the estimated results of parameter f in Case Study 2.1: (a) estimated parameter; (b) parameter error.
Polymers 14 00973 g009
Figure 10. The comparison of the reconciled results of measurement T ˜ k in Case Study 2.1: (a) reconciled measurement; (b) measurement error.
Figure 10. The comparison of the reconciled results of measurement T ˜ k in Case Study 2.1: (a) reconciled measurement; (b) measurement error.
Polymers 14 00973 g010
Figure 11. The comparison of the reconciled results of measurement C p in Case Study 2.1: (a) reconciled measurement; (b) measurement error.
Figure 11. The comparison of the reconciled results of measurement C p in Case Study 2.1: (a) reconciled measurement; (b) measurement error.
Polymers 14 00973 g011
Figure 12. The comparison of the estimated results of the state T ˜ k in Case Study 2.2: (a) estimated state; (b) state error.
Figure 12. The comparison of the estimated results of the state T ˜ k in Case Study 2.2: (a) estimated state; (b) state error.
Polymers 14 00973 g012
Figure 13. The comparison of the estimated results of parameter k p , 0 in Case Study 2.2: (a) estimated parameter; (b) parameter error.
Figure 13. The comparison of the estimated results of parameter k p , 0 in Case Study 2.2: (a) estimated parameter; (b) parameter error.
Polymers 14 00973 g013
Figure 14. The comparison of the estimated results of parameter k t , 0 in Case Study 2.2: (a) estimated parameter; (b) parameter error.
Figure 14. The comparison of the estimated results of parameter k t , 0 in Case Study 2.2: (a) estimated parameter; (b) parameter error.
Polymers 14 00973 g014
Figure 15. The comparison of the reconciled results of measurement T ˜ k in Case Study 2.2: (a) reconciled measurement; (b) measurement error.
Figure 15. The comparison of the reconciled results of measurement T ˜ k in Case Study 2.2: (a) reconciled measurement; (b) measurement error.
Polymers 14 00973 g015
Figure 16. The comparison of the reconciled results of measurement C p in Case Study 2.2: (a) reconciled measurement; (b) measurement error.
Figure 16. The comparison of the reconciled results of measurement C p in Case Study 2.2: (a) reconciled measurement; (b) measurement error.
Polymers 14 00973 g016
Table 1. Statistical information of estimated results in Case Study 1.
Table 1. Statistical information of estimated results in Case Study 1.
ResultsMSE
UKF-SPEUKF-RSPE
States20.43590.8509
Parameters26.46551.3346
Measurements
(MSE = 0.0106)
4.35880.3375
Table 2. Information of the reaction conditions in Case Study 2.
Table 2. Information of the reaction conditions in Case Study 2.
Process ParametersValue
The reaction rate constant of the decomposition reaction k d , 0 5.95 × 10 13   kmol · m 3 · s - 1
The reaction rate constant of the propagation reaction k p , 0 1.00 × 10 7   kmol · m 3 · s - 1
The reaction rate constant of the termination reaction k t , 0 1.25 × 10 7   kmol · m 3 · s - 1
The energy of activation of the decomposition reaction E d 14,897   kJ · kmol 3
The energy of activation of the propagation reaction E p 3557   kJ · kmol 3
The energy of activation of the termination reaction E t 8.44 × 10 2   kJ · kmol 3
Table 3. Information of the states in Case Study 2.
Table 3. Information of the states in Case Study 2.
Process StatesInitial ValueStandard
Deviation
of Noise
Final Value at
Steady State
Dimensionless concentration of initiator C ˜ I , k   0.910.011
Dimensionless concentration of monomer C ˜ M , k   0.910.011
Dimensionless temperature of reactor T ˜ k 0.910.011
Table 4. Information of the parameters in Case Study 2.
Table 4. Information of the parameters in Case Study 2.
Process ParametersValue
The volumetric flow rates of inlet solvent F s 6 . 3750 × 10 5   kmol · mol 3
The volumetric flow rates of inlet monomer F m 5 . 250 × 10 5   kmol · mol 3
The volumetric flow rates of inlet initiator F i 1 . 55 × 10 5   kmol · mol 3
The volumetric flow rates outlet streams F t F t = F s + F m + F i
The reactor volume V 3   m 3
The residence time τ τ = V F t
The measured density ρ Obtained from simultaneous online measurements
The volumetric heat capacity of reacting mixture ρ c p 1506.24   kJ · K 1 · m 3
The heat of reaction due to the propagation reaction Δ H p 69,872   kJ · kmol 3
The amount of reaction mixture γ Δ H p ρ c p
The heating rate at the steady state Q s s 0.6659   kJ · s 2
The inlet feed temperature T i 330   K
Table 5. Statistical information of the estimated results in Case Study 2.1.
Table 5. Statistical information of the estimated results in Case Study 2.1.
ResultsMSE
UKF-SPEUKF-RSPE
States1.51 × 10−68.67 × 10−7
Parameters7.09 × 10−32.08 × 10−4
Measurements
(MSE = 2.49 × 10−1)
1.038.58 × 10−2
Table 6. Statistical information of the estimated results in Case Study 2.2.
Table 6. Statistical information of the estimated results in Case Study 2.2.
ResultsMSE
UKF-SPEUKF-RSPE
States7.17 × 10−69.20 × 10−7
Parameters4.53 × 10−26.04 × 10−3
Measurements
(MSE = 2.59 × 10−1)
1.222.35 × 10−1
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhang, Z.; Zhang, Z.; Hong, Z. Unscented Kalman Filter-Based Robust State and Parameter Estimation for Free Radical Polymerization of Styrene with Variable Parameters. Polymers 2022, 14, 973. https://doi.org/10.3390/polym14050973

AMA Style

Zhang Z, Zhang Z, Hong Z. Unscented Kalman Filter-Based Robust State and Parameter Estimation for Free Radical Polymerization of Styrene with Variable Parameters. Polymers. 2022; 14(5):973. https://doi.org/10.3390/polym14050973

Chicago/Turabian Style

Zhang, Zhenhui, Zhengjiang Zhang, and Zhihui Hong. 2022. "Unscented Kalman Filter-Based Robust State and Parameter Estimation for Free Radical Polymerization of Styrene with Variable Parameters" Polymers 14, no. 5: 973. https://doi.org/10.3390/polym14050973

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop