File Exchange

image thumbnail

Activity Detection in MATLAB

Activity Detection in MATLAB


Updated 01 Sep 2016

View License

In this project, we acquired accelerometer data from a mobile device while performing various activities. This data was used to train a machine learning classifier which could later be used to predict what activity was being performed.

Cite As

MathWorks Mobile Sensor Connectivity Team (2020). Activity Detection in MATLAB (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (15)

If I were to make a Python implementation of the feature extractor in this repository added with features of my own, how would I need to acknowledge MathWorks Mobile Sensor Connectivity Team? My usage would be non-commercial. I would like to publish my implementation online.

Can we apply t value exactly to our data

raw data, please.

Need help ... I am beebee while trying to run the activity detection it provides error as undefined variable for load"training.mat" .any suggestion what step load the training.mat file and run programme? Give me ans


walid walid

Could you please share the raw training data files walk1.mat, run1.mat, idel1.mat, upstairs1.mat , downstairs1.mat ?

hi, i dont know if anyone else is having this error but when i run activityDetection.m, i get this in the command window

"Undefined function or method 'fitcknn' for input arguments of type 'double'.

Error in ==> activityDetection at 85
mdl = fitcknn(X,Y); "

i tried changing it into cell argument, but it doesnt work. does anybody knows how to fix this problem?

I'm getting an error :

Undefined function or variable 'activityDetection'.

while running activityDetection script

how can I fix it?

How to fix:
No appropriate method, property, or field 'start' for class 'mobiledev'

need i am a newbee...while try to run the activityDetection it provides error as
Undefined function or variable 'activityDetection'.

any suggeestion please?


I am getting some error when run recordTrainingData:
No appropriate method, property, or
field 'start' for class 'mobiledev'.

Error in recordTrainingData (line32)

Deepak G

This is a very useful resource. Is there any chance we can also get the raw data files (walk1.mat, run1.mat...) so that we can run our own feature extractions on it.



Updated license

Bug fix

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
More Files in the  Distance Learning Community