Research Article  Open Access
Yifan Sun, Xiang Xu, "Calibration of MEMS Triaxial Accelerometers Based on the Maximum Likelihood Estimation Method", Mathematical Problems in Engineering, vol. 2020, Article ID 4617365, 10 pages, 2020. https://doi.org/10.1155/2020/4617365
Calibration of MEMS Triaxial Accelerometers Based on the Maximum Likelihood Estimation Method
Abstract
As a widely used inertial device, a MEMS triaxial accelerometer has zerobias error, nonorthogonal error, and scalefactor error due to technical defects. Raw readings without calibration might seriously affect the accuracy of inertial navigation system. Therefore, it is necessary to conduct calibration processing before using a MEMS triaxial accelerometer. This paper presents a MEMS triaxial accelerometer calibration method based on the maximum likelihood estimation method. The error of the MEMS triaxial accelerometer comes into question, and the optimal estimation function is established. The calibration parameters are obtained by the Newton iteration method, which is more efficient and accurate. Compared with the least square method, which estimates the parameters of the suboptimal estimation function established under the condition of assuming that the mean of the random noise is zero, the parameters calibrated by the maximum likelihood estimation method are more accurate and stable. Moreover, the proposed method has low computation, which is more functional. Simulation and experimental results using the consumer lowcost MEMS triaxial accelerometer are presented to support the abovementioned superiorities of the maximum likelihood estimation method. The proposed method has the potential to be applied to other triaxial inertial sensors.
1. Introduction
Nowadays, with the gradual rise of microelectromechanical system (MEMS), lowprecision inertial sensors, especially lowcost inertial sensors, have been widely used in many fields, such as motion tracking, attitudecontrolling system, and unmanned aircraft systems. Of them, lowcost MEMS triaxial accelerometers are widely used in pedestrian navigation, vehicle navigation, unmanned aerial vehicle (UAV), carrier rocket, and other fields [1–5]. However, MEMS triaxial accelerometers have errors due to inaccuracy in manufacturing techniques, such as zerobias error, scalefactor error, and nonorthogonal error. The existence of these errors will affect the accuracy of the raw readings of the MEMS triaxial accelerometer, thus affecting the accuracy of inertial navigation system. Therefore, for lowcost MEMS triaxial accelerometer sensors, calibration is a necessary step.
Under laboratory conditions, the turntable is usually used to calibrate the MEMS triaxial accelerometer [6, 7]. However, MEMS triaxial accelerometer calibration is usually carried out without external auxiliary equipment in the field. In order to calibrate the MEMS triaxial accelerometer in the field test where it is inconvenient to use external auxiliary equipment such as a turntable, some methods have been proposed. In references [8–10], the 6position method is used to collect the data of the MEMS triaxial accelerometer under the condition of static position and the error parameters are calibrated by the least square (LS) method. However, the scalefactor error and zerobias error can be calibrated when the 6position method is used, but the nonorthogonal error cannot be calibrated. Hence, a complete error model was constructed in references [11–13]. The LS method is used to estimate the error parameters, but these methods cannot obtain the optimal estimation because these methods assumed that the mean of the random noises is zero.
Therefore, in order to improve the accuracy of calibration, the unbiased objective estimation function is constructed by the maximum likelihood (ML) estimation method in references [14–16]. In references [14, 15], the particle swarm optimization (PSO) algorithm is proposed to compute the objective function established by the ML estimation method, which is used to solve for the parameters. The initial value of iteration is not required, but the algorithm needs a longer time to obtain the calibrated results, so it is not suitable for practical application. In reference [16], the gradient descent method is proposed to estimate the error parameters, this process can be taken as the ML estimation problem. In each iteration, the error parameters are optimized by the gradient descent method. However, this method is relative to the initial rough values of the error parameters. If the initial rough values are not suitable, the estimation cannot get the global optimal solution. The step size and iteration times should also be taken into account when optimizing the objective function with the gradient descent method. If the sampling data are large, it is going to take a long time to compute in the gradient descent method.
Due to the aforementioned drawbacks of the traditional methods, this paper proposes a new calibration method. Firstly, the total error model function is determined, and then the ML estimation method was used for the optimal estimation. In this paper, different from the abovementioned methods, the Newton iteration method is used to optimize the objective function established by the ML estimation method. The Newton iteration method has the advantages of fast convergence speed and global optimal solution. In practical application, the calibration of the MEMS triaxial accelerometer can be realized without external auxiliary equipment.
2. Error Analysis and Model Establishment of MEMS Triaxial Accelerometer
The raw readings of the MEMS triaxial accelerometer are affected by errors during manufacturing and installation; the errors are constructed by zerobias error, scalefactor error and nonorthogonal error, and so on. The zerobias error is the error caused by the MEMS triaxial accelerometer sensor outputs not being zero when the ideal outputs are zero, which is denoted by in this paper. The scalefactor error is mainly caused by the different sensitivities of each sensor’s sensitive axis, which is represented by a diagonal matrix in (1), where (i = x, y, z) represents the scalefactor deviation of each axis [17]:
The nonorthogonal error refers to the three sensitive axes that are not orthogonal to each other during the installation process of the MEMS triaxial accelerometer. A schematic diagram of the nonorthogonal error is given in Figure 1, where the (S_{x}S_{y}S_{z}) frame is the orthogonal frame and the (XYZ) frame is the nonorthogonal frame. The nonorthogonal error can be represented by the upper triangular matrix in (2), which is calculated from the projection of the orthogonal frame to the nonorthogonal frame.
The MEMS triaxial accelerometer is not only affected by its own error factors but also affected by the measurement noise [18]. In general, the raw readings of the MEMS triaxial accelerometer can be expressed as (3). In (3), represents the local gravity acceleration, which is approximately considered unchanged in a certain area under local navigation frame (nframe) [19], represents the rotation matrix from the navigation frame (nframe) to the body frame (bframe), and represents the Gaussian white noise with the variance of and the mean value of zero.
Define and . The error model (3) can be rewritten as (4), which is the MEMS triaxial accelerometer reading generation model with error:
Define , the error correction model of MEMS triaxial accelerometer under body frame (bframe) is obtained as follows:
3. Calibration of Maximum Likelihood Estimation Method for MEMS Triaxial Accelerometer
3.1. Maximum Likelihood Estimation Model Construction
In this section, model (4) is used to construct the ML estimation model for parameters that need to be calibrated. In order to get the likelihood function , it is necessary to discuss the statistical properties of . The random noise in model (4) is Gaussian white noise, which obeys the normal distribution. Then, the probability density function of can be obtained as follows:
According to the theory of maximum likelihood estimation method, the likelihood function of a continuoustype random variable iswhere is the probability density function of sample and is the parameter to be estimated, . The idea of an ML estimate is to find the right such that the likelihood function is maximized:
Finding the maximum value of likelihood function is equivalent to finding the minimum value of ; in order to facilitate the discussion, the constant term was ignored and then the ML problem is expressed as (9). Equation (10) can be obtained by expanding the constraint conditions in (9) using model (5). Normalizing the MEMS triaxial accelerometer calibrated data, the modular square of the data should be one. Now, due to the noise, the modular square of the calibrated MEMS triaxial accelerometer data is influenced.
According to (11), is not equal to zero; it means that is a biased noise. If the noise is taken as the unbiased noise, like the traditional LS method, the estimated results are not optimal. In order to establish a total error estimation model to perform the optimal estimate, a Lagrange constraint term needs to be introduced to eliminate the influence of the biased noises . The minimization objective function is shown as (12), where denotes the Lagrange multiplier used to constrain the two paradigms of the calibration value . The estimated value at this time is , , where denotes the recomposition of a matrix into a column vector in the order of the columns, and the column vector does not include the three lower triangular elements of the matrix [20].
3.2. Newtonian Iteration Solution
The iteration formula for the Newtonian iteration method iswhere represents the (i + 1)th iteration of parameter , represents the ith iteration of parameter , and represent the Jacobian matrix and Hessian matrix of the objective function in the ith iteration process, respectively. The Jacobian matrix and Hessian matrix are described as follows:
In the following formula, define :where denotes the unit matrix and denotes the Kronecker product. The abovementioned formulas are used in the Newton iteration method process. However, the Newton iteration method requires a good initial value to ensure that the iteration converges to a global minimum rather than a local minimum, so good initial estimate parameters are necessary for an accurate iteration result.
3.3. Initial Estimate
In this section, the ellipsoid fitting method of initial estimation is discussed. Since the initial parameters are required to ensure the accuracy before doing the ML estimate, it is important to give accurate initial parameters. Ignoring the noise in (10) and expanding givewhere , , and . The output vectors of the MEMS triaxial accelerometer sensors lie on an ellipsoidal surface, and the coefficients of the ellipsoidal equation are a function of the error parameters, so an estimation of the parameters of calibration can be considered as an estimate of the parameters of the ellipsoid. The general equation of the ellipsoidal equation is
Bringing the vector into (16) and then expanding and comparing with (17), we can get the following:
Substituting the raw readings into (17), the parameters of the ellipsoid can be obtained by the LS method, and then the initial parameters of calibration are obtained by and . is the Cholesky decomposition.
4. Simulation and Experimental Analysis
4.1. Simulation Analysis
According to models (3) and (4), the parameters of the simulation are taken to be as (20). The attitude transformation matrix , which is converted from the navigation frame (nframe) to the body frame (bframe), is generated by Euler angles. The pitch angle, swing angle, and heading angle are taken to be 120, 120, and 80 degrees, respectively; to simulate the generation of real angle data, the data information was multiplied by random numbers to generate 300 sets of angle data, and then 300 sets of the attitude conversion matrix are converted. The random errors are set as Gaussian white noises with the mean of zero and a standard deviation of 0.1.
The ideal model of the vectors measured by the MEMS triaxial accelerometer after normalization should be a unit sphere, the center of the sphere is the coordinate origin, and the radius is 1. The model fitted from the measured and calibrated data is represented by the black ellipsoid and the data are represented by the red points in Figures 2(a) and 2(b). It can be observed that the calibrated ellipsoid is a unit sphere with its center at the coordinate origin.
(a)
(b)
In Figure 3, the MEMS triaxial accelerometer data calibrated by the LS method and the data calibrated by the ML estimation method are significantly improved compared with the uncalibrated MEMS triaxial accelerometer data. The modular square of the MEMS triaxial accelerometer calibrated by the ML estimation method fluctuates less and is closer to one than that of the LS method. Statistically, in Figure 3, the means of modular square are 1.172 (uncalibrated), 0.9945 (calibrated by the LS method), and 1 (calibrated by the ML method), respectively. The standard deviations of modular square are 0.18 (uncalibrated), 0.1052 (calibrated by the LS method), and 0.0403 (calibrated by the ML method), respectively. Both the LS method and the ML method have obvious effects on the calibration, but the results calibrated by the ML estimation method have less fluctuation in the vicinity of modular square of one than the results calibrated by the LS method. The parameters set in this paper and the parameters calibrated by the LS method and the ML estimation method are compared in Table 1. can be compared to observe the calibration effect of the LS method and ML estimation method for nonorthogonal error and scalefactor error, and can be compared to observe the calibration effect of the LS method and ML estimation method for zerobias error. Compared with the simulation parameters, and calibrated by the LS method are reduced [−0.0827, 0.0066, 0.0298, 0.0096, 0.0165, and 0.1012] and [−0.131, 0.0062, and −0.0210], respectively. Similarly, compared with the simulation parameters, and calibrated by the ML estimation method are reduced [0.0077, 0.0073, −0.0007, −0.0013, −0.0063, and 0.0308] and [−0.0089, 0.0058, and −0.0079], respectively. By comparing with the parameters, it can be seen that both the LS method and ML estimation method can effectively calibrate the parameters. However, compared with the LS method, the parameters calibrated by the ML estimation method are closer to the simulation parameters, so it is more accurate.

