1.0 Introduction: The Issue of Gyroscopes Bias in Stationary Cars
High-fidelity vehicle state estimation has never been more important than it is today due to the emergence of advanced driver-assistance systems (ADAS) and autonomous driving technologies. The key component of this task is Inertial Measurement Units (IMUs) that include gyroscopes and accelerators, which can provide continuous motion data without any outside data (such as GNSS). Nevertheless, one of the incessant problems with IMUs, the Micro-Electro-Mechanical Systems (MEMS) type of IMUs frequently used in vehicles, is the fact that sensor errors are present.
One of the most common errors is as follows: the car is obviously in a stationary position, yet the angular velocity output of IMU indicates a minor, consistent difference. This offset when unmitigated causes serious operation failures.
1.1 Defining Gyroscope Bias
The output of a gyroscope at rest when it is not rotating at all is referred to as bias or zero-rate offset . It is additive error, which implies that this false angular velocity will persistently exist in the sensor output signal. The cumulative error of integration of this incorrect signal over time to compute the vehicle orientation (heading, pitch, roll) leads to an unlimited orientation error. To provide an example, a small uncorrected error of a few degree per hour will result in a massive drift in the perceived heading of the vehicle during long periods of stationary operation, e.g., when waiting at a long traffic light, being stuck in stop-and-go traffic, moving through a multi-level parking garage with no GNSS coverage. Allowing the proper correction of this bias, particularly in the case where it is known that the vehicle is at rest, is a basic procedure in any sound inertial navigation system (INS).
1.2 The Automotive Context
Orientation is the most essential in the automotive sphere. It forms a part of the Automotive Dead Reckoning (ADR) systems, which aim at ensuring proper positioning in case of a GNSS outage (e.g. in tunnels, urban canyons or garages). Elevated bias in a gyroscopes will cause fast deterioration of the quality of ADR resulting in a wrong position on the map. Moreover, vehicle stability control (VSC), lane keeping assist and automated parking, are all based on accurate yaw rate and attitude data. A biased gyroscopes may give a false input to such safety critical systems and may result in wrong corrective measures. Thus, the knowledge and application of the good software correction to the gyroscope bias is not only a performance-enhancing issue but a system safety and reliability concern.
2.0 Knowing the Gyro Biases and the Sources of Gyro Bias
In order to successfully correct gyroscope bias, it is important to recognize its components and main drivers. The bias is not a single value but a combination of several characteristics of error.
2.1 Comparison between Static and Dynamic Bias Elements
Gyroscope bias can be roughly broken down to two categories:
Static Bias (Bias Offset): This is the bias component which is more or less constant, i.e. independent of time. It is defined as the average output of gyroscope in a period during which it is stationary. This is the “small, constant offset” as mentioned in the problem statement above, the core problem statement. This component can be estimated and corrected by calibration, the simplest of which is to average out the output when the device is known to be stationary.
Bias Instability: This is the dynamic, time-varying component of the bias, it is the way the bias randomly fluctuates in time. This characteristic is often described as a 1/f noise process or flicker noise and is an important performance measure which is assessed using an Allan Variance analysis. Unlike the static offset, bias instability is the inherent limit of the immunity of a sensor to maintain a constant bias value. Other dynamic errors are Angle Random Walk (ARW), that is related to high frequencies white noise in the output. While static bias can be eliminated to a large extent by calibration, dynamic bias instability is more difficult to compensate for in real-time.
2.2 The Critical Importance of Temperature
For MEMS gyroscopes, the external factor that is arguably the most important factor in bias drift is temperature fluctuation. The mechanical and electrical characteristics of the MEMS structure are sensitive to temperature and the zero-rate offset and scale factor varied. This sensitivity means that a bias value calibrated at 25 C may be wrong when the ECU of a vehicle is hot (60 C) due to its operation. Moreover, the rate of temperature change (temperature gradient) could also cause thermal stresses in the sensor package, which again could lead to bias drift, besides the absolute temperature. For this reason, any errors in correction cannot be independent of the temperature environment; any good system must have some kind of temperature compensation.
2.3 Influence of IMU Grade
The size of the error in bias is very dependent on the “grade” of the IMU. Performance is often classed according to the instability in bias, which is measured in degrees per hour (:deg/h):
- Consumer/Automotive Grade: Usually has bias instability of >1°/h to 15°/h. These are common in vehicles because they are low cost but require sophisticated compensation by software.
- Tactical Grade: Provides improved performance which is often in the range of 0.1°/h to 1°/h.
- Navigation & Strategic Grade: These sensors are high-end pricey sensors with very low bias instability (<0.01°/h), and are used in Aerospace and Defense.
For automotive applications, the larger biases and instabilities of consumer or automotive grade MEMS sensors are the main engineering problem.
3.0 Basic Method of Correction Static Bias Calibration
In order to determine its intrinsic error parameters, the IMU is often one-off calibrated, offline, before the vehicle is deployed. This gives a baseline correction which is programmed into the system.
3.1 The Principle of Static Calibration
The basic concept of static calibration is to position the sensor in a series of known perfect stable positions and measure the output of the sensor. By comparing the observed output with the known true value (i.e. the Earth’s gravity in the case of accelerometers, zero rotation for gyroscopes), it is possible to construct a mathematical model of the errors of the sensor. For gyroscope bias, the most basic approach is to allow the sensor to be completely stationary and average the output over a long period of time to determine the bias offset.
3.2 Multi Position Calibration techniques
More sophisticated techniques are available to find a more complete error model, including not just the bias, but also scale factor errors (sensitivity of the sensor to rotation) and non-orthogonality errors (misalignment of sensor axes).
- Six-Position Static Test: This is a very common and effective test. The procedure uses the IMU in six different static orientations where, usually, each of its three sensitive axes is directed directly upwards (+g) and then directly downwards (-g) with respect to the earth’s gravity. While the gyroscope is not actually measuring gravity directly, these accurate orientations enable the decoupling and estimation of multiple error terms of the accelerometer and gyroscope.
- Multi-Position Enhancements: In order to increase the accuracy and observability of the error parameters, the number of static positions can be increased. Research has shown that more orientations, e.g., 10, 16 or even 60 orientations, can lead to a lower relative error in the estimated parameters.
3.3 Practical Parameters and Challenges
Static calibration is a very rigorous operation with certain requirements:
- Sampling Duration: High-accuracy calibration requires long data acquisition time in order to average out the sensor noise. Durations of more than an hour per test are oftentimes cited as being necessary to get stable results. Some protocols may call for shorter amounts of time for each position, such as 15 seconds for accelerometer calibration or require a minimum number of samples for each state, such as 30.
- Convergence Criteria: The search results do not indicate standardized convergence criteria. In practice, stability of estimated parameters is often used to determine this empirically. The calibration is said to be converged when the parameter estimates do not change significantly as more data is added.
- Limitations: These multi-position methods are most likely to be used in a factory or laboratory setting. They need to be precisely aligned and they are time consuming and therefore not suitable for recalibration in the field or in real time in a vehicle. Furthermore, for the lower grade IMUs, these algorithms may not be able to converge to a correct solution without good initial parameter guesses.
4.0 Real Time Correction Stationary Detection and Zero rate updates (ZUPT/ZARU)
Static calibration gives only a baseline, it cannot compensate for the incline towards bias due to temperature, or aging. The best software solution for bias correction for stationary vehicle is a real-time process that includes stationary detection and applying a zero rate update.
4.1 The ZUPT/ZARU Concept
The concept is very elegance and powerful. When for example the system can reliably determine that the vehicle is stationary, it knows its true angular velocity is zero. Any non-zero value from the gyroscope during this time is by definition the current bias. This knowledge can be used to update the system’s estimate of the gyroscope bias.
- Zero-Angular-Rate Update (ZARU): Is applied to the gyroscope specifically. When the vehicle is detected as not rotating, then the gyroscope output is used to estimate and correct for bias.
- Zero-Velocity Update (ZUPT): A related concept in which a detected zero-velocity condition is used to correct velocity and position errors in a navigation filter, and can also be used to improve attitude and bias estimates.
For the problem at hand ZARU is the direct solution.
4.2 Step 1: Stationary Detection
The stationary detection algorithm is the basis of any ZARU implementation. An incorrect detection (i.e. detecting the vehicle as stationary, if it is creeping forward slowly) will spoil the bias estimation and performance will degrade.
- Detection Methods: The detection is usually done based on the detection of the data of its own output IMU. Popular approaches to this are to compute metrics over a sliding window of them:
- Magnitude Test: Magnitude comparison of accelerometer and gyroscope signals to some pre-defined levels
- Variance Test: Computing the Variance of the Accelerometer / Gyroscope Signal In a stationary state, the signals should be relatively constant (aside from noise) leading to low variance.
- Energy test: Calculating the sum of squared value of the angular rate signal.
- Thresholds and Gating Values: The determination of whether the vehicle is stationary or not is based on a comparison of these calculated metrics with set thresholds. The search results give a number of examples, indicating their application-specific nature:
- A yaw rate threshold of ±8.5 deg/s and acceleration thresholds of ±0.25 G were used in one context to monitor the dynamics of the vehicle.
- A configurable ZARU detection threshold of 0.01 to 2 is said for a particular command, which means a unitless or scaled parameter.
- For a sensor, a default stationary detection threshold value of 0.5 km/h is mentioned which should be avoided to exclude movement from engine vibration.
These examples illustrate that there is no universal “correct” threshold to be used; it always must be adjusted to the system in question, that is, vehicle, IMU, and operating environment.
4.3 Step 2: Apply the Correction in Practically the following ways”
As soon as the system is confident that the blocked period is stationary, the correction period can be made.
- Estimate Bias: The simplest way there is to derive a result is to compute for each axis of the gyro the mean of output over the extent of the stationary window that has been detected. The new value for the static bias is the average value.
- Apply Correction: This new estimate for this bias is then subtracted for all subsequent raw measurements from the gyroscope before being used in navigation calculations.
- Kalman Filter Integration: Since in more sophisticated systems such as those using Kalman filter, the stationary detection marks a trigger of a “measurement update.” That the true angular rate is zero can be measured. The filter then uses this information to update their internal state estimate of gyroscope bias resulting in a statistically optimal correction on the gyroscope bias that also incorporates measurement and model uncertainty.
4.4 The Difficulty with Adaptive Thresholds
The approach of using fixed thresholds for stationary detection is brittle. A threshold so low that true stillness can be sensed may be wrongly activated by engine idle vibrations, but a threshold so high that vibrations can be ignored may be unable to sense stillness on a slightly inclined or bumpy surface. This requires for adaptive strategies.
- Adaptive Thresholding: The system should be able to adaptively determine the thresholds according to the situations. One suggested approach is to make the threshold a function of another variable, for example, make the angular velocity threshold a linear function of vehicle speed.
- Advanced Detectors: More advanced detection can be made possible with advanced algorithms, which are less dependent on simple detection thresholds. This involves statistical tests such as likelihood ratio tests , Bayesian methods, or even machine learning models that are trained to detect the signal characteristics of a stationary vehicle in different circumstances (e.g. engine on/off, different road surfaces).
- Latency and Confirmation Delay: To avoid these false triggers caused by transient events, confirmation gate or delay is often used. The system has to be below the detection threshold for a certain period (so called “zero-speed detection delay”) before the stationary state is actually confirmed and the ZARU is applied.
5.0 Further Considerations for Corrections of Robustness
A really robust system does more than mere ZARU and ties in other knowledge about the behavior of the sensor, most notably its response to temperature.
5.1 Incorporating Temperature Compensation
As bias is highly dependent on the temperature, a ZARU-based correction is most successful when used together with a temperature compensation model.
- Modeling Temperature Effects: The temperature vs. bias relationship can be modelled and calibrated. The most common method is that of fitting the bias values measured at different temperatures using a polynomial function. This gives rise to a compensation look-up table or function
bias = f (temperature). Also, newer models can combine the temperature rate of change to take the dynamic thermal effects into account. - Architectural Implementation: The integration can occur at various levels of the architecture of the vehicle:
- Sensor-Side: Some advanced IMUs modules have an internal temperature sensor and support for basic temperature compensation can be found as automatic.
- ECU/Onboard Computer: This is the most flexible and common place of implementation. The engine control unit (ECU) of the vehicle or a dedicated computer for navigation is able to execute a complex compensation algorithm. It has access to both the IMU data as well as potentially other vehicle information. This is where the ZARU and temperature models are usually combined.
- Cloud-Side: In case of connected vehicles, there is a new potential of using cloud computing. Fleet data can be aggregated to create highly accurate, generalized temperature compensation models, which are then downloaded to individual vehicles, which is called “cloud-side co-optimization” or “cloud-side collaborative optimization.”
- Synergy with ZARU: ZARU mechanism offers a strong tool to construct and improve the temperature compensation model online. Each time the vehicle is stationary and a ZARU is made, the system gets a new and accurate estimate of the current bias. By making a bias estimate using this data and at the same time taking a reading from the IMU’s temperature sensor, the system has another data point
(temperature, bias). These data points can then be used to learn and update the temperature-bias model on a continuous basis over the vehicle’s life to make the compensation even more effective and even more personalized to the particular sensor.
5.2 Performance Metric and Overhead Assessment
While there currently exists many existing correction methods, there are no standardized cross-device performance metrics to determine the effectiveness of each of these approaches, which are available in search results.
- Error Reduction: The impact of correction might be quite large. One example, albeit not a ZARU specific example, demonstrated that correction for gyro bias of 0.003325 rad/s led to a reduction of the final orientation error from 0.2819 rad to only 0.0117 rad, a reduction of more than 95%. Other related compensation schemes have seen reductions in error of about 27%. The purpose of a ZARU system is to periodically “reset” the accumulated integration error at zero.
- Computational Overhead & Latency: Simplicity is the Key for Real-time Implementation. Averaging and subtraction are done with insignificant overhead. However, the computational load is increased by using advanced detectors using machine learning and adaptive filters, such as Kalman filters. There is always a compromise between the complexity of the algorithm and the processing power and real time latency required. Latency numbers from related correction scenarios refer to numbers such as 120ms (whereas general ECU response time requirements are below 50ms), suggesting how tight the constraints of automotive systems are.
