# Edge-AI fire-risk detection on a low-cost NPU box

Early fire-risk detection from CCTV that runs entirely on a 6-TOPS edge box. Detectors and an on-device vision-language model flag unattended ignition sources, with no cloud and no GPU.

- **Client:** A Vietnamese safety video-analytics product line
- **Industry:** Safety · Video analytics
- **Country:** Vietnam
- **Year:** 2026
- **Timeline:** About one week

- 22.6 ms: Detector time on the NPU
- 0.30 → 0.84: F1, detector alone vs fused system
- 11/11: Hazards caught in video replay
- ~1 week: Built and benchmarked

Many fire risks look the same on camera: a flame or an ignition source with nobody watching. We built a system that spots exactly that from ordinary CCTV, running entirely on a low-cost ARM edge box with a 6-TOPS NPU. There is no cloud and no GPU. It was built and benchmarked in about a week.

## The challenge

Flame detectors on their own raise too many false alarms. A gas burner with a cook standing next to it is normal. The same burner with the kitchen empty is a risk. Altar candles, dropped cigarettes, smoke and an iron left on all follow the same pattern. The product needed to understand the scene, not just the object, and it had to do so on a small box installed on site, where video never leaves the premises.

## What we built

- **Neural detectors on the NPU.** Fire, smoke and person detection run as INT8 models directly on the RK3588's NPU. The detector takes 22.6 ms per frame.
- **An on-device vision-language model.** We quantized a small vision-language model to run on the same NPU. It looks at the scene and judges whether an ignition source is actually unattended.
- **A rule engine that fuses both.** An alert needs a flame or ignition source AND nobody present, with timers and two-look agreement, so a single odd frame cannot trigger it.
- **A deployable product:** API, portal, box monitor, and support for RTSP, ONVIF, HLS and USB cameras.

## How we delivered it

This was a Eureka Machine problem: nobody knew in advance which small model, if any, could reason well enough on a 6-TOPS chip. So we tested rival answers in parallel. Several compact vision-language models were benchmarked against each other, along with three open-vocabulary detectors, all measured on the same test sets.

Those test sets are mostly synthetic. We generated hazard scenes with image and video generation models, because real footage of unattended fires is scarce. The replay clips were also used for tuning. The figures below come from that setup, not from a field deployment, and should be read that way.

Engineering work ran alongside the research. The detection cycle dropped from 154 ms to about 47 ms, and CPU load fell from 63% to 28%, leaving headroom on the box.

## Results

- **F1 from 0.30 to about 0.84.** The detector alone scored 0.30; the fused system scored about 0.84.
- **11 of 11 hazards caught** in video replay, with a median alert time of about 10 seconds.
- **22.6 ms detector** and a detection cycle of about 47 ms on the NPU.
- **About 17,000 lines of code**, built from 18 to 26 November.

All results are from benchmark and replay tests on largely AI-generated data. Want to see what edge AI can do on hardware you already own? [Talk to us](/contact-us/).
