Skip to main content
Micromachines logoLink to Micromachines
. 2026 Sep 8;17(9):1064. doi: 10.3390/mi17091064

Error State Kalman Filter for Integrated Attitude Estimation Based on Data Fusion of MIMU Inertial Array and Magnetometer

Liang Xue 1,*, Jixiang Lu 1, Guangbin Cai 1, Bo Yang 1, Xinguo Wang 1
Editor: Ching-Liang Dai1
PMCID: PMC13609159  PMID: 42796183

Abstract

Attitude estimation has increasingly relied on MEMS inertial measurement units (IMUs) owing to the low cost and miniature size, but the inherent high random noise and error accumulation limit long-term measurement accuracy. This article proposes an integrated attitude estimation algorithm based on data fusion from a MIMU inertial array and magnetometer to address this challenge. First, a redundant inertial array is constructed using homogeneous gyroscopes, and a Kalman filter (KF) is designed to fuse output signals from multiple gyroscopes to estimate true angular rate. Second, an integrated error state Kalman filter (ESKF) for the MIMU/magnetometer system is developed. Using the attitude quaternion calculated by the strapdown inertial solution as the nominal state and combining it with measurements from the accelerometer and magnetometer as observations, the attitude error is estimated and corrected. Both simulations and field experiments were conducted to validate the effectiveness of the proposed algorithm. The experimental results show that the ESKF algorithm performs best in estimation accuracy and addresses the issue of error accumulation and fluctuation. In particular, the Root Mean Square Error (RMSE) of the ESKF algorithm was significantly reduced, with the roll angle reduced by 55.34%, the pitch angle by 30.25%, and the yaw angle by 55.71%.

Keywords: MEMS sensor, inertial measurement array, magnetometer, attitude estimation, error state Kalman filter

1. Introduction

Accurate and high-speed attitude estimation has emerged as a paramount prerequisite, driven by the booming proliferation of autonomous systems like robots, unmanned aerial vehicles (UAVs), and unmanned ground vehicles (UGVs) [1]. Recent years have witnessed substantial enhancements in the precision and dependability of low-cost micro inertial measurement units (MIMUs), driven by the continuous evolution of MEMS fabrication processes [2]. Due to cost and resource constraints, high-precision inertial navigation systems are not suitable for such scenarios. For attitude measurement in unmanned systems, the low-cost MEMS IMU remains the most suitable option. A MEMS IMU consists of a three-axis gyroscope and a three-axis accelerometer, providing comprehensive navigation data. A vibrating MEMS gyroscope detects the Coriolis force induced by angular motion, which is measured as a capacitance change proportional to the angular rate. A accelerometer measures acceleration via the capacitance change induced by the displacement of its proof mass under external force. The MEMS IMU offers a high degree of autonomy and stealth and is resistant to external disturbances [3]. The gyroscope obtains real-time attitude angle information by measuring and integrating the angular rate of the platform, while the accelerometer can also determine the platform’s attitude with the assistance of the gravity vector. Nevertheless, inherent constraints in MEMS fabrication processes result in substantially elevated random noise levels in MEMS gyroscopes compared to fiber-optic and laser counterparts. Consequently, the rapid accumulation of errors during attitude estimation renders them inadequate for prolonged operational tasks [4]. MEMS accelerometers do not suffer from cumulative integration errors during long-term attitude estimation, but their measured values represent the specific force acting on the platform, making them susceptible to dynamic acceleration, which can cause attitude estimation errors to diverge.

To address the above problems, two approaches are commonly used: improving the accuracy of the MEMS IMU and multi-sensor data fusion [5]. The overall measurement accuracy of an IMU is predominantly dictated by the angular rate accuracy of its MEMS gyroscope. MEMS gyroscopes typically contain rotating or vibrating components that measure angular rate using the Coriolis effect, making them more susceptible to noise and disturbance. The implementation of gyro array technology represents a potent strategy for enhancing the measurement accuracy of MEMS gyroscopes. Compared to other high-precision devices, it is low-cost and lightweight, making it suitable for resource-constrained unmanned platforms. Gyro array technology was first proposed by Bayard et al. in 2003 [6]. The underlying principle of this method relies on utilizing KF to combine the outputs of redundant MEMS gyroscopes, thereby generating a virtual gyroscope with optimized performance. Literature [7] used a Kalman filter to fuse multiple uncorrelated MEMS gyroscopes. By adjusting the parameter qω, the accuracy was improved beyond that of simple averaging. The method was validated using six gyroscopes in experiments, resulting in a significant reduction in noise and bias instability. Literature [8] proposes a statistical method for analyzing the actual correlation coefficients of a MEMS gyro array to address the problem of determining the noise covariance matrix. Experiments with a four-gyro array show that negative noise correlation can improve accuracy. In [9], a two-stage decoupling fusion strategy for unknown disturbances was proposed for the first time. Through local estimation and global weighted fusion, bias accuracy is maintained under disturbances. In [10], the measurement noise covariance of the virtual gyroscope is optimized by employing an improved Sage-Husa adaptive Kalman filter. Literature [11] introduces a novel fusion strategy that surpasses the traditional accuracy limit associated with constant weight fusion. By dynamically adjusting weights, this approach effectively reduces standard deviation without compromising bandwidth. The gyroscope array has been extensively studied as an effective approach to resolving the trade-off between accuracy and cost. Other related techniques involve long short-term memory (LSTM) networks [12,13], extreme learning machines [14], attention mechanisms [15], and reinforcement learning [16]. Currently, there has been little research on gyroscope arrays used directly for navigation. Although the gyroscope array can reduce random noises through KF, its residual noise cannot be eliminated, and the resulting error accumulation must therefore be corrected using external references.

