Coder Social home page Coder Social logo

classifying_physical_activity_kaggle's Introduction

Classifying_Physical_Activity_Kaggle

This repository contains R script to the in-class Kaggle activity on recognising physical activity based on phone signal data. This activity was part of the Behavioural Data Science course at the University of Amsterdam, carried out by me and Joris Huese.

The description of the competition on Kaggle is as follows: This competition involves building a classifier that recognizes different types of physical activity from signals measured by the accelerometer and gyroscope 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. Activities classes were three static postures (standing, sitting, lying), three dynamic activities (walking, walking downstairs and walking upstairs) and postural transitions that occurred between the static postures (stand-to-sit, sit-to-stand, sit-to-lie, lie-to-sit, stand-to-lie, and lie-to-stand)

For feature extraction the signal data was split into time-frames and from then each time period was treated as a histogram of signal readings. The features extracted included the mean, skewness, autocorrelation, entropy and spectral features.

Due to many variables the variables were checked for multicolinearity using the correlation matrix and VIF index. The restrictions set by the course confined the possible methods for classifying the signals into activities to logistic regression and quadratic discriminant analysis (QDA).

In the end the best model was using the QDA, selected through cross validated forward selection. Despite using a quite simple model, the activities were classified with around a 71% accuracy when tested on a test dataset.

classifying_physical_activity_kaggle's People

Contributors

andriig13 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.