Manuscript Offprint

arXiv:2608.30034

Input-Adaptive Gating of a Dehazing Front-End for On-Device Perception in Smoke-Obscured Environments

Seongjun Kang, Ishaan Garg, Vishnu Bharadwaj

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Two-stage vision pipelines often place an enhancement network before a task network, on the assumption that a cleaner input produces a better output. We evaluate this in a firefighter assistance pipeline, where a dehazer precedes an edge detector that renders smoke-filled rooms as structural outlines. Both were designed for a Raspberry Pi 4, at 355K and 23K parameters, and quantized to UINT8 via TensorFlow Lite. The float dehazer reaches 18.60 dB peak signal-to-noise ratio (PSNR) on held-out real smoke against 13.60 dB unprocessed and 17.08 dB for an AOD-Net trained on the same data, and the edge detector reaches an F-measure at optimal dataset scale (ODS) of 0.738, outperforming an optimized Canny's result of 0.692. Dehazing improves edge extraction under dense smoke but degrades it on clear and lightly hazed frames, where the dehazer discards more detail than the haze obscures. We therefore run the dehazer only when a dark channel haze estimate exceeds a threshold, a 10.1 ms test that lets the pipeline save 469.6 ms on the dehazing stage. Averaged over four haze levels, gating is more accurate than either fixed decision, at 0.675 mean ODS against 0.664 for always dehazing and 0.630 for never dehazing. It reduces the mean per-frame time on the Raspberry Pi from 569 ms to 321 ms, and on clear frames increases the frame rate fivefold, from 1.8 to 9 frames per second.

1 Introduction

Approximately 100 firefighters die on duty in the United States each year, with limited visibility in smoke-filled environments being a leading factor [U.S. Fire Administration, 2022]. Equipment carried into a burning structure has known limitations in dense smoke: thermal imaging cameras are expensive and lose accuracy in cluttered scenes, flashlights backscatter off smoke particles, and night vision devices bloom near flames.

A fire ground is also a difficult environment for cloud-dependent connection. Buildings attenuate radio signals, infrastructure may be damaged or powered down, and a navigation aid cannot handle round-trip latency or dropped connections. For this reason, we built a two-stage computer vision pipeline that runs offline on a Raspberry Pi 4 Model B: a dehazing neural network removes smoke from the camera frame, and an edge detection model converts the result into a high-contrast outline of walls, doorways, and obstacles.

This design follows a common pattern in which an enhancement network precedes a task network, assuming an improvement downstream. This assumption is rarely tested because on a workstation an unnecessary enhancement pass is cheap. However, the same does not apply to embedded hardware as the dehazer accounts for 83% of our pipeline's measured per-frame latency.

Preprint.

We measured how dehazing affects edge accuracy across a range of haze densities, and conditioned the dehazing stage on that measurement. The main contributions of this work are:

  • A test of the assumption that a cleaner input gives a better output. It holds under dense smoke, where dehazing improves edge accuracy, but fails on clear and lightly hazed frames, where dehazing degrades it.
  • A gate that runs the 470 ms dehazer only when a 10 ms dark channel estimate of haze density exceeds a fitted threshold. It reaches higher mean edge accuracy than always or never dehazing, and cuts per-frame cost by 43.5%.
  • A two-stage pipeline that runs entirely on a Raspberry Pi 4, at 355K and 23K parameters, with both networks exported to full-integer TensorFlow Lite.

References (24)