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:
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.
cd Analyzer && uv sync, then uv run main.py ...).