Next Article in Journal
The Novice, the Expert, and the Algorithm: A Comparative Analysis of Human Expertise Transfer and AI Performance in Audio-Only Gaming Environments
Previous Article in Journal
Research on Multi-Constraint QoS Routing Based on Improved Whale Algorithm
Previous Article in Special Issue
Real-Time Geo-Localization for Land Vehicles Using LIV-SLAM and Referenced Satellite Imagery
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Sequential Adaptive Linear Kalman Filter Based on the Geophysical Field for Robust MARG Attitude Estimation

1
Hefei Institutes of Physical Science, Chinese Academy of Sciences, Hefei 230031, China
2
Science Island Branch, Graduate School of USTC, Hefei 230026, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(21), 11593; https://doi.org/10.3390/app152111593
Submission received: 29 September 2025 / Revised: 25 October 2025 / Accepted: 27 October 2025 / Published: 30 October 2025
(This article belongs to the Special Issue Navigation and Positioning Based on Multi-Sensor Fusion Technology)

Abstract

In magnetometer, accelerometer, and rate gyroscope (MARG) attitude and heading reference systems, accelerometers and magnetometers are susceptible to external acceleration and soft/hard magnetic anomalies, which reduce the attitude estimation accuracy. To address this problem, a sequential adaptive Kalman filter algorithm based on the geophysical field is proposed for anti-interference MARG attitude estimation. By establishing the linear system model based on the gravitational field and geomagnetic field, the singularity and coupling in other system models are avoided. Additionally, the sequential Sage–Husa adaptive strategy is employed to estimate the measurement noise parameters in real time by a specific force and magnetic vector, which suppresses the impact of external acceleration and the soft/hard magnetic anomalies. To verify the effectiveness and advancement of the proposed algorithm, a series of anti-interference experiments were designed. Experimental results show that, compared with the geophysical-field-based Kalman filter algorithm without an adaptive strategy, the proposed improved algorithm reduces the yaw maximum error by over 94% and inclination maximum error by over 21%, which improves the MARG attitude estimation robustness and makes this algorithm superior to the existing three adaptive strategies and two algorithms.

1. Introduction

With the rapid advancement of Micro-Electro-Mechanical System (MEMS) technology, the attitude and heading reference system (AHRS) has been widely used in various fields such as indoor positioning [1], mobile robots [2], wearable devices [3], autonomous driving [4], unmanned aerial vehicles [5], resource exploration [6], virtual reality [7], attitude capture [8], and stone and earthen materials testing [9]. Therefore, how to obtain accurate attitude information by MEMS-AHRS is a current research hotspot in applied sciences.
At present, MEMS-AHRS’s accuracy remains limited under dynamic conditions [10]. Although MEMS gyroscopes offer benefits such as low cost, low power consumption, and small size, the significant zero drift of MEMS gyroscopes can lead to Euler angle divergence when used alone [11]. To address this difficulty, magnetometer, accelerometer, and rate gyro (MARG) sensors are commonly used to improve the attitude estimation accuracy based on the specific geophysical field, viz., the gravitational field and the geomagnetic field [12].
Currently, numerous data fusion algorithms are applied for MARG attitude estimation, such as complementary filters [13], Kalman filters [14], and neural networks [15]. The complementary filter is simple but relies on manually tuned parameters, making it hard to adapt to complex conditions [16]. Neural networks have strong fitting ability but require large datasets and lack interpretability, limiting their use on resource-constrained platforms [17]. In contrast, the Kalman filter provides optimal estimation based on system models and noise statistics, offering both accuracy and stability. From the perspective of selecting a filter state vector, the general options are algorithms based on attitude representation parameters, such as the Euler angle [18], rotation matrix [19], or quaternion [20]. N.Y. Ko et al. [18] proposed a Euler angle-based extended Kalman filter algorithm, which modifies the gyroscope-predicted Euler angle using the Euler angle measurement calculated by the specific force and magnetic vector. However, Euler angle-based algorithms involve a lot of inverse trigonometric functions during each attitude update and are prone to Gimbal Lock [21]. G. Shaaban et al. [19] proposed a rotation-matrix-based invariant extended Kalman filter algorithm, which derives a rotation matrix propagation equation based on the angular rate measured by the gyroscopes and fuses the specific force and magnetic vector measurement through non-linear transformation. However, rotation-matrix-based algorithms encounter high-dimensional and multi-constraint challenges, resulting in low computational efficiency [22]. Unlike the Euler angle and rotation matrix, quaternion-based algorithms do not suffer from these problems. X. Xu et al. [20] proposed a quaternion-based double extended Kalman filter algorithm, which decomposes the quaternion into the inclination quaternion and the yaw quaternion and corrects inclination and yaw using an extended Kalman filter. In contrast, quaternion-based algorithms require decoupling of the influence of magnetic interference on inclination estimation, which is caused by the presence of magnetic inclination. Therefore, S. Zhang et al. [23] proposed a geophysical-field-based Kalman filter (GKF) algorithm, which avoids using attitude representation parameters as the filter state vector. Instead, the algorithm estimates the specific force and magnetic vector information in the body frame based on the propagation equations of the gravitational field and geomagnetic field. Finally, the attitude information is calculated from the estimated specific force and magnetic vector.
In addition, the external acceleration [24] during vehicle movement and the soft/hard magnetic anomalies [12] caused by external factors such as metal and electronic equipment can disturb the attitude information obtained from MARG sensors. Hence, adaptive algorithms are needed to suppress the impact of external acceleration and magnetic anomalies on inclination and yaw estimation, respectively [25].
To solve the above problem, many scholars have carried out a lot of research and improvement on adaptive strategies. Y. Sun et al. [26] proposed a decoupled orientation estimation approach (DOEA) based on the threshold-based adaptive (TA) strategy, which judges the reliability of accelerometers by the modulus value of the accelerometer-sensed gravity field vector. Similarly, X. Wang et al. [27] proposed an adaptive robust error-state Kalman filter algorithm to enhance yaw estimation in complex magnetic disturbance environments, which dynamically adjusts the magnetic vector measurement noise by calculating the changes in magnetic field intensity and magnetic inclination. Nonetheless, Y. Xu et al. [28] believe that TA strategy may lead to misjudgment, which cannot ensure the reliability of measurements. The derivative of the output vector of the accelerometers and magnetometers should be regarded as an additional judgment criterion. A. Lotfy et al. [29] used the Chi-square test adaptive (CA) Kalman filter algorithm to monitor the measurement variance using the measurement information and the mean square error matrix. However, the determination of the detection threshold in CA is challenging due to the principle of binary measurement anomaly judgment, which may lead to false alarms or a reduction in the probability of detecting measurement anomalies. S. Sarkka et al. [30] proposed the Variational Bayesian adaptive (VBA) Kalman filter algorithm, which estimates the inaccurate and slowly varying measurement noise covariance matrix by choosing an appropriate conjugate prior to distribution. A. Makni et al. [31] used the Sage–Husa adaptive filter algorithm to estimate the measured noise parameters of the system in real time through the output of the accelerometers. However, the Sage–Husa adaptive filter is sensitive to initial value selection. The measurement noise covariance matrix easily loses positive quality, which can lead to filter divergence. As a result, X. Lin et al. [32] proposed a robust error-state Kalman filter (RESKF) algorithm based on the improved sequential adaptive (SA) strategy for MARG attitude estimation, which uses a sequential structure to reduce adaptive parameters and impose upper and lower boundary limits to ensure that the measure noise covariance matrix remains within a reasonable range and achieve fault isolation to rapidly reduce the measurement credibility. However, the noise covariance of a specific force and magnetic vector in the RESKF algorithm is not propagated to the Euler angle measurement, which impacts the optimal estimation of the filter. In addition, MARG adaptive attitude estimation can also be achieved by updating the magnetometer calibration parameters. H. Ke et al. [33] proposed a gyroscope-aided magnetometer calibration algorithm, which updates the calibration parameters based on the consistency of spatial rotation perception between the gyroscopes and the magnetometers. Z. Wu et al. [34] proposed an adaptive anti-disturbance algorithm, which estimates the magnetometer zero bias and the rate of change in the magnetic field to dynamically calibrate the magnetometer parameters, thereby maintaining filter stability under long-term stable magnetic interference.
In this work, a sequential adaptive geophysical-field-based Kalman filter (SA-GKF) algorithm for MARG attitude estimation is proposed. The SA-GKF algorithm estimates the specific force and magnetic vector based on the linear system model of the specific geophysical field and uses the sequential Sage–Husa adaptive strategy to estimate the measurement noise parameters in real time, which suppresses the maximum error of yaw estimation by more than 94% and inclination estimation by more than 21%. Furthermore, compared with three adaptive strategies and two algorithms, the proposed algorithm shows superior accuracy, confirming its advancement in attitude estimation under challenging conditions.
This paper is organized as follows: In Section 2, the preliminaries of the rotation matrix calculation, the inclination calculation, and the yaw calculation are reviewed. In Section 3, the sequential adaptive geophysical-field-based Kalman filter (SA-GKF) algorithm for MARG attitude estimation is introduced. In Section 4, a set of experiments are designed to verify the effectiveness and advancement of the SA-GKF algorithm. In Section 5, the conclusions are presented.

