Free Essay

Nural Network

In:

Submitted By prage
Words 1371
Pages 6
3006-NEURAL COMPUTING
ASSIGNMENT 2 GROUP 09

NAME G.D.P.M. Perera A.A. Vidura H.P.S.S. Kumara G.M.T.C. Galahena

INDEX No 10001352 10000909 10000552 10000437

TAKE HOME ASSISGNMENT GROUP

09

Part 1
Introduction
In the part 1, we have to classify the given four English Characters into known four different classes. As the output classes are known we used Feed Forward Back Propagation method to train the artificial neural network. Here is a brief description of a supervised training network.

Consider the network output Y which is usually denoted by NET, When the network is trained for a specific Target, this training process is called Supervised Training. In supervised training, when the network is being trained it is required to produce the expected target. Training is carried out in such a way that, weights of the network are trained (or adjusted or updated or modified) until the network produces the expected target.

Basic steps of supervised training
     Weights are randomly set. Target (Expected or Desired output) is identified. Input is applied to the Network. Network Actual Output (Weighted Sum of Input) is calculated. Calculate the Error (Error = Target ~ Actual Output).  Weights are updated until the Error is minimized

2

TAKE HOME ASSISGNMENT GROUP

09
Dalta Rule

   

– Wnew - Wold η – Learning rate parameter δ – Error (target – actual output) x – input

In a feed forward back propagation network the signals are traveled on the forward direction and inputs have no feedback from the output. And the error is propagated backwards from the output nodes to the input nodes. There can be hidden layers as well and the output of a layer is weighted and given to the next layer. Here are the abstract steps of the neural network.

Build the network (newff)

Train the Network (train)

Test the Network (sim)

Inputs for the Neural Network
We have been given 25 images for each character. The task of ANN is classifying these characters correctly. We used first 25 images for the training and rest of 10 images for testing.

Preprocessing
As the inputs are formed in different scales first we have to scale them into acceptable size. This will help to ANN to generate correct output. We decided to scale down all the inputs to the size of the data set which was 40x40 pixels. To do that we used the “imresize” function available in image processing toolbox in matlab. After resizing the image convert it to grayscale image because the scanned images may be in rgb or different color formats. Convert it to a binary image. Detect the edges of the character image.Perform the image dilation and image filling on the image

3

TAKE HOME ASSISGNMENT GROUP

09
% Reading the First Input(character "o") folder = '.\images\trainnig\o\'; a = dir('.\images\trainnig\o\*.jpg'); size_o = size(a) for m=1:1:size_o(1) I = imread(strcat(folder,a(m).name)); I1 = rgb2gray(I); I1 = imresize(I1,[40,40]); I1 = im2bw(I1,graythresh(I1)); I1 = edge(uint8(I1)); sem = strel('square',2); I1 = imdilate(I1, sem); I1= imfill(I1,'holes'); char1(m).im = I1; end

After processing the image, the input image again resize in to 13*13 pixels to reduce the number of input nodes. for k=1:25 mat1(k).im mat2(k).im mat3(k).im mat4(k).im end =imresize(p.char1(k).im,[13 =imresize(p.char2(k).im,[13 =imresize(p.char3(k).im,[13 =imresize(p.char4(k).im,[13 13]); 13]); 13]); 13]);

The input image should be converting into a column vector of 169x1 in order to create the input vector for the ANN. for k=1:25 mat11(k).im mat12(k).im mat13(k).im mat14(k).im end

= = = =

mat1(k).im(:); mat2(k).im(:); mat3(k).im(:); mat4(k).im(:);

After that those reshaped combined together and made the 169*25*4 input vector for the ANN.

Declaring the targets
In supervised training we have to set the target for the ANN. We used following binary pattern. Classification for target 1000 – for the target of the “o” 0100 – for the target of the “q” 0010 – for the target of the “a” 0001 – for the target of the “c”

4

TAKE HOME ASSISGNMENT GROUP

09

