A TinyML-powered wildfire detection system designed to run on microcontrollers. This project leverages Edge Impulse for machine learning model development and deployment, and Wokwi for simulation and testing in a virtual environment.
Wildfires are a growing concern globally, and early detection is crucial in mitigating their impact. This project presents a lightweight, efficient wildfire detection model that can be deployed on low-power edge devices like the Arduino Nano 33 BLE Sense. Using TinyML techniques, the model classifies environmental conditions to detect signs of wildfire threats in real-time.
The machine learning model was trained and deployed using Edge Impulse, a powerful platform for developing embedded ML applications. The pipeline includes:
-
Data Collection: Sensor data simulating wildfire conditions (e.g., temperature, humidity, smoke levels).
-
Signal Processing: Pre-processing raw sensor values.
-
Model Training: Lightweight neural network optimized for microcontrollers.
-
Deployment: Model exported as C++ library and integrated into Arduino firmware.
-
Edge Impulse: Deployment can be found here.
We used Wokwi to simulate and test our system without physical hardware. Wokwi provides an accurate emulation environment for the Arduino Nano 33 BLE Sense, allowing us to verify sensor readings, model inference, and alert outputs in a virtual setup.
- Real-time wildfire condition classification
- TinyML model optimized for microcontrollers
- Fully simulated in Wokwi
- Compatible with Arduino IDE
Wildfire-detection-TinyML/
βββ model/ # Edge Impulse exported model files
βββ wokwi/ # Wokwi simulation setup (diagram.json, code)
βββ src/ # Arduino firmware using the deployed model
βββ README.md # Project documentation
- Edge Impulse account
- Arduino IDE
- Wokwi emulator (or physical board)
- Compatible MCU (e.g., Arduino Nano 33 BLE Sense)
-
Clone this repo:
git clone https://github.com/OnePunchMonk/Wildfire-detection-TinyML.git
-
Open the Wokwi simulation:
- Load
diagram.jsonon wokwi.com to test the simulation.
- Load
-
Deploy to real hardware (optional):
- Open
src/in Arduino IDE. - Upload to a compatible board with Edge Impulse model included.
- Open
- Edge Impulse
- Wokwi
- Arduino Nano 33 BLE Sense
- TinyML / C++