User Tools

Site Tools


other:inspect3d:tutorials:analysis_of_baseball_hitters

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
other:inspect3d:tutorials:analysis_of_baseball_hitters [2025/01/10 20:33] wikisysopother:inspect3d:tutorials:analysis_of_baseball_hitters [2025/01/10 20:49] (current) wikisysop
Line 42: Line 42:
 **Note:** If you have downloaded the prebuilt CMZ workspace you will only find **baseball_hitting**. **Note:** If you have downloaded the prebuilt CMZ workspace you will only find **baseball_hitting**.
  
 +The tables below show the Tags, Signals, and Refinements that will be used in this tutorial. These will be seen in later steps.
 \\ \\
-Tables below show the Tags, Signals, and Refinements that will be used in this tutorial. These will be seen in later steps. 
- 
-\\ 
- 
- 
-\\ 
- 
  
 Table 1: Tag Definitions Table 1: Tag Definitions
Line 71: Line 65:
 ===== Build CMZs for Hitting Data ===== ===== Build CMZs for Hitting Data =====
  
-{{:hittingmeta.png}}+{{ :hittingmeta.png?400}}
  
-Select {{:I3DLoadLibrary.png}} **Load Library** on the top left of the toolbar, and click the **Build CMZ** button. In the Build CMZ dialog:+Select {{:I3DLoadLibrary.png?20}} **Load Library** on the top left of the toolbar, and click the **Build CMZ** button. 
 +In the Build CMZ dialog:
  
   - **Set the path to:** C:\...\...\baseball_hitting\data\c3d   - **Set the path to:** C:\...\...\baseball_hitting\data\c3d
Line 93: Line 88:
 ===== Loading Data into Inspect3D ===== ===== Loading Data into Inspect3D =====
  
-{{:model_Pelvis.png}}+{{ :model_Pelvis.png?350}}
  
-For our analysis, we are interested in finding the variance in pelvic angular velocity between high and low Blast bat speed among college and high school baseball players. For each signal in our analysis, we specified an x, y, and z coordinate for pelvic angular velocity with relation to the virtual lab, expressed in the pelvises coordinate system with movement in the x direction being **anterior posterior pelvic tilt**, movement in the y direction being **lateral pelvic tilt** and movement in the z axis being **internal external rotation**, which can be seen in the image below. Each group was then refined to be categorized into right hitters, competition level (either high school or college), and high or low bat speeds for the subject's specific competition level. If you wish to investigate something new, different approaches can be taken.+For our analysis, we are interested in finding the variance in pelvic angular velocity between high and low Blast bat speed among college and high school baseball players. For each signal in our analysis, we specified an x, y, and z coordinate for pelvic angular velocity with relation to the virtual lab, expressed in the pelvises coordinate system with movement in the x direction being **anterior posterior pelvic tilt**, movement in the y direction being **lateral pelvic tilt** and movement in the z axis being **internal external rotation**, which can be seen in the image below. Each group was then refined to be categorized into right hitters, competition level (either high school or college), and high or low bat speeds for the subject's specific competition level.  
 + 
 +If you wish to investigate something new, different approaches can be taken.
  
 \\ \\
