{"id":23689792,"url":"https://github.com/Neuro-Mechatronics-Interfaces/python-intan","last_synced_at":"2026-01-13T23:30:18.767Z","repository":{"id":258799647,"uuid":"872620956","full_name":"Neuro-Mechatronics-Interfaces/Python_Intan","owner":"Neuro-Mechatronics-Interfaces","description":"Tools and demos for working with EMG data from intan using python ","archived":false,"fork":false,"pushed_at":"2025-01-07T16:54:33.000Z","size":11170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-19T23:41:39.961Z","etag":null,"topics":["circuitpython","cuda","emg","pico","python","realtime","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Neuro-Mechatronics-Interfaces.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-14T18:59:42.000Z","updated_at":"2025-01-07T16:54:37.000Z","dependencies_parsed_at":"2024-11-10T00:20:09.056Z","dependency_job_id":"318b3471-4e73-4615-8573-53dd603af15f","html_url":"https://github.com/Neuro-Mechatronics-Interfaces/Python_Intan","commit_stats":null,"previous_names":["neuro-mechatronics-interfaces/intan_emg_python","neuro-mechatronics-interfaces/python_intan"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neuro-Mechatronics-Interfaces%2FPython_Intan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neuro-Mechatronics-Interfaces%2FPython_Intan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neuro-Mechatronics-Interfaces%2FPython_Intan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neuro-Mechatronics-Interfaces%2FPython_Intan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neuro-Mechatronics-Interfaces","download_url":"https://codeload.github.com/Neuro-Mechatronics-Interfaces/Python_Intan/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239753700,"owners_count":19691159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["circuitpython","cuda","emg","pico","python","realtime","tensorflow"],"created_at":"2024-12-30T01:39:42.519Z","updated_at":"2026-01-13T23:30:18.712Z","avatar_url":"https://github.com/Neuro-Mechatronics-Interfaces.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Intan\r\n\r\nThis repository provides a set of tools and demonstrations for working with electromyography (EMG) data collected using Intan systems. It includes scripts for data preprocessing, feature extraction, machine learning (ML) model training, and real-time classification. These tools are designed to facilitate gesture recognition from sEMG signals, which can be applied in prosthetics, robotics, and neuromuscular research.\r\n\r\n![intan_logo.png](/assets/intan_logo.png)\r\n\r\n\r\nCode was written and tested using Windows 11, Python 3.10.\r\n![Python](https://img.shields.io/badge/python-3.10-blue)\r\n![License](https://img.shields.io/badge/license-MIT-green)\r\n\r\n## Repository Structure\r\n\r\n* `3D_printed_arm_control` - Hardware and software resources for robot arm control using microcontroller supporting CircuitPython.\r\n* `realtime_decoder` - Perform inference on an EMG signal in real-time using a trained model.\r\n* `gesture_classifier` - Scripts for training and testing machine learning models for gesture classification.\r\n* `utilities` - Helper functions for data preprocessing, feature extraction, and model evaluation.\r\n\r\n## Installation\r\n1. It is recommended to use a virtual environment to manage dependencies. To create a new virtual environment with [anaconda](https://www.anaconda.com/products/individual), use the following command:\r\n\r\n   ```bash\r\n   conda create -n intan python=3.10\r\n   conda activate intan\r\n   ```\r\n2. Download the repository using git:\r\n   ```bash\r\n   git clone https://github.com/Neuro-Mechatronics-Interfaces/Python_Intan.git\r\n   cd Intan_EMG_Python\r\n   ```\r\n3. To install dependencies, use the provided requirements file:\r\n   ```bash\r\n   pip install -r requirements.txt\r\n   ```\r\n   \r\n## Demo\r\nA demo script in the main directory shows a quick example of opening and plotting EMG waveforms from a .rhd file. Run the following command:\r\n```bash\r\npython load_rhd_demo.py\r\n```\r\n\r\n\r\n   \r\n\r\n## Future Improvements\r\n - [x] Add support for other classifiers\r\n - [x] Expand feature extraction to support CNN architectures.\r\n - [x] Add support for real-time classification using the trained models.\r\n - [x] Integrate with the Intan RHX system via TCP for real-time data streaming.\r\n - [x] Integrate support for sending serial commands to operate robot arm in realtime. \r\n - [ ] Refine realtime classification to include a GUI for visualizing the data.\r\n - [ ] Allow downloading of dataset to perform actual training and testing.\r\n - [ ] Allow data analysis methods to be used on the dataset.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNeuro-Mechatronics-Interfaces%2Fpython-intan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNeuro-Mechatronics-Interfaces%2Fpython-intan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNeuro-Mechatronics-Interfaces%2Fpython-intan/lists"}