Explicit Attention-Enhanced Fusion for RGB-Thermal Perception Tasks

Mingjian Liang, Junjie Hu, Chenyu Bao, Hua Feng, Fuqin Deng, Tin Lun Lam

Abstract

Recently, RGB-Thermal based perception has shown significant advances. Thermal information provides useful clues when visual cameras suffer from poor lighting conditions, such as low light and fog. However, how to effectively fuse RGB images and thermal data remains an open challenge. Previous works involve naive fusion strategies such as merging them at the input, concatenating multi-modality features inside models, or applying attention to each data modality. These fusion strategies are straightforward yet insufficient. In this paper, we propose a novel fusion method named Explicit Attention-Enhanced Fusion (EAEF) that fully takes advantage of each type of data. Specifically, we consider the following cases: i) both RGB data and thermal data, ii) only one of the types of data, and iii) none of them generate discriminative features. EAEF uses one branch to enhance feature extraction for i) and iii) and the other branch to remedy insufficient representations for ii). The outputs of two branches are fused to form complementary features. As a result, the proposed fusion method outperforms state-of-the-art by 1.6% in mIoU on semantic segmentation, 3.1% in MAE on salient object detection, 2.3% in mAP on object detection, and 8.1% in MAE on crowd counting.

Introduction

Standard RGB cameras are highly effective in well-lit environments but struggle significantly in adverse conditions such as low light, heavy fog, or intense glare. Thermal sensors offer a robust alternative by capturing heat signatures, which remain visible regardless of illumination. The primary challenge in multi-modal perception is the effective fusion of these disparate data types. Traditional methods often rely on "implicit" fusion—letting the network learn relationships without guidance—or simple concatenation, which frequently fails to handle scenarios where one sensor provides high-quality data while the other provides noise.

This research introduces the Explicit Attention-Enhanced Fusion (EAEF) module. Unlike previous approaches, EAEF explicitly models three real-world scenarios: when both sensors are reliable, when only one is reliable (e.g., total darkness), and when neither provides clear features (e.g., low-contrast fog). By designing specific branches for these cases, the model achieves superior robustness across varying environmental conditions.

Methodology

The EAEF framework is built upon a dual-encoder architecture that processes RGB and thermal inputs in parallel. The core innovation lies in the EAEF module, which replaces standard fusion layers at multiple scales of the feature extraction process.

The overall architecture of the EAEF network, showing the dual-encoder setup and the integration of EAEF modules at multiple scales.

The EAEF module consists of two primary components:

  1. Attention Interaction Branch (AIB): This branch captures the correlation between modalities. By using element-wise multiplication of attention weights, it boosts feature extraction when both sensors agree or when both require a stronger signal to identify patterns.
  2. Attention Complement Branch (ACB): This serves as a "remedy" branch. It utilizes a complementary calculation ($1 - \text{correlation}$) to ensure the network focuses on representations that were insufficient in the AIB. For instance, if an RGB sensor is blinded by headlights, the ACB ensures the thermal data's features are prioritized.

Finally, a Spatial Attention Mechanism merges the outputs of these branches, weighing the importance of different pixels across the combined feature map before passing them to the decoder.

Experimental Results

The proposed method was evaluated across four major computer vision benchmarks: semantic segmentation (MFNet, PST900), object detection (M3FD), salient object detection (VT5000), and crowd counting (RGBT-CC).

Qualitative comparison of semantic segmentation results between EAEF and other state-of-the-art methods under night and daytime conditions.

As shown in the qualitative results, EAEF demonstrates a marked improvement in detecting small or low-contrast objects. In nighttime scenarios where RGB cameras fail to distinguish pedestrians from shadows, EAEF accurately segments the subjects by leveraging thermal cues. Quantitatively, the model achieved state-of-the-art (SOTA) performance across all tasks, including a 1.6% mIoU improvement in semantic segmentation and an 8.1% MAE reduction in crowd counting compared to previous leading models like RTFNet and EGFNet.

Conclusion

EAEF provides a robust framework for multi-modal sensor fusion by explicitly addressing the reliability of individual data streams. By splitting fusion into interaction and complement branches, the model ensures that discriminative features are preserved even in extreme environmental conditions. Future work will explore extending this explicit fusion logic to other sensor pairings, such as RGB-LiDAR and RGB-Depth, to further enhance autonomous perception systems.

Summary updated

Abstract

Recently, RGB-Thermal based perception has shown significant advances. Thermal information provides useful clues when visual cameras suffer from poor lighting conditions, such as low light and fog. However, how to effectively fuse RGB images and thermal data remains an open challenge. Previous works involve naive fusion strategies such as merging them at the input, concatenating multi-modality features inside models, or applying attention to each data modality. These fusion strategies are straightforward yet insufficient. In this paper, we propose a novel fusion method named Explicit Attention-Enhanced Fusion (EAEF) that fully takes advantage of each type of data. Specifically, we consider the following cases: i) both RGB data and thermal data, ii) only one of the types of data, and iii) none of them generate discriminative features. EAEF uses one branch to enhance feature extraction for i) and iii) and the other branch to remedy insufficient representations for ii). The outputs of two branches are fused to form complementary features. As a result, the proposed fusion method outperforms state-of-the-art by 1.6\% in mIoU on semantic segmentation, 3.1\% in MAE on salient object detection, 2.3\% in mAP on object detection, and 8.1\% in MAE on crowd counting. The code is available at https://github.com/FreeformRobotics/EAEFNet.
BibTeX
@article{liang2023explicit,
  author = {Mingjian Liang and Junjie Hu and Chenyu Bao and Hua Feng and Fuqin Deng and Tin Lun Lam},
  title = {{Explicit Attention-Enhanced Fusion for RGB-Thermal Perception Tasks}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2023},
  url = {https://openreview.net/forum?id=losEiFttjp},
}
Figure