Next Article in Journal
Discovering Vegetation Recovery and Landslide Activities in the Wenchuan Earthquake Area with Landsat Imagery
Next Article in Special Issue
A Factor-Graph-Based Approach to Vehicle Sideslip Angle Estimation
Previous Article in Journal
Wearable Feet Pressure Sensor for Human Gait and Falling Diagnosis
Previous Article in Special Issue
Estimating the Characteristic Curve of a Directional Control Valve in a Combined Multibody and Hydraulic System Using an Augmented Discrete Extended Kalman Filter
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multibody-Based Input and State Observers Using Adaptive Extended Kalman Filter

by
Antonio J. Rodríguez
1,*,
Emilio Sanjurjo
1,
Roland Pastorino
2 and
Miguel Á. Naya
1
1
Laboratorio de Ingeniería Mecánica, University of A Coruna, Escuela Politécnica Superior, Mendizábal s/n, 15403 Ferrol, Spain
2
Test Division, Siemens Digital Industries Software, Interleuvenlaan 68, B-3001 Leuven, Belgium
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(15), 5241; https://doi.org/10.3390/s21155241
Submission received: 31 May 2021 / Revised: 22 July 2021 / Accepted: 29 July 2021 / Published: 3 August 2021

Abstract

:
The aim of this work is to explore the suitability of adaptive methods for state estimators based on multibody dynamics, which present severe non-linearities. The performance of a Kalman filter relies on the knowledge of the noise covariance matrices, which are difficult to obtain. This challenge can be overcome by the use of adaptive techniques. Based on an error-extended Kalman filter with force estimation (errorEKF-FE), the adaptive method known as maximum likelihood is adjusted to fulfill the multibody requirements. This new filter is called adaptive error-extended Kalman filter (AerrorEKF-FE). In order to present a general approach, the method is tested on two different mechanisms in a simulation environment. In addition, different sensor configurations are also studied. Results show that, in spite of the maneuver conditions and initial statistics, the AerrorEKF-FE provides estimations with accuracy and robustness. The AerrorEKF-FE proves that adaptive techniques can be applied to multibody-based state estimators, increasing, therefore, their fields of application.

1. Introduction

In many applications, it is required to acquire data in order to analyze the performance of a particular machine, to make decisions through control strategies or to gather data for durability purposes. Most of the time, it is possible to get all the data through sensors. However, there are particular cases where a sensor cannot be installed due to economical or technical issues. In these situations, data acquisition relies on estimations.
Kalman filter [1] stands out as one of the most used estimation techniques. It combines a model describing the system with sensor measurements. The estimations are based on the statistical properties of the desired variables conditioned on the sensors measurements [2]. Although the Kalman filter was designed for linear systems, several approaches have been developed in the literature extending its use to non-linear models. Such is the case of the extended Kalman filter (EKF) or unscented Kalman filter (UKF) [2]. These approaches introduced the Kalman filter to real problems, which are predominantly non-linear.
Similarly, the interest for mulibody models has grown in the recent years in several fields of the industry, such as automotive, biomechanics or machinery. Through multibody dynamics, a system can be modeled with high accuracy [3], at expenses of a moderate computational cost. Recently, multibody models have started to be used in combination with Kalman filters for estimation. Such is the case of virtual sensing in automotive applications [4]. However, the assembly between a multibody model and a Kalman filter is not trivial due to the high non-linearities of multibody models.
The first approach presented in the literature is [5], where an EKF was combined with a simple mechanism. However, the complexity of the implementation and the computational cost limits its application. Several approaches have been presented later on [6,7,8,9]. In [7], an UKF based on a multibody model is proposed, reducing the complexity of the implementation. However, it entails high computational cost: the estimations are based on a set of sample points propagated through the model. Hence, it requires to simulate as many multibody models as sample points each time step. From the work presented in [8], a new Kalman filter known as error-state extended Kalman filter (errorEKF) shows accurate results while reducing the computational cost. In addition, the filter entails low coupling with the model. Thus, the implementation of any model becomes simpler. The errorEKF has been improved in more recent works, extending its estimations to inputs [9] and parameters [10].
The Kalman filter, besides being developed for linear systems, assumes that the noise of the measurements and the process (or system) are zero-mean white Gaussian with known covariance matrices [1]. These assumptions are hard to satisfy in real scenarios. The use of wrong statistics in the design of the filter can lead to large estimation errors or even a divergence in the filter [11]. In practice, these matrices are estimated through a tedious trial-and-error procedure. This is especially critical for the process noise covariance matrix (PNCM), since it is not possible to determine the accuracy of the model. Regarding the measurement noise covariance matrix (MNCM), each sensor is characterized and, hence, an initial value can be approximated.
However, even though a proper value of the noise covariance matrices is found, they remain constant reducing the robustness of the filter [10,12]. In some scenarios, the system can experiment a noticeable change during a particular maneuver. This change can affect the model accuracy and, thus, invalidate the initial noise covariances. This explains the increasing interest on developing methods for noise covariance matrices estimation [13]. These methods are usually known as Adaptive Kalman filters (AKF).
Adaptive Kalman filters can be divided in two major approaches: multiple-model based adaptive estimation (MMAE) and innovation-based adaptive estimation (IAE). Both approaches share the same concept of using the new information of the innovation sequence of the filter (difference between real and estimated measurements) [14]. MMAE methods implement a bank of several different models and compute the probability for each model to be the true system model given the measurement sequence and under the assumption that one of the models in the bank is the correct one. IAE performs the adaptation based directly on the innovation sequence, using the fact that the innovation sequence is white noise if the filter has the right values of the covariance matrices [15].
Multibody models can be computationally expensive and achieving real-time performance in practical applications is a challenge [16]. Hence, executing several models in parallel following the MMAE approach would compromise real-time performance and, thus, the viability of the solution.
Focusing on the IAE, there are many alternatives presented in the literature. In [14], an approach based on the maximum likelihood criteria (ML) is proposed to estimate both the PNCM and MNCM for inertial navigation, where Kalman filters are employed to overcome the lack of GPS signals in certain areas. The proposed approach is also compared against conventional Kalman filters. The ML aims to maximize the probability that a set of data (i.e., innovation) is observed for a given a parameter (i.e., noise covariance matrices). The ML depends on a window of past innovation data. If the sample data grows without bound, the estimate converges to the true value of the covariance matrices. As a counterpart, the ML could be biased for small sample sizes (over-trained). This issue is addressed in [17] by combining the ML with a fuzzy control in order to select only the viable satellites for the estimation, removing outlier data from the innovation sequence.
In [18], an IAE adaptive Kalman filter is also proposed for sensor fusion in INS/GPS navigation. The algorithm is equivalent to the maximum likelihood criteria. Combining the GPS with an IMU, the position can be accurately tracked, even in environments without GPS signal.
For spacecraft navigation, in [12], an AKF based on ML combined with fuzzy logic is proposed. The fuzzy logic is based on the discrepancy between the estimated covariance and the theoretical covariance bounds. The use of fuzzy logic helped to reduce the computational cost. However, the use of fuzzy logic incremented the estimation errors.
In [19], a Sage-Husa (SH) filter is combined with a Kalman filter to obtain the angular velocities of a vehicle from an inertial navigation system which uses only accelerometers. The SH algorithm is equivalent to those resulting from maximum likelihood estimation [20]. It is based on the maximum a posterior probability (MAP), which maximizes the probability of a parameter for a given set of data. It means that the likelihood is weighted by the prior information. In practice, it can be seen as applying weights in the ML estimates, giving more relevance to the most recent estimations. Sage-Husa algorithm is an alternative to the ML when there are not enough data available. However, it cannot estimate the PNCM and MNCM simultaneously without causing divergence in the estimations [21].
The SH algorithm is also used with modifications in [22] to estimate the MNCM of an UKF for state estimation in a vehicle. A similar approach is followed in [21], where a robust UKF is complemented with the SH algorithm for estimating the PNCM for autonomous underwater vehicle acoustic navigation.
Another approach for adaptive Kalman filtering is known as Variational Bayesian (VB). While ML and MAP give a fixed value for the noise covariance matrices (point estimators), the VB gives a probability density function. The advantage of this method is that it mitigates the effect of over-trained filters [23]. As an example, the VB is applied in [24] in order to improve the measurements of inertial navigation systems. It shows robustness against anomalous measurements. As a counterpart, the VB assumes that the PNCM is accurately known. Thus, it can be only used for estimating the states and the MNCM [25]. This is an important drawback since, as reflected in [26,27], the filter performance will decrease with the uncertainties of the PNCM. The VB approach is extended in [26,28] including the calculation of the predicted error covariance matrix instead of the process covariance matrix seeking for higher accuracy. In the same way, in [29], the VB approach is enhanced by its combination with a Sage-Husa algorithm for the PNCM estimation achieving satisfactory results.
The aim of this work is to explore the use of adaptive algorithms with multibody based Kalman filters, solving the actual limitation of the unknown statistics of the noise covariance matrices. For that purpose, a Kalman filter based on multibody models has to be combined with an adaptive method. This implies to study how to combine the different equations involved, performing the required modifications. Most of the research made in adaptive Kalman filtering is related to navigation applications. However, multibody models present strong non-linearities that can affect the performance of the adaptive filters. To the authors’ knowledge, adaptive Kalman filtering is a technique that has never been applied to multibody-based estimation and, at the state of the art of Kalman filtering in this field, it is the next natural step to be taken.
As novelty, this work presents a state and input estimator for multibody models, which includes an adaptive methodology in order to estimate the noise covariance matrices. The lack of knowledge on the statistics of the system is an actual limitation for industrial applications of multibody-based estimation. That is the case, for example, of automotive applications, where the maneuvers are continuously changing and adjusting the noise covariance matrices following a trial-and-error procedure is not viable. Following the presented approach, this limitation can be overcome, and the use of estimation based on multibody models can be increased in real industrial applications.

