How does a phone know a dog?
You take a photo of your dog. Your phone says "Dog" and puts it in an album.
Nobody wrote a rule for every dog in the world. Big dogs, small dogs, black dogs, wet dogs.
The phone learned from millions of photos. This is a big change in how computers work.
Key words
| Word | What it means | Example |
|---|---|---|
| Artificial intelligence | Programs that do tasks that usually need human thinking. | A chatbot |
| Machine learning | AI that learns patterns from examples, not fixed rules. | Photo labels |
| Training data | The examples a program learns from. | Millions of labelled photos |
| Model | What a program learned from its training data, used to make a guess. | A dog photo model |
| Generative AI | AI that makes new text, pictures, video or sound. | A tool that writes an email |
| Augmented reality (AR) | Pictures added on top of the real world on a screen. | A game that shows an animal in your street |
| Virtual reality (VR) | A fully computer-made world that you see in a headset. | A tool to practise flying a plane |
| Extended reality (XR) | AR and VR together. | Both kinds of headset |
The cells students fill in are left blank in this preview.
Check: a rule or learning?
Have a go
Check: a rule or learning?
3 questionsExamples train a model that guesses
Machine learning finds its own rules
Artificial intelligence (AI) is a big idea. Machine learning is one kind of AI.
In normal programs, a person writes the rules. In machine learning, the program finds its own rules from training data.
Spam filters, shop suggestions, map traffic guesses and face unlock all use it.
Try it: a rule written by a person
message = "Win a free prize now"
spam_words = ["free", "prize"]
count = 0
for word in message.lower().split():
if word in spam_words:
count = count + 1
print("Spam words:", count)
# Change the message to "See you at lunch", then press Run again.
Make a free account to save your work and track your progress.
Your turn: rules and learning
This task shows the difference between a rule and learning. Fill in three functions.
- Count how many spam words are in a message. Ignore capital letters.
- Say if a message is spam: its score reaches a limit.
- Learn from examples: find the words that are in both of two spam messages.
Press Run Tests to check your work.
def spam_score(message, spam_words):
# Count how many of the words in the message are in spam_words.
# Ignore capital letters.
return None
def is_spam(message, spam_words, limit):
# Spam if the score is the limit or more. Give back True or False.
return None
def learn_spam_words(first, second):
# Learn from two spam messages. Find the words that are in both of them.
# Ignore capital letters. List each word once, in the order of the first message.
return None
Make a free account to save your work, or press Start lab to work through the whole lesson.
A program learns what it is shown
Warning
Many people think a computer's answer must be fair. A model learns only what its training data shows. If the data is poor or unfair, the program is too, so people must test it and check the results.
Generative AI makes new content
Generative AI is trained on huge amounts of text, pictures or sound. It then makes new content when you ask.
It can write a plan, draw a picture or write code, and it saves time. It can also be wrong while sounding sure. It can make a fake picture or voice that looks real.
Generative AI: gains and worries
| Who | Possible gain | Possible worry |
|---|---|---|
| A person | Help with writing, study and ideas | Wrong facts. Copying work and calling it your own |
| An organisation | Faster first versions of work. Cheaper customer help | Staff may paste private data into a tool. Mistakes in public |
| Society | New creative tools. New jobs | Fake news. Jobs lost. Questions about who owns the work |
The cells students fill in are left blank in this preview.
Check: using an AI tool safely
Have a go
Check: using an AI tool safely
3 questionsExtra: Going further: the word deepfake
Note
A fake video, picture or voice made by AI is often called a deepfake. It can show a real person saying something they never said. Check other trusted sources before you believe or share a shocking clip.
AR adds to the world, VR replaces it
Augmented reality (AR) adds pictures on top of the real world. You see your real room on a phone, with a virtual sofa in it.
Virtual reality (VR) puts you inside a computer-made world. You wear a headset.
Extended reality (XR) is the name for both.
AR and VR compared
| Augmented reality | Virtual reality | |
|---|---|---|
| What you see | The real world with extras added | A completely made-up world |
| What you use | A phone, or smart glasses | A headset that covers your eyes |
| Example use | Try a sofa in your room before you buy it | Practise an operation or fly a plane with no danger |
| A worry | People look at screens, not the street | Expensive equipment. Some people feel sick |
The cells students fill in are left blank in this preview.
Match each description to its name
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Check: AR or VR?
Have a go
Check: AR or VR?
4 questionsKey words crossword
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Watch: artificial intelligence and extended reality
Press Play on the short film below. It goes through the lesson again: rules and learning, how a model is trained, a myth about fair answers, generative AI, and AR and VR. Listen for each key word.
Film: artificial intelligence and extended reality
Artificial intelligence and extended reality
Every scene, as text
- Artificial intelligence: programs that do tasks that usually need human thinking. Your phone says "Dog", but nobody wrote a rule for every dog in the world: the phone learned from millions of photos. A gain: it knows big dogs, small dogs, black dogs and wet dogs.
- Machine learning: AI that learns patterns from examples, not fixed rules. A person can write the rule: if the email contains "prize", it is spam. That is not machine learning (an X beside it). In machine learning the program finds its own rules (a tick beside it).
- The lesson's diagram: many examples with the right answers, the training data (the examples a program learns from), go to the program, which finds patterns. A gain: it finds its own rules. What it learned is a trained model. A new photo goes into the model, and it makes a guess: this is a dog.
- Myth (false): a computer's answer must be fair. A program learns what it is shown: a model learns only what its training data shows. A worry: if the data is poor or unfair, the program is too. What to do: test it and check the results.
- Generative AI: AI that makes new text, pictures, video or sound, such as a tool that writes an email. A gain: it saves time. A worry: an AI tool's code answer can sound very sure and still be wrong. What to do: test it and check it.
- Extended reality (XR): AR and VR together. Augmented reality (AR): pictures added on top of the real world on a screen, such as a virtual sofa in your real room. A worry: people look at screens, not the street. Virtual reality (VR): a fully computer-made world that you see in a headset, where a trainee firefighter practises in a computer-made burning building. A worry: some people feel sick. "In VR you see the real world" is false (an X beside it): VR is a completely made-up world.
Final check
Have a go