Eruptive outbreaks of bark beetles have caused extensive and often severe tree mortality across tens of thousands to millions of hectares in temperate forests since the late 1990s. Our open-source Bark Beetle Sentry sensor network spots outbreaks before the first needles and leafes turn brown. Low-cost LoRa-enabled nodes listen for the beetles’ signature chewing acoustics, then relay real-time alerts to a dashboard that foresters can check. Because the hardware is solar-powered and self-healing, you can scatter hundreds of sensors across remote terrain in an afternoon and forget about maintenance for years. Actionable data arrives while a single infested tree is still salvageable—saving ecosystems, logging revenue, and firefighting budgets. Join us on Hackster to build, deploy, and protect your local forest with Bark Beetle Sentry.
Machine LearningTo detect bark beetle presence, we trained a machine learning model using Edge Impulse, leveraging audio data sourced from the internet. The model classifies audio into two labels: "bark beetle" or "lubadar" in slovenian (beetle chewing/activity sounds) and "ambient" (all other environmental noises).
The default Edge Impulse DSP settings produced feature tensors that overflowed the board’s RAM/flash. We downsized the window and sample rate:
- Window size → 2 000 ms
- Windowincrease (stride) → 1 000 ms
- Audio frequency → 16 kHz
Once trained, the model was exported as an Arduino-compatible library, complete with example code. This library runs directly on our custom Arduino-based hardware, enabling real-time on-device audio classification.
In the future, the model can be retrained and improved using field-collected data for higher accuracy in real forest conditions.
ConnectivityThe custom NatureGuard board integrates Wio-E5 LoRa-WAN module for low-power, long-range data links. The on-device ML model detects bark beetle presence and transmits an alert packet over LoRaWAN to The Things Network. Additional telemetry that is being sent to TTN is also battery percentage. TTN then uses a configured webhook and uplink converter to forward each message - encoded in JSON - to ThingsBoard, where the data is visualized and processed in real time.
Each board must be put inside an IP-rated, UV-stable housing with an acoustic port (mesh-covered) that throughputs sound but keeps out rain, dust and insects.
The boards should be powered by a battery pack and solar panel combination. This allows year-round operation under shady conditions. It also allows for minimal maintenance in the hard-to-reach regions.
ThingsBoard dashboardEach board is assigned a GPS location (latitude, longitude, and altitude) as well as a unique ID, which are visualized on the dashboard. The sensors are shown on a map.
ThingsBorad recieves sensor telemetry from TTN, which also adds additional radio link data that includes timestamp, SNR and RSSI. If the alert signal is positive, ThingsBoard generates alert notification.











Comments