Invisible gas detection: An RGB-thermal cross attention network and a new benchmark

Jue Wang, Yuxiang Lin, Qi Zhao, Dong Luo, Shuaibao Chen, Wei Chen, Xiaojiang Peng · DOI

Abstract

Detecting invisible gas leaks is a critical safety challenge in industrial environments. This paper introduces RT-CAN, a novel two-stream neural network that utilizes RGB images to provide texture guidance for thermal sensors, enabling the accurate identification of gas plumes. Alongside this model, we present Gas-DB, the first comprehensive, multi-scenario open-source dataset for RGB-Thermal gas detection. RT-CAN significantly outperforms existing state-of-the-art methods, particularly in complex real-world environments.

Introduction

In industrial settings, gas leaks are a silent and often invisible threat. While thermal infrared cameras can "see" these gases due to their specific absorption spectra, thermal images are notoriously difficult to process. They often lack texture and detail, making it nearly impossible for standard computer vision algorithms to distinguish between a plume of toxic gas and a harmless "black block" caused by shadows or background noise.

The field currently faces two major hurdles: a "texture gap" where thermal images lack the edges found in visible light, and a scarcity of realistic data, as most existing datasets feature gas against simple backgrounds like the sky.

The RT-CAN Architecture

The authors propose the RGB-Thermal Cross Attention Network (RT-CAN) to bridge the texture gap. Unlike traditional models that use simple early or late fusion, RT-CAN treats the two modalities as partners with distinct roles.

Key Modules:

  • RGB-assisted Cross Attention (RCA): Since gas is only visible in the thermal stream, the RGB stream serves as a reference for the physical environment. The RCA module uses RGB texture information to "clean up" thermal features, helping the model ignore shadows and focus on the gas plume.
  • Global Textural Attention (GTA): Located in the decoder, this module uses multi-level kernels to capture features at different scales, which is vital for detecting both small, concentrated leaks and large, diffused plumes.
  • Cascaded Decoder: This component integrates high-resolution shallow features with high-semantic deep features to ensure the final segmentation mask is accurate in both shape and placement.

Gas-DB: A New Benchmark

A significant contribution of this work is Gas-DB, a dataset that provides a much harder and more realistic test for AI models than previous benchmarks. It consists of 1,293 pairs of spatially aligned RGB and Thermal images.

The Gas-DB dataset covers eight distinct scenarios, including weather variations, multiple leakage sources, and complex backgrounds to simulate real-world industrial challenges.

Gas-DB covers eight distinct scenarios, including sunny and rainy weather, "double leakage" (two sources), and varying distances ranging from 3m to 20m. By using real-world scenery with complex backgrounds rather than simple backdrops, Gas-DB forces models to learn more robust features.

Key Insights and Results

RT-CAN sets a new high-water mark for the field by treating RGB as a denoising tool. By "subtracting" the known texture of the background via cross-attention, the gas becomes much easier to isolate.

Performance Metrics

  • Superiority over Single-Stream: RT-CAN outperformed the best single-stream models (like YOLOv5) by 4.86% in accuracy and 5.65% in Intersection over Union (IoU).
  • SOTA Performance: Among RGB-Thermal methods, RT-CAN achieved an IoU of 54.46% and an F2 score of 73.89%, surpassing the previous leader, EAEFNet.
  • Prioritizing Safety: The authors emphasize the F2 score, which weighs recall more heavily than precision. In gas detection, a false negative (missing a leak) is catastrophic, whereas a false positive is merely an inconvenience.

Interestingly, the researchers found that using a deeper backbone (moving from ResNet-50 to ResNet-152) actually decreased performance. This suggests that deeper networks may "wash out" the subtle textural information required to identify gas in low-contrast thermal data.

Conclusion and Future Work

RT-CAN and Gas-DB represent a major step forward in automated gas leak detection. Future work will focus on optimizing the model for real-time constraints on edge devices like drones, expanding the dataset to include a wider variety of chemical signatures, and incorporating temporal video data to distinguish gas by its movement patterns.

Summary updated

BibTeX
@article{wang2024invisible,
  author = {Jue Wang and Yuxiang Lin and Qi Zhao and Dong Luo and Shuaibao Chen and Wei Chen and Xiaojiang Peng},
  title = {{Invisible gas detection: An RGB-thermal cross attention network and a new benchmark}},
  journal = {Comput. Vis. Image Underst.},
  year = {2024},
  doi = {10.1016/j.cviu.2024.104099},
}
Figure