Mask-RadarNet: Enhancing Transformer With Spatial-Temporal Semantic Context for Radar Object Detection in Autonomous Driving

Yuzhi Wu, Jun Liu, Guangfeng Jiang, Weijian Liu, Danilo Orlando · DOI

Abstract

As a cost-effective and robust technology, automotive radar has seen steady improvement during the last years, making it an appealing complement to commonly used sensors like camera and LiDAR in autonomous driving. Radio frequency data with rich semantic information are attracting more and more attention. Most current radar-based models take radio frequency image sequences as the input. However, these models heavily rely on convolutional neural networks and leave out the spatial-temporal semantic context during the encoding stage. To solve these problems, we propose a model called Mask-RadarNet to fully utilize the hierarchical semantic features from the input radar data. Mask-RadarNet exploits the combination of interleaved convolution and attention operations to replace the traditional architecture in transformer-based models. In addition, patch shift is introduced to the Mask-RadarNet for efficient spatial-temporal feature learning. By shifting part of patches with a specific mosaic pattern in the temporal dimension, Mask-RadarNet achieves competitive performance while reducing the computational burden of the spatial-temporal modeling. In order to capture the spatial-temporal semantic contextual information, we design the class masking attention module (CMAM) in our encoder. Moreover, a lightweight auxiliary decoder is added to our model to aggregate prior maps generated from the CMAM. Experiments on the CRUW dataset demonstrate the superiority of the proposed method to some state-of-the-art radar-based object detection algorithms. With relatively lower computational complexity and fewer parameters, the proposed Mask-RadarNet achieves higher recognition accuracy for object detection in autonomous driving.

Introduction: The Challenge of Radar Perception

While cameras and LiDAR serve as the primary sensors for autonomous vehicles, they often struggle in adverse conditions such as fog, smoke, or extreme lighting. Automotive radar, specifically Frequency Modulated Continuous Wave (FMCW) radar, provides a robust alternative. However, radar data—typically represented as Radio Frequency (RF) images or Range-Azimuth (RA) heatmaps—is significantly more abstract and difficult to interpret semantically compared to standard RGB imagery.

Comparison of RGB and RF images across different driving scenarios.

Most existing radar-based models rely on heavy 3D Convolutional Neural Networks (CNNs) to process sequences of radar frames. While effective for local features, 3D convolutions are computationally expensive and often fail to capture long-range spatial-temporal dependencies or the nuanced semantic context required to distinguish between different object classes in noisy environments. Mask-RadarNet addresses these limitations by integrating the global reasoning of Transformers with efficient spatial-temporal modeling.

Methodology: The Mask-RadarNet Architecture

Mask-RadarNet is a hierarchical hybrid model designed to combine the local feature extraction of convolutions with the global reasoning of Transformers. The architecture introduces several key innovations:

PatchShift 3D SwinTransformer

To avoid the high computational overhead of 3D convolutions for temporal fusion, Mask-RadarNet utilizes a "patch shift" technique. By shifting data patches across the temporal dimension in a specific mosaic pattern, the model aggregates information from neighboring frames with zero additional computation. This allows the network to learn temporal dynamics, such as velocity and movement patterns, by effectively "mingling" features across time steps.

Class Masking Attention Module (CMAM)

Radar data is inherently noisy and abstract. The CMAM projects radar features into a semantic space to generate class-dependent prior maps. By employing attention masks based on object categories (e.g., pedestrians, cars, cyclists), the module forces the encoder to focus on relevant object-related areas, providing critical semantic guidance to the abstract RF signals.

Hybrid Encoder-Decoder

The model follows a U-shaped architecture where the encoder extracts hierarchical features and the main decoder uses cross-attention for feature fusion. During training, a lightweight auxiliary decoder provides additional supervision for the semantic maps generated by the CMAM, ensuring the model learns robust and clean object representations.

Experimental Evaluation

The model was evaluated on the CRUW (Camera-Radar-University of Washington) dataset, which includes 3.5 hours of synchronized camera and 77 GHz FMCW radar data. This dataset is a rigorous benchmark as it includes "vision-fail" scenarios where cameras struggle, highlighting the importance of radar-only detection capabilities.

Key Results

Mask-RadarNet outperformed several state-of-the-art (SOTA) models, including the previous leader, T-RODNet, in both accuracy and efficiency:

  • Accuracy: The model achieved an Average Precision (AP) of 84.29% and Average Recall (AR) of 87.36% across all categories.
  • Efficiency: Mask-RadarNet utilized only 176.91 GFLOPs and 32.12M parameters. In comparison, T-RODNet requires 182.53 GFLOPs and 44.31M parameters while achieving lower accuracy.
  • Qualitative Performance: Visualizations indicate that Mask-RadarNet is significantly better at distinguishing between categories in crowded scenes, such as correctly identifying a cyclist near a car where other models might fail to separate the two.

Conclusion and Future Directions

Mask-RadarNet demonstrates that efficient spatial-temporal modeling and semantic guidance can significantly enhance radar-based object detection for autonomous driving. By utilizing PatchShift and the CMAM, the model achieves superior performance with reduced computational overhead. Future work will focus on validating the model on more diverse datasets like nuScenes, exploring self-supervised learning to reduce the reliance on manual RF data annotation, and optimizing the architecture for real-time deployment on edge-computing hardware.

Summary updated

BibTeX
@misc{wu2024mask,
  author = {Yuzhi Wu and Jun Liu and Guangfeng Jiang and Weijian Liu and Danilo Orlando},
  title = {{Mask-RadarNet: Enhancing Transformer With Spatial-Temporal Semantic Context for Radar Object Detection in Autonomous Driving}},
  year = {2024},
  eprint = {2412.15595},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.15595},
}
Figure