7 non supervised neural networks self organizing maps
play

7.- Non supervised Neural Networks: Self-organizing Maps by - PDF document

CVG-UPM COMPUTER VISION Machine Learning & Neural Networks 7.- Non supervised Neural Networks: Self-organizing Maps by Pascual Campoy Grupo de Visin por Computador U.P.M. - DISAM P. Campoy P. Campoy Machine Learning and Neural


  1. CVG-UPM COMPUTER VISION Machine Learning & Neural Networks 7.- Non supervised Neural Networks: Self-organizing Maps by Pascual Campoy Grupo de Visión por Computador U.P.M. - DISAM P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION Unsupervised learning Unsupervised learning concept Working structure length y 1 x 1 . . . ? . y m x n area Feature space Clustering 3 P. Campoy P. Campoy Machine Learning and Neural Networks

  2. CVG-UPM COMPUTER VISION Self organizing Maps (SOM)  Bio-inspired idea: Similar inputs map onto neighbor outputs.  SOM objective: Neighbor inputs map onto neighbor outputs and vice versa R n → → R 2 , R 1 D.R. into a pattern space 4 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION recent paper 5 P. Campoy P. Campoy Machine Learning and Neural Networks

  3. CVG-UPM COMPUTER VISION SOM working principle  Objective: To obtain a bijective application R n ⇔ R 2 , such as neighborhood in the input space ⇔ neighborhood in the output space  Procedure: To distribute an elastic 2D lattice into the nD input space, where the every cross represent a neuron that has: - a position in the input space w (defined by its weights) - a position in the output space (defined by its coordinates in the lattice) 6 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION SOM: viability is it possible in this cubic example that any two neighbor input sample are represented by neighbor neurons? concept of Intrinsic Dimensionality and in this Swiss roll example? of the data 7 P. Campoy P. Campoy Machine Learning and Neural Networks

  4. CVG-UPM COMPUTER VISION SOM: running and learning Running: Which neuron is activated by every input data? the neurons whose weight vector is the closest to this input data Learning: How are weights updated for every train input in order to fulfill the SOM objectives?  The weights of which neurons are updated?  How are they updated? 8 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION SOM: learning procedure  The neuron whose weights are the closest to the present train sample x , called the winning neuron w b (also the best matching unit), and its neighbors are the ones that learn (i.e. update their weights) Learning rule: Δ k w i = α (x-w i )  where α = α (d os (w i -w b ),k) is function of: the distance to the winning neuron in the output space d os (w i -w b ), - the training instant k (e.g. epoch) - α α ds(w i -w b ) k 9 P. Campoy P. Campoy Machine Learning and Neural Networks

  5. CVG-UPM COMPUTER VISION SOM: neural implementation  Training and running imply distance calculation, that can be implemented by scalar product in a one dimensional incremented space x 1 . . . . x i . . . . x I . . . 10 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION SOM: discussion on objective fulfillment examples R 2 → R 1 feature 2 feature 1 feature 2 feature 1 11 P. Campoy P. Campoy Machine Learning and Neural Networks

  6. CVG-UPM COMPUTER VISION SOM: examples 1 13 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION SOM: example 2 14 P. Campoy P. Campoy Machine Learning and Neural Networks

  7. CVG-UPM COMPUTER VISION SOM results: influence of learning parameters α 0 =0.1 α 0 =2.1 σ v =0.25 σ v =0.5 σ v =0.75 15 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION SOM: influence of training samples and # of neurons SOM result different order 16 different instances different # neurons P. Campoy P. Campoy Machine Learning and Neural Networks

  8. CVG-UPM Matlab commands COMPUTER VISION som1=newsom(minmax(psom),[10 1]); som1=train(som1,psom) plotsom(som1.iw{1,1},som1.layers{1}.distances) ynt=sim(som1,tsom); yntind=vec2ind(ynt); 17 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION Example 7.1: SOM as classifier load datos_D2_C2 p.valor t.valor 18 P. Campoy P. Campoy Machine Learning and Neural Networks

  9. CVG-UPM COMPUTER VISION Solution example 7.1 SOM 8x1 SOM 8x8 C1 C2 C1 C2 C1 100 11 C1 101 6 C2 7 182 C2 6 187 19 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION Exercise 7.1: SOM as classifier Using the data of the previous example: Discuss the influence of the following factors (plot the results and quantify the test error and the training error): 1. # of training samples 2. # order of the training samples 3. # of neurons 4. # of epoches 20 P. Campoy P. Campoy Machine Learning and Neural Networks

  10. CVG-UPM COMPUTER VISION SOM example: Transfos state  5D input: % de H 2 , CH 4 C 2 H 2 C 2 H 4 C 2 H 6  2D U-matrix output  Supervised manual semantic 21 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION SOM example: temperature profile classification for pig iron control 10x10 output map 24D input manual labeling into 3 classes 95% confidence for pig iron temperature prediction (8h) 22 P. Campoy P. Campoy Machine Learning and Neural Networks

  11. CVG-UPM COMPUTER VISION SOM example: video compression … original sequence training data  1D output map  256 neurons 23 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION … SOM example: video compression … Training: weights update 24 P. Campoy P. Campoy Machine Learning and Neural Networks

  12. CVG-UPM COMPUTER VISION … SOM example: video compression Testing √ MSE=13,47 compression factor: 1:16 bits/pixel: 0.5 H=0.4375 25 P. Campoy P. Campoy Machine Learning and Neural Networks CVG-UPM COMPUTER VISION SOM: concerns and limitations  Concerns: - output map dimension? - # of neurons? - learning rate? neighborhood? - order of the training samples?  Limitations: - neighbor inputs may activate distant neurons - distant inputs may activate neighbor neurons 27 P. Campoy P. Campoy Machine Learning and Neural Networks

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend