Artificial Intelligence (CS 461D)

Slides:



Advertisements
Similar presentations
Introduction to Neural Networks
Advertisements

Slides from: Doug Gray, David Poole
Learning in Neural and Belief Networks - Feed Forward Neural Network 2001 년 3 월 28 일 안순길.
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.
Kostas Kontogiannis E&CE
Biological and Artificial Neurons Michael J. Watts
Artificial Neural Networks - Introduction -
Artificial Neural Networks - Introduction -
Machine Learning: Connectionist McCulloch-Pitts Neuron Perceptrons Multilayer Networks Support Vector Machines Feedback Networks Hopfield Networks.
1 Neural Networks - Basics Artificial Neural Networks - Basics Uwe Lämmel Business School Institute of Business Informatics
Neural NetworksNN 11 Neural Networks Teacher: Elena Marchiori R4.47 Assistant: Kees Jong S2.22
Prénom Nom Document Analysis: Artificial Neural Networks Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
Biological inspiration Animals are able to react adaptively to changes in their external and internal environment, and they use their nervous system to.
1 Chapter 11 Neural Networks. 2 Chapter 11 Contents (1) l Biological Neurons l Artificial Neurons l Perceptrons l Multilayer Neural Networks l Backpropagation.
Prénom Nom Document Analysis: Artificial Neural Networks Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
CS 484 – Artificial Intelligence
Neural Networks William Lai Chris Rowlett. What are Neural Networks? A type of program that is completely different from functional programming. Consists.
Neural Networks. Background - Neural Networks can be : Biological - Biological models Artificial - Artificial models - Desire to produce artificial systems.
Artificial Neural Networks - Introduction -. Overview 1.Biological inspiration 2.Artificial neurons and neural networks 3.Application.
Rohit Ray ESE 251. What are Artificial Neural Networks? ANN are inspired by models of the biological nervous systems such as the brain Novel structure.
Traffic Sign Recognition Using Artificial Neural Network Radi Bekker
Artificial neural networks:
Machine Learning. Learning agent Any other agent.
Neurons, Neural Networks, and Learning 1. Human brain contains a massively interconnected net of (10 billion) neurons (cortical cells) Biological.
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.
Cascade Correlation Architecture and Learning Algorithm for Neural Networks.
Artificial Neural Nets and AI Connectionism Sub symbolic reasoning.
Introduction to Neural Networks. Neural Networks in the Brain Human brain “computes” in an entirely different way from conventional digital computers.
IE 585 Introduction to Neural Networks. 2 Modeling Continuum Unarticulated Wisdom Articulated Qualitative Models Theoretic (First Principles) Models Empirical.
Neural Networks AI – Week 23 Sub-symbolic AI Multi-Layer Neural Networks Lee McCluskey, room 3/10
Artificial Neural Network Yalong Li Some slides are from _24_2011_ann.pdf.
Machine Learning Dr. Shazzad Hosain Department of EECS North South Universtiy
1 Machine Learning The Perceptron. 2 Heuristic Search Knowledge Based Systems (KBS) Genetic Algorithms (GAs)
Neural Networks Kasin Prakobwaitayakit Department of Electrical Engineering Chiangmai University EE459 Neural Networks The Structure.
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.
Presented by Scott Lichtor An Introduction to Neural Networks.
Artificial Intelligence Techniques Multilayer Perceptrons.
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.
1 Chapter 11 Neural Networks. 2 Chapter 11 Contents (1) l Biological Neurons l Artificial Neurons l Perceptrons l Multilayer Neural Networks l Backpropagation.
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.
Neural Networks Steven Le. Overview Introduction Architectures Learning Techniques Advantages Applications.
Artificial Neural Networks Students: Albu Alexandru Deaconescu Ionu.
Neural Networks Presented by M. Abbasi Course lecturer: Dr.Tohidkhah.
Neural Networks Teacher: Elena Marchiori R4.47 Assistant: Kees Jong S2.22
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
NEURAL NETWORKS LECTURE 1 dr Zoran Ševarac FON, 2015.
Artificial Neural Networks (ANN). Artificial Neural Networks First proposed in 1940s as an attempt to simulate the human brain’s cognitive learning processes.
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.
Where are we? What’s left? HW 7 due on Wednesday Finish learning this week. Exam #4 next Monday Final Exam is a take-home handed out next Friday in class.
“Principles of Soft Computing, 2 nd Edition” by S.N. Sivanandam & SN Deepa Copyright  2011 Wiley India Pvt. Ltd. All rights reserved. CHAPTER 2 ARTIFICIAL.
1 Azhari, Dr Computer Science UGM. Human brain is a densely interconnected network of approximately neurons, each connected to, on average, 10 4.
Business Intelligence and Decision Support Systems (9 th Ed., Prentice Hall) Chapter 6: Artificial Neural Networks for Data Mining.
Big data classification using neural network
Neural Networks.
Artificial Neural Networks
Artificial Intelligence (CS 370D)
Artificial neural networks:
Other Classification Models: Neural Network
What is an ANN ? The inventor of the first neuro computer, Dr. Robert defines a neural network as,A human brain like system consisting of a large number.
with Daniel L. Silver, Ph.D. Christian Frey, BBA April 11-12, 2017
Machine Learning. Support Vector Machines A Support Vector Machine (SVM) can be imagined as a surface that creates a boundary between points of data.
Chapter 3. Artificial Neural Networks - Introduction -
OVERVIEW OF BIOLOGICAL NEURONS
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.
Lecture Notes for Chapter 4 Artificial Neural Networks
ARTIFICIAL NEURAL networks.
Presentation transcript:

Artificial Intelligence (CS 461D) Princess Nora University Faculty of Computer & Information Systems Artificial Intelligence (CS 461D) Dr. Abeer Mahmoud Computer science Department

(Chapter-18) Learning from Examples Neural Network

Outlines Biological Inspiration. Artificial Neuron. Artificial Neural Networks. Applications of Artificial Neural Networks. Artificial Neural Network Architectures. Learning Processes. Artificial Neural Networks Capabilities & Limitations

Biological Inspiration

Biological Inspiration Some numbers… The human brain contains about 10 billion nerve cells (neurons). Each neuron is connected to the others through 10000 synapses. Properties of the brain: It can learn, reorganize itself from experience. It adapts to the environment.

Biological Inspiration Animals are able to react adaptively to changes in their external and internal environment, and they use their nervous system to perform these behaviours. An appropriate model/simulation of the nervous system should be able to produce similar responses and behaviours in artificial systems. The nervous system is build by relatively simple units, the neurons, so copying their behaviour and functionality should be the solution.

The Neuron in Real Life The information transmission happens at the synapses. The neuron receives nerve impulses through its dendrites. It then sends the nerve impulses through its axon to the terminals where neurotransmitters are released to stimulate other neurons.

The Neuron in Real Life The unique components are: Cell body or Soma which contains the Nucleus. The Dendrites. The Axon. The Synapses. A neuron has: A branching input (dendrites). A branching output (the axon)..

The Neuron in Real Life The Dendrites: are short fibers (surrounding the cell body) that receive messages and carry signals from the synapses to the soma. The Axon: is a long extension from the soma that transmits messages, each neuron has only one axon. The axon carries action potentials from the soma to the synapses. The Synapses: are the connections made by an axon to another neuron. They are tiny gaps between axons and dendrites (with chemical bridges) that transmit messages.

Artificial Neuron

Artificial Neuron What is an Artificial Neuron? Definition: Neuron is the basic information processing unit of the Neural Networks (NN). It is a non linear, parameterized function with restricted output range.

Artificial Neural Networks

Artificial Neural Networks Artificial Neural Network (ANN): is a machine learning approach that models human brain and consists of a number of artificial neurons that are linked together according to a specific network architecture. Neuron in ANNs tend to have fewer connections than biological neurons. each neuron in ANN receives a number of inputs. An activation function is applied to these inputs which results in activation level of neuron (output value of the neuron). Knowledge about the learning task is given in the form of examples called training examples.

Applications of ANN

Applications of Artificial Neural Networks Some tasks to be solved by Artificial Neural Networks: Classification: Linear, non-linear. Recognition: Spoken words, Handwriting. Also recognizing a visual object: Face recognition. Controlling: Movements of a robot based on self perception and other information. Predicting: Where a moving object goes, when a robot wants to catch it. Optimization: Find the shortest path for the TSP.

Artificial Neural Networks

Artificial Neural Networks Before using ANN, we have to define: 1. Artificial Neuron Model. 2. ANN Architecture. 3. Learning Mode.