2. Preliminaries

This section mainly reviews the fundamental principles of deriving the Euler angle from the geophysical field, mainly including the rotation matrix calculation, inclination calculation, and yaw calculation.

2.1. Rotation Matrix Calculation

The navigation frame { n } is defined as the “east-north-up” frame, and the body frame { b } is defined as the “right-front-up” frame. The rotation matrix C b n stands for the attitude of frame { b } relative to frame { n }, which can be expressed by the Euler angle A k = θ k γ k ψ k T as follows:
C b n = cos ψ k sin ψ k 0 sin ψ k cos ψ k 0 0 0 1 1 0 0 0 cos θ k sin θ k 0 sin θ k cos θ k cos γ k 0 sin γ k 0 1 0 sin γ k 0 cos γ k = cos ψ k cos γ k sin ψ k sin θ k sin γ k sin ψ k cos θ k cos ψ k sin γ k + sin ψ k sin θ k cos γ k sin ψ k cos γ k + cos ψ k sin θ k sin γ k cos ψ k cos θ k sin ψ k sin γ k cos ψ k sin θ k cos γ k cos θ k sin γ k sin θ k cos θ k cos γ k ,
where θ k , γ k , and ψ k are the pitch, roll, and yaw, respectively.

2.2. Inclination Calculation

The specific force in frame { b } at time k is defined as f k b = f x | k b f y | k b f z | k b T ; the specific force in frame { n } at time k is defined as f k n = 0 0 g T ; and g = 1 is the normalized local gravity acceleration. Therefore, f k b can be expressed by f k n and C b n :
f k b = C b n T f k n = cos θ k sin γ k sin θ k cos θ k cos γ k .
Further, the pitch and roll at time k can be calculated from Equation (2) by f k b , i.e., [32]
θ k = arctan ( f y | k b ( f x | k b ) 2 + ( f z | k b ) 2 ) γ k * = arctan ( f x | k b f z | k b ) .
In addition, γ k requires an additional true value judgment, as shown in Table 1.

2.3. Yaw Calculation

The magnetic vector in frame { b } at time k is defined as m k b = m x | k b m y | k b m z | k b T , and the magnetic vector in frame { n } is at time k defined as m k n = m x | k n m y | k n m z | k n T . Therefore, m k b can be expressed by m k n and C b n , i.e.,
m k b = C b n T m k n = cos θ k sin γ k sin θ k cos θ k cos γ k .
In the same way, the yaw at time k can be calculated from Equation (4) by m k b , i.e., [32]
m x | k n = cos γ k m x | k b + sin γ k m z | k b m y | k n = sin γ k sin θ k m x | k b + cos θ k m y | k b     cos γ k sin θ k m z | k b ψ k * = arctan m x | k n / m y | k n .
In addition, ψ k requires an additional true value judgment, as shown in Table 2.
These equations will provide a theoretical basis for the design of the SA-GKF algorithm.

3. Sequential Adaptive Geophysical-Field-Based Kalman Filter Algorithm for Robust MARG Attitude Estimation

The purpose of this study is to suppress the effects of external acceleration and the soft/hard magnetic anomalies on the attitude estimation, for which the SA-GKF algorithm is proposed. Based on the principles outlined in Section 2, this section mainly describes the proposed SA-GKF algorithm for robust MARG attitude estimation.
In the SA-GKF algorithm, the geophysical field prediction X ^ k / k 1 is obtained from the propagation equation constructed by the gyroscope-sensed angular rate ω ˜ k 1 b at time k , and the geophysical field measurement Z k is obtained from the accelerometer-sensed specific force f ˜ k b and the magnetometer-sensed magnetic vector m ˜ k b . The measurement noise covariance matrix R ^ k is adaptively estimated in a sequential structure according to Z ˜ k / k 1 , which is calculated by X ^ k / k 1 and Z k . Finally, the geophysical field estimation X ^ k is obtained, and the Euler angle can be further calculated based on it. The block diagram of the SA-GKF algorithm is shown in Figure 1. In this section, the block diagram will be explained explicitly.

3.1. System Model

3.1.1. Process Model

