Human Activity Recognition Using Smartphones Dataset
- Mean or standard deviation of Triaxial acceleration from the accelerometer (total acceleration) and the estimated body acceleration.
- Mean or standard deviation of Triaxial Angular velocity from the gyroscope.
- Its activity label.
- An identifier of the subject who carried out the experiment.
The experiments have been carried out with a group of 30 volunteers within an age bracket of 19-48 years. Each person performed six activities (WALKING, WALKING UPSTAIRS, WALKING DOWNSTAIRS, SITTING, STANDING, LAYING) wearing a smartphone (Samsung Galaxy S II) on the waist. Using its embedded accelerometer and gyroscope, we captured 3-axial linear acceleration and 3-axial angular velocity at a constant rate of 50Hz. The experiments have been video-recorded to label the data manually. The obtained dataset has been randomly partitioned into two sets, where 70% of the volunteers was selected for generating the training data and 30% the test data.
The sensor signals (accelerometer and gyroscope) were pre-processed by applying noise filters and then sampled in fixed-width sliding windows of 2.56 sec and 50% overlap (128 readings/window). The sensor acceleration signal, which has gravitational and body motion components, was separated using a Butterworth low-pass filter into body acceleration and gravity. The gravitational force is assumed to have only low frequency components, therefore a filter with 0.3 Hz cutoff frequency was used. From each window, a vector of features was obtained by calculating variables from the time and frequency domain.
The features selected for this database come from the accelerometer and gyroscope 3-axial raw signals tAcc-XYZ and tGyro-XYZ. These time domain signals (prefix 't' to denote time) were captured at a constant rate of 50 Hz. Then they were filtered using a median filter and a 3rd order low pass Butterworth filter with a corner frequency of 20 Hz to remove noise. Similarly, the acceleration signal was then separated into body and gravity acceleration signals tBodyAcc-XYZ and tGravityAcc-XYZ) using another low pass Butterworth filter with a corner frequency of 0.3 Hz.
Subsequently, the body linear acceleration and angular velocity were derived in time to obtain Jerk signals (tBodyAccJerk-XYZ and tBodyGyroJerk-XYZ). Also the magnitude of these three-dimensional signals were calculated using the Euclidean norm (tBodyAccMag, tGravityAccMag, tBodyAccJerkMag, tBodyGyroMag, tBodyGyroJerkMag).
Finally a Fast Fourier Transform (FFT) was applied to some of these signals producing fBodyAcc-XYZ, fBodyAccJerk-XYZ, fBodyGyro-XYZ, fBodyAccJerkMag, fBodyGyroMag, fBodyGyroJerkMag. (Note the 'f' to indicate frequency domain signals).
These signals were used to estimate variables of the feature vector for each pattern:
'-XYZ' is used to denote 3-axial signals in the X, Y and Z directions.
This data consists of the means and standard deviations of the experimental data. Feature Descriptions
The following lists the features included in the file produced, a description of each and measurement units
- activity --- One of six activities performed
- subjectID --- ID of the subject who performed the activity
- time-bodyacceleration-mean-X --- Mean body acceleration time - X direction --- standard gravity units, 'g'
- time-bodyacceleration-mean-Y --- Mean body acceleration time - Y direction --- standard gravity units, 'g'
- time-bodyacceleration-mean-Z --- Mean body acceleration time - Z direction --- standard gravity units, 'g'
- time-bodyacceleration-stdev-X --- Stdev of time of body acceleration - X direction --- standard gravity units, 'g'
- time-bodyacceleration-stdev-Y --- Stdev of time of body acceleration - Y direction --- standard gravity units, 'g'
- time-bodyacceleration-stdev-Z --- Stdev of time of body acceleration - Z direction --- standard gravity units, 'g'
- time-gravityacceleration-mean-X --- Mean gravity acceleration time - X direction --- standard gravity units, 'g'
- time-gravityacceleration-mean-Y --- Mean gravity acceleration time - Y direction --- standard gravity units, 'g'
- time-gravityacceleration-mean-Z --- Mean gravity acceleration time - Z direction --- standard gravity units, 'g'
- time-gravityacceleration-stdev-X --- Stdev of time of gravity accelerationleration - X direction --- standard gravity units, 'g'
- time-gravityacceleration-stdev-Y --- Stdev of time of gravity accelerationleration - Y direction --- standard gravity units, 'g'
- time-gravityacceleration-stdev-Z --- Stdev of time of gravity accelerationleration - Z direction --- standard gravity units, 'g'
- time-bodyaccelerationJerk-mean-X --- Mean body acceleration jerk time - X direction --- standard gravity units, 'g'
- time-bodyaccelerationJerk-mean-Y --- Mean body acceleration jerk time - Y direction --- standard gravity units, 'g'
- time-bodyaccelerationJerk-mean-Z --- Mean body acceleration jerk time - Z direction --- standard gravity units, 'g'
- time-bodyaccelerationJerk-stdev-X --- Stdev of time of body acceleration jerk - X direction --- standard gravity units, 'g'
- time-bodyaccelerationJerk-stdev-Y --- Stdev of time of body acceleration jerk - Y direction --- standard gravity units, 'g'
- time-bodyaccelerationJerk-stdev-Z --- Stdev of time of body acceleration jerk - Z direction --- standard gravity units, 'g'
- time-bodyangularvelocity-mean-X --- Mean body gyroscope measurement - X direction --- radians/second
- time-bodyangularvelocity-mean-Y --- Mean body gyroscope measurement - Y direction --- radians/second
- time-bodyangularvelocity-mean-Z --- Mean body gyroscope measurement - Z direction --- radians/second
- time-bodyangularvelocity-stdev-X --- Stdev of body gyroscope measurement - X direction --- radians/second
- time-bodyangularvelocity-stdev-Y --- Stdev of body gyroscope measurement - Y direction --- radians/second
- time-bodyangularvelocity-stdev-Z --- Stdev of body gyroscope measurement - Z direction --- radians/second
- time-bodyangularvelocity-mean-X --- Mean jerk signal of body - X direction --- standard gravity units, 'g'
- time-bodyangularvelocity-mean-Y --- Mean jerk signal of body - Y direction --- standard gravity units, 'g'
- time-bodyangularvelocity-mean-Z --- Mean jerk signal of body - Z direction --- standard gravity units, 'g'
- time-bodyangularvelocity-stdev-X --- Stdev of jerk signal of body - X direction --- standard gravity units, 'g'
- time-bodyangularvelocity-stdev-Y --- Stdev of jerk signal of body - Y direction --- standard gravity units, 'g'
- time-bodyangularvelocity-stdev-Z --- Stdev of jerk signal of body - Z direction --- standard gravity units, 'g'
- time-bodyaccelerationmagnitude-mean --- Mean magnitude of body acceleration --- Euclidean norm
- time-bodyaccelerationmagnitude-stdev --- Stdev of body acceleration magnitude --- Euclidean norm
- time-gravityaccelerationmagnitude-mean --- Mean gravity acceleration magnitude --- Euclidean norm
- time-gravityaccelerationmagnitude-stdev --- Stdev of gravity acceleration magnitude --- Euclidean norm
- time-bodyaccelerationJerkmagnitude-mean --- Mean magnitude of body acceleration jerk --- standard gravity units, 'g'
- time-bodyaccelerationJerkmagnitude-stdev --- Stdev of magnitude of body acceleration jerk --- standard gravity units, 'g'
- time-bodyangularvelocitymagnitude-mean --- Mean magnitude of body gyroscope measurement --- radians/second
- time-bodyangularvelocitymagnitude-stdev --- Stdev of magnitude of body gyroscope measurement --- radians/second
- time-bodyangularvelocitymagnitude-mean --- Mean magnitude of body gyroscope jerk measurement --- radians/second
- time-bodyangularvelocitymagnitude-stdev --- Stdev of magnitude of body gyroscope jerk measurement --- radians/second
- freq-bodyacceleration-mean-X --- Mean frequency of body acceleration - X direction --- FFT of standard gravity units
- freq-bodyacceleration-mean-Y --- Mean frequency of body acceleration - Y direction --- FFT of standard gravity units
- freq-bodyacceleration-mean-Z --- Mean frequency of body acceleration - Z direction --- FFT of standard gravity units
- freq-bodyacceleration-stdev-X --- Stdev of frequency of body acceleration - X direction --- FFT of standard gravity units
- freq-bodyacceleration-stdev-Y --- Stdev of frequency of body acceleration - Y direction --- FFT of standard gravity units
- freq-bodyacceleration-stdev-Z --- Stdev of frequency of body acceleration - Z direction --- FFT of standard gravity units
- freq-bodyaccelerationJerk-mean-X --- Mean frequency of body acceleration jerk - X direction --- FFT of standard gravity units
- freq-bodyaccelerationJerk-mean-Y --- Mean frequency of body acceleration jerk - Y direction --- FFT of standard gravity units
- freq-bodyaccelerationJerk-mean-Z --- Mean frequency of body acceleration jerk - Z direction --- FFT of standard gravity units
- freq-bodyaccelerationJerk-stdev-X --- Stdev of frequency of body acceleration jerk - X direction --- FFT of standard gravity units
- freq-bodyaccelerationJerk-stdev-Y --- Stdev of frequency of body acceleration jerk - Y direction --- FFT of standard gravity units
- freq-bodyaccelerationJerk-stdev-Z --- Stdev of frequency of body acceleration jerk - Z direction --- FFT of standard gravity units
- freq-bodyangularvelocity-mean-X --- Mean frequency of body gyroscope measurement - X direction --- FFT of standard gravity units
- freq-bodyangularvelocity-mean-Y --- Mean frequency of body gyroscope measurement - Y direction --- FFT of standard gravity units
- freq-bodyangularvelocity-mean-Z --- Mean frequency of body gyroscope measurement - Z direction --- FFT of standard gravity units
- freq-bodyangularvelocity-stdev-X --- Stdev of frequency of body gyroscope measurement - X direction --- FFT of standard gravity units
- freq-bodyangularvelocity-stdev-Y --- Stdev of frequency of body gyroscope measurement - Y direction --- FFT of standard gravity units
- freq-bodyangularvelocity-stdev-Z --- Stdev of frequency of body gyroscope measurement - Z direction --- FFT of standard gravity units
- freq-bodyaccelerationmagnitude-mean --- Mean frequency of body acceleration magnitude --- Euclidean norm
- freq-bodyaccelerationmagnitude-stdev --- Stdev of frequency of body acceleration magnitude --- Euclidean norm
- freq-bodybodyaccelerationJerkmagnitude-mean --- Mean frequency of body acceleration jerk magnitude --- Euclidean norm
- freq-bodybodyaccelerationJerkmagnitude-stdev --- Stdev of frequency of body acceleration jerk magnitude --- Euclidean norm
- freq-bodybodyangularvelocitymagnitude-mean --- Mean frequency of magnitude of body gyroscope measurement --- Euclidean norm
- freq-bodybodyangularvelocitymagnitude-stdev --- Stdev of frequency of magnitude of body gyroscope measurement --- Euclidean norm
- freq-bodybodyangularvelocitymagnitude-mean --- Mean frequency of magnitude of body gyroscope jerk measurement --- Euclidean norm
- freq-bodybodyangularvelocitymagnitude-stdev --- Stdev of frequency of magnitude of body gyroscope jerk measurement --- Euclidean norm
- Features are normalized and bounded within [-1,1].
Use of this dataset in publications must be acknowledged by referencing the following publication [1]
[1] Davide Anguita, Alessandro Ghio, Luca Oneto, Xavier Parra and Jorge L. Reyes-Ortiz. Human Activity Recognition on Smartphones using a Multiclass Hardware-Friendly Support Vector Machine. International Workshop of Ambient Assisted Living (IWAAL 2012). Vitoria-Gasteiz, Spain. Dec 2012
This dataset is distributed AS-IS and no responsibility implied or explicit can be addressed to the authors or their institutions for its use or misuse. Any commercial use is prohibited.
Jorge L. Reyes-Ortiz, Alessandro Ghio, Luca Oneto, Davide Anguita. November 2012.