Git Product home page Git Product logo

myo-armband-machine-learning-gesture-classifier's Introduction

MYO Armband Machine Learning gesture classifier

Myo Armband Gesture classifier with Machine Learning. I used Fastai for simplicity and converted EMG signals from MYO to pictures and then proccessed with a Convolutional Neural Network to classify between gestures.


Usage:

First of all install Thalmic Labs Myo Controller.
Then, if you want to train with your own gestures (recomended), add the gestures name to the file gestures.txt (comma separated).

Run gesture_data_recorder.py and follow the steps to record the dataset of gestures, you can change the number of training records for gesture just changing num_rcdings (recomended more than 30, you can also duplicate images but not recomended).

Then run all the cells from trainer.ipynb. If you want to display pictures of the gestures once recognised add them to the folder gest_images and change the last cell from trainer.ipynb.


Files:

  • gesture_recorder.py: Contains the function record(file,secs), it saves an image of the plot of the last 3 seconds of an interval of secs seconds with name file.jpg .
  • gesture_data_recorder.py: Do the process of recording data to the dataset for every gesture.
  • train.ipynb trains the CNN and in the last cell can classify gestures (later this will be in other file and will run in real time).

Self recomendations for the future:

  • Do not use a CNN to classify gestures, they work, but probably not the best solution.
  • Create an app to clasify your own gestures in real time, it can be done now but not in real time.

This proyect uses Niklas Rosenstein 's Myo-Python library, a great library to manage MYO with python.


This project is made with love to learn and contribute to the Myo community.


2021 Leonardo Artiles Montero

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.