The rotation matrix of frame { b } at time k relative to frame { b } at time k 1 , i.e., C b ( k 1 ) b ( k ) , can be expressed as follows:
C b ( k 1 ) b ( k ) = I ϕ × ,
where I stands for the three-order identity matrix; ϕ stands for the rotation vector of frame { b } at time k relative to frame { b } at time k 1 , which can be expressed by the calibrated gyroscope-sensed angular rate ω ˜ k 1 b = ω ˜ x | k 1 b ω ˜ y | k 1 b ω ˜ z | k 1 b T and gyroscope noise w g | k 1 b in frame { b } at time k 1 :
ϕ = ω ˜ k 1 b Δ t w g | k 1 b Δ t ,
where Δ t stands for the sampling interval of gyroscopes.
Hence, the specific force in frame { b }’s transformation between time k and time k 1 can be expressed using Equations (6) and (7), i.e., [23]
f k b = C b ( k 1 ) b ( k ) f k 1 b = I ϕ × f k 1 b = I ω ˜ k 1 b Δ t × f k 1 b f k 1 b × w g | k 1 b Δ t .
Similarly, the magnetic vector in frame { b }’s transformation between time k and time k 1 can be obtained as follows [23]:
m k b = I ω ˜ k 1 b Δ t × m k 1 b m k 1 b × w g | k 1 b Δ t .
In summary, the process model of the SA-GKF algorithm can be abbreviated as follows:
X k = Φ k / k 1 X k 1 + Γ k 1 W k 1
where
X k = f k b m k b ,   X k 1 = f k 1 b m k 1 b ,   W k 1 = w g | k 1 b w g | k 1 b Φ k / k 1 = diag I ω ˜ k 1 b Δ t × ,   I ω ˜ k 1 b Δ t × Γ k 1 = diag f k 1 b × Δ t , m k 1 b × Δ t .
In Equation (11), X k and X k 1 are the state vector at time k and time k 1 , respectively; Φ k / k 1 is the state one-step transition matrix; Γ k 1 is the process noise distribution matrix; and W k 1 is the process noise vector. The covariance matrix of W k 1 is defined as Q k 1 , which can be expressed as follows:
Q k 1 = diag δ g | x 2 δ g | y 2 δ g | z 2 ,
where δ g | x 2 , δ g | y 2 , and δ g | z 2 are the variances of ω ˜ x b , ω ˜ y b , and ω ˜ z b , which can be calculated by collecting gyroscope measurements for a long time under static conditions.
Q k 1 significantly affects filtering performance [35]. An undersized Q k 1 makes the filter over-rely on the model and respond slowly to real state changes, whereas an oversized Q k 1 causes excessive dependence on measurements and degrades estimation smoothness.

3.1.2. Measurement Model

The calibrated accelerometer-sensed specific force and the calibrated magnetometer-sensed magnetic vector are defined as f ˜ k b = f ˜ x | k b f ˜ y | k b f ˜ z | k b T and m ˜ k b = m ˜ x | k b m ˜ y | k b m ˜ z | k b T , which can be expressed by X k as follows [23]:
f ˜ k b m ˜ k b = f k b m k b + w a | k b w m | k b ,
where w a | k b is the accelerometer noise and w m | k b is the magnetometer noise.
Therefore, the measurement model of the SA-GKF algorithm can be abbreviated as follows:
Z k = H k X k 1 + V k 1 ,
where
Z k = f ˜ k b m ˜ k b , X k = f k b m k b H k = I 6 × 6 , V k = w a | k b w m | k b .
In Equation (15), Z k is the measurement vector at time k ; H k is the measurement matrix; and V k is the measurement noise vector. The covariance matrix of V k is defined as R k , which can be expressed as follows:
R k = diag δ a | x 2 δ a | y 2 δ a | z 2 δ m | x 2 δ m | y 2 δ m | z 2 ,
where δ a | x 2 , δ a | y 2 , δ a | z 2 , δ m | x 2 , δ m | y 2 , and δ m | z 2 are the variances of f ˜ x b , f ˜ y b , f ˜ z b , m ˜ x b , m ˜ y b , and m ˜ z b , which can be calculated by collecting accelerometer and magnetometer measurements for a long time under static and stable conditions.

3.1.3. System State Space Model

From Equations (10) and (14), we can obtain the system state space model of the SA-GKF algorithm as follows:
X k = Φ k / k 1 X k 1 + Γ k 1 W k 1 Z k = H k X k 1 + V k 1 .

3.2. SA-GKF Algorithm

3.2.1. Time Update

According to the state estimation X k 1 at time k 1 and the process model in Equation (10), the state at time k , i.e., the process of state one-step prediction, can be predicted as follows:
X ^ k / k 1 = Φ k / k 1 X ^ k 1 ,
where W k 1 is the zero-mean white noise, which contributes nothing to the state prediction.
Then, the state covariance matrix at time k can be predicted by the state estimation covariance matrix at time k 1 , i.e., the process of the one-step state prediction covariance matrix, which is defined as follows:
P k / k 1 = Φ k / k 1 P k 1 Φ k / k 1 T + Γ k 1 Q k 1 Γ k 1 T .

3.2.2. Adaptive Measurement Update