Training the network
Matlab command ‘newff’ creates a Feed Forward Back Propagation artificial neural network. Syntax net = newff(minmax(alphabet),[S1 S2],{'logsig' 'logsig'},'traingdx'); Description alphabet(PR) - R x 2 matrix of min and max values for R input elements. S1 - Size of the 1st hidden layer. S2 – Size of the output layer. 'logsig' - Transfer function of ith layer. 'logsig' - Backprop network training function. 'traingdx' - Backprop weight/bias learning function.

Testing the Neural Network
10 images of each character are used to test the ANN that we have already created. Following Matlab command ‘sim’ used to test and simulate the results in the code. Syntax fout = round(sim(net,test)); Description SIM simulates neural networks. net - Neural Network. test - Network inputs for testing. and returns: fout - Network outputs.

Sample output

5

TAKE HOME ASSISGNMENT GROUP

09

Conclusion
    probability to classify the character “o” is 100%. probability to classify the character “q” is 90%. probability to classify the character “a” is 80%. probability to classify the character “o” is 100%.

6

TAKE HOME ASSISGNMENT GROUP

09

Part 2
Unsupervised Networks - Self-Organizing Maps (SOMs) In a way similar to the self-learning process of the human brain, a neural network can be designed for Unsupervised Learning. In this case, the network does not have a target for the given input. Instead, the network decides the most appropriate class for the given input by selecting the most relevant (output) node in the hidden layer. Steps followed in unsupervised network training are:
      

Set Weights Randomly. Apply Input Vector X . Calculate the Strength (i.e. Weighted Sum) of Each Node. Determine the Node i with the Highest Response. Declare the Node i as the Winner. (i has the Weights most similar to X) Train Weights of i to make them even more similar to X. Go to step 2 above until end-of-input.

Generating the random real numbers within the four given ranges
Followings are the ranges

Class 1 15.7-16.0

Class 2 16.2-16.5

Class 3 16.7-17.0

Class 4 17.2-17.5

To generate random numbers rand function is being used. Training set has 400 inputs 100 from each range all insert into a matrix.Each range is given as a row in the train set matrix.Given below are the command’s for creating the train set.

7

TAKE HOME ASSISGNMENT GROUP

09 p1 q1 r1 s1 = = = = 15.7 16.2 16.7 17.2 + + + + (15.7-16) * (16.2-16.5) (16.7-17) * (17.2-17.5) rand(1,100); * rand(1,100); rand(1,100); * rand(1,100);

% training set X_1= [p1 q1 r1 s1 ;q1 r1 s1 p1 ;r1 s1 p1 q1 ;s1 p1 q1 r1 ]; p2 q2 r2 s2 = = = = 15.7 16.2 16.7 17.2 + + + + (15.7-16) * rand(1,25); (16.2-16.5) * rand(1,25); (16.7-17) * rand(1,25); (17.2-17.5) * rand(1,25);

% testing set X_2= [p2 q2 r2 s2 ;q2 r2 s2 p2 ;r2 s2 p2 q2 ;s2 p2 q2 r2 ];

Training the Network
Initializing the Network netsom=newsom([ 15.7 17.5;15.7 17.5;15.7 17.5;15.7 17.5],4); netsom.inputWeights{1}.initFcn = 'randnc'; netsom.trainParam.epochs = 10

Training the Network
We create column vectors (X11, X22) . X11 is for input vector and X22 for train vector.
X11=zeros(4,100); for i=1:400 X11(:,i)= X_1(:,i); end X22 = zeros(4,25); for i=1:100 X22(:, i) = X_2(:, i); end

To train the network the function train is being used . For this we use trainSet that has being obtained earlier.
% Training SOM netsom = train(netsom,X11);

8

TAKE HOME ASSISGNMENT GROUP

09
Geting the Output we can use sim function to get output result_1 = sim(netsom,X11); result_2 = sim(netsom,X22);

Sample output

Conclusion
Every instance the error rate is very close to the 0%

9

Similar Documents

