Skip to main content

Build an ML Model in 5 Minutes and Deploy in the Wio Terminal Powered by Edge Impulse

Introduction

Edge Impulse has launched a new Getting Started Wizard which is very friendly to Machine Learning beginners. It uses the few-shot keyword spotting model that lets you record a short sentence, automatically improving your dataset to give you an open-source model in less than 5 minutes. The model can be applied in the Wio Terminal. In this wiki, we will show you how to use the "wizard" and then deploy the model from the wizard into the Wio Terminal.

Getting started with Edge Impulse

Now we are going to introduce you to how to launch the Getting Started Wizard and then show you the instruction.

Hardware

Hardware Required

In this demo you will need the devices listed as below:

Hardware Connect

It is connected to a computer through the Type-C cable.

Software

Hardware Required

The project is based on the Arduino platform which means Arduino IDE and various Arduino libraries are required. If this is your first time using the Wio terminal, we recommend a guide to quickly Get Started with Wio Terminal.

Edge Impulse Training Started

First, you need to have your own Edge Impulse account and then create a project.

  • Step 2. Create a new project.
  • Step 3. Click the "Launch getting started wizard" button at the bottom of the "Dashboard" page and start the wizard.
  • Step 4. Follow the instruction by clicking the button.
  • Step 5. Enter a word or a short sentence.
  • Step 6. Record yourself saying words for 38 seconds through the computer microphone.

Make sure you record clearly and collect enough data, otherwise you will be asked to collect more.

Once you collect enough, the block will show up.

  • Step 7. Click "Next" and Edge Impulse will help you mix other words along with background noise in your dataset.

And then the model can learn to distinguish between your words and other sounds.

  • Step 8. Follow the instruction and create "the impulse".

It can extract the features that can be used for machine learning.

It is functioning automatically, and click "Next" when it completed

  • Step 9. Follow the instruction and train a neural network for your model.

Proceed until the model has been trained.

You can use the microphone again and check your results.

Congratulations on your new words classification model! Now we can deploy the model on our Wio Terminal.

Deploy the Machine Learning Model in the Wio Terminal

Here we are going to deploy our model in the Wio Terminal.

  • Step 10. Select and click the "Deployment" column on the left. Then choose "Arduino Library", to the bottom select "build" to create the library needed in your Arduino. It will automatically download a zip file that includes the third-party library.

The name of the wanted library is about the name of the project which means whatever the name you have written to the project on step 2 will be shown here. It can help you find the correct file that you need.

  • Step 11. Download the audio recognition code here and open it with Arduino IDE. Meanwhile, it is required to add the downloaded .zip file so you can apply the third-party library.

Change the name of the third-party library to your own and the words you say in the first place.

Finally, you can say the words and observe whether the Wio Terminal displays them.

Loading Comments...