1 of 28

1

Inertial Navigation on Extremely Resource-Constrained Platforms: Methods, Opportunities and Challenges

Swapnil Sayan Saha 1, 2, Yayun Du 3, Sandeep Singh Sandha 4, Luis Antonio Garcia 5,

Mohammad Khalid Jawed 1, Mani Srivastava1

1 University of California, Los Angeles, 2 STMicroelectronics, 3 Northwestern University,

4 Abacus.AI, 5 University of Southern California

Swapnil Sayan Saha, Yayun Du, Sandeep Singh Sandha, Luis Garcia, Mohammad Khalid Jawed, and Mani Srivastava. "Inertial Navigation on Extremely Resource-Constrained Platforms: Methods, Opportunities and Challenges", in 2023 IEEE/ION Position, Location and Navigation Symposium (PLANS), IEEE, 2023.

1

2 of 28

Inertial odometry - viable solution in GPS or network-denied localization applications demanding small footprint, low-access delay, and low-power pathway.

2

Search and Rescue

Animal Tracking

UUV, Underwater Robots

Indoor UAV, Indoor Robots

Indoor Navigation

Underground Robots

Picosatellite localization

Inertial Odometry – Locating Objects with IMU

[1] Saha, Swapnil Sayan, et al. "Tinyodom: Hardware-aware efficient neural inertial navigation." Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 6.2 (2022): 1-32.

3 of 28

The Curse of Drift in Inertial Odometry

3

  • MEMS inertial sensors suffer from the curse of drift due to angular random walk, bias instability and noise.

  • Naive double integration of accelerometer readings: cubic explosion of error.

[1] Saha, Swapnil Sayan, et al. "Tinyodom: Hardware-aware efficient neural inertial navigation." Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 6.2 (2022): 1-32.

4 of 28

Classical Inertial Navigation - Lightweight but Approximate

4

  • This approach is lightweight but not robust across domains or deviations from the assumed system model.

[1] Harle, Robert. "A survey of indoor inertial positioning systems for pedestrians." IEEE Communications Surveys & Tutorials 15.3 (2013): 1281-1293.

Step and Heading System (SHS)

Inertial Navigation System (INS)

  • Application-specific heuristics and human-engineered system models have been used for decades to mitigate odometric error explosion (e.g., INS or SHS).

5 of 28

Neural Inertial Navigation – Robust but Expensive

5

[1] Brossard, Martin, Axel Barrau, and Silvère Bonnabel. "AI-IMU dead-reckoning." IEEE Transactions on Intelligent Vehicles 5.4 (2020): 585-595.

[2] Wagstaff, Brandon, and Jonathan Kelly. "LSTM-based zero-velocity detection for robust inertial navigation." 2018 International Conference on Indoor Positioning and Indoor Navigation (IPIN). IEEE, 2018.

[3] Herath, Sachini, Hang Yan, and Yasutaka Furukawa. "RoNIN: Robust Neural Inertial Navigation in the Wild: Benchmark, Evaluations, & New Methods." 2020 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2020.

[4] Chen, Changhao, et al. "Ionet: Learning to cure the curse of drift in inertial odometry." Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 32. No. 1. 2018.

INS Covariance Modelling with Neural Network

INS EKF

IMU data

Position

Neural Network

Velocity Regressor

IMU data

Velocity

Position Tracker

Position

Model-free Location Estimation using Neural Network

Neural Network Based Velocity Profile Estimation

  • Neural inertial navigation provides superior long-term resolution over classical inertial navigation techniques.
  • This approach is resource hungry, data hungry, and not physics-aware.

6 of 28

Proposed Solutions

6

[1] Saha, Swapnil Sayan, et al. "Tinyodom: Hardware-aware efficient neural inertial navigation." Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 6.2 (2022): 1-32.

[2] Du, Yayun, et al. “Neural-Kalman GNSS/INS Navigation for Precision Agriculture”, in 2023 IEEE International Conference on Robotics and Automation (ICRA), IEEE, 2023.

[3] Saha, Swapnil Sayan, et al. “TinyNS: Platform-Aware Neurosymbolic Auto Tiny Machine Learning.” in ACM Transactions on Embedded Computing Systems (2023). (under review after revision)

  • Platform and physics-aware inertial-sequence learning pipeline for microcontrollers for accurate yet lightweight inertial odometry to track humans, animals, cars, drones etc.

  • A neural-Kalman filter to combine neural-inertial navigation with classical physics-aware inertial navigation models for precise and accurate localization.

  • Data-efficient transfer learning to improve utility of pre-trained neural-inertial navigation models.

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

7 of 28