Premium Essay

Computer

...in researching   1) Developing a search strategy showed me how to organize my material and stay on topic. It also introduce me to key concepts which I have been using in my classes when studying and taking notes. Ironically I found using this method at work as well. Recently I found a solution to an ongoing network problem and my manager approached me asking me to fully research the resolution draft an email and send it out to the entire team.By using the search strategy I was able to gather the correct information that was needed to draft the email and send it to my team. 2)The Boolean operator AND OR NOT stuck in my head the most. I learned that this method is the main component to an effective statement and to broaden or narrow your search. When I use to search google without using the Boolean operator I always wondered why the search engine always gave me along list of searchs that didnt really relate to what I was looking up. By using this method I was able to get the exact results that I wanted and as I mention above this method was also used when I did my initial search statement for the email I sent to my colleagues on how to properly resolve the network issue. 3)Lastly the most important component of a research project is to cite the resources appropiately. In this course i was introduce to several styles of citing. There are different citing styles for different  documentation styles. I had to go back and really study this method thoroughly as suggested by...

Words: 337 - Pages: 2

Free Essay

There After

...How would one counter an active attack? b) Give examples of two possible scenarios when one cannot be absolutely certain that an adversary is launching a modification-of-message attack or denial-of-service attack, even when the proper security protections are in place. Explain your answer. c) How could traffic analysis jeopardize security? Give an example to illustrate your answer. Question 2 (a) Is it likely to achieve perfect security for a network (i.e. to have a network that will never fail in terms of security) in the real business world? Give three possible reasons to substantiate your answer. (b) The computing speed is much faster these days compared to that some years back. On the other hand, old algorithms and systems are still in use. Give three reasons to explain this situation. Question 3 a) (i) Explain Security Services and Security Mechanisms. (ii) Suppose the main threat of a network is replay attack. Does the use of confidentiality services protect the network against such attack? Explain your answer. (iii) Is it always the case that only one mechanism can be used to achieve the provision of a particular service? Give an example to illustrate and explain the answer. (b) Explain how the following services ensure security of the systems or of data transfers and give possible example or scenario for each: i) Message authentication ii) Non- repudiation iii) Confidentiality ...

Words: 284 - Pages: 2

Premium Essay

Harriet's Chocolate Factory

...Case Study 1: Harriet’s Fruit and Chocolate Company Daniel Michovich Dr. Otto CIS532: Network Architecture and Analysis January 26, 2013 Mission Statement: Striving to be number one fruit and chocolate industry area wide. Introduction “Harriet’s Fruit and Chocolate Company was established in 1935 in the Pacific Northwest of the United States to ship gift baskets of locally grown peaches and pears to customers in the United States (Oppenheimer, 2011)” In regards to the physical infrastructure of Harriet’s Fruit and Chocolate Company, my investigation will reveal many important aspects to aid in the planning of the network design. First, I will determine the number of buildings to be used, as well as the distance between them and what equipment they will contain such as wiring closets or computer rooms and the current network devices. Determining the distance will help in the cabling design and wiring as well as the selection of technologies and devices to meet the design goals. My investigation will further reveal any architectural or environmental constraints, such as tall trees within the path that power lines may travel, that will assist in decisions such as whether wireless technologies are feasible as well as if there are any impediments to communications or installation, to include all hazards. Infrastructure architecture consists of the hardware, software, and telecommunications equipment that, when...

Words: 1326 - Pages: 6

Free Essay

Ecss Practice Exams

...| | |The most damaging of the denial of service attacks can be a _______________ attacks, where an attacker uses zombie software distributed | |over several machines | | | | | |[pic] | |Bot | | | | | |[pic] | |Distributed denial of service ...

Words: 2882 - Pages: 12

Premium Essay

Ipremier Case Study

