User Tools

Site Tools


sift:tutorials:run_k-means

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
sift:tutorials:run_k-means [2024/07/17 15:44] – created sgrangersift:tutorials:run_k-means [2024/11/05 14:58] (current) wikisysop
Line 1: Line 1:
 ====== Run K-Means ====== ====== Run K-Means ======
  
-The k-means clustering algorithm is a commonly used method for grouping //n// individual data points into //k// clusters. It is a multi-variate statistical analysis that reduces the high-dimensional matrix of correlatedtime-varying signals into low-dimensional and statistically uncorrelated set of principal components (PCs)These PCs explain the variance found in the original signals and represent the most important features of the data, e.g., the overall magnitude or the shape of the time series at particular point in the stride cycleThe value of each particular subject’s score for the individual PCs represents how strongly that feature was present in the data.+The k-means clustering algorithm is a commonly used method for grouping //n// individual data points into //k// clusters. It does so in an unsupervised manneriteratively selecting cluster centre points and assigning data points to clusterWithin Sift, this is implemented onto the [[sift:application:analyse_page#workspace_scores|PC transformed data]]after PCA analysis is doneMore information about PCA can be found on our [[sift:principal_component_analysis:using_principal_component_analysis_in_biomechanics|Using PCA in Biomechanics page]].
  
 ==== The utility of clustering ==== ==== The utility of clustering ====
  
-When analysing biomechanical signals, we often realize that a number of individual traces are similar. It can be useful to describe these traces as belonging to the same group, or cluster. This potentially allows us to simplify our analysis or to pick a single trace as being "representative" of the whole cluster. Because clustering is an unsupervised learning technique, it does not require any specific knowledge or set of training labels from the user. This, in turn, makes clustering useful for data exploration.+When analysing biomechanical signals, we often realize that a number of individual traces are similar. It can be useful to describe these traces as belonging to the same group, or cluster. This potentially allows us to simplify our analysis or to pick a single trace as being "representative" of the whole cluster. Because k-means clustering is an unsupervised learning technique, it does not require any specific knowledge or set of training labels from the user. This, in turn, makes clustering useful for data exploration.
  
 ==== Tutorial Overview ==== ==== Tutorial Overview ====
  
-This tutorial works off the Principal Component Analysis Tutorial, and assumes a good understanding of using PCA in Sift. This tutorial uses overground walking data from roughly 100 subjects divided into two conditions, normal control and osteoarthritis (moderate to severe). This data set is included in the Demo folder of your Inspect3D installation (e.g., C:\Program Files\Sift\Demo). This is the same data as the PCA Tutorial.+This tutorial works off the [[sift:tutorials:perform_principal_component_analysis|Principal Component Analysis Tutorial]], and assumes a good understanding of using PCA in Sift. This tutorial uses overground walking data from roughly 100 subjects divided into two conditions, normal control and osteoarthritis (moderate to severe). This data set is included in the Demo folder of your Sift installation (e.g., C:\Program Files\Sift\Demo). This is the same data as the PCA Tutorial.
  
 ==== Running a K-Means Test ==== ==== Running a K-Means Test ====
Line 29: Line 29:
 ==== Viewing K-Means Results ==== ==== Viewing K-Means Results ====
  
-{{:DataDlg.png}}+{{:k-means-datadlg.png}}
  
 Once you have run your K-Means Test and taken a brief look at the cluster's summary statistics, you want to be able to visualize your clusters. Once you have run your K-Means Test and taken a brief look at the cluster's summary statistics, you want to be able to visualize your clusters.
Line 38: Line 38:
   - Navigate to the **Analyse** page and select the **Workspace Scores** tab in your PCA results.   - Navigate to the **Analyse** page and select the **Workspace Scores** tab in your PCA results.
  
-Looking at the workspace tab we can select different points and the group and file will be displayed. This allows us to view which data points in a cluster belong to what group. We can clearly see the data points split into to clusters, blue and red, with somewhat of a separation. red tends to be in the top and blue tends to be in the bottom.+Looking at the workspace tab we can select different points and the group and file will be displayed. This allows us to view which data points in a cluster belong to what group. We can clearly see the data points split into to clusters, blue and red, with somewhat of a separation. Red tends to be in the top and blue tends to be in the bottom.
  
-{{:WorkspaceScores.png}}+{{:k-means-workspacescores.png}}
  
 A K-means test finds the similarity between data points and groups them together into clusters. If you had two groups that were vastly different, the clusters would not have mixed groups. If the data points between groups have similarities the clusters may have data points from different groups. A K-means test finds the similarity between data points and groups them together into clusters. If you had two groups that were vastly different, the clusters would not have mixed groups. If the data points between groups have similarities the clusters may have data points from different groups.
sift/tutorials/run_k-means.1721231097.txt.gz · Last modified: 2024/07/17 15:44 by sgranger