Skip to content
All Projects

Indoor Localization Sensor Study

2011Gen-9, Inc
MatlabMEMS SensorsMachine LearningKNN

During my internship at Gen-9, we explored whether inexpensive MEMS sensors — accelerometers, gyroscopes, and magnetometers already found in everyday devices — could provide accurate indoor position tracking without relying on GPS, WiFi, or any external infrastructure.

The study involved mounting sensors on various platforms including a robot vacuum to evaluate localization feasibility, and developing machine learning classifiers (KNN, Naïve Bayes) to identify motion types from sensor feature vectors. The dead reckoning approach, combined with magnetic landmark detection and environmental constraints, yielded a patent-granted technique for indoor tracking.

Interactive Demo

Step through each stage of the indoor localization pipeline. Watch how raw sensor data is classified and integrated into position estimates, and see how drift correction improves accuracy.

Loading demo...

How It Works

1

Sensor Data Acquisition

Three MEMS sensors — accelerometer, gyroscope, and magnetometer — capture acceleration, rotation rate, and magnetic heading on all three axes at high frequency.

2

Signal Processing & Feature Extraction

Raw sensor readings are normalized and fused. Statistical features — mean and standard deviation of normalized acceleration and gyroscope magnitude — are extracted over sliding windows to form compact feature vectors.

3

Activity & Velocity Classification

A K-Nearest Neighbors classifier assigns each feature vector to a motion category: stationary, walking, or turning. A regression model estimates velocity magnitude from the same features using Gaussian-weighted cluster distances.

4

Dead Reckoning Integration

Heading is derived from the magnetometer with gyroscope-assisted drift filtering. Combined with classified velocity, position is integrated step by step — dead reckoning — building a continuous path estimate.

5

Environmental Drift Correction

Magnetic field extrema detection identifies landmark positions for recalibration. Environmental constraints — walls are straight, rooms have right angles — are enforced via a line-of-best-fit algorithm to correct accumulated drift.

Technical Highlights

Sensor Fusion Without External Signals

Achieved indoor position tracking using only onboard MEMS sensors — accelerometer, gyroscope, and magnetometer — with no reliance on GPS, WiFi, or Bluetooth beacons.

ML-Based Motion Classification

Trained KNN and Naïve Bayes classifiers on normalized sensor feature vectors to distinguish between stationary, walking, running, and turning states with high accuracy.