...customer an opportunity to decide if they want the products or not. iPremier Company iPremier is one of the top retail business that sell the luxury items, profiting $2.1 million on sales $32millions in 2006. Since then sale has grown over 20% annually. There was a decrease, but everything works itself out. Upper management describes working at iPremier as intense. .Qdata is the company that host iPremier computer equipment and provided connectivity to the internet (Austin and Murray, 2007). Although Qdata offers monitoring of website for customer and network operation, they had not invested in advanced technology and was not able to keep staff. During 75-minute attack how well did they iPremier perform. What would you have done differently if you was Bob Turley Bob Turley is new Chief Information Officer and is currently in New York on business. AT 4.31 am he received a call, from the network been hack and wired email received with just the word “Ha”. The site was a DoS attack coming from about 30 locations, the purpose of the attack was an attempt to make the computer unavailable. iPremier was not ready for such an attached and didn’t have anything in order which would help them with such an attacked. The situation was poorly handled, and Bob did not contact anyone higher up to let them know what was going on. He didn’t know who to contact, whether to call police or FBI or who to contact at...

Words: 967 - Pages: 4

Free Essay

Trending & Aggregation

... | |*Document Date: |[2013-05-20] | | T&A Handbook [pic] Update Notes |Date |Version |Description |Author | |2013-05-20 |V1 |T&A Handbook |Elham Kalantari | Contents 1 Introduction 3 2 T&A Interfaces 3 2-1 Source Availability 3 2-2 Dashboards 4 2-2-1 General Information 4 2-2-2 Over Time Mode 5 2-2-3 Over Network Elements Mode 9 2-2-4 Dashboards Contextual Menu 9 3 Examples 10 Introduction This document will guide you through the Trending&Aggregation (T&A) user interfaces. Some examples are available at the end. T& A Interfaces 2-1 Source Availability [pic] : This icon allows the visualization of source file availability. By clicking on it, below window appears. [pic] :...

Words: 1080 - Pages: 5

Premium Essay

Computer

...afford to spend and if anyone is technical in the company or are they going to need some outside help to keep up maintenance after the system is in place. (this can add to the cost of the system) My next step would be to start asking some questions about the law firm. I would like to know what the law firm is in charge of doing. Criminal, civil, family or so on; I think this would give me a better understanding of some of the information I may be working with along the way. As a law firm I am sure they spend a lot of time in the courtrooms and in their home offices so other questions I would ask is if they have cell phones and laptops that will need to access information on the network; this will help in a couple of areas, firstly in deciding if we should consider cloud computing or a private network and secondly, how to set up files access and permissions by departments and depending on size of company, maybe servers. Being a law firm a big consideration would have to be security of the information they access and ways of accessing this information. I would like to talk with the employees also, just to get an idea...

Words: 500 - Pages: 2

Free Essay

Paper

...Ruben Quinones IT245 - Introduction to Network Management Colorado Technical University Online Professor: Dr. Shawn P. Murray Phase 1 Individual Project Due January 13, 2013 Table of Contents Section 1: Target Organization - Identifying the Network 3 Section 2: Diagramming the Network - Network Architecture 4 Section 3: Network Models 5 Section 4: Network Protocols and Agents 6 Section 5: Network Security 7 Section 6: Network Management 8 References 9 Section 1: Target Organization - Identifying the Network * My organization is located in Pompano Beach, FL with a secondary warehouse location at Sunrise, FL. The company employs around 1,400 to 1,500 employees which 300-400 are computer and mobile device network user. * All of our users must use password protected sign on to access the network which gives access to our main software systems. * The company uses to Dell servers, one for back up and one for daily accessing. * The IT department consists of 5 employees; * IT manager – Supervises all IT technicians and Help desk operators. * Network I technician – overviews and maintains network protocols, ensures regular server maintenance is executed. * Network II Technician – gives back up to Network I and provides different analytical services to users. * Help desk technicians I and II – Executes more regular tasks, such as user maintenance, printer set up, workstation access and set up, and mobile devices...

Words: 269 - Pages: 2

Premium Essay

Case 2.1 Server Downtime

