- Public Project Links: ETX-V (vision, 1097972) and ETX-A (acoustic, 1110036)
- Github repository: https://github.com/Abhinavkrishna3211/EleTect-X
- Published Write-ups: Arduino Project Hub and Hackster

The problem this is built to stop
Human-elephant conflict is one of India’s worst wildlife problems, and it is getting worse. It costs lives, harvests and livelihoods, and the death toll is still rising. Government data placed before India’s Parliament shows elephants killed 2,853 people across the country between 2019 and 2023, with the toll climbing every year in that window to 628 deaths in 2023 alone, a five-year high. Kerala specifically recorded 124 conflict deaths between 2019 and 2023, and separate data for 2021 to 2025 puts the figure at 103, close to 20 lives a year in this one state alone. It has not stopped. In June 2026, a 36-year-old mother was killed by an elephant near Munnar, the same forest landscape this project is deployed in, her son left severely injured beside her. Many of these deaths also leave a farm without its main earner. Crop and property losses add up on top of that, and Kerala’s Forest Department has admitted its compensation system cannot keep up. A 2022 departmental proposal for a state-wide conflict management overhaul states that “the existing rate of compensation for various crops damaged by wild animals has not been revised for a long time” and that forest divisions “are not able to release all the claims of compensation due to shortage of funds,” recommending a fresh Rs. 15 crore a year just to keep the backlog from growing. The problem behind that backlog is large: a 2018 peer-reviewed review of human-elephant conflict management strategies puts the number of Indian families directly affected by elephant crop raiding at roughly 500,000 a year, nationally. That is the scale a claim-by-claim compensation office is being asked to handle, on top of the deaths. A 2025 field study on wildlife crop losses in India found the country still has no unified system for counting what elephants and other wildlife cost farmers season to season, and its authors call for a national human-wildlife conflict mission because the state-by-state claims process still cannot produce a reliable figure. It is not just Kerala, or just India. Human-elephant conflict runs wherever elephants and dense human agriculture now overlap, which the same 2018 review counts as thirteen Asian elephant range countries and thirty-seven African nations. India has the highest recorded toll, but many other countries are paying too. Sri Lanka logged a record 433 elephant deaths and 145 human deaths to conflict in 2022 alone, and more than 150 elephants were already dead in just the first four months of 2023, according to Mongabay’s reporting on Sri Lankan wildlife department figures. Things have not improved: the Wildlife and Nature Protection Society of Sri Lanka counts more than 6,400 elephants lost to conflict there over the past 24 years, an average above 260 a year, and the first six months of 2025 alone had already accounted for 250 more elephant deaths, a pace that would match or beat 2022’s record by year’s end. Kenya’s crop-raiding incidents, nearly half of them elephant-driven, more than doubled between 2020 and 2023, from 156 recorded cases to 363, and the country’s own wildlife-conflict compensation office is sitting on a Sh1.2 billion backlog of unpaid claims, the same kind of stalled ledger Kerala’s own Forest Department describes above, according to Kenyan government figures reported by the Daily Nation; Kenya’s government has since raised its own compensation budget in response, from Sh908 million in 2023 to a planned Sh1.95 billion in 2025, an admission that the old budget was never enough. A deterrent that works here could help from the Western Ghats to the Rift Valley. Elephants die in this conflict too. On 9 September 2026, an elephant calf was electrocuted by a fallen power line at Kottappady, near Kothamangalam. It was one of many: nearly 750 wild elephants died in Kerala alone between 2019 and 2025, more than one in ten of them from conflict with people rather than natural causes. Electrocution is the leading cause of elephant death in India, most of it from illegally electrified fencing farmers string up to keep elephants off their crops, or from sagging low-hanging power lines like that one. In the five years to December 2022, 348 elephants died this way nationally, more than train collisions and poaching combined over the same period, according to figures the Ministry of Environment, Forest and Climate Change gave Parliament directly. Roughly 100 elephants a year die in retaliation nationally as well, mostly poisoning, electrocution, or explosives hidden in food, by the central government’s own figures.
2. The solution: EleTect X


Real-world dataset collection and early model verification


3. What we studied before designing detection, deterrence, or anti-habituation
Elephants and boar needed separate research. For both, we used more than one source and checked what we learned with people on the ground before building anything.On-Ground Survey & Study Area
The field research took place in Kothamangalam and Kottappady, Kerala regions at the edge of the Western Ghats that experience frequent elephant incursions into farmlands and villages. We conducted household-level surveys to assess the scale and nature of human–elephant conflict (HEC) in these areas. From 100 surveyed households, 85 reported direct encounters with elephants, while:- 66% suffered crop destruction, and
- 38% experienced human injury or fatalities related to elephant incidents.
Elephant: biology, behaviour, and what the boundary itself taught us

Wild boar: a different animal, a different set of instincts, checked the same way

