visual3d:documentation:emg:processing_tools
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:emg:processing_tools [2024/06/19 12:47] – sgranger | visual3d:documentation:emg:processing_tools [2024/07/17 15:45] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== introduction | + | ====== Processing Tools ====== |
- | the purpose is to offset trial data to accommodate for any dc shift. quantifying the emg background noise based on a " | + | ==== Introduction ==== |
- | find overall mean of trial: | + | The purpose is to offset trial data to accommodate for any DC shift. Quantifying the EMG background noise based on a " |
+ | |||
+ | Find overall mean of trial: | ||
if positive, subtract mean from all values to offset overall average to zero | if positive, subtract mean from all values to offset overall average to zero | ||
if negative, add mean to all values to offset overall average to zero. | if negative, add mean to all values to offset overall average to zero. | ||
- | rectify | + | Rectify |
- | calculate | + | Calculate |
- | determine | + | Determine |
- | ===== emg_resting_background ===== | + | ==== EMG_Resting_Background |
- | you can remove the background using a meta-command | + | You can remove the background using a Meta-Command |
- | ===== emg_resting_background meta-command ===== | + | ==== EMG_Resting_Background Meta-Command |
- | the following | + | The following |
< | < | ||
- | ! begin_meta | + | ! BEGIN_META |
- | ! meta_cmd_name=emg_resting_background | + | ! META_CMD_NAME=EMG_Resting_Background |
- | ! meta_param= signal_names: | + | ! META_PARAM= SIGNAL_NAMES: |
- | ! meta_param= signal_folder: | + | ! META_PARAM= SIGNAL_FOLDER: |
- | ! meta_param= result_folder: | + | ! META_PARAM= RESULT_FOLDER: |
- | ! end_meta | + | ! END_META |
- | set_pipeline_parameter | + | Set_Pipeline_Parameter |
- | /parameter_name=folder | + | /PARAMETER_NAME=FOLDER |
- | /parameter_value=::signal_folder | + | /PARAMETER_VALUE=::SIGNAL_FOLDER |
- | ! /parameter_value_search_for= | + | ! /PARAMETER_VALUE_SEARCH_FOR= |
- | ! /parameter_value_replace_with= | + | ! /PARAMETER_VALUE_REPLACE_WITH= |
- | ! /parameter_value_prefix= | + | ! /PARAMETER_VALUE_PREFIX= |
- | ! /parameter_value_append= | + | ! /PARAMETER_VALUE_APPEND= |
; | ; | ||
- | set_pipeline_parameter | + | Set_Pipeline_Parameter |
- | /parameter_name=result | + | /PARAMETER_NAME=RESULT |
- | /parameter_value=::result_folder | + | /PARAMETER_VALUE=::RESULT_FOLDER |
- | ! /parameter_value_search_for= | + | ! /PARAMETER_VALUE_SEARCH_FOR= |
- | ! /parameter_value_replace_with= | + | ! /PARAMETER_VALUE_REPLACE_WITH= |
- | ! /parameter_value_prefix= | + | ! /PARAMETER_VALUE_PREFIX= |
- | ! /parameter_value_append= | + | ! /PARAMETER_VALUE_APPEND= |
; | ; | ||
! --------------------------------------------------------------- | ! --------------------------------------------------------------- | ||
- | ! offset | + | ! Offset |
! (find overall mean of trial& | ! (find overall mean of trial& | ||
! subtract mean from all values to offset overall average to zero& | ! subtract mean from all values to offset overall average to zero& | ||
! if negative, add mean to all values to offset overall average to zero). | ! if negative, add mean to all values to offset overall average to zero). | ||
- | ! rectify | + | ! Rectify |
! (all values set to absolute values). | ! (all values set to absolute values). | ||
! --------------------------------------------------------------- | ! --------------------------------------------------------------- | ||
- | for_each | + | For_Each |
- | /iteration_parameter_name=index | + | /ITERATION_PARAMETER_NAME=INDEX |
- | /items=::signal_names | + | /ITEMS=::SIGNAL_NAMES |
; | ; | ||
- | metric_mean | + | Metric_Mean |
- | /result_metric_name=_mean | + | /RESULT_METRIC_NAME=_MEAN |
- | /apply_as_suffix_to_signal_name=true | + | /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE |
- | ! /result_metric_folder=processed | + | ! /RESULT_METRIC_FOLDER=PROCESSED |
- | /signal_types=analog | + | /SIGNAL_TYPES=ANALOG |
- | /signal_names=::index | + | /SIGNAL_NAMES=::INDEX |
- | /signal_folder=::folder | + | /SIGNAL_FOLDER=::FOLDER |
- | ! /signal_components=x | + | ! /SIGNAL_COMPONENTS=X |
- | /event_sequence= | + | /EVENT_SEQUENCE= |
- | /exclude_events= | + | /EXCLUDE_EVENTS= |
- | /generate_mean_and_stddev=false | + | /GENERATE_MEAN_AND_STDDEV=FALSE |
- | ! /append_to_existing_values=false | + | ! /APPEND_TO_EXISTING_VALUES=FALSE |
; | ; | ||
- | evaluate_expression | + | Evaluate_Expression |
- | /expression=abs(analog&:&:&:: | + | /EXPRESSION=ABS(ANALOG&:&:&:: |
- | /result_name=::index | + | /RESULT_NAME=::INDEX |
- | /result_type=analog | + | /RESULT_TYPE=ANALOG |
- | /result_folder=::result | + | /RESULT_FOLDER=::RESULT |
; | ; | ||
- | end_for_each | + | End_For_Each |
- | /iteration_parameter_name=index | + | /ITERATION_PARAMETER_NAME=INDEX |
; | ; | ||
! --------------------------------------------------------------- | ! --------------------------------------------------------------- | ||
- | ! calculated | + | ! Calculated |
! (level of digitized baseline noise). | ! (level of digitized baseline noise). | ||
- | ! apply noise threshold (i.e., the value determined from the | + | ! Apply noise threshold (i.e., the value determined from the |
- | ! resting | + | ! resting |
! ceiling through data at successively higher levels until | ! ceiling through data at successively higher levels until | ||
! all data values for the 5 second duration fall below the ceiling. | ! all data values for the 5 second duration fall below the ceiling. | ||
! --------------------------------------------------------------- | ! --------------------------------------------------------------- | ||
- | metric_maximum | + | Metric_Maximum |
- | /result_metric_name=_rest | + | /RESULT_METRIC_NAME=_REST |
- | /apply_as_suffix_to_signal_name=true | + | /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE |
- | /result_metric_folder=::result | + | /RESULT_METRIC_FOLDER=::RESULT |
- | /signal_types=analog | + | /SIGNAL_TYPES=ANALOG |
- | /signal_names= | + | /SIGNAL_NAMES= |
- | /signal_folder=::result | + | /SIGNAL_FOLDER=::RESULT |
- | /signal_components=x | + | /SIGNAL_COMPONENTS=X |
- | /event_sequence= | + | /EVENT_SEQUENCE= |
- | /exclude_events= | + | /EXCLUDE_EVENTS= |
- | /generate_mean_and_stddev=false | + | /GENERATE_MEAN_AND_STDDEV=FALSE |
- | ! /append_to_existing_values=false | + | ! /APPEND_TO_EXISTING_VALUES=FALSE |
- | /create_global_maximum=true | + | /CREATE_GLOBAL_MAXIMUM=TRUE |
; | ; | ||
</ | </ | ||
- | ===== madonna emg remove background meta-command ===== | + | ==== Madonna EMG Remove Background Meta-Command |
- | the following | + | The following |
< | < | ||
- | ! begin_meta | + | ! BEGIN_META |
- | ! meta_cmd_name=madonna emg remove background | + | ! META_CMD_NAME=Madonna EMG Remove Background |
- | ! meta_param= signal_names: | + | ! META_PARAM= SIGNAL_NAMES: |
- | ! meta_param= signal_folder: | + | ! META_PARAM= SIGNAL_FOLDER: |
- | ! meta_param= result_folder: | + | ! META_PARAM= RESULT_FOLDER: |
- | ! meta_param= background_folder: | + | ! META_PARAM= BACKGROUND_FOLDER: |
- | ! end_meta | + | ! END_META |
- | set_pipeline_parameter | + | Set_Pipeline_Parameter |
- | /parameter_name=folder | + | /PARAMETER_NAME=FOLDER |
- | /parameter_value=::signal_folder | + | /PARAMETER_VALUE=::SIGNAL_FOLDER |
; | ; | ||
- | set_pipeline_parameter | + | Set_Pipeline_Parameter |
- | /parameter_name=result | + | /PARAMETER_NAME=RESULT |
- | /parameter_value=::result_folder | + | /PARAMETER_VALUE=::RESULT_FOLDER |
; | ; | ||
! --------------------------------------------------------------- | ! --------------------------------------------------------------- | ||
- | ! remove | + | ! Remove |
! --------------------------------------------------------------- | ! --------------------------------------------------------------- | ||
- | for_each | + | For_Each |
- | /iteration_parameter_name=index | + | /ITERATION_PARAMETER_NAME=INDEX |
- | /items=::signal_names | + | /ITEMS=::SIGNAL_NAMES |
; | ; | ||
- | evaluate_expression | + | Evaluate_Expression |
- | /expression=abs(analog&:&:&:: | + | /EXPRESSION=ABS(ANALOG&:&:&:: |
- | /result_name=::index | + | /RESULT_NAME=::INDEX |
- | /result_type=analog | + | /RESULT_TYPE=ANALOG |
- | /result_folder=::result | + | /RESULT_FOLDER=::RESULT |
; | ; | ||
- | set_data_to_new_values | + | Set_Data_To_New_Values |
- | /signal_types=analog | + | /SIGNAL_TYPES=ANALOG |
- | /signal_names=::index | + | /SIGNAL_NAMES=::INDEX |
- | /signal_folder=::result | + | /SIGNAL_FOLDER=::RESULT |
- | ! /signal_components=all_components | + | ! /SIGNAL_COMPONENTS=ALL_COMPONENTS |
- | ! /result_suffix= | + | ! /RESULT_SUFFIX= |
- | /result_folder=::result | + | /RESULT_FOLDER=::RESULT |
- | ! /event_sequence= | + | ! /EVENT_SEQUENCE= |
- | ! /exclude_events= | + | ! /EXCLUDE_EVENTS= |
- | /start_frame=1 | + | /START_FRAME=1 |
- | /end_frame=eof | + | /END_FRAME=EOF |
- | ! /use_point_rate=true | + | ! /USE_POINT_RATE=TRUE |
- | /replacement_values=0 | + | /REPLACEMENT_VALUES=0 |
- | /threshold_high=data_not_found | + | /THRESHOLD_HIGH=DATA_NOT_FOUND |
- | /threshold_low=global::metric&:&:&:: | + | /THRESHOLD_LOW=GLOBAL::METRIC&:&:&:: |
; | ; | ||
- | end_for_each | + | End_For_Each |
- | /iteration_parameter_name=index | + | /ITERATION_PARAMETER_NAME=INDEX |
; | ; | ||
</ | </ | ||
- | ===== an example | + | ==== An example |
- | in this example, some files are tagged | + | In this example, some files are TAGGED |
< | < | ||
- | !make the resting trial the active file. | + | !Make the Resting Trial the Active File. |
- | for_each | + | For_Each |
- | /iteration_parameter_name=tags | + | /ITERATION_PARAMETER_NAME=TAGS |
- | /items=rest | + | /ITEMS=REST |
; | ; | ||
- | select_active_file | + | Select_Active_File |
- | /file_name=::tags | + | /FILE_NAME=::TAGS |
- | !/query= | + | !/QUERY= |
; | ; | ||
- | ! calculates | + | ! Calculates |
- | emg_resting_background | + | EMG_Resting_Background |
- | /signal_names=lgas+lglu+lmed+ltib+lvas+rgas+rglu+rmed+rtib+rvas | + | /SIGNAL_NAMES=LGAS+LGLU+LMED+LTIB+LVAS+RGAS+RGLU+RMED+RTIB+RVAS |
- | /signal_folder=emg_filtered | + | /SIGNAL_FOLDER=EMG_FILTERED |
- | /result_folder=emg_background | + | /RESULT_FOLDER=EMG_BACKGROUND |
; | ; | ||
- | end_for_each | + | End_For_Each |
- | /iteration_parameter_name=tags | + | /ITERATION_PARAMETER_NAME=TAGS |
; | ; | ||
- | ! this loop will remove the resting background from the signals. | + | ! This loop will remove the resting background from the signals. |
- | for_each | + | For_Each |
- | /iteration_parameter_name=tags | + | /ITERATION_PARAMETER_NAME=TAGS |
- | /items=emg+gait | + | /ITEMS=EMG+GAIT |
; | ; | ||
- | select_active_file | + | Select_Active_File |
- | /file_name=::tags | + | /FILE_NAME=::TAGS |
- | !/query= | + | !/QUERY= |
; | ; | ||
- | ! call the emg_remove_background meta-command | + | ! Call the EMG_Remove_Background Meta-Command |
- | emg_remove_background | + | EMG_Remove_Background |
- | /signal_names=lgas+lglu+lmed+ltib+lvas+rgas+rglu+rmed+rtib+rvas | + | /SIGNAL_NAMES=LGAS+LGLU+LMED+LTIB+LVAS+RGAS+RGLU+RMED+RTIB+RVAS |
- | /signal_folder=emg_filtered | + | /SIGNAL_FOLDER=EMG_FILTERED |
- | /background_folder=emg_background | + | /BACKGROUND_FOLDER=EMG_BACKGROUND |
- | /result_folder=emg_processed | + | /RESULT_FOLDER=EMG_PROCESSED |
; | ; | ||
- | end_for_each | + | End_For_Each |
- | /iteration_parameter_name=tags | + | /ITERATION_PARAMETER_NAME=TAGS |
; | ; | ||
</ | </ |
visual3d/documentation/emg/processing_tools.1718801258.txt.gz · Last modified: 2024/06/19 12:47 by sgranger