...TO: FROM: DATE: February 15, SUBJECT: Server Downtime Problem Statement: This report contains my findings and recommendations as a result of my research. This is a look into the server downtime and problems with the primary network servers here at Widget Company. First we will be looking into the numbers and statistical results I have found. Statistical Results: Based on the data I was given during the month of April the network experienced 5 different problems, they are lockups, memory errors, weekly virus scan, slow startup, and manual restart. The results of these issues are. 22 times the server was down 735 Minutes of total time server was down * * Of those 22 times the server was down the breakdown of how frequently each one occurred is as follows. * * * * This shows that memory errors were the most frequent reason the server was down. Memory errors were also responsible for the most time at 34% or 250 Minutes. What is interesting is that while there were only 4 times the server was down for its weekly virus scan it was responsible for about 33% or 240 minutes of the server downtime. * * * * Aside for the 4 planned weekly virus scans of 60 minutes each. The server was down 18 times for 495 Minutes. Memory errors contributed to over half of this downtime. Next we will take a look at my recommendations based on the data. * * Conclusion * * The server was down for a total of 735 Minutes during...

Words: 323 - Pages: 2

Premium Essay

Unit 8 Assignment 1

...institutions, and a number of private security firms — all working to study and combat data breaches. Analysis With 47,000+ Security incidents analyzed, 621 confirmed data breaches studied, and 19 international contributors, Verizon has ample amounts of data to compile and use to better their network. This data can also be analyzed to see what types of people are making these breaches and what motives they may have for doing so. In the 2013 DBIR, 69% of breaches were spotted by an external party and 76% of the network intrusions were due too weak or stolen passwords. Some of the other factors that have been realized was that 75% of the attacks are opportunistic and 19% of attacks are some form of espionage. There is also much evidence that many of these breaches could be tied to organized crime and gathering financial information. On a very basic level, just looking at the history of organized crime, money has always been in the center in one form or another. The money can be in the form of an exchange for a good or service, or it could be, knowing the financial information of someone for future business proposals or some other malicious intent. Recommendations - Tighter security on the networks. - Since some data breaches are done by resigned employees, instant account closing of all resources to...

Words: 344 - Pages: 2

Free Essay

Help

...encompass many components that focus on efficient and effective programs, providing services and benefits to the most vulnerable individuals in the state. One of Hawaii’s most profound agencies known in the State of Hawaii that is correlated with human services is “Helping Hands Hawaii.” Although there are many agencies that have different approaches, human services rely on agencies that are most cost-efficient yet effective. Interoperability plays a major role in the future of human services. It is the “ability of two or more systems to exchange information and to use the information that has been exchanged” (Schoech, 2010). The three possible models for approaching interoperability in the human services are Loosely Linked Network Model, Network Model, and Top-Down Model. Human services emphasize in the importance of interoperability, as agencies collaborate with the same identified need to help others. Helping Hands Helping Hands Hawai’i manages numerous programs that benefit the people of Hawaii; this includes Behavioral Health Programs, Ready to Learn, Emergency Assistance Program and many more. Their mission is to support the community by improving the quality of people’s lives through the delivery of goods and services to those who are in need. For families and individuals, Helping Hands Hawaii is a new quality of life that overcomes the obstacles that block the way of meeting their full potential. This non-profit organization revenue from State agencies, grants...

Words: 869 - Pages: 4

Premium Essay

Aljazeera

...Content: The page complete and functioning very well, all the aliments of the page are ready to be used as soon as entering the website, the content is included in each link in the page. The title of the page is Aljazeera and the logo of the network is at the left side of the word, it's noticeable because it's written in a big font size and a special font style. A big network like Aljazeera need for sure to be updated frequently add on the argent news happening must be included in the website, the website has allot of parts and each part talks about a special kind of news for example the wither, sports, and watch live, those areas are a sensitive information's and must be updated as soon as an information is received to the network responsible employees, looking at the website Aljazeera didn’t miss that point at all, the information's are being updated frequently. At first the audience of Aljazeera was just Arab world, but at November 2006 Aljazeera English has been lunched the target audience after that is all the world with its deferent Taste and backgrounds Aljazeera nowadays gives almost all the news that each one around the world would need, it's almost nothing there you are not interested in. Aljazeera has no any obvious bias or slant to the information it has been always with the truth and human rights and it's taking it as a lead to its perfection, actually Aljazeera has an awards proofing that, and it's giving both sides Opinions which is fair enough. There are allot...