Inertial Sequence Learning

7

[1] Chen, Changhao, et al. "Ionet: Learning to cure the curse of drift in inertial odometry." Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 32. No. 1. 2018.

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

  • Regress displacement and heading rate in polar coordinates from gyroscope and accelerometer chunks using a neural network.

  • Three issues:
    • Suffers from gravity pollution, heading-rate singularities and varying inertial artefacts.
    • Cannot distinguish rotational artefacts from translational artefacts.
    • Not expandable for 3D trajectories due to dependence on gravity anchor.
    • Resource-hungry, not suitable for real-time deployment on edge devices.

8 of 28

Robust 3D Inertial Sequence Learning

8

Velocity and magneto-centric DNN regresses velocities and uses magnetic North as an additional anchor point.

A physics metadata module supplies latent information about whether valid translational movements have occurred.

A barometric g-h filter immune to inertial and environmental perturbations to regress altitude from pressure sensors.

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

9 of 28

Robust 3D Inertial Sequence Learning

9

Velocity and magneto-centric DNN regresses velocities and uses magnetic North as an additional anchor point.

A physics metadata module supplies latent information about whether valid translational movements have occurred.

A barometric g-h filter immune to inertial and environmental perturbations to regress altitude from pressure sensors.

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

The formulation will eventually allow extremely small models to achieve the accuracy of large models.

10 of 28

Picking a Lightweight Neural Network

10

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

[1] Lea, Colin, et al. "Temporal convolutional networks: A unified approach to action segmentation." European Conference on Computer Vision. Springer, Cham, 2016.

[2] van den Oord, et al. "WaveNet: A Generative Model for Raw Audio." in 9th ISCA Speech Synthesis Workshop (pp. 125-125), 2016.

  • Temporal convolutional network (TCN) - discovers global context in long sequences, maintains input resolution and coverage.

  • No explosion of parameter, memory footprint, layer count or overfitting.

  • Secret sauce: Causal convolution, dilations and gated residuals.

11 of 28

Optimizing the Neural Network for Deployability

11

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

[1] Sandha, S. S., Aggarwal, M., Saha, S. S., & Srivastava, M. (2021, December). Enabling hyperparameter tuning of machine learning classifiers in production. In 2021 IEEE Third International Conference on Cognitive Machine Intelligence (CogMI) (pp. 262-271). IEEE.

  • Platform-aware neural architecture search over a TCN hyperparameter space Ω.
  • Optimization problem with competing objectives:

    • Maximize odometric resolution.

    • Minimize inference latency.

    • Fit the neural network within the target hardware memory constraints.
  • Gradient-free Bayesian optimization [1] to solve the optimization problem.
    • Surrogate: Gaussian process.
    • Acquisition function: Monte Carlo sampling with upper confidence bound (exploration and exploitation)

12 of 28

2D Navigation Performance

12

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

13 of 28

2D Navigation Performance

13

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

Height/Depth Estimation Resolution: ±0.1 m

14 of 28

Sample Trajectories

14

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

15 of 28

Ablation Study – Physics-Aware Formulation

15

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

Physics, velocity, and magnetometer-centric neural inertial navigation outperforms variants not including the three aspects.

16 of 28

Architectural Adaptation and Device Exploitation

16

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

Our Bayesian NAS performs intelligent architectural adaptations to fully exploit target hardware capabilities in order to improve error metric.

17 of 28

Proposed Solutions

17

[1] Saha, Swapnil Sayan, et al. "Tinyodom: Hardware-aware efficient neural inertial navigation." Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 6.2 (2022): 1-32.

[2] Du, Yayun, et al. “Neural-Kalman GNSS/INS Navigation for Precision Agriculture”, in 2023 IEEE International Conference on Robotics and Automation (ICRA), IEEE, 2023.

[3] Saha, Swapnil Sayan, et al. “TinyNS: Platform-Aware Neurosymbolic Auto Tiny Machine Learning.” in ACM Transactions on Embedded Computing Systems (2023). (under review after revision)

  • Platform and physics-aware inertial-sequence learning pipeline for microcontrollers for accurate yet lightweight inertial odometry to track humans, animals, cars, drones etc.

  • A neural-Kalman filter to combine neural-inertial navigation with classical physics-aware inertial navigation models for precise and accurate localization.

  • Data-efficient transfer learning to improve utility of pre-trained neural-inertial navigation models.

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

18 of 28

Combining Neural Networks with Symbolic Programs

18

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

  • Kalman filter: combines a noisy process model with noisy measurement updates to provide optimal state estimates.
  • Two steps: Propagate and Update.

  • Use a neural system model with symbolic measurement updates (or vice versa).
  • Extended Kalman Filter (EKF): Works with non-linear process and observation models.

