Coder Social home page Coder Social logo

rahulsinghk991 / movement-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from la3lma/movement-analysis

1.0 1.0 0.0 2.85 MB

Classification of human movement based on accelerometer / gyro data from mobile phones

License: Apache License 2.0

HTML 50.67% JavaScript 11.76% Python 37.57%

movement-analysis's Introduction

movement-analysis

Classification of human movement based on accelerometer / gyro data from mobile phones

See Jan dancing!

  • data-gathering contains all the code required for collecting live data from smartphones and dump it to disk
  • datasets contains training and verification data that we use to train the model
  • logs track model performance over time
  • models pre-trained models
  • src application that does the data analysis

Test the live classifier yourself

First set up your environment:

  1. Install node.js and python 2.7
  2. Go into data-gathering folder and run npm install
  3. Go into src folder and run easy install sklearn docopt

The application contains of three parts: a website that runs on a phone and gets data; a node.js app that runs on computer and receives the data; a python app that classifies the data. Get two terminals and...

In terminal 1:

$ cd src
$ python dataset.py --model ../models/1s_6sps.pkl --data=../data-gathering/raw-data/

In terminal 2:

$ cd data-gathering
$ node server.js

Now open the monitoring application on your computer, so you can see the live classification, at http://localhost:9321/server.

Next you want to start gathering data. Make sure your phone and computer are on the same wifi network, and look up the IP of your computer.

  1. Navigate to http://YOURIP:9321 on your mobile phone
  2. Press the 'Start measurement' button
  3. Put the phone (with the screen on, and to your leg) in your left front pocket
  4. See data flowing in! (In terminal 2 it should say 'Start measurement')

After a few seconds the classifier starts showing data in your web browser!

Note Default measurement time is only 30s, which probably not enough to demo. Change it in data-gathering/client/accelerometer-position/index.html (copy the beepWithTimeout lines).

movement-analysis's People

Contributors

janjongboom avatar la3lma avatar

Stargazers

 avatar

Watchers

 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.