convert EMG data into opensim inputs

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
seyedehmarzieh hosseini
Posts: 2
Joined: Sun Oct 11, 2015 9:09 pm

convert EMG data into opensim inputs

Post by seyedehmarzieh hosseini » Wed Aug 31, 2016 6:51 pm

Hi,

I have a problem with my data file.
I have EMG data for hand tremor and I want to convert this data as a .mot file for using in opensim model.
Can you please advise me about that?

Many thanks,
Marzieh.

User avatar
Jan Thomas
Posts: 23
Joined: Mon Aug 10, 2015 8:39 am

Re: convert EMG data into opensim inputs

Post by Jan Thomas » Wed Sep 14, 2016 10:19 pm

Hi,
You can try the MotoNms toolbox. Good luck!

Jan

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: convert EMG data into opensim inputs

Post by Dimitar Stanev » Thu Sep 15, 2016 2:40 am

The process is straightforward:

In matlab:

0) Make sure to scale the signal by the maximum voluntary contraction so you can get values between [-1, 1]

1) remove DC (optional, because you use band pass)

Code: Select all

 emg = detrend(emg);
2) band pass filtering

https://github.com/RehabEngGroup/MOtoNM ... Filtfilt.m

Code: Select all

emg = ZeroLagButtFiltfilt((1/Fs), [30,300], 2, 'bp', emg );
where Fs is the sampling frequency of the device.

3) rectification

Code: Select all

emg = abs(emg);
4) low pass

Code: Select all

emg = zeroLagButtFiltfilt((1/Fs), 6, 2, 'lp', emg);
Best

POST REPLY