In order to verify the stability of the ML estimation method under different random noise disturbances, 50 Monte Carlo experiments were conducted on the objective function values. The experiment results are shown in Figure 4, which shows that the objective function values reach the convergence state after the third iteration. To further highlight the advantages of the ML estimation method over the LS method, the equations in (20) are defined as a metric and 50 Monte Carlo experiments are performed. In (20), , respectively, represent the parameters calibrated and , respectively, represent parameters set in this paper. In Figures 5 and 6, the variation of the objective function specified during the Monte Carlo experiment can be observed. The results of and , calculated by the parameters calibrated by the LS method, are both represented by the black solid lines. Also, the mean values of the results calibrated by the LS method are both represented by black dashed lines. Similarly, the results of and , calculated by the parameters calibrated by the ML method, are both represented by the red solid lines and the mean values of the results calibrated by the ML method are both represented by red dashed lines. In Figures 5 and 6, the parameters calibrated by the ML estimation method in the Monte Carlo experiment are closer to the parameters set in this paper than those calibrated by the LS method. In Figure 7, we can see that although the modular square of the data calibrated by the LS method is close to 1, the modular square of the data calibrated by the ML estimation method fluctuates slightly at 1. According to the analysis of Figures 5–7, it can be seen that the ML estimation method is more stable and accurate under the influence of noise than the LS method.
4.2. Experimental Analysis
This section will verify the proposed method through practical experiments. Figures 8(a) and 8(b) show the experimental equipment and sensors of this paper, including the 3D printed frame, MPU9250 module, bubble level, and black desktop. The MPU9250 module is fixed to the 3D printed frame (the angle between the MPU9250 module and the 3D printed frame is not considered). The bubble level is used to observe the status of the black desktop. The sampling frequency of the MPU9250 module is 100 Hz, and the data are transmitted to the master computer through a serial port and then received and stored in the master computer. The 3D printed frame is placed on the black desktop. When the xaxis of the 3D frame is up, the 3D printed frame rotates horizontally by 90 degrees at regular intervals, so the static data of the accelerometer can be obtained when the xaxis is up. Similarly, static data can be obtained when the xaxis is down, when the yaxis is up and down, and when the zaxis is up and down. The sensor’s static data at 24 positions are recorded as data 1. The 3D printed frame is held in hand for slow movement, and the data obtained during the movement are recorded as data 2.
(a)
(b)
Calibrating data 1 and data 2 by the LS method and ML estimation method, the modular square results of Figures 9 and 10 are obtained, respectively. The statistical information can be obtained from Table 2. In Table 2, the mean of modular square of the two groups of sensors data calibrated by the LS method is very close to 1, while the mean of modular square calibrated by the ML method is 1, which is closer to the theoretical value 1, so it is more accurate. The standard deviation after calibration by the ML estimation method is significantly reduced compared with that calibrated by the LS method. In Figures 9 and 10, the pink curve fluctuates less than the green curve and fluctuates around 1.

