This is a part of my project in class, machine learning, in Peking University.
The code for data preparing is written in Matlab, and the code for classification by SVM is in R.
Data can be found in UCI Machine Learning Repository.
The reference is:
Davide Anguita, Alessandro Ghio, Luca Oneto, Xavier Parra, Jorge L. Reyes-Ortiz. Energy Efficient Smartphone-Based Activity Recognition using Fixed-Point Arithmetic. Journal of Universal Computer Science. Special Issue in Ambient Assisted Living: Home Care. Volume 19, Issue 9. May 2013