Hardware and software used in this project
These are the components used to build EleTect X:- Arduino UNO Q (4 GB), main compute: Qualcomm QRB2210 MPU for vision and sensor fusion, STM32 MCU for real-time sensor/actuator control
- LoRa radio, Grove LoRa-E5 (IN865), long-range alert uplink to the gateway
- Geophone, 10 Hz, buried, for seismic (footstep) sensing
- INA333 instrumentation amplifier + ADS1115 external ADC (I²C), conditions and digitises the geophone signal ahead of the reflex layer
- BOYA BY-M1 lavalier microphone (USB, MPU-side capture), acoustic sensing (trumpets, rumbles, chainsaws, gunshots)
- Arducam IMX462 day/night USB camera + 940 nm IR illuminator, vision confirmation stage, day and night
- Powered USB-C hub, on its own 5 V buck rail, expands the UNO Q’s single USB-C port for the camera and the microphone’s audio card
- External USB audio card (CM108/PCM2902-class USB sound adapter), connects the BOYA microphone to the hub for MPU-side capture
- TPA3116D2 Class-D amplifier + Ahuja SUH-15 horn speaker (8 Ω), audio deterrent playback
- DFPlayer PRO, stores and triggers deterrent audio clips
- White (cool-white) and royal-blue (~450 nm) high-power LED stars + IRLZ44N low-side switches on an 8 V XL4015 buck rail, visual deterrent
- 4S LiFePO4 battery pack (~6 Ah) with integrated BMS, field power
- 20 W solar panel, continuous field charging
- MPPT/PWM solar charge controller (LiFePO4 profile), charges the battery from the panel
- PETG 3D-printed enclosure (designed in Fusion 360), weatherproof housing, IP-rated cable glands, pressure-equalizing vent
- Supporting passives, TVS diodes and RC filtering on sensor inputs, logic-level MOSFET load switches for camera/IR/amp/LED rails, reverse-polarity protection
Software
- Arduino App Lab, builds, deploys and runs the app on the UNO Q
- Edge Impulse, dataset, training and deployment for the vision model (ETX-V) and the acoustic model (ETX-A)
- KiCad, schematics for the geophone, LED and IR, sound and LoRa, and power sheets
- Fusion 360, enclosure design
- ChirpStack, LoRaWAN network server for the alert path
- Supabase (Postgres), web app backend: database, auth, row-level security and edge functions
4. System architecture: Sense, Decide, Act, Learn
EleTect X splits the work between the UNO Q’s two processors and gives each the job it does best. The diagram below shows the whole loop, and the walkthrough after it follows one approach from the first footstep to the response.What happens when an elephant or boar approaches
- Sense. The geophone samples continuously on the reflex layer, whether or not anything is nearby, while the acoustic model on the cognition side listens on its own 30-second cycle, recording about 15 seconds of every 30, independently of the geophone. An animal’s footfall shows up as seismic rumble in the geophone; a call, chainsaw, or gunshot shows up as an acoustic event in the microphone, a USB device on the Linux side. The camera and the vision model only run when the geophone fires; between events the camera is off and vision sits idle.
- React locally, first. The reflex layer runs its own safety gates and checks on the STM32U585 microcontroller alone. The seismic trigger is decided here, without waiting on the Linux side.
- Start the vision check. Only once the reflex layer decides a reading is worth a closer look does it send a Bridge call across to the Qualcomm QRB2210. That call starts the vision check: the camera opens and the Python client sends its frames to the Edge Impulse vision runner, which stays loaded in memory between events. Vision only does work when the geophone has found a reason.
- Fuse the evidence. The vision model’s read on the camera frame and the reflex layer’s sensor data both feed into a weighted log-odds sensor fusion step, which turns three independent, imperfect senses into one calibrated probability, P, that this really is an elephant or a boar and not a false alarm.
- Decide how hard to respond. An epsilon-greedy contextual bandit takes that probability P and picks a deterrence tier. It decides how to respond as well as whether to, so the same approach at the same spot does not always get the same response. This is the anti-habituation engine from Sections 1 and 2 at work.
- Act, in the real world. The decision drives one of three kinds of outcome: the horn (DFPlayer Pro through the TPA3116D2 amplifier) plays the track the bandit picks from a library that includes honeybee swarms and tiger recordings; the LED wings fire a strobe pattern; or, if the situation is out of range or the system’s confidence is too low to act safely on its own, a LoRa alert goes out to the ranger dashboard instead.
- Learn from what happened. After the horn or LEDs fire, the quiet duration that follows, how long it takes before the animal is detected again at that spot, feeds back into the bandit as its own reward signal. A response that worked buys a longer quiet stretch, one the animal ignored does not, and the bandit adjusts its next pick at that spot. Each node keeps a separate ladder for each species, so a night of boar or fox visits cannot wear down the response an elephant gets the next morning (Section 11). Over time, this makes the system harder to get used to.
The two layers behind that loop
The reflex layer lives on the STM32U585 microcontroller, under Zephyr, and effectively never sleeps. A state machine cycles through IDLE, SENSING, EVENT, and COOLDOWN on every loop iteration: geophone sampling and STA/LTA trigger detection run continuously in IDLE and SENSING, and once a trigger crosses threshold the state machine moves to EVENT and starts timing the actuators directly, the horn and LED firing durations, the safety gates that stop them from re-firing back to back, and the COOLDOWN window that follows before the cycle can trigger again. All of this runs on the microcontroller, independently of the Linux side. The cognition layer lives on the Qualcomm QRB2210, under Debian Linux. The microphone (a USB device), the vision model, the sensor fusion step, and the bandit that decides how strongly to respond all run here in Python. The vision check starts when the reflex layer signals a trigger. How the two halves talk to each other. Arduino’s own Arduino_RouterBridge library is the only link between them, and it runs in both directions for two different reasons. Microcontroller to Linux is a one-way, fire-and-forget notify: the reflex layer calls it once, the moment a trigger crosses threshold, purely to start the vision check on the Linux side, and it never blocks the sensing loop waiting for a reply. Linux to microcontroller runs the other way, as RPC calls the cognition layer makes once it has decided what to do, reaching hardware adapters registered on the microcontroller side that fire the horn and the LEDs. One direction starts the vision check; the other tells the microcontroller what to fire. Why the UNO Q specifically: detection needs a real-time sensor loop that never misses a footstep, and decision-making needs Linux and enough compute for a vision model and a learning system. Most setups make you pick one, or join two boards with a fragile link. The UNO Q has both on one board, with a bridge between them out of the box.5. Getting started with the Arduino UNO Q

Key Hardware on the Arduino UNO Q
- MPU: Qualcomm Dragonwing QRB2210, quad-core ARM Cortex-A53 up to 2.0 GHz
- Operating system: Debian Linux
- MCU: STM32U585, ARM Cortex-M33 up to 160 MHz
- MCU memory: 2 MB Flash and 786 KB SRAM
- Memory & storage: 4 GB LPDDR4 RAM and 32 GB eMMC
- Wireless: Dual-band Wi-Fi 5 and Bluetooth 5.1
- USB-C: Power, data and expansion
- I/O: 14 digital I/O, 6 analog inputs, I2C, SPI and UART
- Expansion: Qwiic/STEMMA QT, camera, display and additional expansion interfaces
- On-board features: 8×13 LED matrix, RGB LEDs and user button


Setting Up the UNO Q
To get started, you will need:- A computer running Windows 10/11, macOS 11+ or Ubuntu 22.04+
- An Arduino UNO Q
- A USB-C data cable
- An internet connection
- A Wi-Fi network and its credentials
1. Connect the UNO Q
We will initially use the UNO Q in PC Mode. Connect the UNO Q to your computer using a USB-C cable. Important: Make sure your USB-C cable supports both power and data. Power-only cables will not work for this setup. For the best experience, use a USB-C or USB 3.x port on your computer.2. Get the Software
Download the following software from Arduino:- Arduino App Lab
- Arduino Flasher CLI

3. Update the Firmware
Before using your UNO Q, it is recommended to make sure the board firmware is up to date. Warning: Flashing the board can erase the contents of the UNO Q. Make sure you do not have anything important stored on the board before proceeding.Set Up Flasher CLI
The Flasher CLI is provided as a compressed ZIP file.- Extract the ZIP file.
- Open Terminal or Command Prompt.
- Navigate to the folder containing the arduino-flasher-cli executable.
macOS / Linux
Run:Windows
Run:4. Prepare the UNO Q for Flashing
Before flashing, place a jumper or jumper wire between the two end pins of the JCTL connector. Once the jumper is installed, connect the UNO Q to your computer using USB-C.
5. Flash the Latest Firmware
Open Terminal or Command Prompt and navigate to the folder containing the Flasher CLI. Run:macOS / Linux
Windows
flash latest instead. The tool will download and install the latest firmware. This may take several minutes because the firmware package can be large.
Do not disconnect the USB cable or interrupt the process while flashing.
When flashing is complete:
- Disconnect the UNO Q.
- Remove the JCTL jumper.
- Reconnect the UNO Q to your computer.
6. Install Arduino App Lab
Arduino App Lab is the development environment designed for the UNO Q. It allows you to create applications that combine:- C/C++ Arduino sketches running on the MCU
- Python applications running on the Linux MPU
- Bricks that provide additional functionality
- Windows: Run the installer and follow the prompts.
- macOS: Drag the application into the Applications folder.
- Linux: Extract the archive and run the AppImage.
7. Set Up Your UNO Q in App Lab
When App Lab opens, it will search for connected UNO Q boards. Connect your UNO Q through USB. A new board should appear in App Lab.
Step 1: Board Configuration

