# US 2019/0293451 A1 · Methods and apparatus for determining the zero rate output of a sensor using a learning algorithm

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0293451 A1
- Document ID: US20190293451A1
- Status: Published application
- Kind: A1
- Application number: 16/466,727
- Filed: 2017-12-13
- Published: 2019-09-26
- Earliest claimed: 2016-12-19
- Assignees: IDHL Holdings, Inc.
- Applicants: IDHL Holdings, Inc.
- Inventors: Bryan A. Cook; Yun Li
- Web page: https://patentgrep.com/patent/US20190293451A1

## CPC

- G01C 25/00: Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass (testing, calibrating or compensating compasses G01C17/38)
- G01C 19/00: Gyroscopes; Turn-sensitive devices using vibrating masses; Turn-sensitive devices without moving masses; Measuring angular rate using gyroscopic effects
- G01C 25/005: {initial alignment, calibration or starting-up of inertial devices}
- G06F 3/0346: with detection of the device orientation or free movement in a three-dimensional [3D] space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
- G01C: MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY (measuring liquid level G01F; radio navigation, determining distance or velocity by use of propagation effects, e.g. Doppler effects, propagation time, of radio waves, analogous arrangements using other waves G01S)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, apparatus, and systems for calibrating the Zero Rate Offset (ZRO) of a gyroscope are disclosed.

## Claims

### Claim 1

A method of compensating for zero rate offset (ZRO) of a gyroscope as a function of temperature, the method comprising:
iteratively receiving a measurement generated by the gyroscope and a temperature of the gyroscope;
iteratively receiving a measurement generated by at least one other motion sensor;
determining, based on the measurements generated by the gyroscope and the measurements generated by the at least one other sensor, when the gyroscope is stationary;
determining, based on the received temperature, when the gyroscope is at a particular temperature;
during periods that the gyroscope is determined to be stationary and at a particular temperature, accumulating a mean and a variance of the mean of the gyroscope measurements to generate a sample data set;
generating a weighted Recursive Least Squares (RLS) fit of ZRO as a function of temperature based on the mean and variance of the mean of the gyroscope measurements at a plurality of temperatures;
computing a ZRO estimate using the weighted RLS fit and a current temperature of the gyroscope; and
when the gyroscope is in motion, adjusting the measurement generated by the gyroscope as a function of the ZRO estimate.

### Claim 2

(canceled)

### Claim 3 (depends on 1)

The method of claim 1 wherein generating the weighted RLS fit comprises weighting the sample data sets in the RLS fit as a function of any one or more of: age of the sample data set, duration of the stationary period corresponding to the sample data set, and/or steadiness of the gyroscope during the stationary period corresponding to the sample data set.

### Claim 4

(canceled)

### Claim 5 (depends on 3)

The method of claim 3 wherein the weighting comprises applying a forgetting factor to the corresponding sample data set as a function of age of the sample data set.

### Claim 6 (depends on 5)

The method of claim 5 wherein the forgetting factor is a predetermined number of gyroscope measurements divided by the number of gyroscope measurements accumulated in the sample data set.

### Claim 7 (depends on 1)

The method of claim 1 wherein the at least one other sensor is an accelerometer.

### Claim 8 (depends on 7)

The method of claim 7 wherein the at least one other sensor further comprises at least one of a magnetometer and a camera.

### Claim at position 9

9-13. (canceled)

### Claim 14 (depends on 1)

The method of claim 1 further comprising:
determining a second ZRO estimate based on a currently accumulated sample data set;
determining a third ZRO estimate based on a most recently completed sample data set;
calculating an estimated accuracy of each of the ZRO estimate, the second ZRO estimate, and the third ZRO estimate;
selecting a one of the ZRO estimate, the second ZRO estimate, and the third ZRO estimate having the greatest estimated accuracy; and
applying the ZRO estimate to the measurement generated by the gyroscope.

### Claim at position 11

15-21. (canceled)

### Claim 22

An apparatus for compensating for zero rate offset (ZRO) of a gyroscope as a function of temperature, the apparatus comprising:
a gyroscope;
at least one other sensor; and
a processor configured to:
iteratively receive a measurement generated by the gyroscope and a temperature of the gyroscope;
iteratively receive a measurement generated by at least one other motion sensor;
determine, based on the measurements generated by the gyroscope and the measurements generated by the at least one other sensor, when the gyroscope is stationary;
determine, based on the received temperature, when the gyroscope is at a particular temperature;
during periods that the gyroscope is determined to be stationary and at a particular temperature, accumulate a mean and a variance of the mean of the gyroscope measurements to generate a sample data set;
generate a weighted Recursive Least Squares (RLS) fit of ZRO as a function of temperature based on the mean and variance of the mean of the gyroscope measurements at a plurality of temperatures; and
compute a ZRO estimate using the weighted RLS fit and a current temperature of the gyroscope; and
when the gyroscope is in motion, adjusting the measurement generated by the gyroscope as a function of the ZRO estimate.

