MATLAB: Self-Organizing Map (SOM) clustering

后端 未结 1 358
遇见更好的自我
遇见更好的自我 2020-12-16 03:40

I\'m trying to cluster some images depending on the angles between body parts.

The features extracted from each image are:

angle1 : torso - torso
ang         


        
相关标签:
1条回答
  • Self-Organizing Map (SOM) is a clustering method considered as an unsupervised variation of the Artificial Neural Network (ANN). It uses competitive learning techniques to train the network (nodes compete among themselves to display the strongest activation to a given data)

    www.lohninger.com/helpcsuite/kohonen_network_-_background_information.htm

    You can think of SOM as if it consists of a grid of interconnected nodes (square shape, hexagonal, ..), where each node is an N-dim vector of weights (same dimension size as the data points we want to cluster).

    The idea is simple; given a vector as input to SOM, we find the node closet to it, then update its weights and the weights of the neighboring nodes so that they approach that of the input vector (hence the name self-organizing). This process is repeated for all input data.

    plotsompos

    The clusters formed are implicitly defined by how the nodes organize themselves and form a group of nodes with similar weights. They can be easily seen visually.

    plotsomnd

    SOM are in a way similar to the K-Means algorithm but different in that we don't impose a fixed number of clusters, instead we specify the number and shape of nodes in the grid that we want it to adapt to our data.

    Basically when you have a trained SOM, and you want to classify a new test input vector, you simply assign it to the nearest (distance as a similarity measure) node on the grid (Best Matching Unit BMU), and give as prediction the [majority] class of the vectors belonging to that BMU node.

    plotsomhits

    For MATLAB, you can find a number of toolboxes that implement SOM:

    • The Neural Network Toolbox from MathWorks can be used for clustering using SOM (see the nctool clustering tool).
    • Also worth checking out is the SOM Toolbox
    0 讨论(0)
提交回复
热议问题