Skip to content

Latest commit

 

History

History
134 lines (119 loc) · 6.83 KB

File metadata and controls

134 lines (119 loc) · 6.83 KB

Our final (tidy) data set contains means of all 66 features containing mean() or std() by subject and activity, for a total of 180 rows and 68 columns. The final data set is written as a .txt file called "course3project.txt". Specific variables are described below:

  1. subject - subject ID (1-30)
  2. activity - one of 6 activities (WALKING, WALKING_UPSTAIRS, WALKING_DOWNSTAIRS, SITTING, STANDING, LAYING)

The remaining 66 columns reflect means across a specific subject and activity. Note that the measurements are standardized on a -1 to 1 scale and thus unitless. Here is a guide to these variable names:

  • "time" refers to the time domain of the signal
  • "frequency" refers to the frequency domain of the signal from a FFT
  • "Body" refers to the Body component of the accelerometer readings
  • "Gravity" refers to the Gravity component of the accelerometer readings
  • "Mean" refers to original data that was a calculated signal average in a window sample
  • "SD" refers to original data that was a calculated standard deviation of signals in a window sample
  • "axis" refers to the direction of the signal (X, Y, or Z direction)
  • "Jerk" refers to a measure derived from body linear acceleration and angular velocity
  • "Magnitude" refers to signal magnitude based on Euclidean norm
  1. timeBodyAccelerometer-Mean-Xaxis
  2. timeBodyAccelerometer-Mean-Yaxis
  3. timeBodyAccelerometer-Mean-Zaxis
  4. timeBodyAccelerometer-SD-Xaxis
  5. timeBodyAccelerometer-SD-Yaxis
  6. timeBodyAccelerometer-SD-Zaxis
  7. timeGravityAccelerometer-Mean-Xaxis
  8. timeGravityAccelerometer-Mean-Yaxis
  9. timeGravityAccelerometer-Mean-Zaxis
  10. timeGravityAccelerometer-SD-Xaxis
  11. timeGravityAccelerometer-SD-Yaxis
  12. timeGravityAccelerometer-SD-Zaxis
  13. timeBodyAccelerometerJerk-Mean-Xaxis
  14. timeBodyAccelerometerJerk-Mean-Yaxis
  15. timeBodyAccelerometerJerk-Mean-Zaxis
  16. timeBodyAccelerometerJerk-SD-Xaxis
  17. timeBodyAccelerometerJerk-SD-Yaxis
  18. timeBodyAccelerometerJerk-SD-Zaxis
  19. timeBodyGyroscope-Mean-Xaxis
  20. timeBodyGyroscope-Mean-Yaxis
  21. timeBodyGyroscope-Mean-Zaxis
  22. timeBodyGyroscope-SD-Xaxis
  23. timeBodyGyroscope-SD-Yaxis
  24. timeBodyGyroscope-SD-Zaxis
  25. timeBodyGyroscopeJerk-Mean-Xaxis
  26. timeBodyGyroscopeJerk-Mean-Yaxis
  27. timeBodyGyroscopeJerk-Mean-Zaxis
  28. timeBodyGyroscopeJerk-SD-Xaxis
  29. timeBodyGyroscopeJerk-SD-Yaxis
  30. timeBodyGyroscopeJerk-SD-Zaxis
  31. timeBodyAccelerometerMagnitude-Mean
  32. timeBodyAccelerometerMagnitude-SD
  33. timeGravityAccelerometerMagnitude-Mean
  34. timeGravityAccelerometerMagnitude-SD
  35. timeBodyAccelerometerJerkMagnitude-Mean
  36. timeBodyAccelerometerJerkMagnitude-SD
  37. timeBodyGyroscopeMagnitude-Mean
  38. timeBodyGyroscopeMagnitude-SD
  39. timeBodyGyroscopeJerkMagnitude-Mean
  40. timeBodyGyroscopeJerkMagnitude-SD
  41. frequencyBodyAccelerometer-Mean-Xaxis
  42. frequencyBodyAccelerometer-Mean-Yaxis
  43. frequencyBodyAccelerometer-Mean-Zaxis
  44. frequencyBodyAccelerometer-SD-Xaxis
  45. frequencyBodyAccelerometer-SD-Yaxis
  46. frequencyBodyAccelerometer-SD-Zaxis
  47. frequencyBodyAccelerometerJerk-Mean-Xaxis
  48. frequencyBodyAccelerometerJerk-Mean-Yaxis
  49. frequencyBodyAccelerometerJerk-Mean-Zaxis
  50. frequencyBodyAccelerometerJerk-SD-Xaxis
  51. frequencyBodyAccelerometerJerk-SD-Yaxis
  52. frequencyBodyAccelerometerJerk-SD-Zaxis
  53. frequencyBodyGyroscope-Mean-Xaxis
  54. frequencyBodyGyroscope-Mean-Yaxis
  55. frequencyBodyGyroscope-Mean-Zaxis
  56. frequencyBodyGyroscope-SD-Xaxis
  57. frequencyBodyGyroscope-SD-Yaxis
  58. frequencyBodyGyroscope-SD-Zaxis
  59. frequencyBodyAccelerometerMagnitude-Mean
  60. frequencyBodyAccelerometerMagnitude-SD
  61. frequencyBodyBodyAccelerometerJerkMagnitude-Mean
  62. frequencyBodyBodyAccelerometerJerkMagnitude-SD
  63. frequencyBodyBodyGyroscopeMagnitude-Mean
  64. frequencyBodyBodyGyroscopeMagnitude-SD
  65. frequencyBodyBodyGyroscopeJerkMagnitude-Mean
  66. frequencyBodyBodyGyroscopeJerkMagnitude-SD

Data for this project was obtained from: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip

Here is an excerpt from their README.txt describing the experiment used to collect data:

Human Activity Recognition Using Smartphones Dataset Version 1.0

Jorge L. Reyes-Ortiz, Davide Anguita, Alessandro Ghio, Luca Oneto. Smartlab - Non Linear Complex Systems Laboratory DITEN - Università degli Studi di Genova. Via Opera Pia 11A, I-16145, Genoa, Italy. activityrecognition@smartlab.ws www.smartlab.ws

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. See 'features_info.txt' for more details.

For each record it is provided:

  • Triaxial acceleration from the accelerometer (total acceleration) and the estimated body acceleration.
  • Triaxial Angular velocity from the gyroscope.
  • A 561-feature vector with time and frequency domain variables.
  • Its activity label.
  • An identifier of the subject who carried out the experiment.

Notes:

  • Features are normalized and bounded within [-1,1].
  • Each feature vector is a row on the text file.

License: 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