Walking or Jumping

A class project with two teammates: tell walking from jumping using a phone’s accelerometer. I wrote most of the code.

Project source

How it works

We recorded ourselves with the phyphox app. The code cuts each recording into five-second chunks, smooths them, and works out a few numbers per chunk (max, min, average, spread). A logistic regression model uses those to pick walking or jumping.

Two 15-second traces of acceleration magnitude. Walking shows smaller peaks and jumping shows larger alternating peaks. The classifier got each of these six five-second windows right.
My recordings, labelled by a model that never saw my data. Open the full-size chart.

The desktop app

A small PyQt app: open a phyphox CSV, it labels each chunk, and you can save or plot the results.

Our first test was too easy

In the course we shuffled all the chunks before splitting off a test set, so the same people showed up in training and testing. After the course I retested it by training on two people and testing on the third.

Results across all 207 test chunks
ActuallyPredicted walkingPredicted jumping
Walking7928
Jumping1288

167 of 207 right.