Accelerometer step counter in R

To do some preliminary data analysis for the benefit of our Totem Health Sensor, I developed the following simple script. It takes a CSV containing a sensor’s raw accelerometer data (consisting of a time-stamp, an X, an Y and a Z value), cleans and averages it, and delineates peaks representing steps, cycles or repeats.

Some example plots with their respective peak counts:

 

Leave a Reply