SmarterCanes

Low-Cost Sensing for Step Counting and Self-Supervised Gait Assessment

View on GitHub Download ZIP

A low-cost instrumented walking cane — an IMU and a downward-facing time-of-flight distance sensor, logging to SD — paired with an analysis pipeline that counts steps and flags abnormal gait from an autoencoder trained only on normal walking.

The project has three parts:

How the pieces fit together

The cane (Firmware) records 6-axis IMU data and cane-tip height to SD as CSV. Recordings are collected into the Dataset and split into train (normal gait only) and test (labelled, includes abnormal gait). The Analyzer’s step counter turns raw acceleration into a step count, cross-checked against the distance sensor; its autoencoder is fitted on train and evaluated frozen on test, so no anomaly label ever enters the pipeline that produces the score meant to catch it.

Getting started