How to Train and Test An AI model on edge Impulse
May 27, 2026·4 min read

How to Train and Test An AI model on edge Impulse

T
Tambu Precious
HWIVC Contributor
Edge Impulse

Before we begin, this blog is a continuation of this one, where we learned the basics of 3D modelling and printing and printed the cubes we will be using today.


Introduction

AI is everywhere. Just like the Industrial Revolution came and drastically changed the lives of humanity, this age of AI is coming to do the same — hopefully for the better.

Today we are going to learn how to create our own AI model — specifically to recognize cubes from other objects — and we are going to be doing this on the platform called Edge Impulse.

Before we begin, you have to understand some things.


What is an AI Model?

To understand this, let us imagine we have a child who is new to everything around them. If you wanted to train this child to recognize cats, for example, what will you do? (Try pausing here and trying to solve this).

Answer:

a) You would probably begin by showing this child a bunch of images containing cats with no other animal species or objects in those images.

b) After you have noticed he or she can now recognize the cat in an image, you would begin to solidify this knowledge by bringing other, more complicated examples — images with cats that were not seen before — they could have different colors and shapes, images with no cats but with totally different animal species or objects.

c) You take it even further. This time you show the child an image with many cats in it and some other species. With this, the child is forced to point out each cat found in the image.

After this is done, you would have a child that now KNOWS how to recognize cats from other objects, or the child has figured out a WAY (model) for recognizing patterns for cats from other objects.

An AI model is a formula — or a blueprint — by which the device running it uses to make decisions on its own. The model KNOWS because it has results from the examples it was exposed to during training and testing. Some models even have the ability to continue to update these results (or learn) when shown new examples.

So it is possible to just go online and download these results from the training and use them in your device. When you set up your system with this knowledge, it continues to compare what you show it (during live usage) to what it knows to show you a result — this process is known as Inferencing. And what it knows (that you downloaded) are called the weights.

Enough for now. Let us begin.


Training Our Model on Edge Impulse

Begin by creating an account on Edge Impulse.

Go to this site and follow the steps in the images below:

We will not do the first project today. You can minimize it and come back to it later as seen below:

After creating an account, create a new project and call it cube_detection. You can follow the video below:

sometimes a stable setup will help

 

After you are done collecting your own images (or if you did not 3D print, watch the video and later download both folders — assignment.zip and cube_detection export). Follow the video below on how to label them:

Follow the steps below for training:

First, click on Create Impulse. Set the image data to 96 by 96.

Then add the Learning Block. Select as in the image below:

After that, save it. Go to the next tab — Object Detection.

Save image parameters. Below are my features. It clearly divides cubes from unknowns.

Change it to YOLO Pro. This is so that we get our bounding boxes in the end result.

Change the training device to GPU or it will fail, as seen below:

Then hit Save and Train.


Results

We got 70% accuracy on the first try. You can retrain after that.

Watch the demo below on how to test it live:


Conclusion

  • We had just one class labelled cube. The dataset contained images with cubes labelled, or without cubes and unlabelled. With this, if you miss even a single cube image without labelling it, the accuracy will descend (which is why we had 70%).
  • Always take empty background shots of where the object was. This makes the model know — "the object was here but it is no longer here."

Next we build a robotic arm, and using Inverse and Forward Kinematics, we will pick and place these cubes under a camera.

Cheers!!

More from the Blog

How to Install Fusion 360 that doesn't expire
Sep 27, 2026·2 min read

How to Install Fusion 360 that doesn't expire

Want to use Fusion 360 for free without the 30-day limit? Learn how to legally download and install the official, non-expiring Fusion 360 personal license.

T
Tambu Precious
Read →
3D Modelling & Printing – Step by Step
May 12, 2026·3 min read

3D Modelling & Printing – Step by Step

TDesign cubes that will be used to Train a basic Edge impulse AI model to classify Cubes (Further Used with Robotic Arm) - Skills: 3D modelling, 3D printing

T
Tambu Precious
Read →
Best Ever Introduction into Baye's Filter In Robotics
May 22, 2026·6 min read

Best Ever Introduction into Baye's Filter In Robotics

Introduces the first step of Baye's filter called Kalman Filter. There are Further steps to this filter such as Extended Kalman Filters and Uncented Kalman Filters. But we will be looking at a simple kalman filter applied in Robotics

T
Tambu Precious
Read →