38
IMU Noise and Characterization June 20, 2017 IMU Noise and Characterization June 20, 2017 1 / 38

IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

IMU Noise and Characterization

June 20, 2017

IMU Noise and Characterization June 20, 2017 1 / 38

Page 2: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Outline

1. Motivation

2. Power Spectral Density

3. Allan Variance

4. IMU Noise Model

5. IMU Pre-Integration

IMU Noise and Characterization June 20, 2017 2 / 38

Page 3: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

1. Motivation

IMU Noise and Characterization June 20, 2017 3 / 38

Page 4: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Motivation for Modelling IMU Noise

Figure: From Gyro Measurements to Orientation

IMU Noise and Characterization June 20, 2017 4 / 38

Page 5: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Motivation for Modelling IMU Noise: Example

Figure: Error from integrating Gyro Measurements without dealing with noise

IMU Noise and Characterization June 20, 2017 5 / 38

Page 6: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Motivation for Modelling IMU Noise: IMU NoiseComponents

Figure: IMU Noise ComponentsIMU Noise and Characterization June 20, 2017 6 / 38

Page 7: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Motivation for Modelling IMU Noise: Types of IMU Noise

Quantization Noise

Angle / Velocity Random Walk Noise

Correlated Noise

Bias Instability Noise

Rate / Acceleration Random Walk Noise

IMU Noise and Characterization June 20, 2017 7 / 38

Page 8: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

2. Power Spectral Density

IMU Noise and Characterization June 20, 2017 8 / 38

Page 9: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Fourier Transform

Figure: Fourier Transform

IMU Noise and Characterization June 20, 2017 9 / 38

Page 10: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Power Spectral Density (PSD): Naming

Power: refers to the fact that PSD is the mean-square value of thesignal being analyzed

Spectral: refers to the fact PSD is a function of frequency, itrepresents distribution of a signal over a spectrum offrequencies

Density: refers to the fact that the magnitude of PSD isnormalized to a single hertz bandwidth.

IMU Noise and Characterization June 20, 2017 10 / 38

Page 11: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Power Spectral Density (PSD): Form

If the signal being analyzed is a Wide-Sense Stationarity (WSS) discreterandom process, according to the Wiener-Khinchin theorem the PSDis defined as:

P(f ) =∞∑

m=−∞Rxx(m) exp (−j2πfm) (1)

Where Rxx(f ) is the Autocorrelation function of the random processX (t) and τ is the time lag:

Rxx(f ) = E [X (t)X (t − τ)] (2)

IMU Noise and Characterization June 20, 2017 11 / 38

Page 12: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Wide Sense Stationarity (WSS)

A Random Process is Stationary if its statistical properties do notchange in time

WSS is also known as Weak-Sense Stationarity, CovarianceStationarity or Second-Order Stationarity.

The main thing to know is a random process is WSS if its mean andits correlation function do not change by shifts in time.

IMU Noise and Characterization June 20, 2017 12 / 38

Page 13: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Autocorrelation Function

Autocorrelation is the degree of similarity between a given time seriesand a lagged version of itself over successive time intervals

Rxx(f ) = E [X (t)X (t − τ)] (3)

Figure: Autocorrelation in Action

IMU Noise and Characterization June 20, 2017 13 / 38

Page 14: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Relationship between PSD and FT

In most practical situations, the PSD of a random process is notavailable.

Can estimate a given signal’s power spectral density by takingmagnitude squared of its Fourier transform as the estimate of thePSD

One form is:

P(fk) =1

N

∣∣∣∣∣N−1∑n=0

xn exp

(− j2πkn

N

)∣∣∣∣∣2

(4)

IMU Noise and Characterization June 20, 2017 14 / 38

Page 15: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Power Spectral Density

If we compare DFT

|X (fk)| =

∣∣∣∣∣N−1∑n=0

x [n] exp (−j2πnk/N)

∣∣∣∣∣ (5)

And PSD (estimate)

P(fk) =1

N

∣∣∣∣∣N−1∑n=0

x [n] exp (−j2πfkn)

∣∣∣∣∣2

(6)

You have:

P(fk) =1

N|X (fk)|2 (7)

IMU Noise and Characterization June 20, 2017 15 / 38

Page 16: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Power Spectral Density: Color of Noise

IMU Noise and Characterization June 20, 2017 16 / 38

Page 17: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Power Spectral Density

In summary:

DFT 6= PSD

DFT: shows the spectral content of the signal (amplitude and phaseof harmonics)

PSD: describes how the power of the signal is distributed overfrequency by performing the mean-square on the signal value.

IMU Noise and Characterization June 20, 2017 17 / 38

Page 18: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

3. Allan Variance

IMU Noise and Characterization June 20, 2017 18 / 38

Page 19: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Allan Variance

Also called a Two-Sample Deviation, or square-root of the AllanVariance, where:

σ2y (τ) =1

2〈(yn+1 − yn)2〉 (8)

=1

2τ2〈(yn+2 − 2yn+1 + yn)2〉 (9)

