CAT 1 - Artificial Intelligence Programming
CAT 1 - Artificial Intelligence Programming
GABRIEL GITONGA
21/08375
Question 1:
a) Define machine learning and describe its main categories: Supervised,
Unsupervised, and Reinforcement learning. (3 Marks)
Machine Learning (ML) is a branch of artificial intelligence that systems to learn from
data and gradually get better at what they do without code being written explicitly.
Machine learning can be divided into the following main categories:
Supervised Learning: In this method, the input data is paired with the correct output, and
the model is trained on a labelled dataset. The goal is for the model to learn a mapping
from inputs to outputs.
Unsupervised Learning: In this case, unlabelled data is used by the model. Without
specifying the desired outputs, it finds patterns or structures in the data.
b) Provide one real-world example for each category, explaining how ML is applied
in that scenario. (3 Marks)
Email Spam Detection: Supervised Learning: Machine learning algorithms analyse
emails classified as "spam" or "not spam" to identify traits of spam emails. The learnt
patterns can then be used by the trained model to categorize newly received emails.
Importance in AI Applications:
Large volumes of natural language data may be processed and analyzed by machines
thanks to NLP, which enhances human-machine communication.
It enhances user experiences and makes technology more accessible by powering
apps like chatbots, virtual assistants, and translation services.
d) Describe how AI-powered NLP systems like chatbots are transforming customer
service in modern industries. (2 Marks)
Chatbots and other AI-powered natural language processing (NLP) systems are
transforming customer service by offering 24/7, immediate assistance. They can handle
numerous questions and issues without the need for human interaction, understanding and
reacting to consumer requests in real time. As a result, wait times reduce, efficiency is
increased, and human agents can concentrate on more difficult jobs. Chatbots, for instance,
can help with troubleshooting, order tracking, and FAQs, all of which increase customer
happiness.
e) Explain the role of computer vision in AI, and discuss how it is used in
healthcare for diagnosing diseases. Provide an example.
(2 Marks)
Machines can now understand and read visual data from the outside world, including
pictures and movies, thanks to the artificial intelligence field of computer vision.
Computer vision is used in the medical field to assess medical pictures, such as CT, MRI,
and X-rays, in order to help diagnose illnesses. AI can help radiologists diagnose diseases
like tumors or fractures more quickly and correctly by spotting abnormalities and patterns
in these images.
(3 Marks)
Propositional Logic is a branch of logic that analyses statements that might or might not
be true. It uses logical conjunctions like AND, OR, and NOT to construct complicated
arguments from simpler ones.
Propositional logic is important for artificial intelligence (AI) since it is used by expert
systems and other machines that use standards formed by logical statements to reach
decisions or draw conclusions. It provides an understandable basis for thinking about
knowledge and enables the automation of complicated processes of decision-making.
.
By analysing legal statements and conditions, propositional logic in legal reasoning can
assist in automating case analysis. An AI system may assess events to determine whether
the requirements for legal actions are fulfilled, for example, if a contract specifies that "If
A occurs, then B must follow," which would help lawyers make decisions
Chaining backwards:
This approach determines which truths must be true in order to achieve a goal by starting
with the goal and working backward.
Backward chaining, for instance, may begin with the objective of establishing the
innocence of a person and go backward through the law to ascertain which evidence is
necessary for supporting that conclusion in a legal reasoning framework.
d) Briefly explain why propositional logic alone is not sufficient for handling complex
real- world AI problems, and suggest what logical system might overcome these
limitations.
(2 Marks)
Predicate logic, sometimes referred to as first-order logic, is a logical framework that can
get around these limitations and support more complicated statements involving objects
and their relationships. Fuzzy logic is also appropriate for real-world applications because
it can manage uncertainty by permitting truth values to vary between true and false.
Question 3: Applications of AI
a) Discuss how AI is improving diagnostic accuracy and treatment recommendations in
healthcare. Include one AI tool or system used in hospitals. (3 Marks)
AI in healthcare helps in the analysis of patient data, such as test results, medical pictures,
and medical history, to help physicians make more precise diagnoses. By accessing huge
medical databases and comparing a patient's condition to similar cases, it can also suggest
individualized treatment approaches.
Neural networks process data through a structure of interconnected nodes (neurons) that mimic the
functionality of the human brain. Each neuron receives input data, applies an activation function,
and forwards the output to the subsequent layer.
Processing Steps:
END