A baseline model in deep learning serves as a foundational reference point for evaluating the
performance
of more complex models.
It is typically a simple and straightforward model that provides a basic
benchmark against which the performance of more advanced models can be compared.
The purpose of
a
baseline model is not to achieve state-of-the-art accuracy but to establish a minimum level of
performance
that any new model must surpass to be considered effective.
In this section, we will deploy two baseline models, one on the Arduino Nano BLE 33 Sense and
another on
the Open MV Cam H7. Specifically, we will implement an image classification model on the Arduino
Nano
BLE 33 Sense and an object detection model on the Open MV Cam H7.
Image classification refers to the process of assigning a label or class to an input image based
on its visual
content.
It is a fundamental
task in computer vision and machine learning. In image classification, a machine learning model
analyzes the features
and patterns present in an image to predict the most appropriate class or category that the
image belongs to.
The model
is typically trained on a labelled image dataset, learning to recognize and differentiate
between different objects,
scenes, or concepts.
Login to Edge impulse and create a new project “tech4wildlife-base-classification” This will take you to the project page/dashboard where you choose to add existing Data. From the cloned dsail-tech4wildlife repository navigate to the “base-data” folder then choose all the files in the “classification folder” Be sure to infer from the filename and edge impulse will split the data accordingly
You should see a page similar to this one
The pipeline to train the images
Navigate to Image under Impulse design
Model training
The model has performed quite well with 90.5% on the validation set.
The model accuracy of 93.55% on test set
"Deployment"
section."Build"
button to initiate the firmware-building process..sh file
..command file
..bat file
. "edge-impulse-run-impulse --debug"
. This shows an accurate prediction of the model during deployment.
Object detection is a computer vision task that identifies and localizes multiple objects within
an image or video.
It
goes beyond image classification by generating bounding boxes and class labels for each object
detected. Algorithms
analyze the image, leveraging techniques like feature extraction and machine learning models to
accomplish this task.
In this section, we will deploy two object detection models, on the
Open MV Cam H7 a bottle detector and a face detection model.
We'll utilize the Edge Impulse FOMO(Faster Object More Objects) model FOMO does not output
bounding boxes but will give you the object's location using centroids. Hence the size of the
object is not available.
.
This model is specifically trained to identify bottles within the camera's field of view.
What sets the OpenMV Cam H7 apart is its impressive processing power.
With a clock speed of 480 MHz, it outperforms the Arduino Nano 33 BLE Sense, which runs at just
64 MHz.
This substantial difference translates to a significantly higher Frames Per Second (FPS) of
approximately 20 when performing inference.
This boost in processing speed allows for smoother and faster object detection
The edge impulse public project for the bottle detector can be found here
dsail-tech4wildlife
repository.base-model
folder within the base folder. object-detection-model
folder, find the
main.py and labels.txt
file.
Drive D
, which represents the storage of the Open MV Cam.main.py and labels.txt
file from the open-mv-cam-h7
folder.main.py and labels.txt
file into the USB Drive D.
dsail-tech4wildlife
repository.open-mv-cam-h7
folder within the base folder. open-mv-cam-h7
folder, find the main.py
file.Drive D
, which represents the storage of the Open MV Cam.main.py
file from the open-mv-cam-h7
folder.main.py
file into the USB Drive D.Replace the main file with the file from dsail-tech4wildlife
In the idle state, without a face in the frame, the onboard LED of the Open MV Cam will appear blue.
When the Open MV Cam detects a face in the frame, the onboard LED will change to red to indicate the presence of a detected face.