sift:tutorials:perform_statistical_parametric_mapping
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sift:tutorials:perform_statistical_parametric_mapping [2024/10/03 18:04] – [Curve Registration] wikisysop | sift:tutorials:perform_statistical_parametric_mapping [2024/12/17 18:27] (current) – [Analysis] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Perform Statistical Parametric Mapping ====== | ====== Perform Statistical Parametric Mapping ====== | ||
- | This tutorial will show you how to perform an SPM analysis in Sift. An SPM analysis helps you gather statistical analysis contained in the original n-dimensional space as your data, ensuring the removal of potential biasing and allowing for easily understood visualizations. More information on SPM can be found in the [[Sift: | + | This tutorial will show you how to perform an SPM analysis in Sift. An SPM analysis helps you gather statistical analysis contained in the original n-dimensional space as your data(commonly 101 normalized points in biomechanics), ensuring the removal of potential biasing and allowing for easily understood visualizations. More information on SPM can be found in the [[Sift: |
- | ==== Research Question ==== | + | ===== Research Question |
- | The question we will be trying to answer today is: "Is there a difference between how an OA patient walks and how a normal control group walks?" | + | The question we will be trying to answer today is: "Is there a difference between how an Osteoarthritis (OA) patient walks and how a normal control |
- | ==== Data ==== | + | ===== Data ===== |
This tutorial uses overground walking data from roughly 100 subjects divided into two conditions, normal control and osteoarthritis (moderate to severe). This data set can be found in your Sift program files under " | This tutorial uses overground walking data from roughly 100 subjects divided into two conditions, normal control and osteoarthritis (moderate to severe). This data set can be found in your Sift program files under " | ||
Line 13: | Line 13: | ||
We will be using the same dataset as we used in the [[Sift: | We will be using the same dataset as we used in the [[Sift: | ||
- | === Set the library path to the data directory === | + | ==== Set the library path to the data directory |
As with previous tutorials, we begin by loading the CMZ library and defining the queries relevant to our question. | As with previous tutorials, we begin by loading the CMZ library and defining the queries relevant to our question. | ||
Line 21: | Line 21: | ||
- Click {{: | - Click {{: | ||
- | === Define queries and calculate groups === | + | ==== Define queries and calculate groups |
For this tutorial we will manually create two groups based on tags, one for subjects with osteoarthritis and one for normal control subjects. We begin by defining a query for subjects with the OA tag (indicating osteoarthritis). | For this tutorial we will manually create two groups based on tags, one for subjects with osteoarthritis and one for normal control subjects. We begin by defining a query for subjects with the OA tag (indicating osteoarthritis). | ||
Line 42: | Line 42: | ||
You can verify here that the new NC group has the same signal and event selections as the OA group. Click **Calculate All Queries** and then close the Query Builder dialog. | You can verify here that the new NC group has the same signal and event selections as the OA group. Click **Calculate All Queries** and then close the Query Builder dialog. | ||
- | ==== Curve Registration ==== | + | ===== Curve Registration |
Following some of the [[https:// | Following some of the [[https:// | ||
Line 59: | Line 59: | ||
You should see the registered signals "line up" much more than before registering the data: | You should see the registered signals "line up" much more than before registering the data: | ||
- | === OA Plots === | + | ==== OA Plots ==== |
{{: | {{: | ||
- | === NC Plots === | + | ==== NC Plots ==== |
{{: | {{: | ||
- | ==== SPM ==== | + | ===== SPM ===== |
With our pre-processing complete, we can move onto the SPM Analysis! The question we are investigating here is "Is there a difference between how an OA patient walks and how a normal control group walks?" | With our pre-processing complete, we can move onto the SPM Analysis! The question we are investigating here is "Is there a difference between how an OA patient walks and how a normal control group walks?" | ||
- | === GLM === | + | ==== GLM ==== |
We begin by creating a General Linear Model (GLM) of our data. This is a [[sift: | We begin by creating a General Linear Model (GLM) of our data. This is a [[sift: | ||
- | {{ :GLM_Dialog.png?500}} | + | {{ :glm_dialog.png?500}} |
This process is completed through the following steps: | This process is completed through the following steps: | ||
- | | + | === Original Data === |
+ | |||
+ | | ||
- For our analysis, select the OA and NC, and all Workspaces | - For our analysis, select the OA and NC, and all Workspaces | ||
- Select Create GLM | - Select Create GLM | ||
- Enter the following into the GLM Dialog: | - Enter the following into the GLM Dialog: | ||
* GLM Name: GLM | * GLM Name: GLM | ||
+ | * Statistical Test: Two-Sample T-Test | ||
* Group By: Group | * Group By: Group | ||
* The Groups Selected should be OA and NC | * The Groups Selected should be OA and NC | ||
+ | * Use Workspace Mean: Unchecked | ||
- Select Create GLM | - Select Create GLM | ||
You will then repeat this process for the registered data: | You will then repeat this process for the registered data: | ||
- | | + | === Registered Data === |
+ | |||
+ | | ||
- For our analysis, select the OA_Registered and NC_Registered, | - For our analysis, select the OA_Registered and NC_Registered, | ||
- Select Create GLM | - Select Create GLM | ||
- Enter the following into the GLM Dialog: | - Enter the following into the GLM Dialog: | ||
* GLM Name: GLM_Registered | * GLM Name: GLM_Registered | ||
+ | * Statistical Test: Two-Sample T-Test | ||
* Group By: Group | * Group By: Group | ||
* The Groups Selected should be OA_Registered and NC_Registered | * The Groups Selected should be OA_Registered and NC_Registered | ||
+ | * Use Workspace Mean: Unchecked | ||
- Select Create GLM | - Select Create GLM | ||
Line 101: | Line 109: | ||
{{: | {{: | ||
- | === Analysis === | + | ==== Analysis |
To begin creating our SPMs, we will move to the Statistics sub-tab. This is where we will run our statistical tests, and gain the real insights into our data. As mentioned, we want to understand if there is a difference in the flexion-Extension of the knee in OA patients versus a Normal Control group. A classical method of comparing 2 groups is to use the Student' | To begin creating our SPMs, we will move to the Statistics sub-tab. This is where we will run our statistical tests, and gain the real insights into our data. As mentioned, we want to understand if there is a difference in the flexion-Extension of the knee in OA patients versus a Normal Control group. A classical method of comparing 2 groups is to use the Student' | ||
Line 110: | Line 118: | ||
To complete these SPMs: | To complete these SPMs: | ||
+ | |||
+ | === Original Data === | ||
- Select GLM: GLM | - Select GLM: GLM | ||
Line 116: | Line 126: | ||
- For unregistered data: | - For unregistered data: | ||
* SPM Name: SPM | * SPM Name: SPM | ||
- | * Statistic: | + | * Statistic: |
* Group 1: OA | * Group 1: OA | ||
* Group 2: NC | * Group 2: NC | ||
+ | * Threshold: 0.05 | ||
+ | * Two-Tailed: Checked | ||
+ | |||
+ | === Registered Data === | ||
- Select GLM: GLM_Registered | - Select GLM: GLM_Registered | ||
Line 125: | Line 139: | ||
- For registered data: | - For registered data: | ||
* SPM Name: SPM_Registered | * SPM Name: SPM_Registered | ||
- | * Statistic: | + | * Statistic: |
* Group 1: OA_Registered | * Group 1: OA_Registered | ||
* Group 2: NC_Registered | * Group 2: NC_Registered | ||
+ | * Threshold: 0.05 | ||
+ | * Two-Tailed: Checked | ||
- | We have now calculated two SPMs, which we can easily compare/ | + | We have now calculated two SPMs, which we can easily compare/ |
{{: | {{: | ||
- | The difference between both SPMs is most apparent at ~65% of the gait cycle. Here we can see a significantly more pronounced t statistic (~10 vs ~12.5). While both are well above the specified threshold where alpha=0.01, this can show us how curve registration can be useful to correctly align our data, and get more meaningful results from our analysis. | + | The difference between both SPMs is most apparent at ~65% of the gait cycle. Here we can see a significantly more pronounced t statistic (~10 vs ~12.5). While both are well above the specified threshold where alpha=0.05, this can show us how curve registration can be useful to correctly align our data, and get more meaningful results from our analysis. |
{{: | {{: |
sift/tutorials/perform_statistical_parametric_mapping.1727978647.txt.gz · Last modified: 2024/10/03 18:04 by wikisysop