sensor_based_nav 1.0.0
sensor_based_nav: ^1.0.0 copied to clipboard
A Flutter package for sensor-based navigation using ONNX models.
π§ sensor_based_navigation #
Offline Position Tracking Using Sensor Fusion + AI
A Flutter package for estimating device position and direction without GPS, using sensor data and LSTM-based AI models.
π Features #
- π GPS-free indoor navigation
- π§ AI-based predictions using LSTM neural networks
- π Drift correction using footstep detection logic
- π§ Sensor fusion (accelerometer, gyroscope, magnetometer, barometer)
- β‘ Optimized for CPU inference (XNNPACK)
π± How It Works #
Inspired by research from the University of Utah and others:
- Detects steps and resets drift every ~100ms of foot-ground contact
- Uses direction (magnetometer), movement (accelerometer), and elevation (barometer)
- LSTM neural network processes time-series sensor input to estimate movement
π§ Why LSTM? #
LSTM (Long Short-Term Memory) networks are ideal for sequential sensor data because they:
- Handle long-term dependencies
- Filter noisy or irrelevant input
- Model complex motion patterns over time
π¦ Installation #
Add this to your pubspec.yaml
:
dependencies:
sensor_based_navigation:
git:
url: https://github.com/yourusername/sensor_based_navigation.git
## π¦ Performance Notes
- ONNX model not fully supported on NNAPI or CoreML
- Use CPU backend with XNNPACK for best performance
## License
This project is licensed under the MIT License.