Words: 357 - Pages: 2

Premium Essay

Microsoft Server 1 Lab 6.1

...available in the system stability report selection? Software unitalls, application failure, hardware failure, windows and miscellaneous 7.Waht logs are available by default? Application,security,setup,system and forward event 8.What is most recent Event id logged to the Application log? Application,security,setup,system,forward events 9.What is the most recent Event ID logged to security log? 4634 10.What is most recent event id logged to setup log? 1610 11. What is most recent event id logged to system log? 7036 12.How many events are displayed in this custom view? 52 13.What is the keyboard shortcut to begin a network capture? F5 14.What appears in the Capture Filter pane? 15.Does anything appear in the Network Conversations pane? no 16.Does anything appear in the Network Conversations pane? All traffic,my traffic, 17.Where will WSUS downloads be stored by default? (c:/wsus) 18.What database does WSUS use by Default? MSDE 19.What types of updates does WSUS download by default? Automatic updates 20.What nodes are available under the W2K40 node?...

Words: 260 - Pages: 2

Free Essay

Syllabus

...it is both my hope and expectation that you will complete this course with an understanding of network design and management.For me networking started with me completing my Bachelor of Science in Electronic Engineering Technology in 1988. I then went on to complete a Master of Science in Computer Science, from Illinois Institute of Technology in 1992.  In 2011, I completed my doctoral studies at Georgia State University. From about 1988 – Present, I have worked for various Telecommunication companies, such as, AT&T Bell Labs, Tellabs, Nortel, and Cisco Systems.  My most enjoyable position was designing fiber optic networks for many of the top tier ISP/Service Providers today.I love to play tennis; I wish that I could play tennis for a living. I play in KSWISS Men’s Single League, T2 Tennis, Peach Tennis and tournaments. I also love running at least three times a week. The other activities I enjoy, working on my computer, playing with my dog and enjoying the beautiful outdoors.If you every need to contact me, please give me a call or email me. We can setup a time that is convenient.  Please remember, I am here to help you not only complete the course, but also to be sure that you can master the concepts and skills that the course offers.  My contact information is listed in the syllabus. Thanks, Dr. Wright |   | Print This Page |   | | Course Text |   | Top-Down Network Design 3rd Edition by Priscilla Oppenheimer © 2011 Cisco Press | First Time Using VitalSource...

Words: 3071 - Pages: 13

Premium Essay

Personal Responsibility Essay

...new Visual Netwoking Index forecast, “Online video will be more popular than Facebook and Twitter by 2017”. Digital Media is a fast growing platform; I didn’t know anything about Digital Media until I started working with a YouTube Network. There are a lot of other online platforms out there such as Netflix, Hulu, Crackle, among others, but Youtube is the largest platform where independent content creators can share their work across the World and monetize their videos. Because YouTube showcases talented people who have channels, Networks started to come around in 2010/2011. I work as a Lead Recruiter for Brazil’s department of the largest Latin Network on YouTube, yet a startup company that started business in April 2012. Because it is a new company there are great opportunities for growth within the company, however, this business is very challenging due to competition. There are many other Networks around and 70% of channels across YouTube are already part of a Network. Even though the business I am in, most of the time depends on luck because it is all about sale and persuasion, I want to get a promotion in my current job and to make this happen, I will need to work really hard to exceed all my goals which are usually to bring to the network high number of monthly views. It is my personal responsibilities to either get a promotion at my current job or to find a new job, which will help me to advance in my career and to get financial stability. Because I want to advance...

Words: 590 - Pages: 3