2. Materials and Methods

This work continues the development of an accurate and efficient Kalman filter for multibody models. Starting from the work presented in [9], the errorEKF with force estimation is extended with adaptive methods improving its accuracy and robustness. The errorEKF with force estimation is one of the best options in terms of accuracy and computational efficiency for multibody-based Kalman filtering. Regarding the adaptive method, whereas the Variational Bayesian can only be used for estimating the measurement noise covariance matrix, the Sage-Husa and maximum likelihood can estimate the process and measurement noise covariance matrices. The former has shown lack of stability if both matrices are estimated simultaneously. Hence, the filter of this work combines the maximum likelihood method with the errorEKF with force estimation.
The adaptive techniques used in this work are evaluated when applied to mechanisms described by multibody models. In order to present a fair comparison with the previous version of the filter, the mechanisms employed in this work are the same as in [9]: a four bar linkage (Figure 1a) and a five bar linkage (Figure 1b). The dimensions of both mechanisms are summarized in Table 1 and Table 2.

2.1. Multibody Modeling

The input and state observer that is used in this work, the errorEKF with force estimation, can be applied to any multibody formulation and integrator [8]. This is one of its main advantages, since it reduces the complexity of implementing estimators based on multibody models (MBS). For example, in [9], an augmented Lagrangian formulation of index 3 (ALI3P) using natural coordinates is employed. Meanwhile, in [10], the multibody model is based on a semi-recursive method using relative coordinates.
In this work, the ALI3P formulation is selected following the work in [9]. First presented in [30], this formulation is widely used in multibody applications due to its efficiency and robustness [16,31,32,33,34]. The formulation is briefly described next. The reader is referred to [30,31,35] for further details. The multibody models are simulated using MBDE, a MATLAB ® Open Source toolbox (See https://github.com/MBDS/mbde-matlab (accessed on 12 May 2021)).
The dynamics of a multibody system can be described by an index-3 augmented Lagrangian formulation as,
M q . . + Φ q T α Φ + Φ q T λ * = Q
being M the mass matrix, q . . the accelerations of the natural coordinates, Φ the constraints vector, Φ q the Jacobian matrix of the constraint equations with respect to the generalized coordinates q , α the penalty factor, Q the vector of generalized forces, and λ * the vector of Lagrange multipliers obtained through the following iteration process [35],
λ i + 1 * = λ i * + α Φ i + 1 , i = 0 , 1 , 2
where i is the index of the iteration.
It should be noted that this method directly includes the constraint equations at position level as a dynamical system, penalized by a large factor, α . The larger the penalty factor, the better the constraints will be achieved. In order to avoid numerical ill conditioning, a factor between 10 7 and 10 9 (depending on the mass of the system) gives excellent results for double arithmetic [3].
In order to integrate Equation (1), the implicit single-step trapezoidal rule has been adopted. The corresponding difference equations in velocities and accelerations can be derived as,
q . n + 1 = 2 Δ t q n + 1 + q . n * ; q . n * = 2 Δ t q n + q . n
q . . n + 1 = 4 Δ t 2 q n + 1 + q . . ^ n * ; q . . ^ n * = 4 Δ t 2 q n + 4 Δ t q . n + q . . n
where Δ t is the time-step. Introducing the previous equations in Equation (1) leads to a nonlinear system of equations, f , in which the positions at time-step n + 1 are the unknowns. Hence,
f ( q n + 1 ) = 0
Since Equation (5) is a nonlinear system of algebraic equations, the Newton–Raphson iteration can be used to find a solution. The residual vector is,
f ( q ) = Δ t 2 4 ( M q . . + Φ q T α Φ + Φ q T λ * Q )
and the approximated tangent matrix,
f q q = M + Δ t 2 C + Δ t 2 4 Φ q T α Φ q + K ¯
where K ¯ and C represent the contribution of damping and elastic forces of the system.
After converging to a solution, the positions satisfy the equations of motion and the constraint conditions, Φ = 0 . However, there is no guarantee on satisfying the constraint equations at velocity, Φ . = 0 , and acceleration level, Φ . . = 0 , since they were not imposed. To overcome this issue, the velocities and accelerations are projected,
f ( q ) q q . = M + Δ t 2 C + Δ t 2 4 K ¯ q . ˜ Δ t 2 4 Φ q T α Φ t
f q q q . . = M + Δ t 2 C + Δ t 2 4 K ¯ q . . ˜ Δ t 2 4 Φ q T α Φ . q q . + Φ . t
where q . ˜ and q . . ˜ are the velocities and accelerations obtained from the integration process, i.e., non-compliant with the constraints equations.

2.2. Adaptive Error-State Extended Kalman Filter with Force Estimation (AerrorEKF-FE)

The errorEKF with force estimation is based on indirect estimation, also known as error-state estimation. It combines the efficiency of an EKF filter with the easy integration of the dynamical system in the UKF filters [36]. The coupling between the filter and model is limited to share information regarding the states, which are the error in the kinematics of the model. The multibody model can be used without modifications and, thus, any formulation or integrator can be employed.
The diagram of Figure 2 illustrates the procedure followed by the adaptive errorEKF with force estimation for a time step k. The method starts integrating the multibody equations, obtaining the predicted coordinates q M B S , velocities q . M B S and accelerations q . . M B S . These coordinates are later used to obtain the virtual measurements h ( q M B S , q . M B S , q . . M B S ) . Later, the equations of the filter are used to perform the estimation.

2.2.1. State and Input Estimation

For estimating the states and inputs of the system, the state vector consists in the error in position, velocity and acceleration of the degrees of freedom of the mechanism, ensuring a certain level of independence within the states. Hence,
x T = Δ z T , Δ z . T , Δ z . . T
where Δ z , Δ z . , Δ z . . are the errors in position, velocity and acceleration of the independent coordinates (coincident with the degrees of freedom), respectively, such that,
z = z M B S + Δ z
z . = z . M B S + Δ z .
z . . = z . . M B S + Δ z . .
being z M B S , z . M B S , z . . M B S the virtual positions, velocities and accelerations of the degrees of freedom (i.e., the coordinates predicted by the multibody model), and z , z . , z . . the real positions, velocities and accelerations of the degrees of freedom of the mechanism. It should be noted that estimating the accelerations is closely related with the estimation of the forces, as can be seen from Equations (22)–(24).
Combining the information from the real and virtual measurements into the Kalman filter, the state of the multibody model is corrected. Thus, the expected error for the next time step is null. As a consequence, the propagation phase takes the form of,
x ^ k = 0
P k = f x k 1 P k 1 + f x k 1 T + Σ ^ P k 1 +
where P is the covariance matrix of the estimation error, f x is the Jacobian matrix of the transition model and Σ ^ P is the estimated covariance matrix of the plant or process (i.e., the multibody model), referred as PNCM. Note that since the filter is adaptive, the value of Σ ^ P is estimated each time step. For the propagation phase, the best estimation of the Σ ^ P is the one obtained in the previous time step.
Equations (14) and (15) are equivalent to the equations employed in the discrete extended Kalman filter (DEKF) [2,37]. Following [9], the Jacobian matrix of the transition model can be derived through a forward Euler integrator of the states and a random walk for modeling the acceleration error,
f x = I + 1 2 Δ z . . z Δ t 2 I Δ t + 1 2 Δ z . . z . Δ t 2 1 2 I Δ t 2 Δ z . . z Δ t I + Δ z . . z . Δ t I Δ t 0 0 I
where the terms Δ z . . z and Δ z . . z . reflect the effect of the acceleration error through the force models of the multibody model. Deriving expressions for these terms is not straightforward and is out of the scope of this work. The reader is referred to [9,38] for a comprehensive explanation on how to obtain these terms.
Following the equations defined for the DEKF [2,37], the corrections can be propagated through the states obtaining the a posteriori state vector, x ^ + , yielding,
y k = o k h ( q M B S , q . M B S , q . . M B S )
Σ k = h x k P k h x k T + Σ ^ S k 1 +
K k = P k h x k T Σ k 1
x ^ k + = 0 + K k y k
P k + = ( I K k h x k ) P k
being y k the innovation sequence, o k the measurements, Σ k the innovation covariance matrix, K k the Kalman gain, and Σ ^ S the covariance matrix of the sensors or measurements (MNCM). Similarly to Σ ^ P in Equation (15), Σ ^ S can vary within time steps. Hence, Σ ^ S k 1 + is the more accurate value for propagating the corrections. The state vector and covariance matrix are estimated in Equations (20) and (21), respectively.
From the a posteriori state vector, x ^ + , and through Equation (13), the estimated position z ^ , velocities z . ^ and accelerations z . . ^ for the time step k are obtained. Since the model relies on the set of dependent coordinates, it is required to compute the errors in these coordinates. Projecting the independent coordinates over the constraints manifold, the dependent coordinates can be obtained as stated in [9].
After correcting the states of the model, the forces (or inputs) can be estimated. The error in forces can be seen as the forces required to avoid the error in accelerations, which is referred as Δ Q . Since (in general) there are more dependent coordinates than degrees of freedom, there are infinite force combinations producing the same effect. Hence, depending on the application, different criteria should be considered in order to find a proper force distribution [10]. A common solution, valid for simple mechanisms, is to assume that the unknown forces are applied to the degrees of freedom. Therefore,
Δ Q k q = 0
Δ Q k z = Δ Q k 1 z + M ¯ Δ z . . ^
Δ Q = Δ Q z T Δ Q q T T
being Δ Q q and Δ Q z the force correction acting on the dependent and independent coordinates (equivalent to the degrees of freedom), respectively.

2.2.2. Process and Measurement Covariance Matrices Estimation

As reflected in Section 1, knowing the covariance matrices of the process and measurements noises is critical for a proper behavior of the filter in terms of accuracy and robustness. For the particular case of multibody models, the PNCM is the most critical. The PNCM is completely unknown and can vary depending on the maneuver due to, for example, external perturbations which are not modeled. On the other hand, the MNCM can be approximated by the information provided by the sensor manufacturer. In addition, fluctuations of this noise is not expected within maneuvers. In order to address this issue, in this work, the previous errorEKF with force estimation is extended with adaptive strategies for the PNCM. The effect of a proper estimation of the MNCM is also addressed.
Following the work presented in [14], through the maximum likelihood technique, the PNCM and MNCM can be estimated. The ML has the attractive property of uniqueness and consistency of the solution. This ensures, in a probabilistic sense, a convergence to the true value of the covariance matrices. However, the ML relies on a sliding window of the innovation sequence, whose size directly affects its performance: small sample sizes would lead to biased estimations.
In addition, the solution proposed in [14] is developed for navigation purposes. It assumes that the filter transition matrix, f x , and the design matrix, h , are time invariant. This is not true when using the errorEKF. Thus, the algorithm should be adapted for the use-case of this work.
The detailed procedure for estimating the PNCM and MNCM through the ML method is presented in [14]. Before presenting the method, it should be noted the difference between probability and likelihood. Probability refers to the chances of an event to happen based on the statistical distribution of some data. Likelihood corresponds to finding the distribution that fits best to a given set of data.
The ML estimation aims to solve the question of, given the observed data, which are the model parameters that maximize the likelihood of the observed data occurring. The likelihood function can be defined as L ( α | Z ) , where α are the parameters and Z the observed data. In innovation-based adaptive Kalman filtering, the parameters are the noise covariance matrices, and the observed data corresponds to the innovation sequence. In plain words, the ML estimates the noise covariance matrices searching for the values which give the maximum probability of obtaining a particular innovation sequence.
In order to calculate the likelihood, it is expressed as the probability of observing a certain dataset under an unknown statistical distribution, that is P ( Z | α ) . Hence, the target is to find the value of α , which maximizes P ( Z | α ) . If the sets of observed data, N, are independent, the likelihood of observing the data can be expressed as the product of the probability of observing each data point individually yielding,
L ( α | Z ) = j = 1 N P ( Z j | α )
where α , for this particular case, corresponds to the elements of the noise covariance matrices, and Z are the innovations of the errorEKF with force estimation, y . Regarding j = 1 N ( · ) , it implies the product of the full set of innovations. However, storing the entire set of past data is not viable for online estimation. Thus, a slide window is defined so that the filter only processes a fixed number of past events.
Assuming that the innovation sequence is Gaussian distributed, the likelihood function can be expressed as,
L ( α | y ) = j = 1 N 1 ( 2 π ) m | Σ j | exp 1 2 y j T Σ j 1 y j
being y the innovation sequence, Σ the covariance matrix, m the number of measurements per time step, | · | the determinant operator, and exp the natural base.
The value of α maximizing the likelihood can be obtained by deriving the likelihood function (Equation (25)) with respect to α and setting it to zero. However, differentiate Equation (25) is difficult. As an alternative, Equation (25) is simplified by taking the natural logarithm of the equation yielding,
L ( α | y ) = 1 2 j = j 0 k l n | Σ j | + y j T Σ j 1 y j + c j
where c j is a constant term independent of the adaptive parameters, α . Maximizing the previous equation is equivalent to minimizing its negative version. Neglecting the constant terms, the maximum likelihood condition can be derived,
j = j 0 k l n | Σ j | + j = j 0 k y j T Σ j 1 y j = m i n
where k is the time step in which the covariance matrix is estimated and j is the counter inside the estimating window. Equation (28) aims at finding the covariance matrix, which results in the smallest error norm, being complementary to the state estimation.
As stated before, the solution for Equation (28) can be constructed by taking its derivative with respect to the adaptation parameters and setting the results to zero. This yields,
j = j 0 k t r Σ j 1 Σ j S α k y j Σ j 1 Σ j S α k Σ j 1 y j T = 0
In addition, using Equations (15) and (18), the covariance matrix, Σ k , can be replaced by Σ P and Σ S . After some manipulation [14], the equation that maximizes the likelihood function for the adaptation parameters can be expressed as,
j = j 0 k t r Σ j 1 Σ j 1 y j y j T Σ j 1 Σ j S α k + h x j Σ j 1 P α k h x j = 0
From Equation (30), expressions for Σ P and Σ S can be obtained independently. For deriving the expression of Σ P , it is assumed that Σ S is known and independent of α (i.e., Σ j 1 P α k = 0 ). Under this assumption, the adaptation relies on Σ P . This means that the covariance noises of the process are the adaptive parameters (i.e., α = σ 2 ). Considering Σ P as a diagonal matrix leads to
j = j 0 k t r Σ j 1 Σ j 1 y j y j T Σ j 1 0 + h x j I h x j = 0
which can be reduced to
j = j 0 k h x j T Σ j 1 Σ j 1 y j y j T Σ j 1 h x j = 0
Introducing now the expressions of the errorEKF, the covariance matrix Σ can be replaced by Σ P , leading to
Σ ^ P k = 1 N j = j 0 k Δ x j Δ x j T + P j + f x j P j 1 + f x j T
where P j + f x j P j 1 + f x j T covers the change in the covariances between time steps, and Δ x k is the state correction sequence. Since the state vector in the errorEKF, defined in Equation (10), is the error in the variables, and the a priori state vector is null,
Δ x k = x ^ k + 0
The same procedure can be followed to estimate the measurement noise covariance matrix. Thus, assuming that Σ P is known and independent of α , and that Σ S is diagonal,
Σ ^ S k = 1 N j = j 0 k y j y j T h x j P j h x j T
Note that both estimations (Equations (33) and (35)) are considering that the transition matrix, f x , and observation matrix, h x , are time-varying.
Furthermore, the shape of both matrices for the errorEKF with force estimation is known. The information of the matrices shape is useful to help the algorithm to reach the convergence. Thus, the estimated PNCM and MNCM are modified in order to adapt them to their theoretical shape. The MNCM is a diagonal matrix composed by the covariance of each sensor. The PNCM, according to [9], is
Σ ^ P = 0 0 0 0 0 0 0 0 d i a g σ ^ 2
where d i a g σ ^ 2 is a diagonal matrix containing the variance of all the components of the discrete plant noise at acceleration level.
A last consideration is that the covariance matrices must be semi-definite positive. With this algorithm, this cannot be guaranteed. Having a negative definite matrix would lead the filter to failure. To ensure the semi-definite positiveness of the matrices, the negative values are set to their absolute value [39].

2.3. Methods

All the experiments of this work are performed in a simulation environment in MATLAB ® , using the Open Source toolbox MBDE (See https://github.com/MBDS/mbde-matlab (accessed on 12 May 2021)). The simulations are executed in a single core of a PC with an Intel Core i5 at 3.50 GHz and 8 Gb of RAM. Since there is not a physical prototype, three multibody models of each mechanism are employed in order to replicate a real scenario through simulation. All the simulations are launched with a time step of 5 milliseconds, that is a frequency of 200 Hz. They are detailed hereafter:
  • Real mechanism: This model represents the real version of the mechanism, providing the ground truth. It is equivalent to the physical mechanism. The sensor measurements are obtained from this model. The sensor data is gathered from the kinematics of the real mechanism. Since the sensor data is obtained from a simulation, it is required to add white noise to the simulated measurements in order to represent the noise properties of real sensors.
  • Model: This model represents the modeling of the real mechanism. The model can be affected by several uncertainties. Even though multibody modeling can represent with high accuracy a real mechanism, it is always subjected to modeling errors. While the geometry of a system can be accurately determined, the force models present a high level of uncertainty. Hence, this model is modified, creating a discrepancy between model and real mechanism. It should be mentioned that the errors in the mass or the mass distribution will lead to a similar accuracy level regarding kinematics magnitudes, since both force and mass errors result in acceleration errors. In addition, while the mass usually remains constant, force models are prone to change during a maneuver. Thus, it is of interest to test the estimator under errors in force models. The modeling error introduced is of 1 m / s 2 in gravity acceleration. In addition, the initial value of the crank angle has an offset of π / 16 rad .
  • Observer: The estimations are computed based on this model. Regarding the modeling, it is the same as the model. The difference is that it is combined with the filter. Thus, its motion and dynamics are corrected with the information of the sensors installed on the real mechanism.
For the estimation, different sensors are considered. Although there are multiple possible configurations, for a reliable comparative with the results of [9], the same four combinations are considered. The four-bar and five-bar linkage share the same configurations for the sensors, duplicating the number of sensors in the case of the five-bar linkage, since it has two degrees of freedom. The sensor models are provided in [9]. The characteristics of each sensor are presented in Table 3. They are obtained from the technical data sheet of similar sensors. The four considered configurations are listed next:
  • Encoder on the crank for measuring the crank angle, which is the degree of freedom (Figure 3a).
  • Gyroscope on the crank for measuring the angular rates (Figure 3b).
  • Gyroscope in the coupler of the mechanism (Figure 3c).
  • Pair of accelerometers at the end of the crank, in such a manner that there is one sensitive axis parallel and another perpendicular to the crank (Figure 3d).
The performance of the proposed estimator is evaluated in terms of accuracy and robustness. For the accuracy, a set of tests is executed under different initial noise covariance matrices. It is expected that the filter converges to a similar accuracy level independently from the initial noise covariance matrices, due to the adaptive equations. With respect to the robustness, it is of interest that the estimator can cope with unexpected events during the simulations without causing a divergence in the estimations.
The numerical results of each test are analyzed using two different metrics: the root-mean square error (RMSE) and the confidence interval of the estimation errors. The RMSE is used to measure the accuracy of the estimations in position, velocity, acceleration and force acting in the degree of freedom of each mechanism. The RMSE can be obtained following Equation (37).
R M S E = i = 0 N ( V i r t u a l i R e a l i ) 2 N
being N the number of samples gathered during the simulation. V i r t u a l refers to the estimated value of the variable and R e a l to the reference value obtained from the real mechanism.
The confidence intervals of the errors give a different insight with respect to the RMSE on the accuracy of the estimator. For being reliable, the error of the estimations must be inside the confidence interval. Thus, the confidence interval of the estimation errors in position, velocity and acceleration are also provided. A confidence interval is calculated as a function of the standard deviation of a variable, which is related to the diagonal elements of the covariance matrix, P (Equation (21)). In this work, a confidence interval of 95% is selected. It can be calculated through Equation (38).
C I = E ¯ ± 1.96 σ i
where E ¯ is the mean estimation error of the ith variable and σ i the standard deviation of the ith variable.

3. Results

To asses the performance of the proposed adaptive Kalman filter, different tests are launched. During the first test, the mechanisms are in the vertical plane and they are only affected by the gravity force. A batch of tests is executed under these conditions for different initial values of the PNCM. The results of each simulation are compared against the results obtained from the conventional errorEKF with force estimation. In a second test, the mechanisms are modified with the addition of a torsional spring in the crank. During the simulation, the spring is removed from the real mechanism, simulating a failure on a real machine. The AerrorEKF-FE is expected to overcome this new modeling error (together with the error in the gravity acceleration and initial position) in the observer and adapt the covariance matrices to the new situation.
The simulations are executed with a time step of 5 milliseconds, that is a frequency of 200 Hz. The measurements are gathered at 200 Hz. Hence, there is one measurement available at each time step. The errors introduced in the model for each test are of 1 m / s 2 in gravity acceleration and of an offset in the initial value of the crank angle π / 16 rad . In addition, for testing the robustness, a torsional spring is introduced in the crank. During the simulation, this spring is removed only from the real mechanism. The observer should detect this event through the sensor measurements and perform the required corrections.

3.1. Accuracy Test

For testing the convergence of the adaptive filter, different initial values of the PNCM are selected. While the MNCM can be approximated by testing the sensors, an initial value for the process noise is more difficult to obtain. Due to this inconvenience, it is of interest to test the robustness of the proposed filter under different initial values of the PNCM. The results are compared with the ones obtained from the errorEKF-FE. This would show the error reduction when using the AerrorEKF-FE if the initial PNCM is not close to the true value.
Following Equation (36), for the four-bar linkage, only one value is required. For the five-bar linkage, since it has two degrees of freedom, two elements of the PNCM matrix should be instantiated. For simplicity, both elements are set to the same value. The different initial values are summarized in Table 4.
Note that the initial values of both noise covariance matrices are used for the errorEKF-FE and AerrorEKF-FE. For the errorEKF-FE, these values are constant during the simulation, since it assumes that the PNCM is constant. Meanwhile, for the AerrorEKF-FE, these are the initial values of the PNCM, which are modified by the adaptive method. Hence, a total of six simulations for each sensor configuration are launched for each filter in order to compare their performance.
From the initial tests, an undesired behavior is detected. If both the PNCM and MNCM are estimated at the same time, the filter shows a trend to diverge. In Figure 4, the evolution of the estimated PNCM in the four-bar linkage is represented and compared with its evolution when the MNCM is not included in the estimation. Except for the case of the accelerometers, there is a trend to a continuous growth of the PNCM. This implies that the filter is reducing its trust on the model in exchange of the measurements.
The different behavior within configuration relies on the nature of the sensors. In the scenarios without accelerometers, there is a trend of divergence in the acceleration error. In addition, when using only an encoder, both the velocity and acceleration error diverge. Once that the estimator detects that the error is increasing through the innovation sequence, it starts to reduce the confidence in the model and trusting more in the sensors. However, correcting the acceleration error from measurements in position or velocity is not accurate. Hence, the error keeps growing causing the filter to diverge. At some point, this issue will lead to a failure of the filter. This, together with the non-linearities of the mechanisms, can result in unpredictable behaviors as the case of the gyroscope in the crank. Hence, for the rest of the experiments, only the PNCM is estimated.
Regarding the size of the sliding window for the innovation sequence, it should be noted that a large window leads to low mean errors in smooth maneuvers. However, a large window also implies slow corrections to the covariance matrix. Hence, in some tests, the delay in the correction can result in an error which is not corrected. This is the case shown in Figure 5. It corresponds to a simulation of the four-bar linkage with a gyroscope on the coupler and an initial process covariance noise of σ i i , 0 2 = 10 , and a window length of 100 time steps. The same maneuver is performed with a window length of 50 samples. The innovation sequences are shown in Figure 5a. The value of the crank angle for each slide window size is shown in Figure 5b.
As can be seen in Figure 5a, with a window length of 100 samples, there are a notable difference between the estimated and measured angular rate of the coupler at particular moments of the maneuvers. In these points of the maneuver, the mechanism reaches a position where the crank and the rocker are parallel. In this situation, the possible velocities of the coupler are limited. Thus, for an error in position, the error in velocity can be incorrigible. This is a consequence of the non-linearity of the system.
Comparing the results between different window sizes, it is possible to appreciate the effects of the samples considered for the estimation. With a large window, the filter cannot correct with immediacy the error. Although it is able to correct the error in terms of crank angular rate, as is shown in the innovation sequence, a permanent offset appears in the position of the crank angle. Meanwhile, with a short window length, the influence of previous values is reduced and the filter can perform the correction properly. Hence, the tests of this work are executed with a window of 50 samples for the innovation sequence.
There is no a general criteria for selecting the length of this window. It should be adjusted depending on the nature of the maneuver aiming to include only the relevant information of past events. The main idea is to avoid the effect of past events which do not have relation with the actual state of the mechanism. If a maneuver is close to steady state, a large window can be selected. On the other hand, a short window length is adequate in cases where the system changes.
In order to analyze the performance of the proposed adaptive filter, the RMSE for the position, velocity, acceleration and force acting in the degree of freedom of each mechanism is evaluated. From Figure 6, Figure 7, Figure 8 and Figure 9, the RMSE between the AerrorEKF-FE and errorEKF-FE are compared for the four-bar mechanism. Results show that the adaptive version of the errorEKF-FE leads in most of the test to a lower error in all the measured magnitudes. In fact, in some configurations, the RMSE is almost constant. This behavior is what could be initially expected: despite the different initial PNCM, the AerrorEKF-FE is capable of finding an optimal covariance that minimizes the errors in all tests.
The confidence intervals of the error in position, velocity and acceleration are shown in Figure 10 for one of the simulations. It can be seen how the errors converge to the true value and that the confidence intervals are consistent with the evolution of the error. Considering that the confidence interval is of 95%, it can be asserted that only the 5% of the estimations will have an error higher than 1.96 times the standard deviation of the variable (i.e., the square root of the diagonal elements of the covariance matrix, P , of Equation (21)). These plots also provide useful information about the observability of the system. Since the confidence interval is based on the PNCM elements, if the system were not observable, it could be expected an unlimited growth of the covariance of the states.
With respect to the five-bar linkage, a similar trend can be appreciated from Figure 11, Figure 12, Figure 13 and Figure 14. Except for the crank angle and angular rate when using gyroscopes in couplers, the rest of the experiments show that the AerrorEFK-FE converges to accurate solutions in every tested case. Thus, it is able to estimate the value of the PNCM which minimizes the error.

3.2. Robustness Test

For evaluating the robustness of the filter, the four-bar linkage is equipped with a torsional spring actuating over the crank angle. In order to replicate a failure, at 5 s, the spring breaks. In this new scenario, the real mechanism continues the maneuver without the spring, while the observer is still considering its existence for the dynamics. This test is useful to analyze the response of the filter to unexpected changes. The observer is also under the errors of previous tests: 1 m / s 2 in gravity acceleration. In addition, the initial value of the crank angle has an offset of π / 16 rad .
The results in terms of force estimation are shown in Figure 15. The estimated force can be understood as the torque, which would have to be applied to the crank to compensate the errors. It is equivalent to the difference between the force applied in the real mechanism and the model. It can be seen how, at the time of 5 s, the observer has to subtract the force in the crank. Since there is no spring in the real mechanism, the observer needs to apply a torque equal in magnitude but different in sign to the torque applied by its spring.
It can be seen how, except for the encoder configuration, the observer tracks the reference values. In addition, the filter responses with immediacy to the spring failure. This time response can be achieved by adjusting the innovation window length, seeking for a compromise between accuracy and time response. For this case, the window length is of 50 samples. Regarding the encoder configuration, the behavior is similar to what could be appreciated in [9]. There is a delay in the estimation and the noise is noticeable. It can be explained by the fact that obtaining acceleration from position information.
With respect to the other three configurations, the estimations present a reduced noise, being the use of accelerometers the most accurate solution. The use of gyroscopes shows a good behavior before the spring breaks. Once this event takes place, both tests show a remarkable overshooting which is quickly corrected at expenses of higher noise. However, in both cases, it can be appreciated how the noise is being reduced with time. This is in line with what is shown in Figure 16.
It can be seen how the confidence interval becomes wider when the spring breaks. In terms of the PNCM, it means that the AerrorEKF-FE has detected the change in the real mechanism. To address this new modeling error, the filter increases the values of the PNCM giving more relevance to the sensor measurements. Once that the observer tracks the new scenario of the real mechanism, the covariances are reduced together with the noise of the estimations.

3.3. Computational Cost

For most of the industrial applications, it is required to achieve real-time performance. In previous works, the errorEKF-FE has proven to be capable of running in real time with complex multibody models [10]. Hence, it is of interest to analyze the increment in computational cost derived by the presented adaptive procedure.
It is important to remark that this work is developed in MATLAB ® , which is not oriented to real-time applications. Hence, measuring the computation time of the algorithm is not a fair test. However, since the errorEKF-FE and AerrorEKF-FE are executed under the same conditions, a reference in the increment in computational cost can be derived. It can be seen in Table 5. From the results, it can be concluded that the AerrorEKF requires about the double of time than the error errorEKF-FE for computing the same simulation.

4. Discussion

From the presented results, it can be seen that the adaptive version of the errorEKF-FE solves one of the main drawbacks of the filter: setting the values of the process noise covariance matrix. The tests performed during this work show that, with independence of the initial assumptions on the PNCM, the AerrorEKF-FE converge to an accurate solution. As shown during the accuracy test, the AerrorEKF-FE is able to achieve a similar level of error in the estimations despite of the initial values of the PNCM. This allows to reduce the development time of multibody-based Kalman filters, where the determination of the statistics of the system is a tedious process. In addition, even though the maximum likelihood method depends on a sliding window of the past innovation, the filter has shown an acceptable response to sudden changes in the system. Through the simulation of a sudden failure in the real mechanism, the robustness of the filter is tested. The results show that the estimator is able to track the new situation and correct the new error with accuracy, without compromising the convergence of the simulation.
It can also be concluded that, although the measurement noise covariance matrix can also be estimated through the ML method, in this particular case it led to a filter divergence in the absence of accelerometers. When the estimator detects an error, it starts to rely on the corrections in the measurements instead of the model. However, through sensors in position or velocity, the acceleration cannot be obtained with accuracy and hence, the error cannot be corrected. This, together with the non-linearities of the model, leads to a divergence of the filter. In addition, the estimation of the MNCM did not offer an improvement of the estimations. However, as opposite from the PNCM, it is possible to obtain an acceptable initial value for the MNCM after characterizing the sensors or through the information provided by the manufacturer of each sensor.
The length of the sliding window for the innovation sequence is also an important factor and one of the main limitations of the approach. A large window size can result into wrong estimations in maneuvers with high variability. This is one of the known disadvantages of the ML method, since there does not exist a general rule in order to select the most suitable innovation window length. Algorithms such as Sage-Husa are focused on minimizing the impact of the window length by giving different weights to the elements of past events, giving higher weights to the more recent events.
Regarding the computational cost, the AerrorEKF-FE has lower efficiency than the errorEKF-FE due to the adaptive procedure. Estimating the process noise covariance matrix each time step entails an increment of the computations per time step, which is turned into a noticeable increment of computational cost. This limitation can be critical in real-time applications. It is necessary to test the computational cost of the method in each particular application. The efficiency of the estimator not only depends on the algorithm, but on the platform where it is going to be executed. This also implies to explore the possibility of increasing the efficiency of the solution. Since the estimation of the noise covariance matrices is independent from the state estimation each time step, the code execution can be parallelized, increasing the algorithm efficiency and reducing the computational cost of the approach.

5. Conclusions

This work presents an adaptive Kalman filter for state and input estimation based on multibody models (AerrorEKF-FE). The aim is to accurately estimate the noise covariance matrix of the estimator, which has shown to be a critical factor for accurate and robust observer performance. The method is tested on two different planar mechanisms: a four-bar linkage and a five-bar linkage. In addition, four different sensor configurations are considered, increasing the general application of the proposed solution. Several tests are presented in order to analyze the behavior of the filter in terms of accuracy and robustness.
The AerrorEKF-FE combines an error-state Kalman filter with an adaptive method based on the maximum likelihood criteria. This adaptive technique, commonly used for navigation estimation, has several assumptions which are not fulfilled in multibody dynamics. Even though adaptive algorithms have the capacity of overcoming some of the main difficulties of multibody based Kalman filtering, its application has never been explored. In this work, the selected adaptive method is adjusted to fit with multibody particularities, such as time-variant transition and observation matrices. Furthermore, the estimated matrix should be adapted to the shape of the covariance matrix (if known), increasing the accuracy of the observer.
The first test evaluates the accuracy of the filter under different initial values of the noise covariance matrix. The results are compared against the estimations obtained with a non-adaptive version of the filter (errorEKF-FE). The results show an improvement in accuracy with the use of adaptive techniques. In addition, it can be seen how the adaptive method allows to achieve similar results in terms of accuracy in spite of the initial assumption of the covariance noises.
In a second test, the robustness of the filter is studied through a simulation in which an unexpected event changes the system. The filter shows a quick reaction and corrects with accuracy the new error, without loosing the stability of the estimator.
The tests executed in this work and their results show the potential of adaptive Kalman filtering for multibody based estimation. Determining the noise covariance matrix (specially the noise of the process) in multibody based estimators is an actual limitation for the general use of this techniques in multibody applications. Through adaptive estimation, the uncertainties on the process noise covariance matrix can be solved and the robustness and accuracy of the estimators can be increased and guaranteed during different scenarios. However, this method also implies a reduction of the computational efficiency that should be considered in real-time applications.
In future works, the proposed adaptive filter should be applied in systems of more complexity, such as vehicle dynamics, where the state and input estimation is of high interest. In addition, techniques for reducing the associated increment in computational cost can be studied.

Author Contributions

Conceptualization, A.J.R., E.S., R.P. and M.Á.N.; methodology, A.J.R., E.S. and M.Á.N.; software, A.J.R. and E.S.; validation, A.J.R., E.S. and M.Á.N.; formal analysis, A.J.R., E.S. and M.Á.N.; investigation, A.J.R., E.S. and M.Á.N.; resources, A.J.R., E.S., R.P. and M.Á.N.; data curation, A.J.R.; writing—original draft preparation, A.J.R.; writing—review and editing, A.J.R., E.S., R.P. and M.Á.N.; visualization, A.J.R.; supervision, M.Á.N.; project administration, M.Á.N.; funding acquisition, M.Á.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially financed by the Spanish Ministry of Science, Innovation and Universities and EU-EFRD funds under the project “Técnicas de co-simulación en tiempo real para bancos de ensayo en automoción” (TRA2017-86488-R), and by the Galician Government under grant ED431C2019/29.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Kalman, R. A New Approach to Linear Filtering and Prediction Problems. J. Basic Eng. 1960, 82, 35–45. [Google Scholar] [CrossRef] [Green Version]
  2. Simon, D. Optimal State Estimation: Kalman, H Infinity, and Nonlinear Approaches; John Wiley & Sons: Hoboken, NJ, USA, 2006. [Google Scholar]
  3. García de Jalón, J.; Bayo, E. Kinematic and Dynamic Simulation of Multibody Systems: The Real Time Challenge; Springer: Berlin/Heidelberg, Germany, 1994. [Google Scholar]
  4. Pastorino, R. Model-Based System Testing; Technical Report; Siemens Digital Industries Software: Plano, TX, USA, 2019. [Google Scholar]
  5. Cuadrado, J.; Dopico, D.; Barreiro, A.; Delgado, E. Real-time state observers based on multibody models and the extended Kalman filter. J. Mech. Sci. Technol. 2009, 23, 894–900. [Google Scholar] [CrossRef]
  6. Cuadrado, J.; Dopico, D.; Perez, J.A.; Pastorino, R. Automotive observers based on multibody models and the extended Kalman filter. Multibody Syst. Dyn. 2012, 27, 3–19. [Google Scholar] [CrossRef] [Green Version]
  7. Pastorino, R.; Richiedei, D.; Cuadrado, J.; Trevisani, A. State estimation using multibody models and non-linear Kalman filter. Int. J. Non-Linear Mech. 2013, 53, 83–90. [Google Scholar] [CrossRef]
  8. Sanjurjo, E.; Naya, M.Á.; Blanco-Claraco, J.L.; Torres-Moreno, J.L.; Giménez-Fernández, A. Accuracy and efficiency comparison of various nonlinear Kalman filters applied to multibody models. Nonlinear Dyn. 2017, 88, 1935–1951. [Google Scholar] [CrossRef]
  9. Sanjurjo, E.; Dopico, D.; Luaces, A.; Naya, M.A. State and force observers based on multibody models and the indirect Kalman filter. Mech. Syst. Signal Process. 2018, 106, 210–228. [Google Scholar] [CrossRef]
  10. Rodríguez, A.J.; Sanjurjo, E.; Pastorino, R.; Naya, M.A. 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]
  11. Mehra, R. Approaches to adaptive filtering. IEEE Trans. Autom. Control 1972, 17, 693–698. [Google Scholar] [CrossRef]
  12. Fraser, C.; Ulrich, S. Adaptive extended Kalman filtering strategies for spacecraft formation relative navigation. Acta Astronaut. 2021, 178, 700–721. [Google Scholar] [CrossRef]
  13. Filho, J.O.A.L.; Fortaleza, E.L.F.; Silva, J.G.; Campos, M.C.M.M. Adaptive Kalman filtering for closed-loop systems based on the observation vector covariance. Int. J. Control 2020, 1–16. [Google Scholar] [CrossRef]
  14. Mohamed, A.H.; Schwarz, K.P. Adaptive Kalman Filtering for INS/GPS. J. Geod. 1999, 73, 193–203. [Google Scholar] [CrossRef]
  15. Karasalo, M.; Hu, X. An optimization approach to adaptive Kalman filtering. Automatica 2011, 47, 1785–1793. [Google Scholar] [CrossRef] [Green Version]
  16. Rodríguez, A.J.; Pastorino, R.; Carro-Lagoa, Á.; Janssens, K.; Naya, M.Á. Hardware acceleration of multibody simulations for real-time embedded applications. Multibody Syst. Dyn. 2021, 55, 455–473. [Google Scholar] [CrossRef]
  17. Woo, R.; Yang, E.J.; Seo, D.W. A Fuzzy-Innovation-Based Adaptive Kalman Filter for Enhanced Vehicle Positioning in Dense Urban Environments. Sensors 2019, 19, 1142. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  18. Liu, Y.; Fan, X.; Lv, C.; Wu, J.; Li, L.; Ding, D. An innovative information fusion method with adaptive Kalman filter for integrated INS/GPS navigation of autonomous vehicles. Mech. Syst. Signal Process. 2018, 100, 605–616. [Google Scholar] [CrossRef] [Green Version]
  19. Wu, Q.; Jia, Q.; Shan, J.; Meng, X. Angular velocity estimation based on adaptive simplified spherical simplex unscented Kalman filter in GFSINS. Proc. Inst. Mech. Eng. Part G J. Aerosp. Eng. 2014, 228, 1375–1388. [Google Scholar] [CrossRef]
  20. Sage, A.P.; Husa, G.W. Algorithms for sequential adaptive estimation of prior statistics. In Proceedings of the 1969 IEEE Symposium on Adaptive Processes (8th) Decision and Control, University Park, PA, USA, 17–19 November 1969; p. 61. [Google Scholar] [CrossRef]
  21. Wang, J.; Xu, T.; Wang, Z. Adaptive Robust Unscented Kalman Filter for AUV Acoustic Navigation. Sensors 2020, 20, 60. [Google Scholar] [CrossRef] [Green Version]
  22. Luo, Z.; Fu, Z.; Xu, Q. An Adaptive Multi-Dimensional Vehicle Driving State Observer Based on Modified Sage–Husa UKF Algorithm. Sensors 2020, 20, 6889. [Google Scholar] [CrossRef]
  23. Sarkka, S.; Nummenmaa, A. Recursive Noise Adaptive Kalman Filtering by Variational Bayesian Approximations. IEEE Trans. Autom. Control 2009, 54, 596–600. [Google Scholar] [CrossRef]
  24. Davari, N.; Gholami, A. Variational Bayesian adaptive Kalman filter for asynchronous multirate multi-sensor integrated navigation system. Ocean Eng. 2019, 174, 108–116. [Google Scholar] [CrossRef]
  25. Wang, S.Y.; Yin, C.; Duan, S.K.; Wang, L.D. A Modified Variational Bayesian Noise Adaptive Kalman Filter. Circuits Syst. Signal Process. 2017, 36, 4260–4277. [Google Scholar] [CrossRef]
  26. Huang, Y.; Zhang, Y.; Wu, Z.; Li, N.; Chambers, J. A Novel Adaptive Kalman Filter with Inaccurate Process and Measurement Noise Covariance Matrices. IEEE Trans. Autom. Control 2018, 63, 594–601. [Google Scholar] [CrossRef] [Green Version]
  27. Pan, C.; Gao, J.; Li, Z.; Qian, N.; Li, F. Multiple fading factors-based strong tracking variational Bayesian adaptive Kalman filter. Measurement 2021, 176, 109139. [Google Scholar] [CrossRef]
  28. Dong, X.; Chisci, L.; Cai, Y. An adaptive variational Bayesian filter for nonlinear multi-sensor systems with unknown noise statistics. Signal Process. 2021, 179, 107837. [Google Scholar] [CrossRef]
  29. Shan, C.; Zhou, W.; Yang, Y.; Jiang, Z. Multi-Fading Factor and Updated Monitoring Strategy Adaptive Kalman Filter-Based Variational Bayesian. Sensors 2021, 21, 198. [Google Scholar] [CrossRef] [PubMed]
  30. Cuadrado, J.; Gutiérrez, R.; Naya, M.A.; Morer, P. A comparison in terms of accuracy and efficiency between a MBS dynamic formulation with stress analysis and a non-linear FEA code. Int. J. Numer. Methods Eng. 2001, 51, 1033–1052. [Google Scholar] [CrossRef]
  31. Cuadrado, J.; Dopico, D.; Naya, M.A.; Gonzalez, M. Real-Time Multibody Dynamics and Applications. In Simulation Techniques for Applied Dynamics; Springer: Vienna, Austria, 2008; Volume 507, pp. 247–311. [Google Scholar] [CrossRef]
  32. Dopico, D.; Luaces, A.; Saura, M.; Cuadrado, J.; Vilela, D. Simulating the anchor lifting maneuver of ships using contact detection techniques and continuous contact force models. Multibody Syst. Dyn. 2019, 46, 147–179. [Google Scholar] [CrossRef]
  33. Parra, A.; Rodríguez, A.J.; Zubizarreta, A.; Pérez, J. Validation of a Real-Time Capable Multibody Vehicle Dynamics Formulation for Automotive Testing Frameworks Based on Simulation. IEEE Access 2020, 8, 213253–213265. [Google Scholar] [CrossRef]
  34. Jaiswal, S.; Rahikainen, J.; Khadim, Q.; Sopanen, J.; Mikkola, A. Comparing double-step and penalty-based semirecursive formulations for hydraulically actuated multibody systems in a monolithic approach. Multibody Syst. Dyn. 2021, 52, 169–191. [Google Scholar] [CrossRef]
  35. Cuadrado, J.; Dopico, D.; Gonzalez, M.; Naya, M.A. A Combined Penalty and Recursive Real-Time Formulation for Multibody Dynamics. J. Mech. Des. 2004, 126, 602. [Google Scholar] [CrossRef]
  36. Sanjurjo, E.; Blanco, J.L.; Torres, J.L.; Naya, M.A. Testing the efficiency and accuracy of multibody-based state observers. In Proceedings of the ECCOMAS Thematic Conference on Multibody Dynamics, Barcelona, Spain, 29 June–2 July 2015; pp. 1595–1606. [Google Scholar]
  37. Grewal, M.; Andrews, A. Kalman Filtering: Theory and Practice Using MATLAB®; John Wiley & Sons: Hoboken, NJ, USA, 2008. [Google Scholar]
  38. Dopico, D.; Zhu, Y.; Sandu, A.; Sandu, C. Direct and Adjoint Sensitivity Analysis of Ordinary Differential Equation Multibody Formulations. J. Comput. Nonlinear Dyn. 2014, 10, 011012. [Google Scholar] [CrossRef]
  39. Myers, K.; Tapley, B. Adaptive sequential estimation with unknown noise statistics. IEEE Trans. Autom. Control 1976, 21, 520–523. [Google Scholar] [CrossRef]
Figure 1. Mechanisms employed in this work.
Figure 1. Mechanisms employed in this work.
Sensors 21 05241 g001
Figure 2. Simplified flow diagram of a time step of the adaptive errorEKF with force estimation. MBS refers to the multibody system, whose output is the predicted position, velocities and accelerations of the system. H is the observation matrix, employed to obtain the virtual measurements, which are compared with the measurements from the sensors. Σ ^ P and Σ ^ S are the PNCM and MNCM, respectively, where the superscripts and + refer to the a priori and a posteriori estimations. EKF represents the application of the extended Kalman filter equations, whose outputs are the estimated errors in the predicted state vector (MBS errors). ML refers to maximum likelihood and is where the noise covariance matrices are estimated.
Figure 2. Simplified flow diagram of a time step of the adaptive errorEKF with force estimation. MBS refers to the multibody system, whose output is the predicted position, velocities and accelerations of the system. H is the observation matrix, employed to obtain the virtual measurements, which are compared with the measurements from the sensors. Σ ^ P and Σ ^ S are the PNCM and MNCM, respectively, where the superscripts and + refer to the a priori and a posteriori estimations. EKF represents the application of the extended Kalman filter equations, whose outputs are the estimated errors in the predicted state vector (MBS errors). ML refers to maximum likelihood and is where the noise covariance matrices are estimated.
Sensors 21 05241 g002
Figure 3. Sensor configurations considered in the four-bar linkage.
Figure 3. Sensor configurations considered in the four-bar linkage.
Sensors 21 05241 g003
Figure 4. Estimated PNCM element in the four-bar linkage test for the case of estimating PNCM and MNCM simultaneously and estimating only the PNCM.
Figure 4. Estimated PNCM element in the four-bar linkage test for the case of estimating PNCM and MNCM simultaneously and estimating only the PNCM.
Sensors 21 05241 g004
Figure 5. Comparison of innovation and crank angle for the simulation of the four-bar linkage with a gyroscope on the coupler for different window lengths.
Figure 5. Comparison of innovation and crank angle for the simulation of the four-bar linkage with a gyroscope on the coupler for different window lengths.
Sensors 21 05241 g005
Figure 6. RMSE in the crank angle (position) provided by the observers for the four-bar linkage.
Figure 6. RMSE in the crank angle (position) provided by the observers for the four-bar linkage.
Sensors 21 05241 g006
Figure 7. RMSE in the crank angular rate (velocity) provided by the observers for the four-bar linkage.
Figure 7. RMSE in the crank angular rate (velocity) provided by the observers for the four-bar linkage.
Sensors 21 05241 g007
Figure 8. RMSE in the crank angular acceleration provided by the observers for the four-bar linkage.
Figure 8. RMSE in the crank angular acceleration provided by the observers for the four-bar linkage.
Sensors 21 05241 g008
Figure 9. RMSE in the forces acting on the crank provided by the observers for the four-bar linkage.
Figure 9. RMSE in the forces acting on the crank provided by the observers for the four-bar linkage.
Sensors 21 05241 g009
Figure 10. Error and confidence interval of the position, velocity and acceleration of the crank angle in the configuration which considers a gyroscope on the coupler.
Figure 10. Error and confidence interval of the position, velocity and acceleration of the crank angle in the configuration which considers a gyroscope on the coupler.
Sensors 21 05241 g010
Figure 11. RMSE of the norm of the two crank angles (position) provided by the observers for the five-bar linkage.
Figure 11. RMSE of the norm of the two crank angles (position) provided by the observers for the five-bar linkage.
Sensors 21 05241 g011
Figure 12. RMSE of the norm of the two crank angular rates (velocity) provided by the observers for the five-bar linkage.
Figure 12. RMSE of the norm of the two crank angular rates (velocity) provided by the observers for the five-bar linkage.
Sensors 21 05241 g012
Figure 13. RMSE of the norm of the two crank angular accelerations provided by the observers for the five-bar linkage.
Figure 13. RMSE of the norm of the two crank angular accelerations provided by the observers for the five-bar linkage.
Sensors 21 05241 g013
Figure 14. RMSE of the norm of the forces acting on the two cranks provided by the observers for the five-bar linkage.
Figure 14. RMSE of the norm of the forces acting on the two cranks provided by the observers for the five-bar linkage.
Sensors 21 05241 g014
Figure 15. Torque estimation for the four-bar linkage for the spring failure scenario. Obs refers to the estimated torque and Ref refers to the theoretical value.
Figure 15. Torque estimation for the four-bar linkage for the spring failure scenario. Obs refers to the estimated torque and Ref refers to the theoretical value.
Sensors 21 05241 g015
Figure 16. Error and confidence interval of the position, velocity and acceleration of the crank angle in the configuration which considers a gyroscope on the coupler.
Figure 16. Error and confidence interval of the position, velocity and acceleration of the crank angle in the configuration which considers a gyroscope on the coupler.
Sensors 21 05241 g016
Table 1. Properties of the four-bar linkage.
Table 1. Properties of the four-bar linkage.
CrankCouplerRockerGround Element
Mass (kg)285-
Length (m)28510
Table 2. Properties of the five-bar linkage.
Table 2. Properties of the five-bar linkage.
Left CrankLeft CouplerRight CouplerRight CrankGround Element
Mass (kg)3123-
Length (m)0.52.0623.2020.53
Table 3. Characteristics of the sensors considered in this work.
Table 3. Characteristics of the sensors considered in this work.
EncoderGyroscopeAccelerometers
Standard deviation1.745 × 10 2 rad9.839 × 10 4 rad/s5.638 × 10 2 m/s 2
Sampling frequency (Hz)200200200
Table 4. Initial values of the PNCM.
Table 4. Initial values of the PNCM.
Test123456
σ 0 2 00.00010.00230.1110
Table 5. Computational cost analysis of the AerrorEKF-FE. The simulations tested correspond to the use of position sensors.
Table 5. Computational cost analysis of the AerrorEKF-FE. The simulations tested correspond to the use of position sensors.
Simulated Time (s)Computing Time (s)
errorEKFAerrorEKF
Four-bar linkage101.59313.1955
Five-bar linkage102.25514.7234
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Rodríguez, A.J.; Sanjurjo, E.; Pastorino, R.; Naya, M.Á. Multibody-Based Input and State Observers Using Adaptive Extended Kalman Filter. Sensors 2021, 21, 5241. https://doi.org/10.3390/s21155241

AMA Style

Rodríguez AJ, Sanjurjo E, Pastorino R, Naya MÁ. Multibody-Based Input and State Observers Using Adaptive Extended Kalman Filter. Sensors. 2021; 21(15):5241. https://doi.org/10.3390/s21155241

Chicago/Turabian Style

Rodríguez, Antonio J., Emilio Sanjurjo, Roland Pastorino, and Miguel Á. Naya. 2021. "Multibody-Based Input and State Observers Using Adaptive Extended Kalman Filter" Sensors 21, no. 15: 5241. https://doi.org/10.3390/s21155241

APA Style

Rodríguez, A. J., Sanjurjo, E., Pastorino, R., & Naya, M. Á. (2021). Multibody-Based Input and State Observers Using Adaptive Extended Kalman Filter. Sensors, 21(15), 5241. https://doi.org/10.3390/s21155241

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