User Tools

Site Tools


visual3d:documentation:pipeline:metric_commands:metric_compute_gait_signal_stats

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:metric_commands:metric_compute_gait_signal_stats [2024/07/12 14:04] – created sgrangervisual3d:documentation:pipeline:metric_commands:metric_compute_gait_signal_stats [2025/09/23 17:46] (current) – [Notes and Examples] wikisysop
Line 1: Line 1:
-====== Metric_Compute_Gait_Signal_Stats ======+====== Metric Compute Gait Signal Stats ======
  
-These discrete gain metrics are part of the common cohort of [[[https://www.sciencedirect.com/science/article/abs/pii/0167945796000061|Gait Parameters]]].+====Overview====
  
-Create user defined statistics for a set of signals. The following stats are computed for the signals selected for each side of the body selected.+These discrete gain metrics are part of the common cohort of [[https://www.sciencedirect.com/science/article/abs/pii/0167945796000061 | Gait Parameters]].
  
-===== Signal_Stats =====+This command is used to create user defined statistics for a set of signals. It can be found in the Pipeline Workshop within the Metric folder. The following stats are computed for the signals selected for each side of the body selected.
  
 Signal value at Heel Strike Signal value at Heel Strike
Line 44: Line 44:
 Swing (Count)= number of swing phases used Swing (Count)= number of swing phases used
 Cycle (Count)= number of cycles used. Cycle (Count)= number of cycles used.
-===== Command_Dialog ===== 
  
-{{GaitSignalStatsDlg.jpg}} +====Pipeline Command====
- +
-===== Pipeline_Command =====+
  
 The pipeline command is as follows: The pipeline command is as follows:
  
-**Metric_Compute_Gait_Signal_Stats**+<code> 
 +Metric_Compute_Gait_Signal_Stats
 /SIGNAL_TYPES= /SIGNAL_TYPES=
 +! /SIGNAL_FOLDER=ORIGINAL
 ! /SIGNAL_NAMES= ! /SIGNAL_NAMES=
-! /SIGNAL_FOLDER=ORIGINAL 
 ! /SIGNAL_COMPONENTS= ! /SIGNAL_COMPONENTS=
 ! /COMPONENT_SEQUENCE= ! /COMPONENT_SEQUENCE=
-/COMPUTE_LEFT_SIDE= +/COMPUTE_LEFT_SIDE= 
-/COMPUTE_RIGHT_SIDE=+/COMPUTE_RIGHT_SIDE=
 ! /RESULT_FOLDER=SIGNAL_STATS ! /RESULT_FOLDER=SIGNAL_STATS
 ! /RHS_EVENT=RHS ! /RHS_EVENT=RHS
Line 70: Line 68:
 ! /APPEND_COMPONENT_TO_RESULT_NAME=FALSE ! /APPEND_COMPONENT_TO_RESULT_NAME=FALSE
 ! /MERGE_COMPONENTS=FALSE ! /MERGE_COMPONENTS=FALSE
-**;** +
-===== Resulting_Signals =====+</code> 
 + 
 +====Command Parameters==== 
 + 
 +The following table shows the command parameters and descriptions: 
 + 
 +|**SIGNAL_TYPES** |**Specify signal types**| 
 +|**SIGNAL_FOLDER**|**Specify signal folder**| 
 +|**SIGNAL_NAMES**|**Specify signal names**| 
 +|**SIGNAL_COMPONENTS**|**Each component of the signal will generate a metric signal containing the coefficients for that component of the signal.**| 
 +|**COMPONENT_SEQUENCE**|**Which component of the signal will be used for statistical analysis of the sequence.**| 
 +|**COMPUTE_LEFT/RIGHT_SIDE**|**Which side events will be computed for.**| 
 +|**RESULT_FOLDER**|**Assigning folder to hold results.**| 
 +|**---_EVENT**|**Assigning names to events.**| 
 +|**LEFT/RIGHT_SIDE_RESULT_NAME_PREFIX**|**Assigning names to left and right sides**| 
 +|**RESULT_NAME_SUFFIX**|**Specify suffix applied to results**| 
 +|**APPEND_COMPONENT_TO_RESULT_NAME**|**whether or not to change component name**| 
 +|**MERGE_COMPONENTS**|**Whether or not to merge components**| 
 + 
 +==== Dialog ===
 + 
 +The command can be edited in a text editor or in a dialog form. To edit in the dialog pop up form either click on the **Edit** button in the pipeline workshop or double-click on the pipeline command. The dialog is shown below. 
 + 
 +{{:GaitSignalStatsDlg.jpg}} 
 + 
 +The dialog box allows you to assign values to the command parameters outlined above. 
 + 
 +====Notes and Examples==== 
 + 
 +=== Resulting_Signals ===
  
 Several of the command parameters affect the signal that is created. Several of the command parameters affect the signal that is created.
  
-==== Example1 ====+===Example 1===
  
 This group of commands results in a metric signal being created in the SIGNAL_STATS folder that is the same name as /Signal_Names parameter and it contains values related to the X-Component of the signal. This group of commands results in a metric signal being created in the SIGNAL_STATS folder that is the same name as /Signal_Names parameter and it contains values related to the X-Component of the signal.
  
-/RESULT_FOLDER=SIGNAL_STATS +<code> 
-/APPEND_COMPONENT_TO_RESULT_NAME=FALSE +Metric_Compute_Gait_Signal_Stats 
-/RESULT_NAME_SUFFIX=+/SIGNAL_TYPES=LINK_MODEL_BASED 
 +/SIGNAL_FOLDER=ORIGINAL 
 +/SIGNAL_NAMES
 +/SIGNAL_COMPONENTS=
 /COMPONENT_SEQUENCE=X /COMPONENT_SEQUENCE=X
-/MERGE_COMPONENTS=FALSE +/COMPUTE_LEFT_SIDE=TRUE 
-\\ +/COMPUTE_RIGHT_SIDE= 
 +! /RESULT_FOLDER=SIGNAL_STATS 
 +! /RHS_EVENT=RHS 
 +! /LHS_EVENT=LHS 
 +! /RTO_EVENT=RTO 
 +! /LTO_EVENT=LTO 
 +! /LEFT_SIDE_RESULT_NAME_PREFIX=L_ 
 +! /RIGHT_SIDE_RESULT_NAME_PREFIX=R_ 
 +! /RESULT_NAME_SUFFIX=_Stats 
 +! /APPEND_COMPONENT_TO_RESULT_NAME=FALSE 
 +/MERGE_COMPONENTS=FALSE 
 +; 
 +</code>
  
-==== Example2 ====+===Example 2===
  
 This group of commands results in a metric signal being created in the SIGNAL_STATS folder that appends the string _Stats to the name in the /Signal_Names parameter and it contains values related to the X-Component of the signal. This group of commands results in a metric signal being created in the SIGNAL_STATS folder that appends the string _Stats to the name in the /Signal_Names parameter and it contains values related to the X-Component of the signal.
  
 +<code>
 +Metric_Compute_Gait_Signal_Stats
 +/SIGNAL_TYPES=LINK_MODEL_BASED
 +/SIGNAL_FOLDER=ORIGINAL
 +! /SIGNAL_NAMES=
 +! /SIGNAL_COMPONENTS=
 +/COMPONENT_SEQUENCE=X
 +/COMPUTE_LEFT_SIDE=TRUE
 +/COMPUTE_RIGHT_SIDE=
 /RESULT_FOLDER=SIGNAL_STATS /RESULT_FOLDER=SIGNAL_STATS
-/APPEND_COMPONENT_TO_RESULT_NAME=TRUE+/RHS_EVENT=RHS 
 +! /LHS_EVENT=LHS 
 +! /RTO_EVENT=RTO 
 +! /LTO_EVENT=LTO 
 +! /LEFT_SIDE_RESULT_NAME_PREFIX=L_ 
 +! /RIGHT_SIDE_RESULT_NAME_PREFIX=R_
 /RESULT_NAME_SUFFIX=_Stats /RESULT_NAME_SUFFIX=_Stats
-/COMPONENT_SEQUENCE=X+/APPEND_COMPONENT_TO_RESULT_NAME=TRUE
 /MERGE_COMPONENTS=FALSE /MERGE_COMPONENTS=FALSE
-\\+
 +</code>
  
 +===Example 3===
  
-==== Example3 ====+Computing stats from force plate data for left ankle angle using **Automatic Gait Events**: This group of commands results in a metric signal being created in the SIGNAL_STATS folder for all components of the left ankle angle during a trial. The command appends the string "X_Stats" to the name in the /Signal_Names parameter containing values related to the X-Component of the signal; "Y_Stats" to the name in the /Signal_Names parameter containing values related to the Y-Component of the signals.;"Z_Stats" to the name in the /Signal_Names parameter containing values related to the Z-Component of the signals.
  
-This group of commands results in a metric signal being created in the SIGNAL_STATS folder that appends the string "_Stats_X" to the name in the /Signal_Names parameter and it contains values related to the X-Component of the signal.+Gait events describe key moments in the walking or running cycle - such as heel-strikes and toe-offs. If [[Visual3D:Documentation:Kinematics_and_Kinetics:External_Forces:Force_Assignment|Force Platform assignments]] exist for motion trial, the **Automatic_Gait_Events** command __automatically__ detects these gait events and places an **event label** at the frames where the subject steps ON and OFF the surface of the platform.
  
-/RESULT_FOLDER=SIGNAL_STATS +Start by loading any trial with force plate data for a gait cycle. First, we will use **Automatic Gait Events** to label the key events in the cycle.
-/APPEND_COMPONENT_TO_RESULT_NAME=TRUE +
-/RESULT_NAME_SUFFIX=_Stats +
-/COMPONENT_SEQUENCE=X +
-/MERGE_COMPONENTS=FALSE +
-\\+
  
 +<code>
 +Automatic_Gait_Events
 +! /FRAME_WINDOW=8
 +! /USE_TPR=TRUE
 +! /TPR_EVENT_INSTANCE=1
 +;
 +</code>
  
-==== Example4 ====+Next we will use **Metric Compute Gait Signal Stats** to calculate key statistics for the **left ankle angle** using the events we just defined.
  
-This group of commands results in a metric signal being created in the SIGNAL_STATS folder that appends the string "_Stats_X" to the name in the /Signal_Names parameter containing values related to the X-Component of the signal; "_Stats_Y" to the name in the /Signal_Names parameter containing values related to the Y-Component of the signals.;"_Stats_Z" to the name in the /Signal_Names parameter containing values related to the Z-Component of the signals.. +<code> 
- +Metric_Compute_Gait_Signal_Stats 
-/RESULT_FOLDER=SIGNAL_STATS +/SIGNAL_TYPES=LINK_MODEL_BASED 
-/APPEND_COMPONENT_TO_RESULT_NAME=TRUE +/SIGNAL_FOLDER=ORIGINAL 
-/RESULT_NAME_SUFFIX=_Stats+/SIGNAL_NAMES=LAnkleAngle 
 +/SIGNAL_COMPONENTS=
 /COMPONENT_SEQUENCE=ALL /COMPONENT_SEQUENCE=ALL
-/MERGE_COMPONENTS=FALSE +/COMPUTE_LEFT_SIDE=TRUE 
-==== Example5 ==== +/COMPUTE_RIGHT_SIDE=FALSE 
- +! /RESULT_FOLDER=SIGNAL_STATS 
-This group of commands results in a metric signal being created in the SIGNAL_STATS folder that appends the string "_Stats" to the name in the /Signal_Names parameter containing values related to the X-Component of the signal; The resulting signal contains 3 frames of data. The first row is related to the X-Component, the second row is related to the Y-Component and the third row is related to the Z-Component. +! /RHS_EVENT=RHS 
- +! /LHS_EVENT=LHS 
-/RESULT_FOLDER=SIGNAL_STATS +! /RTO_EVENT=RTO 
-/APPEND_COMPONENT_TO_RESULT_NAME=FALSE +/LTO_EVENT=LTO 
-/RESULT_NAME_SUFFIX=_Stats +/LEFT_SIDE_RESULT_NAME_PREFIX=L_ 
-/COMPONENT_SEQUENCE=ALL +/RIGHT_SIDE_RESULT_NAME_PREFIX=R_ 
-/MERGE_COMPONENTS=TRUE+/RESULT_NAME_SUFFIX=_Stats 
 +/APPEND_COMPONENT_TO_RESULT_NAME=TRUE 
 +/MERGE_COMPONENTS=FALSE 
 +
 +</code>
  
 +The resulting folders and data should look something like this:
  
 +{{:visual3d:documentation:pipeline:metric_commands:lankledata.png?600|}}
visual3d/documentation/pipeline/metric_commands/metric_compute_gait_signal_stats.1720793079.txt.gz · Last modified: 2024/07/12 14:04 by sgranger