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 [2024/11/15 18:17] – 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 ====== | ||
- | Compute the [[Visual3D: | + | ====Overview==== |
- | Note that the results consist of data from multiple files, so the results are stored in the [[Visual3D: | + | This pipeline computes the [[Visual3D: |
- | + | ||
- | The command acts on 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. | ||
- | |||
* First, make one TAG active and set the output folder (GLOBAL_RESULT_METRIC_FOLDER) with a name reflecting the TAG. | * First, make one TAG active and set the output folder (GLOBAL_RESULT_METRIC_FOLDER) with a name reflecting the TAG. | ||
* Second, make the other TAG active and set a unique output folder. | * Second, make the other TAG active and set a unique output folder. | ||
- | ==== 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 20: | Line 17: | ||
! / | ! / | ||
! / | ! / | ||
+ | ! / | ||
! / | ! / | ||
- | ! /REPORT_TIMES_AS_PERCENT_CYCLE=FALSE | + | ! /CREATE_EMPTY_VALUES=TRUE |
! / | ! / | ||
! / | ! / | ||
Line 30: | Line 28: | ||
/ | / | ||
! / | ! / | ||
+ | ! / | ||
+ | ! / | ||
! / | ! / | ||
! / | ! / | ||
Line 47: | Line 47: | ||
! / | ! / | ||
! / | ! / | ||
+ | ! / | ||
! / | ! / | ||
! / | ! / | ||
Line 53: | Line 54: | ||
</ | </ | ||
- | Note that the treadmill direction is new specified as a unit vector. | + | Note that the treadmill direction is new, and is specified as a unit vector. |
- | === Legacy Treadmill Parameters === | + | ==== Legacy Treadmill Parameters |
If the subject is walking in the y-direction of the laboratory the unit vector would be: | If the subject is walking in the y-direction of the laboratory the unit vector would be: | ||
Line 66: | Line 67: | ||
/ | / | ||
</ | </ | ||
- | The new parameter is | + | |
+ | The new parameter is: | ||
/ | / | ||
- | ==== Temporal Distance Dialog ==== | ||
- | |**Version 4 & Earlier: | + | ====Command Parameters==== |
- | === Files for computing temporal distances === | + | 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 ===== |
- | \\ | + | |
+ | The below dialog has been used within Visual3D as of v5. | ||
+ | ^ Dialog ^ Description ^ | ||
+ | |{{: | ||
|{{: | |{{: | ||
+ | |{{: | ||
+ | |{{: | ||
+ | |{{: | ||
- | \\ | + | ====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. | ||
- | |{{:EditTemporalDistancev5_RANGE.jpg}} | + | < |
+ | 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. |
- | \\ | + | |
+ | {{: | ||
- | |{{:EditTemporalDistancev5_TREADMILL.jpg}} | + | ===Complex example: Comparing Left and Right Stride Length for treadmill |
- | \\ | + | 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 |
- | \\ | + | < |
- | \\ | + | Metric_Compute_Temporal_Distance |
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | The computed stride data can now be found in the **Metric** folder under **Temporal_Distance**. | ||
- | ==== Subject computation using subject name/prefix parameters ==== | + | To compare the left and right stride lengths we will create a horizontal chart in the **Reports** tab. |
- | Visual3D is in the process of supporting multiple subjects within the same workspace, and across CMO/Z library workspaces. Older versions of Visual3D will not support the subject prefix extensions of this command.\\ | + | Start by adding |
- | \\ | + | |
- | When using a version of Visual3D prior to implementing multisubject support, Visual3D treats each CMO/Z file as a single subject. In this way, the temporal | + | |
- | \\ | + | |
- | Visual3D with multisubject support extends these metric calculations to be computed for each subject that is identified in the .C3D parameters SUBJECT section. In this way, the a single CMO/Z GLOBAL will contain the computed metrics for each subject within the CMO/Z file, prefixed with the subject' | + | |
- | \\ | + | |
- | When working across CMO/Z files in the CMO/Z library, multisubject support for this command will treat each subject mean in each CMO/Z file as separate subject averages to be included for calculating the temporal and distance metric averages across all the subjects in the CMO/Z library. | + | |
- | \\ | + | {{: |
- | \\ | + | |
+ | Fill out the dialog box as so: | ||
- | ==== Temporal Distance Control Data ==== | + | {{: |
+ | |||
+ | Click done. You should now see a bar chart comparing the left and right step length for your trial. | ||
+ | |||
+ | {{: | ||
+ | ===== Multisubject Support ===== | ||
+ | |||
+ | Versions of Visual3D more recent than v2022.08.1 support [[visual3d: | ||
+ | |||
+ | Older versions of Visual3D will not support the subject prefix extensions of this command and will treat each CMO/Z file as a single subject. In this way, the temporal and distance metrics are computed in the CMO/Z GLOBAL for the subject processed within that CMO. In the same manner, when computing the temporal and distance metrics across a library of subjects, each CMO/Z is treated as a single subject and then the subject averages are computed across CMO/Z files and placed into the workspace GLOBAL for the overall mean values across subjects. | ||
+ | |||
+ | ===== Temporal Distance Control Data ===== | ||
The following are useful resources for temporal data metrics for Control Data Sets. | The following are useful resources for temporal data metrics for Control Data Sets. | ||
Line 133: | Line 245: | ||
|This study investigated the basic spatio-temporal gaitmeasures of 898 primary school-aged children (5–13 years) and 82 young adults (18–27 years). Participants completed 6–8 walks at preferred speed alonga GAITRite walkway whilst barefoot and whilst wearing athletic shoes or runners. Outcome measures (non-normalized and normalized) were gait speed, cadence, step and stride length, support base, single and double support, stance duration, foot angle and associated symmetry measures. Non-normalized measures of speed, step and stride length, support base and foot angle increased with age whereas cadence reduced. Normalized measures remained unchanged with age in children whereas the young adults (both conditions) exhibited a 2.3% reduction in single support, a 5.1% increase in double support and a 2.6% increase in stance duration (p < 0.0001). For the entire sample, shoes increased walking speed by 8 cm/s, step length by 5.5 cm, stride length by 11.1 cm and base of support by 0.5 cm. In contrast, foot angle and cadence reduced by 0.18 and 3.9 steps/min respectively. Shoes increased both double support (1.6%) and stance time (0.8%), whereas single support reduced by 0.8%. Symmetry remained unaffected by age. On average, measures of step and stride symmetry (combining both conditions) fell around 0.7 cm, whereas measures of symmetry for step and stance time, single and double support fell around 0.6%. Footwear significantly affected gait (p < 0.0001). Gait may not be mature by age 13. Gait is symmetrical in healthy children and young adults but may change with pathology.| | |This study investigated the basic spatio-temporal gaitmeasures of 898 primary school-aged children (5–13 years) and 82 young adults (18–27 years). Participants completed 6–8 walks at preferred speed alonga GAITRite walkway whilst barefoot and whilst wearing athletic shoes or runners. Outcome measures (non-normalized and normalized) were gait speed, cadence, step and stride length, support base, single and double support, stance duration, foot angle and associated symmetry measures. Non-normalized measures of speed, step and stride length, support base and foot angle increased with age whereas cadence reduced. Normalized measures remained unchanged with age in children whereas the young adults (both conditions) exhibited a 2.3% reduction in single support, a 5.1% increase in double support and a 2.6% increase in stance duration (p < 0.0001). For the entire sample, shoes increased walking speed by 8 cm/s, step length by 5.5 cm, stride length by 11.1 cm and base of support by 0.5 cm. In contrast, foot angle and cadence reduced by 0.18 and 3.9 steps/min respectively. Shoes increased both double support (1.6%) and stance time (0.8%), whereas single support reduced by 0.8%. Symmetry remained unaffected by age. On average, measures of step and stride symmetry (combining both conditions) fell around 0.7 cm, whereas measures of symmetry for step and stance time, single and double support fell around 0.6%. Footwear significantly affected gait (p < 0.0001). Gait may not be mature by age 13. Gait is symmetrical in healthy children and young adults but may change with pathology.| | ||
|[[https:// | |[[https:// | ||
- | |||
|**Lythgo N, Wilson C, Galea M(2011)** " | |**Lythgo N, Wilson C, Galea M(2011)** " | ||
|//Gait and Posture 33, 2011, 29-35// | |//Gait and Posture 33, 2011, 29-35// | ||
|This study recorded basic gait data from 656 healthy primary school-aged children (5–13 years) and 81 young adults (18–27 years) whilst walking over-ground across a level walkway at varying speed. It investigated the effect of gait speed and re-examined the issue of gait maturation. Participants completed 6–8 walks at self-selected slow, free and fast speed along a GAITRite walkway whilst wearing athletic shoes. Outcome measures (non-normalized and normalized) were gait speed, cadence, step and stride length, step and stride time, support base, single and double support (%), stance duration (%), foot angle and associated symmetry measures. Compared to free speed, participants walked 24% slower for the slow speed and 30% faster for the fast speed (p < 0.0001). Both normalized and non-normalized measures of cadence, step and stride length increased with speed (p < 0.001) whereas step and stride time reduced (p < 0.001). As a percentage of the gait cycle, single support and stance duration increased with speed (p < 0.001) whereas double support reduced (p < 0.001). Foot angle was significantly less (less toe-out) for the fast speed than the free and slow speeds (p < 0.001) whereas support base was unaffected by speed. Symmetry measures were unaffected by age or speed. Step and stride symmetry differentials (combining conditions) fell around 0.8 cm, whereas symmetry differentials for step and stance time, single and double support fell around 0.7%. This information can be used by clinicians and researchers to assess the gait of children.| | |This study recorded basic gait data from 656 healthy primary school-aged children (5–13 years) and 81 young adults (18–27 years) whilst walking over-ground across a level walkway at varying speed. It investigated the effect of gait speed and re-examined the issue of gait maturation. Participants completed 6–8 walks at self-selected slow, free and fast speed along a GAITRite walkway whilst wearing athletic shoes. Outcome measures (non-normalized and normalized) were gait speed, cadence, step and stride length, step and stride time, support base, single and double support (%), stance duration (%), foot angle and associated symmetry measures. Compared to free speed, participants walked 24% slower for the slow speed and 30% faster for the fast speed (p < 0.0001). Both normalized and non-normalized measures of cadence, step and stride length increased with speed (p < 0.001) whereas step and stride time reduced (p < 0.001). As a percentage of the gait cycle, single support and stance duration increased with speed (p < 0.001) whereas double support reduced (p < 0.001). Foot angle was significantly less (less toe-out) for the fast speed than the free and slow speeds (p < 0.001) whereas support base was unaffected by speed. Symmetry measures were unaffected by age or speed. Step and stride symmetry differentials (combining conditions) fell around 0.8 cm, whereas symmetry differentials for step and stance time, single and double support fell around 0.7%. This information can be used by clinicians and researchers to assess the gait of children.| | ||
- | |[[https:// | + | |[[https:// |
- | + | ||
visual3d/documentation/pipeline/metric_commands/metric_compute_temporal_distance.1731694669.txt.gz · Last modified: 2024/11/15 18:17 by wikisysop