Line 102: Line 99:
 Before starting this section of the tutorial please **download** [[https://www.has-motion.com/download/examples/Inspect3D/analysis_of_baseball_hitters.q3d|this]] .q3d file with premade query definitions. Before starting this section of the tutorial please **download** [[https://www.has-motion.com/download/examples/Inspect3D/analysis_of_baseball_hitters.q3d|this]] .q3d file with premade query definitions.
  
-  - Select {{:I3DLoadLibrary.png}} **Load Library** on the top left of the toolbar, beside **Library Path** click on **Browse**, and navigate to the folder where your .cmz and .c3d files are located. Then select **Load** and exit the window. +  - Select {{:I3DLoadLibrary.png?20}} **Load Library** on the top left of the toolbar, beside **Library Path** click on **Browse**, and navigate to the folder where your .cmz and .c3d files are located. Then select **Load** and exit the window. 
-  - Select the {{:I3DGroups.png}} **Query Definitions** drop down and select **Query Definitions**. Inside the window select **Load Query Definitions** and navigate to the **analysis_of_baseball_hitters.q3d** file that you downloaded.+  - Select the {{:I3DGroups.png?20}} **Query Definitions** drop down and select **Query Definitions**. Inside the window select **Load Query Definitions** and navigate to the **analysis_of_baseball_hitters.q3d** file that you downloaded.
   - Select **Calculate All Groups** (if you exit the window before the query is fully computed click **Compute Groups**). Groups will be queried by player level, right hitters, high and low blast bat speeds, and x, y, and z pelvic angular velocity coordinates.   - Select **Calculate All Groups** (if you exit the window before the query is fully computed click **Compute Groups**). Groups will be queried by player level, right hitters, high and low blast bat speeds, and x, y, and z pelvic angular velocity coordinates.
  
 A detailed tutorial on creating groups can be found [[Other:Inspect3D:Tutorials:Load_and_View_Data|here]]. An example of creating a group manually is as follows. A detailed tutorial on creating groups can be found [[Other:Inspect3D:Tutorials:Load_and_View_Data|here]]. An example of creating a group manually is as follows.
  
-  - Select the {{:I3DGroups.png}} **Query Definitions** drop down and select **Query Definitions**. +  - Select the {{:I3DGroups.png?20}} **Query Definitions** drop down and select **Query Definitions**. 
-  - Add a {{:ActionAdd48x48.png}} **Query** (group) and name it **“HIGHSCHOOL_RIGHT_LOW_PAV_X”**. +  - Add a {{:ActionAdd48x48.png?20}} **Query** (group) and name it **“HIGHSCHOOL_RIGHT_LOW_PAV_X”**. 
-  - While the group you just created is selected add a {{:ActionAdd48x48.png}} **Condition** and give it the name **“highschool_right_low_pav_x”**.+  - While the group you just created is selected add a {{:ActionAdd48x48.png?20}} **Condition** and give it the name **“highschool_right_low_pav_x”**.
     - Signals: Type - “LINK_MODEL_BASED” , Folder - “ORIGINAL”, Signal Name - “PEVIS_ANGULAR_VELOCITY”, Component - “X”.     - Signals: Type - “LINK_MODEL_BASED” , Folder - “ORIGINAL”, Signal Name - “PEVIS_ANGULAR_VELOCITY”, Component - “X”.
     - Refinement:     - Refinement:
       - Check **Refine using tag** and select R,       - Check **Refine using tag** and select R,
-      - Check **Refine using signal**, click {{:ActionAdd48x48.png}} **Add**, give it the name “lowBatSpeed”, Type - “METRIC”, Folder - “meta”, Name - “blast_bat_speed_mph_x”, Component - “X”, Value Must Be - “Between”, Min - “57”, Max - “62”, click Save. +      - Check **Refine using signal**, click {{:ActionAdd48x48.png?20}} **Add**, give it the name “lowBatSpeed”, Type - “METRIC”, Folder - “meta”, Name - “blast_bat_speed_mph_x”, Component - “X”, Value Must Be - “Between”, Min - “57”, Max - “62”, click Save. 
-      - Click {{:ActionAdd48x48.png}} **Add**, give it the name “HIGHSCHOOL”, Type - “TEXT_DATA”, Folder - “meta”, Name - “highest_playing_level”, Component - “X”, Value Must Be - “Equal To”, Value - “high_school”, click Save.+      - Click {{:ActionAdd48x48.png?20}} **Add**, give it the name “HIGHSCHOOL”, Type - “TEXT_DATA”, Folder - “meta”, Name - “highest_playing_level”, Component - “X”, Value Must Be - “Equal To”, Value - “high_school”, click Save.
   - Once you are happy with your queries click **Save Query Definitions** to save it as a .q3d file.   - Once you are happy with your queries click **Save Query Definitions** to save it as a .q3d file.
  
 {{:QueryDefinitions.png}} {{:QueryDefinitions.png}}
  
-**Notes:*+**Note:** For this tutorial we are basing low and high blast bat speeds off of Blast Motion’s bat speed data based on competition level [[https://rocklandpeakperformance.com/a-review-of-blast-motion-baseball-and-its-swing-quality-metrics/|[5]]].
- +
-  * For this tutorial we are basing low and high blast bat speeds off of Blast Motion’s bat speed data based on competition level [[https://rocklandpeakperformance.com/a-review-of-blast-motion-baseball-and-its-swing-quality-metrics/|[5]]].+
     * **College**: low: 61-66 mph, high: 70-73 mph.     * **College**: low: 61-66 mph, high: 70-73 mph.
     * **HIGHSCHOOL**: low: 57-62 mph, high: 69-71 mph.     * **HIGHSCHOOL**: low: 57-62 mph, high: 69-71 mph.
Line 132: Line 127:
 To begin the **PCA** (principal component analysis), select two groups that you want to compare. Let's start by looking at **HIGHSCOOL_RIGHT_HIGH_PAV_Z** and **College_RIGHT_HIGH_PAV_Z**, select the two groups (CTRL + Click), and check the **Select All Workspaces box** if it is not already selected. To begin the **PCA** (principal component analysis), select two groups that you want to compare. Let's start by looking at **HIGHSCOOL_RIGHT_HIGH_PAV_Z** and **College_RIGHT_HIGH_PAV_Z**, select the two groups (CTRL + Click), and check the **Select All Workspaces box** if it is not already selected.
  
-Navigate to the toolbar at the top of the interface and select the {{:I3D_PCAOptions2.png}} **PCA dropdown**. Select the number of **PCs** (principal components) you want for your analysis, for this tutorial we will use 5 (more about this in Variance Explained), and then check the **Use Workspace Mean** if it is not already selected. Now click **Run PCA** and **Show PCA Graphs** and the graphs will appear to the right of your workspace.+Navigate to the toolbar at the top of the interface and select the {{:I3D_PCAOptions2.png?20}} **PCA dropdown**. Select the number of **PCs** (principal components) you want for your analysis, for this tutorial we will use 5 (more about this in Variance Explained), and then check the **Use Workspace Mean** if it is not already selected. Now click **Run PCA** and **Show PCA Graphs** and the graphs will appear to the right of your workspace.
  
 Once your PCA graph has appeared, at the bottom right of the screen you will see six options for visualizing results of the analysis (variance explained, loading vector, workspace scores, group scores, extreme plot and PC reconstruction).See the [[Other:Inspect3D:Tutorials:Perform_Principal_Component_Analysis|Perform Principal Component Analysis]] for more information on interpreting these results. Once your PCA graph has appeared, at the bottom right of the screen you will see six options for visualizing results of the analysis (variance explained, loading vector, workspace scores, group scores, extreme plot and PC reconstruction).See the [[Other:Inspect3D:Tutorials:Perform_Principal_Component_Analysis|Perform Principal Component Analysis]] for more information on interpreting these results.
Line 151: Line 146:
 **Visual Comparisons:** **Visual Comparisons:**
  
-When visualizing different coordinates of the pelvic angular velocity, 3 figures can be laid out in a 3x1 grid. For now you can hide your PCA by clicking **Show PCA Graphs** in the PCA dropdown, then go to the {{:I3DShowOptions.png}} **[[Other:Inspect3D:Documentation:Dialogs:Load_Library_Dialogue#Plotting_options|Options]]** tab in the toolbar and under **Plotting options** change **Graph Rows** to 3, and leave **Graph Columns** as 1. Selecting one of the graphs will outline it with a gray border, you are then able to select which **Groups** and **Workspaces** you would like to display. In the three graphs below we have displayed **“HIGHSCHOOL_RIGHT_HIGH_PAV_”** and **“College_RIGHT_HIGH_PAV_”** in their X, Y, and Z coordinates.+When visualizing different coordinates of the pelvic angular velocity, 3 figures can be laid out in a 3x1 grid. For now you can hide your PCA by clicking **Show PCA Graphs** in the PCA dropdown, then go to the {{:I3DShowOptions.png?20}} **[[Other:Inspect3D:Documentation:Dialogs:Load_Library_Dialogue#Plotting_options|Options]]** tab in the toolbar and under **Plotting options** change **Graph Rows** to 3, and leave **Graph Columns** as 1. Selecting one of the graphs will outline it with a gray border, you are then able to select which **Groups** and **Workspaces** you would like to display. In the three graphs below we have displayed **“HIGHSCHOOL_RIGHT_HIGH_PAV_”** and **“College_RIGHT_HIGH_PAV_”** in their X, Y, and Z coordinates.
  
 Looking at the anterior/posterior tilt and lateral pelvic tilt graph there is not a large visual difference between our college and high school players. **Internal/External Rotation** is what we want to focus on, where our college hitters yield a greater peak pelvic angular velocity compared to their high school counterparts. But with that being said, visualizing doesn't always tell the whole story, so let's perform a PCA (Principal Component Analysis) and continue analyzing. {{:HIGH_PAV_x_y_z.jpg}} {{:college_high_z.jpg}} Looking at the anterior/posterior tilt and lateral pelvic tilt graph there is not a large visual difference between our college and high school players. **Internal/External Rotation** is what we want to focus on, where our college hitters yield a greater peak pelvic angular velocity compared to their high school counterparts. But with that being said, visualizing doesn't always tell the whole story, so let's perform a PCA (Principal Component Analysis) and continue analyzing. {{:HIGH_PAV_x_y_z.jpg}} {{:college_high_z.jpg}}
Line 178: Line 173:
 We can take a closer look at PC2 and PC5 to see why these principal components may be showing the most significant differences. Looking at the mean signal trace of the college and high school subjects pelvic internal/external rotation, we can see that the majority of the difference in their swings are at the peak of their pelvic velocity, and also interestingly the high school players have more internal rotation before and at the end of there swing which is represented in PC2. PC5 is less clear and harder to interpret, once again we can see that the high and low points around 80-90 on the x axis are showing the variability between the subjects peak pelvic angular velocity, and the large value around 40 seems to point out that there were more college players with an earlier swing, but the rest is hard to decipher. We can take a closer look at PC2 and PC5 to see why these principal components may be showing the most significant differences. Looking at the mean signal trace of the college and high school subjects pelvic internal/external rotation, we can see that the majority of the difference in their swings are at the peak of their pelvic velocity, and also interestingly the high school players have more internal rotation before and at the end of there swing which is represented in PC2. PC5 is less clear and harder to interpret, once again we can see that the high and low points around 80-90 on the x axis are showing the variability between the subjects peak pelvic angular velocity, and the large value around 40 seems to point out that there were more college players with an earlier swing, but the rest is hard to decipher.
  
-{{:PC2_baseball.jpg}}{{:PC5_baseball.jpg}}+{{:PC2_baseball.jpg?400}}{{:PC5_baseball.jpg?400}}
  
 \\ \\
other/inspect3d/tutorials/analysis_of_baseball_hitters.1736541193.txt.gz · Last modified: 2025/01/10 20:33 by wikisysop