Skip to content
/ EUNet Public
forked from increase24/EUNet

Neural network for sEMG and A-mode ultrasound based hand gesture recognition.

Notifications You must be signed in to change notification settings

3kevin5/EUNet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EUNet: CNN based Feature Fusion of sEMG and Ultrasound Signals in Hand Gesture Recognition

introduction

This is an official pytorch implementation of Feature Fusion of sEMG and Ultrasound Signals in Hand Gesture Recognition. Please cite this paper if you find this repo helpful for you.

EUNet has two version: one-stream and two stream.

🚩 one-stream EUNet is designed for hand gesture recognition based on seperate sEMG or A-mode ultrasound signals;

🚩 two-stream EUNet is designed for hand gesture recognition based on fusion sEMG and A-mode ultrasound signals.

  • EUNet(one stream) EUNet_oneStream The shared CNN architecture for separate sEMG or ultrasound signal to feature extraction and classification.

  • EUNet(two stream) EUNet_twoStream The two stream CNN architecture for sEMG and ultrasound feature extraction, feature fusion and classification.

Environment

The code is developed using python 3.7 on Ubuntu 18.04. NVIDIA GPUs are needed.

Data preparing

The complete hybrid sEMG/US dataset is not released now. We apply collected sEMG/US data of one subject for code testing, which can be downloaded from: Baidu Disk (code: h99k).

Usage

Installation

  1. Clone this repo
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Create a soft link to the dir you save the dataset:
    ln -s **datadir_save** data
    

Training

  • Train EUNet for sEMG modality
    sh scripts/train_emg_EUNet.sh
    
  • Train EUNet for A-mode ultrasound modality
    sh scripts/train_us_EUNet.sh
    

Validate

  • Validate EUNet for sEMG modality
    sh scripts/test_emg_EUNet.sh
    
  • Validate EUNet for A-mode ultrasound modality
    sh scripts/test_us_EUNet.sh
    

Contact

If you have any questions, feel free to contact me through Github issues.

About

Neural network for sEMG and A-mode ultrasound based hand gesture recognition.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%