4.1. Stochastic Dynamic Model of a Motor
In control systems and signal processing, stochastic models are usually utilised to provide a model that incorporates discrepancies between the observed signals and the deterministic model; see, e.g., [
34,
35] for detailed modelling and analysis of stochastic dynamic systems. These discrepancies may arise from the discretisation method that has been utilised, perturbations (such as vibrations), changes in the model (such as an increase in the value of a resistance or a physical change of a component due to an increase in temperature), to name a few. These perturbations are typically incorporated in the model as additive independent random variables, which result in stochastic state variables, and an output equation with additive random noise that accounts for the fact that the measurement equipment is comprised of electronic (i.e., solid-state) devices that are subject to electronic thermal noise; see, e.g., [
36]. Moreover, in sensorless systems, there is no direct measurement of the angular velocity. Thus, a general sensorless stochastic state–space model for a DC motor is as follows:
where
is the function obtained using a discretisation method,
, where
is a diagonal matrix,
is the measurement of the armature current,
the measurement of the field current,
, and
, where
is a diagonal matrix.
4.2. Kalman Filter
The stochastic model for the SE motor is linear for the three discretisation techniques utilised in this paper.
The stochastic model for the SE motor using Euler method is as follows:
where
,
,
, and the remaining parameters are defined in (
11)–(15).
The stochastic model for the SE motor using Taylor method is as follows:
where
,
,
, and the remaining parameters are defined in (
37)–(
42).
The stochastic model for the SE motor using RK method is as follows:
where
,
,
, and the remaining parameters are defined in (
74)–(79).
In all three models for the SE motor, the angular velocity is not measured, and the armature current is measured with additive white Gaussian noise. Hence, since the models are linear, the estimation of the state variables can be carried out using the Kalman filter (KF) [
37]. This is due to the fact that the KF is the optimal (minimum variance) linear state estimator [
38].
The KF can be obtained from the theory of Bayesian filtering, using the fact that the state–space model of the DC motor is defined as a first-order Markov model; see, e.g., [
35,
37,
38].
In Bayesian filtering, the goal is to obtain the marginal posterior probability density function (pdf) of the states given the measurements. This is typically achieved via filtering and smoothing algorithms that operate recursively; see, e.g., [
39]. The recursivity is based on the first-order Markovian property of state–space models and the Chapman–Kolmogorov equation [
38,
39]. The Markovian property establishes that for a system, with known input
, described as
the conditional pdf of the state at time
k, given the states up to time
, satisfies
. This expression results in the following Chapman–Kolmogorov equation (for mode details, see, e.g., [
39]):
where
. On the other hand, the output equation defines the pdf of the measurement at time
k, given the state at time
k,
, which in turn defines the measurement-update equation
Notice that both the Chapman–Kolmogorov equation and the measurement-update equation can be obtained recursively from the pdf of the initial condition of the state, .
Finally, the posterior pdf of the state at time
k, given all the measurements (up to time
), is computed using the Bayesian smoothing equation [
39]:
In the case when the system is linear, and the process noise and measurement noise are Gaussian, the Chapman–Kolmogorov equation and the measurement-update equation result in the KF, which yields a Gaussian pdf of the state at time
k, given the measurements up to time
k. For time-invariant systems, the KF is summarised in
Table 5 and the Kalman smoother (KS) in
Table 6. In
Table 5, the subscript
refers to the estimation at time
k given the measurements up to time
. Similarly, the subscript
refers to the estimation at time
k, given the measurements up to time
k. The estimation of the state (which effectively corresponds to the estimation of the mean of the posterior distribution) is represented by
. Therefore,
. In
Table 6, the subscript
refers to the estimation at time
k, given all the measurements (up to time
N). Therefore,
. Notice that the Kalman smoothers in
Table 6 are recursive backward equations that correspond to the Rauch–Tung–Striebel (RTS) smoother [
39].
In order to understand each stochastic model and their respective filtering/smoothing for the SE motor, we considered the following simulation setup:
The true stochastic system was modelled utilising the eighth-order RK discretisation method, with additive Gaussian process noise with variance equal to for the armature current and for the angular velocity.
The process noise variances for the armature currents were , , and .
The process noise variances for the angular velocities were , , and .
The measurement noise variance was .
The motor was started from rest.
The number of Monte Carlo simulations is .
The results of all the Monte Carlo simulations are summarised in
Table 7, where the MSE is computed as
represents the
true value of the state for the
mth Monte Carlo simulation, and
and
are the estimates of the armature current and the angular velocity, respectively, obtained from the Kalman smoother for the
mth Monte Carlo simulation and each discretisation method.
The performance of the KS for the stochastic models follows a similar trend as the deterministic models. However, the difference in the MSE is of just one order of magnitude for the armature current, and the MSEs for the angular velocity are very similar.
4.3. Extended Kalman Filter
In nonlinear systems, the posterior pdfs
,
, and
are usually difficult to obtain in closed-form expressions. Their computation is usually subject to approximations that make them computationally tractable; see, e.g., [
37,
39]. One of the most popular approximations is based on the linearisation of the nonlinear system around the current estimates and the Gaussian approximation of the posterior pdfs. The result is the extended Kalman filter (EKF) and the extended Kalman smoother (EKS).
In the EKF, we approximate the nonlinear state in (
129) by its first order Taylor series at time
k around
. The output equation in (130) is approximated by its first order Taylor series at time
k around
. These two approximations yield the following time-variant model:
where
and
. The recursive equations that define the KF as a solution to the Chapman–Kolmogorov equation in (
131) and the measurement update equation in (
132) are shown in
Table 8, whilst the recursive equations that define the EKS as solution to the smoothing equation in (
133) are shown in
Table 9.
Remark 2. Notice that, in our problem of interest, the armature current (for the SE motor and the series motor) is directly measured, which results in . Therefore, . Similarly, for the shunt motor, we have that . Therefore, .
4.3.1. EKF/EKS Applied to the Shunt Motor
The filtering and smoothing equations in
Table 8 and
Table 9, respectively, were applied to the shunt motor with the following simulation parameters:
The true stochastic system was modelled utilising the eighth-order RK discretisation method, with additive Gaussian process noise with variance equal to for the armature current, for the field current, and for the angular velocity.
The process noise variances for the armature currents were , , and .
The process noise variances for the field currents were , , and .
The process noise variances for the angular velocities were , , and .
The measurement noise variances were , and .
The motor was started from rest.
The number of Monte Carlo simulations was .
The results of all the Monte Carlo simulations are summarised in
Table 10, where the MSE of the estimation of the field current is computed as
represents the
true value of the state for the
mth Monte Carlo simulation, and
are the estimates of the field current obtained from the Kalman smoother for the
mth Monte Carlo simulation and each discretisation method.
The performance of the EKS is similar for the three nonlinear models. However, the Euler method results in the worst performance (albeit very similar to the performance obtained using the other two discretisation methods). Again, the Taylor and RK methods exhibit an almost identical performance.
4.3.2. EKF/EKS Applied to the Series Motor
For the series motor, we considered the following simulation setup:
The true stochastic system was modelled utilising the eighth order RK discretisation method, with additive Gaussian process noise, with a variance equal to for the armature current and for the angular velocity.
The process noise variances for the armature currents were , , and .
The process noise variances for the angular velocities were , , and .
The measurement noise variance was .
The motor was started from rest.
The number of Monte Carlo simulations was .
The results of all the Monte Carlo simulations are summarised in
Table 11.
Simlar to the shunt motor, the performance of the EKS with the Euler discretisation method was very similar to the performance of the EKS with the Taylor and RK methods. In fact, the MSE with the Euler method was almost twice the MSE with the other methods.