Multi-sensor data fusion is another key method for addressing the accumulation of attitude errors and improving system accuracy and robustness. Currently, there are various combinations of inertial sensors with GNSS, magnetic sensors and other types of sensors. Given the differences in characteristics of MEMS IMUs and magnetic sensors, integrating inertial information and magnetic field measurements using fusion algorithms typically yields better attitude estimation accuracy and stability. The most commonly used sensors are accelerometers and magnetometers, which provide a relatively stable long-term reference for correcting the integration error in attitude estimation. Literature [17] proposes a segmented angular rate estimation method using the IMU array. An extended Kalman filter is used for low dynamic conditions, while the Levenberg–Marquardt iterative method is used for high-dynamic conditions. To mitigate magnetic noise coupling, Literature [18] presented a novel decoupled extended KF, which utilizes dual independent quaternions to estimate attitude and heading, respectively. Literature [19] detects magnetic field trend changes using a sliding window to determine magnetometer data fusion, significantly improving attitude accuracy and stability under magnetic disturbances. Literature [20] combines angular accelerometers with low-cost gyroscopes and uses deep learning to automatically learn optimal noise covariance parameters from raw data. Literature [21] uses a nine-axis IMU to estimate attitude and proposes a magnetic disturbance detection and adaptive gradient descent algorithm based on quaternion similarity. These methods all leverage the complementary strengths of heterogeneous sensors to improve the accuracy of attitude estimation. A nine-axis MEMS IMU typically includes a gyroscope, accelerometer and magnetometer, which can provide comprehensive navigation data, including angular rate, acceleration, and geomagnetic field measurements. By designing an appropriate fusion algorithm, the accuracy of attitude estimation can be significantly improved. An extensive literature review reveals that most existing studies address isolated aspects, such as optimizing only the array fusion strategy or improving only the navigation algorithm, while few integrate the full pipeline and validate it through real-world experiments.

To address the challenges of cost and resource-constrained unmanned systems, this paper introduces a data fusion algorithm that combines a MIMU inertial array with a magnetometer for robust attitude estimation. First, a Kalman filter is applied to fuse the outputs of the redundant sensor array, which is built using homogeneous gyroscopes, in order to estimate the true angular rate. In the second stage, a fusion algorithm based on an error state Kalman filter is established for the MIMU/magnetometer system, aiming to determine the quaternion error corresponding to the strap-down inertial navigation solution. Finally, attitude estimation with higher accuracy is achieved, and the performance of the integrated ESKF algorithm regarding signal fusion and attitude measurement is validated through comprehensive simulations and experiments.

2. Data Fusion Algorithm for Inertial Array

2.1. Sensor Error Models for Integrated System

The measurements from MEMS gyroscopes contain various types of random error, such as Angular Random Walk (ARW) and Rate Random Walk (RRW). For measurement error models, while incorporating more error terms can certainly improve accuracy, it also increases model complexity, which is not conducive to the subsequent design of filtering algorithms. The predominant sources of stochastic error, as identified through the evaluation of actual measurement data, are angle random walk and rate random walk. Therefore, the error model for MEMS gyroscopes considering ARW and RRW can be written as:

ωimb=ωr+biω+niωb˙iω=wbi (1)

where ωimb is the output signal of ith gyroscope in body coordinate system, ωr is the true angular rate, biω is rate random walk, niω is Gaussian white noise representing angle random walk, and wbi is the driving Gaussian white noise for rate random walk.

To directly estimate the true angular rate, ω must be modeled. To capture the dynamic evolution of the true angular rate, a first-order Markov formulation is utilized:

ω˙r=−1τ·ωr+nω, (2)

where τ is the correlation time constant, nω contains Gaussian white noises with variance qω, and the magnitude of qω characterizes the dynamic variation of input angular rate.

In addition to the redundant gyro array used to measure angular rate, the system also includes an accelerometer and magnetometer. The accelerometer is used to measure the linear acceleration of the carrier, and the magnetometer is used to measure the magnetic field strength of the surrounding environment. This forms the MIMU/magnetometer system that provides comprehensive data for attitude calculation. The error models for the accelerometer and magnetometer are presented below.

amb=ar+na+g, (3)
mmb=mr+bm+d, (4)

where amb and mmb represent the measurements from the accelerometer and magnetometer, ar and mr are the true reference of the accelerometer and magnetometer, na is the Gaussian white noise, bm is the bias error of the magnetometer, g is the gravity acceleration, d is the magnetic disturbance vector. The accelerometer and magnetometer output measurement signals after calibration, which are normalized for subsequent attitude estimation.

2.2. Filter Algorithm Design for MIMU Array Fusion

