[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.68,0:00:05.44,Default,,0000,0000,0000,,To make your AI storytelling friend, \Nyou’ll train a machine learning,   Dialogue: 0,0:00:05.44,0:00:11.12,Default,,0000,0000,0000,,or ML, model to recognise when \Na toy moves in different ways.  Dialogue: 0,0:00:11.12,0:00:16.28,Default,,0000,0000,0000,,You’ll then combine this model with code \Nto make different sounds and show different   Dialogue: 0,0:00:16.28,0:00:20.86,Default,,0000,0000,0000,,icons on the micro:bit’s LED display. Dialogue: 0,0:00:20.86,0:00:28.48,Default,,0000,0000,0000,,Then you’ll download the model and the code to a micro:bit and use it on your toy to help tell a story.  Dialogue: 0,0:00:28.48,0:00:34.26,Default,,0000,0000,0000,,Our story is about a bear called Lucy, but \Nyou can change the project to fit your own. Dialogue: 0,0:00:34.26,0:00:40.36,Default,,0000,0000,0000,,[MUSIC]\NThis is Lucy the bear. Dialogue: 0,0:00:40.36,0:00:47.52,Default,,0000,0000,0000,,She wants to be a gymnast when she grows up, so every \Nday when she wakes up, she practices her jumping. Dialogue: 0,0:00:47.52,0:00:54.64,Default,,0000,0000,0000,,She jumps as high as the ceiling.\NThen after breakfast she practices her rolling. Dialogue: 0,0:00:54.64,0:00:59.92,Default,,0000,0000,0000,,She rolls round and round until \Nher whole world is spinning.  Dialogue: 0,0:01:01.47,0:01:06.49,Default,,0000,0000,0000,,Then she takes a break and has a little nap. Dialogue: 0,0:01:10.05,0:01:18.76,Default,,0000,0000,0000,,To start making your AI storytelling friend, click ‘Open in micro:bit  CreateAI’ to launch the project.  Dialogue: 0,0:01:18.76,0:01:23.83,Default,,0000,0000,0000,,This project comes with 8 samples \Nof movement data for three different actions: Dialogue: 0,0:01:23.83,0:01:28.96,Default,,0000,0000,0000,,jumping, rolling and sleeping. Dialogue: 0,0:01:28.96,0:01:38.12,Default,,0000,0000,0000,,micro:bit CreateAI collects movement data samples using the accelerometer, the micro:bit’s movement sensor.  Dialogue: 0,0:01:38.12,0:01:43.56,Default,,0000,0000,0000,,To add your own data samples, you need \Nto make a data collection micro:bit.  Dialogue: 0,0:01:43.56,0:01:50.16,Default,,0000,0000,0000,,If your computer has Bluetooth enabled, then \Nyou'll just need 1 micro:bit and a USB data lead.  Dialogue: 0,0:01:50.16,0:01:54.84,Default,,0000,0000,0000,,If you don’t have a Bluetooth connection, \Nyou’ll need to use 2 micro:bits.  Dialogue: 0,0:01:54.84,0:01:59.55,Default,,0000,0000,0000,,Follow the instructions on screen to connect. Dialogue: 0,0:01:59.55,0:02:06.78,Default,,0000,0000,0000,,Once your data collection micro:bit is connected,\Nattach it to your toy like this. Dialogue: 0,0:02:06.78,0:02:15.40,Default,,0000,0000,0000,,You’ll see the lines on the live graph\Nchange as you move your toy.\NAs this project already includes quite a lot Dialogue: 0,0:02:15.40,0:02:25.00,Default,,0000,0000,0000,,of data samples, we suggest you add 1 sample for \Neach action for now and collect more data later.  Dialogue: 0,0:02:25.00,0:02:29.44,Default,,0000,0000,0000,,Click on the ‘jumping’ action so \Nyou can add more data samples to it.  Dialogue: 0,0:02:29.44,0:02:33.60,Default,,0000,0000,0000,,You will get a countdown before \Na 1 second recording starts.  Dialogue: 0,0:02:33.60,0:02:39.80,Default,,0000,0000,0000,,Click record and start moving your toy immediately \Nto make sure you get a clean data sample.  Dialogue: 0,0:02:39.80,0:02:43.44,Default,,0000,0000,0000,,A clean sample is one where you’re \Nmoving for the entire sample,   Dialogue: 0,0:02:43.44,0:02:50.80,Default,,0000,0000,0000,,you don’t start late or finish moving early.\NNext try adding an extra data sample to the   Dialogue: 0,0:02:50.80,0:02:57.12,Default,,0000,0000,0000,,‘rolling’ and ‘sleeping’ actions. Dialogue: 0,0:02:57.12,0:03:07.52,Default,,0000,0000,0000,,You’ll notice that when your toy is asleep, the x,y, and z lines change places depending on the orientation of the micro:bit.  Dialogue: 0,0:03:07.52,0:03:14.60,Default,,0000,0000,0000,,Click ‘Train model’ to build the ML model.\NThe tool now builds a mathematical   Dialogue: 0,0:03:14.60,0:03:19.96,Default,,0000,0000,0000,,model that should recognise different \Nactions when you move your micro:bit.  Dialogue: 0,0:03:19.96,0:03:25.64,Default,,0000,0000,0000,,As soon as the model has been trained, \Nyou’ll see the Testing model page.  Dialogue: 0,0:03:25.64,0:03:30.76,Default,,0000,0000,0000,,Your data collection micro:bit can now be \Nused to test how well the model is working.  Dialogue: 0,0:03:30.76,0:03:35.88,Default,,0000,0000,0000,,It should still be connected to the tool, and \Nyou’ll see that as you move it, CreateAI is   Dialogue: 0,0:03:35.88,0:03:40.32,Default,,0000,0000,0000,,estimating what action you are doing. Dialogue: 0,0:03:40.32,0:03:47.03,Default,,0000,0000,0000,,Move your toy in different ways to see \Nthe estimated action and the certainty bar graph change.  Dialogue: 0,0:03:47.40,0:03:56.16,Default,,0000,0000,0000,,The percentage shows how certain, or confident, \Nthe model is that you are doing each action. Dialogue: 0,0:03:56.16,0:04:00.76,Default,,0000,0000,0000,,You may notice your model is not \Nestimating some actions accurately.  Dialogue: 0,0:04:00.76,0:04:07.92,Default,,0000,0000,0000,,In that case it’s a good idea to click on \N‘Edit data samples’ and improve your model.  Dialogue: 0,0:04:07.92,0:04:13.96,Default,,0000,0000,0000,,Machine learning models usually work best with \Nmore data, so record some extra samples for each   Dialogue: 0,0:04:13.96,0:04:22.40,Default,,0000,0000,0000,,of the actions, or focus on collecting more data \Nfor the action that was problematic in testing.  Dialogue: 0,0:04:22.40,0:04:28.36,Default,,0000,0000,0000,,Clean data samples also help an ML model \Nwork better so examine your data set and   Dialogue: 0,0:04:28.36,0:04:38.20,Default,,0000,0000,0000,,identify any samples that could confuse the \Nmodel. You can delete these by pressing X.  Dialogue: 0,0:04:38.20,0:04:44.92,Default,,0000,0000,0000,,Once you’ve added more data and checked your \Ndata set, click ‘Train model’ again. Then test   Dialogue: 0,0:04:44.92,0:04:50.00,Default,,0000,0000,0000,,the model again on the ‘Testing model’ page. Dialogue: 0,0:04:50.00,0:04:57.12,Default,,0000,0000,0000,,Once you’re happy with how the ML model is behaving, you can use it with \Nthe ready-made project code.  Dialogue: 0,0:04:57.12,0:05:06.12,Default,,0000,0000,0000,,Click on ‘Edit in MakeCode’ to see the code \Nblocks in a special version of Microsoft MakeCode.  Dialogue: 0,0:05:06.12,0:05:10.04,Default,,0000,0000,0000,,You can return to see your \Ndata in CreateAI at any time   Dialogue: 0,0:05:10.04,0:05:19.72,Default,,0000,0000,0000,,using the arrow in the top left of the screen.\NThese blocks use the model you’ve created in code.  Dialogue: 0,0:05:19.72,0:05:24.88,Default,,0000,0000,0000,,The ‘on ML… start’ blocks react \Nwhen the ML model decides your   Dialogue: 0,0:05:24.88,0:05:31.32,Default,,0000,0000,0000,,toy is making a particular movement, or action.\NDepending on the action, the code shows different   Dialogue: 0,0:05:31.32,0:05:38.60,Default,,0000,0000,0000,,icons on the micro:bit’s LED display output \Nand plays different sounds on its speaker.  Dialogue: 0,0:05:38.60,0:05:46.36,Default,,0000,0000,0000,,If it’s not sure what action your toy is doing – \Nif the action is ‘unknown’ – it clears the screen.  Dialogue: 0,0:05:46.36,0:05:53.32,Default,,0000,0000,0000,,And when each action stops, the code \Nstops the micro:bit making any sound.  Dialogue: 0,0:05:53.32,0:05:56.64,Default,,0000,0000,0000,,To make the code and the ML \Nmodel run on your micro:bit,   Dialogue: 0,0:05:56.64,0:05:59.64,Default,,0000,0000,0000,,you just need to download it to a micro:bit.  Dialogue: 0,0:06:00.28,0:06:06.32,Default,,0000,0000,0000,,Press ‘Download’ and follow \Nthe instructions on screen.  Dialogue: 0,0:06:06.32,0:06:10.64,Default,,0000,0000,0000,,Now test the finished project on \Na micro:bit attached to your toy. Dialogue: 0,0:06:10.64,0:06:16.20,Default,,0000,0000,0000,,Do the correct sounds play and icons display \Nwhen your toy makes different movements? Dialogue: 0,0:06:16.20,0:06:19.80,Default,,0000,0000,0000,,Does it work equally well when \Nsomeone else moves the toy?  Dialogue: 0,0:06:19.80,0:06:26.88,Default,,0000,0000,0000,,If not, you can go back and collect more \Ndata from them and re-train the model.  Dialogue: 0,0:06:26.88,0:06:30.96,Default,,0000,0000,0000,,Congratulations, you’ve trained your toy \Nto react to different kinds of movement   Dialogue: 0,0:06:30.96,0:06:36.60,Default,,0000,0000,0000,,using data you have collected, training an AI \Nmachine learning model, and combining it with   Dialogue: 0,0:06:36.60,0:06:43.48,Default,,0000,0000,0000,,code to make an interactive storytelling toy!\NWhat other actions, or movements might your toy   Dialogue: 0,0:06:43.48,0:06:51.80,Default,,0000,0000,0000,,make, perhaps as part of telling a story? Can \Nyou add them using the micro:bit and CreateAI?