We can then show new data to the neural network and it will tell us what the user is doing at any particular point in time.
#HUMAN ACTIVITY DETECTION MATLAB CODE HOW TO#
Based on the available data it will learn how to differentiate between each of the six activities. The solution to this problem is a deep neural network. Once the neural network has been trained on the existing data, it should be able to correctly predict the type of activity a person is conducting when given previously unseen data. With this available data, we would like to train a neural network in order to understand if a person carrying a smartphone is performing any of the six activities. For each exercise the acceleration for the x, y, and z axis was measured and captured with a timestamp and person ID. The data set that we are using is a collection of accelerometer data taken from a smartphone that various people carried with them while conducting six different exercises (Downstairs, Jogging, Sitting, Standing, Upstairs, Walking).
#HUMAN ACTIVITY DETECTION MATLAB CODE CODE#
Prerequisites in order to conduct all steps explained in this article (including the version number that the code was tested with):