Fusing the three-axis angular rate output signals from the inertial array is key to the first-stage filter algorithm, which is used to suppress random noise in the measurement signals and reduce error accumulation during attitude estimation. Multiple gyroscopes are installed in a parallel configuration, and installation errors have been compensated for through calibration. Using the Kalman filter architecture, for an inertial array containing N gyroscopes, the true angular rate ωr relative to the carrier frame and the gyroscope zero bias are selected to form the state vector:

X1=(ωr)T,b1T,b2T,…,bNTT∈R3+3N, (5)

where ωr=[ωxr,ωyr,ωzr]T is true angular rate vector, bi=[bix,biy,biz]T is the bias vector of ith gyro. Noise vector nω=[nωx,nωy,nωz] denotes as the driving noise of ωb.

Based on the error model established, by treating the gyro array output as the measurement for KF, the state-space model can be obtained as follows:

X˙1(t)=F1·X1(t)+W1(t)Z1(t)=H1·X1(t)+V1(t), (6)

where F1 and H1 are coefficient matrices, the measurement vector Z1(t) consists of the three-axis output signals from the gyro array, process noise W1=[nωT,wb1T,…,wbNT]T, wbiT=[wbix,wbiy,wbiz], measurement noise V1=[v1T,…,vNT]T, v1T=[nix,niy,niz]T, all noise vectors are Gaussian white noise and satisfy the following relationship:

E[W1(t)W1T(t+τ)]=Q1δ(τ)E[V1(t)V1T(t+τ)]=R1δ(τ), (7)

where Q1 and R1 are noise covariance matrices.

The coefficient matrices F1 and H1 are shown as follows:

F1=−1τ·I303×3N03N×303N×3N, (8)
H1=1N⊗I3,I3N, (9)

where 1N is N-dimensional all-ones column vector, I represents identity matrix with appropriate dimension, ⊗ in Equation (9) is the Kronecker product. In following sections, ⊗ denotes quaternion multiplication. After discretizing the state-space model (6), the estimate of the true angular rate can be obtained using a discrete Kalman filter:

Pk|k−1=Fk,k−1Pk−1Fk,k−1T+Qk−1, (10)
Kk=Pk|k−1HkT(HkPk|k−1HkT+Rk)−1, (11)
Pk=(I−KkHk)Pk|k−1(I−KkHk)T+KkRkKkT, (12)
X^k=Fk,k−1X^k−1+Kk(Zk−HkFk,k−1X^k−1). (13)

3. Multi-Sensor Fusion Attitude Estimation Algorithm

This section presents the design of an Error State Kalman Filter (ESKF), which integrates data from the inertial array and magnetic sensor to estimate attitude quaternions. This primarily covers the principle of strap-down attitude estimation, multi-sensor fusion, and optimal attitude quaternion Kalman filter. The overall framework diagram is shown in Figure 1.

Figure 1.

Figure 1

Framework of the proposed algorithm.

3.1. Strap-Down Attitude Resolution

Select right-front-up as the body coordinate system b (Xb-Yb-Zb), and north-east-up as the geographic coordinate system n (Xn-Yn-Zn), which also serves as the navigation coordinate system. The conversion between attitude angles (yaw, pitch, roll) and quaternions is very common in the three-dimensional rotation calculation. The quaternion can be used to represent the attitude and offer high computational efficiency.

The real quaternion of the carrier is denoted as q=[q0,q1,q2,q3]T. The attitude matrix Cbn represents the transformation from the body coordinate b to the navigation coordinate n:

Cbn=q02+q12−q22−q322(q1q2−q0q3)2(q1q3+q0q2)2(q1q2+q0q3)q02−q12+q22−q322(q2q3−q0q1)2(q1q3−q0q2)2(q2q3+q0q1)q32−q22−q12+q02, (14)

The derivative of the quaternion q can be expressed as:

q˙=12q⊗0ω. (15)

where ω=[ωx,ωy,ωz]T. Cbn can be obtained by solving the quaternion differential equation, and the attitude angles can then be calculated from Cbn:

θ=arcsinCbn(3,2)γ=−arctanCbn(3,1)/Cbn(3,3)ψ=arctanCbn(1,2)/Cbn(2,2), (16)

where θ is pitch angle, γ is roll angle, and ψ is yaw angle.

3.2. Error State Kalman Filter Algorithm Design

The Error State Kalman Filter (ESKF) decomposes the system state into a nominal state and an error state, performing linearization estimation only on the small-magnitude error state, thereby improving filtering accuracy and numerical stability. Its advantage lies in avoiding the high-order truncation errors associated with linearization in the traditional extended Kalman filter, making it particularly suitable for applications such as inertial navigation and multisensor fusion.

The system state consists of the nominal state and the error state. The nominal state is as follows:

xnom=q^nb,b^g, (17)

where q^nb is the nominal attitude quaternion, b^g is the estimated zero bias of the fused angular rate. The error state is represented as 6-dimensional vector, all defined in the local tangent space, and satisfy the linearity assumption:

δx=δθTδbgTT∈R6, (18)

where δθ is attitude rotation error, δbg is bias error of fused gyro.

The relationship between the actual attitude and the nominal attitude is defined as:

qnb=q^nb⊗δq,δq=Expq(δθ)≈112δθ, (19)

where qnb represents the attitude matrix Cbn, δq is the error quaternion formed by the rotation vector δθ, Expq(·) is the SO(3) exponential map, which transforms a 3-dimensional rotation vector into the corresponding quaternion, ⊗ denotes quaternion multiplication.

The fused gyro measurement model satisfies the following relationship:

ω˜=ω+bg+ng, (20)

where ω˜ is the fused angular rate, ng is the Gaussian white noise.

Nominal angular rate ω^=ω˜−b^g, substituting the error definition yields the angular rate error:

ω−ω^=−δbg−ng. (21)

The real and nominal quaternion dynamics are as follows:

q˙=12q⊗0ω,q^˙=12q^⊗0ω^. (22)

Take the derivative of q=q^⊗δq and multiply both sides by q^−1:

δq˙=12(δq⊗ω−ω^⊗δq). (23)

Taking the small error approximation and neglecting second order terms, we can derive the differential equation for the attitude error:

δθ˙=−[ω^×]δθ−δbg−ng, (24)

where δbg=bg−b^g, and δbg˙=nbg, nbg is the Gaussian white noise, [ω^×] is the antisymmetric matrix corresponding to true angular rate.

Thus, the error state system equation is:

X2(t)=δx=δθTδbgTTX˙2(t)=F2·X2(t)+G2·W2(t), (25)

where system process noise W2=[ngT,nbgT]T, I3×3 and 03×3 denote identity matrix and full zero matrix, the coefficient matrices are written as:

F2=−ω^×−I3×303×303×3,G2=−I3×303×303×3I3×3. (26)

Based on the output signals from the accelerometer and magnetometer, there are two methods for deriving the measurement equation. The core idea is to use long-term stable reference values to correct the cumulative error in attitude calculations. One approach is to transform the attitude estimation problem into a nonlinear least-squares problem and solve it using an iterative method. Another approach is to directly extract the output to establish the measurement equation. The different types of sensors in the latter method are decoupled, making it easier to handle potential disturbances.

This part utilizes a direct vector observation scheme, employing normalized acceleration and geomagnetic measurements directly as filter observations to avoid accuracy losses in intermediate steps. At the same time, a sequential update strategy is employed to achieve decoupled calibration of the two types of sensors.

Define the unit reference vectors in the navigation coordinate n as ran and rmn; ran is the normalized reference direction of the accelerometer, and rmn is the normalized geomagnetic reference vector.

The outputs of the accelerometer and magnetometer, after normalization, can be expressed as

za=amb∥amb∥, (27)
zm=mmb∥mmb∥. (28)

Under the nominal attitude, the predicted observation in body coordinate b:

ha(q^)=Cbn(q^)Tran, (29)
hm(q^)=Cbn(q^)Trmn. (30)

The attitude matrix satisfies:

Cbn=C^bn·Exp([δθ]×)≈C^bn(I+[δθ×]). (31)

Thus, the observation residual can be derived as:

ra=za−ha(q^)≈[ha(q^)×]δθ+va, (32)
rm=zm−hm(q^)≈[hm(q^)×]δθ+vm, (33)

where v represents Gaussian white noise.

The Jacobian matrix can be written as:

Ha=[ha(q˜)×]03×3, (34)
Hm=[hm(q˜)×]03×3. (35)

For each valid observation, calculate the gain and covariance using the Kalman filter framework:

K=P−HT(HP−HT+R)−1, (36)
P=(I−KH)P−(I−KH)T+KRKT, (37)
X^2=K·ri. (38)

After obtaining the error attitude estimate δθ^, construct the correction quaternion:

δq^=Expq(δθ^)≈1,12δθ^T, (39)
q^+=q^−⊗δq^, (40)
b^g+=b^g−+δb^g. (41)

After inserting the error into the nominal state, reset the error state and covariance. The above update employs a sequential update mechanism, in which the accelerometer observation update is performed first, followed by the magnetometer observation update. Two independent 3-dimensional Kalman updates are equivalent to a single stacked 6-dimensional joint update; however, sequential updates can better handle disturbances from different sensors.

For typical sources of disturbance such as dynamic acceleration and local magnetic anomalies, smoothing and weighting are achieved by adaptively amplifying the covariance of the measurement noise. The metrics used include length deviation and direction residual.

dnorm=∥am∥aref−1, (42)
dangle=arccoszaTha(q^), (43)

where dnorm is the length deviation of accelerometer, aref is the reference gravity, dangle represents the angle between the direction of the actual acceleration and the direction of the predicted gravity based on attitude. Set soft threshold Tnorm, Tangle and hard threshold Hnorm, Hangle for the two metrics, and proceed as follows in two steps:

  • If dnorm>Hnorm or dangle>Hangle, the current observation is deemed invalid, and the filter update is skipped;

  • When the hard threshold is not triggered, the greater the deviation exceeds the soft threshold, the higher the noise gain: s=max1,dnormTnorm·max1,dangleTangle;

  • The final adaptive measurement noise covariance is: R2=s·R0, R0 is the initial value.

The calculation method for the relevant metrics of magnetometer are the same.

4. Simulation and Experiment

