There are millions of hectares of forest disappearing every year due to illegal logging. Forest rangers are few, resources are limited, and traditional monitoring methods like video surveillance and physical patrols are simply not enough. Illegal loggers are often faster, more mobile, and operate in remote areas where there’s no internet or electricity.
The damage is not just ecological—illegal logging also causes economic losses and threatens biodiversity. Forest managers and environmental agencies need better tools, but many solutions today rely on expensive infrastructure or real-time internet connectivity, which is unreliable in the wild.
We asked ourselves: what if we could give the forest its own ears?
That’s how the idea for TimberGuard was born. It may have sounded strange at first—using small devices to listen for chainsaws—but the more we thought about it, the more it made sense. Forests are full of natural sounds, but the roar of a chainsaw is distinct and alarming.
It’s a discreet, scalable, and sustainable solution that gives nature a way to defend itself—by listening.
SolutionForest rangers and landowners often face challenges in detecting illegal logging in remote areas, where constant supervision is impractical. With our TimberGuard system, smart IoT devices are deployed across forest areas and communicate via LoRaWAN. Using local machine learning, the devices recognize the sound of chainsaws and immediately alert users through a mobile app. This enables quick response to illegal activity, preventing environmental damage and economic loss, all without the need for constant internet connectivity.
DescriptionThe system consists of a Seeed XIAO nRF52 Sense microcontroller equipped with a built-in microphone and a LoRaWAN communication module. Using an onboard machine learning model, the microcontroller listens for environmental sounds and reliably detects the sound pattern of a chainsaw, which indicates potential illegal logging. The detection algorithm is optimized for low-power operation and runs locally on the device without needing a constant internet connection. Data about detected events is transmitted via the LoRaWAN network to a central backend, where it is visualized in a mobile web application. To preserve energy, the device remains in a low-power sleep mode most of the time and activates periodically or on sound triggers, making it suitable for long-term forest deployment.
Machine learning modelDescription of EdgeImpulse procedure
- Capture data using a microphone
We first recorded various forest sounds and chainsaw noises using the built-in microphone, focusing to create a balanced dataset for model training.
- Spectral analysis of sounds
The recorded audio was then converted into spectrograms using MFCC (Mel Frequency Cepstral Coefficients), which allowed us to extract meaningful sound features suitable for classification.
- Building a model using a neural network
The spectrogram data was fed into a lightweight neural network optimized for microcontrollers. After iterative training and optimization, the final model achieved a recognition accuracy of 99,1%, effectively distinguishing chainsaw activity from natural forest sounds.
The graph below shows how the model performs based on the data captured.
- Create a library and upload to the Arduino
Finally, we created a library to be uploaded to the Seeed Studio XIAO development board named NatureGuard.
- XIAO nRF52 Sense with LoRa module
- 3000 mAh Li-ion battery
Connectivity
For transmitting data from the forest to the central application, we used LoRaWAN communication. The Seeed XIAO nRF52 Sense development board is equipped with a LoRa-E5 module that allows long-range wireless communication with very low energy consumption. This enables devices to send alerts from remote forest locations without the need for mobile or Wi-Fi networks. The LoRaWAN signal can reach several kilometers in open or forested areas, allowing users to monitor illegal logging activity from a safe distance in real time.
The application was developed as a Progressive Web App (PWA) using the React framework. It includes three main screens for user interaction. The first screen displays a scrollable list of detected logging events, allowing users to filter events by date and access detailed information such as detection confidence and timestamp by tapping on an event. The second screen is a map interface that visualizes all reported events using location markers. When a chainsaw sound is detected in the forest, the system automatically generates a marker at the location of the detection. Users can click on markers to view event details directly on the map. The third screen is dedicated to app settings, where users can configure notifications, manage their account (sign up, log in), and set system preferences. Navigation between screens is handled through a bottom navigation bar, providing a smooth and intuitive user experience on both desktop and mobile devices.
The application was developed as a Progressive Web App (PWA) using the React framework. It includes three main screens for user interaction. The first screen displays a scrollable list of detected logging events, allowing users to filter events by date and access detailed information such as detection confidence and timestamp by tapping on an event.
The second screen is a map interface that visualizes all reported events using location markers. When a chainsaw sound is detected in the forest, the system automatically generates a marker at the location of the detection. Users can click on markers to view event details directly on the map.
The fourth screen is dedicated to app settings, where users can configure notifications, manage their account (sign up, log in), and set system preferences. Navigation between screens is handled through a bottom navigation bar, providing a smooth and intuitive user experience on both desktop and mobile devices.
3D printable tree mount
We have designed a custom 3D printable enclosure that allows secure and non-invasive installation of the TimberGuard device in forest environments. The Seeed XIAO nRF52 module and battery are simply inserted from the bottom of the housing and sealed with a bottom cover—no screws, drilling, or permanent damage to the tree is required.
Mounting is done using a practical tension strap, the same type commonly used to mount wildlife monitoring cameras in forests. This makes the installation quick, adjustable, and completely reversible, while ensuring the device remains firmly attached in outdoor conditions.
An important ecological aspect of our design is the use of wood-filled PLA filament, containing approximately 30% real wood fibers. This not only reduces the plastic content of the housing but also helps the device visually blend into the natural forest environment.
This lightweight, discreet, and sustainable mounting solution makes TimberGuard ideal for field deployment with minimal environmental impact.
How it all comes together
The entire TimberGuard system operates seamlessly as follows:
- The device is mounted onto a tree using the strap-based 3D-printed enclosure—no drilling, no screws, just a secure, non-invasive setup.
- Once powered, the onboard ML model actively listens for chainsaw sounds using the integrated microphone.
- When a chainsaw is detected, the microcontroller instantly sends the data over the LoRaWAN network (e.g., TTN).
- The data is received by the backend system (e.g., Supabase or Firebase), which stores the event and triggers a push notification if detection confidence is high.
- The event is then visualized in the Progressive Web App, where it appears both in the event list and as a marker on the map, showing the time and location of detection.
The entire process—from sound detection to user notification—takes only a few seconds and does not require continuous internet or manual checking. While the current prototype is optimized for audio detection, the modular structure allows easy integration of additional sensors or actuators in the future (e.g., triggering an audible alarm, activating a deterrent, or recording video).
The combination of low-power hardware, efficient ML processing on the edge, and seamless backend integration makes TimberGuard a practical and scalable solution for protecting forested areas from illegal logging.







Comments