size_categories:n<1K license:cc-by-4.0 region:us
The Human Activity Recognition dataset.
@misc{misc_smartphone-based_recognition_of_human_activities_and_postural_transitions_341,
  author       = {Reyes-Ortiz,Jorge, Anguita,Davide, Oneto,Luca, and Parra,Xavier},
  title        = {{Smartphone-Based Recognition of Human Activities and Postural Transitions}},
  year         = {2015},
  howpublished = {UCI Machine Learning Repository},
  note         = {{DOI}: https://doi.org/10.24432/C54G7M}
}
---
dataset_info:
  features:
  - name: features
    sequence: float32
    length: 561
  - name: labels
    dtype:
      class_label:
        names:
          '0': WALKING
          '1': WALKING_UPSTAIRS
          '2': WALKING_DOWNSTAIRS
          '3': SITTING
          '4': STANDING
          '5': LAYING
          '6': STAND_TO_SIT
          '7': SIT_TO_STAND
          '8': SIT_TO_LIE
          '9': LIE_TO_SIT
          '10': STAND_TO_LIE
          '11': LIE_TO_STAND
  - name: subject id
    dtype: uint8
  splits:
  - name: train
    num_bytes: 17499051
    num_examples: 7767
  - name: test
    num_bytes: 7123986
    num_examples: 3162
  download_size: 79596192
  dataset_size: 24623037
license: cc-by-4.0
pretty_name: HAR
size_categories:
- n<1K
---

# Dataset Card for HAR

A tabular dataset which poses the task of prediction human activity based on smartphone sensor signal (accelerometer and gyroscope).

## Dataset Details

### Dataset Description

*Summary from https://archive.ics.uci.edu/dataset/240/human+activity+recognition+using+smartphones:*
The experiments were carried out with a group of 30 volunteers within an age bracket of 19-48 years. They performed a protocol of activities composed of six basic activities: three static postures (standing, sitting, lying) and three dynamic activities (walking, walking downstairs and walking upstairs). The experiment also included postural transitions that occurred between the static postures. These are: stand-to-sit, sit-to-stand, sit-to-lie, lie-to-sit, stand-to-lie, and lie-to-stand. All the participants were wearing a smartphone (Samsung Galaxy S II) on the waist during the experiment execution. We captured 3-axial linear acceleration and 3-axial angular velocity at a constant rate of 50Hz using the embedded accelerometer and gyroscope of the device. The experiments were video-recorded to label the data manually. The obtained dataset was 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 561 features was obtained by calculating variables from the time and frequency domain. See 'features_info.txt' for more details. 

This dataset is an updated version of the UCI Human Activity Recognition Using smartphones Dataset that can be found at: https://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones

This version provides the original raw inertial signals from the smartphone sensors, instead of the ones pre-processed into windows which were provided in version 1. This change was done in order to be able to make online tests with the raw data. Moreover, the activity labels were updated in order to include postural transitions that were not part of the previous version of the dataset. 



- **Curated by:** Reyes-Ortiz, Jorge, Anguita, Davide, Ghio, Alessandro, Oneto, Luca, and Parra, Xavier
- **License:** This dataset is licensed under a [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/legalcode) license.

### Dataset Sources

- **Repository:** http://archive.ics.uci.edu/dataset/341/smartphone+based+recognition+of+human+activities+and+postural+transitions
- **Paper:** https://www.sciencedirect.com/science/article/abs/pii/S0925231215010930
- **Experiment Demo:** http://www.youtube.com/watch?v=XOEN9W05_4A


## Citation

**BibTeX:**

@misc{misc_smartphone-based_recognition_of_human_activities_and_postural_transitions_341,
  author       = {Reyes-Ortiz,Jorge, Anguita,Davide, Oneto,Luca, and Parra,Xavier},
  title        = {{Smartphone-Based Recognition of Human Activities and Postural Transitions}},
  year         = {2015},
  howpublished = {UCI Machine Learning Repository},
  note         = {{DOI}: https://doi.org/10.24432/C54G7M}
}


**APA:**

Reyes-Ortiz, Jorge, Anguita, Davide, Oneto, Luca, and Parra, Xavier. (2015). Smartphone-Based Recognition of Human Activities and Postural Transitions. UCI Machine Learning Repository. https://doi.org/10.24432/C54G7M.