In the recent years wildfires have become a problem for many of us living on this planet. While there are technologies being used to overcome this global problem there is still a growing demand to fight the wild fire and climate change.
The Seeed studio's SenseCAP K1100 platform is suitable to fight the issue. It comes with a Grove modules like camera, Air Quality, Temprature & humidity sensors and Wio Terminal as a main interface board to these sensors.
The first part was to get started with the product. As the Wio terminal has two grove connectors for Grove modules and 40-pin raspberry pi compatible headers to plug it directly to raspberry pi, I used those 40-pin connectors to interface extra sensors to the Wio Terminal via I2C bus. From the below images it is clear that the Grove port on the left side is for I2C interface and on the right side is for UART interface.
For sensing of wild fire using ML based techniques one needs to train the image processing model which can detect wild fires effectively. For that, I used the online available datasets for fire to train and deploy the model. I followed seeed's guide to train and deploy the image processing model to vision AI kit. Up to four different models can be deployed in the device. And it can be selected from the Arduino compatible code based on the requirements of the user.
For example, the following code will select the first model loaded onto the device.
if (ai.begin(ALGO_OBJECT_DETECTION, MODEL_EXT_INDEX_1)) // Object detection and externel model 1
Let's get into some of the details of training of the model. For labeling the dataset Roboflow can be used. It is an online platform where image data can be uploaded and labeled. After that, a YOLO platform can be used to finish the training and deploying the model either online or in offline mode.
After successful completion of the model training you can download the model to the device. The following screenshot shows model-1.uf2 which can be downloaded to the Grove vision AI module by plugging in the device to the PC and pressing the boot button twice.
There are a few software design parts which needs to be integrated in my project. The first part is to integrate the sensors in one code to make it work together. You will find the example code in the attachments of this project which interfaces all the required sensors.
Comments