EleTect-X
You can choose any meaningful name for your board.
Click Next.
Step 2: Network Setup
App Lab will scan for available Wi-Fi networks. Select your Wi-Fi network and enter its credentials.
Step 3: Linux Credentials
You will now create the Linux credentials for your UNO Q. The username is:arduino
Enter a password of your choice and confirm it.

8. Complete the Updates
Once the initial setup is complete, App Lab will check the UNO Q for available software and firmware updates. You may see a screen such as: “Looking for updates…”
- Arduino UNO Q software
- Arduino App Lab
- Arduino CLI
- Arduino App CLI
- Other board support packages

Setup complete!
Once App Lab reconnects successfully, your UNO Q is ready to use.9. Exploring App Lab
After setup, App Lab provides several sections for working with your UNO Q. The Examples section is a good place to start if you are using the UNO Q for the first time.

- Blink LED
- Blink LED with UI
- QR and Barcode Scanner
- Home Climate Monitoring
- LED Matrix applications
- And more
Apps and Bricks
The UNO Q introduces a different approach to Arduino development through Apps and Bricks.Apps
An App is a complete UNO Q project that can combine code running on both processors:- MCU: Arduino sketch / C++
- MPU: Python / Linux application
- Configuration: App configuration files
- Bricks: Optional additional services
Bricks
Bricks are reusable components that provide specific functionality to an App. Examples include:- Camera and image processing
- Object detection
- Web interfaces
- Data storage
- AI services
- Sensor functionality
In simple terms
Apps are your projects. Bricks are the building blocks that add functionality to those projects. Once you understand this structure, you are ready to start building with the Arduino UNO Q.10. Reaching the Linux side over SSH
Later sections run commands on the board itself, such as the Edge Impulse runner in Section 8. From a terminal on the same network, connect with the board’s IP address and the username and password you set in Step 3:6. The geophone: giving EleTect X a sense of the ground
A geophone is a sensor that converts ground vibration into a small electrical voltage, the same idea as a seismograph, but small and cheap enough to bury at a farm boundary. Why a geophone. Section 3 has the full source. In short, Caitlin O’Connell-Rodwell’s field research in Etosha National Park showed elephants themselves detect and orient toward alarm signals carried purely through ground vibration, picked up by specialised mechanoreceptors in their feet, at ranges well past what their airborne calls reach. If elephants sense danger through the ground, the ground is a good place to listen for them, so the geophone comes before the camera.







expf needs __errno on this board’s libm_nano.a, and this firmware’s no-stdlib build provides none, so the exponential form does not link on the hardware at all. That same function also builds the eight-value feature vector, STA, LTA, peak ratio, trigger index, and four statistics over the raw window, that goes upstream.
The goal beyond that stand-in is a footfall classifier that can tell what kind of footstep is approaching, elephant, boar, or human, distinct from each other and from everything else that can shake the ground, straight from the seismic signature alone, without waiting on the camera to confirm anything. The human class matters most: a ranger or resident walking the boundary should never trigger the response meant for an elephant or boar. There is no such model yet, because there is no public labelled dataset of elephant and boar footfalls recorded in the field.
Our first plan was a round of field trials: walk elephants and boar (or the closest safe stand-ins) past a geophone and label the recordings. That is still the cleanest way and we have not dropped it, but it is slow. Arranging animals, handlers and field access takes far longer than the rest of the project, and the seismic channel would sit idle while we waited. So, in parallel, we use the two nodes already in the field. Each node logs its own raw footfall window whenever a seismic trigger fires and files it by what the camera confirms: a named species, two species at once, a watch the camera could not resolve, or no animal at all. The camera’s confirmation becomes the label, and the geophone window from that moment becomes the training example. Triggers the camera could not resolve are kept separate. That way every label is backed by a photo of an animal, which matters because plenty of things that shake the ground are not elephants or boar. We want this to grow into a public dataset that others working on human-wildlife conflict can use. For now it is still a plan: neither path has produced a dataset yet.
So each node is also a research instrument. Months of camera-confirmed footfall from a real boundary could become the first field dataset of its kind, useful to us for a small on-device classifier and to anyone else who hits the same missing-dataset wall.
How a footstep starts the vision check. The reflex layer runs this whole chain, sampling, STA/LTA, the feature vector, entirely on the STM32U585. Only when a trigger crosses threshold does the reflex loop call Bridge.notify(“report_footfall_event”, …), a fire-and-forget one-way call across the same Arduino_RouterBridge link described in Section 4, which does not wait for a reply and cannot stall the sensing loop on a round trip to the Linux side. That one notify is how a footstep starts the vision check on the cognition layer, which opens the camera, polls the vision runner, runs fusion (Sections 7 to 10) and decides whether, and how hard, the horn and LEDs fire (Section 12).
Source files. device/mcu/src/geophone.cpp, sta_lta.cpp, and footfall_features.cpp in the project repository.
7. Vision system: the camera and the infrared array
Section 6 covered how a footstep starts the vision check. This section is a build guide for what it looks at: an Arducam IMX462 day/night USB camera on the Qualcomm side, an infrared illuminator fired from the reflex side, a day/night decision that reads the scene itself rather than a clock, and an Edge Impulse vision model that turns a frame into “Elephant” or “Boar” with a confidence score. Follow the steps in order: wiring, then software, then calibration. Every number below was measured on our hardware.
- Arducam IMX462 day/night USB camera.
- 940 nm IR illuminator board (this build uses a VISTORA 48-LED board, ASIN B0H2DQ9DVK, 300 mA).
- Logic-level MOSFET to switch the illuminator: either a bare IRLZ44N with a 220-330 Ω series gate resistor and a 10 kΩ pulldown from gate to source, or a pre-built low-side switch module like the LR7843 with both already built in. Check the module’s own markings for which screw terminal is signal, ground, and load, they are not universal between brands.
- Multimeter, to check the supply voltage and fuse before anything is connected to the board.


- Locking exposure once at camera open and never revisiting it means a scene whose lighting changes over the session, an indoor test under room lighting, or a dusk-to-dawn cycle, can stay locked at the wrong value for its whole duration. That is why ExposureAutoLock keeps re-checking instead of deciding once.
- A self-sustaining lock/restore cycle is possible without the 5-minute cooldown above: under a partially covered lens, locking to a fixed dark exposure can make the scene read dark enough to justify another lock, and restoring can make that same scene read bright enough to justify a restore, and neither of the other two debounces catches that on its own.

