{
  "fetched_at": "2026-10-19T16:46:14Z",
  "source_url": "https://www.kaggle.com/competitions/bda-2019-physical-activity-recognition/data",
  "pages": [
    {
      "name": "rules",
      "content": "<h3>Leveling the playing field</h3>\n<p>Because of the wide range of backgrounds of your peers, you can only use the methods discussed in the book in Chapters 1 through 6 of the ISLR book. Any use of any other methods will automatically <b>disqualify</b> your submission.<p>\n\n<p><div id=\"underlined\" style=\"text-decoration: underline!important\"><u>You must use the example code provided in the classes and/or in the ISLR book.</u></div> Googling how to's is prohibited. All the information that you need is provided in the book, reading material and examples. Do not use other libraries than those indicated in the materials.</p>\n\n<h3>Feature extraction</h3>\n\n\n<p>All the available data may be used. However, you may not use the minor `flaw` in the data collection design: the order of activities was not randomized across participants, and so certain activities tend to occur after other activities. <b>You <u>may not</u> make an external data file that includes both the provided and new features and use that in your entire script</b>. All data merging should be done inside your R script. </p>\n\n\n<h3>Team effort</h3>\n<p>You work in teams of 2 or (at most) 3 members. Each team submits their work as a team. For this competition each team can enter 2 submissions. (You will be able to indicate which two submissions have to be used.) </p>\n\n<p>There are <b>two deadlines</b>: One for the <b>first submission</b> and one for the <b>second submission</b>. <b>Both submissions will be graded</b>.</p>\n\n<p>Take advantage of the first round of submissions to improve your teams position on the leaderboard. That is, learn from the other teams scripts and 'steal' their good ideas! (Make sure to give credit where credit is due!)</p>\n\n\n<h3>Submissions</h3>\n<h4>How to submit</h4>\n<ul>\n<li>You have to submit your script in Kaggle via a kernel: Create a kernel and copy and paste your script and submit the script by clicking the <div style=\"display:inline-block;color:white;background-color:#008ABC;font-family:Arial;padding:3px;border-radius:3px; box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2)\">Commit</div> button. Your commit should finish without errors, and should write the predictions to a file. Files that are created by your script will be saved to the \"output\" folder from which you can select the file with predictions to submit. You can either use a Notebook kernel or a Script kernel.\n<li>You have to set your kernel to 'Public'. This can be done by going to your Notebooks &gt; Your Work, click on the Notebook that contains your kernel, and click on the <div style=\"display:inline-block;background-color:white;color:#008ABC;font-family:Arial;padding:3px;border: solid 1px #cccccc;; border-radius:3px; box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2)\">&#128274; Access</div> button to make the kernel public. (An open lock symbol &#128275; indicates your kernel is public. It takes some time before your kernel is listed in the Notebooks &gt; Public section.)\n</ul>\n\n<h4>Code requirements</h4>\n<ul>\n<li> Your script should be neat and follow a consistent layout and coding style (e.g., use the <a href=\"\">Tidyverse Style Guide</a> or the <a href=\"https://google.github.io/styleguide/Rguide.html\">Google R Style Guide</a>). Especially pay attention to <a href=\"https://style.tidyverse.org/syntax.html\">syntax</a>.\n\n<li> Scripts can always be broken down in sections that correspond to different conceptual steps. Indicate those with proper <a href=\"https://style.tidyverse.org/files.html#internal-structure\">internal structure commenting</a>. \n<li> Use <code>dplyr</code> with pipes (<code>%>%</code>) where possible (this generalizes much more easily to large data bases such as SQL data bases, makes it much easier to understand processing steps)\n<ul>\n    <li> mark key steps in your pipes with an inline comment\n    <li> use of `dplyr` is taken into account in the grade (you’re supposed to learn to work with it, even if you already know how to do it differently)\n</ul>\n</ul>\n<h4>Presentation</h4>\n<ul>\n<li> Always explain feature extraction ideas\n<ul>\n    <li> what (what features are you looking at)\n    <li> why (what is the motivation/reasoning behind your choice of features? can be reasoning, can be derived from theory, can be derived from comparison of other peoples efforts in this area)\n    <li> how (how do you compute the features in R)\n    <li> creativity, originality and effort\n</ul>\n<li> model fitting, selection, and performance\n<ul>\n    <li> present all the algorithms that your group tried out (including performance output), \n    <li> how performance was measured\n    <li> how you varied and optimized the flexibility of the algorithm (e.g., feature selections, adding interactions, non-linear transformations)\n    <li> visualize performance differences within and between algorithms (by means of a chart or by means of a table; whichever makes performances most apparent)\n</ul>\n</ul>\n<h4>Learning from your peers</h4>\n<ul>\n<li> learn from others\n<ul>\n    <li> steal each other’s ideas (crediting the originator!), take each other’s advice\n    <li> what your team learned from others from the first submission to the next is taken into account in the grading (don't forget to credit the originator)\n</ul>\n</ul>\n",
      "isPublished": false,
      "hasIsPublished": false,
      "postTitle": "",
      "hasPostTitle": false,
      "mimeType": "",
      "hasMimeType": false
    },
    {
      "name": "data-description",
      "content": "<p>The data are stored in a zip file. The zip file contains\n<ul>\n<li>README.txt with a full discription of the data\n<li>two folders:\n<ul> <li>Train <li> Test </ul>\n</ul>\n</p>\n<p>Both Train and Test folder contains text files with raw sensor signals. The Train folder also contains a file names labels_train.txt that specifies which segments of the signals correspond to which activities.</p>\n\nThe dataset consists of\n=================\n\n- Files with Inertial sensor data: Raw triaxial signals from the accelerometer and gyroscope of all the trials with with participants. \n- A file with labels of all the performed activities.\n  \n\nThe dataset includes the following files:\n=========================================\n\n- 'README.txt'\n\n- 'RawData/Train/acc_expXX_userYY.txt': The raw triaxial acceleration signal for the experiment number XX and associated to the user number YY. Every row is one acceleration sample (three axis) captured at a frequency of 50Hz. \n\n- 'RawData/Train/gyro_expXX_userYY.txt': The raw triaxial angular speed signal for the experiment number XX and associated to the user number YY. Every row is one angular velocity sample (three axis) captured at a frequency of 50Hz. \n\n- 'RawData/labels.txt': include all the activity labels available for the dataset (1 per row). \n   Column 1: experiment number ID, \n   Column 2: user number ID, \n   Column 3: activity number ID \n   Column 4: Label start point (in number of signal log samples (recorded at 50Hz))\n   Column 5: Label end point (in number of signal log samples)\n\n\n\nNotes: \n======\n\n- The units used for the accelerations (total and body) are 'g's (gravity of earth -> 9.80665 m/seg2).\n- The gyroscope units are rad/seg.\n- A video of the experiment including an example of the 6 recorded activities with one of the participants can be seen in the following link: http://www.youtube.com/watch?v=XOEN9W05_4A\n\n\nLicense:\n========\nUse of this dataset in publications must be acknowledged by referencing the following publications\n\n- Jorge-L. Reyes-Ortiz, Luca Oneto, Albert Sam‡, Xavier Parra, Davide Anguita. Transition-Aware Human Activity Recognition Using Smartphones. Neurocomputing. Springer 2015.\n\nThis 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.\n\n\nOther Related Publications:\n===========================\n\n- Davide Anguita, Alessandro Ghio, Luca Oneto, Xavier Parra and Jorge L. Reyes-Ortiz. A Public Domain Dataset for Human Activity Recognition Using Smartphones. 21th European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, ESANN 2013. Bruges, Belgium 24-26 April 2013. \n\n- Jorge-Luis Reyes-Ortiz, Luca Oneto, Alessandro Ghio, Albert Sam·, Davide Anguita and Xavier Parra. Human Activity Recognition on Smartphones With Awareness of Basic Activities and Postural Transitions. Artificial Neural Networks and Machine Learning ñ ICANN 2014. Lecture Notes in Computer Science. Springer. 2014.\n\n- Davide Anguita, Alessandro Ghio, Luca Oneto, Xavier Parra, Jorge L. Reyes-Ortiz. Energy Efficient Smartphone-Based Activity Recognition using Fixed-Point Arithmetic. Journal of Universal Computer Science. Special Issue in Ambient Assisted Living: Home Care.   Volume 19, Issue 9. May 2013\n\n- 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. 4th International Workshop of Ambient Assited Living, IWAAL 2012, Vitoria-Gasteiz, Spain, December 3-5, 2012. Proceedings. Lecture Notes in Computer Science 2012, pp 216-223. \n\n- Jorge Luis Reyes-Ortiz, Alessandro Ghio, Xavier Parra-Llanas, Davide Anguita, Joan Cabestany, Andreu Catal‡. Human Activity and Motion Disorder Recognition: Towards Smarter Interactive Cognitive Environments. 21th European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, ESANN 2013. Bruges, Belgium 24-26 April 2013.  \n\n---------------------\n\nJorge L. Reyes-Ortiz, Alessandro Ghio, Luca Oneto, Davide Anguita and Xavier Parra. July 2015.\n\nAdapted Aug 2018 for BDA, University of Amsterdam\n",
      "isPublished": false,
      "hasIsPublished": false,
      "postTitle": "",
      "hasPostTitle": false,
      "mimeType": "",
      "hasMimeType": false
    },
    {
      "name": "Description",
      "content": "\n<hr>\n<h2>Smartphone-Based Recognition of Human Activities and Postural Transitions Data Set</h2>\n<hr>\n\n<p>This competition involves building a classifier that recognizes different types of physical activity from signals measured by the <a href=\"https://en.wikipedia.org/wiki/Accelerometer\">accelerometer</a> and <a href=\"https://en.wikipedia.org/wiki/Gyroscope\">gyroscope</a> in your smartphone, which both measure aspects of movement and orientation. The data for this competition were collected in a lab using a basic smartphone in experiments with human participants carrying out various daily activities in set order.</p>\n\n<p>\nThe 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. \n</p>\n<p>A video of the an experimental run can be viewed <a href=\"https://www.youtube.com/embed/XOEN9W05_4A\">here</a>\n</p>\n<p>\nThe dataset consists of\n<ul>\n<li> Files with Inertial sensor data: Raw triaxial signals from the accelerometer and gyroscope of all the trials with with participants. \n<li> A file with labels of all the performed activities.\n</ul>\n</p>\n\n\n<h2>Thanks</h2>\n<author><em>Jorge L. Reyes-Ortiz<sup style=\"vertical-align: super; font-size: smaller;\">1,2</sup>, Davide Anguita<sup style=\"vertical-align: super; font-size: smaller;\">1</sup>, Luca Oneto<sup style=\"vertical-align: super; font-size: smaller;\">1</sup> and Xavier Parra<sup style=\"vertical-align: super; font-size: smaller;\">2</sup></em>\n<small>\n<ol>\n<li>Smartlab, DIBRIS - Universitá  degli Studi di Genova, Genoa (16145), Italy. \n<li> CETpD - Universitat Politécnica de Catalunya. Vilanova i la Geltr˙ (08800), Spain\nhar '@' smartlab.ws \nwww.smartlab.ws</ol></small></author>\n",
      "isPublished": false,
      "hasIsPublished": false,
      "postTitle": "",
      "hasPostTitle": false,
      "mimeType": "",
      "hasMimeType": false
    },
    {
      "name": "Evaluation",
      "content": "<p>The evaluation pages describes how submissions will be scored and how students should format their submissions. You don't need a sub-title at the top (the page title appears above). For an example of a high quality evaluation page, see the 2013 KDD Cup page, which we have copied here:</p>\n<hr />\n<p>The evaluation metric for this competition is <a href=\"https://en.wikipedia.org/wiki/Confusion_matrix\">Accuracy</a>. It is computed as \n<pre>\nmean(Predicted == Observed)\n</pre></p>\n\n<h2>Submission Format</h2>\n<p><strong>For every experimental run of each participant</strong> you should predict the activity in the 128 samples time window specified in the sample submission file. The submission file should be a .csv file that contains two columns: <code>Id</code> and <code>Predicted</code>. <code>Predicted</code> should only contain the labels specified in the activity_labels.txt file (WALKING, STAYING, etc.). The labels should be exactly as in that file (yes, in upper case). The <code>Id</code> column must identify the participant id (<code>userXX</code>), the experimental run id (<code>expYY</code>) and the sample number of the start of the window. They should be joined in one string with <code>_</code> as seperator. </p>\n<p>The file should contain a header and have the following format:</p>\n<pre>Id,Predicted\nuser02_exp03_0,STANDING\nuser02_exp03_128,STANDING\nuser02_exp03_256,STANDING\nuser02_exp03_384,STANDING\nuser02_exp03_512,STANDING\nuser02_exp03_640,STANDING\n&#x22EE;\nuser24_exp49_18048,WALKING\nuser24_exp49_18176,WALKING\n</pre>\n<p>A sample submission file can be downloaded <a href=\"https://www.icloud.com/iclouddrive/0EHRkwoyvkvQ63i3znE_EQRDA#test%5Fset%5Fsample.csv\">here</a></p>",
      "isPublished": false,
      "hasIsPublished": false,
      "postTitle": "",
      "hasPostTitle": false,
      "mimeType": "",
      "hasMimeType": false
    }
  ]
}