This section presents the simulation verification and experiments for the proposed algorithm. Simulations were conducted to verify the effectiveness of the two-stage filter algorithm. Experiments were conducted to verify the actual performance in real applications.

4.1. Simulation Results and Analysis

To comprehensively evaluate the effectiveness of the proposed algorithm, this study constructed a navigation simulation environment. In the simulation, there are four three-axis gyroscopes, one accelerometer, and one magnetometer. Furthermore, the proposed algorithm is applicable to any reasonable number of gyroscopes.

In array simulation, angle random walk is 0.08°/h, and rate random walk is 600.0°/h1.5. The performance improvement of the virtual gyroscope is verified under static conditions. The simulation results of the gyro array under static conditions are shown in Figure 2 and Figure 3.

Figure 2.

Figure 2

Comparison of gyro array fusion results with original angular rate.

Figure 3.

Figure 3

Allan variance plot under the static condition.

Figure 2 indicates that the noise level of the fused angular rate is lower than that of the raw measurements, demonstrating that the Kalman filter can effectively suppress random noise. In the Allan variance plot, the curve of the fused angular rate exhibits a smaller amplitude, further confirming the reduced noise level. The ARW is reduced to 0.02°/h, and the RRW is reduced to 149.83°/h1.5. Furthermore, the simulation results demonstrate that employing the redundant array can effectively mitigate subsequent error accumulation.

For the second-stage attitude estimation algorithm, simulation in dynamic scenarios was used to verify the algorithm’s effectiveness. Considering the motion characteristics of the actual vehicle during the cruise phase, we designed a composite motion trajectory with low dynamics and a long period. In addition, to verify the robustness of the algorithm against external disturbances, dynamic acceleration and magnetic disturbance were introduced.

The simulation results of the ESKF algorithm are shown in Figure 4 and Figure 5. Single MIMU refers to the strapdown attitude solution from a single gyroscope. The fused gyro uses the fused angular rate signal. Acc-Mag represents the attitude estimate obtained through the iterative solution method using the accelerometer and the magnetometer [22]. The proposed integrated attitude estimation algorithm achieves the highest accuracy. In contrast, relying solely on gyroscope measurements leads to rapid divergence of the attitude error. Meanwhile, fusing the output signals of the four gyroscopes improves the measurement accuracy of the angular rate. However, the accumulation of errors in strapdown attitude computation still exists.

Figure 4.

Figure 4

Comparison of the reference value and attitude estimation results using different methods in simulation.

Figure 5.

Figure 5

Comparison of attitude estimation errors.

Additionally, the attitude of the carrier can be determined using the measurements from the accelerometer and the magnetometer. However, this method is highly susceptible to disturbance. As shown in Figure 4, both dynamic acceleration and magnetic field disturbances can lead to severe attitude errors. Conversely, the ESKF can adaptively adjust the noise covariance in the presence of disturbances, and the sequential update method decouples the accelerometer and magnetometer. The accelerometer primarily constrains roll and pitch errors, while the magnetometer mainly constrains the heading angle error.

The integrated algorithm combines the advantages of these two approaches. By using gyro integration results as a basis and introducing the invariant external references, it resolves the problem of error accumulation and yields high-precision attitude angles. The adaptive noise covariance used also helps suppress the effects of external disturbances.

4.2. Experimental Results and Analysis

To further validate the effectiveness of the proposed algorithm in actual environments, field tests were designed. The test platform is shown in Figure 6.

Figure 6.

Figure 6

The designed multi-sensor testing MIMU and the experimental platform for field tests.

The integrated navigation system consists of a micro-inertial measurement unit and a magnetometer and can measure navigation data along three axes. The micro-inertial measurement unit includes eight gyroscopes and one accelerometer. The gyroscopes are arranged in a planar array. A high-precision fiber-optic inertial measurement unit (FOG-IMU) was used as the reference system. The experiment is divided into two parts: gyro array fusion and attitude estimation.

4.2.1. Experimental Results for Gyroscope Array Fusion

The test platform is equipped with a MEMS gyro array consisting of eight homogeneous three-axis gyroscopes, capable of outputting three-axis measurement signals. In Section 2, the Kalman filter algorithm for fusing redundant measurements is designed to serve as the first-stage filter in the proposed integrated navigation algorithm. The angular rate fusion results are shown in Figure 7, Figure 8 and Figure 9.

Figure 7.

Figure 7

The original angular rate and the fused angular rate along the X-axis.

Figure 8.

Figure 8

The original angular rate and the fused angular rate along the Y-axis.

Figure 9.

Figure 9

The original angular rate and the fused angular rate along the Z-axis.

The test results show that the designed Kalman filter algorithm can effectively improve the accuracy of angular rate measurements. Under experimental conditions, the impact of random noise on attitude estimation was reduced. The first-stage filtering removes random noise from the angular rate signal before it is used. As in the simulation, the accuracy of the solution obtained using a fused rate is much higher than that obtained using a single gyroscope.

Array fusion is the first-stage filtering process designed to provide more accurate angular rate for the second-stage attitude estimation. After completing the fusion of redundant gyroscopes, the strapdown attitude calculation can be performed to obtain a preliminary estimate of the attitude quaternion.

4.2.2. Experimental Results for Attitude Estimation

