Reference no: EM133081891
49275 Neural Networks and Fuzzy Logic - University of Technology Sydney
ASSIGNMENT
QUESTION ONE
This problem is a variation of a pattern recognition problem. It is a simple recognition problem with three numbers 1 , 7 and 4, in different forms as shown in Figure 1a.
The six input vectors x1, x2 , x3, x4 , x5, x6 and the corresponding target vectors d1,d2 ,d3, d4, d5,d6 in the training set are:

Assume that the network has 3 hidden layer neurons and all continuous perceptrons use the bipolar logistic activation function f2(v) = 1-e-v/1+e-v. Note that due to the necessary augmentation of inputs and of the hidden layer by one fixed input, the trained network should have 26 input nodes, 4 hidden neurons, and 3 output neurons. Assign "-1" to all augmented inputs.
1.1 Assume that the learning constant is η = 0.4, and the initial random output layer weight matrix W (1) and hidden layer weight matrix W¯ (1) are

Using the error back propagation training, calculate the next weight updates W(2), W¯ (2)
1.2 The above training set was trained with the same set of initial random output layer weight matrix W(1) and hidden layer weight matrix W¯ (1) as above, and a learning constant of η = 0.4 . The training set was recycled when necessary.
Determine the final weight matrices Wf = W (301) and W¯ f = W¯ (301) after 50 cycles. Plot the cycle error curve for this training exercise.
1.3 One of the test number patterns, which is shown below:

i) Calculate the output vector z which is generated from the above input. How would the neural network classify this feature input?
ii) Suggest one solution if we want to improve the testing classification performance. Please provide a reason and testing result.

Figure 1a Multilayer Neural Network

Figure 1b. Training Set.
QUESTION TWO
Design a Convolutional Neural Network (CNN) to classify dog and cat images where each class contains 300 images. Firstly, scale all the images to the uniform size. Then, use the designed CNN to classify them, the ratio of training and testing is 7:3.
2.1 In this CNN, there are total 4 convolution layers with 24, 28, 32, and 36 filters, respectively. The filter size of the convolution layers is 5, stride is set at 1, padding is set at 2. Batch normalization is used and the active function is ReLU. After each convolutional layer, a max pooling layer is followed with filter size of 2 and the stride is set at 2. Adam (adaptive learning rate method) is used for training and the initial learning rate is set at 0.001.
Train the network for 50 epochs and show that the network is able to achieve >67% accuracy on the test dataset.
2.2 Optimise the CNN hyperparameters and show that the final testing accuracy is improved by 10% compared with the result of Q2.1 or the final testing accuracy is 75% or above. A briefly analysis should be given.
Attachment:- Neural Networks and Fuzzy Logic.rar