The external acceleration and magnetic anomalies can significantly affect the estimation accuracy of the inclination and yaw, respectively. Therefore, adaptive algorithms must be used to solve the interference problem. The Sage–Husa adaptive filter algorithm is commonly used in practice, and the specific implementation is as follows [32]:
Z ˜ k / k 1 = Z k H k X ^ k / k 1 β k = β k 1 / β k 1 + τ R ^ k = ( 1 β k ) R ^ k 1 + β k ( Z ˜ k / k 1 Z ˜ k / k 1 T H k P k / k 1 H k T ) ,
where Z ˜ k / k 1 is the measurement innovation; τ 0.9 ,   0.999 is the fading factor, so that the filter can always maintain the adaptive ability of R ^ k [36]. Based on a series of comparative experiments, τ was set to 0.95.
However, the Sage–Husa adaptive filter is sensitive to the initial value selection. If the actual measurement noise is too low compared to the theoretical modeling value or the initial state noise setting is too high, R ^ k may lose its positive definiteness and cause a filter anomaly [32].
In addition, in practical applications, the number of adaptive parameters should be reduced to maintain the reliability of the filter. A simple and effective method is to use a sequential structure to reduce adaptive parameters and impose upper and lower boundary limits on each diagonal component of R ^ k to ensure that it remains within a reasonable range.
From Equation (14), the measurement equation at time k can be decomposed into six groups as follows:
Z k ( 1 ) Z k ( 2 ) Z k ( 3 ) Z k ( 4 ) Z k ( 5 ) Z k ( 6 ) = H k ( 1 ) H k ( 2 ) H k ( 3 ) H k ( 4 ) H k ( 5 ) H k ( 6 ) X k + V k ( 1 ) V k ( 2 ) V k ( 3 ) V k ( 4 ) V k ( 5 ) V k ( 6 ) .
The measurement noise covariance matrix can be expressed in the following component block diagonal matrix form:
R k = diag R k ( 1 ) , R k ( 2 ) , R k ( 3 ) , R k ( 4 ) , R k ( 5 ) , R k ( 6 ) .
Therefore, when the i-th scalar sequential measurement is updated, the scalar measurement equation is
Z k ( i ) = H k ( i ) X k + V k ( i ) .
Further, the i-th scalar sequential measurement innovation can be expressed as follows:
Z ˜ k / k 1 ( i ) = Z k ( i ) H k ( i ) X ^ k .
The i-th scalar sequential measurement innovation covariance is
ρ k ( i ) = ( Z ˜ k / k 1 ( i ) ) 2 H k ( i ) P k / k 1 ( i ) ( H k ( i ) ) T .
Equation (25) is used for setting upper and lower boundary restrictions with the following conditions on each R ^ k diagonal component [32]:
R ^ k ( i ) = ( 1 β k ) R ^ k 1 ( i ) ρ k ( i ) < 0 ( 1 β k ) R ^ k 1 ( i ) + β k ρ k ( i ) 0 ρ k ( i ) R ^ max ( i ) R ^ max ( i ) ρ k ( i ) > R ^ max ( i ) ,
where the lower boundary 0 is used to ensure the positive quality of R ^ k ( i ) , and the upper boundary R ^ max ( i ) is used to quickly reduce the reliability of measurement information Z k ( i ) and test whether Z k ( i ) is abnormal. If ρ k ( i ) > R ^ max ( i ) , Z k ( i ) is regarded as abnormal, and the measurement update is abandoned.
Through the above processing, the system noise parameters can be estimated quickly in real time, and the impact of external acceleration and magnetic anomalies on the inclination and yaw estimation can be suppressed, with good adaptability and reliability.
The i-th sequential filter gain is the weight matrix that balances the contribution of the predicted and measured state values, i.e.,
K k ( i ) = P k / k 1 ( i ) H k ( i ) T H k ( i ) P k / k 1 ( i ) H k ( i ) T + R k ( i ) 1 ,
where P k / k 1 ( i ) is the i-th sequential one-step state prediction covariance matrix.
The i-th sequential state at time k can be further modified by K k ( i ) on the basis of the i-th sequential state prediction X ^ k / k 1 ( i ) , i.e., the process of state estimation, as follows:
X ^ k ( i ) = X ^ k / k 1 ( i ) + K k ( i ) Z k ( i ) H k ( i ) X ^ k / k 1 ( i ) .
The i-th sequential state estimation covariance matrix can be obtained as follows:
P k ( i ) = I K k ( i ) H k ( i ) P k / k 1 ( i ) .
To sum up, the final filtered value is
X ^ k = X ^ k ( n ) P k = P k ( n ) ,
where n is the dimension of the measurement vector.

3.3. Euler Angle Estimation

In summary, the Euler angle estimation A ^ k = θ ^ k γ ^ k ψ ^ k T can be obtained from (3) and (5) and Table 1 and Table 2 by X ^ k .
The proposed SA-GKF algorithm runs recursively by combining (3), (5), (11)–(12), (15)–(16), and (18)–(30). The implementation pseudocode of the SA-GKF algorithm is shown in Algorithm 1.
Algorithm 1: Sequential adaptive geophysical-field-based Kalman filter
Input
Φ k / k 1 = diag I ω k 1 b Δ t × ,   I ω k 1 b Δ t × , Γ k 1 = diag f k 1 b × Δ t ,   m k 1 b × Δ t , H k = I 6 × 6 , X k 1 = f k 1 b m k 1 b , Z k = f ˜ k b m ˜ k b , Q k 1 , R k 1 , β k 1 , τ , n .
1: X ^ k / k 1 = Φ k / k 1 X ^ k 1 ; //State-one-step prediction.
2: P k / k 1 = Φ k / k 1 P k 1 Φ k / k 1 T + Γ k 1 Q k 1 Γ k 1 T ; //State-one-step prediction covariance matrix.
3: β k = β k 1 / β k 1 + τ ;
For i = 1:n
4: Z k ( i ) = H k ( i ) X k + V k ( i ) ; //the i-th measurement.
5: Z ˜ k / k 1 ( i ) = Z k ( i ) H k ( i ) X ^ k ; //the i-th measurement innovation.
6: ρ k ( i ) = ( Z ˜ k / k 1 ( i ) ) 2 H k ( i ) P k / k 1 ( i ) ( H k ( i ) ) T ; //the i-th measurement innovation covariance.
7: Calculate R ^ k ( i ) from (24); //the i-th measurement covariance.
8: if ρ k ( i ) > R ^ max ( i ) , X ^ k ( i ) = X ^ k / k 1 ( i ) ; else K k ( i ) = P k / k 1 ( i ) H k ( i ) T H k ( i ) P k / k 1 ( i ) H k ( i ) T + R k ( i ) 1 , , X ^ k ( i ) = X ^ k / k 1 ( i ) + K k ( i ) Z k ( i ) H k ( i ) X ^ k / k 1 ( i ) ; //Measurement fault isolation.
9: P k ( i ) = I K k ( i ) H k ( i ) P k / k 1 ( i ) ; //Measurement fault isolation.
End
10: X ^ k = X ^ k ( n ) , P k = P k ( n ) ; //Final filtered value.
11: Calculate θ ^ k , γ ^ k , and ψ ^ k from (3), (5), Table 1 and Table 2 by X ^ k ; //Inclination and yaw calculation.
12: A ^ k = θ ^ k γ ^ k ψ ^ k T .
Output
β k , R k , X k , P k , A ^ k .
For the sequential Sage–Husa adaptive linear Kalman filter with a state vector of dimension n and measurement vector of dimension m , the computational complexity is O n 3 + n m 2 , and the memory complexity is O n 2 + m 2 + n m . The proposed SA-GKF algorithm, with n = m = 6 , has been successfully deployed on an embedded system based on an the STM32F411RET6 microcontroller produced by STMicroelectronics in Geneva, Switzerland (100 MHz main frequency, 128 KB SRAM) at an execution frequency of 100 Hz, demonstrating its feasibility and efficiency in resource-constrained systems.
In summary, the SA-GKF algorithm combines geophysical field modeling with the sequential adaptive filter to achieve strong robustness against external acceleration and magnetic anomalies. The effectiveness of this algorithm will be verified by the experiments presented below.

4. Experiments and Discussion

In order to verify the effectiveness of the proposed SA-GKF algorithm, a set of experiments was designed. This section presents the experimental platform, design, process, results, and discussion.

4.1. Experimental Platform

In order to verify the effectiveness of the SA-GKF algorithm, a set of experiments were designed based on our self-developed MARG-AHRS module [37], which integrates with XV7001BB gyroscopes (produced by Epson in Suwa, Japan), LIS3LV02DL accelerometers (produced by STMicroelectronics in Geneva, Switzerland), RM3100 magnetometers (produced by PNI in Windsor, CT, USA), a LM75A thermometer (produced by Texas Instruments in Dallas, TX, USA), a STM32F411RET6 microcontroller, and a high-precision orthogonal housing (see Figure 2a). Gyroscopes, accelerometers, and magnetometers are calibrated by the multi-angle-rate method [38], the six-positions method [39], and the error separation method [40], respectively. After testing, the root mean square error of the calibrated gyroscope measurement, accelerometer measurement, and magnetometer measurement are 0.2°/s, 0.0004 g, and 0.003 h. Under static conditions, the inclination accuracy is 0.25°, and the yaw accuracy is 0.3°. Only calibrated MARG data fusion can ensure the stability of the filter. In the experiment, to ensure the effectiveness of the generated measurement interference, the attitude error caused by external acceleration and magnetic anomalies will be made greater than the module’s attitude accuracy. The sampling rate of the module is 100 Hz, and the main performance parameters of the sensors in the MARG module are shown in Table 3. In addition, an experimental platform based on a three-axis non-magnetic turntable and the upper computer was built (see Figure 2b).

4.2. Experimental Design

A 0.02 mm/m air-level was used to strictly level the yaw axis (i.e., Z-axis), pitch axis (i.e., X-axis), and roll axis (i.e., Y-axis) of the three-axis non-magnetic turntable. Then, the MARG-AHRS module was fixed on the turntable plane to execute the experiment.
Two sets of experiments were designed: (a) In the pitch dynamic experiment, the X-axis of the turntable was manually rotated, and the MARG-AHRS module’s outputs of roll and yaw were recorded. (b) In the roll dynamic experiment, the Y-axis of the turntable was manually rotated, and the MARG-AHRS module’s outputs of pitch and yaw were ecorded. In these experiments, external acceleration and magnetic anomalies were realized by rotating the X-/Y-axes of the three-axis non-magnetic turntable and introducing a magnet.
At first, the effectiveness of the SA-GKF algorithm is verified by comparing it with the GKF algorithm (i.e., an SA-GKF algorithm without an adaptive strategy). Secondly, the rationality of choosing an SA strategy is verified by comparing the SA-GKF algorithm with the threshold-based adaptive GKF (TA-GKF) algorithm, Chi-square test adaptive GKF (CA-GKF) algorithm, and Variational Bayesian adaptive GKF (VBA-GKF) algorithm. Finally, the advancement of the SA-GKF algorithm is verified by comparing it with the DOEA and the RESKF algorithm.
The quantitative index of attitude estimation robustness is the maximum error of the Euler angle. The Euler angle errors were obtained from the difference between the reference value and the algorithm estimate. In the experimental results, Reference stands for the Euler angles reference value.

4.3. Anti-Interference Experiments

4.3.1. Pitch Dynamic Experiment

In this experiment, the Y-axis and Z-axis were kept stationary. The reference values of roll are zero, and the reference value of yaw is the scale value of the magnetic north, corresponding to the turntable’s 142.45°.
The magnitudes of the specific force and magnetic vector in the pitch dynamic experiment are shown in Figure 3a,b, respectively.
As shown in Figure 4 and Table 4, in the pitch dynamic experiment, compared with the GKF algorithm, the SA-GKF algorithm’s maximum roll error is reduced by 21.08%, and its maximum yaw error is reduced by 96.24%. In addition, compared with the TA-GKF algorithm, the CA-GKF algorithm, the VBA-GKF algorithm, the DOEA, and the RESKF algorithm, the SA-GKF algorithm works better and is more stable.

4.3.2. Roll Dynamic Experiment

In this experiment, the X-axis and Z-axis were kept stationary. The reference values of the pitch are zero, and the reference value of yaw is the scale value of the magnetic north, corresponding to the turntable’s 142.45°.
The magnitudes of the specific force and magnetic vector in the pitch dynamic experiment are shown in Figure 5a,b, respectively.
As shown in Figure 6 and Table 5, in the roll dynamic experiment, compared with the GKF algorithm, the SA-GKF algorithm’s maximum pitch error is reduced by 31.00%, and its maximum yaw error is reduced by 94.26%. In addition, compared with the TA-GKF algorithm, the CA-GKF algorithm, the VBA-GKF algorithm, the DOEA, and the RESKF algorithm, the SA-GKF algorithm works better and is more stable.

4.4. Experimental Discussions

From the experimental results in Section 4.3, we can see that the proposed SA-GKF algorithm can effectively suppress the influence of external acceleration and soft/hard magnetic anomalies on the estimation inclination and yaw estimation, respectively. When interference occurs, the SAGKF algorithm constructs the measurement innovation in real time by calculating the difference between the prediction and measurement of the geophysical fields. Then, the SAGKF algorithm estimates the measurement noise covariance matrix and combines the fault isolation to shield abnormal measurements, rapidly reducing the credibility of abnormal measurements and significantly enhancing the robustness of MARG attitude estimation.
Furthermore, compared with the TA, CA, and VBA strategies, the SA strategy exhibits stronger adaptability and is more suitable for combination with the GKF algorithm. The TA and CA strategies suffer from the binarity problem, making it difficult to determine the appropriate threshold. Therefore, both are prone to false alarms or missed detections, which can result in filter anomaly or even divergence. The VBA strategy relies on the factorization assumption and has no boundary constraints, resulting in reduced stability when the noise characteristics vary rapidly.
Finally, the experimental results show that the SA-GKF algorithm strategy has a higher attitude estimation accuracy than the DOEA and the RESKF algorithm, showing that the SA-GKF algorithm has certain advantages. The adaptive strategy of the DOEA is consistent with the TA strategy, and therefore DOEA has the same binarity problem. In the RESKF algorithm, both the state and measurement vectors are represented in the Euler angle, making it difficult to accurately model the noise statistics, which further limits its estimation precision.
The above analysis confirms that the proposed SA-GKF algorithm achieves superior performance and robustness.

5. Conclusions

Based on the theoretical analysis and experimental validation presented in the previous sections, the main contributions and future perspectives are summarized as follows:
In this work, a sequential adaptive linear Kalman filter algorithm based on the geophysical field for MARG attitude estimation was proposed, which suppresses the maximum error of yaw estimation by more than 94% and that of inclination estimation by more than 21%. Compared with the existing three adaptive strategies and two algorithms, the SA-GKF represents certain advancements. The SA-GKF algorithm can provide a strongly robust MARG attitude estimation solution for resource exploration, navigation and positioning, motion control, and stone and earthen materials testing, promoting the development of related industries.
However, the SA-GKF algorithm only performs online estimation of the measurement noise covariance matrix, without considering the effect of inaccuracies in the process noise covariance matrix. Moreover, when long-term disturbances occur, the filter relies solely on the time update process. After the disturbance ends, the filter may have already diverged, causing normal measurements to be misidentified as abnormal ones, thereby preventing the system from returning to stable filtering. In future work, the adaptive MARG attitude estimation algorithm will be studied further under conditions where both measurement noise and process noise are uncertain. In addition, long-term stable magnetic interference can be suppressed by combining the algorithm with the updated magnetic declination. Both are conducive to preventing filter divergence and improving the robustness of MARG attitude estimation.

