Exam 2020
Exam 2020
Exam 2020
a) Using your own intuition and your own definitions of the Universe of
Discourse, plot fuzzy membership functions for the age of people:
(i) Very young
(ii) Young
(iii) Middle-aged
(iv) Old
(v) Very old
b) The results of a price survey for 30 vehicles is presented here (unit price
in £1,000):
Economy 5.5 5.8 7.5 7.9 8.2 8.5 9.2 10.4 11.2 13.5
Mid Size 11.9 12.5 13.2 14.9 15.6 17.8 18.2 19.5 20.5 24.0
Luxury 22.0 23.5 25.0 26.0 27.5 29.0 32.0 37.0 43.0 47.5
i) Partition the input variable, θ into 5 labels within the range of ±180°,
and the output variable, EP, into 3 labels in the range of ±1. Plot the
membership functions of both.
R1
R2
Figure Q2
The input layer (layer 1) is described by a Gaussian membership function
represented by the following equation:
−(𝑥𝑥 − 𝑐𝑐)2
𝑦𝑦 = exp ( )
2𝜎𝜎 2
A1 A2 B1 B2
σ c σ c σ c σ c
0.2345 -0.0597 0.2383 1.059 100 1 100 1
Table Q2 a)
b) Let A = {0.5/-7, 0.9/-4, 0.6/0, 0.2/4, 0.1/7} be a fuzzy set defined in the
Universe of Discourse X. Let B = {0.25/-3, 0.45/1, 0.75/0, 0.8/1, 0.5/3}
be another fuzzy set defined in the Universe of Discourse Y. Find the
Fuzzy set C defined in the Universe of Discourse Z such that:
Z = f(X,Y) = X ×Y, where × is the multiplication sign.
3. Develop a simple genetic algorithm that minimizes the function
𝑓𝑓(𝑥𝑥1 , 𝑥𝑥2 ) = 100 × (𝑥𝑥12 − 𝑥𝑥2 )2 + (1 − 𝑥𝑥1 )2. Use a binary representation of
integers. Use one-point crossover, bit-mutation and tournament selection
(choose the most suitable the crossover and mutation rates). Minimize 𝑓𝑓(𝑥𝑥) in
the range of 0 ≤ 𝑥𝑥𝑖𝑖 ≤ 1023.
b) Describe how ANFIS work by giving details of each layer in the system
with the aid of a block diagram.
5.
a) Describe how Euclidean Distance can be used as a strategy for classifying
patterns in the form of vectors. Illustrate your answer with a 2-
dimensional example showing TWO reference patterns, each one
representing a class of data and a third test pattern and its classification.
A = (7, 3 4, 6, 2)
and B = (3, 6, 1, 2, 7)
X = (4, 4, 3, 6 1)
i) Euclidean distance
ii) The approximate distance you have used in part b) above.
b) A Digital Neural Network contains THREE logic functions and each one
has THREE inputs. Each function is connected to a different row of a 3 by
3 pixel input space.
XXX .XX . . X
. . . X. . . X .
. . . . . . x . .
c) What is the size of the AND generalisation set (threshold =3) and the OR
generalisation set (threshold = 1)?
d) If the patterns;
. . X . X X
XX . . X .
X . . X . .
are considered to belong to the same class as the training set, what
output threshold would be appropriate for the network to recognise
them?
7.
a) Define a 3 by 3 window operator that can be used to LOW pass filter a
grey-level image and state what correction factor needs to be applied in
order to display the filtered image
0 1 2 3 12
1 2 3 12 14
2 3 12 14 15
3 12 13 15 15
12 13 15 15 15
c) The MEDIAN filter is an alternative low pass filter. Describe its operation
and apply it to the image in part b) above.
0 0 0
0 15 0
0 0 0
and determine the resulting output pixel for both filters. In this application
which gives the better result?
8.
a) Define the single pixel operators for Intensity Shift and Intensity
Multiply giving details of any correction factors needed to keep the
processed image within the intensity range O to W.
5 5 7 9
5 6 10 10
6 7 11 11
7 10 10 12