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.
convert EMG data into opensim inputs
- seyedehmarzieh hosseini
- Posts: 2
- Joined: Sun Oct 11, 2015 9:09 pm
- Jan Thomas
- Posts: 23
- Joined: Mon Aug 10, 2015 8:39 am
Re: convert EMG data into opensim inputs
Hi,
You can try the MotoNms toolbox. Good luck!
Jan
You can try the MotoNms toolbox. Good luck!
Jan
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: convert EMG data into opensim inputs
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)
2) band pass filtering
https://github.com/RehabEngGroup/MOtoNM ... Filtfilt.m
where Fs is the sampling frequency of the device.
3) rectification
4) low pass
Best
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);
https://github.com/RehabEngGroup/MOtoNM ... Filtfilt.m
Code: Select all
emg = ZeroLagButtFiltfilt((1/Fs), [30,300], 2, 'bp', emg );
3) rectification
Code: Select all
emg = abs(emg);
Code: Select all
emg = zeroLagButtFiltfilt((1/Fs), 6, 2, 'lp', emg);