Author Contributions

Conceptualization, T.Z.; methodology, T.Z.; software, T.Z.; validation, T.Z. and Z.D.; formal analysis, X.L.; investigation, T.Z. and Z.D.; resources, X.L.; data curation, J.Z.; writing—original draft preparation, T.Z. and Z.D.; writing—review and editing, T.Z. and X.L.; visualization, Z.J.; supervision, M.W. and Y.X.; project administration, X.L.; funding acquisition, X.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Key Research and Development Program of China, grant number 2022YFC3003303.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest. The founding sponsors had no role in the design of the study; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Sun, M.; Wang, Y.; Xu, S.; Cao, H.; Si, M. Indoor Positioning Integrating PDR/Geomagnetic Positioning Based on the Genetic-Particle Filter. Appl. Sci. 2020, 10, 668. [Google Scholar] [CrossRef]
  2. Alatise, M.; Hancke, G. Pose Estimation of a Mobile Robot Based on Fusion of IMU Data and Vision Data Using an Extended Kalman Filter. Sensors 2017, 17, 2164. [Google Scholar] [CrossRef]
  3. Lee, J.K.; Han, S.J.; Kim, K.; Kim, Y.H.; Lee, S. Wireless Epidermal Six-Axis Inertial Measurement Units for Real-Time Joint Angle Estimation. Appl. Sci. 2020, 10, 2240. [Google Scholar] [CrossRef]
  4. Amin, M.S.; Bin Ibne Reaz, M.; Nasir, S.S.; Bhuiyan, M.A.S. Attitude Heading Reference System Based Vehicle Stationary State Detection. In Proceedings of the 2014 International Conference on Electrical Engineering and Information & Communication Technology, Dhaka, Bangladesh, 10–12 April 2014; IEEE: Dhaka, Bangladesh; pp. 1–4. [Google Scholar]
  5. Kopecki, G.; Łagodowski, Z.A. Complementary Filter Optimal Tuning Methodology for Low-Cost Attitude and Heading Reference Systems with Statistical Analysis of Output Signal. Appl. Sci. 2025, 15, 4114. [Google Scholar] [CrossRef]
  6. Cao, C.; Wang, C.; Zhao, S.; Tan, T.; Zhao, L.; Zhang, F. Underwater Gyros Denoising Net (UGDN): A Learning-Based Gyros Denoising Method for Underwater Navigation. JMSE 2024, 12, 1874. [Google Scholar] [CrossRef]
  7. Vertzberger, E.; Klein, I. Adaptive Attitude Estimation Using a Hybrid Model-Learning Approach. IEEE Trans. Instrum. Meas. 2022, 71, 1–9. [Google Scholar] [CrossRef]
  8. Liu, S.; Zhang, J.; Zhang, Y.; Zhu, R. A Wearable Motion Capture Device Able to Detect Dynamic Motion of Human Limbs. Nat. Commun. 2020, 11, 5615. [Google Scholar] [CrossRef] [PubMed]
  9. Cluni, F.; Faralli, F.; Gusella, V.; Liberotti, R. X-Rays CT and Mesoscale FEM of the Shot-Earth Material. In Shot-Earth for an Eco-friendly and Human-Comfortable Construction Industry; Tarantino, A.M., Cotana, F., Viviani, M., Eds.; Springer Tracts in Civil Engineering; Springer Nature: Cham, Switzerland, 2023; pp. 25–44. ISBN 978-3-031-23506-1. [Google Scholar]
  10. Yi, N.; Sun, W.; Zhou, X.; Chen, L.; Zhang, J.; Han, D.; Sun, C. A Decoupled-DCM Orientation Estimator for Eliminating Influence of Magnetic Interference on Roll Angle and Pitch Angle. IEEE Trans. Instrum. Meas. 2023, 72, 1–14. [Google Scholar] [CrossRef]
  11. Ding, W.; Gao, Y. Attitude Estimation Using Low-Cost MARG Sensors with Disturbances Reduction. IEEE Trans. Instrum. Meas. 2021, 70, 1–11. [Google Scholar] [CrossRef]
  12. Suh, Y.S.; Ro, Y.S.; Kang, H.J. Quaternion-Based Indirect Kalman Filter Discarding Pitch and Roll Information Contained in Magnetic Sensors. IEEE Trans. Instrum. Meas. 2012, 61, 1786–1792. [Google Scholar] [CrossRef]
  13. Vlastos, P.; Elkaim, G.; Curry, R. Low-Cost Validation for Complementary Filter-Based AHRS. In Proceedings of the 2020 IEEE/ION Position, Location and Navigation Symposium (PLANS), Portland, OR, USA, 23–25 September 2020; IEEE: Portland, OR, USA, 2020; pp. 1444–1451. [Google Scholar]
  14. Shi, Y.; Zhang, Y.; Li, Z. Hierarchical MARG Fusion Method with Human Constraints for Upper Limb Motion Estimation. IEEE Sens. J. 2023, 23, 19092–19104. [Google Scholar] [CrossRef]
  15. Hashim, H.A.; Vamvoudakis, K.G. Adaptive Neural Network Stochastic-Filter-Based Controller for Attitude Tracking with Disturbance Rejection. IEEE Trans. Neural Netw. Learn. Syst. 2024, 35, 1217–1227. [Google Scholar] [CrossRef]
  16. Narkhede, P.; Poddar, S.; Walambe, R.; Ghinea, G.; Kotecha, K. Cascaded Complementary Filter Architecture for Sensor Fusion in Attitude Estimation. Sensors 2021, 21, 1937. [Google Scholar] [CrossRef] [PubMed]
  17. Valerio, L.; Nardini, F.M.; Passarella, A.; Perego, R. Dynamic Hard Pruning of Neural Networks at the Edge of the Internet. J. Netw. Comput. Appl. 2022, 200, 103330. [Google Scholar] [CrossRef]
  18. Ko, N.Y.; Jeong, S.; Hwang, S.; Pyun, J.-Y. Attitude Estimation of Underwater Vehicles Using Field Measurements and Bias Compensation. Sensors 2019, 19, 330. [Google Scholar] [CrossRef]
  19. Shaaban, G.; Fourati, H.; Kibangou, A.; Prieur, C. Secure MARG Sensor-Based Attitude Estimation on SO(3) Under Randomly Occurring False Data Injection Attacks. In Proceedings of the 2025 European Control Conference (ECC), Thessaloniki, Greece, 24–27 June 2025; IEEE: Thessaloniki, Greece, 2025; pp. 3101–3106. [Google Scholar]
  20. Xu, X.; Sun, Y.; Tian, X.; Zhou, L.; Li, Y. A Double-EKF Orientation Estimator Decoupling Magnetometer Effects on Pitch and Roll Angles. IEEE Trans. Ind. Electron. 2022, 69, 2055–2066. [Google Scholar] [CrossRef]
  21. Barman, S.; Sinha, M. Singularity Avoidance Controller Design for Spacecraft Attitude Control Using Double-Gimbal Variable-Speed Control Moment Gyro. Eur. J. Control. 2023, 70, 100782. [Google Scholar] [CrossRef]
  22. Valenti, R.G.; Dryanovski, I.; Xiao, J. A Linear Kalman Filter for MARG Orientation Estimation Using the Algebraic Quaternion Algorithm. IEEE Trans. Instrum. Meas. 2016, 65, 467–481. [Google Scholar] [CrossRef]
  23. Zhang, S.; Yu, S.; Liu, C.; Yuan, X.; Liu, S. A Dual-Linear Kalman Filter for Real-Time Orientation Determination System Using Low-Cost MEMS Sensors. Sensors 2016, 16, 264. [Google Scholar] [CrossRef]
  24. Suh, Y.S. Orientation Estimation Using a Quaternion-Based Indirect Kalman Filter with Adaptive Estimation of External Acceleration. IEEE Trans. Instrum. Meas. 2010, 59, 3296–3305. [Google Scholar] [CrossRef]
  25. Lee, M.S.; Park, J.; Park, C.G. Center-of-Rotation-Augmented Kalman Filter for Adaptive Attitude Reference System. IEEE Access 2023, 11, 55844–55860. [Google Scholar] [CrossRef]
  26. Sun, Y.; Xu, X.; Tian, X.; Zhou, L.; Li, Y. A Decoupled Orientation Estimation Approach for Robust Roll and Pitch Measurements in Magnetically Disturbed Environment. IEEE Trans. Instrum. Meas. 2022, 71, 1–11. [Google Scholar] [CrossRef]
  27. Wang, X.; Yan, J.; Dai, R.; Liu, W.; Zhang, J. Low-Cost MEMS-Based AHRS Using an Adaptive Robust Error-State Kalman Filter for Motion Capture. Measurement 2025, 251, 117108. [Google Scholar] [CrossRef]
  28. Xu, Y.; Quo, J.; Guan, Y. EKF Based Multiple-Mode Attitude Estimator for Quadrotor Using Inertial Measurement Unit. In Proceedings of the 2017 36th Chinese Control Conference (CCC), Dalian, China, 26–28 July 2017; IEEE: Dalian, China, 2017; pp. 6191–6198. [Google Scholar]
  29. Lotfy, A.; Abdelfatah, M.; El-Fiky, G. Improving the Performance of GNSS Precise Point Positioning by Developed Robust Adaptive Kalman Filter. Egypt. J. Remote Sens. Space Sci. 2022, 25, 919–928. [Google Scholar] [CrossRef]
  30. Sarkka, S.; Nummenmaa, A. Recursive Noise Adaptive Kalman Filtering by Variational Bayesian Approximations. IEEE Trans. Automat. Contr. 2009, 54, 596–600. [Google Scholar] [CrossRef]
  31. Makni, A.; Fourati, H.; Kibangou, A.Y. Adaptive Kalman Filter for MEMS-IMU Based Attitude Estimation under External Acceleration and Parsimonious Use of Gyroscopes. In Proceedings of the 2014 European Control Conference (ECC), Strasbourg, France, 24–27 June 2014; IEEE: Strasbourg, France, 2014; pp. 1379–1384. [Google Scholar]
  32. Lin, X.; Zhao, T.; Lin, W.; Sun, W.; Jiang, Z.; Wang, M. MARG Attitude Estimation Algorithm Based on Sequential Adaptive Error State Kalman Filter. J. Chin. Inert. Technol. 2023, 31, 1175–1180. [Google Scholar] [CrossRef]
  33. Han, K.; Han, H.; Wang, Z.; Xu, F. Extended Kalman Filter-Based Gyroscope-Aided Magnetometer Calibration for Consumer Electronic Devices. IEEE Sens. J. 2017, 17, 63–71. [Google Scholar] [CrossRef]
  34. Wu, Z.; Wang, W. Adaptive Anti-Disturbance Method for Magnetometer and INS Integration in a Road Vehicle. J. Navig. 2019, 72, 1513–1532. [Google Scholar] [CrossRef]
  35. Nez, A.; Fradet, L.; Marin, F.; Monnet, T.; Lacouture, P. Identification of Noise Covariance Matrices to Improve Orientation Estimation by Kalman Filter. Sensors 2018, 18, 3490. [Google Scholar] [CrossRef] [PubMed]
  36. Chen, Z.; Liu, Y.; Liu, S.; Wang, S.; Yang, L. An Improved Fading Factor-Based Adaptive Robust Filtering Algorithm for SINS/GNSS Integration with Dynamic Disturbance Suppression. Remote Sens. 2025, 17, 1449. [Google Scholar] [CrossRef]
  37. Chu, Z.; Chen, C.; Liu, Y.; Wang, Y.; Lin, X. Magnetic Orientation System Based on Magnetometer, Accelerometer and Gyroscope. CAAI Trans. Intel. Technol. 2017, 2, 166–172. [Google Scholar] [CrossRef]
  38. Yang, H.; Zhou, B.; Wang, L.; Xing, H.; Zhang, R. A Novel Tri-Axial MEMS Gyroscope Calibration Method over a Full Temperature Range. Sensors 2018, 18, 3004. [Google Scholar] [CrossRef] [PubMed]
  39. Fang, J.; Sun, H.; Cao, J.; Zhang, X.; Tao, Y. A Novel Calibration Method of Magnetic Compass Based on Ellipsoid Fitting. IEEE Trans. Instrum. Meas. 2011, 60, 2053–2061. [Google Scholar] [CrossRef]
  40. Chu, Z.; Lin, X.; Gao, K.; Chen, C. Error-Separation Method for the Calibration of Magnetic Compass. Sens. Actuators A Phys. 2016, 250, 195–201. [Google Scholar] [CrossRef]
