EMG to activation

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
baoping xiong
Posts: 8
Joined: Thu Nov 10, 2016 10:21 pm

EMG to activation

Post by baoping xiong » Thu Apr 27, 2017 11:44 pm

Does opensim have a function of converting the EMG signal into activation?If not, where can I find it?

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

Re: EMG to activation

Post by Dimitar Stanev » Fri Apr 28, 2017 12:00 am

Hi,

OpenSim does not convert EMG to activations, but the process is straightforward. Please see the previous posts for relative answers and suggestions.

viewtopicPhpbb.php?f=91&t=6952&p=18180&start=0&view=
search.php?keywords=convert+emg+&fid[0] ... 3fe7c71218

User avatar
baoping xiong
Posts: 8
Joined: Thu Nov 10, 2016 10:21 pm

Re: EMG to activation

Post by baoping xiong » Fri Apr 28, 2017 12:07 am

emg = detrend(emg);
emg = ZeroLagButtFiltfilt((1/Fs), [30,300], 2, 'bp', emg );
emg = abs(emg);
emg = zeroLagButtFiltfilt((1/Fs), 6, 2, 'lp', emg);
I think all those is get excitation u(t) not the activation a(t),I understand is right?

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

Re: EMG to activation

Post by Dimitar Stanev » Fri Apr 28, 2017 12:29 am

The above algorithm approximates the envelope of your emg data. You would have to normalize this in order to be used as an excitation signal.

The activation can be considered a delayed version of the excitation. Nonetheless you can implement the first order dynamics (http://simtk-confluence.stanford.edu:80 ... n+Dynamics) apply the excitation and compute the activation manually.

User avatar
baoping xiong
Posts: 8
Joined: Thu Nov 10, 2016 10:21 pm

Re: EMG to activation

Post by baoping xiong » Sun May 07, 2017 8:18 pm

thank you

POST REPLY