Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 2.8 KB

File metadata and controls

71 lines (50 loc) · 2.8 KB

Code book for processed data

Qualitative variables

  • SubjectID

    ID of the subject participated in the study, out of total of 30 subjects

  • Activity

    Activity subject performed in this particular observation. Possible values:

    • Walking
    • WalkingUpstairs
    • WalkingDownstairs
    • Sitting
    • Standing
    • Laying

Quantitative variables

These variables are taken from Samsung Data set, describing various aggregated smartphone sensor data for each observation.

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.

  • tBodyAcc-XYZ
  • tGravityAcc-XYZ
  • tBodyAccJerk-XYZ
  • tBodyGyro-XYZ
  • tBodyGyroJerk-XYZ
  • tBodyAccMag
  • tGravityAccMag
  • tBodyAccJerkMag
  • tBodyGyroMag
  • tBodyGyroJerkMag
  • fBodyAcc-XYZ
  • fBodyAccJerk-XYZ
  • fBodyGyro-XYZ
  • fBodyAccMag
  • fBodyAccJerkMag
  • fBodyGyroMag
  • fBodyGyroJerkMag

Additional vectors obtained by averaging the signals in a signal window sample. These are used on the angle() variable:

  • gravityMean
  • tBodyAccMean
  • tBodyAccJerkMean
  • tBodyGyroMean
  • tBodyGyroJerkMean

For each of the variables, mean and std values are available.

For example, column "tBodyGyroJerk-mean()-Z" describes mean value of Z-coordinate of derived angular velocity for the particular sample observation.

Averaged data set

Additional averaged data set (averageMeanStddata.txt) is generated and describes average of each quantitative variable for each activity and each subject

This data set has the same quantitative variables, but value in each columns represents averaged data for each activity and each subject.