Figure 1. Block diagram of SA-GKF algorithm.
Figure 1. Block diagram of SA-GKF algorithm.
Applsci 15 11593 g001
Figure 2. (a) The gyroscopes provide the angular rate, the accelerometers provide the specific force, the magnetometers provide the magnetic vector, the thermometer provides the temperature, the single-chip microcomputer is used for synchronous data acquisition, and the housing is used for MARG sensor calibration. (b) The MARG-AHRS module provides sensor measurement, the three-axis non-magnetic turntable is used to provide the attitude reference, the digital display is used to show the scale of the turntable in real time, and the upper computer is used for human–computer interaction and data storage.
Figure 2. (a) The gyroscopes provide the angular rate, the accelerometers provide the specific force, the magnetometers provide the magnetic vector, the thermometer provides the temperature, the single-chip microcomputer is used for synchronous data acquisition, and the housing is used for MARG sensor calibration. (b) The MARG-AHRS module provides sensor measurement, the three-axis non-magnetic turntable is used to provide the attitude reference, the digital display is used to show the scale of the turntable in real time, and the upper computer is used for human–computer interaction and data storage.
Applsci 15 11593 g002
Figure 3. (a) The X-axis represents time, the Y-axis represents the magnitude of the specific force, normalized by the local gravity field g , and the external acceleration interference occurs between 15 s and 45 s. (b) The X-axis represents time, the Y-axis represents the magnitude of the magnetic vector, normalized by the local geomagnetic field h , and the magnetic anomaly interference occurs between 20 s and 40 s.
Figure 3. (a) The X-axis represents time, the Y-axis represents the magnitude of the specific force, normalized by the local gravity field g , and the external acceleration interference occurs between 15 s and 45 s. (b) The X-axis represents time, the Y-axis represents the magnitude of the magnetic vector, normalized by the local geomagnetic field h , and the magnetic anomaly interference occurs between 20 s and 40 s.
Applsci 15 11593 g003
Figure 4. (a) The X-axis represents time, the Y-axis represents roll, and the roll reference is 0°. (b) The X-axis represents time, the Y-axis represents yaw, and the yaw reference is 142.45°. In the pitch dynamic experiment, the external acceleration and magnetic anomalies were realized by rotating the X-axis of the three-axis non-magnetic turntable and introducing a magnet.
Figure 4. (a) The X-axis represents time, the Y-axis represents roll, and the roll reference is 0°. (b) The X-axis represents time, the Y-axis represents yaw, and the yaw reference is 142.45°. In the pitch dynamic experiment, the external acceleration and magnetic anomalies were realized by rotating the X-axis of the three-axis non-magnetic turntable and introducing a magnet.
Applsci 15 11593 g004
Figure 5. (a) The X-axis represents time, the Y-axis represents the magnitude of the specific force, normalized by the local gravity field g , and the external acceleration interference occurs between 15 s and 50 s. (b) The X-axis represents time, the Y-axis represents the magnitude of the magnetic vector, normalized by the local geomagnetic field h , and the magnetic anomaly interference occurs between 25 s and 45 s.
Figure 5. (a) The X-axis represents time, the Y-axis represents the magnitude of the specific force, normalized by the local gravity field g , and the external acceleration interference occurs between 15 s and 50 s. (b) The X-axis represents time, the Y-axis represents the magnitude of the magnetic vector, normalized by the local geomagnetic field h , and the magnetic anomaly interference occurs between 25 s and 45 s.
Applsci 15 11593 g005
Figure 6. (a) The X-axis represents time, the Y-axis represents the pitch, and the pitch reference is 0°. (b) The X-axis represents time, the Y-axis represents the yaw, and the yaw reference is 142.45°. In the roll dynamic experiment, the external acceleration and magnetic anomalies were realized by rotating the Y-axis of the three-axis non-magnetic turntable and introducing a magnet.
Figure 6. (a) The X-axis represents time, the Y-axis represents the pitch, and the pitch reference is 0°. (b) The X-axis represents time, the Y-axis represents the yaw, and the yaw reference is 142.45°. In the roll dynamic experiment, the external acceleration and magnetic anomalies were realized by rotating the Y-axis of the three-axis non-magnetic turntable and introducing a magnet.
Applsci 15 11593 g006
Table 1. True value judgment of roll.
Table 1. True value judgment of roll.
γ k * f z | k b γ k
+ + γ k *
+ γ k *
+ γ k * 180
γ k * + 180
Table 2. True value judgment of yaw.
Table 2. True value judgment of yaw.
m x | k n m y | k n ψ k
+ ψ k *
ψ k * 180
+ + ψ k *
+ ψ k * + 180
Table 3. Main performance parameters of the MARG module.
Table 3. Main performance parameters of the MARG module.
SensorRangeSensitivity
XV7001BB±100°/s70 LSB/(°/s)
LIS3LV02DL±2 g1024 LSB/g
RM3100±800 μT38 LSB/μT
Table 4. Pitch dynamic experiment results.
Table 4. Pitch dynamic experiment results.
AlgorithmRoll Maximum ErrorYaw Maximum Error
SA-GKF (the proposed)0.3703°0.4964°
TA-GKF0.4241°1.8442°
CA-GKF0.4920°0.6979°
VBA-GKF0.4226°1.5056°
DOEA0.3716°1.4666°
RESKF0.3879°0.5443°
GKF0.4692°13.1888°
Table 5. Roll dynamic experiment results.
Table 5. Roll dynamic experiment results.
AlgorithmPitch Maximum ErrorYaw Maximum Error
SA-GKF (the proposed model)0.2028°0.3918°
TA-GKF0.2492°2.0767°
CA-GKF0.2561°0.8372°
VBA-GKF0.2430°0.7669°
DOEA0.2500°0.4468°
RESKF0.2164°0.4047°
GKF0.2939°6.8134°
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.