Where τ is the observation period, yn is the n-th fractional frequencyaverage over the observation time τ . The samples are taken with nodead-time between them, which is achieved by letting time period T = τ .

IMU Noise and Characterization June 20, 2017 19 / 38

Page 20: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Characterize IMU Noise with Allan Variance

1. Acquire time series data on gyroscope or accelerometer

2. Set average time to be τ = mτ0, where m is the averaging factor.The value of m where m < (N − 1)/2.

3. Divide time history of signal into clusters of finite time duration ofτ = mτ0

IMU Noise and Characterization June 20, 2017 20 / 38

Page 21: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Characterize IMU Noise with Allan Variance

4. Once clusters are form, compute the Allan Variance

Calculate θ corresponding to each gyro output sample, this can beaccomplished as in.

θ(t) =

∫ t

Ω(t ′)dt ′ (10)

Once N values of θ have been computed, calculate the Allan Varianceσ2 represents as a function of τ where 〈·〉 is the ensemble average.

σ2 =1

2τ 2

⟨(θk+2m − 2θk+m + θk)2

⟩(11)

IMU Noise and Characterization June 20, 2017 21 / 38

Page 22: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Characterize IMU Noise with Allan Variance

5. Calculate Allan Deviation (AD) value for a particular τ . This canbe obtained simply by square rooting the Allan Variance (AVAR).This result will now be used to characterize the noise in a gyroscope.

AD(τ) =√

AVAR(τ) (12)

IMU Noise and Characterization June 20, 2017 22 / 38

Page 23: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Characterize IMU Noise with Allan Variance

Figure: Characteristics of an Allan Deviation Plot (For Gyroscope)

IMU Noise and Characterization June 20, 2017 23 / 38

Page 24: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Characterize IMU Noise with Allan Variance

Figure: Gyrometer Noise Characterization

IMU Noise and Characterization June 20, 2017 24 / 38

Page 25: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Characterize IMU Noise with Allan Variance

Figure: Accelerometer Noise Characterization

IMU Noise and Characterization June 20, 2017 25 / 38

Page 26: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

4. IMU Noise Model

IMU Noise and Characterization June 20, 2017 26 / 38

Page 27: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

IMU Noise Model

The standard noise model:

z = x + v (13)

x =1

τbx + ω (14)

Where:

z is the modelled noise process

x is the slowly varying process with correlation time τb, “driven” byanother independent white noise w .

v is the white noise component

IMU Noise and Characterization June 20, 2017 27 / 38

Page 28: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

IMU Noise Model: Discrete version

Figure: IMU Noise Model: Discrete version

IMU Noise and Characterization June 20, 2017 28 / 38

Page 29: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

5. IMU Pre-Integration

IMU Noise and Characterization June 20, 2017 29 / 38

Page 30: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

IMU Pre-Integration

Realtime is difficult as map and trajectory grows overtime, there aregenerally 3 approaches towards realtime operation:

PTAM

Marginalization (fixed-lag smoothing)

Filtering

But PTAM has a keyframe limit, filtering and marginalization commit to alinearization point when marginalizing which introduces drift and potentialinconsistencies.

IMU Noise and Characterization June 20, 2017 30 / 38

Page 31: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

IMU Pre-Integration: Bundle Adjustment (structured)

Figure: Bundle Adjustment

IMU Noise and Characterization June 20, 2017 31 / 38

Page 32: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

IMU Pre-Integration: Bundle Adjustment (structured)

IMU Noise and Characterization June 20, 2017 32 / 38

Page 33: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

IMU Pre-Integration: Approach

IMU Noise and Characterization June 20, 2017 33 / 38

Page 34: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

IMU Pre-Integration: Key things to note

Avoid repeated integration by defining relative motion increments

Assume bias is known and constant

Make Bundle Adjustment problem structureless by “Lifting” thecost function

IMU Noise and Characterization June 20, 2017 34 / 38

Page 35: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

IMU Pre-Integration: Results

Figure: IMU Pre-integration Results

IMU Noise and Characterization June 20, 2017 35 / 38

Page 36: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

IMU Pre-Integration: Results

Figure: IMU Pre-integration Results

IMU Noise and Characterization June 20, 2017 36 / 38

Page 37: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Questions?

Questions?

IMU Noise and Characterization June 20, 2017 37 / 38

Page 38: IMU Noise and Characterization - University of …wavelab.uwaterloo.ca/.../IMU_Noise_and_Characterization.pdfThe main thing to know is a random process is WSS if its mean and its correlation

Homework

1. What are the definitions of these terms?

Quantization NoiseAngle / Velocity Random Walk NoiseCorrelated NoiseBias Instability NoiseRate / Acceleration Random Walk Noise

2. Simulate an IMU using the standard noise model

3. Plot Fourier Transform and Power Spectral Density of simulated IMU

4. Extract the IMU Noise characteristics using Allan Variance

IMU Noise and Characterization June 20, 2017 38 / 38