19 of 28

Primer on Extended Kalman Filter

19

    • Covariance update:
    • Measurement update:
    • Kalman gain:

    • System evolution:

    • Covariance estimate:
  • Discrete-time EKF propagate step:

Predicted State

State evolution model

Control inputs

Process noise

Process noise

covariance

State transition

Process noise

transition

Predicted Covariance

Near-optimal Kalman gain

Measurement noise

covariance

Updated state

Observation model

Measurement noise

Noisy measurements

Measurement transition

Updated Covariance

  • Discrete-time EKF update:

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

20 of 28

Neural Extended Kalman Filter (NEKF)

20

  • Separate neural and non-neural parts in Kalman propagate. Neural network provides a black box mapping between sensor readings and states.

Neural Network

Symbolic Program

Output

Sensors

Linear state evolution

(known)

Neural network

Non-linear state evolution

(known)

  • Use the linearized Jacobian of the neural network w.r.t the past state and inputs in the Lyapunov function.

Sensor Allan parameters

Jacobian term

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

21 of 28

Application: Neural-Kalman GNSS/INS Fusion

21

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

Robot

Ground Truth

Reference landmarks

  • Application: Tracking agricultural robots using neural inertial navigation and GPS.

  • Neural network provides a model-free evolution of the robot dynamics.

22 of 28

Localization Performance for Agricultural Robots

22

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

Method

(1 Hz GPS)

Median Absolute Trajectory Error (m)

Median Relative Trajectory Error (m)

UKF-M GPS/INS

4.35

0.21

EKF GPS/INS

2.24

0.35

GPS only

1.89

0.40

Neural-Kalman (ours)

1.36

0.35

  • Combines smoothness and short-term accuracy of neural networks with long-term precision of noisy GPS/GNSS updates under 1 MB of memory.

  • Constrains the error to 2.75 m even with 20 minutes of GPS outage.

23 of 28

Proposed Solutions

23

[1] Saha, Swapnil Sayan, et al. "Tinyodom: Hardware-aware efficient neural inertial navigation." Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 6.2 (2022): 1-32.

[2] Du, Yayun, et al. “Neural-Kalman GNSS/INS Navigation for Precision Agriculture”, in 2023 IEEE International Conference on Robotics and Automation (ICRA), IEEE, 2023.

[3] Saha, Swapnil Sayan, et al. “TinyNS: Platform-Aware Neurosymbolic Auto Tiny Machine Learning.” in ACM Transactions on Embedded Computing Systems (2023). (under review after revision)

  • Platform and physics-aware inertial-sequence learning pipeline for microcontrollers for accurate yet lightweight inertial odometry to track humans, animals, cars, drones etc.

  • A neural-Kalman filter to combine neural-inertial navigation with classical physics-aware inertial navigation models for precise and accurate localization.

  • Data-efficient transfer learning to improve utility of pre-trained neural-inertial navigation models.

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

24 of 28

Transfer Learning

24

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

  • Transfer learning: Train a few layers of a pre-trained neural network on a small labeled dataset in the target domain, allowing the network to adapt to the deployment conditions without losing previous knowledge.

  • Example: Neural inertial navigation models struggle to generalize across different datasets or applications (1.6x - 13.6x performance loss).

25 of 28

Data-Efficient Transfer Learning

25

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

  • Fine-tuning is 20x data-efficient over training from scratch.

  • 1 minute of fine-tuning outperforms training from scratch by 3x - 14x.

26 of 28

Collecting Labeled Inertial Odometry Data

26

Vegetable picking

Insecticide spraying

Raw Video Frame

RGB to Gray

Extended-Maxima Transform

Morphological Opening

Video Pre-processing

Object Tracking (Kanade-Lucas-Tomasi)

Frame 1

Frame i

Frames

Pixel to Position Transformation

Bounding box to centroid extraction

Wind drift correction

Missing data interpolation

Smoothing

Scaling

Bounding

Boxes

x and y robot position in global coordinates

Robot

Landmark

Robot

Landmark, i

Landmark, j

Landmark, k

Landmark, l

h

v

Platform and physics-aware navigation

Neural-Kalman filtering

Data-efficient transfer learning

  • Collecting high resolution labeled data in the wild is challenging.

  • Solution: Automated labeled data generator using quadrotor video feeds.

27 of 28

Open Research Directions

27

On-device domain adaptation

Context-Aware Embeddings

Uncertainty-Aware Inertial Navigation

28 of 28

THANK YOU

28