Share and Cite

MDPI and ACS Style

Zhao, T.; Deng, Z.; Jiang, Z.; Wang, M.; Zhou, J.; Xu, Y.; Lin, X. A Sequential Adaptive Linear Kalman Filter Based on the Geophysical Field for Robust MARG Attitude Estimation. Appl. Sci. 2025, 15, 11593. https://doi.org/10.3390/app152111593

AMA Style

Zhao T, Deng Z, Jiang Z, Wang M, Zhou J, Xu Y, Lin X. A Sequential Adaptive Linear Kalman Filter Based on the Geophysical Field for Robust MARG Attitude Estimation. Applied Sciences. 2025; 15(21):11593. https://doi.org/10.3390/app152111593

Chicago/Turabian Style

Zhao, Taoran, Ziwei Deng, Zhijian Jiang, Menglei Wang, Junfeng Zhou, Yiyang Xu, and Xinhua Lin. 2025. "A Sequential Adaptive Linear Kalman Filter Based on the Geophysical Field for Robust MARG Attitude Estimation" Applied Sciences 15, no. 21: 11593. https://doi.org/10.3390/app152111593

APA Style

Zhao, T., Deng, Z., Jiang, Z., Wang, M., Zhou, J., Xu, Y., & Lin, X. (2025). A Sequential Adaptive Linear Kalman Filter Based on the Geophysical Field for Robust MARG Attitude Estimation. Applied Sciences, 15(21), 11593. https://doi.org/10.3390/app152111593

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