Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

3.2 (1 of 3): Artificial intelligence and extended reality

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

45 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

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

WordWhat it meansExample
Artificial intelligencePrograms that do tasks that usually need human thinking.A chatbot
Machine learningAI that learns patterns from examples, not fixed rules.Photo labels
Training dataThe examples a program learns from.Millions of labelled photos
ModelWhat a program learned from its training data, used to make a guess.A dog photo model
Generative AIAI 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Examples train a model that guesses

A flowchart in which Many examples with the right answers lead to The program finds patterns, then to A trained model; A new photo also goes into A trained model, which gives "A guess: this is a dog".A flowchart in which Many examples with the right answers lead to The program finds patterns, then to A trained model; A new photo also goes into A trained model, which gives "A guess: this is a dog".

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

Code: python
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.

  1. Count how many spam words are in a message. Ignore capital letters.
  2. Say if a message is spam: its score reaches a limit.
  3. Learn from examples: find the words that are in both of two spam messages.

Press Run Tests to check your work.

Code: python
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

WhoPossible gainPossible worry
A personHelp with writing, study and ideasWrong facts. Copying work and calling it your own
An organisationFaster first versions of work. Cheaper customer helpStaff may paste private data into a tool. Mistakes in public
SocietyNew creative tools. New jobsFake 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Extra: 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 realityVirtual reality
What you seeThe real world with extras addedA completely made-up world
What you useA phone, or smart glassesA headset that covers your eyes
Example useTry a sofa in your room before you buy itPractise an operation or fly a plane with no danger
A worryPeople look at screens, not the streetExpensive 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Key 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

  1. 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.
  2. 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).
  3. 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.
  4. 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.
  5. 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.
  6. 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

Final check

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.