Solve greeble problem with multilayer feedforward network

Assignment Help Simulation in MATLAB
Reference no: EM132246394

Neural Network Lab - Supervised Learning

Perceptrons

We start by creating a perceptron with two input nodes and one output node by creating a 1x2 weight matrix, W (i.e. 1 output and 2 inputs) initialized to zero, a bias weight, b, initialized to zero, and a thresholding transfer function for the output unit:

>> W=zeros(1,2);
>> b=zeros(1,1);
>> net_inp=W*inp+b;
>> out=sign(sign(net_inp)+1);

If the net input to the output node is larger than 0, the output will be 1, otherwise 0. A bias weight can be thought of connecting an additional input node whose value is always 1 to the output node. The bias weight changes the point where this decision is made. For example, if the bias is -5, the net sum has to exceed 5 in order for the output to yield 1 (the bias of -5 is subtracted from the net sum. If it is less than 5, it will fall below 0).

Let's set the weights from the two input nodes to 1 and -1, respectively.

If the sum of the input times the weights meets or exceeds 0, the network should return 1, otherwise 0. Let's try it by feeding it some inputs:

inp1 = [1; 0.5] %Note: The first, positive weighted input larger than the second

inp2 = [0.5; 1] %Note: The second, negative weighted input is larger than the first

Your output should be 1 for inp1 and 0 for inp2. The network classified these inputs correctly. You can now feed the network a large number of random numbers and see if they are classified correctly, like this:
a = rand(2,10) %Create 20 random numbers, arranged as 2 rows, 10 columns

If the value in the first input row is larger than the value in the second input row (for a given column), the output value (for that column) should be 1, otherwise 0.

Exercise 1: Adjust the bias to some arbitrary value and see how the input/output mapping changes.

Exercise 2: Explore some points in the space and see what their output is. Is it about what you expect? Does the network make gross errors? What about the initial input vector?

Exercise 3: Use a linear neural network to classify the "good" and "bad" Greebles used in the previous neural network lab. Initially, set the weights to 1 and set the bias to zero.

Exercise 4: Solve the Greeble problem with a multilayer feedforward network using a sigmoid transfer function using the backpropagation learning rule. What are the results?

Exercise 6: What happens if you add two different frequencies of sine waves and play it?

Exercise 7: Play it again at a higher/lower sampling rate. What is happening?

Exercise 8: What is the person saying? Hint: The signal was sampled at 22050 Hz. You might want to take that into account when playing it. Look at the spectrogram, too.

Project

The project is to create a network that correctly classifies the gender of two target speech bites. In order to this, train the network with a total of 6 speech bites of both genders. Load these files (called Train_Kira1 to 3 and Train_Pascal1 to 3). Of course, the two speakers differ in all kinds of ways other than just gender (age, race, English as a first/second language, idiosyncratic speech characteristics, life style, etc.). If one were to face this problem in real life, one would have to train the network with a large number of speakers from both genders so that the network can abstract from all these irrelevant dimensions. But for our purposes, this will be fine. Specifically, you should do the following:

Create a network that reliably distinguishes the gender of the two target speech bites. Provide some evidence that this is the case and submit the source code.

Hints:
• You should implement a network using the backpropagation learning rule.
• Take the spectrogram of the sound files. Use those as the inputs to your neural network. Below (Figure 10): Amplitude and Spectrogram of the sentence: "The dog jumped over the fence". Left subplot is a female speaker, right subplot is a male speaker.
A. B.
Figure 10. The amplitudes (A) and spectrograms (B) of a female and male speaker uttering "The dog jumped over the fence"


• a = spectrogram(b) will return an array of complex numbers in a. They have an imaginary and a real part. For our purposes, the real part will do. For this, type c = real(a). c will now contain the real part of the imaginary numbers in a.

• This project is deliberately under-constrained. Basically, you can try whatever you want to solve the problem. As a matter of fact, we encourage this, since it will help you understand neural networks that much better. Don't be frustrated and don't panic if you can't figure it out right away.
• If you take a spectrogram of the speech patterns that you are supposed to train the network with, it will return 129 rows and several thousand columns. A neural network that takes the entire information from this matrix has to have 129 inputs.
• This is obviously rather excessive. If you closely observe the spectrogram (see Figure 10B), you might be able to get away with less. The rows tessellate the frequency spectrum (y axis below). Power in a particular frequency band is at a particular row. Power in a particular frequency band at a particular time is in a particular combination of row and column.
• The point is that the left spectrogram has much more power in the upper frequencies than the one on the right. If you properly combine frequency bands (or sample them), you might be able to get away with a neural network that has only 5 or 10 inputs.
• The same applies for time. Your spectrogram will have several thousand columns. This kind of resolution is not necessary to get the job done. Try combining (averaging) the values in 100 or so columns into one. Then feed that to the neural network for training.
• Try using one hidden layer
• Try having a large number of hidden units (definitely more than 1)
• You will be using a supervised learning rule. The target is defined by which file the data came from (Pascal or Kira). Create an artificial index, assigning 1 and 0 (natural) or 1 and 2 (politically correct) to each.
• Always remember what the rows and columns of the variables you are using represent. Be aware of transformations in dimensions.

Attachment:- Lab4_NeuralNet.rar

Verified Expert

This project is about classifying the male and female voice of a signal.For this classification neural networks is used. Backpropogation learning rule is also implemented for training the signals.Also two sine wave signals are added and played.For that added signal higher and lower sampling rates are applied and sounds are analyzed.Finally amplitude and spectrum of male and female voice is plotted and then the voices are classified.

Reference no: EM132246394

Questions Cloud

Discuss about the possible shortcomings or bias in the work : For this assignment you will continue to review current research and provide a critical evaluation on that research through an annotated bibliography.
Change initiatives to fail and the five pillars : Organizational change is not always successful. Please explain the factors that can cause change initiatives to fail and the five pillars
List four diverse groups within your community : List four diverse groups within your community. for each group list five facts about their origin, culture, religion,traditions or practices.
Discuss the etiology of pressure injury : Discuss the etiology of pressure injury. Discuss the tool (Braden Scale) to predict pressure injury risk factors, nursing interventions and up-to-date.
Solve greeble problem with multilayer feedforward network : CPNS 33200 Neural Network Lab II - Supervised Learning - Solve the Greeble problem with a multilayer feedforward network using a sigmoid transfer function
Discuss how you would modify your current job : Discuss how you would modify your current job (or a former job) to provide a more satisfying job experience.
Describe abells three-dimensional business : Describe Abell's three-dimensional business-definition model and explain where it can be utilized.
Summarize the current organizational training program : Present an idea for a new training program or component to the existing training program which would promote employee engagement.
Should not those citizens have the obligation to pay : Since the citizens of Stinko are the primary beneficiaries of clean air, shouldn't those citizens have the obligation to pay for that clean air?

Reviews

inf2246394

8/26/2019 3:41:45 AM

I am pleased to see my comments are carefully followed. I need this assignment urgently and receive the solution document before the given deadline. Many many thanks to the team.

inf2246394

8/26/2019 3:39:33 AM

Attached are the files make sure you follow these datasets to provide an accurate solution. 32198834_1Datafiles.zip Make these codes in proper regression fit. Make a histogram that classifies the male/female signals.

len2246394

3/1/2019 10:11:42 PM

I need you to make a MATLAB scripts that runs the entire program including loading the data. All the scripts are attached. What I need is ONE MAIN MATLAB program that runs when "run" is selected in MATLAB. It needs to be able to run the data and execute the program. Attached is a guide. You DON't HAVE TO DO THE LAB REPORT. I just need a ONE MAIN PROGRAM that runs everything, from loading data to executing the experiment, when it is opened and run once on MATLAB (the main scripts are the /m files).

Write a Review

Simulation in MATLAB Questions & Answers

  Calculate the stress intensity factor

Use the three-parameter zone finite element method or the boundary collocation method to calculate the stress intensity factor K, at the crack tip for the plate

  Build a simulation using newtons laws of motion

Build a new and different simulation of your own using Newtons laws of motion and Show the code and describe how it works

  Write the specification of load mover

Write the specification of LOAD MOVER detailed of the whole design and precise for automatic control section and divide the design into various modules and Is the kernel required if yes which one?

  Design the automatic control section using statecharts

Aim of this project is to design an embedded system which can move loads from one place to another. The system can be operated manually, automatically and wirelessly.

  Need an expert who can model a drill in simulink

Need an expert who can model a drill in Simulink. Working model of a drill needing for an improvment to behave more realistically as a drill to drill through plastic block.

  Project is on load frequency control using fpid

Project is on load frequency control using FPID tuned using GA and PSO algorithm and the system is a two area system.

  Number of packets received with time

Let x be the number of packets received with time -

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Simulate the standardised sum of independent

Simulate the standardised sum of independent and identically distributed variates - Fit a linear regression model as in Q5, and plot your estimates for β0 and β1 as N increases, together with a line indicating their true values. Supply your code.

  Plot the original periodic square wave

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

  Use matlab to plot the function

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd