Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP19 Neural Networks & SVMs Miguel Tavares.

Slides:



Advertisements
Similar presentations
Introduction to Support Vector Machines (SVM)
Advertisements

Generative Models Thus far we have essentially considered techniques that perform classification indirectly by modeling the training data, optimizing.
CSC321: Introduction to Neural Networks and Machine Learning Lecture 24: Non-linear Support Vector Machines Geoffrey Hinton.
Slides from: Doug Gray, David Poole
ECG Signal processing (2)
Image classification Given the bag-of-features representations of images from different classes, how do we learn a model for distinguishing them?
Neural Network I Week 7 1. Team Homework Assignment #9 Read pp. 327 – 334 and the Week 7 slide. Design a neural network for XOR (Exclusive OR) Explore.
Support Vector Machines
Machine learning continued Image source:
CSCI 347 / CS 4206: Data Mining Module 07: Implementations Topic 03: Linear Models.
Supervised Learning Recap
Machine Learning: Connectionist McCulloch-Pitts Neuron Perceptrons Multilayer Networks Support Vector Machines Feedback Networks Hopfield Networks.
Lecture 14 – Neural Networks
Image classification Given the bag-of-features representations of images from different classes, how do we learn a model for distinguishing them?
Artificial Intelligence (CS 461D)
Support Vector Machines (SVMs) Chapter 5 (Duda et al.)
Prénom Nom Document Analysis: Artificial Neural Networks Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
Artificial Intelligence Statistical learning methods Chapter 20, AIMA (only ANNs & SVMs)
Sketched Derivation of error bound using VC-dimension (1) Bound our usual PAC expression by the probability that an algorithm has 0 error on the training.
Theory Simulations Applications Theory Simulations Applications.
Neural Networks. Background - Neural Networks can be : Biological - Biological models Artificial - Artificial models - Desire to produce artificial systems.
1 Introduction to Artificial Neural Networks Andrew L. Nelson Visiting Research Faculty University of South Florida.
This week: overview on pattern recognition (related to machine learning)
MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way
Artificial Intelligence Lecture No. 28 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Support Vector Machine & Image Classification Applications
Artificial Neural Nets and AI Connectionism Sub symbolic reasoning.
10/6/2015 1Intelligent Systems and Soft Computing Lecture 0 What is Soft Computing.
1 Machine Learning The Perceptron. 2 Heuristic Search Knowledge Based Systems (KBS) Genetic Algorithms (GAs)
NEURAL NETWORKS FOR DATA MINING
LINEAR CLASSIFICATION. Biological inspirations  Some numbers…  The human brain contains about 10 billion nerve cells ( neurons )  Each neuron is connected.
1 SUPPORT VECTOR MACHINES İsmail GÜNEŞ. 2 What is SVM? A new generation learning system. A new generation learning system. Based on recent advances in.
Artificial Neural Networks. The Brain How do brains work? How do human brains differ from that of other animals? Can we base models of artificial intelligence.
10/18/ Support Vector MachinesM.W. Mak Support Vector Machines 1. Introduction to SVMs 2. Linear SVMs 3. Non-linear SVMs References: 1. S.Y. Kung,
An Introduction to Support Vector Machine (SVM) Presenter : Ahey Date : 2007/07/20 The slides are based on lecture notes of Prof. 林智仁 and Daniel Yeung.
Artificial Neural Networks An Introduction. What is a Neural Network? A human Brain A porpoise brain The brain in a living creature A computer program.
Classifiers Given a feature representation for images, how do we learn a model for distinguishing features from different classes? Zebra Non-zebra Decision.
So Far……  Clustering basics, necessity for clustering, Usage in various fields : engineering and industrial fields  Properties : hierarchical, flat,
CSSE463: Image Recognition Day 14 Lab due Weds, 3:25. Lab due Weds, 3:25. My solutions assume that you don't threshold the shapes.ppt image. My solutions.
Neural Network Basics Anns are analytical systems that address problems whose solutions have not been explicitly formulated Structure in which multiple.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP14 Pattern Recognition Miguel Tavares.
Dec 21, 2006For ICDM Panel on 10 Best Algorithms Support Vector Machines: A Survey Qiang Yang, for ICDM 2006 Panel Partially.
Neural Networks Presented by M. Abbasi Course lecturer: Dr.Tohidkhah.
Final Exam Review CS479/679 Pattern Recognition Dr. George Bebis 1.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Support Vector Machines (SVM): A Tool for Machine Learning Yixin Chen Ph.D Candidate, CSE 1/10/2002.
Perceptrons Michael J. Watts
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
Neural Networks. Background - Neural Networks can be : Biological - Biological models Artificial - Artificial models - Desire to produce artificial systems.
Intro. ANN & Fuzzy Systems Lecture 3 Basic Definitions of ANN.
Lecture 12. Outline of Rule-Based Classification 1. Overview of ANN 2. Basic Feedforward ANN 3. Linear Perceptron Algorithm 4. Nonlinear and Multilayer.
A Presentation on Adaptive Neuro-Fuzzy Inference System using Particle Swarm Optimization and it’s Application By Sumanta Kundu (En.R.No.
Pattern Recognition Lecture 20: Neural Networks 3 Dr. Richard Spillman Pacific Lutheran University.
Neural networks and support vector machines
CS 9633 Machine Learning Support Vector Machines
Supervised Learning in ANNs
Artificial Intelligence (CS 370D)
SOFT COMPUTING.
Machine Learning. Support Vector Machines A Support Vector Machine (SVM) can be imagined as a surface that creates a boundary between points of data.
An Introduction to Support Vector Machines
Intelligent Systems and
Machine Learning. Support Vector Machines A Support Vector Machine (SVM) can be imagined as a surface that creates a boundary between points of data.
Machine Learning. Support Vector Machines A Support Vector Machine (SVM) can be imagined as a surface that creates a boundary between points of data.
Artificial Intelligence Lecture No. 28
Miguel Tavares Coimbra
ARTIFICIAL NEURAL networks.
Introduction to Neural Network
Support Vector Machines 2
Artificial Intelligence Chapter 3 Neural Networks
Presentation transcript:

Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP19 Neural Networks & SVMs Miguel Tavares Coimbra

VC 14/15 - TP19 - Neural Networks & SVMs Outline Introduction to soft computing Neural Networks Support Vector Machines

VC 14/15 - TP19 - Neural Networks & SVMs Topic: Introduction to soft computing Introduction to soft computing Neural Networks Support Vector Machines

VC 14/15 - TP19 - Neural Networks & SVMs Humans make great decisions

VC 14/15 - TP19 - Neural Networks & SVMs Soft-Computing Aim: “To exploit the tolerance for imprecision uncertainty, approximate reasoning and partial truth to achieve tractability, robustness, low solution cost, and close resemblance with human like decision making” [L.A.Zadeh] To find an approximate solution to an imprecisely/precisely formulated problem.

VC 14/15 - TP19 - Neural Networks & SVMs Simple problem: Parking a car Easy for a human to park a car. Why? –Position is not specified exactly. Otherwise: –Need precise measurements. –Need precise control. –Need a lot of time. High precision carries a high cost!!

VC 14/15 - TP19 - Neural Networks & SVMs We park cars quite well We exploit the tolerance for imprecision. We search for an acceptable solution. We choose the acceptable solution with the lowest cost. These are the guiding principles of soft computing!

VC 14/15 - TP19 - Neural Networks & SVMs Soft-Computing revisited Collection of methodologies which, in one form or another, reflect their defined guiding principles achieving: –Tractability We can handle otherwise ‘impossible’ problems. –Robustness We can handle imprecision and ambiguity. –Close resemblance with human like decision making.

VC 14/15 - TP19 - Neural Networks & SVMs Principal constituent methodologies Fuzzy Systems Neural Networks Evolutionary Computation Machine Learning Probabilistic Reasoning Complementary rather than competitive

VC 14/15 - TP19 - Neural Networks & SVMs Topic: Neural Networks Introduction to soft computing Neural Networks Support Vector Machines

VC 14/15 - TP19 - Neural Networks & SVMs If you can’t beat it.... Copy it!

VC 14/15 - TP19 - Neural Networks & SVMs Biological Neural Networks Neuroscience: –Population of physically inter- connected neurons. Includes: –Biological Neurons –Connecting Synapses The human brain: –100 billion neurons –100 trillion synapses

VC 14/15 - TP19 - Neural Networks & SVMs Biological Neuron Neurons: –Have K inputs (dendrites). –Have 1 output (axon). –If the sum of the input signals surpasses a threshold, sends an action potential to the axon. Synapses –Transmit electrical signals between neurons.

VC 14/15 - TP19 - Neural Networks & SVMs Artificial Neuron Also called the McCulloch-Pitts neuron. Passes a weighted sum of inputs, to an activation function, which produces an output value. McCulloch, W. and Pitts, W. (1943). A logical calculus of the ideas immanent in nervous activity. Bulletin of Mathematical Biophysics, 7:

VC 14/15 - TP19 - Neural Networks & SVMs Sample activation functions Step function Sigmoid function

VC 14/15 - TP19 - Neural Networks & SVMs Artificial Neural Network Commonly refered as Neural Network. Basic principles: –One neuron can perform a simple decision. –Many connected neurons can make more complex decisions.

VC 14/15 - TP19 - Neural Networks & SVMs Characteristics of a NN Network configuration –How are the neurons inter-connected? –We typically use layers of neurons (input, output, hidden). Individual Neuron parameters –Weights associated with inputs. –Activation function. –Decision thresholds. How do we find these values?

VC 14/15 - TP19 - Neural Networks & SVMs Learning paradigms We can define the network configuration. How do we define neuron weights and decision thresholds? –Learning step. –We train the NN to classify what we want. Different learning paradigms –Supervised learning. –Unsupervised learning. –Reinforcement learning. Appropriate for Pattern Recognition.

VC 14/15 - TP19 - Neural Networks & SVMs Learning We want to obtain an optimal solution given a set of observations. A cost function measures how close our solution is to the optimal solution. Objective of our learning step: –Minimize the cost function. Backpropagation Algorithm

VC 14/15 - TP19 - Neural Networks & SVMs Backpropagation For more details please study Dr. Andrew Moore’s excellent tutorial.

VC 14/15 - TP19 - Neural Networks & SVMs Feedforward neural network Simplest type of NN. Has no cycles. Input layer –Need as many neurons as coefficients of my feature vector. Hidden layers. Output layer –Classification results.

VC 14/15 - TP19 - Neural Networks & SVMs Topic: Support Vector Machines Introduction to soft computing Neural Networks Support Vector Machines

VC 14/15 - TP19 - Neural Networks & SVMs Maximum-margin hyperplane There are many planes that can separate our classes in feature space. Only one maximizes the separation margin. Of course that classes need to be separable in the first place...

VC 14/15 - TP19 - Neural Networks & SVMs Support vectors The maximum- margin hyperplane is limited by some vectors. These are called support vectors. Other vectors are irrelevant for my decision.

VC 14/15 - TP19 - Neural Networks & SVMs Decision I map a new observation into my feature space. Decision hyperplane: Decision function: A vector is either above or below the hyperplane.

VC 14/15 - TP19 - Neural Networks & SVMs Slack variables Most feature spaces cannot be segmented so easily by a hyperplane. Solution: –Use slack variables. –‘Wrong’ points ‘pull’ the margin in their direction. –Classification errors!

VC 14/15 - TP19 - Neural Networks & SVMs But this doesn’t work in most situations... Still, how do I find a Maximum-margin hyperplane for some situations? Most real situations face this problem...

VC 14/15 - TP19 - Neural Networks & SVMs Solution: Send it to hyperspace! Take the previous case: f(x) = x Create a new higher- dimensional function: g(x 2 ) = (x, x 2 ) A kernel function is responsible for this transformation.

VC 14/15 - TP19 - Neural Networks & SVMs Typical kernel functions Linear Polynomial Radial-Base Functions Sigmoid

VC 14/15 - TP19 - Neural Networks & SVMs Classification Training stage: –Obtain kernel parameters. –Obtain maximum-margin hyperplane. Given a new observation: –Transform it using the kernel. –Compare it to the hyperspace. Works very well indeed. Typically outperforms all known classifiers.

VC 14/15 - TP19 - Neural Networks & SVMs Resources Andrew Moore, “Statistical Data Mining Tutorials”, C.J. Burges, “A tutorial on support vector machines for pattern recognition”, in Knowledge Discovery Data Mining, vol.2, no.2, 1998, pp.1-43.