What is artificial intelligence?
Artificial intelligence is the simulation of intelligent behaviour by computers. An AI system may analyse information, recognise patterns, reason, learn, adapt and make decisions. These abilities describe what AI can do; they do not mean that every AI system uses every ability.
Cambridge syllabus focus
Topic 6.4 covers artificial intelligence, machine learning and expert systems. Understand characteristics, explain how a system learns from results, and identify the roles of the user interface, knowledge base, rule base and inference engine.
AI characteristics: reason, learn, adapt and decide
Some AI systems reason using available information, recognise patterns in data and make decisions based on those patterns. Systems using machine learning can also learn from data and adapt their future behaviour.
| Characteristic | Meaning |
|---|---|
| Reasoning | Using information to reach a conclusion. |
| Pattern recognition | Finding similarities or regularities in data. |
| Learning | Improving a model or process using data or results. |
| Adapting | Changing future responses based on new information. |
| Decision-making | Selecting an outcome or action from available information. |
How does machine learning work?
Machine learning is an approach to AI in which a system uses data to identify patterns and improve its performance on a task. Rather than a programmer specifying every decision individually, a model learns relationships from examples or observations.
For example, a search engine can analyse patterns in previous searches and interactions to help improve the relevance of later results. An improvement is a goal, not a guarantee: the quality of the training data and evaluation matters.
Check your understanding
Why might a machine-learning search system use information from previous searches?
Reveal answer
To identify patterns in previous interactions and adjust its model or ranking so future results may be more relevant.
Supervised and unsupervised learning
In supervised learning, the system learns from labelled examples, where the expected answers are provided. In unsupervised learning, the system looks for patterns or groups in data without supplied answer labels.
| Approach | Training data | Example |
|---|---|---|
| Supervised | Examples with labels | Emails labelled spam or not spam |
| Unsupervised | Examples without answer labels | Grouping similar customer behaviour |
Check your understanding
A model is given pictures labelled βcatβ and βdogβ. Which learning approach is this?
Reveal answer
Supervised learning, because the examples include the correct labels.
What is an expert system?
An expert system attempts to reproduce specialist decision-making within a limited field. A traditional rule-based expert system applies stored knowledge and rules to facts supplied through its interface, then produces advice, a recommendation or a diagnosis.
Examples include medical decision support, technical fault diagnosis and equipment troubleshooting. An expert system does not automatically learn from experience: a conventional rule-based system relies on its stored rules unless those rules are updated.
The four components of an expert system
| Component | Role |
|---|---|
| User interface | Accepts information and displays questions or results. |
| Knowledge base | Stores facts and specialist knowledge. |
| Rule base | Stores rules that connect facts to conclusions. |
| Inference engine | Applies rules to facts to derive conclusions and, where relevant, choose further questions. |
β Knowledge base + Rule base
β Recommendation
Worked example: diagnosing a faulty computer
A user reports that a computer will not start. The interface asks whether the power indicator lights up. The inference engine uses the answer with the stored facts and rules to decide which question to ask next or which fault to suggest. The system presents its recommendation through the interface.
AI, machine learning and expert systems compared
| Term | Key idea |
|---|---|
| Artificial intelligence | Broad field of systems performing tasks associated with intelligent behaviour. |
| Machine learning | AI approach that learns patterns from data. |
| Expert system | Specialist system that applies stored knowledge and rules to a problem. |
Common Cambridge exam mistakes
Some AI systems use fixed rules. Learning is a characteristic of machine-learning approaches, not a requirement of every AI system.
Supervised learning uses labelled examples; unsupervised learning searches for patterns without labels.
The inference engine applies rules; the knowledge base stores facts.
Instead of βit learnsβ, identify what data is used, what pattern is found and how future decisions may improve.
Original FutureLogic exam-style practice
These are original teaching questions, not official Cambridge examination questions. Suggested marks are indicative.
Question 1 β 2 marks
State two characteristics of artificial intelligence.
Reveal model answer
Pattern recognition and reasoning. Other suitable examples include learning, adapting and decision-making.
Question 2 β 3 marks
Explain how a search engine could use machine learning to improve results.
Reveal model answer
It collects information about previous searches and interactions, identifies patterns in that data, and uses an updated model to help rank future results more relevantly.
Question 3 β 2 marks
Explain the difference between supervised and unsupervised learning.
Reveal model answer
Supervised learning uses labelled training examples; unsupervised learning finds patterns or groups in unlabelled data.
Question 4 β 4 marks
Describe the roles of four components of a rule-based expert system.
Reveal model answer
The interface collects user information and shows results; the knowledge base stores specialist facts; the rule base stores decision rules; the inference engine applies those rules to reach conclusions.
Quick quiz
- What does AI stand for?
- What makes machine learning different from fixed rules?
- Which learning method uses labelled data?
- What does an inference engine do?
- Why is an expert system usually limited to a specialist field?
Quiz answers
Reveal answers
- Artificial intelligence.
- It learns patterns from data and can adapt its model.
- Supervised learning.
- It applies rules to facts to derive conclusions.
- Its knowledge and rules are designed for a specific domain.
Final summary
AI
Simulates intelligent behaviour.
Machine learning
Learns patterns from data.
Supervised
Uses labelled examples.
Unsupervised
Finds patterns without labels.
Expert system
Uses specialist knowledge and rules.
Inference engine
Applies rules to derive conclusions.