Computing with Neural Units Incoming signals to a unit are presented as inputs. How do we generate outputs? One idea: Summed Weighted Inputs. Input: (3, 1, 0, -2) Processing 3(0.3) + 1(-0.1) + 0(2.1) + -2(-1.1) = 0.9 + (-0.1) + 0 + 2.2 Output: 3

Activation Functions Usually, do not just use weighted sum directly. Apply some function to the weighted sum before it is used (e.g., as output).  Call this the activation function.

Activation Functions The choice of activation function determines the Neuron Model.

Bias of a Neuron The bias b has the effect of applying a transformation to the weighted sum u v = u + b The bias is an external parameter of the neuron. It can be modeled by adding an extra input. v is called induced field of the neuron:

Example (1): Step Function

Example (2): Another Step Function

Example (3): Sigmoid Function The math of some neural nets requires that the activation function be continuously differentiable.  A sigmoidal function often used to approximate the step function.

Example (3): Sigmoid Function

Example Calculate the output from the neuron below assuming a threshold of 0.5: Sum = (0.1 x 0.5) + (0.5 x 0.2) + (0.3 x 0.1) = 0.05 + 0.1 + 0.03 = 0.18 Since 0.18 is less than the threshold, the Output = 0 Repeat the above calculation assuming that the neuron has a sigmoid output function:

recognizing a simple pattern. The total sum of the neuron is (1 x 1) + (0 x 0) + (1 x 1) + (0 x 0) = 2. So the neuron’s output is 1 and it recognizes the picture. Even if there were some “interference” to the basic picture (some of the white pixels weren’t quite 0 and some of the shaded ones weren’t quite 1) the neuron would still recognize it, as long as the total sum was greater than 1.5. So the neuron is “Noise Tolerant” or able to “Generalize” which means it will still successfully recognize the picture, even if it isn’t perfect - this is one of the most important attributes of Neural Networks.

Example (cont) Now the sum is (0 x 1) + (1 x 0) + (0 x 1) + (1 x 0) = 0 - the neuron won’t fire and doesn’t recognize this picture.

Show whether the network shown in the previous two slides would recognize this pattern: What advantage would using the sigmoid function give in this case.??

Network Architecture

Network Architecture The Architecture of a neural network is linked with the learning algorithm used to train. There are different classes of network architecture: Single-Layer Neural Networks. Multi-Layer Neural Networks.  The number of layers and neurons depend on the specific task.

Single Layer Neural Network

Linear Separator

Multi Layer Neural Network More general network architecture, where there are hidden layers between input and output layers. Hidden nodes do not directly receive inputs nor send outputs to the external environment. Multi Layer NN overcome the limitation of Single-Layer NN, they can handle non-linearly separable learning tasks.

Learning

Learning Learning: the procedure that consists in estimating the parameters of neurons so that the whole network can perform a specific task. Two types of learning: The supervised learning. The unsupervised learning. When to Stop Learning?  Learn until error on the training set is below some threshold. Bad idea! Can result in overfitting.  If you match the training examples too well, your performance on the real problems may suffer.

Supervised Learning The desired response of the neural network in function of particular inputs is well known. A “Teacher” may provide examples and teach the neural network how to fulfill a certain task. Teacher presents a number of inputs and their corresponding outputs to the ANN, See how closely the actual outputs match the desired ones. Modify the parameters to better approximate the desired outputs. ANN weights adjusted according to error.

Unsupervised Learning Main Idea: group typical input data in function of resemblance criteria, un-known a priori. Data Clustering. The network finds itself the correlations between the data. No need of a “Teacher”.

Learning If the output is correct then do nothing. If the output is too high, but should be low then decrease the weights attached to high inputs If the output is too low, but should be high then increase the weights attached to high inputs

ANN Capabilities & Limitations

Limitation

It is networks rather than single neurons which are used today and they are capable of recognizing many complex patterns.

Example of multilayer ANN Calculate the output from this network assuming a Sigmoid Squashing Function.

Try calculating the output of this network yourself.

ANN Capabilities & Limitations Main capabilities of ANN includes: Learning. Generalisation capability. Noise filtering. Parallel processing. Distributed knowledge base. Fault tolerance. Main problems includes: Learning sometimes difficult/slow. Limited storage capability.

Thank you End of Chapter 18