The navigation simulation validated the feasibility of the proposed algorithm. To further verify the performance of the algorithm in a real-world environment, two sets of field tests were designed. The experiments adopt the TY-MIGA-100A integrated navigation system. This system supports static and dynamic initial alignment and compensates for installation errors via external parameters. It can also perform magnetometer calibration and compensate for the hard-iron and soft-iron effects. Calibration was completed using the manufacturer-provided software, which is not elaborated here since it is beyond the scope of this work.

The parameters used in the navigation experiments are shown in Table 1. Set the sampling frequency to 100 Hz. The filter is initialized via the static initialization method, where the initial attitude is calculated using accelerometer and magnetometer measurements. Part of the noise parameters are taken from the device datasheet, while the rest are obtained by performing Allan Variance analysis on measured static-state data. The hard threshold indicates that data are invalid when sensor deviations exceed the threshold. The soft threshold means deviations are tolerable and only require adjustment of the noise covariance.

Table 1.

Parameter setting.

Parameter Value
Sampling Frequency 100 Hz
Initial Attitude Error Std 5°
Initial Bias Error Std 1°/s
Acc Noise Std 0.05
Acc Bias Stability 0.01 g
Gyro Noise Std 0.2°/h
Gyro Bias Stability 10°/h
Mag Noise Std 0.04
Correlation Time Constant 1000 s
Acc Soft/Hard Norm Threshold 0.05/0.25
Mag Soft/Hard Norm Threshold 0.08/0.30
Acc Soft/Hard Angle Threshold 10°/60°
Mag Soft/Hard Angle Threshold 12°/45°

Various methods are used to estimate attitude, including strapdown inertial integration, estimation using accelerometer and magnetometer (Acc-Mag), and the proposed error state Kalman filter (ESKF). The results are shown in Figure 10, Figure 11, Figure 12, Figure 13, Figure 14, Figure 15, Figure 16, Figure 17, Figure 18, Figure 19, Figure 20 and Figure 21. Table 2 and Table 3 present the Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) metrics for the two tests.

RMSE=1n∑i=1n(EulerE−EulerR)k2 (44)
MAE=1n∑k=1n|(EulerE−EulerR)k| (45)

where EulerE is the estimated value, EulerR is the reference value.

Figure 10.

Figure 10

The reference value and strapdown attitude estimation results for Test 1.

Figure 11.

Figure 11

The reference value and attitude estimation results determined using the accelerometer and magnetometer in Test 1.

Figure 12.

Figure 12

The reference value and attitude estimation results obtained using error state Kalman filter in Test 1.

Figure 13.

Figure 13

Comparison of attitude estimation errors determined via different methods in Test 1.

Figure 14.

Figure 14

The reference value and strapdown attitude estimation results for Test 2.

Figure 15.

Figure 15

The reference value and attitude estimation results determined using the accelerometer and magnetometer in Test 2.

Figure 16.

Figure 16

The reference value and attitude estimation results obtained using error state Kalman filter in Test 2.

Figure 17.

Figure 17

Comparison of attitude errors determined via different methods in Test 2.

Figure 18.

Figure 18

The observation residual angle in Test 2.

Figure 19.

Figure 19

The norm deviation percentage in Test 2.

Figure 20.

Figure 20

The noise covariance scaling factor in Test 2.

Figure 21.

Figure 21

The observation acceptance flag in Test 2.

Table 2.

Comparison of statistical metrics for Test 1.

Metrics Euler Angle Strapdown Acc-Mag ESKF
RMSE (deg) Roll 2.4036 1.8734 1.0353
Pitch 0.7692 1.4077 0.4587
Yaw 4.9495 2.7002 1.5927
MAE (deg) Roll 2.0612 1.2288 0.6056
Pitch 0.4748 0.9226 0.3021
Yaw 4.3112 1.9626 1.0787
Table 3.

Comparison of statistical metrics for Test 2.

Metrics Euler Angle Strapdown Acc-Mag ESKF
RMSE (deg) Roll 1.6566 1.8786 0.7399
Pitch 1.5415 2.1441 1.0752
Yaw 3.7437 3.4635 1.6579
MAE (deg) Roll 1.2369 1.3331 0.3949
Pitch 1.2517 1.5172 0.6306
Yaw 3.2582 2.4932 1.0865

The attitude angle estimation results for Test 1 are shown in Figure 10, Figure 11, Figure 12 and Figure 13. As can be seen from the results, all three methods are capable of estimating the attitude of carrier.

The results of strapdown inertial integration are shown in Figure 10. The estimated attitude angles are relatively smooth, but errors accumulate over time. In Figure 11, there is no error accumulation when determining attitude using the accelerometer and magnetometer. However, due to the external disturbances, high frequency fluctuations are present in the results. Figure 12 shows that the proposed error state Kalman filter can achieve accurate estimation of attitude angles. Furthermore, the estimation results do not exhibit the error accumulation shown in Figure 10, and the issue of low accuracy shown in Figure 11 has been resolved. The error comparison in Figure 13 shows that the ESKF achieves the highest accuracy.

To further validate the performance of the ESKF algorithm, a different vehicle route was selected for test 2. The experimental results are shown in Figure 14, Figure 15, Figure 16 and Figure 17.

From Figure 14, Figure 15, Figure 16 and Figure 17, the experimental results lead to the same conclusion in Test 2. The proposed error state Kalman filter combines the advantages of both methods, addresses the issues of error accumulation and high-frequency disturbances, and yields the optimal attitude estimation. As shown in Table 2 and Table 3, the RMSE and MAE values for the ESKF are significantly lower than those of other comparison methods.

To verify the effectiveness of the disturbance handling mechanism used in the proposed algorithm, a more detailed analysis of the disturbance is provided using Test 2 as an example. The results are shown in Figure 18, Figure 19, Figure 20 and Figure 21.

Figure 18 and Figure 19 show observation residual angle and norm deviation percentage in the experiment. Observation residual angle and norm deviation represent the errors between the actual measurements from component sensors and the theoretical calculations. It shows that a strong acceleration disturbance exists in the experiment, while the overall magnetic field deviation is low, indicating that the magnetic environment is relatively stable. Figure 20 represents the noise covariance scaling factor. When observation anomalies are detected, the observation noise covariance is inflated to down-weight the anomalous measurements, with a larger scaling factor reflecting lower reliability of the corresponding sensor data. Figure 21 represents the observation acceptance flag, which indicates that the mechanism ensures system stability and robustness by rejecting anomalous observations. The analysis results show that the disturbance handling mechanism can improve the robustness of proposed algorithm.

5. Conclusions

In this work, a multi-sensor fusion attitude estimation algorithm is proposed. The integrated system includes a redundant array of homogeneous MEMS gyroscopes, as well as an accelerometer and a magnetometer. A two-stage data fusion algorithm was employed. The first-stage Kalman filter is used to fuse angular rate signals from multiple gyroscopes. In the second stage, the error state Kalman filter receives measurements from the accelerometer and magnetometer, updates the error state, and produces the final attitude estimate after correction. Simulation and experimental results show that the gyro array can effectively improve the measurement accuracy of angular rate and reduce the impact of random noise. Meanwhile, the proposed error state Kalman filter can obtain the optimal attitude estimate. The error profile of ESKF is much smoother and with lower values. Compared to the RMSE of strapdown inertial solution, Roll was reduced by 55.34%, Pitch by 30.25%, and Yaw by 55.71%. The proposed method offers an effective approach to low-cost, high-precision attitude estimation. In the future, further research can be conducted to expand the number of array sensors, improve the noise adaptive mechanism, and extend the application scenarios, while the current experimental validation is limited, a more comprehensive comparison with other advanced algorithms is also identified as a primary direction in our future work.

Acknowledgments

The authors would like to thank referees for their valuable comments that improved this article.

Author Contributions

Conceptualization, L.X. and J.L.; methodology, L.X. and J.L.; software, J.L.; formal analysis, B.Y. and X.W.; data curation, B.Y. and X.W.; writing—original draft preparation, J.L.; writing—review and editing, L.X. and G.C.; visualization, B.Y. and X.W.; supervision, L.X. and G.C.; funding acquisition, G.C. All authors have read and agreed to the published version of the manuscript.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. (The data are not publicly available due to privacy.)

Conflicts of Interest

The authors declare no conflicts of interest.

Funding Statement

This research was funded by National Natural Science Foundation of China (grant number 62473374, 62403487, U2441243) and the Natural Science Foundation of Shaanxi Province (grant number 2025JC-YBMS-711).

Footnotes

Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

