It's easier with historical data since you know the full trip, but even real-time should be doable.
I did one project in school (albeit a simple SVM based model) to classify walking vs running (and so on) and ambiguity was still there. Stationary vs. Walking was easy to draw a hyper plane in between, not Running.
I still find it a difficult problem to get into, after 5 years. Perhaps ANN models might work better? Although my heart is still at Hidden MM states...
(Its not pretty though...)
Edit: https://github.com/prashnts/MPU-9250
I have proper project reports I’d submitted somewhere for sure, as well. I’ll add it there in repo. I never bothered earlier.
Edit 2: this was the paper i finally submitted at school.
https://github.com/prashnts/MPU-9250/blob/master/Docs/submit...