visual3d:documentation:pipeline:metric_commands:metric_compute_temporal_distance
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:metric_commands:metric_compute_temporal_distance [2025/05/20 18:28] – Made consistent with the Gait Temporal Distance page. wikisysop | visual3d:documentation:pipeline:metric_commands:metric_compute_temporal_distance [2025/09/23 19:10] (current) – [Examples] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Metric Compute Temporal Distance ====== | ====== Metric Compute Temporal Distance ====== | ||
- | This pipeline computes the [[Visual3D: | + | ====Overview==== |
+ | |||
+ | This pipeline computes the [[Visual3D: | ||
If, for example, you have two groups of files (e.g. 2 TAGS) and you want to compute temporal distance metrics independently for each group. | If, for example, you have two groups of files (e.g. 2 TAGS) and you want to compute temporal distance metrics independently for each group. | ||
Line 9: | Line 11: | ||
===== Pipeline Command ===== | ===== Pipeline Command ===== | ||
- | Command including default values. | + | Command including default values. This command can be found in the **Pipeline Workshop** within the **Metric** folder. |
< | < | ||
Line 69: | Line 71: | ||
/ | / | ||
+ | |||
+ | ====Command Parameters==== | ||
+ | |||
+ | The following table shows the command parameters seen above and their descriptions: | ||
+ | |||
+ | |**GLOBAL_RESULT_METRIC_FOLDER**|**Name of metric result folder**| | ||
+ | |**CALCULATE_PER_FILE**|**Calculate average values across entire trial**| | ||
+ | |**CALCULATE_PER_ALL_CMO_GLOBALS**|**Calculate global average**| | ||
+ | |**CREATE_ALL_INSTANCES**|**value for each sequence (multiple values per trial)**| | ||
+ | |**CREATE_EMPTY_VALUES**|****| | ||
+ | |**RIGHT/ | ||
+ | |**HEIGHT**|**Signal type and name defining height**| | ||
+ | |**---_EVENT**|**Event signal names for foot on/off**| | ||
+ | |**STRICT_EVENT_SEQUENCE_VALIDATION**|**---**| | ||
+ | |**R/ | ||
+ | |**INCLUDE/ | ||
+ | |**EVENT_INSTANCE**|**Which instance of an event to use**| | ||
+ | |**COMPUTE_--------**|**Which values to be computed or excluded**| | ||
+ | |**TREADMILL_SPEED**|**Speed of treadmill used for recording (if applicable)**| | ||
+ | |**TREADMILL_DIRECTION**|**Direction of treadmill used for recording (if applicable)**| | ||
===== Temporal Distance Dialog ===== | ===== Temporal Distance Dialog ===== | ||
Line 81: | Line 103: | ||
|{{: | |{{: | ||
+ | ====Examples==== | ||
+ | ===Simple example: Flight Time === | ||
+ | |||
+ | To use the **Compute Temporal Distance** command on gait cycle trials we must first identify key gait events. This can be done using the **Automatic Gait Events** command as shown below. | ||
+ | |||
+ | < | ||
+ | Automatic_Gait_Events | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Now that key events in the gait cycle have been identified we can use the **Compute Temporal Distance** command to compute the mean left and right flight time for each trial. | ||
+ | |||
+ | Flight time is the average time from LTO to RHS (ensuring no LHS or RTO events occur between LTO and RHS) and RTO to LHS (ensuring no RHS or LTO events occur between RTO and LHS). | ||
+ | * Left flight time is calculated from LTO to RHS. | ||
+ | * Right flight time is calculated from RTO to LHS. | ||
+ | |||
+ | < | ||
+ | Metric_Compute_Temporal_Distance | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Once the pipeline has been executed you should see a new **TEMPORAL_DISTANCE** folder in the METRIC section of the Signals and Events tab. Within this folder you can find the mean flight time for the left and right sides. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===Complex example: Comparing Left and Right Stride Length for treadmill trial=== | ||
+ | |||
+ | Here we will look at a gait cycle trial using data for users running on a treadmill and compare their mean stride length for the left and right sides. | ||
+ | |||
+ | Similarly to above, we will start by using **Automatic Gait Events** to define the gait cycle. | ||
+ | |||
+ | Next, we will use **Metric_Compute_Temporal_Distance** to compute the length of each stride for both sides, and adjust the command parameters to account for the speed of the single belt treadmill used to record the data. In this case the treadmill was moving at 1.25 m/s and the subject walking in the y-direction (0,1,0). | ||
+ | |||
+ | < | ||
+ | Metric_Compute_Temporal_Distance | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | The computed stride data can now be found in the **Metric** folder under **Temporal_Distance**. | ||
+ | |||
+ | To compare the left and right stride lengths we will create a horizontal chart in the **Reports** tab. | ||
+ | |||
+ | Start by adding a new page to your report, and adding **Temporal and Distance Metrics** as an item. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Fill out the dialog box as so: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Click done. You should now see a bar chart comparing the left and right step length for your trial. | ||
+ | |||
+ | {{: | ||
===== Multisubject Support ===== | ===== Multisubject Support ===== | ||
visual3d/documentation/pipeline/metric_commands/metric_compute_temporal_distance.1747765722.txt.gz · Last modified: 2025/05/20 18:28 by wikisysop