Source files. device/mcu/src/ir.cpp, and in device/mpu/perception/, camera.py, night.py, detector.py, and video.py, and device/mpu/bench/camera_check/assemble_encounters_onboard.py, in the project repository.
8. Edge Impulse, step by step: the vision model (ETX-V)
Section 7 covered how the trained detector runs on the board, as an edge-impulse-linux-runner HTTP endpoint the vision service calls. This section covers how we trained it: the Edge Impulse project (ETX-V), the dataset behind it, the dead ends hit getting there, and the unrounded numbers the shipped model clears. Creating the project. Start a new project in Edge Impulse and name it whatever you like (ours is ETX-V). Then, on the project Dashboard, choose Object Detection.
Background has no boxes by design. Those counts are the curated source corpus. The live Studio project holds more once every own-capture and field-trial frame is added (18,666 images in total, split out in the table further down).
Why a Background class. A detector trained only on animals never learns what an empty scene looks like, so it will happily draw a box on an empty frame. Empty images with no boxes teach it that directly, and they had the biggest effect on the false-positive rate reported below. The own-camera frames in that table come from the same camera and UNO Q rig we deployed, shot on the workbench before it went out. We later added curated frames from an overnight field trial, shot in harder conditions. The result was mixed, as covered below.
Auditing the data before trusting it. A by-eye seeded sample of 144 Boar images found roughly 28% contamination: domestic pig rather than wild boar, warthog (the wrong species entirely), watermarked stock photography, hunting-trophy shots, zoo-enclosure backgrounds, and a handful of images carrying black redaction rectangles baked into the pixels by some prior export’s own augmentation step. None of it showed on the source’s listing page; we only found it by opening the images. We did this before the first training run, because dropping forty bad files from an upload list is cheap and retraining to find out why recall is stuck is not.
Uploading and labeling.
- In the left sidebar, click Data acquisition.
- Click the Upload data icon above the dataset table.
- Select a folder of images. If the source already has boxes, add its COCO-format annotation file too.
- Choose the split for the upload: Training or Test. We set the split ourselves so frames from one clip stay together (see the next step).
- Open the Labeling queue tab for any images without boxes. Draw a box around each animal with the bounding-box tool (the crosshair icon on the sample viewer, on the right of the screenshot below) and give it its class.
- Keep about 80% for training and 20% for testing.
- Split by clip, not by image. Frames from the same clip look almost identical, so if one lands in training and another in testing, the test score is inflated.
- Group images by shared filename stem, then send each whole group to one side only.

- Click Create impulse in the sidebar.
- In the Image data block, set the image width and height to 96 and 96, and set Resize mode to Squash.
- Click Add a processing block and choose Image.
- Click Add a learning block and choose Object detection.
- Click Save impulse.

- In the sidebar, under Impulse design, click Object detection.
- Click Choose a different model and pick YOLO-Pro.
- Set the values below by hand. We kept them fixed so every run is comparable.
Medium is the sweet spot. It gave the biggest recall jump over small, while large did not help (Boar recall dropped). At medium size, no_attn_relu gave better Elephant recall and fewer false positives than attn_silu.


0.05 looks very low, and it comes with a 16.6% false-positive rate on held-out data, but it is where both animal classes reach their best recall. We would rather send an extra alert than miss an elephant. The right threshold depends on which mistake costs more where you deploy; 0.05 is our choice for this boundary.
Export the model for the board. The UNO Q’s Linux side runs the model as its own standalone program, so we export a Linux model file instead of an Arduino library or brick. That way the model is a separate file we can swap or retrain without rebuilding the app, and Section 7’s runner service loads the same file every time.
- Click Deployment in the sidebar.
- Choose Linux (AARCH64) as the target.
- Under Model optimizations, pick Quantized (int8).
- Click Build.
- Optional: scan the Run this model QR code to test the model on a phone camera first.
- On the board (over the SSH route in Section 5), download the model file:

int8 is slightly slower than float32 here because this board’s CPU has no int8 acceleration, but it uses less memory, so int8 is what we ship. Both numbers are Studio estimates. The board is measured below.
Measuring on the board.
edge-impulse-linux-runner --run-http-server 1337 is the same standing endpoint Section 7’s vision client calls into. Measured inference over 123 live classify cycles on the actual board came to 136 to 146 milliseconds per frame, a mean of 138 ms, roughly 5.7 frames per second end to end including camera capture and JPEG encoding, comfortably inside Studio’s int8 estimates. We also tried Studio’s GPU delegate export for the board’s Adreno 702 GPU (currently in beta). It builds and links, but the board’s stock OS image does not yet ship libtensorflowlite_gpu_delegate.so, so it cannot launch there yet. The CPU is fast enough on its own, so we shipped on CPU and left the GPU path as a follow-up.

--run-http-server endpoint’s live view, straight off the deployed camera in the field. The overlay (last poll age and current fire threshold) is our own instrumentation on the raw feed, and it shows the model polling live on the forest scene.
Running it in the field. In the field, the runner is a background service under systemd instead of a terminal session, so it stays loaded and survives reboots and brown-outs. The Python client from Section 7 polls it during each event, while the camera is open. An overnight field trial showed failures no test split could: a dawn burst of thousands of tiny, low-confidence boxes as the light changed, and a handful of saturated, near-full-frame false detections on an empty scene at very high confidence. A confidence floor, a requirement for two consecutive detections before an alert fires, and a reject rule for implausibly large boxes were added after the model to catch these. They are cheap and easy to undo, and they stop one bad frame from becoming a bad alert while we keep improving the detector.
What the numbers say. The model-capacity ladder that justified medium sizing, same corpus, same attention variant, threshold fixed at 0.5 so size is the only variable:
The six configurations we tried, at the deployed 0.05 threshold:
The model that shipped is the last row above, YOLO-Pro medium with the no_attn_relu variant, at the deployed 0.05 threshold: 85.2% Boar recall and 90.6% Elephant recall, with a 16.6% Background false-positive rate: the best Elephant recall and false-positive rate of all our runs, at a small cost in Boar recall compared with one earlier setup.
A fourth class: Fox. We have a boar problem on our own small farmland, but a wild boar does not show up on a testing schedule. A fox visiting our property does. When the first fox walked in front of a deployed node (Section 17), the three-class model did not fire, because it had never seen a fox. So we added Fox as a fourth class, to test the full detect, confirm and deter sequence on a wild animal. Section 17 covers the field side; this section covers the retrained model.
Add the class. In the same ETX-V project, open Data acquisition, upload the Fox images, and draw a box and a Fox label on each one with the labeling tool.

Fox images come from six public sources (all CC BY 4.0, listed in
ml/vision/dataset_manifest.json) plus frames from our own board. Frames from the same fox clips with no fox in them (370) and reviewed morning false-positive frames (362) went into Background.
Reconfiguring the impulse for the larger input. Raising the resolution meant reopening Create Impulse, not just starting a new training job: on the Image data block, image width and height both went from 96 to 160, resize mode stayed Squash for the same edge-of-frame reason given above, and Train on data subset stayed at 100%. On the Image processing block, colour depth stayed RGB rather than grayscale, for the same reason as before: a fox’s reddish coat stands out against grey forest litter, and colour costs little at this size. The Object detection learning block’s output updated itself to 3 output features (Boar, Elephant, Fox) the moment the third label existed in the dataset, with no manual step needed:




Adding the fourth class and more data improved Elephant and Boar recall as well. The fair comparison is against a same-recipe retrain on today’s corpus before Fox was added (Run R), not against the original three-class champion’s own older test set, since that would be comparing two different held-out splits:
Studio’s own metrics. Everything above comes from our own Model Testing sweep on the held-out split. Studio also reports its own validation metrics on the trained model directly, using a different metric family (mAP and COCO-style recall-by-detection-count, not the per-class Recall/Precision/F1 this section builds its own sweep from), so the two sets of numbers are not interchangeable:

mAP@[area=small] sits at just 0.24 against 0.78 for large boxes, so the model is much better with large boxes than with small, distant animals, which fits the resolution and camera-placement tradeoffs in Section 7. Studio’s own on-device performance estimate for this build, shown at the bottom of that same panel, reads 1,235 ms inferencing time, 1.4M peak RAM, and 17.4M flash, using its EON Compiler (RAM optimized) engine. Do not confuse this with the 374 ms classification time below: this is Studio’s estimate, while 374 ms is our measurement of the .eim running live on the board, so the two are not comparable.
Deploy the four-class model.

We ship int8: it is smaller, and the board is fast enough either way. Measured on the board, classification takes about 374 ms per frame, against about 138 ms for the three-class model. The board also runs warmer with the larger model, so it is listed in Section 19.
Source files. ml/vision/README.md, ml/vision/dataset_manifest.json, and ml/vision/fox-representation-audit.md in the project repository.
9. Edge Impulse, step by step: the acoustic model
This model listens through the BOYA microphone, which connects to the powered USB hub through an adapter, and tells four sounds apart:gunshot, chainsaw, elephant_call and ambient (background). It ships from Edge Impulse project ETX-A. If Studio’s built-in audio blocks already fit your sounds, Step 2 may be all you need; the later steps show how to go further with custom blocks.
Why we built custom blocks. Our first impulse used Edge Impulse’s standard audio path: an MFE block and a small classifier trained from scratch. Untuned, it scored 61.7% on our 605 test clips, with chainsaw recall at 8.8%. After tuning it reached about 82%, but chainsaw stayed the weak class. Two things pointed us to a pretrained model:
- Long windows. We tested windows from 3 to 10 seconds, and 10 seconds gave the best elephant-call recall. Edge Impulse’s keyword-spotting transfer learning block is built for 1-second clips, so it did not suit sounds this long.
- Limited data. About 3,700 training clips is not much for a model learning from scratch. PANNs Cnn10 is an audio model pretrained on Google’s AudioSet, which already includes chainsaws and gunshots, so it starts out knowing what these sounds are.
- An Edge Impulse account and a project, plus a copy of this project’s repository (
git clone https://github.com/Abhinavkrishna3211/EleTect-X). Both custom blocks and the C++ port used below are inml/acoustic/ei_blocks/. - Python 3, Node.js and Docker, then
npm install -g edge-impulse-cli(this installsedge-impulse-blocks). - A Linux machine or WSL for the custom blocks and the export build.
- An Arduino UNO Q to run the result.
- Choose your target classes. Ours are
gunshot,chainsaw,elephant_callandambient. - Gather clips from open sources and record each clip’s source, license and checksum in a manifest file.
- Convert every clip to 8 kHz, the rate our microphone records at. Use a resampler that filters out high frequencies first, such as
scipy.signal.resample_poly(audio, 8000, original_rate)in Python; simply dropping samples adds false low-frequency noise. - Cut or pad every clip to exactly 10 seconds.
- Split the clips into training and testing yourself before uploading. The automatic split works clip by clip, so two 10-second clips cut from the same long recording can land on opposite sides. We kept every clip from one recording on the same side: 3,688 for training and 605 for testing. If each of your clips is a separate recording, the automatic split is fine.
- In Data acquisition, click Upload data. Upload your training folder with the category set to Training, then your test folder with Testing, so the split stays exactly as you made it. For thousands of files,
edge-impulse-uploader --category training(and--category testing) does the same from the command line. - Open Data acquisition and check the counts match your split (ours: 3,688 training and 605 test).

- Click Create impulse.
- Set the input to 8000 Hz audio with a 10,000 ms window and a 10,000 ms window increase, and check Zero-pad data.
- Add an MFE processing block and a Classification learning block. In the MFE block, set Frame stride to 0.02 s: at the default 0.01 s, a 10-second window gives 998 frames, which is more than MFE accepts.
- Train it, then open Model testing, click Classify all, and read the per-class numbers rather than the headline accuracy.
Step 3: Set up the custom processing block
- Open the processing block from the repository and link it to your own account. Delete its
.ei-block-configfile first, because that file links the block to the account it was first pushed from:
dsp.pyalready implementsgenerate_features(). It reproduces the PANNs front end exactly, with these settings:
- The block upsamples each window from 8 kHz to 32 kHz itself. PANNs defines its filterbank at 32 kHz, but the impulse input stays at 8 kHz; both numbers are correct.
- If you change the block, run
parity_check.pyto compare it with the reference PANNs code on test clips. Ours matches to 0.0002 dB, against a tolerance of 0.01 dB. - Push the block. The first push asks you to log in, because a project API key is not accepted for pushing blocks:
edge-impulse-blocks runner in the dsp-panns-logmel folder, and keep that terminal open and the machine awake until each job finishes. Enterprise accounts can host the block on Edge Impulse’s servers.
Step 4: Set up the custom learning block
- Do the same for the learning block, again deleting
.ei-block-configfirst:
train.pyfreezes the pretrained PANNs Cnn10 model, computes an embedding for each window once, and trains a small two-layer head on top, oversampling the smaller classes. It exports one ONNX file holding both the backbone and the head. The pretrained Cnn10 weights are downloaded from Zenodo when the block’s Docker image is built, so there is nothing extra to fetch.- The export uses
dynamo=False. Keep it if you edittrain.py: without it, recent PyTorch versions can ignore the requested opset and the file will not convert. - Optional: test it locally before pushing. This is the same command Studio runs, and it needs the features Studio generates for your project (
X_split_train.npy,Y_split_train.npy,X_split_test.npyandY_split_test.npy) in./data. You can skip this and let Studio run it when you train:
- Push it:
- Click Create impulse.
- In Time series data, set Window size to 10,000 ms, Window increase to 10,000 ms and Frequency to 8000 Hz. Leave Zero-pad data checked.
- Click Add a processing block and choose PANNs log-mel (the custom processing block you pushed in Step 3).
- Click Add a learning block and choose PANNs Cnn10 transfer (the custom learning block from Step 4).
- Check that Output features shows 4 classes, then click Save impulse.

- Click PANNs log-mel in the sidebar. Check the parameters match Step 3 (64 mel filters, FFT length 1024, hop length 320, low frequency 50, high frequency 14000).

- Open the Generate features tab and click Generate features. The number of training windows should match your training count (3,688 for us).
- Click PANNs Cnn10 transfer in the sidebar.
- Set the values below, then click Save & train.

- Read the result panel. The 94.9% here is the validation score, measured on a slice of the training data; the number to report is the held-out test score in the next step.

- Then open Model testing and click Classify all to score the model on the held-out test clips. Ours, on all 605:
This is the shipping configuration: impulse 19, deploy v7. Three notes on reading these numbers:
- The public Studio dashboard shows 87.8% because it applies a 0.6 confidence threshold by default; the table above uses no threshold, which gives 92.6%.
- Treat differences under about 1.5 points between runs as normal run-to-run variation.
- Studio’s on-device estimate is designed for standard blocks, so for this custom-block impulse we measure latency on the board instead (Step 9).
We keep the EON Compiler engine and the Unoptimized (float32) version, which is the build we register on the board. For this impulse the panel offers float32 only. Our
parameters.json already sets "cppType": "panns_logmel", so the export leaves an empty slot for the block’s C++ code.
- Click Deployment in the sidebar.
- Choose C++ library as the target and EON Compiler as the engine.
- Leave Unoptimized (float32) selected and click Build. Studio downloads the C++ library as a .zip.

- Our C++ port fills that slot:
panns_logmel.cppandpanns_logmel_core.hppinml/acoustic/ei_blocks/dsp-panns-logmel/cpp/. If you change the Python block, change the C++ to match and check it to the same tolerance as Step 3. - Clone Edge Impulse’s
example-standalone-inferencing-linuxrepository with Unix line endings (git -c core.autocrlf=false -c core.eol=lf clone https://github.com/edgeimpulse/example-standalone-inferencing-linux), unzip the export over it, and copy thetensorflow-litefolder at the top of that repository intoedge-impulse-sdk/, where the Makefile looks for it. - Copy both C++ files into
source/and addCXXSOURCES += source/panns_logmel.cppto the Makefile.
- Create the build environment once. This downloads a minimal Ubuntu 20.04 and installs the Arm cross-compiler inside it. The three
mountlines need running again after a reboot:
- Mount the build folder from Step 7 at
/buildinside it, then build:
- The build writes
build/model.eim. It is an Arm binary, so copy it to the board (for example withscp, using the SSH login from Section 5) and check it describes itself correctly there:
- Still on the board, check it against an Ubuntu 20.04 container, the same base the brick runs in, rather than the board’s own system:
- When we moved to this toolchain, we ran the same 16 test clips through our earlier build and this one. Both gave identical predictions and identical confidence, so the 92.6% figure carries over.
- On the board, make sure
model.eimis executable (chmod +x model.eim). - Create a folder named
/home/arduino/.arduino-bricks/models/<model-id>/and putmodel.eimin it. We useetx-acoustic-panns-20260930; the folder name must match theidinmodel.yaml. - Add a
model.yamlnext to it. Keep the wholemetadatablock: withsource: "edgeimpulse", the board expects everyei-field to be filled in, andei-model-typemust befloat32.
- Confirm the board sees it:
- In App Lab, open the audio classification brick’s Brick configuration and pick this model. Registering it only makes it available. It does not make it the one the brick loads.
An int8 version of the same graph shrank from 21.4 MB to 7.4 MB for a 0.17-point accuracy cost on the same 605 clips. That was measured with a local ONNX runtime, not an int8 Edge Impulse build on the board, because the deployment panel offers float32 only for this impulse (see Step 7). A naive whole-graph int8 conversion scored 15.4% with zero gunshot recall, so the quantization recipe matters.
Source files.ml/acoustic/README.md(the full evidence record),ml/acoustic/TUTORIAL.md(the complete version of this walkthrough, including the exact shell commands), andml/acoustic/harness/split.json(the frozen 4,293-clip split) in the project repository.
10. The fusion math
The sensors that have something to say about an event are combined with the weighted log-odds update below. It is a plain formula, and every term traces back to a sensor reading:



- A dropped modality contributes no term at all, never a term equal to zero. Zero log-odds is itself a legitimate reading a sensor can report (perfectly ambiguous evidence). Encoding “this sensor had nothing to say” as available=False instead of log_odds=0.0 keeps those two cases from being silently confused, and FusionResult.contributions only carries a key for modalities that fired, checking key membership, not value, is how a caller tells “dropped” from “contributed exactly zero.”
- Dropout is not renormalised. Losing the vision term when it’s too dark for the camera does not redistribute vision’s weight onto seismic and acoustic. That would silently inflate confidence in whatever data happens to still be available, which is the wrong thing to do for a system that fires a horn next to a public road.
11. The anti-habituation engine
A fixed siren or strobe stops working on elephants because they are intelligent and learn fast. The deterrence studies in the Sources list all name habituation as the main way simple deterrents fail. The fix here is a contextual bandit, device/mpu/cognition/bandit.py, run through the same four-step cycle every event: sense (fusion decides an event is real) → decide (the bandit picks a tier) → act (drive_horn/drive_led/pulse_ir fire over Bridge RPC) → learn (the outcome updates that tier’s stored value for next time).
“What worked on a first trigger” and “what worked on a third trigger in ten minutes” are learned separately instead of being blurred into one number. The top bucket saturates, so a 4th, 5th and 20th repeat share one context instead of spreading the data over cells no field trial could fill.
Escalation is a hard rule, not something the bandit has to discover:
tier_floor_by_context, the floor per bucket is Tier 1 on a first trigger, Tier 2 on a second, and Tier 3 on a third or later. This was not always true in the tree: a one-night field test pinned every context to Tier 3, and that override lived in committed source for three weeks before it was found and moved to an environment variable (ELETECT_TIER_FLOOR), where a field test can still ask for it without it silently becoming the shipped default again. An animal that comes back within minutes was clearly not deterred by what just fired. Waiting for epsilon-greedy exploration to stumble onto a stronger response would repeat an already-ineffective one an unbounded number of times first, so the floor only ever raises the minimum tier as repeats stack up, and de-escalation happens naturally as the repeat count ages out of the habituation window, never by a separate decay rule.
The floor is partitioned per species; how hard the node watches is not. The repeat count is kept two ways, for two purposes. How long the node keeps the camera watching after a trigger uses a species-blind count, because looking longer costs little and a node that has seen a lot of activity should watch harder regardless of what caused it. The escalation floor above, the thing that fires a horn, uses a species-scoped repeat count instead, so a night of fox visits can only ever walk the fox ladder, never the elephant one. Underneath, action_values is keyed by (species, context, tier), not just (context, tier), and the experience store hands select_tier() below a plain per-species slice of that table, so the bandit’s own selection logic does not need to know species exist at all.
That partition only works if the species is known at the right moment, and there is a catch: the footfall trigger that starts the clock arrives up to 45 seconds before the camera confirms what caused it. The experience store handles this with two-phase attribution rather than waiting: every trigger is recorded immediately under a placeholder species, UNATTRIBUTED, and is only renamed once the vision watch resolves. A trigger that is never confirmed, wind, cattle, a branch falling, stays UNATTRIBUTED, which is the correct outcome for a node woken by something it could not identify.
Tier selection itself is epsilon-greedy, with one deliberate tie-break:
12. Deterrents: the horn and the LEDs
Two LED wings (D3 left, D6 right, mixed cool-white and royal-blue ~450 nm) and the horn chain (STM32 → DFPlayer PRO → TPA3116D2 amplifier BTL → Ahuja SUH-15, 8 Ω) both escalate together through three content tiers, ordered by the deterrence literature’s own effectiveness numbers, mildest first:
We are also field-testing other curated sounds. There are many possible combinations of sound and LED pattern across the tiers, so the table above is the starting set, not the only one.
Why blue and white. Elephants are reported to be dichromats: they have two types of colour receptor, one most sensitive to blue-violet light and one to yellow-green, so they see blues well and reds poorly. Royal blue (~450 nm) sits in the range they see best, and cool-white adds broad brightness. We chose the mix because the animal can see it, not from a measured elephant-response result.
The fire sequence (device/mcu/src/horn.cpp), amp held in shutdown while every AT command goes out so neither the DFPlayer’s command latency nor the TPA3116’s own soft-start reaches the horn as a pop:
device/mcu/src/horn.cpp


13. LoRa E5: alerts, and the board’s one shared UART
Nodes are meant to coordinate over a LoRaWAN star network on India’s legal IN865 band, 868 MHz is not legal to transmit on in India, which is easy to miss if you copy a European reference design. device/mcu/src/mac.cpp implements the OTAA join sequence as an explicit state machine: device/mcu/src/mac.cpp



M2-EU868-4G on its own dashboard, the EU868 SKU:

LoRa → Channel Plan, and pick IN865-867 from the list:

LoRa → LoRa Network, Mode set to Packet Forwarder, deliberately not the gateway’s own SenseCAP mode and not Local Network Server, both of which run a different stack than the external ChirpStack server this project’s architecture calls for. The Gateway EUI auto-fills; Server Address is the LAN IP or hostname of the machine running ChirpStack, ports 1700 up and down (the standard Semtech UDP packet-forwarder port):

web/chirpstack/ in the repo is a trimmed, hardened copy of the official chirpstack-docker stack (MIT-licensed, attributed in LICENSE.chirpstack-docker), only the in865 region files are carried, not all forty ChirpStack ships. On a machine with Docker and Compose v2:
docker compose ps should show every service running. Open http://localhost:8080 and sign in with admin/admin, the upstream default, and change it immediately, since that account can read every uplink the stack ever receives. We changed ours; admin/admin no longer authenticates against it, confirmed directly.
Step 6: register the gateway. Gateways → Add gateway, the gateway’s own EUI from Step 2 or 4:

0 but then rejects it on submit with Validation error: downlink_priority must be > 0. Set it to at least 1 before submitting:


web/ingest (Section 18) decodes the raw frame bytes itself per ADR 0031 rather than asking ChirpStack to do it twice:


device/mcu/src/secrets.h, which is gitignored, see secrets.h.example for the shape) and the device profile from Step 7. Join EUI stays all-zeros unless the node’s own firmware sets one:

CHIRPSTACK_APPLICATION_ID in web/ingest/.env, then docker compose up -d eletect-ingest. The device dashboard shows where things stand: a freshly-registered device reads Last seen: Never until an OTAA join happens over the air, which is expected:

chirpstack-gateway-bridge → Mosquitto → ChirpStack → (MQTT) → eletect-ingest → Supabase → send-alert → email. This exact path was run end to end on production Supabase from a bench UNO Q through this same SenseCAP M2 and ChirpStack stack: a status frame became a health row, a boar detection stayed normal with no page, an elephant detection paged as high, and an elephant flagged no-retreat paged as an URGENT critical email. A bridge-outage test, stop the bridge, send a frame, start it again, delivered the queued frame rather than losing it, because ChirpStack’s MQTT integration publishes at QoS 1 and Mosquitto persists its queue to disk; without either setting, a database hiccup could lose a night’s alerts. Two things are still open: email delivery today only reaches the Resend account owner until a sending domain is verified, and the firmware’s join handler does not yet recognise the LoRa-E5’s throttled or “No band” replies, so a join failure from either of those causes still needs a human looking at the module’s own AT-command log to diagnose.
Source files.docs/research/sensecap_gateway_in865_chirpstack_setup.md,web/chirpstack/README.md,web/ingest/README.md,docs/decisions/0031-lora-uplink-payload.mdin the project repository.
14. Power: battery and solar
A 4S LiFePO4 12.8 V pack, a solar charge controller with a LiFePO4 profile, a 20 W solar panel, and surge/reverse-polarity protection at the input. The battery is a LiFePO4 pack of this type, 12.8 V and 6 Ah with an integrated BMS, sized against a daily-energy-budget calculation (hardware/bom/eletect-x-power-budget.xlsx).
15. Manufacturing and assembly: designed in Fusion 360, printed in PETG


16. Making it field ready: self-healing and watchdogs
A node left alone on a forest boundary for days cannot rely on someone noticing it has gone dark. Recovery on the board’s Linux side runs in layers, each covering a different failure:- Docker restart policy (unless-stopped): the container comes straight back after a crash or a power cut, with no supervisor needed.
- eletect-x-boot-reassert.sh (at boot): App Lab regenerates the container’s compose file on every launch and drops our settings, so this unit recreates the container from a protected app-compose.golden.yaml that App Lab never writes to.
- eletect-x-watchdog.sh (every 5 min): re-applies the unless-stopped policy if it has drifted, and restarts the app if it has been down for more than a 300 s grace period. It also probes the Edge Impulse vision runner on :1337/api/info and restarts its systemd unit if it stops answering for 300 s; the unit’s own Restart=always covers the runner dying outright.
- eletect-x-mcu-heal.sh (at boot): checks that the STM32 still answers Bridge calls. If it has dropped into its bootloader, the script resets and reflashes it and re-applies the golden compose. A separate unit, eletect-x-boot0-hold, holds the BOOT0 line low so a cold boot lands in the sketch in the first place.
- eletect-x-fire-tap.sh (every few minutes): copies every drive_horn/drive_led/pulse_ir ack and encounter-start line into a log on the host, so the record survives container recreation and power cuts.
17. Field testing: two nodes, and what they recorded
Two Arduino UNO Q nodes run the same software and configuration at two sites: one on a forest edge where elephant encounters occur, and one in our farmland where boar attacks occur. A forest edge and a farm see different animals, so we need field data from both. A fox turned up, and the system correctly left it alone. One of the two nodes opened an encounter on motion at its site, the camera recorded the full event the same way it would for anything else that trips a reflex-layer trigger, and the footage showed a fox, not an elephant or a boar. The vision model had three classes at the time, Elephant, Boar, and Background (Section 8), so a fox did not read as either target species, the fused probability never cleared the fire threshold, and neither the horn nor the LEDs fired. The event was logged and the footage kept like any other encounter, but nothing fired, because only elephants and boar are meant to be deterred. https://youtu.be/3Dm8IDxwZ88?si=ENmB7Ew7WzWHmVIJ From three classes to four. We built the system with a three-class model first. A fox kept wandering into the deployed site, so we moved to four classes and added Fox (Section 8). It is also a useful stand-in: we want to test the full detect, confirm and deter pipeline on a wild elephant or boar, but neither turns up on a schedule, and a fox visiting our own property does. We added a deterrence response for Fox so the whole pipeline could be tested. A fox is deterred just like a boar, with the same tier ladder, LED patterns and IR timing, but it has its own learning bandit and its own anti-habituation tracking, so a night of foxes never affects the Boar or elephant ladders. The four-class model in the field. When a fox came back on a later field test, the retrained model identified it as Fox and the node fired the Fox deterrent: https://youtu.be/MSTuE-OOPm8?si=HwlELcYV4ClNUe3f An open, growing dataset: every future encounter, uploaded. Every Elephant and Boar detection the two deployed nodes record from here on, video and stills alike, is uploaded as it comes in. Dataset: Click here This footage is also the raw material for Section 6’s footfall classifier, since no public dataset of elephant or wild boar footfall signatures exists. It will be added to the project’s GitHub repository.18. The web app: what the ranger, the resident, and the public each see



The ranger/officer dashboard

- Overview: the live operational snapshot, clock kept in IST (the sector’s actual operating timezone) so a timestamp on screen means the same thing it does on the ground.

- Fleet: the node roster, sorted by urgency: a dead node outranks a merely degraded one, which outranks a healthy one, so the node that needs attention is always at the top. For now a ranger has to look at the list: a node that misses its check-in moves to the top, but nobody gets paged the way they do for a detection. The fix is simple, the same push/email channel Stay Safe already uses, triggered by silence, but it has not been built yet.

- Corridor: a live view of the safe-herding corridor logic (deter on the village side, leave the forest-side escape lane open): the map shows the herd handing off from node to node as it moves, with the dwell time at each node before the next handoff.

- Planner: a deployment-planning tool with preset boundaries around the Sector-7 pilot area, so a ranger can get a node/gateway-count estimate for a new boundary in one click, without needing to draw a custom shape first.

- Replay: replays a recorded incident from start to finish (~14 s per incident) with a continuously-interpolated position marker, not a series of jump-cuts between log entries.

- Learning: a direct window into the bandit from Section 11: a per-pattern effectiveness bar chart, so “what has this node learned works” is something a ranger can see.

- Admin: user and role management, enforced server-side (every action is authorized inside the database by an is_admin() check in the RPC layer itself, not just hidden in the UI, so a non-admin calling the same function directly with their own credentials is rejected by Postgres, not by the page). Deliberately does not include a firmware/OTA panel: the device has no firmware-update pipeline yet, and the screen will come with it.

- Officer approvals: the workflow for bringing a new officer account onto the platform.
The resident-facing app
- Stay Safe: the public opt-in page for residents: enable alerts and choose a channel.
- Resident view: once opted in, a resident sees public_area_risk: an aggregate, privacy-scoped risk signal (counts per day, by area), deliberately not species, exact location, or anything a resident’s role isn’t meant to see. The database enforces this with row-level security, like the admin panel; the page does not just hide it.
The public site
Home, About, Technology, Research, Deployments, Solutions, and Contact: for anyone who is not a ranger or resident: what the project is, how it works and where it runs.19. Known limitations and current status
Two EleTect X nodes are running right now, one at the forest and one in our agricultural field. Here is what is still open:- The seismic channel detects footsteps but does not yet tell which animal is coming. We do not have a good dataset yet, so we are not using an edge model to classify the animal. We are collecting that data now, and once we have it we will build that model and make the dataset public so everyone can use it.
- The retrained, four-class vision model runs warmer. Adding Fox raised the input resolution from 96x96 to 160x160 (Section 8), and classification time went from about 138 ms to 374 ms per frame. The board’s temperature needs watching on hot days.
- Anti-habituation is still in field testing. It works on the board and in tests, but we need months of field data to know its true effectiveness. In the one to one-and-a-half months of field testing so far, the results look good.
20. Conclusion: what this buys back, for people and for elephants
Building this taught us more about restraint than about machine learning. Putting a geophone ahead of a camera, building the anti-habituation engine around how fixed deterrents fail, treating boar as seriously as elephants because the family behind this boundary loses sleep over both: each of these came from choosing what fits how an animal moves through this ground over what sounds more impressive. We have not hidden the unfinished parts. A device meant to stand between a person and a five-tonne animal should not fail quietly, and whoever picks this up next, whether that is us in six months or a forest department engineer somewhere else, should know what it can and cannot do yet. The next steps build on what the two nodes are already doing. The dataset described in Section 17 is the path to a footfall classifier that can tell an elephant from a boar from a fox by ground vibration alone, before the camera or the microphone ever has to weigh in. The corridor and fleet tools already built into the web app are what turn our two current nodes, one on a forest edge and one in our agricultural field, into a fleet, deployed wherever a forest department or a farming community asks for one. That is the next build, on the same hardware. This forest was never only ours to begin with. The land along this boundary has had elephants crossing it for longer than any of the people farming beside it have been alive, and an elephant did not choose to have a farm appear on its route any more than a farmer chose to have a five-tonne animal appear on theirs. Neither side wins by treating the other as something to be fenced out, shocked into staying away, or outlasted. We built EleTect X because we believe the answer is coexistence: a boundary that a person and an elephant can both cross and both survive. We are building it for the people who farm this land, and for the elephants, boar and the occasional fox that still call it home.Sources
The claims in Sections 1 and 3 trace to the sources below. Human-elephant conflict, the scale of it:- Over 2,500 people died in 5 years in human-elephant conflicts: Govt data, Business Standard, reporting the Ministry of Environment, Forest and Climate Change’s own figures placed before Parliament (2,853 deaths 2019–2023, 628 in 2023, Kerala 124).
- India lost 528 elephants due to ‘unnatural causes’ in 5 years, most from electrocution: Govt data, Business Standard, on the same Parliament reply.
- Human-Elephant Conflict: A Review of Current Management Strategies and Future Directions, Frontiers in Ecology and Evolution, 2018: the source for the ~500,000 affected families a year and the thirteen Asian/thirty-seven African range-country count.
- “One elephant a day”: Sri Lanka wildlife conflict deepens as death toll rises, Mongabay, on Sri Lanka’s 2022 record (433 elephant deaths, 145 human deaths).
- Sri Lanka’s Elephant Crisis: “No Single Solution, but a…”, Wildlife and Nature Protection Society of Sri Lanka, the source for the 6,400-elephant, 24-year toll and the 250 further deaths in the first half of 2025.
- Sh1.2bn debt of pain as human-wildlife conflict persists, Daily Nation, on Kenya’s crop-raiding rise (156 to 363 cases, 2020–2023) and its compensation backlog.
- O’Connell-Rodwell, C., Wood, J. D., Rodwell, T. C., Puria, S., Partan, S. R., Keefe, R., Shriver, D., Arnason, B. T., & Hart, L. A. (2006). Wild elephant (Loxodonta africana) breeding herds respond to artificially transmitted seismic stimuli. Behavioral Ecology and Sociobiology, 59, 842–850. The Etosha playback study behind putting a geophone ahead of a camera in this system’s detection chain (Sections 3 and 6).
- New study confirms beehive fences as highly effective in reducing human-elephant conflict, Save the Elephants, summarising the nine-year Kenya field trial (86.3% peak-season deterrence across 3,000+ approaches) behind this project’s honeybee-swarm deterrent track. Full paper: Impact of drought and development on the effectiveness of beehive fences as elephant deterrents over 9 years in Kenya, Conservation Science and Practice, 2024.