The two sets of sensors data and calibration data are projected onto the ellipsoid, which is plotted in Figures 11 and 12. By comparing Figures 11(a), 11(b), 12(a), and 12(b), after the calibration, the uncalibrated ellipsoid in black has been calibrated as a unit sphere, and the center of sphere is at the origin of the frame, which verifies the effectiveness of the calibration method proposed in this paper.
(a)
(b)
(a)
(b)
5. Conclusions
In this paper, a complete error model of MEMS triaxial accelerometers is constructed. The influence of biased noises of the traditional objective function model, which is constructed by modulus calculation, is eliminated. To eliminate this influence, a calibration method based on the ML estimation method is proposed in this paper. The total error unbiased objective function is constructed, and the optimal estimation is obtained by the Newton iteration method. To make the Newton iteration method converge to the optimal value, an ellipsoid fitting method is adopted to get the initial parameters for the Newton iteration method. In the simulation, the results of the ellipsoid model and modular square verify the validity of the ML estimation method. Comparing using the Monte Carlo experiment, the results calibrated by the ML estimation method are better and more stable than the LS method. The experiment verifies the feasibility of the ML estimation method under different sets of data collected by the MPU9250 module. The method proposed in this paper is not only limited to calibrating the MEMS triaxial accelerometer but also has potential calibration effects for sensors of the same triaxial structure, such as magnetometers.
Data Availability
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
This work was supported in part by the National Natural Science Foundation of China under Grant 61803278 and in part by the Foundation of Key Laboratory of MicroInertial Instrument and Advanced Navigation Technology, Ministry of Education, China (SEUMIAN201802).
References
 G. Hu, B. Gao, Y. Zhong, and C. Gu, “Unscented kalman filter with process noise covariance estimation for vehicular INS/GPS integration system,” Information Fusion, vol. 64, pp. 194–204, 2020. View at: Publisher Site  Google Scholar
 G. Hu, L. Ni, B. Gao, X. Zhu, W. Wang, and Y. Zhong, “Model predictive based unscented kalman filter for hypersonic vehicle navigation with INS/GNSS integration,” IEEE Access, vol. 8, pp. 4814–4823, 2020. View at: Publisher Site  Google Scholar
 S. Du, “A microelectromechanicalsystembased inertial system with rotating accelerometers and gyroscopes for land vehicle navigation,” International Journal of Distributed Sensor Networks, vol. 13, no. 12, 2017. View at: Publisher Site  Google Scholar
 S. Becka, M. Novack, S. Slivinsky, and C. Paul, “A high reliability solid state accelerometer for ballistic missile inertial guidance,” in Proceedings of the AIAA Guidance, Navigation and Control Conference and Exhibit, Honolulu, HI, USA, August 2008. View at: Google Scholar
 Z. Zhou, Y. Li, J. Zhang, and C. Rizos, “Integrated navigation system for a lowcost quadrotor aerial vehicle in the presence of rotor influences,” Journal of Surveying Engineering, vol. 4, pp. 1–13, 2016. View at: Google Scholar
 J. Pan, C. Zhang, and Q. Cai, “An accurate calibration method for accelerometer nonlinear scale factor on a lowcost threeaxis turntable,” Measurement Science and Technology, vol. 25, no. 2, Article ID 25102, 2014. View at: Google Scholar
 R. Zhang, F. Hoflinger, and L. M. Reind, “Calibration of an IMU using 3D rotation platform,” IEEE Sensors Journal, vol. 14, no. 6, pp. 1778–1787, 2014. View at: Google Scholar
 P. Aggarwal, MEMSBased Integrated Navigation, Artech House, Norwood, MA, USA, 2010.
 S. P. Won and F. Golnaraghi, “A triaxial accelerometer calibration method using a mathematical model,” IEEE Transactions on Instrumentation and Measurement, vol. 59, no. 8, pp. 2144–2153, 2010. View at: Publisher Site  Google Scholar
 D. H. Titterton and J. L. Weston, Strapdown Inertial Navigation Technology, Peter Peregrinis, London, UK, 1997.
 C. C. Foster and G. H. Elkaim, “Extension of a twostep calibration methodology to include nonorthogonal sensor axes,” IEEE Transactions on Aerospace and Electronic Systems, vol. 44, no. 3, pp. 1070–1078, 2008. View at: Publisher Site  Google Scholar
 M. Gietzelt, K.H. Wolf, M. Marschollek, and R. Haux, “Performance comparison of accelerometer calibration algorithms based on 3Dellipsoid fitting methods,” Computer Methods and Programs in Biomedicine, vol. 111, no. 1, pp. 62–71, 2013. View at: Publisher Site  Google Scholar
 T. Pylvänäinen, “Automatic and adaptive calibration of 3D field sensors,” Applied Mathematical Modelling, vol. 32, no. 4, pp. 575–587, 2008. View at: Publisher Site  Google Scholar
 S. Dhalwar, R. Kottath, V. Kumar, A. N. J. Raj, and S. Poddar, “Adaptive parameter based particle swarm optimisation for accelerometer calibration,” in Proceedings of the 2016 IEEE 1st International Conference on Power Electronics, Intelligent Control and Energy Systems (ICPEICES), pp. 1–5, Delhi, India, July 2016. View at: Publisher Site  Google Scholar
 S. Karnawat, E. Rufus, V. Karar, and S. Poddar, “Accelerometer to accelerometer calibration using particle swarm optimization,” in Proceedings of the 2017 2nd IEEE International Conference on Recent Trends in Electronics, Information & Communication Technology (RTEICT), pp. 1502–1506, Bangalore, India, May 2017. View at: Publisher Site  Google Scholar
 X. Lu, Z. Liu, and J. He, “Maximum likelihood approach for lowcost MEMS triaxial accelerometer calibration,” in Proceedings of the 2016 8th International Conference on Intelligent HumanMachine Systems and Cybernetics (IHMSC), pp. 179–182, Hangzhou, China, August 2016. View at: Publisher Site  Google Scholar
 D. GebreEgziabher, “Magnetometer autocalibration leveraging measurement locus constraints,” Journal of Aircraft, vol. 44, no. 4, pp. 1361–1368, 2007. View at: Publisher Site  Google Scholar
 J. F. Vasconcelos, G. Elkaim, C. Silvestre, P. Oliveira, and B. Cardeira, “Geometric approach to strapdown magnetometer calibration in sensor frame,” IEEE Transactions on Aerospace and Electronic Systems, vol. 47, no. 2, pp. 1293–1306, 2011. View at: Publisher Site  Google Scholar
 L. Ye, Y. Guo, and S. W. Su, “An efficient autocalibration method for triaxial accelerometer,” IEEE Transactions on Instrumentation and Measurement, vol. 66, no. 9, pp. 2380–2390, 2017. View at: Publisher Site  Google Scholar
 Y. Wu and W. Shi, “On calibration of threeaxis magnetometer,” IEEE Sensors Journal, vol. 15, no. 11, pp. 6424–6431, 2015. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2020 Yifan Sun and Xiang Xu. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.