visual3d:documentation:emg:processing:onset
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| visual3d:documentation:emg:processing:onset [2024/06/14 17:11] – created sgranger | visual3d:documentation:emg:processing:onset [2024/07/17 15:45] (current) – created sgranger | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |**Language: | + | ====== |
| - | |===== Contents =====\\ \\ \\ \\ * [[# | + | || |
| - | Computing the onset of an EMG signal can be quite tricky. In this example, we describe a pipeline for a straightforward estimation of EMG onset based on the EMG envelope | + | Computing the onset of an EMG signal can be quite tricky. In this example, we describe a pipeline for a straightforward estimation of EMG onset based on the the [[Visual3D: |
| + | |||
| + | {{: | ||
| + | \\ | ||
| - | [[File: | ||
| - | Three event labels are identified on this figure. The yellow and red events specify the "rest period" | ||
| < | < | ||
| Line 14: | Line 15: | ||
| Highpass_Filter | Highpass_Filter | ||
| / | / | ||
| - | / | + | / |
| ! / | ! / | ||
| ! / | ! / | ||
| - | / | + | / |
| ! / | ! / | ||
| / | / | ||
| Line 25: | Line 26: | ||
| ; | ; | ||
| - | Lowpass_Filter | + | !Apply the Teager-Kaiser Operator |
| - | / | + | |
| - | ! / | + | |
| - | / | + | |
| - | ! / | + | |
| - | / | + | |
| - | ! / | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | ! / | + | |
| - | ; | + | |
| - | !Compute the RMS of the emg signal based on a 100 ms window | + | Teager_Kaiser_Energy |
| - | + | ||
| - | Moving_RMS | + | |
| / | / | ||
| - | / | + | / |
| - | / | + | / |
| - | ! /RESULT_SUFFIX= | + | ! /SIGNAL_COMPONENTS= |
| - | / | + | ! / |
| - | /NUM_WINDOW_FRAMES=1+0.1*PARAMETER:: | + | ! / |
| + | ! /EXCLUDE_EVENTS= | ||
| ; | ; | ||
| Line 63: | Line 52: | ||
| ; | ; | ||
| - | !Compute the median and standard deviation of the EMG envelope during rest | + | !Compute the median and standard deviation of the TKO envelope during rest |
| Metric_Median | Metric_Median | ||
| Line 70: | Line 59: | ||
| / | / | ||
| / | / | ||
| - | / | + | / |
| - | / | + | / |
| ! / | ! / | ||
| / | / | ||
| Line 84: | Line 73: | ||
| / | / | ||
| / | / | ||
| - | / | + | / |
| - | / | + | / |
| ! / | ! / | ||
| / | / | ||
| Line 93: | Line 82: | ||
| ; | ; | ||
| - | !Identify the event EMG2_ON | + | !Identify the event EMG_C_ON |
| !of the median + 3 * standard deviation | !of the median + 3 * standard deviation | ||
| Event_Threshold | Event_Threshold | ||
| / | / | ||
| - | / | + | / |
| - | / | + | / |
| - | / | + | / |
| / | / | ||
| ! / | ! / | ||
| Line 118: | Line 107: | ||
| </ | </ | ||
| - | \\ | ||
| - | |||
| - | |||
| - | ===== Count the Number of Frames the signals is ON ===== | ||
| - | |||
| - | < | ||
| - | ! Create a signal that is zero when the EMG is off, and one when it is ON | ||
| - | |||
| - | ! Start with creating a signal that is zero at all frames | ||
| - | Evaluate_Expression | ||
| - | / | ||
| - | ! / | ||
| - | ! / | ||
| - | ! / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | ! / | ||
| - | ; | ||
| - | |||
| - | ! Set all frames between the ON/OFF events to one | ||
| - | Set_Data_To_New_Values | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | ! / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | ! / | ||
| - | ! / | ||
| - | ! / | ||
| - | ! /END_FRAME= | ||
| - | ! / | ||
| - | / | ||
| - | ! / | ||
| - | ! / | ||
| - | ! / | ||
| - | ; | ||
| - | |||
| - | ! Add the signal during the gait cycle | ||
| - | ! The result will be the number of frames the signal is ON during the gait cycle | ||
| - | Metric_Sum | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | ! / | ||
| - | ! / | ||
| - | ; | ||
| - | </ | ||
| - | |||
| - | |||
| - | Retrieved from "" | ||
visual3d/documentation/emg/processing/onset.1718385100.txt.gz · Last modified: by sgranger