References

  • 1.Chen D., Guo Y., Huo P., Li Q. MEMS Gyroscope technology for Low-Earth orbit aerospace technologies, environmental challenges, and emerging design strategies. Acta Astronaut. 2026;243:280–290. doi: 10.1016/j.actaastro.2026.01.011. [DOI] [Google Scholar]
  • 2.Harindranath A., Arora M. A systematic review of user-conducted calibration methods for MEMS-based IMUs. Measurement. 2024;225:114001. doi: 10.1016/j.measurement.2023.114001. [DOI] [Google Scholar]
  • 3.Wei W., Tian H., Chen K., Wang F., Lu Z., Chen F., Cao H., Xie H. Triaxial MEMS Gyroscopes: A Review. IEEE Sens. J. 2025;25:35687–35704. doi: 10.1109/jsen.2025.3599064. [DOI] [Google Scholar]
  • 4.Xuan J., Zhu T., Peng G., Sun F., Dong D. A Review on the Inertial Measurement Unit Array of Microelectromechanical Systems. Sensors. 2024;24:7140. doi: 10.3390/s24227140. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Ye X., Song F., Zhang Z., Zeng Q. A Review of Small UAV Navigation System Based on Multisource Sensor Fusion. IEEE Sens. J. 2023;23:18926–18948. doi: 10.1109/jsen.2023.3292427. [DOI] [Google Scholar]
  • 6.Bayard D.S., Ploen S.R. High Accuracy Inertial Sensors from Inexpensive Components. No. 20030187623A1. U.S. Patent. 2003 October 2;
  • 7.Chang H., Xue L., Jiang C., Kraft M., Yuan W. Combining Numerous Uncorrelated MEMS Gyroscopes for Accuracy Improvement Based on an Optimal Kalman Filter. IEEE Trans. Instrum. Meas. 2012;61:3084–3093. doi: 10.1109/tim.2012.2200818. [DOI] [Google Scholar]
  • 8.Xue L., Wang X., Yang B., Yuan W., Yuan G. Analysis of Correlation in MEMS Gyroscope Array and its Influence on Accuracy Improvement for the Combined Angular Rate Signal. Micromachines. 2018;9:22. doi: 10.3390/mi9010022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Shen Q., Yang D., Li J., Chang H. Bias Accuracy Maintenance Under Unknown Disturbances by Multiple Homogeneous MEMS Gyroscopes Fusion. IEEE Trans. Ind. Electron. 2023;70:3178–3187. doi: 10.1109/tie.2022.3167137. [DOI] [Google Scholar]
  • 10.Zhuang X., Zou X., Zhang J., Li P. Improve the performance of MEMS gyroscope by combination of virtual gyroscope and improved Sage-Husa adaptive filtering algorithm. Measurement. 2025;244:116538. doi: 10.1016/j.measurement.2024.116538. [DOI] [Google Scholar]
  • 11.Li J., Liu X., Yun J., Han B., Fan X., Chang H., Shen Q. Truncated Gaussian Fusion Estimation for Gyroscope Array With Bandwidth Maintenance Under Environmental Disturbance. IEEE Sens. J. 2026;26:2120–2131. doi: 10.1109/jsen.2025.3635557. [DOI] [Google Scholar]
  • 12.Shen X., Li W., Zhang T., Yang Y., Guo L. Hybrid Intelligent Modeling and Composite Disturbance Filtering for Refined Error Processing of MEMS Gyroscopes. IEEE/ASME Trans. Mechatron. 2025;30:4176–4187. doi: 10.1109/tmech.2025.3623126. [DOI] [Google Scholar]
  • 13.Mi J., Wang Q., Han X. Low-cost MEMS gyroscope performance improvement under unknown disturbances through deep learning-based array. Sens. Actuators A Phys. 2024;368:115086. doi: 10.1016/j.sna.2024.115086. [DOI] [Google Scholar]
  • 14.Qin X., Wang H., Bai Y., Guo T., Cao H. A hybrid denoising algorithm for redundant MIMU based on VMD-MPSO-ELM. Measurement. 2026;277:121575. doi: 10.1016/j.measurement.2026.121575. [DOI] [Google Scholar]
  • 15.Yang B., Wang X., Huang F., Cao X., Zhang Z. R-AFNIO: Redundant IMU fusion with attention mechanism for neural inertial odometry. Expert Syst. Appl. 2025;265:125894. doi: 10.1016/j.eswa.2024.125894. [DOI] [Google Scholar]
  • 16.Li C., Li S., Sun W., Feng Z., Chen Y. A Novel Data Fusion Method of Redundant Gyroscope Systems with Non-Uniform Accuracy. IEEE Trans. Instrum. Meas. 2026;75:9514616. doi: 10.1109/tim.2026.3676171. [DOI] [Google Scholar]
  • 17.Lu X., Zhang C., Li H., Yang Y., Li X., Cai X. Segmented Angular Rate Joint Estimation of Inertial Sensor Arrays for UAV Navigation. IEEE Trans. Instrum. Meas. 2024;73:9506014. doi: 10.1109/tim.2024.3370792. [DOI] [Google Scholar]
  • 18.Li H., Chang S., Yao Q., Wan C., Zou G.-J., Zhang D.-L. Robust Heading and Attitude Estimation of MEMS IMU in Magnetic Anomaly Field Using a Partially Adaptive Decoupled Extended Kalman Filter and LSTM Algorithm. IEEE Trans. Instrum. Meas. 2024;73:9507813. doi: 10.1109/tim.2024.3381659. [DOI] [Google Scholar]
  • 19.Wei M., Sun D., Li S., Zhang T., Wang D. Robust Optimization Algorithm for Attitude Estimation Based on Multisensor Fusion Under Magnetic Disturbance Conditions. IEEE Trans. Instrum. Meas. 2025;74:9507320. doi: 10.1109/tim.2025.3545892. [DOI] [Google Scholar]
  • 20.Zhai C., Wang M., Xiao Z., Xiong Z., Li R. Deep learning-aided Kalman filter for low-cost attitude estimation via angular accelerometer and gyroscope fusion. Measurement. 2026;260:119824. doi: 10.1016/j.measurement.2025.119824. [DOI] [Google Scholar]
  • 21.Wei M., Zhao J., Sun D., Zhang J., Li S., Zhang T. AMI-IAGDA: A Robust IMU Orientation Estimation Framework With Quaternion-Based Magnetic Interference Detection and Adaptive Gradient Descent. IEEE Trans. Instrum. Meas. 2026;75:9511418. doi: 10.1109/tim.2026.3667343. [DOI] [Google Scholar]
  • 22.Xue L., Lu J., Cai G., Yang B., Wang X., Chang H. Integrated Attitude Estimate Algorithm for INS/Magnetometer System Based on Data Fusion of Dual MIMU Inertial Array. IEEE Sens. J. 2025;25:25410. doi: 10.1109/jsen.2025.3566596. [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. (The data are not publicly available due to privacy.)


Articles from Micromachines are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES