Artificial intelligence

Computer Science · Automated and emerging technologies. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Computer Science topics

The idea

Artificial intelligence (AI) is the branch of computer science that deals with the simulation of intelligent behaviour by computers. An AI system has a collection of data and the rules for using that data. It has the ability to reason, and it can include the ability to learn and adapt.

An expert system copies the knowledge of human experts in one subject, for example diagnosing an illness or a fault in an engine. The user answers questions and the system gives a likely conclusion.

In machine learning, a program can automatically adapt its own processes and/or data. It gets better at a task as it is given more data, without a programmer rewriting it.

In simpler words

Artificial intelligence is when computers act in ways that seem intelligent. An AI system has data, rules for using it, and the ability to reason. It may also learn. An expert system copies what human experts know, like a doctor diagnosing illness. You answer questions and it suggests an answer. Machine learning programs get better as they are given more data.

An everyday comparison

An expert system is like a very patient doctor's checklist. It asks you one question at a time, chooses the next question based on your answer, and finally suggests what is wrong. Machine learning is like a student who improves after marking many practice papers. The comparison stops working because the expert system's rules are fixed by experts, while machine learning changes its own rules.

Rules to remember

Common mistake

Students mix up the knowledge base and the rule base. The knowledge base holds the facts; the rule base holds the rules; the inference engine is the part that uses both.

In the exam

Define AI with its three features: data, rules, reasoning, and possibly learning. Name the four parts of an expert system and say what each does: knowledge base holds facts, rule base holds IF ... THEN rules, inference engine applies them and chooses the next question, interface shows questions and results. Define machine learning and state how it differs from an expert system.

Worked example

An expert system identifies a type of rock. Name the component that does each job: (1) holds 'granite contains quartz', (2) holds 'IF it fizzes in acid THEN it may be limestone', (3) shows the questions on screen, (4) works out the answer.

  1. (1) is a fact about the subject, so it is in the knowledge base.
  2. (2) is an IF ... THEN ... rule, so it is in the rule base.
  3. (3) is how the user communicates with the system: the interface.
  4. (4) needs the rules to be applied to the facts and the user's answers: the inference engine.

Answer: (1) knowledge base, (2) rule base, (3) interface, (4) inference engine.

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← RoboticsProgram development life cycle and decomposition →Take a Computer Science test