Takashi's Study Abroad

偏差値40台の高校を卒業してからアメリカの大学を首席で卒業(GPA4.0)し、ミュンヘン工科大学の大学院に合格。5年間のアメリカ留学で経た知識や経験を活かし、現地又は留学準備で役に立つ情報を発信していきます!

Sports & Exercise Science

EMG Timing Analysis -Muscle on, Muscle off, Duration-

2020年9月18日

Hello everyone,

 

In the last blog, I explained how to pre-process EMG data (If you haven’t checked it out, please go to my previous blog and YouTube video below).

 

 

The envelope we created last time is nice to see, but people may think “so what ?” Therefore, this time I would like to go further … Then, why do not we find when muscles activated, when they dropped out, and how long they activated ??

 



Procedure

1, Pre-process EMG data

We did this last time, so please check my previous blog and video below.

 

2, TKEO

TKEO stands for Teager–Kaiser energy operator, which can decrease noise so that we can identify muscle on and off easier later on. Technically, it “measures instantaneous energy changes of signals composed of time-varying frequency” (Solnik et al., 2010). The formula is …

() = ^2() − ( + 1) ∗ ( − 1)

Basically, you need to square a current data point and subtract a multiplication of a data point before and after the current data point. If a sequence of data points is 1, 2, 3, 4, 5, you need to leave the first and last data point and start from the second data point. Therefore, 2 in the second data point becomes 2^2 – 1*3, which is 1. 3 becomes 1. 4 becomes 1. Then, the sequence is 1, 1, 1, 1, 5 after TKEO. A plot after TKEO looks like this …

You can see that resting muscle EMG is close to 0, but activated muscle EMG is far away from 0. This makes it easy for us to detect muscle on and off later on. 

 

3, Find threshold

A threshold is a certain value to identify muscle on and off. For example, I can say that the first point which a value becomes more than 10 is muscle on. In that case, 10 is the threshold. There are so many ways to identify the threshold, but in this time, I tried 3 different ways: A threshold with TKEO, A threshold without TKEO, and My adjusted TKEO

The first 2 methods are based on research paper. The first one requires you to conduct TKEO on bandpass filtered EMG data. Then, you need to apply low-pass filter with 50 Hz cutoff frequencies and rectification. The data is now ready to find threshold. The formula is …

Threshold= + * σ

is a mean of baseline EMG (Resting muscle EMG)

is a coefficient which varies depending on EMG data (You may have to play around to find the best fit for your data)

σ is a standard deviation of baseline EMG (Resting muscle EMG)

Research paper used 15 for the coefficient (), but it did not work in this EMG data. Therefore, I used 20 instead. 

 

The second method is without TKEO. I just used the threshold formula above on bandpass filtered EMG data. Research paper used 3 for the coefficient (), but it did not work in this EMG data. Therefore, I used 10 instead. 

 

The third method is 2% of the maximum of TKEO data. The formula is …

Threshold = max(TKEO) * 0.02

 

4, Find muscle on and off

After defining the threshold, we can find when a muscle started activation and when it was ended. Plots below show muscle on and off detections in different threshold methods …

The first method (With TKEO)

 

The second method (Without TKEO)

 

The third method (My adjusted TKEO)

 

Although the first 2 methods are based on research paper, the last one looks better than them. The last one is still not perfect, but it captures muscle on and off where they are supposed to be. As you may already know, there is no universal method to detect muscle on and off. You probably have to play around with a threshold with your data to find the best fit. 

 

5, Find muscle activation duration

Once you find muscle on and off, you can find how long muscle activation lasted. It is easy. You just need to subtract muscle off from muscle on. A bar plot below shows the duration of each muscle activation in each trial …

As you can see, the first trial has the longest activation duration, and the fifth is the shortest (Maybe fatigue plays a role??). Also, there is a pattern like right bicep femoris and left semitendinosus are longer than right semitendinosus and left bicep femoris in activation duration except for the first trial. Moreover, right semitendinosus activated longer than left bicep femoris

 

If you want to enhance the plot, you can create a plot like below …

Now you can see muscle on / off and duration at the same time. It is interesting that muscle on varies, but muscle off is almost same among all different muscles in all trials. 

 

My YouTube video

I am explaining all procedures above on my YouTube video, so check it out !!

 

MATLAB code and EMG data

MATLAB code and EMG data

 

 

Enjoy !!

 

 

-Sports & Exercise Science
-, , , , , , , , , , , , , , , , , , ,

執筆者:

関連記事

  1. porno より:

    Excellent post! We are linking to this great content on our site. Keep up the great writing. Hedda Leicester Sackville

  2. JUN WANG より:

    Excellent work, I just finished data recording, and try to deal with it.
    Sorry for troule you, the code attached couldnot work, could you update it again?
    Thanks very much.

comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

Sports & Exercise Science

2022/04/04

Pose Estimation Live Demo

Pose Estimation Pose estimation is a technique to estimate the position and orientation of a human. …

続きを読む

Sports & Exercise Science

2022/04/01

Face Mesh

This website can detect a human face and common facial landmarks in 3D and real-time. The number of …

続きを読む

Sports & Exercise Science

2022/04/01

Motion Capture Demo

Capture your motion! You can browse the video you want to capture a human. You can download the vide…

続きを読む

no image

2022/03/29

Privacy Policy

PRIVACY NOTICELast updated March 28, 2022This privacy notice for Takashi (“Company,” &#8…

続きを読む

Sports & Exercise Science

2022/03/21

How do you reconstruct 3D ??

Goal of this article The goal of this article is to reconstruct 3D pose estimation data from two 2D …

続きを読む