Professional Documents
Culture Documents
ABSTRACT
KEYWORDS
Random errors, Dynamic data reconciliation, Mineral processing, Kalman filter, Observer,
Model
INTRODUCTION
Measurements errors are common in the mineral processing plants. It is obvious that the
increase of these errors might strongly influence the efficiency of the decision making process.
Particularly, they may weaken the controller performance when they are used to calculate control
moves (Bai, Thibault, & McLean, 2006).
Data reconciliation improves the reliability and accuracy of plant data by utilizing some
fundamental principles such as mass and/or energy conservation constraints. It reduces the
impacts of random errors, while systematic errors and faults should be treated by other
techniques. Comprehensive literature describe fundamental aspects of data reconciliation
(Romagnoli & Sanchez, 2000; Shankar & Cornelius, 2000). Considering the dynamic state of the
processes in mineral processing plants and limits inherent with reconciliation methods developed
for steady-state regimes, Dynamic Data Reconciliation (DDR) should be more efficient
(Hodouin, 2010), as the data reconciliation method should be in an appropriate agreement with
the dynamism of the process. For slow dynamic regimes, stationary observers (Makni, 1995;
Vasebi, Poulin, & Hodouin, 2012a), generalized dynamic observers (Darouach, 1991; Rollins &
Devanathan, 1993; Xu & Rong, 2010) and integral linear dynamic observers (Bagajewicz &
Jiang, 1997; Tona, Benqlilou, Espuna, & Puigjaner, 2005) are valuable options. A comprehensive
review of these methods has been presented by Vasebi et al., (2012b).
In processes with the feasibility of developing reliable dynamic models, using filters such
as Kalman Filter (KF) as a DDR observer leads to more accurate estimations in comparison with
methods utilizing sub-models. Due to the complexity of the processes and the difficulty of
modeling, using the KF in mineral processing industry is not common. Vasebi et al.,( 2015)
presented a method to develop a simple model of flotation for using in KF. An important aspect
of such studies deserving a specific consideration is the accuracy of the model that limits the
efficient use of KF. Hence, in this study, first the relation between the accuracy of the model with
the reliability of the estimated data by KF is shown. Second, utilizing the model developed by
Vasebi et al.,( 2015) the range of the uncertainty of the model’s parameters in KF for DDR is
presented
THEORIES
Kalman Filter
KF is an algorithm that in any discrete moment calculates a gain (K) to estimate the
optimal value of the process state using outputs of the process state models and measurements of
states, and it calculates the covariance of the estimation’s errors simultaneously. KF contains two
sets of equations. First set comprises the updated data from the estimation’s error covariance of
k-1 (P(k-1|k-1)) toP(k|k-1); updating of the last estimate of the process state (x(k-1|k-1)) to (x(k|
k-1)), by a recursive equation (state model).
where, A and B are the model’s parameters, u(k) is the manipulated variable and Σ w is the
covariance matrix of the modeling error. Process state model is expressed by
x ( k )= Ax ( k −1 ) +Bu ( k )+ w(k) (3)
where w(k) is the modeling uncertainty, and in the present study, it is assumed to obey a normal
distribution:
w (k ) N (0 , Σ w ) (4)
Second set of KF’s equations comprises the estimation of the process state which uses
measurements (y(k)) and ^x ( k|k −1 ).
^x ( k|k ) =^x ( k|k−1 ) + K (k )( y ( k )−H ^x ( k|k −1 )) (5)
where ^x ( k|k ) stands for the estimate of process state x, at time instant k based on the knowledge
of measurements up to the time k. In the linear case, the measurement equation is expressed by
(Vasebi et al., 2012b) as:
y ( k )=Hx ( k ) +v (k ) (6)
where y(k) and v(k) represent measurements and their corresponding error respectively and H is
a projection matrix which links the model states to the process variables. In the process model
used in this study, H is an identity matrix. Besides, in Eq. (6), v is assumed to be a white noise
signal with following characteristics (measurement errors are random and can be considered to be
normally distributed), and independent from w (Vasebi et al., 2012b):
v ( k ) N (0 , Σ v ) (7)
cov { v ( i ) , x ( j ) } =0 , ∀ i , j (9)
K ( k ) =P ( k|k −1 ) H ¿
T
(10)
The last equation of the second set of KF equations calculates the estimate’s error covariance.
K ( k ) =P ( k|k −1 ) H T ¿
x ( k )= Ax ( k −1 ) +Bu ( k )+ w( k)
^x ( k|k ) =^x ( k|k−1 ) + K ( k ) ( y ( k )−H x^ ( k|k−1 ) )
P ( k|k −1 )= A P x ( k −1|k −1 ) A + Σ w
T
P ( k|k )=( I − K ( k ) H )P ( k|k−1 )
The importance of Σ w , located on the right side of the equation (1), in KF’s outputs is its
influence on calculating P(k|k-1). By increasing the P(k│k-1),the value of K(k) increases. The
value of K(k) is always between zero and one. When the value of K(k) is zero, it shows the high
accuracy in modeling, and state estimation by Eq. (5) is equal to x̂ (k|k-1). On the other hand,
when the value of K(k) is one, which is a result of the least accurate modeling, estimated state by
Eq. (5) is equal to y(k); i.e. the estimation equals to the measurement.
Vasebi et al.,( 2015) presented a simple method to develop a model for a single node
separation unit. Fig.1 shows the flowsheet of this separation unit, containing one input stream ( x 1
), and two output streams ( x 2 and x 3) that respectively refer to feed, concentrate and tailings.
Vasebi et al.,( 2015) assumed that x 1 , x 2and x 3 are the valuable mineral flowrates rather than the
whole ore. In their method, by fitting an autoregressive model (Eq. (12)) to historical measured
data of the feed stream and utilizing an optimizing approach, the measurement error variance Σ v
and a 1 are calculated simultaneously.
x 1 (k )=a 1 x 1 ( k−1 ) +b1 ξ (k ) (12)
y 1 ( k )=x 1 ( k ) + x 1 n+ v (k ) (13)
[ ][ ][ ] [ ]
x1 (k) a1 0 0 x 1 (k −1) b1 (17)
x2 (k ) = α b2 a2 0 x2 ( k −1 ) + 0 ξ ( k )= Ax ( k −1 ) +Bξ (k )
x3 (k ) (1−α )b 3 0 a3 x3 ( k −1 ) 0
Vasebi et al.,( 2015) made several assumptions to facilitate the development of a plant
model for data reconciliation purposes, including that the model parameters a i andα are white
noises with the following properties:
a i ( k )=a1 n +a ˜ i ( k ) , a ˜ i ( k ) N (0 , Σ a ) i
(18)
α ( k )=α n +α ˜ i ( k ) , α ˜ i ( k ) N (0 , Σ α ) (19)
b ˜ i ( k ) =−a ˜ i ( k ) , b˜ i ( k ) N (0 , Σ a ) i
(20)
where the subscript n stands for the nominal value and ~ represents the variation. The
combination of Eq. (18), (19), (20) and (17) leads to
[ ]
Σw Σw Σw (22)
11 12 13
cov ( w )= Σ w 21
Σw 22
Σw 23
Σw 31
Σw 32
Σw 33
¿ (23
)
¿ (25
)
METHODOLOGY
[ ] [ ]
0.98 0 0 0.25 0 0
0.094 0.883 0 [ 10 ] 0 0.16 0
0.019 0 0.905 0 0 0.01
Based on Eq. (23) and (24), to use the model fitted to the process in KF, model’s
parameters uncertainty ( Σ a and Σ α ) become crucial. The aim of the DDR is to dilute the
i
where Pi ,i and Σ vi , i are the diagonal elements of P and Σ v respectively (Poulin, Hodouin, &
Lachance, 2010; Vasebi et al., 2012b).
When ηi , i value is zero, the estimator has a perfect performance. When its value is one,
the observer is globally equivalent to the raw measurements. When its value is larger than one,
the observer is globally detrimental. A drawback of this index is that it does not analyze the
covariance terms but here the result is reachable by comparing the diagonal terms only.
To evaluate the impact of Σ a and Σ α on theηi , i, the value of Σ a and Σ α were increased.
i i
In the presented model by Vasebi et al.,( 2015) the values of the model’s parameter
variances are limited by three factors:
a- According to Eq. (26), the values of the model’s parameter variances are limited, and their
maximum values must be calculated through Eq.(26) with respect to a i ( Σ x must be a positive
i
value).
b- The second limiting factor is the value of the measurement errors, if the aim is to reconcile the
data set with lower measurement errors, variances of the model’s parameters have to be
respectively lower (Table 4).
c- According to Eq. (26) and (24), increasing the model’s parameters variances leads to
intensification of Σ x and Σ w (figure 3).
i i
[ ]
0.125 0 0
0 0.04 0 0.6554 0.3463 0.7940
0 0 0.0025
[ ]
0.25 0 0
0 0.16 0 0.4258 0.1663 0.5652
0 0 0.01
[ ]
1 0 0
0 0.64 0 0.2253 0.0881 0.3263
0 0 0.04
Figure 2 – Impact of modeling uncertainty ( Σ w ) on the variance of the KF’s estimation error (P)
Figure 3 – Impact of the model’s parameters variances ( Σ a and Σ α ) on the variance of the streams
i
Figure 4, a – KF (exact model: σ a =¿0 , σ =0 ,σ a =0 ,¿ σ α =0) estimates vs. true and measured values
[ ]
1 a2 3
0.25 0 0
(feed (σ ξ=10), concentrate and reject flow rates). Σ V = 0 0.16 0
0 0 0.01
Figure 4, b – KF (exact model: σ a =¿0 .05 , σ =0.1, σa =0.1 ,¿ σ α =0) estimates vs. true and measured
[ ]
1 a2 3
0.25 0 0
values (feed (σ ξ=10), concentrate and reject flow rates). Σ V = 0 0.16 0
0 0 0.01
Figure 4, c – KF (exact model: σ a =¿0.15 ,σ =0.2 ,σ a =0.2 ,¿ σ α =1) estimates vs. true and measured
[ ]
1 a2 3
0.25 0 0
values (feed (σ ξ=10), concentrate and reject flowrates). Σ V = 0 0.16 0
0 0 0.01
CONCLUSIONS
In this study the impact of modeling accuracy on KF’s performance is evaluated, and it is
shown that with respect to the value of the measurement errors, the sensitivity of the KF’s
performance is highly dependent on modeling errors.
It is obvious that the selection of the DDR observer is dependent on the existing facilities
and the existing knowledge about the processes in the plant. The fitting model method developed
by Vasebi et al.,( 2015) is simple and feasible. However, in conditions that variances of
measurement errors are small, if the dilution of these errors is needed, then the accuracy of the
model used in KF’s algorithm has a crucial role.
The results were reached by comparing of the variance terms of P vs. Σ V , but if
covariance terms were also used, accuracy of the model used in the Kalman filter would play
more crucial role.
REFERENCES
Bagajewicz, M. J., & Jiang, Q. (1997). Integral approach to plant linear dynamic reconciliation.
AIChE Journal-American Institute of Chemical Engineers, 43(10), 2546-2558.
Bai, S., Thibault, J., & McLean, D. D. (2006). Dynamic data reconciliation: Alternative to
Kalman filter. Journal of Process Control, 16(5), 485-498. doi:
10.1016/j.jprocont.2005.08.002
Darouach, M. & Zasadzinski M., 1991. Data reconciliation in generalized linear dynamic
Systems, AIChE J. 37(2), pp. 193-201.
Dochain, D., 2003. State and parameter estimation in chemical and biochemical processes: a
tutorial, Journal ofProcess Control 13, pp. 801-818.
Makni, S., Hodouin, D., Bazin, C. (1995). A recursive node imbalance method incorporating a
model of flowrate dynamics for on-line material balance of complex flowsheets.
Minerals Engineering, 8, 753–766.
Poulin, É., Hodouin, D., & Lachance, L. (2010). Impact of plant dynamics on the performance of
steady-state data reconciliation. Computers & Chemical Engineering, 34(3), 354-360.
doi: 10.1016/j.compchemeng.2009.11.018
Rollins, D. K., & Devanathan, S. (1993). Unbiased estimation in dynamic data reconciliation.
AICHE journal, 39(8), 1330-1334.
Romagnoli, J. A., & Sanchez, M. C. (2000). data processing and reconciliation for chemical
process operation.
Sbárbaro, R Del Villar. Advanced Control and Supervision of Mineral Processing Plants.
Springer. 2010.
Narasimhan, S, and C. Jordache, Data reconciliation & gross error detection: anintelligent use of
process data. 2000: Gulf Professional Publishing.
Tona, R., Benqlilou, C., Espuna, A., & Puigjaner, L. (2005). Dynamic data reconciliation based
on wavelet trend analysis. Industrial & Engineering Chemistry Research, 44(12), 4323-
4335.
Vasebi, A., Poulin, É., & Hodouin, D. (2012a). Dynamic data reconciliation based on node
imbalance autocovariance functions. Computers & Chemical Engineering, 43, 81-90.
doi: 10.1016/j.compchemeng.2012.04.004
Vasebi, A., Poulin, É., & Hodouin, D. (2012b). Dynamic data reconciliation in mineral and
metallurgical plants. Annual Reviews in Control, 36(2), 235-243. doi:
10.1016/j.arcontrol.2012.09.005
Vasebi, A., Poulin, É., & Hodouin, D. (2015). Determining a dynamic model for flotation circuits
using plant data to implement a Kalman filter for data reconciliation. Minerals
Engineering, 83, 192-200.
Xu, H., & Rong, G. (2010). A new framework for data reconciliation and measurement bias
identification in generalized linear dynamic systems. AICHE journal, 56(7), 1787-1800.