### Claim 23 (depends on 22)

The apparatus of claim 22 wherein the processor is configured to generate the weighted RLS fit by weighting the sample data sets in the RLS fit as a function of any one or more of: age of the sample data set, duration of the stationary period corresponding to the sample data set, and/or steadiness of the gyroscope during the stationary period corresponding to the sample data set.

### Claim 24 (depends on 23)

The apparatus of claim 23 wherein the processor is configured to determine the steadiness of the gyroscope as a function of the variance of the mean of the corresponding sample data set.

### Claim 25 (depends on 23)

The apparatus of claim 23 wherein the processor is configured to weight the samples by applying a forgetting factor to the corresponding sample data set as a function of age of the sample data set.

### Claim 26 (depends on 25)

The apparatus of claim 25 wherein the forgetting factor is a predetermined number of gyroscope measurements divided by the number of gyroscope measurements accumulated in the sample data set.

### Claim 27 (depends on 22)

The apparatus of claim 22 wherein the at least one other sensor is an accelerometer.

### Claim 28 (depends on 27)

The apparatus of claim 27 wherein the at least one other sensor further comprises at least one of a magnetometer and a camera.

### Claim 29 (depends on 22)

The apparatus of claim 22 wherein the processor is configured to calculate the mean and the variance of the mean as:
mean=mean*u+newMean*(1−u); and
variance of the mean=u2*var+(1−Γ)2*newVar
where
mean is the accumulated state of the mean corresponding to a given temperature in the RLS fit;
var is the accumulated state of the variance of the mean corresponding to a given temperature in the RLS fit;
newMean is the mean of a new data set for the RLS fit;
newVar is the variance of the mean of the new data set for the RLS; and
u=newVar/newVar+var.

### Claim 30 (depends on 29)

The apparatus of claim 29 wherein the processor is configured to weight the sample data sets by 1/var.

### Claim 31 (depends on 29)

The apparatus of claim 29 wherein the processor is configured to weight the sample data sets by 1/var up to a predetermined maximum weight.

### Claim 32 (depends on 22)

The apparatus of claim 22 wherein the processor is configured to generate the RLS fit as:
y=P(0)*x+P(1)
where
P is a 2 by 1 vector comprised of P(0) and P(1),
and
P=A\b
where
A is a 2 by 2 matrix accumulated as:
A(0,0)=A(0,0)+x2*w
A(0,1)=A(0,1)+x*w
A(1,0)=A(1,0)+x*w
A(1,1)=A(1,1)+w
B is a 2 by 1 vector accumulated as:
b(0)=b(0)+x*y*w
b(1)=b(1)+y*w
where
y is the ZRO estimate of the corresponding sample data set;
x is the temperature of the corresponding sample data set; and
w is the weight assigned to the corresponding sample data set.

### Claim 33 (depends on 22)

The apparatus of claim 22 wherein the processor is further configured to:
determine a second ZRO estimate based on a currently accumulated sample data set;
determine a third ZRO estimate based on a most recently completed sample data set;
calculate an estimated accuracy of each of the ZRO estimate, the second ZRO estimate, and the third ZRO estimate;
select a one of the ZRO estimate, the second ZRO estimate, and the third ZRO estimate having the greatest estimated accuracy; and
apply the ZRO estimate to the measurement generated by the gyroscope.

### Claim 34 (depends on 33)

The apparatus of claim 33 wherein the processor is configured to calculate the estimated accuracy of each of the ZRO estimate, the second ZRO estimate, and the third ZRO estimate by calculating a Mean Squared Error (MSE) thereof, wherein the processor is configured to calculate the MSEs of the second and third ZRO estimates as:
MSEadjusted=var+(ΔT*slope)2
where
ΔT is a difference in temperature between a current gyroscope temperature and a temperature of the corresponding sample data set;
var is the variance of the mean of the corresponding sample data set; and
slope is a slope of the RLS fit at the temperature corresponding to the sample data set.

### Claim 35 (depends on 22)

The apparatus of claim 22 wherein the RLS fit is a quadratic fit.
