Professional Documents
Culture Documents
ICS 3202 - Artificial Intelligence - January 2021
ICS 3202 - Artificial Intelligence - January 2021
Instructions
1. This examination consists of FIVE questions.
2. Answer Question ONE (COMPULSORY) and any other TWO questions.
Page 1 of 7
i. For data preprocessing, Encode the Mood feature using One-Hot Encoding and provide
the output table showing only the new columns created by the Encoding (3 marks)
ii. Explain which other feature will need encoding and why (2 marks)
iii. If you intend to build the model that can predict movie ratings on this dataset using
Decision Trees Model, and without calculation, state the feature that you will throw away
explaining why (2 marks)
B. A goods delivery robot wants to deliver food products to the cafeteria at Strathmore University
student center (STC). Currently it has managed to reach Madaraka shopping center.
VERTEX hSLD
Siwaka 200m
Ph.1a 195m
Ph.1b 70m
Phase 2 45m
J1 520m
Phase 3 207m
Parking lot 215m
Mada 700m
STC 0m
Page 2 of 7
i. Using the smart search, A* algorithm, heuristics table with SLD and the graph data
structure of Madaraka Estate/Stathmore University above, show how the robot will make its
decision to reach STC (8 marks)
ii. Explain the meaning of an Agents Performance Measure using the robot above and the total
distance covered (1 mark)
iii. The robotic agent is an example of Artificial Narrow Intelligence, explain why this is so (1
mark)
C. You wish to create an intelligence AI expert on Corona Virus Disease, as a knowledge engineer
you come across the following statement:
Coronaviruses are zoonotic, meaning they are transmitted between animals and people
i. Using propositional logic, construct a propositional sentence that fully capture knowledge
from this source to the KB (3 marks)
ii. Demonstrate how Modus Tollens rules can be used to generate new knowledge by the KBS
inference engine using your above complex sentences (2 marks)
iii. State and explain any two reasons why KBS systems are a limited AI solution to this
problem (2 marks)
D. Two self-driving cars in training & testing mode were provided with 10 images that needed
classification of which their image processing software did as per the below table compared to gold
standards of a human expert classifying the images as either static object or moving object
Page 3 of 7
i. Construct a confusion matrix table for image processing software of self-driving car A and
self-driving car B (2 marks)
ii. From the confusion matrix above, calculate the F1-Measure for both cars then conclude
which of the two is much safer on the road (4 marks)
The train corpus starts with the statement: What are you asking and the lead NLP engineer has already
encoded it to vectors (embeddings) given below and you are to help set up the ANN model for this learning
task. Given the below embeddings and initial ANN weights:
Page 4 of 7
D. You have suggested to train the model using Stochastic Gradient Descent Optimizer and the NLP
engineer is concerned on why you are not using the classical Gradient Descent, explain to them
your main reason for this your suggestion (2 marks)
E. Is this task of next word prediction a Classification or Regression ML task? Explain your answer
(2 marks)
A. Demonstrate how K-Means model can be intelligently used find the clusters by showing only the
first two epochs considering Euclidean Distance Measure and starting with two clusters 𝑎, 𝑏, 𝑑
and 𝑐, 𝑒 show all your calculations (9 marks)
B. Using KNN model show the clusters formed after the First epoch of KNN (4 marks)
C. Is the above example supervised or unsupervised learning? Why or why not? Explain (2 marks)
Page 5 of 7
Outlook Temperature Humidity Plant Seed
B. According to WHO 13000 Kenyans lose their lives in road accidents every year while according to
McKinsey & Company, driverless technology can cut that number by 90% bringing it down to
about 1300.
i. Comment on the average 90% accuracy of autonomous vehicles, is it acceptable? In your
view how would Nairobians respond if even one life is lost in the name of a machine on
the road by itself? (2 marks)
ii. Comment on how crucial Technology Law & Ethics can help fix pressing issues that AI as
a powerful technology presents such as the one above by suggesting any three amendments
that you can propose (3 marks)
Page 6 of 7
QUESTION FIVE (15 MARKS)
A. If a Self-Driving Fire Engine was to be introduced in Nairobi, what would be the major practical
challenges that this project will face and how different will the training model be from a ‘normal’
self-driving car? Write a two-paragraph essay of not more than slightly half a page discussing this.
(8 marks)
B. An NLP researcher wants to train a question answering model to help guide tourists around Nairobi.
He has come along a Wikipedia page about Nairobi containing the below facts:
Nairobi is green
Assuming sentences as documents, construct for him a term-document matrix using Tf-IDF
embedding calculations as a data preprocessing requirement (5 marks)
C. Why does the NLP engineer need to convert word to embeddings before training the model?
Explain (2 marks)
Page 7 of 7